amis-editor-core 6.5.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 +18 -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/component/base/BackTop.d.ts +1 -1
- 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 +18 -0
- package/package.json +1 -1
package/lib/util.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import type { Schema } from 'amis';
|
|
3
|
+
import type { VariableItem } from 'amis-ui';
|
|
3
4
|
import { Diff } from 'deep-diff';
|
|
4
5
|
import { EditorModalBody } from './store/editor';
|
|
6
|
+
import type { SchemaType } from 'amis/lib/Schema';
|
|
5
7
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
6
8
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
7
9
|
export declare let themeConfig: any;
|
|
8
10
|
export declare let themeOptionsData: any;
|
|
11
|
+
export declare let cssVars: any;
|
|
9
12
|
export declare function __uri(id: string): string;
|
|
10
13
|
export declare function cleanUndefined(obj: any): any;
|
|
11
14
|
/**
|
|
@@ -18,6 +21,7 @@ export declare function JSONPipeOut(obj: any, filterHiddenProps?: boolean | ((ke
|
|
|
18
21
|
export declare function JSONGetByPath(json: any, paths: Array<string>, stacks?: Array<any>): any;
|
|
19
22
|
export declare function JSONGetPathById(json: any, id: string, idKey?: string): Array<string> | null;
|
|
20
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>;
|
|
21
25
|
export declare function JSONGetParentById(json: any, id: string, skipArray?: boolean): any;
|
|
22
26
|
export declare function JSONUpdate(json: any, id: string, value: any, replace?: boolean): any;
|
|
23
27
|
export declare function JSONDelete(json: any, id: string, pathsRef?: Array<string>, deleteIfEmpty?: boolean): any;
|
|
@@ -128,6 +132,14 @@ export declare function appTranslate(value?: string): any;
|
|
|
128
132
|
*/
|
|
129
133
|
export declare function needFillPlaceholder(curProps: any): boolean;
|
|
130
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;
|
|
131
143
|
export declare function getThemeConfig(): any;
|
|
132
144
|
/**
|
|
133
145
|
* 将style转换为组件ThemeCSS格式
|
|
@@ -149,6 +161,9 @@ export declare function resolveVariablesFromScope(node: any, manager: any): Prom
|
|
|
149
161
|
* @param that 为组件的实例 this
|
|
150
162
|
**/
|
|
151
163
|
export declare function getVariables(that: any): Promise<any>;
|
|
164
|
+
export declare function getQuickVariables(that: any, filter?: Function): Promise<any[]>;
|
|
165
|
+
export declare function getConditionVariables(that: any, filter?: Function): Promise<any[]>;
|
|
166
|
+
export declare function resolveQuickVariables(options: any, quickVars?: VariableItem[], selfName?: string, filter?: Function): any[];
|
|
152
167
|
/**
|
|
153
168
|
* 更新组件上下文中label为带层级说明
|
|
154
169
|
* @param variables 变量列表
|
|
@@ -181,3 +196,6 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
181
196
|
*/
|
|
182
197
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
183
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
|
+
};
|