amis-editor 4.0.1-beta.9 → 4.0.2-beta.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. package/dist/cebfe0bc5a1dbde02da1.svg +10 -0
  2. package/dist/component/Control/APIControl.d.ts +504 -0
  3. package/dist/component/Control/OptionControl.d.ts +163 -0
  4. package/dist/component/Control/PopoverEdit.d.ts +57 -0
  5. package/dist/component/Control/ValidationControl.d.ts +30 -0
  6. package/dist/component/Editor.d.ts +1 -0
  7. package/dist/component/{CodeEditor.d.ts → Panel/AMisCodeEditor.d.ts} +1 -1
  8. package/dist/component/Panel/AvailableRenderersPanel.d.ts +10 -0
  9. package/dist/component/Panel/CodeEditorPanel.d.ts +6 -0
  10. package/dist/component/Panel/ContextMenuPanel.d.ts +8 -0
  11. package/dist/component/Panel/DrawerPanel.d.ts +15 -0
  12. package/dist/component/Panel/DrawerRendererPanel.d.ts +15 -0
  13. package/dist/component/{InsertSubRendererPanel.d.ts → Panel/InsertSubRendererPanel.d.ts} +1 -1
  14. package/dist/component/Panel/LeftPanels.d.ts +20 -0
  15. package/dist/component/{Outline.d.ts → Panel/Outline.d.ts} +2 -2
  16. package/dist/component/{AvailableRenderersPanel.d.ts → Panel/RenderersPanel.d.ts} +14 -2
  17. package/dist/component/Panel/RightPanels.d.ts +21 -0
  18. package/dist/component/{TargetNamePanel.d.ts → Panel/TargetNamePanel.d.ts} +1 -1
  19. package/dist/component/Preview.d.ts +1 -0
  20. package/dist/component/ScaffoldModal.d.ts +1 -1
  21. package/dist/component/{BackTop.d.ts → base/BackTop.d.ts} +1 -1
  22. package/dist/component/{ErrorRenderer.d.ts → base/ErrorRenderer.d.ts} +0 -0
  23. package/dist/component/base/InputComponentName.d.ts +8 -0
  24. package/dist/component/base/SearchRendererPanel.d.ts +59 -0
  25. package/dist/component/base/WidthDraggableBtn.d.ts +16 -0
  26. package/dist/component/base/WidthDraggableContainer.d.ts +2 -0
  27. package/dist/component/remarkTpl.d.ts +150 -0
  28. package/dist/exports.d.ts +8 -0
  29. package/dist/exports.min.js +1 -0
  30. package/dist/index.d.ts +20 -14
  31. package/dist/index.min.js +1 -1
  32. package/dist/manager.d.ts +7 -5
  33. package/dist/plugin/Alert.d.ts +2 -1
  34. package/dist/plugin/AnchorNav.d.ts +1 -0
  35. package/dist/plugin/Audio.d.ts +1 -0
  36. package/dist/plugin/Avatar.d.ts +1 -0
  37. package/dist/plugin/Breadcrumb.d.ts +2 -0
  38. package/dist/plugin/Button.d.ts +1 -0
  39. package/dist/plugin/ButtonGroup.d.ts +1 -0
  40. package/dist/plugin/ButtonToolbar.d.ts +1 -0
  41. package/dist/plugin/CRUD.d.ts +1 -0
  42. package/dist/plugin/Card.d.ts +1 -1
  43. package/dist/plugin/Cards.d.ts +1 -0
  44. package/dist/plugin/Carousel.d.ts +1 -0
  45. package/dist/plugin/Chart.d.ts +1 -0
  46. package/dist/plugin/CodeView.d.ts +1 -0
  47. package/dist/plugin/Collapse.d.ts +16 -6
  48. package/dist/plugin/CollapseGroup.d.ts +41 -0
  49. package/dist/plugin/Container.d.ts +1 -0
  50. package/dist/plugin/Custom.d.ts +1 -0
  51. package/dist/plugin/Date.d.ts +1 -0
  52. package/dist/plugin/Datetime.d.ts +1 -0
  53. package/dist/plugin/Dialog.d.ts +1 -0
  54. package/dist/plugin/Divider.d.ts +1 -0
  55. package/dist/plugin/Drawer.d.ts +1 -0
  56. package/dist/plugin/DropDownButton.d.ts +2 -0
  57. package/dist/plugin/Each.d.ts +1 -0
  58. package/dist/plugin/ErrorRenderer.d.ts +1 -0
  59. package/dist/plugin/Flex.d.ts +2 -1
  60. package/dist/plugin/Form/ButtonGroupSelect.d.ts +1 -0
  61. package/dist/plugin/Form/ButtonToolbar.d.ts +1 -0
  62. package/dist/plugin/Form/ChainedSelect.d.ts +1 -0
  63. package/dist/plugin/Form/Checkbox.d.ts +1 -0
  64. package/dist/plugin/Form/Checkboxes.d.ts +1 -0
  65. package/dist/plugin/Form/{Editor.d.ts → CodeEditor.d.ts} +2 -1
  66. package/dist/plugin/Form/Combo.d.ts +2 -1
  67. package/dist/plugin/Form/ConditionBuilder.d.ts +1 -0
  68. package/dist/plugin/Form/Control.d.ts +1 -0
  69. package/dist/plugin/Form/DiffEditor.d.ts +1 -0
  70. package/dist/plugin/Form/FieldSet.d.ts +1 -0
  71. package/dist/plugin/Form/Form.d.ts +1 -0
  72. package/dist/plugin/Form/Formula.d.ts +1 -0
  73. package/dist/plugin/Form/Group.d.ts +1 -0
  74. package/dist/plugin/Form/Hidden.d.ts +1 -0
  75. package/dist/plugin/Form/InputArray.d.ts +2 -0
  76. package/dist/plugin/Form/InputCity.d.ts +1 -0
  77. package/dist/plugin/Form/InputColor.d.ts +1 -0
  78. package/dist/plugin/Form/InputDate.d.ts +1 -0
  79. package/dist/plugin/Form/InputDateRange.d.ts +1 -0
  80. package/dist/plugin/Form/InputDateTime.d.ts +1 -0
  81. package/dist/plugin/Form/InputDateTimeRange.d.ts +1 -0
  82. package/dist/plugin/Form/InputEmail.d.ts +1 -0
  83. package/dist/plugin/Form/InputExcel.d.ts +1 -0
  84. package/dist/plugin/Form/InputFile.d.ts +1 -0
  85. package/dist/plugin/Form/InputGroup.d.ts +1 -2
  86. package/dist/plugin/Form/InputImage.d.ts +1 -0
  87. package/dist/plugin/Form/InputKV.d.ts +1 -0
  88. package/dist/plugin/Form/InputMonth.d.ts +1 -0
  89. package/dist/plugin/Form/InputMonthRange.d.ts +1 -0
  90. package/dist/plugin/Form/InputNumber.d.ts +1 -0
  91. package/dist/plugin/Form/InputPassword.d.ts +1 -0
  92. package/dist/plugin/Form/InputQuarter.d.ts +1 -0
  93. package/dist/plugin/Form/InputQuarterRange.d.ts +1 -0
  94. package/dist/plugin/Form/InputRange.d.ts +1 -0
  95. package/dist/plugin/Form/InputRating.d.ts +2 -1
  96. package/dist/plugin/Form/InputRepeat.d.ts +1 -0
  97. package/dist/plugin/Form/InputRichText.d.ts +1 -0
  98. package/dist/plugin/Form/InputSubForm.d.ts +1 -0
  99. package/dist/plugin/Form/InputTable.d.ts +1 -1
  100. package/dist/plugin/Form/InputTag.d.ts +1 -0
  101. package/dist/plugin/Form/InputText.d.ts +1 -0
  102. package/dist/plugin/Form/InputTime.d.ts +1 -0
  103. package/dist/plugin/Form/InputTree.d.ts +1 -0
  104. package/dist/plugin/Form/InputURL.d.ts +1 -0
  105. package/dist/plugin/Form/InputYear.d.ts +1 -0
  106. package/dist/plugin/Form/ListSelect.d.ts +1 -0
  107. package/dist/plugin/Form/LocationPicker.d.ts +1 -0
  108. package/dist/plugin/Form/MatrixCheckboxes.d.ts +1 -0
  109. package/dist/plugin/Form/NestedSelect.d.ts +1 -0
  110. package/dist/plugin/Form/Picker.d.ts +1 -0
  111. package/dist/plugin/Form/Radios.d.ts +1 -0
  112. package/dist/plugin/Form/Select.d.ts +1 -0
  113. package/dist/plugin/Form/Static.d.ts +1 -1
  114. package/dist/plugin/Form/Switch.d.ts +1 -0
  115. package/dist/plugin/Form/TabsTransfer.d.ts +1 -0
  116. package/dist/plugin/Form/Textarea.d.ts +1 -0
  117. package/dist/plugin/Form/Transfer.d.ts +1 -0
  118. package/dist/plugin/Form/TreeSelect.d.ts +1 -0
  119. package/dist/plugin/Form/UUID.d.ts +1 -0
  120. package/dist/plugin/Grid.d.ts +1 -0
  121. package/dist/plugin/HBox.d.ts +1 -1
  122. package/dist/plugin/IFrame.d.ts +1 -0
  123. package/dist/plugin/Image.d.ts +1 -0
  124. package/dist/plugin/Images.d.ts +1 -0
  125. package/dist/plugin/Json.d.ts +1 -0
  126. package/dist/plugin/Link.d.ts +1 -0
  127. package/dist/plugin/List.d.ts +1 -0
  128. package/dist/plugin/ListItem.d.ts +1 -1
  129. package/dist/plugin/Log.d.ts +1 -0
  130. package/dist/plugin/Mapping.d.ts +1 -0
  131. package/dist/plugin/Markdown.d.ts +1 -0
  132. package/dist/plugin/Nav.d.ts +1 -0
  133. package/dist/plugin/Operation.d.ts +1 -0
  134. package/dist/plugin/Others/Action.d.ts +8 -0
  135. package/dist/plugin/{BasicToolbar.d.ts → Others/BasicToolbar.d.ts} +1 -1
  136. package/dist/plugin/{DataDebug.d.ts → Others/DataDebug.d.ts} +1 -1
  137. package/dist/plugin/{TableCell.d.ts → Others/TableCell.d.ts} +1 -2
  138. package/dist/plugin/{Unknown.d.ts → Others/Unknown.d.ts} +1 -1
  139. package/dist/plugin/Page.d.ts +1 -0
  140. package/dist/plugin/{AvailableRenderers.d.ts → Panel/AvailableRenderers.d.ts} +1 -1
  141. package/dist/plugin/{Code.d.ts → Panel/Code.d.ts} +1 -1
  142. package/dist/plugin/{Name.d.ts → Panel/Name.d.ts} +1 -1
  143. package/dist/plugin/Panel.d.ts +16 -3
  144. package/dist/plugin/Plain.d.ts +1 -0
  145. package/dist/plugin/Progress.d.ts +1 -0
  146. package/dist/plugin/Property.d.ts +1 -0
  147. package/dist/plugin/QRCode.d.ts +1 -0
  148. package/dist/plugin/Reset.d.ts +1 -0
  149. package/dist/plugin/Service.d.ts +1 -0
  150. package/dist/plugin/Sparkline.d.ts +1 -0
  151. package/dist/plugin/Status.d.ts +1 -0
  152. package/dist/plugin/Steps.d.ts +1 -0
  153. package/dist/plugin/Submit.d.ts +1 -0
  154. package/dist/plugin/Table.d.ts +1 -0
  155. package/dist/plugin/TableView.d.ts +1 -0
  156. package/dist/plugin/Tabs.d.ts +1 -0
  157. package/dist/plugin/Tasks.d.ts +1 -0
  158. package/dist/plugin/Time.d.ts +1 -0
  159. package/dist/plugin/TooltipWrapper.d.ts +29 -0
  160. package/dist/plugin/Tpl.d.ts +1 -0
  161. package/dist/plugin/Video.d.ts +1 -0
  162. package/dist/plugin/WebComponent.d.ts +3 -26
  163. package/dist/plugin/Wizard.d.ts +1 -0
  164. package/dist/plugin/Wrapper.d.ts +1 -0
  165. package/dist/plugin.d.ts +20 -5
  166. package/dist/store/editor.d.ts +58 -4
  167. package/dist/style.css +1 -1
  168. package/dist/util.d.ts +7 -2
  169. package/package.json +24 -16
  170. package/static/side_hide_left.svg +10 -0
  171. package/.editorconfig +0 -12
  172. package/.fecsrc +0 -8
  173. package/.prettierrc +0 -20
  174. package/dist/component/CodeEditorPanel.d.ts +0 -12
  175. package/dist/component/InputComponentName.d.ts +0 -8
  176. package/dist/component/Panels.d.ts +0 -17
  177. package/dist/plugin/Action.d.ts +0 -6
  178. package/publish-local.sh +0 -37
  179. package/rollup.config.js +0 -24
@@ -3,6 +3,7 @@ export declare class StepsPlugin 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
  tags: string[];
@@ -3,6 +3,7 @@ export declare class SubmitPlugin extends ButtonPlugin {
3
3
  rendererName: string;
4
4
  disabledRendererPlugin: boolean;
5
5
  name: string;
6
+ isBaseComponent: boolean;
6
7
  description: string;
7
8
  docLink: string;
8
9
  panelTitle: string;
@@ -4,6 +4,7 @@ export declare class TablePlugin 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;
@@ -7,6 +7,7 @@ export declare class TableViewPlugin extends BasePlugin {
7
7
  rendererName: string;
8
8
  $schema: string;
9
9
  name: string;
10
+ isBaseComponent: boolean;
10
11
  icon: string;
11
12
  description: string;
12
13
  tags: string[];
@@ -3,6 +3,7 @@ export declare class TabsPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
5
  name: string;
6
+ isBaseComponent: boolean;
6
7
  description: string;
7
8
  docLink: string;
8
9
  tags: string[];
@@ -3,6 +3,7 @@ export declare class TasksPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
5
  name: string;
6
+ isBaseComponent: boolean;
6
7
  description: string;
7
8
  tags: string[];
8
9
  icon: string;
@@ -3,6 +3,7 @@ import { DatePlugin } from './Date';
3
3
  export declare class TimePlugin extends DatePlugin {
4
4
  rendererName: string;
5
5
  name: string;
6
+ isBaseComponent: boolean;
6
7
  scaffold: {
7
8
  type: string;
8
9
  value: number;
@@ -0,0 +1,29 @@
1
+ import { BasePlugin, RegionConfig, BaseEventContext } from '../plugin';
2
+ export declare class TooltipWrapperPlugin 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
+ tooltip: string;
12
+ body: {
13
+ type: string;
14
+ tpl: string;
15
+ }[];
16
+ };
17
+ previewSchema: {
18
+ className: string;
19
+ type: string;
20
+ tooltip: string;
21
+ body: {
22
+ type: string;
23
+ tpl: string;
24
+ }[];
25
+ };
26
+ regions: Array<RegionConfig>;
27
+ panelTitle: string;
28
+ panelBodyCreator: (context: BaseEventContext) => any[];
29
+ }
@@ -3,6 +3,7 @@ export declare class TplPlugin 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;
@@ -3,6 +3,7 @@ export declare class VideoPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
5
  name: string;
6
+ isBaseComponent: boolean;
6
7
  description: string;
7
8
  tags: string[];
8
9
  icon: string;
@@ -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
- multiple?: undefined;
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
  }
@@ -4,6 +4,7 @@ export declare class WizardPlugin 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
  tags: string[];
@@ -4,6 +4,7 @@ export declare class WrapperPlugin extends BasePlugin {
4
4
  $schema: string;
5
5
  disabledRendererPlugin: boolean;
6
6
  name: string;
7
+ isBaseComponent: boolean;
7
8
  description: string;
8
9
  tags: string[];
9
10
  icon: string;
package/dist/plugin.d.ts CHANGED
@@ -57,7 +57,7 @@ export interface RegionConfig {
57
57
  optional?: boolean;
58
58
  /**
59
59
  * 有时候有些包括是需要其他条件的,所以要自己写包裹逻辑。
60
- * 比如 panel 里面的 renderBody
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
  /**
@@ -127,10 +127,13 @@ export interface RendererScaffoldInfo {
127
127
  */
128
128
  export interface RendererInfo extends RendererScaffoldInfo {
129
129
  scaffolds?: Array<Partial<RendererScaffoldInfo>>;
130
+ rendererName?: string;
130
131
  /**
131
132
  * json schema 协议
132
133
  */
133
134
  $schema?: string;
135
+ isBaseComponent?: boolean;
136
+ disabledRendererPlugin?: boolean;
134
137
  /**
135
138
  * 配置区域。
136
139
  */
@@ -182,7 +185,7 @@ export interface RendererInfo extends RendererScaffoldInfo {
182
185
  *
183
186
  * 表格的列,即是表格列,也可能是其他文本框。
184
187
  *
185
- * 配置了这个后会自动添加多个 panel 面板来编辑。
188
+ * 配置了这个后会自动添加多个 Panel 面板来编辑。
186
189
  */
187
190
  multifactor?: boolean;
188
191
  /**
@@ -249,6 +252,11 @@ export interface ScaffoldForm extends PopOverForm {
249
252
  * 子渲染器信息
250
253
  */
251
254
  export interface SubRendererInfo extends RendererScaffoldInfo {
255
+ /**
256
+ * 用于判断是否是平台预置组件,平台预置组件为true。
257
+ */
258
+ isBaseComponent?: boolean;
259
+ rendererName?: string;
252
260
  /**
253
261
  * 首次拖入的时候可以用来配置个表单。
254
262
  */
@@ -274,13 +282,13 @@ export interface ToolbarItem {
274
282
  className?: string;
275
283
  draggable?: boolean;
276
284
  onDragStart?: (e: React.DragEvent) => void;
277
- icon: string;
285
+ icon?: string;
278
286
  iconSvg?: string;
279
287
  onClick?: (e: React.MouseEvent) => void;
280
288
  tooltip?: string;
281
289
  placement?: 'top' | 'bottom' | 'right' | 'left';
282
290
  }
283
- export declare type BasicToolbarItem = Partial<ToolbarItem> & Pick<ToolbarItem, 'icon'>;
291
+ export declare type BasicToolbarItem = Partial<ToolbarItem>;
284
292
  export declare type ContextMenuItem = MenuItem | MenuDivider;
285
293
  /**
286
294
  * 面板的属性定义
@@ -304,10 +312,11 @@ export interface PanelItem {
304
312
  key: string;
305
313
  icon: string;
306
314
  title: string;
307
- component?: React.ComponentType<PanelProps>;
315
+ component?: React.ComponentType<PanelProps | any>;
308
316
  order: number;
309
317
  position?: 'left' | 'right';
310
318
  render?: (props: PanelProps) => JSX.Element;
319
+ menus?: Array<any>;
311
320
  }
312
321
  export declare type BasicPanelItem = Omit<PanelItem, 'order'> & Partial<Pick<PanelItem, 'order'>>;
313
322
  export interface EventContext {
@@ -539,6 +548,11 @@ export interface PluginInterface extends Partial<BasicRendererInfo>, Partial<Bas
539
548
  * 构建子渲染器信息集合。
540
549
  */
541
550
  buildSubRenderers?: (context: RendererEventContext, subRenderers: Array<SubRendererInfo>, renderers: Array<RendererConfig>) => BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
551
+ /**
552
+ * 更新NPM自定义组件分类和排序[异步方法]
553
+ * 备注:目前主要在npm自定义组件的分类和排序更新中使用
554
+ */
555
+ asyncUpdateCustomSubRenderersInfo?: (context: RendererEventContext, subRenderers: Array<SubRendererInfo>, renderers: Array<RendererConfig>) => void;
542
556
  markDom?: (dom: HTMLElement | Array<HTMLElement>, props: any) => void;
543
557
  }
544
558
  /**
@@ -573,6 +587,7 @@ export declare abstract class BasePlugin implements PluginInterface {
573
587
  * @param menus
574
588
  */
575
589
  buildEditorContextMenu({ id, schema, region, info }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
590
+ buildEditorToolbar({ id, schema, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
576
591
  renderPlaceholder(text: string, key?: any): React.DetailedReactHTMLElement<{
577
592
  key: any;
578
593
  className: string;
@@ -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
- subRenderers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<SubRendererInfo[], SubRendererInfo[], SubRendererInfo[]>, [undefined]>;
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,42 @@ 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
+ * 备注:disabledRendererPlugin 为 true 则不在面板中展示
856
+ */
857
+ readonly subRenderersByOrder: SubRendererInfo[];
858
+ /** 获取自定义组件
859
+ * 备注:disabledRendererPlugin 为 true 则不在面板中展示
860
+ */
861
+ readonly customRenderersByOrder: SubRendererInfo[];
862
+ /** 根据关键字过滤组件 */
863
+ groupedRenderersByKeyword(_subRenderers: Array<SubRendererInfo>, keywords?: string | undefined): {
864
+ [propName: string]: SubRendererInfo[];
865
+ };
866
+ /** 根据关键字过滤预置组件
867
+ * 备注:组件搜索中需要
868
+ */
869
+ groupedSubRenderersByKeyword(_subRenderers?: SubRendererInfo[] | undefined, keywords?: string | undefined): {
870
+ [propName: string]: SubRendererInfo[];
871
+ };
872
+ /**
873
+ * 根据当前分类和关键字获取预置组件
874
+ * 备注:组件面板展示需要
875
+ */
843
876
  readonly groupedSubRenderers: {
844
877
  [propName: string]: SubRendererInfo[];
845
878
  };
846
- getSubRendererById(id: string): SubRendererInfo | undefined;
879
+ /** 根据关键字过滤自定义组件 */
880
+ groupedCustomRenderersByKeyword(_subRenderers?: SubRendererInfo[] | undefined, keywords?: string | undefined): {
881
+ [propName: string]: SubRendererInfo[];
882
+ };
883
+ /**
884
+ * 根据当前分类和关键字获取自定义组件
885
+ */
886
+ readonly groupedCustomRenderers: {
887
+ [propName: string]: SubRendererInfo[];
888
+ };
889
+ getSubRendererById(id: string): any;
847
890
  readonly groupedInsertRenderers: {
848
891
  [propName: string]: SubRendererInfo[];
849
892
  };
@@ -861,7 +904,9 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
861
904
  getIframe(): HTMLIFrameElement | undefined;
862
905
  setIsMobile(value?: boolean | undefined): void;
863
906
  setCtx(value: any): void;
907
+ setTheme(value: string): void;
864
908
  setIsSubEditor(isSubEditor: boolean): void;
909
+ setShowCustomRenderersPanel(_showCustomRenderersPanel: boolean): void;
865
910
  setSchema(json: any): void;
866
911
  insertSchema(event: PluginEvent<InsertEventContext>): any;
867
912
  moveSchema(event: PluginEvent<MoveEventContext>): void;
@@ -879,10 +924,17 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
879
924
  setPanels(panels: Array<PanelItem>): void;
880
925
  setSubRenderers(renderers: Array<SubRendererInfo>): void;
881
926
  changeSubRenderersKeywords(keywords: string): void;
927
+ changeSubRenderersTag(tag: string): void;
882
928
  resetSubRenderersKeywords(): void;
929
+ changeCustomRenderersKeywords(keywords: string): void;
930
+ changeCustomRenderersTag(tag: string): void;
931
+ resetCustomRenderersKeywords(): void;
883
932
  changeSubRendererRegion(region: string): void;
884
- changePanelKey(key: string, force?: boolean): void;
885
- changeLeftPanelKey(key: string, force?: boolean): void;
933
+ changePanelKey(key: string): void;
934
+ changeLeftPanelKey(key: string): void;
935
+ changeRenderersTabsKey(key: string): void;
936
+ changeLeftPanelOpenStatus(isOpenStatus: boolean): void;
937
+ showRendererPanel(tag?: string | undefined, msg?: string | undefined): void;
886
938
  changeValue(value: Schema, diff?: any): void;
887
939
  changeValueById(id: string, value: Schema, diff?: any, replace?: boolean | undefined, noTrace?: boolean | undefined): void;
888
940
  moveUp(id: string): void;
@@ -894,6 +946,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
894
946
  replaceChild(id: string, json: any): void;
895
947
  setInsertRegion(region: string, id?: string, tag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string | undefined): void;
896
948
  closeInsertPanel(): void;
949
+ showInsertRendererPanel(): void;
950
+ closeInsertRendererPanel(): void;
897
951
  setInsertRenderers(renderers: Array<SubRendererInfo>): void;
898
952
  changeInsertRenderersKeywords(keywords: string): void;
899
953
  resetInsertRenderersKeywords(): void;