amis-editor 3.3.11 → 4.0.1-beta.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/150a58f3318ca7541ed9.png +0 -0
- package/dist/471adb97c322b226e589.png +0 -0
- package/dist/4de5f42360bc5946c3c2.png +0 -0
- package/dist/4e9968bba3855f088fed.png +0 -0
- package/dist/7f09c38ebc687fea847a.png +0 -0
- package/dist/c94073576487510314ea.png +0 -0
- package/dist/cebfe0bc5a1dbde02da1.svg +10 -0
- package/dist/component/AvailableRenderersPanel.d.ts +13 -1
- package/dist/component/BackTop.d.ts +26 -0
- package/dist/component/Breadcrumb.d.ts +1 -1
- package/dist/component/ContextMenuPanel.d.ts +8 -0
- package/dist/component/Control/APIControl.d.ts +540 -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/InputComponentName.d.ts +8 -0
- package/dist/component/Outline.d.ts +6 -0
- package/dist/component/Panel/AMisCodeEditor.d.ts +37 -0
- package/dist/component/Panel/AvailableRenderersPanel.d.ts +20 -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/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/RightPanels.d.ts +21 -0
- package/dist/component/Panel/TargetNamePanel.d.ts +7 -0
- package/dist/component/Preview.d.ts +2 -0
- package/dist/component/RegionHLBox.d.ts +1 -8
- 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 +51 -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/dnd/default.d.ts +1 -1
- package/dist/dnd/index.d.ts +1 -1
- package/dist/index.d.ts +12 -10
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +16 -9
- package/dist/plugin/BasicToolbar.d.ts +1 -1
- package/dist/plugin/Card.d.ts +0 -1
- package/dist/plugin/Date.d.ts +1 -0
- package/dist/plugin/Datetime.d.ts +3 -0
- package/dist/plugin/Flex.d.ts +0 -1
- package/dist/plugin/Form/CodeEditor.d.ts +39 -0
- package/dist/plugin/Form/FieldSet.d.ts +1 -0
- package/dist/plugin/Form/Group.d.ts +1 -0
- package/dist/plugin/Form/InputGroup.d.ts +0 -2
- package/dist/plugin/Form/InputTable.d.ts +0 -1
- package/dist/plugin/Form/Item.d.ts +1 -1
- package/dist/plugin/Form/Static.d.ts +0 -1
- package/dist/plugin/Grid.d.ts +17 -20
- package/dist/plugin/HBox.d.ts +1 -1
- package/dist/plugin/ListItem.d.ts +0 -1
- package/dist/plugin/Log.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 +15 -3
- package/dist/plugin/Plain.d.ts +1 -0
- package/dist/plugin/Reset.d.ts +1 -0
- package/dist/plugin/Steps.d.ts +1 -7
- package/dist/plugin/Submit.d.ts +1 -0
- package/dist/plugin/TableCell.d.ts +0 -1
- package/dist/plugin/Time.d.ts +3 -0
- package/dist/plugin/WebComponent.d.ts +1 -0
- package/dist/plugin/Wrapper.d.ts +1 -0
- package/dist/plugin.d.ts +22 -3
- package/dist/store/editor.d.ts +17 -3
- package/dist/style.css +1 -1
- package/dist/util.d.ts +2 -2
- package/package.json +26 -16
- package/static/Code-hover.png +0 -0
- package/static/Code.png +0 -0
- package/static/Outline-hover.png +0 -0
- package/static/Outline.png +0 -0
- package/static/Renderers-hover.png +0 -0
- package/static/Renderers.png +0 -0
- package/static/side_hide_left.svg +10 -0
- package/.editorconfig +0 -12
- package/.fecsrc +0 -8
- package/.prettierrc +0 -20
- package/dist/plugin/Form/Color.d.ts +0 -39
- package/dist/plugin/Form/Reset.d.ts +0 -7
- package/dist/plugin/Form/Submit.d.ts +0 -6
- package/rollup.config.js +0 -24
@@ -0,0 +1,150 @@
|
|
1
|
+
/**
|
2
|
+
* @description 信息提示组件模版
|
3
|
+
* @file src/component/remarkTpl.tsx
|
4
|
+
* @author hanxiao11@baidu.com
|
5
|
+
*/
|
6
|
+
export default function remarkTpl(config: {
|
7
|
+
name: 'remark' | 'labelRemark';
|
8
|
+
label: string;
|
9
|
+
}): {
|
10
|
+
type: string;
|
11
|
+
label: string;
|
12
|
+
mode: string;
|
13
|
+
className: string;
|
14
|
+
labelRemark: {
|
15
|
+
icon: string;
|
16
|
+
trigger: string[];
|
17
|
+
setting: boolean;
|
18
|
+
title: string;
|
19
|
+
content: string;
|
20
|
+
placement: string;
|
21
|
+
};
|
22
|
+
body: {
|
23
|
+
type: string;
|
24
|
+
className: string;
|
25
|
+
body: ({
|
26
|
+
type: string;
|
27
|
+
name: "remark" | "labelRemark";
|
28
|
+
label: string;
|
29
|
+
btnLabel: string;
|
30
|
+
visibleOn: string;
|
31
|
+
className: string;
|
32
|
+
itemClassName: string;
|
33
|
+
icon: string;
|
34
|
+
form: {
|
35
|
+
title: string;
|
36
|
+
mode: string;
|
37
|
+
size: string;
|
38
|
+
body: {
|
39
|
+
type: string;
|
40
|
+
columns: ({
|
41
|
+
md: string;
|
42
|
+
body: ({
|
43
|
+
name: string;
|
44
|
+
type: string;
|
45
|
+
label: string;
|
46
|
+
placeholder: string;
|
47
|
+
} | {
|
48
|
+
name: string;
|
49
|
+
type: string;
|
50
|
+
label: string;
|
51
|
+
placeholder?: undefined;
|
52
|
+
})[];
|
53
|
+
} | {
|
54
|
+
md: string;
|
55
|
+
body: ({
|
56
|
+
name: string;
|
57
|
+
type: string;
|
58
|
+
size: string;
|
59
|
+
label: string;
|
60
|
+
options: {
|
61
|
+
label: string;
|
62
|
+
value: string;
|
63
|
+
}[];
|
64
|
+
labelRemark?: undefined;
|
65
|
+
multiple?: undefined;
|
66
|
+
pipeIn?: undefined;
|
67
|
+
pipeOut?: undefined;
|
68
|
+
visibleOn?: undefined;
|
69
|
+
} | {
|
70
|
+
name: string;
|
71
|
+
label: string;
|
72
|
+
type: string;
|
73
|
+
size?: undefined;
|
74
|
+
options?: undefined;
|
75
|
+
labelRemark?: undefined;
|
76
|
+
multiple?: undefined;
|
77
|
+
pipeIn?: undefined;
|
78
|
+
pipeOut?: undefined;
|
79
|
+
visibleOn?: undefined;
|
80
|
+
} | {
|
81
|
+
name: string;
|
82
|
+
label: string;
|
83
|
+
type: string;
|
84
|
+
labelRemark: {
|
85
|
+
trigger: string;
|
86
|
+
className: string;
|
87
|
+
rootClose: boolean;
|
88
|
+
content: string;
|
89
|
+
placement: string;
|
90
|
+
};
|
91
|
+
size?: undefined;
|
92
|
+
options?: undefined;
|
93
|
+
multiple?: undefined;
|
94
|
+
pipeIn?: undefined;
|
95
|
+
pipeOut?: undefined;
|
96
|
+
visibleOn?: undefined;
|
97
|
+
} | {
|
98
|
+
name: string;
|
99
|
+
type: string;
|
100
|
+
label: string;
|
101
|
+
multiple: boolean;
|
102
|
+
pipeIn: (value: any) => string | never[];
|
103
|
+
pipeOut: (value: any) => any;
|
104
|
+
options: {
|
105
|
+
label: string;
|
106
|
+
value: string;
|
107
|
+
}[];
|
108
|
+
size?: undefined;
|
109
|
+
labelRemark?: undefined;
|
110
|
+
visibleOn?: undefined;
|
111
|
+
} | {
|
112
|
+
name: string;
|
113
|
+
visibleOn: string;
|
114
|
+
label: string;
|
115
|
+
type: string;
|
116
|
+
size?: undefined;
|
117
|
+
options?: undefined;
|
118
|
+
labelRemark?: undefined;
|
119
|
+
multiple?: undefined;
|
120
|
+
pipeIn?: undefined;
|
121
|
+
pipeOut?: undefined;
|
122
|
+
})[];
|
123
|
+
})[];
|
124
|
+
};
|
125
|
+
};
|
126
|
+
mode?: undefined;
|
127
|
+
pipeIn?: undefined;
|
128
|
+
pipeOut?: undefined;
|
129
|
+
} | {
|
130
|
+
type: string;
|
131
|
+
name: "remark" | "labelRemark";
|
132
|
+
mode: string;
|
133
|
+
pipeIn: (value: any) => boolean;
|
134
|
+
pipeOut: (value: any) => {
|
135
|
+
icon: string;
|
136
|
+
trigger: string[];
|
137
|
+
className: string;
|
138
|
+
setting: boolean;
|
139
|
+
placement: string;
|
140
|
+
} | null;
|
141
|
+
label?: undefined;
|
142
|
+
btnLabel?: undefined;
|
143
|
+
visibleOn?: undefined;
|
144
|
+
className?: undefined;
|
145
|
+
itemClassName?: undefined;
|
146
|
+
icon?: undefined;
|
147
|
+
form?: undefined;
|
148
|
+
})[];
|
149
|
+
}[];
|
150
|
+
};
|
package/dist/dnd/default.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { DNDModeInterface } from './interface';
|
|
4
4
|
export declare class DefaultDNDMode implements DNDModeInterface {
|
5
5
|
readonly dnd: EditorDNDManager;
|
6
6
|
readonly region: EditorNodeType;
|
7
|
-
readonly
|
7
|
+
readonly dndContainer: HTMLElement;
|
8
8
|
dropBeforeId?: string;
|
9
9
|
constructor(dnd: EditorDNDManager, region: EditorNodeType);
|
10
10
|
/**
|
package/dist/dnd/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
@@ -3,9 +3,13 @@
|
|
3
3
|
*/
|
4
4
|
import Editor from './component/Editor';
|
5
5
|
import './component/ClassNameControl';
|
6
|
-
import './
|
7
|
-
import './
|
8
|
-
import './
|
6
|
+
import './component/Control/OptionControl';
|
7
|
+
import './component/Control/APIControl';
|
8
|
+
import './component/Control/ValidationControl';
|
9
|
+
import './component/Control/PopoverEdit';
|
10
|
+
import './plugin/Panel/AvailableRenderers';
|
11
|
+
import './plugin/Panel/Code';
|
12
|
+
import './plugin/Panel/Name';
|
9
13
|
import './plugin/ErrorRenderer';
|
10
14
|
import './plugin/BasicToolbar';
|
11
15
|
import './plugin/Unknown';
|
@@ -25,7 +29,7 @@ import './plugin/Form/InputDateRange';
|
|
25
29
|
import './plugin/Form/InputDateTime';
|
26
30
|
import './plugin/Form/InputDateTimeRange';
|
27
31
|
import './plugin/Form/DiffEditor';
|
28
|
-
import './plugin/Form/
|
32
|
+
import './plugin/Form/CodeEditor';
|
29
33
|
import './plugin/Form/InputEmail';
|
30
34
|
import './plugin/Form/FieldSet';
|
31
35
|
import './plugin/Form/InputFile';
|
@@ -52,12 +56,10 @@ import './plugin/Form/Radios';
|
|
52
56
|
import './plugin/Form/InputRange';
|
53
57
|
import './plugin/Form/InputRating';
|
54
58
|
import './plugin/Form/InputRepeat';
|
55
|
-
import './plugin/Form/Reset';
|
56
59
|
import './plugin/Form/InputRichText';
|
57
60
|
import './plugin/Form/Select';
|
58
61
|
import './plugin/Form/Static';
|
59
62
|
import './plugin/Form/InputSubForm';
|
60
|
-
import './plugin/Form/Submit';
|
61
63
|
import './plugin/Form/Switch';
|
62
64
|
import './plugin/Form/InputTable';
|
63
65
|
import './plugin/Form/InputTag';
|
@@ -138,17 +140,17 @@ import './plugin/WebComponent';
|
|
138
140
|
import './plugin/DataDebug';
|
139
141
|
import * as utils from './util';
|
140
142
|
import { getSchemaTpl, defaultValue, setSchemaTpl } from './component/schemaTpl';
|
141
|
-
import { registerEditorPlugin } from './manager';
|
143
|
+
import { registerEditorPlugin, unRegisterEditorPlugin } from './manager';
|
142
144
|
import { BasePlugin } from './plugin';
|
143
145
|
import { BasicEditor, RendererEditor } from './compat';
|
144
146
|
import MiniEditor from './component/MiniEditor';
|
145
|
-
import CodeEditor from './component/
|
147
|
+
import CodeEditor from './component/Panel/AMisCodeEditor';
|
146
148
|
import IFramePreview from './component/IFramePreview';
|
147
149
|
import { mountInIframe } from './component/IFrameBridge';
|
148
|
-
import { AvailableRenderersPlugin } from './plugin/AvailableRenderers';
|
150
|
+
import { AvailableRenderersPlugin } from './plugin/Panel/AvailableRenderers';
|
149
151
|
import { BasicToolbarPlugin } from './plugin/BasicToolbar';
|
150
152
|
import { VRenderer } from './component/VRenderer';
|
151
153
|
import { RegionWrapper } from './component/RegionWrapper';
|
152
154
|
import { GridPlugin } from './plugin/Grid';
|
153
155
|
import { mapReactElement } from './component/factory';
|
154
|
-
export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };
|
156
|
+
export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, unRegisterEditorPlugin, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };
|