amis-editor-core 6.6.0 → 6.7.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/FormConfigWrapper.d.ts +6 -0
- package/esm/component/RegionWrapper.d.ts +16 -0
- package/esm/component/VRenderer.d.ts +16 -0
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +80 -0
- package/esm/manager.d.ts +28 -12
- package/esm/store/editor.d.ts +117 -135
- package/esm/store/node.d.ts +15 -0
- package/esm/util.d.ts +14 -0
- package/lib/component/FormConfigWrapper.d.ts +6 -0
- package/lib/component/RegionWrapper.d.ts +16 -0
- package/lib/component/VRenderer.d.ts +16 -0
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +80 -0
- package/lib/manager.d.ts +28 -12
- package/lib/store/editor.d.ts +117 -136
- package/lib/store/node.d.ts +15 -0
- package/lib/style.css +1 -1
- package/lib/util.d.ts +14 -0
- package/package.json +1 -1
package/lib/util.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ import type { Schema } from 'amis';
|
|
|
3
3
|
import type { VariableItem } from 'amis-ui';
|
|
4
4
|
import { Diff } from 'deep-diff';
|
|
5
5
|
import { EditorModalBody } from './store/editor';
|
|
6
|
+
import type { SchemaType } from 'amis/lib/Schema';
|
|
6
7
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
7
8
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
8
9
|
export declare let themeConfig: any;
|
|
9
10
|
export declare let themeOptionsData: any;
|
|
11
|
+
export declare let cssVars: any;
|
|
10
12
|
export declare function __uri(id: string): string;
|
|
11
13
|
export declare function cleanUndefined(obj: any): any;
|
|
12
14
|
/**
|
|
@@ -19,6 +21,7 @@ export declare function JSONPipeOut(obj: any, filterHiddenProps?: boolean | ((ke
|
|
|
19
21
|
export declare function JSONGetByPath(json: any, paths: Array<string>, stacks?: Array<any>): any;
|
|
20
22
|
export declare function JSONGetPathById(json: any, id: string, idKey?: string): Array<string> | null;
|
|
21
23
|
export declare function JSONGetById(json: any, id: string, idKey?: string): any;
|
|
24
|
+
export declare function JSONGetNodesById(json: any, id: string, idKey?: string): Array<any>;
|
|
22
25
|
export declare function JSONGetParentById(json: any, id: string, skipArray?: boolean): any;
|
|
23
26
|
export declare function JSONUpdate(json: any, id: string, value: any, replace?: boolean): any;
|
|
24
27
|
export declare function JSONDelete(json: any, id: string, pathsRef?: Array<string>, deleteIfEmpty?: boolean): any;
|
|
@@ -129,6 +132,14 @@ export declare function appTranslate(value?: string): any;
|
|
|
129
132
|
*/
|
|
130
133
|
export declare function needFillPlaceholder(curProps: any): boolean;
|
|
131
134
|
export declare function setThemeConfig(config: any): void;
|
|
135
|
+
/**
|
|
136
|
+
* 获取组件的css变量
|
|
137
|
+
* @param id 组件id
|
|
138
|
+
* @param selectorText 选择器
|
|
139
|
+
* @returns css变量
|
|
140
|
+
*/
|
|
141
|
+
export declare function getCssVarById(id: string, selectorText: string): PlainObject;
|
|
142
|
+
export declare function getAllCssVar(): any;
|
|
132
143
|
export declare function getThemeConfig(): any;
|
|
133
144
|
/**
|
|
134
145
|
* 将style转换为组件ThemeCSS格式
|
|
@@ -185,3 +196,6 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
185
196
|
*/
|
|
186
197
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
187
198
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
199
|
+
export declare const RAW_TYPE_MAP: {
|
|
200
|
+
[k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
|
|
201
|
+
};
|