@cicctencent/low-code-simulate-base 1.1.9-beta.5 → 1.1.10
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/dist/VCComponent.js +1 -1
- package/dist/domain/BaseProjectDomain.d.ts +42 -2
- package/dist/domain/BaseProjectDomain.js +2 -2
- package/dist/domain/ComponentManager.d.ts +1 -1
- package/dist/domain/ComponentManager.js +2 -2
- package/dist/domain/DataHistoryDomain.js +1 -1
- package/dist/domain/PreviewDomain.d.ts +5 -5
- package/dist/domain/PreviewDomain.js +16 -18
- package/dist/domain/ProjectDomain.d.ts +2 -2
- package/dist/domain/ProjectDomain.js +1 -1
- package/dist/event/generateEventHandler.d.ts +1 -1
- package/dist/event/generateEventHandler.js +2 -2
- package/dist/event/generateEventSchema.d.ts +1 -1
- package/dist/event/generateEventSchema.js +1 -1
- package/dist/event/register.d.ts +1 -1
- package/dist/index.d.ts +49 -10
- package/dist/index.js +1 -1
- package/dist/plugin/onH5PageValidate.js +2 -2
- package/dist/plugin/onPlaceholder.js +1 -1
- package/dist/plugin/subscribeInsertUploadList.js +1 -1
- package/dist/plugin/subscribeSetTitle.js +1 -1
- package/dist/plugin/subscribeTransformComponentMeta.js +1 -1
- package/dist/plugin/subscribeValidateUpload.js +1 -1
- package/dist/utils/buildInVariable.js +3 -3
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/validate.d.ts +1 -1
- package/dist/utils/validate.js +2 -2
- package/docs/.api/low-code-simulate-base.api.json +298 -298
- package/package.json +14 -13
- package/src/VCComponent.ts +1 -1
- package/src/domain/BaseProjectDomain.ts +3 -3
- package/src/domain/ComponentManager.ts +2 -2
- package/src/domain/DataHistoryDomain.ts +1 -1
- package/src/domain/PreviewDomain.ts +4 -4
- package/src/domain/ProjectDomain.ts +2 -2
- package/src/event/generateEventHandler.ts +1 -1
- package/src/event/generateEventSchema.ts +2 -2
- package/src/event/register.ts +1 -1
- package/src/plugin/onH5PageValidate.ts +3 -3
- package/src/plugin/onPlaceholder.ts +2 -2
- package/src/plugin/subscribeInsertUploadList.ts +1 -1
- package/src/plugin/subscribeSetTitle.ts +1 -1
- package/src/plugin/subscribeTransformComponentMeta.ts +1 -1
- package/src/plugin/subscribeValidateUpload.ts +2 -2
- package/src/utils/buildInVariable.ts +1 -1
- package/src/utils/index.ts +1 -1
- package/src/utils/validate.ts +2 -2
- package/temp/low-code-simulate-base.api.md +29 -29
package/dist/VCComponent.js
CHANGED
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { h, getCurrentInstance, isVue3 } from 'vue-demi';
|
|
13
13
|
import * as Vue from 'vue-demi';
|
|
14
|
-
import { camelize } from '@
|
|
14
|
+
import { camelize } from '@cicctencent/ark-util';
|
|
15
15
|
import { generateEventHandlers } from './event/generateEventHandler';
|
|
16
16
|
function renderVue3(item) {
|
|
17
17
|
//@ts-ignore
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { NavTreeData, SchemaData, Component, ComponentTreeData, ComponentItem, MenuData, Project, GroupTree, LowCodeKey, ProjectData, FunctionData, FunctionConfig, EditorConfig } from '@
|
|
1
|
+
import type { NavTreeData, SchemaData, Component, ComponentTreeData, ComponentItem, MenuData, Project, GroupTree, LowCodeKey, ProjectData, FunctionData, FunctionConfig, EditorConfig } from '@cicctencent/low-code-core';
|
|
2
|
+
import { ComponentType } from '@cicctencent/low-code-core';
|
|
2
3
|
import ComponentManager from './ComponentManager';
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
@@ -126,7 +127,46 @@ export default class BaseProjectDomain extends ProjectDomain {
|
|
|
126
127
|
* @public
|
|
127
128
|
* 含包含config的数据
|
|
128
129
|
*/
|
|
129
|
-
get componentsWithConfig():
|
|
130
|
+
get componentsWithConfig(): {
|
|
131
|
+
componentId: number;
|
|
132
|
+
formData: import("@cicctencent/low-code-core").ComponentFormData;
|
|
133
|
+
children?: ComponentItem[];
|
|
134
|
+
placeholderConfig?: import("@cicctencent/low-code-core").PlaceholderConfig;
|
|
135
|
+
slotName?: string;
|
|
136
|
+
insertConfig?: {
|
|
137
|
+
syncChildrenName?: string;
|
|
138
|
+
syncChildrenProp?: string;
|
|
139
|
+
allowList: string[];
|
|
140
|
+
allowErrorMessage: string;
|
|
141
|
+
aloneList: string[];
|
|
142
|
+
aloneErrorMessage: string;
|
|
143
|
+
};
|
|
144
|
+
guideConfig?: {
|
|
145
|
+
sampleUrl: string;
|
|
146
|
+
explain: string;
|
|
147
|
+
skill: string;
|
|
148
|
+
};
|
|
149
|
+
copyClearPaths?: string[];
|
|
150
|
+
customCopy?: boolean;
|
|
151
|
+
name: string;
|
|
152
|
+
group?: string;
|
|
153
|
+
icon?: string;
|
|
154
|
+
picture?: string;
|
|
155
|
+
type: ComponentType;
|
|
156
|
+
invalid?: boolean;
|
|
157
|
+
immobile?: boolean;
|
|
158
|
+
unlinkable?: boolean;
|
|
159
|
+
title: string;
|
|
160
|
+
key?: LowCodeKey;
|
|
161
|
+
isNoLogin?: boolean;
|
|
162
|
+
config?: {
|
|
163
|
+
props?: import("@cicctencent/low-code-core").Schema;
|
|
164
|
+
style?: import("@cicctencent/low-code-core").Schema;
|
|
165
|
+
event?: import("@cicctencent/low-code-core").Schema;
|
|
166
|
+
};
|
|
167
|
+
slot?: Record<string | number, Component>;
|
|
168
|
+
childContainer?: Component;
|
|
169
|
+
}[];
|
|
130
170
|
/**
|
|
131
171
|
* @public
|
|
132
172
|
*/
|
|
@@ -51,9 +51,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
51
51
|
};
|
|
52
52
|
import { getImageUrls, getSchemaConfigByValue } from '../utils';
|
|
53
53
|
import { getObjectPath } from '../utils/transform';
|
|
54
|
-
import { ComponentType } from '@
|
|
54
|
+
import { ComponentType } from '@cicctencent/low-code-core';
|
|
55
55
|
import { navTreeKey, componentTreeKey } from '../domain/ProjectDomain';
|
|
56
|
-
import { cloneDeep, get, isEqual, set, toPlainObject, merge, isEmpty, log, } from '@
|
|
56
|
+
import { cloneDeep, get, isEqual, set, toPlainObject, merge, isEmpty, log, } from '@cicctencent/ark-util';
|
|
57
57
|
import { decodeContent } from 'jm-jsruntime';
|
|
58
58
|
import { getSchemaObjectAttribute } from '../utils';
|
|
59
59
|
import { tipIcon } from '../utils/base64';
|
|
@@ -45,9 +45,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
45
45
|
}
|
|
46
46
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
47
47
|
};
|
|
48
|
-
import { ComponentType } from '@
|
|
48
|
+
import { ComponentType } from '@cicctencent/low-code-core';
|
|
49
49
|
import { getSchemaObjectAttribute } from '../utils';
|
|
50
|
-
import { cloneDeep, merge, get, set } from '@
|
|
50
|
+
import { cloneDeep, merge, get, set } from '@cicctencent/ark-util';
|
|
51
51
|
import { transformSchemaToForm } from '../utils/transform';
|
|
52
52
|
/**
|
|
53
53
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity } from '@
|
|
2
|
-
import { Communicator } from '@
|
|
3
|
-
import type { EditorConfig, Project, MenuData, CheckRequestItem, History } from '@
|
|
1
|
+
import { Entity } from '@cicctencent/ark-util';
|
|
2
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
3
|
+
import type { EditorConfig, Project, MenuData, CheckRequestItem, History } from '@cicctencent/low-code-core';
|
|
4
4
|
import ProjectDomain from './ProjectDomain';
|
|
5
5
|
import DataHistoryDomain from './DataHistoryDomain';
|
|
6
6
|
/**
|
|
@@ -33,8 +33,8 @@ export default class PreviewDomain extends Entity<PreviewDomainState> {
|
|
|
33
33
|
*/
|
|
34
34
|
get projectState(): {
|
|
35
35
|
projectData: {
|
|
36
|
-
meta: import("@
|
|
37
|
-
pages: import("@
|
|
36
|
+
meta: import("@cicctencent/low-code-core").ProjectMeta;
|
|
37
|
+
pages: import("@cicctencent/low-code-core").ProjectData;
|
|
38
38
|
};
|
|
39
39
|
currentComponentPath: string;
|
|
40
40
|
};
|
|
@@ -23,8 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27
|
-
return g =
|
|
26
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
28
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
29
|
function step(op) {
|
|
30
30
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -75,8 +75,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
75
75
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
76
76
|
};
|
|
77
77
|
// 模拟器预览实体
|
|
78
|
-
import { log, error, Entity, cloneDeep, isEqual, toPlainObject, } from '@
|
|
79
|
-
import { ComponentType } from '@
|
|
78
|
+
import { log, error, Entity, cloneDeep, isEqual, toPlainObject, } from '@cicctencent/ark-util';
|
|
79
|
+
import { ComponentType } from '@cicctencent/low-code-core';
|
|
80
80
|
import DataHistoryDomain from './DataHistoryDomain';
|
|
81
81
|
var logTag = '[low-code-preview PreviewDomain]';
|
|
82
82
|
var logInfo = log(logTag);
|
|
@@ -184,21 +184,19 @@ var PreviewDomain = /** @class */ (function (_super) {
|
|
|
184
184
|
* @public
|
|
185
185
|
* 校验
|
|
186
186
|
*/
|
|
187
|
-
validate: function (_a) {
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
});
|
|
187
|
+
validate: function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
|
|
188
|
+
var result;
|
|
189
|
+
var data = _b.data;
|
|
190
|
+
return __generator(this, function (_c) {
|
|
191
|
+
switch (_c.label) {
|
|
192
|
+
case 0: return [4 /*yield*/, this.send('validatePage', data)];
|
|
193
|
+
case 1:
|
|
194
|
+
result = _c.sent();
|
|
195
|
+
logInfo('validate result', result, this.config);
|
|
196
|
+
return [2 /*return*/, toPlainObject({ config: this.config, result: result })];
|
|
197
|
+
}
|
|
200
198
|
});
|
|
201
|
-
},
|
|
199
|
+
}); },
|
|
202
200
|
/**
|
|
203
201
|
* @public
|
|
204
202
|
* 导航树移动组件
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity } from '@
|
|
2
|
-
import type { LowCodeKey, Component, FunctionData, EditorConfig, ComponentItem, History } from '@
|
|
1
|
+
import { Entity } from '@cicctencent/ark-util';
|
|
2
|
+
import type { LowCodeKey, Component, FunctionData, EditorConfig, ComponentItem, History } from '@cicctencent/low-code-core';
|
|
3
3
|
import { ProjectDomainState } from './BaseProjectDomain';
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
@@ -49,7 +49,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
49
49
|
}
|
|
50
50
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
51
|
};
|
|
52
|
-
import { Entity, get, set } from '@
|
|
52
|
+
import { Entity, get, set } from '@cicctencent/ark-util';
|
|
53
53
|
/**
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
-
return g =
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IEventDescriptor, ICustomEventDescriptor, InativeEventTypeDescriptor } from '@
|
|
1
|
+
import type { IEventDescriptor, ICustomEventDescriptor, InativeEventTypeDescriptor } from '@cicctencent/low-code-core';
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
* 关键:初始化注册表中所有的事件的表单配置 json-schema
|
|
@@ -34,7 +34,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
34
34
|
}
|
|
35
35
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
36
36
|
};
|
|
37
|
-
import { UniqueType } from '@
|
|
37
|
+
import { UniqueType } from '@cicctencent/low-code-core';
|
|
38
38
|
import { eventRegistry, eventMiddlewareRegistry, nativeEventTypeRegistry, } from './register';
|
|
39
39
|
/**
|
|
40
40
|
* @public
|
package/dist/event/register.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Component, ComponentItem, FunctionData, History, EditorConfig, LowCodeKey, Project, GroupTree, FunctionConfig, ProjectData, NavTreeData, SchemaData, ComponentTreeData, MenuData, CheckRequestItem, ImageUrlOptions, ImageUrlResponse, InativeEventTypeDescriptor, IEventDescriptor, ICustomEventDescriptor, IConfiguredEvent, IConfiguredMiddleware, Next, IEventMiddlewareDescriptor } from '@
|
|
3
|
-
import { Entity } from '@
|
|
4
|
-
import { Communicator } from '@
|
|
5
|
-
import * as
|
|
1
|
+
import * as _cicctencent_low_code_core from '@cicctencent/low-code-core';
|
|
2
|
+
import { Component, ComponentItem, FunctionData, History, EditorConfig, LowCodeKey, Project, GroupTree, FunctionConfig, ProjectData, ComponentType, NavTreeData, SchemaData, ComponentTreeData, MenuData, CheckRequestItem, ImageUrlOptions, ImageUrlResponse, InativeEventTypeDescriptor, IEventDescriptor, ICustomEventDescriptor, IConfiguredEvent, IConfiguredMiddleware, Next, IEventMiddlewareDescriptor } from '@cicctencent/low-code-core';
|
|
3
|
+
import { Entity } from '@cicctencent/ark-util';
|
|
4
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
5
|
+
import * as _cicctencent_low_code_validate from '@cicctencent/low-code-validate';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
@@ -415,7 +415,46 @@ declare class BaseProjectDomain extends ProjectDomain {
|
|
|
415
415
|
* @public
|
|
416
416
|
* 含包含config的数据
|
|
417
417
|
*/
|
|
418
|
-
get componentsWithConfig():
|
|
418
|
+
get componentsWithConfig(): {
|
|
419
|
+
componentId: number;
|
|
420
|
+
formData: _cicctencent_low_code_core.ComponentFormData;
|
|
421
|
+
children?: ComponentItem[];
|
|
422
|
+
placeholderConfig?: _cicctencent_low_code_core.PlaceholderConfig;
|
|
423
|
+
slotName?: string;
|
|
424
|
+
insertConfig?: {
|
|
425
|
+
syncChildrenName?: string;
|
|
426
|
+
syncChildrenProp?: string;
|
|
427
|
+
allowList: string[];
|
|
428
|
+
allowErrorMessage: string;
|
|
429
|
+
aloneList: string[];
|
|
430
|
+
aloneErrorMessage: string;
|
|
431
|
+
};
|
|
432
|
+
guideConfig?: {
|
|
433
|
+
sampleUrl: string;
|
|
434
|
+
explain: string;
|
|
435
|
+
skill: string;
|
|
436
|
+
};
|
|
437
|
+
copyClearPaths?: string[];
|
|
438
|
+
customCopy?: boolean;
|
|
439
|
+
name: string;
|
|
440
|
+
group?: string;
|
|
441
|
+
icon?: string;
|
|
442
|
+
picture?: string;
|
|
443
|
+
type: ComponentType;
|
|
444
|
+
invalid?: boolean;
|
|
445
|
+
immobile?: boolean;
|
|
446
|
+
unlinkable?: boolean;
|
|
447
|
+
title: string;
|
|
448
|
+
key?: LowCodeKey;
|
|
449
|
+
isNoLogin?: boolean;
|
|
450
|
+
config?: {
|
|
451
|
+
props?: _cicctencent_low_code_core.Schema;
|
|
452
|
+
style?: _cicctencent_low_code_core.Schema;
|
|
453
|
+
event?: _cicctencent_low_code_core.Schema;
|
|
454
|
+
};
|
|
455
|
+
slot?: Record<string | number, Component>;
|
|
456
|
+
childContainer?: Component;
|
|
457
|
+
}[];
|
|
419
458
|
/**
|
|
420
459
|
* @public
|
|
421
460
|
*/
|
|
@@ -721,8 +760,8 @@ declare class PreviewDomain extends Entity<PreviewDomainState> {
|
|
|
721
760
|
*/
|
|
722
761
|
get projectState(): {
|
|
723
762
|
projectData: {
|
|
724
|
-
meta:
|
|
725
|
-
pages:
|
|
763
|
+
meta: _cicctencent_low_code_core.ProjectMeta;
|
|
764
|
+
pages: _cicctencent_low_code_core.ProjectData;
|
|
726
765
|
};
|
|
727
766
|
currentComponentPath: string;
|
|
728
767
|
};
|
|
@@ -964,7 +1003,7 @@ declare const notImageIcon = "data:image/webp;base64,UklGRmoHAABXRUJQVlA4WAoAAAA
|
|
|
964
1003
|
* @param componentInfo - componentInfo
|
|
965
1004
|
* @returns
|
|
966
1005
|
*/
|
|
967
|
-
declare function getComponentKeyValue(key: any, componentInfo: ComponentItem): string | number | ComponentItem |
|
|
1006
|
+
declare function getComponentKeyValue(key: any, componentInfo: ComponentItem): string | number | ComponentItem | _cicctencent_low_code_core.ComponentFormData;
|
|
968
1007
|
/**
|
|
969
1008
|
* @public
|
|
970
1009
|
* 获取图片Urls
|
|
@@ -1058,7 +1097,7 @@ declare function getObjectPath(obj: any, prefix?: string, visited?: Set<unknown>
|
|
|
1058
1097
|
* @param validateData - 校验数据
|
|
1059
1098
|
* @returns
|
|
1060
1099
|
*/
|
|
1061
|
-
declare function formilyValidate(component: any, validateData: any[]):
|
|
1100
|
+
declare function formilyValidate(component: any, validateData: any[]): _cicctencent_low_code_validate.ValidateError[];
|
|
1062
1101
|
|
|
1063
1102
|
/**
|
|
1064
1103
|
* @public
|
package/dist/index.js
CHANGED
|
@@ -24,5 +24,5 @@ export * from './event/register';
|
|
|
24
24
|
export * from './utils/buildInVariable';
|
|
25
25
|
export * from './utils/dom';
|
|
26
26
|
window.JT_VERSION = Object.assign({
|
|
27
|
-
'@
|
|
27
|
+
'@cicctencent/low-code-simulate-base@0.0.1': '10/9/2026, 12:41:15 PM',
|
|
28
28
|
}, window.JT_VERSION);
|
|
@@ -23,10 +23,10 @@ var __values = (this && this.__values) || function(o) {
|
|
|
23
23
|
import { getComponentKeyValue, groupBy } from '../utils';
|
|
24
24
|
import { formilyValidate } from '../utils/validate';
|
|
25
25
|
import { transform } from '../utils/transform';
|
|
26
|
-
import { cloneDeep, set, toPlainObject, log, get } from '@
|
|
26
|
+
import { cloneDeep, set, toPlainObject, log, get } from '@cicctencent/ark-util';
|
|
27
27
|
var logTag = '[low-code-creator onH5PageValidate]';
|
|
28
28
|
var logInfo = log(logTag);
|
|
29
|
-
import { validate } from '@
|
|
29
|
+
import { validate } from '@cicctencent/low-code-validate';
|
|
30
30
|
export function findComponentById(components, componentId) {
|
|
31
31
|
var e_1, _a;
|
|
32
32
|
try {
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { get, getLog } from '@
|
|
12
|
+
import { get, getLog } from '@cicctencent/ark-util';
|
|
13
13
|
import { getSchemaObjectAttribute } from '../utils';
|
|
14
14
|
import { transformComponentMeta } from './subscribeTransformComponentMeta';
|
|
15
15
|
var logTag = '[low-code-creator onPlaceholder]';
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { cloneDeep, get } from '@
|
|
12
|
+
import { cloneDeep, get } from '@cicctencent/ark-util';
|
|
13
13
|
/**
|
|
14
14
|
* @public
|
|
15
15
|
* @param previewDomain - previewDomain
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getFileSizeStr } from '../utils';
|
|
2
2
|
import { tipIcon } from '../utils/base64';
|
|
3
|
-
import { toPlainObject } from '@
|
|
3
|
+
import { toPlainObject } from '@cicctencent/ark-util';
|
|
4
4
|
import { getSchemaObjectAttribute, getImageType } from '../utils';
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g =
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { reactive } from 'vue-demi';
|
|
49
49
|
import { decodeContent, runScript } from 'jm-jsruntime';
|
|
50
|
-
import { get, getLog, set } from '@
|
|
50
|
+
import { get, getLog, set } from '@cicctencent/ark-util';
|
|
51
51
|
import { getParent } from './dom';
|
|
52
52
|
var initBuildInVariable = {
|
|
53
53
|
$request: null,
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentItem, ImageUrlOptions, ImageUrlResponse } from '@
|
|
1
|
+
import type { ComponentItem, ImageUrlOptions, ImageUrlResponse } from '@cicctencent/low-code-core';
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
* 根据key获取组件value
|
|
@@ -6,7 +6,7 @@ import type { ComponentItem, ImageUrlOptions, ImageUrlResponse } from '@jt/low-c
|
|
|
6
6
|
* @param componentInfo - componentInfo
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
|
-
export declare function getComponentKeyValue(key: any, componentInfo: ComponentItem): string | number | ComponentItem | import("@
|
|
9
|
+
export declare function getComponentKeyValue(key: any, componentInfo: ComponentItem): string | number | ComponentItem | import("@cicctencent/low-code-core").ComponentFormData;
|
|
10
10
|
/**
|
|
11
11
|
* @public
|
|
12
12
|
* 获取图片Urls
|
package/dist/utils/validate.d.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @param validateData - 校验数据
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export declare function formilyValidate(component: any, validateData: any[]): import("@
|
|
7
|
+
export declare function formilyValidate(component: any, validateData: any[]): import("@cicctencent/low-code-validate").ValidateError[];
|
package/dist/utils/validate.js
CHANGED