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.
Files changed (176) hide show
  1. package/dist/cebfe0bc5a1dbde02da1.svg +10 -0
  2. package/dist/component/ContextMenuPanel.d.ts +8 -0
  3. package/dist/component/Control/APIControl.d.ts +504 -0
  4. package/dist/component/Control/OptionControl.d.ts +163 -0
  5. package/dist/component/Control/PopoverEdit.d.ts +57 -0
  6. package/dist/component/Control/ValidationControl.d.ts +30 -0
  7. package/dist/component/Editor.d.ts +1 -0
  8. package/dist/component/Panel/AMisCodeEditor.d.ts +37 -0
  9. package/dist/component/Panel/AvailableRenderersPanel.d.ts +10 -0
  10. package/dist/component/Panel/CodeEditorPanel.d.ts +6 -0
  11. package/dist/component/Panel/ContextMenuPanel.d.ts +8 -0
  12. package/dist/component/Panel/DrawerPanel.d.ts +15 -0
  13. package/dist/component/Panel/DrawerRendererPanel.d.ts +15 -0
  14. package/dist/component/Panel/InsertSubRendererPanel.d.ts +11 -0
  15. package/dist/component/Panel/LeftPanels.d.ts +20 -0
  16. package/dist/component/Panel/Outline.d.ts +18 -0
  17. package/dist/component/Panel/RenderersPanel.d.ts +32 -0
  18. package/dist/component/Panel/RightPanels.d.ts +21 -0
  19. package/dist/component/Panel/TargetNamePanel.d.ts +7 -0
  20. package/dist/component/Preview.d.ts +1 -0
  21. package/dist/component/ScaffoldModal.d.ts +1 -1
  22. package/dist/component/base/BackTop.d.ts +26 -0
  23. package/dist/component/base/ErrorRenderer.d.ts +4 -0
  24. package/dist/component/base/InputComponentName.d.ts +8 -0
  25. package/dist/component/base/SearchRendererPanel.d.ts +59 -0
  26. package/dist/component/base/WidthDraggableBtn.d.ts +16 -0
  27. package/dist/component/base/WidthDraggableContainer.d.ts +2 -0
  28. package/dist/component/remarkTpl.d.ts +150 -0
  29. package/dist/exports.d.ts +8 -0
  30. package/dist/exports.min.js +1 -0
  31. package/dist/index.d.ts +19 -14
  32. package/dist/index.min.js +1 -1
  33. package/dist/manager.d.ts +7 -5
  34. package/dist/plugin/Alert.d.ts +2 -1
  35. package/dist/plugin/AnchorNav.d.ts +1 -0
  36. package/dist/plugin/Audio.d.ts +1 -0
  37. package/dist/plugin/Avatar.d.ts +1 -0
  38. package/dist/plugin/Breadcrumb.d.ts +2 -0
  39. package/dist/plugin/Button.d.ts +1 -0
  40. package/dist/plugin/ButtonGroup.d.ts +1 -0
  41. package/dist/plugin/ButtonToolbar.d.ts +1 -0
  42. package/dist/plugin/CRUD.d.ts +1 -0
  43. package/dist/plugin/Card.d.ts +1 -1
  44. package/dist/plugin/Cards.d.ts +1 -0
  45. package/dist/plugin/Carousel.d.ts +1 -0
  46. package/dist/plugin/Chart.d.ts +1 -0
  47. package/dist/plugin/CodeView.d.ts +1 -0
  48. package/dist/plugin/Collapse.d.ts +16 -6
  49. package/dist/plugin/CollapseGroup.d.ts +41 -0
  50. package/dist/plugin/Container.d.ts +1 -0
  51. package/dist/plugin/Custom.d.ts +1 -0
  52. package/dist/plugin/Date.d.ts +1 -0
  53. package/dist/plugin/Datetime.d.ts +1 -0
  54. package/dist/plugin/Dialog.d.ts +1 -0
  55. package/dist/plugin/Divider.d.ts +1 -0
  56. package/dist/plugin/Drawer.d.ts +1 -0
  57. package/dist/plugin/DropDownButton.d.ts +1 -0
  58. package/dist/plugin/Each.d.ts +1 -0
  59. package/dist/plugin/ErrorRenderer.d.ts +1 -0
  60. package/dist/plugin/Flex.d.ts +2 -1
  61. package/dist/plugin/Form/ButtonGroupSelect.d.ts +1 -0
  62. package/dist/plugin/Form/ButtonToolbar.d.ts +1 -0
  63. package/dist/plugin/Form/ChainedSelect.d.ts +1 -0
  64. package/dist/plugin/Form/Checkbox.d.ts +1 -0
  65. package/dist/plugin/Form/Checkboxes.d.ts +1 -0
  66. package/dist/plugin/Form/CodeEditor.d.ts +40 -0
  67. package/dist/plugin/Form/Combo.d.ts +1 -0
  68. package/dist/plugin/Form/ConditionBuilder.d.ts +1 -0
  69. package/dist/plugin/Form/Control.d.ts +1 -0
  70. package/dist/plugin/Form/DiffEditor.d.ts +1 -0
  71. package/dist/plugin/Form/FieldSet.d.ts +1 -0
  72. package/dist/plugin/Form/Form.d.ts +1 -0
  73. package/dist/plugin/Form/Formula.d.ts +1 -0
  74. package/dist/plugin/Form/Group.d.ts +1 -0
  75. package/dist/plugin/Form/Hidden.d.ts +1 -0
  76. package/dist/plugin/Form/InputArray.d.ts +2 -0
  77. package/dist/plugin/Form/InputCity.d.ts +1 -0
  78. package/dist/plugin/Form/InputColor.d.ts +1 -0
  79. package/dist/plugin/Form/InputDate.d.ts +1 -0
  80. package/dist/plugin/Form/InputDateRange.d.ts +1 -0
  81. package/dist/plugin/Form/InputDateTime.d.ts +1 -0
  82. package/dist/plugin/Form/InputDateTimeRange.d.ts +1 -0
  83. package/dist/plugin/Form/InputEmail.d.ts +1 -0
  84. package/dist/plugin/Form/InputExcel.d.ts +1 -0
  85. package/dist/plugin/Form/InputFile.d.ts +1 -0
  86. package/dist/plugin/Form/InputGroup.d.ts +1 -2
  87. package/dist/plugin/Form/InputImage.d.ts +1 -0
  88. package/dist/plugin/Form/InputKV.d.ts +1 -0
  89. package/dist/plugin/Form/InputMonth.d.ts +1 -0
  90. package/dist/plugin/Form/InputMonthRange.d.ts +1 -0
  91. package/dist/plugin/Form/InputNumber.d.ts +1 -0
  92. package/dist/plugin/Form/InputPassword.d.ts +1 -0
  93. package/dist/plugin/Form/InputQuarter.d.ts +1 -0
  94. package/dist/plugin/Form/InputQuarterRange.d.ts +1 -0
  95. package/dist/plugin/Form/InputRange.d.ts +1 -0
  96. package/dist/plugin/Form/InputRating.d.ts +2 -1
  97. package/dist/plugin/Form/InputRepeat.d.ts +1 -0
  98. package/dist/plugin/Form/InputRichText.d.ts +1 -0
  99. package/dist/plugin/Form/InputSubForm.d.ts +1 -0
  100. package/dist/plugin/Form/InputTable.d.ts +1 -1
  101. package/dist/plugin/Form/InputTag.d.ts +1 -0
  102. package/dist/plugin/Form/InputText.d.ts +1 -0
  103. package/dist/plugin/Form/InputTime.d.ts +1 -0
  104. package/dist/plugin/Form/InputTree.d.ts +1 -0
  105. package/dist/plugin/Form/InputURL.d.ts +1 -0
  106. package/dist/plugin/Form/InputYear.d.ts +1 -0
  107. package/dist/plugin/Form/ListSelect.d.ts +1 -0
  108. package/dist/plugin/Form/LocationPicker.d.ts +1 -0
  109. package/dist/plugin/Form/MatrixCheckboxes.d.ts +1 -0
  110. package/dist/plugin/Form/NestedSelect.d.ts +1 -0
  111. package/dist/plugin/Form/Picker.d.ts +1 -0
  112. package/dist/plugin/Form/Radios.d.ts +1 -0
  113. package/dist/plugin/Form/Select.d.ts +1 -0
  114. package/dist/plugin/Form/Static.d.ts +1 -1
  115. package/dist/plugin/Form/Switch.d.ts +1 -0
  116. package/dist/plugin/Form/TabsTransfer.d.ts +1 -0
  117. package/dist/plugin/Form/Textarea.d.ts +1 -0
  118. package/dist/plugin/Form/Transfer.d.ts +1 -0
  119. package/dist/plugin/Form/TreeSelect.d.ts +1 -0
  120. package/dist/plugin/Form/UUID.d.ts +1 -0
  121. package/dist/plugin/Grid.d.ts +1 -0
  122. package/dist/plugin/HBox.d.ts +1 -1
  123. package/dist/plugin/IFrame.d.ts +1 -0
  124. package/dist/plugin/Image.d.ts +1 -0
  125. package/dist/plugin/Images.d.ts +1 -0
  126. package/dist/plugin/Json.d.ts +1 -0
  127. package/dist/plugin/Link.d.ts +1 -0
  128. package/dist/plugin/List.d.ts +1 -0
  129. package/dist/plugin/ListItem.d.ts +1 -1
  130. package/dist/plugin/Log.d.ts +1 -0
  131. package/dist/plugin/Mapping.d.ts +1 -0
  132. package/dist/plugin/Markdown.d.ts +1 -0
  133. package/dist/plugin/Nav.d.ts +1 -0
  134. package/dist/plugin/Operation.d.ts +1 -0
  135. package/dist/plugin/Others/Action.d.ts +8 -0
  136. package/dist/plugin/Others/BasicToolbar.d.ts +11 -0
  137. package/dist/plugin/Others/DataDebug.d.ts +19 -0
  138. package/dist/plugin/Others/TableCell.d.ts +8 -0
  139. package/dist/plugin/Others/Unknown.d.ts +5 -0
  140. package/dist/plugin/Page.d.ts +1 -0
  141. package/dist/plugin/Panel/AvailableRenderers.d.ts +8 -0
  142. package/dist/plugin/Panel/Code.d.ts +9 -0
  143. package/dist/plugin/Panel/Name.d.ts +8 -0
  144. package/dist/plugin/Panel.d.ts +16 -3
  145. package/dist/plugin/Plain.d.ts +1 -0
  146. package/dist/plugin/Progress.d.ts +1 -0
  147. package/dist/plugin/Property.d.ts +1 -0
  148. package/dist/plugin/QRCode.d.ts +1 -0
  149. package/dist/plugin/Reset.d.ts +1 -0
  150. package/dist/plugin/Service.d.ts +1 -0
  151. package/dist/plugin/Sparkline.d.ts +1 -0
  152. package/dist/plugin/Status.d.ts +1 -0
  153. package/dist/plugin/Steps.d.ts +1 -0
  154. package/dist/plugin/Submit.d.ts +1 -0
  155. package/dist/plugin/Table.d.ts +1 -0
  156. package/dist/plugin/TableCell.d.ts +0 -1
  157. package/dist/plugin/TableView.d.ts +1 -0
  158. package/dist/plugin/Tabs.d.ts +1 -0
  159. package/dist/plugin/Tasks.d.ts +1 -0
  160. package/dist/plugin/Time.d.ts +1 -0
  161. package/dist/plugin/Tpl.d.ts +1 -0
  162. package/dist/plugin/Video.d.ts +1 -0
  163. package/dist/plugin/WebComponent.d.ts +3 -26
  164. package/dist/plugin/Wizard.d.ts +1 -0
  165. package/dist/plugin/Wrapper.d.ts +1 -0
  166. package/dist/plugin.d.ts +18 -5
  167. package/dist/store/editor.d.ts +54 -4
  168. package/dist/style.css +1 -1
  169. package/dist/util.d.ts +7 -2
  170. package/package.json +23 -15
  171. package/static/side_hide_left.svg +10 -0
  172. package/.editorconfig +0 -12
  173. package/.fecsrc +0 -8
  174. package/.prettierrc +0 -20
  175. package/publish-local.sh +0 -37
  176. package/rollup.config.js +0 -24
@@ -3,6 +3,7 @@ export declare class PropertyPlugin 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 QRCodePlugin 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 @@ export declare class ResetPlugin extends ButtonPlugin {
3
3
  rendererName: string;
4
4
  disabledRendererPlugin: boolean;
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 ServicePlugin 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;
@@ -6,6 +6,7 @@ export declare class SparklinePlugin extends BasePlugin {
6
6
  rendererName: string;
7
7
  $schema: string;
8
8
  name: string;
9
+ isBaseComponent: boolean;
9
10
  description: string;
10
11
  tags: string[];
11
12
  icon: string;
@@ -3,6 +3,7 @@ export declare class StatusPlugin 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 @@ 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;
@@ -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
  }
@@ -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;
@@ -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
  /**
@@ -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
- * 配置了这个后会自动添加多个 panel 面板来编辑。
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: string;
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> & Pick<ToolbarItem, 'icon'>;
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;
@@ -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,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
- getSubRendererById(id: string): SubRendererInfo | undefined;
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, force?: boolean): void;
885
- changeLeftPanelKey(key: string, force?: boolean): void;
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;