amis-editor-core 6.9.0-rc.3 → 6.9.0-rc.5
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 +9 -1
- package/esm/component/ModalForm.d.ts +25 -0
- package/esm/component/Preview.d.ts +1 -0
- package/esm/index.js +2 -2
- package/esm/plugin.d.ts +2 -0
- package/esm/store/editor.d.ts +24 -39
- package/esm/util.d.ts +10 -3
- package/lib/component/Editor.d.ts +9 -1
- package/lib/component/ModalForm.d.ts +25 -0
- package/lib/component/Preview.d.ts +1 -0
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +0 -1
- package/lib/plugin.d.ts +2 -0
- package/lib/store/editor.d.ts +24 -40
- package/lib/style.css +1 -1
- package/lib/util.d.ts +11 -4
- package/package.json +1 -1
package/lib/util.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ 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';
|
|
9
7
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
10
8
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
11
9
|
export declare let themeConfig: any;
|
|
@@ -68,7 +66,7 @@ export declare function filterSchemaForConfig(schema: any, valueWithConfig?: any
|
|
|
68
66
|
*/
|
|
69
67
|
export declare function filterSchemaForEditor(schema: any): any;
|
|
70
68
|
export declare function blackList(list: Array<string>): (str: string) => boolean;
|
|
71
|
-
export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) =>
|
|
69
|
+
export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 1 | -1 | 0;
|
|
72
70
|
export declare function persistGet(key: string, defaultValue?: any): any;
|
|
73
71
|
export declare function persistSet(key: string, value: any): void;
|
|
74
72
|
export declare function normalizeId(id: string): string;
|
|
@@ -198,7 +196,16 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
198
196
|
*/
|
|
199
197
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
200
198
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
201
|
-
export declare function getModals(schema: any):
|
|
199
|
+
export declare function getModals(schema: any): any[];
|
|
200
|
+
/**
|
|
201
|
+
* 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
|
|
202
|
+
* @param target
|
|
203
|
+
* @param path
|
|
204
|
+
* @param numberToDelete
|
|
205
|
+
* @param items
|
|
206
|
+
* @returns
|
|
207
|
+
*/
|
|
208
|
+
export declare function deepSplice(target: any, path: string, numberToDelete: number, ...items: any[]): any;
|
|
202
209
|
export declare const RAW_TYPE_MAP: {
|
|
203
210
|
[k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
|
|
204
211
|
};
|