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.
Files changed (175) hide show
  1. package/dist/Animation.d.ts +22 -0
  2. package/dist/BasicContainerEditor.d.ts +46 -0
  3. package/dist/BasicEditor.d.ts +214 -0
  4. package/dist/Breadcrumb.d.ts +19 -0
  5. package/dist/ClassNameControl.d.ts +31 -0
  6. package/dist/CodeEditor.d.ts +34 -0
  7. package/dist/Editor.d.ts +251 -0
  8. package/dist/HighlightBox.d.ts +17 -0
  9. package/dist/MiniEditor.d.ts +9 -0
  10. package/dist/Outline.d.ts +38 -0
  11. package/dist/PositionRegion.d.ts +7 -0
  12. package/dist/Preview.d.ts +76 -0
  13. package/dist/Region.d.ts +61 -0
  14. package/dist/RendererThumb.d.ts +23 -0
  15. package/dist/Renderers.d.ts +39 -0
  16. package/dist/RenderersPicker.d.ts +28 -0
  17. package/dist/SettingForm.d.ts +20 -0
  18. package/dist/Settings.d.ts +58 -0
  19. package/dist/component/ScaffoldModal.d.ts +1 -1
  20. package/dist/dom-helper.d.ts +2 -0
  21. package/dist/editors/Action.d.ts +14 -0
  22. package/dist/editors/Alert.d.ts +11 -0
  23. package/dist/editors/Audio.d.ts +9 -0
  24. package/dist/editors/ButtonGroup.d.ts +15 -0
  25. package/dist/editors/ButtonToolbar.d.ts +7 -0
  26. package/dist/editors/CRUD.d.ts +27 -0
  27. package/dist/editors/Card.d.ts +47 -0
  28. package/dist/editors/Cards.d.ts +20 -0
  29. package/dist/editors/Carousel.d.ts +9 -0
  30. package/dist/editors/Chart.d.ts +13 -0
  31. package/dist/editors/Collapse.d.ts +13 -0
  32. package/dist/editors/Container.d.ts +13 -0
  33. package/dist/editors/Date.d.ts +18 -0
  34. package/dist/editors/Dialog.d.ts +27 -0
  35. package/dist/editors/DiffEditor.d.ts +8 -0
  36. package/dist/editors/Divdier.d.ts +8 -0
  37. package/dist/editors/Drawer.d.ts +26 -0
  38. package/dist/editors/DropDownButton.d.ts +16 -0
  39. package/dist/editors/Each.d.ts +16 -0
  40. package/dist/editors/Form/Array.d.ts +12 -0
  41. package/dist/editors/Form/Button.d.ts +13 -0
  42. package/dist/editors/Form/ButtonGroup.d.ts +17 -0
  43. package/dist/editors/Form/ButtonToolbar.d.ts +15 -0
  44. package/dist/editors/Form/ChainedSelect.d.ts +8 -0
  45. package/dist/editors/Form/Checkbox.d.ts +8 -0
  46. package/dist/editors/Form/Checkboxes.d.ts +8 -0
  47. package/dist/editors/Form/City.d.ts +8 -0
  48. package/dist/editors/Form/Color.d.ts +8 -0
  49. package/dist/editors/Form/Combo.d.ts +19 -0
  50. package/dist/editors/Form/Container.d.ts +22 -0
  51. package/dist/editors/Form/Control.d.ts +15 -0
  52. package/dist/editors/Form/Date.d.ts +9 -0
  53. package/dist/editors/Form/DateRange.d.ts +9 -0
  54. package/dist/editors/Form/Datetime.d.ts +9 -0
  55. package/dist/editors/Form/DiffEditor.d.ts +8 -0
  56. package/dist/editors/Form/Editor.d.ts +12 -0
  57. package/dist/editors/Form/Email.d.ts +8 -0
  58. package/dist/editors/Form/FieldSet.d.ts +22 -0
  59. package/dist/editors/Form/File.d.ts +8 -0
  60. package/dist/editors/Form/Form.d.ts +26 -0
  61. package/dist/editors/Form/Formula.d.ts +11 -0
  62. package/dist/editors/Form/Grid.d.ts +21 -0
  63. package/dist/editors/Form/Group.d.ts +21 -0
  64. package/dist/editors/Form/HBox.d.ts +20 -0
  65. package/dist/editors/Form/Hidden.d.ts +21 -0
  66. package/dist/editors/Form/Image.d.ts +8 -0
  67. package/dist/editors/Form/InputGroup.d.ts +12 -0
  68. package/dist/editors/Form/Item.d.ts +8 -0
  69. package/dist/editors/Form/List.d.ts +16 -0
  70. package/dist/editors/Form/Matrix.d.ts +8 -0
  71. package/dist/editors/Form/NestedSelect.d.ts +50 -0
  72. package/dist/editors/Form/Number.d.ts +8 -0
  73. package/dist/editors/Form/Panel.d.ts +22 -0
  74. package/dist/editors/Form/Password.d.ts +10 -0
  75. package/dist/editors/Form/Picker.d.ts +17 -0
  76. package/dist/editors/Form/QRCode.d.ts +8 -0
  77. package/dist/editors/Form/Radios.d.ts +8 -0
  78. package/dist/editors/Form/Range.d.ts +8 -0
  79. package/dist/editors/Form/Rating.d.ts +8 -0
  80. package/dist/editors/Form/Repeat.d.ts +8 -0
  81. package/dist/editors/Form/Reset.d.ts +8 -0
  82. package/dist/editors/Form/RichText.d.ts +8 -0
  83. package/dist/editors/Form/Select.d.ts +8 -0
  84. package/dist/editors/Form/Service.d.ts +25 -0
  85. package/dist/editors/Form/Static.d.ts +18 -0
  86. package/dist/editors/Form/SubForm.d.ts +12 -0
  87. package/dist/editors/Form/Submit.d.ts +9 -0
  88. package/dist/editors/Form/Switch.d.ts +8 -0
  89. package/dist/editors/Form/Tab.d.ts +12 -0
  90. package/dist/editors/Form/Table.d.ts +25 -0
  91. package/dist/editors/Form/Tabs.d.ts +6 -0
  92. package/dist/editors/Form/Tag.d.ts +10 -0
  93. package/dist/editors/Form/Text.d.ts +10 -0
  94. package/dist/editors/Form/Textarea.d.ts +8 -0
  95. package/dist/editors/Form/Time.d.ts +9 -0
  96. package/dist/editors/Form/Tree.d.ts +50 -0
  97. package/dist/editors/Form/TreeSelect.d.ts +50 -0
  98. package/dist/editors/Form/Url.d.ts +8 -0
  99. package/dist/editors/Grid.d.ts +16 -0
  100. package/dist/editors/HBox.d.ts +13 -0
  101. package/dist/editors/IFrame.d.ts +11 -0
  102. package/dist/editors/Image.d.ts +9 -0
  103. package/dist/editors/Json.d.ts +9 -0
  104. package/dist/editors/Link.d.ts +8 -0
  105. package/dist/editors/List.d.ts +70 -0
  106. package/dist/editors/Mapping.d.ts +9 -0
  107. package/dist/editors/Nav.d.ts +142 -0
  108. package/dist/editors/Operation.d.ts +17 -0
  109. package/dist/editors/Page.d.ts +15 -0
  110. package/dist/editors/Panel.d.ts +13 -0
  111. package/dist/editors/Plain.d.ts +9 -0
  112. package/dist/editors/Progress.d.ts +9 -0
  113. package/dist/editors/QRCode.d.ts +8 -0
  114. package/dist/editors/Service.d.ts +5 -0
  115. package/dist/editors/Status.d.ts +9 -0
  116. package/dist/editors/Switch.d.ts +9 -0
  117. package/dist/editors/Tab.d.ts +13 -0
  118. package/dist/editors/Table.d.ts +27 -0
  119. package/dist/editors/TableCell.d.ts +29 -0
  120. package/dist/editors/TableColumnsRegion.d.ts +6 -0
  121. package/dist/editors/Tabs.d.ts +15 -0
  122. package/dist/editors/Tasks.d.ts +8 -0
  123. package/dist/editors/Tpl.d.ts +8 -0
  124. package/dist/editors/Video.d.ts +8 -0
  125. package/dist/editors/Wizard.d.ts +15 -0
  126. package/dist/editors/WizardStep.d.ts +19 -0
  127. package/dist/editors/Wrapper.d.ts +11 -0
  128. package/dist/editors/index.d.ts +101 -0
  129. package/dist/editors/templates.d.ts +3 -0
  130. package/dist/index.d.ts +2 -1
  131. package/dist/index.min.js +1 -1
  132. package/dist/json-ast/index.d.ts +53 -0
  133. package/dist/plugin/CRUD.d.ts +5 -16
  134. package/dist/plugin/DiffEditor.d.ts +19 -0
  135. package/dist/plugin/Form/AnchorNav.d.ts +17 -0
  136. package/dist/plugin/Form/Array.d.ts +27 -0
  137. package/dist/plugin/Form/Button.d.ts +11 -0
  138. package/dist/plugin/Form/ButtonGroup.d.ts +22 -0
  139. package/dist/plugin/Form/City.d.ts +19 -0
  140. package/dist/plugin/Form/Container.d.ts +37 -0
  141. package/dist/plugin/Form/Date.d.ts +20 -0
  142. package/dist/plugin/Form/DateRange.d.ts +20 -0
  143. package/dist/plugin/Form/DateTime.d.ts +19 -0
  144. package/dist/plugin/Form/Email.d.ts +25 -0
  145. package/dist/plugin/Form/File.d.ts +19 -0
  146. package/dist/plugin/Form/Form.d.ts +2 -1
  147. package/dist/plugin/Form/Grid.d.ts +32 -0
  148. package/dist/plugin/Form/HBox.d.ts +73 -0
  149. package/dist/plugin/Form/Image.d.ts +20 -0
  150. package/dist/plugin/Form/List.d.ts +24 -0
  151. package/dist/plugin/Form/Location.d.ts +48 -0
  152. package/dist/plugin/Form/Matrix.d.ts +26 -0
  153. package/dist/plugin/Form/Month.d.ts +16 -0
  154. package/dist/plugin/Form/MonthRange.d.ts +20 -0
  155. package/dist/plugin/Form/Number.d.ts +20 -0
  156. package/dist/plugin/Form/Panel.d.ts +24 -0
  157. package/dist/plugin/Form/Password.d.ts +25 -0
  158. package/dist/plugin/Form/QRCode.d.ts +20 -0
  159. package/dist/plugin/Form/Range.d.ts +19 -0
  160. package/dist/plugin/Form/Rating.d.ts +19 -0
  161. package/dist/plugin/Form/Repeat.d.ts +19 -0
  162. package/dist/plugin/Form/RichText.d.ts +19 -0
  163. package/dist/plugin/Form/Service.d.ts +24 -0
  164. package/dist/plugin/Form/SubForm.d.ts +64 -0
  165. package/dist/plugin/Form/Table.d.ts +34 -0
  166. package/dist/plugin/Form/Tabs.d.ts +17 -0
  167. package/dist/plugin/Form/Tag.d.ts +21 -0
  168. package/dist/plugin/Form/Text.d.ts +20 -0
  169. package/dist/plugin/Form/Time.d.ts +19 -0
  170. package/dist/plugin/Form/Tree.d.ts +73 -0
  171. package/dist/plugin/Form/Url.d.ts +25 -0
  172. package/dist/plugin/Form/Year.d.ts +16 -0
  173. package/dist/plugin/Switch.d.ts +21 -0
  174. package/dist/types.d.ts +40 -0
  175. package/package.json +20 -43
@@ -0,0 +1,53 @@
1
+ export interface JsonString {
2
+ type: 'string';
3
+ value: string;
4
+ }
5
+ export interface JsonNull {
6
+ type: 'null';
7
+ value: null;
8
+ }
9
+ export interface JsonBoolean {
10
+ type: 'boolean';
11
+ value: boolean;
12
+ }
13
+ export interface JsonNumber {
14
+ type: 'number';
15
+ value: number;
16
+ raw: string;
17
+ }
18
+ export interface JsonArray {
19
+ type: 'array';
20
+ members: Array<JsonComment | JsonValue>;
21
+ }
22
+ export declare type JsonValue = JsonString | JsonNull | JsonBoolean | JsonNumber | JsonObject | JsonArray;
23
+ export interface JsonProperty {
24
+ type: 'property';
25
+ key: Array<JsonString | JsonComment>;
26
+ value: Array<JsonValue | JsonComment>;
27
+ }
28
+ export interface JsonObject {
29
+ type: 'object';
30
+ members: Array<JsonProperty | JsonComment>;
31
+ }
32
+ export interface JsonComment {
33
+ type: 'comment';
34
+ value: string;
35
+ }
36
+ export interface JsonDocument {
37
+ type: 'document';
38
+ body: Array<JsonObject | JsonComment>;
39
+ }
40
+ export declare type JsonAst = JsonValue | JsonComment | JsonDocument;
41
+ export interface JsonCommentsObject {
42
+ [propName: string]: [Array<string>, Array<string>, Array<string>, Array<string>];
43
+ }
44
+ /**
45
+ * 解析 json 字符串,保留注释信息。
46
+ * @param text
47
+ */
48
+ export declare function parse(text: string): any;
49
+ /**
50
+ * 将 json 还原成字符串,保留注释信息。
51
+ * @param json
52
+ */
53
+ export declare function stringify(json: any): any;
@@ -16,16 +16,13 @@ export declare class CRUDPlugin extends BasePlugin {
16
16
  label: string;
17
17
  type: string;
18
18
  actionType: string;
19
+ level: string;
19
20
  dialog: {
20
21
  title: string;
21
22
  body: {
22
23
  type: string;
23
24
  api: string;
24
- body: {
25
- label: string;
26
- text: string;
27
- type: string;
28
- }[];
25
+ body: never[];
29
26
  };
30
27
  };
31
28
  };
@@ -39,11 +36,7 @@ export declare class CRUDPlugin extends BasePlugin {
39
36
  body: {
40
37
  type: string;
41
38
  api: string;
42
- body: {
43
- label: string;
44
- text: string;
45
- type: string;
46
- }[];
39
+ body: never[];
47
40
  };
48
41
  };
49
42
  };
@@ -56,11 +49,8 @@ export declare class CRUDPlugin extends BasePlugin {
56
49
  title: string;
57
50
  body: {
58
51
  type: string;
59
- body: {
60
- label: string;
61
- text: string;
62
- type: string;
63
- }[];
52
+ api: string;
53
+ body: never[];
64
54
  };
65
55
  };
66
56
  };
@@ -83,7 +73,6 @@ export declare class CRUDPlugin extends BasePlugin {
83
73
  };
84
74
  bulkUpdate: {
85
75
  type: string;
86
- level: string;
87
76
  label: string;
88
77
  actionType: string;
89
78
  dialog: {
@@ -0,0 +1,19 @@
1
+ import { BasePlugin } from '../plugin';
2
+ export declare class DiffEditorPlugin 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
+ label: string;
12
+ };
13
+ previewSchema: {
14
+ type: string;
15
+ label: string;
16
+ };
17
+ panelTitle: string;
18
+ panelControls: any[];
19
+ }
@@ -0,0 +1,17 @@
1
+ import { BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
2
+ import { AnchorNavPlugin } from '../AnchorNav';
3
+ export declare class AnchorNavControlPlugin extends AnchorNavPlugin {
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,27 @@
1
+ import { BaseEventContext, BasePlugin, BasicSubRenderInfo, BasicToolbarItem, ContextMenuEventContext, ContextMenuItem, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class ArrayControlPlugin 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
+ items: {
15
+ type: string;
16
+ placeholder: string;
17
+ };
18
+ };
19
+ previewSchema: any;
20
+ panelTitle: string;
21
+ panelControlsCreator: (context: BaseEventContext) => any[];
22
+ filterProps(props: any): any;
23
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
24
+ buildEditorToolbar({ id, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
25
+ buildEditorContextMenu({ id, schema, region, info }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
26
+ editDetail(id: string): void;
27
+ }
@@ -0,0 +1,11 @@
1
+ import { BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ import { ButtonPlugin } from '../Button';
3
+ export declare class ButtonControlPlugin extends ButtonPlugin {
4
+ rendererName: string;
5
+ $schema: string;
6
+ docLink: string;
7
+ tags: string[];
8
+ scaffold: any;
9
+ previewSchema: any;
10
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
11
+ }
@@ -0,0 +1,22 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class ButtonGroupControlPlugin 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
+ options: {
14
+ label: string;
15
+ value: string;
16
+ }[];
17
+ };
18
+ previewSchema: any;
19
+ panelTitle: string;
20
+ panelControls: any[];
21
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
22
+ }
@@ -0,0 +1,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class CityControlPlugin 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,37 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RegionConfig, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class ContainerControlPlugin 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
+ label: string;
14
+ controls: {
15
+ placeholder: string;
16
+ type: string;
17
+ name: string;
18
+ label: boolean;
19
+ }[];
20
+ };
21
+ previewSchema: any;
22
+ panelTitle: string;
23
+ panelControls: {
24
+ label: string;
25
+ name: string;
26
+ type: string;
27
+ size: string;
28
+ description: string;
29
+ pipeIn: (value: any, values: any) => "form" | "other";
30
+ onChange: (value: any, oldValue: any, model: any, form: any) => void;
31
+ options: {
32
+ label: string;
33
+ value: string;
34
+ }[];
35
+ }[];
36
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
37
+ }
@@ -0,0 +1,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class DateControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ order: number;
6
+ icon: string;
7
+ name: 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,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class DateRangeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ order: number;
6
+ icon: string;
7
+ name: 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 DateTimeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ icon: string;
6
+ name: 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,25 @@
1
+ import { TextControlPlugin } from './Text';
2
+ export declare class EmailControlPlugin 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,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class FileControlPlugin 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
+ }
@@ -1,5 +1,5 @@
1
1
  import { SchemaObject } from 'amis';
2
- import { BasePlugin, ChangeEventContext, BaseEventContext, PluginEvent, RegionConfig } from '../../plugin';
2
+ import { BasePlugin, ChangeEventContext, BaseEventContext, PluginEvent, RegionConfig, ScaffoldForm } from '../../plugin';
3
3
  export declare class FormPlugin extends BasePlugin {
4
4
  rendererName: string;
5
5
  $schema: string;
@@ -11,6 +11,7 @@ export declare class FormPlugin extends BasePlugin {
11
11
  icon: string;
12
12
  scaffold: SchemaObject;
13
13
  previewSchema: SchemaObject;
14
+ scaffoldForm: ScaffoldForm;
14
15
  regions: Array<RegionConfig>;
15
16
  panelTitle: string;
16
17
  panelBodyCreator: (context: BaseEventContext) => any[];
@@ -0,0 +1,32 @@
1
+ import { Schema } from 'amis/lib/types';
2
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
3
+ export declare class GridControlPlugin extends BasePlugin {
4
+ rendererName: string;
5
+ $schema: string;
6
+ icon: string;
7
+ name: string;
8
+ description: string;
9
+ docLink: string;
10
+ tags: string[];
11
+ scaffold: {
12
+ type: string;
13
+ label: string;
14
+ columns: {
15
+ controls: {
16
+ label: string;
17
+ name: string;
18
+ type: string;
19
+ }[];
20
+ }[];
21
+ };
22
+ previewSchema: any;
23
+ panelTitle: string;
24
+ panelControls: any[];
25
+ vRendererConfig: VRendererConfig;
26
+ vWrapperResolve: (dom: HTMLElement) => HTMLElement;
27
+ overrides: {
28
+ renderChild: (this: any, region: string, node: Schema, index: number, length: number) => any;
29
+ };
30
+ addControl(region: string, id: string): void;
31
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
32
+ }
@@ -0,0 +1,73 @@
1
+ import { Schema } from 'amis/lib/types';
2
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
3
+ export declare class HBoxControlPlugin 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
+ label: string;
14
+ columns: {
15
+ controls: {
16
+ label: string;
17
+ name: string;
18
+ type: string;
19
+ }[];
20
+ }[];
21
+ };
22
+ previewSchema: any;
23
+ panelTitle: string;
24
+ panelControls: ({
25
+ type: string;
26
+ name: string;
27
+ label: string;
28
+ multiple: boolean;
29
+ multiLine: boolean;
30
+ minLength: number;
31
+ draggable: boolean;
32
+ draggableTip: string;
33
+ addButtonText: string;
34
+ scaffold: {
35
+ controls: {
36
+ label: string;
37
+ name: string;
38
+ type: string;
39
+ }[];
40
+ };
41
+ strictMode: boolean;
42
+ controls: any[];
43
+ pipeIn?: undefined;
44
+ size?: undefined;
45
+ options?: undefined;
46
+ } | {
47
+ type: string;
48
+ name: string;
49
+ label: string;
50
+ pipeIn: (value: any) => any;
51
+ size: string;
52
+ options: {
53
+ value: string;
54
+ label: string;
55
+ }[];
56
+ multiple?: undefined;
57
+ multiLine?: undefined;
58
+ minLength?: undefined;
59
+ draggable?: undefined;
60
+ draggableTip?: undefined;
61
+ addButtonText?: undefined;
62
+ scaffold?: undefined;
63
+ strictMode?: undefined;
64
+ controls?: undefined;
65
+ })[];
66
+ vRendererConfig: VRendererConfig;
67
+ vWrapperResolve: (dom: HTMLElement) => HTMLElement;
68
+ overrides: {
69
+ renderChild: (this: any, region: string, node: Schema, index: number) => any;
70
+ };
71
+ addControl(region: string, id: string): void;
72
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
73
+ }
@@ -0,0 +1,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class ImageControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ description: string;
7
+ docLink: string;
8
+ tags: string[];
9
+ icon: string;
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ imageClassName: 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,24 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class ListControlPlugin 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: {
16
+ label: string;
17
+ value: 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,48 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class LocationControlPlugin 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
+ };
14
+ previewSchema: any;
15
+ panelTitle: string;
16
+ panelControls: ({
17
+ name: string;
18
+ label: string;
19
+ type: string;
20
+ mode: string;
21
+ className: string;
22
+ description?: undefined;
23
+ value?: undefined;
24
+ options?: undefined;
25
+ } | {
26
+ type: string;
27
+ name: string;
28
+ label: string;
29
+ description: string;
30
+ mode?: undefined;
31
+ className?: undefined;
32
+ value?: undefined;
33
+ options?: undefined;
34
+ } | {
35
+ type: string;
36
+ name: string;
37
+ label: string;
38
+ value: string;
39
+ options: {
40
+ label: string;
41
+ value: string;
42
+ }[];
43
+ mode?: undefined;
44
+ className?: undefined;
45
+ description?: undefined;
46
+ })[];
47
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
48
+ }
@@ -0,0 +1,26 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class MatrixControlPlugin 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
+ rowLabel: string;
15
+ columns: {
16
+ label: string;
17
+ }[];
18
+ rows: {
19
+ label: string;
20
+ }[];
21
+ };
22
+ previewSchema: any;
23
+ panelTitle: string;
24
+ panelControls: any[];
25
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
26
+ }
@@ -0,0 +1,16 @@
1
+ import { DateControlPlugin } from './Date';
2
+ export declare class MonthControlPlugin 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,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class MonthRangeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ order: number;
6
+ icon: string;
7
+ name: 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,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class NumberControlPlugin 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
+ }