amis-editor-core 6.8.0 → 6.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/component/Editor.d.ts +2 -0
- package/esm/component/Preview.d.ts +1 -0
- package/esm/component/RegionWrapper.d.ts +2 -2
- package/esm/component/SubEditor.d.ts +14 -2
- package/esm/component/VRenderer.d.ts +2 -2
- package/esm/component/base/SchemaForm.d.ts +2 -1
- package/esm/component/factory.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +10 -10
- package/esm/manager.d.ts +4 -4
- package/esm/plugin.d.ts +1 -0
- package/esm/store/editor.d.ts +61 -32
- package/esm/store/node.d.ts +3 -3
- package/esm/util.d.ts +12 -1
- package/lib/component/Editor.d.ts +2 -0
- package/lib/component/Preview.d.ts +1 -0
- package/lib/component/RegionWrapper.d.ts +2 -2
- package/lib/component/SubEditor.d.ts +14 -2
- package/lib/component/VRenderer.d.ts +2 -2
- package/lib/component/base/SchemaForm.d.ts +2 -1
- package/lib/component/factory.d.ts +1 -1
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +11 -10
- package/lib/manager.d.ts +4 -4
- package/lib/plugin.d.ts +1 -0
- package/lib/store/editor.d.ts +61 -32
- package/lib/store/node.d.ts +3 -3
- package/lib/style.css +1 -1
- package/lib/util.d.ts +12 -1
- package/package.json +1 -1
- package/static/check.svg +1 -16
- package/static/search.svg +1 -8
- package/static/side_hide_left.svg +1 -10
package/lib/util.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { VariableItem } from 'amis-ui';
|
|
|
4
4
|
import { Diff } from 'deep-diff';
|
|
5
5
|
import { EditorModalBody } from './store/editor';
|
|
6
6
|
import type { SchemaType } from 'amis/lib/Schema';
|
|
7
|
+
import type { DialogSchema } from 'amis/lib/renderers/Dialog';
|
|
8
|
+
import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
|
|
7
9
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
8
10
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
9
11
|
export declare let themeConfig: any;
|
|
@@ -196,7 +198,16 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
196
198
|
*/
|
|
197
199
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
198
200
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
199
|
-
export declare function getModals(schema: any):
|
|
201
|
+
export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
|
|
202
|
+
/**
|
|
203
|
+
* 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
|
|
204
|
+
* @param target
|
|
205
|
+
* @param path
|
|
206
|
+
* @param numberToDelete
|
|
207
|
+
* @param items
|
|
208
|
+
* @returns
|
|
209
|
+
*/
|
|
210
|
+
export declare function deepSplice(target: any, path: string, numberToDelete: number, ...items: any[]): any;
|
|
200
211
|
export declare const RAW_TYPE_MAP: {
|
|
201
212
|
[k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
|
|
202
213
|
};
|
package/package.json
CHANGED
package/static/check.svg
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>编组 2</title>
|
|
4
|
-
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="补充滚动出现阴影样式" transform="translate(-404.000000, -558.000000)">
|
|
6
|
-
<g id="编组-42备份-3" transform="translate(212.000000, 163.000000)">
|
|
7
|
-
<g id="编组-43" transform="translate(25.000000, 101.000000)">
|
|
8
|
-
<g id="编组-2" transform="translate(167.000000, 294.000000)">
|
|
9
|
-
<rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="15" height="15"></rect>
|
|
10
|
-
<path d="M13.5204,4.00008 L14.2274,4.70608 L7.155,11.77708 L7.157,11.77828 L6.449,12.48528 L1.5,7.53528 L2.206,6.82928 L6.448,11.07108 L13.5204,4.00008 Z" id="图标-填色" fill="#2468F2"></path>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
</g>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|
|
1
|
+
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m13.52 4 .707.706-7.072 7.071.002.001-.708.707L1.5 7.535l.706-.706 4.242 4.242 7.072-7.07Z" fill="#2468F2" fill-rule="evenodd"/></svg>
|
package/static/search.svg
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>4.图标元件/7.通用/搜索</title>
|
|
4
|
-
<g id="4.图标元件/7.通用/搜索" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<rect id="0" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="15" height="15"></rect>
|
|
6
|
-
<path d="M7.5,12 C5.019,12 3,9.981 3,7.5 C3,5.019 5.019,3 7.5,3 C9.981,3 12,5.019 12,7.5 C12,9.981 9.981,12 7.5,12 L7.5,12 Z M13.794,13.089 L11.723,11.019 C12.519,10.063 13,8.837 13,7.5 C13,4.468 10.533,2 7.5,2 C4.467,2 2,4.468 2,7.5 C2,10.532 4.467,13 7.5,13 C8.836,13 10.062,12.521 11.016,11.726 L13.087,13.797 L13.794,13.089 Z" id="图标-填色" fill="#080E1A"></path>
|
|
7
|
-
</g>
|
|
8
|
-
</svg>
|
|
1
|
+
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 12A4.505 4.505 0 0 1 3 7.5C3 5.019 5.019 3 7.5 3S12 5.019 12 7.5 9.981 12 7.5 12Zm6.294 1.089-2.071-2.07A5.482 5.482 0 0 0 13 7.5C13 4.468 10.533 2 7.5 2A5.506 5.506 0 0 0 2 7.5C2 10.532 4.467 13 7.5 13a5.475 5.475 0 0 0 3.516-1.274l2.071 2.071.707-.708Z" fill="#080E1A" fill-rule="evenodd"/></svg>
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<svg width="6px" height="8px" viewBox="0 0 6 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<g id="折叠icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
4
|
-
<g id="折叠icon svg" transform="translate(-305.000000, -566.000000)" fill="#A1A6B3" fill-rule="nonzero">
|
|
5
|
-
<g id="折叠icon svg g" transform="translate(60.000000, 60.000000)">
|
|
6
|
-
<path d="M245.77735,506.518233 L250.375962,509.583975 C250.605727,509.737151 250.667814,510.047586 250.514637,510.27735 C250.47802,510.332276 250.430888,510.379408 250.375962,510.416025 L245.77735,513.481767 C245.547586,513.634943 245.237151,513.572856 245.083975,513.343092 C245.029219,513.260958 245,513.164454 245,513.065741 L245,506.934259 C245,506.658116 245.223858,506.434259 245.5,506.434259 C245.598712,506.434259 245.695216,506.463478 245.77735,506.518233 Z" id="矩形" transform="translate(248.000000, 510.000000) scale(-1, 1) translate(-248.000000, -510.000000) "></path>
|
|
7
|
-
</g>
|
|
8
|
-
</g>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
1
|
+
<svg width="6" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M5.223.518.624 3.584a.5.5 0 0 0 0 .832l4.599 3.066A.5.5 0 0 0 6 7.066V.934a.5.5 0 0 0-.777-.416Z" fill="#A1A6B3"/></svg>
|