@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cicctencent/low-code-simulate-base",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,24 +13,25 @@
|
|
|
13
13
|
"api": "npm run api:json && npm run api:md"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@
|
|
17
|
-
"@cicctencent/low-code-core": "
|
|
18
|
-
"@cicctencent/low-code-validate": "
|
|
19
|
-
"@
|
|
16
|
+
"@cicctencent/ark-util": "latest",
|
|
17
|
+
"@cicctencent/low-code-core": "latest",
|
|
18
|
+
"@cicctencent/low-code-validate": "latest",
|
|
19
|
+
"@cicctencent/postmessage-channel": "latest",
|
|
20
20
|
"jm-jsruntime": "1.0.3",
|
|
21
21
|
"koa-compose": "^4.1.0",
|
|
22
22
|
"vue-demi": "latest"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@jest/types": "^28.1.
|
|
26
|
-
"@microsoft/api-documenter": "^7.
|
|
27
|
-
"@microsoft/api-extractor": "^7.
|
|
25
|
+
"@jest/types": "^28.1.3",
|
|
26
|
+
"@microsoft/api-documenter": "^7.30.18",
|
|
27
|
+
"@microsoft/api-extractor": "^7.59.4",
|
|
28
28
|
"@microsoft/tsdoc": "^0.14.2",
|
|
29
|
-
"@types/jest": "^29.5.
|
|
30
|
-
"jest": "^28.1.
|
|
31
|
-
"rollup": "^3.
|
|
32
|
-
"rollup-plugin-dts": "^5.3.
|
|
33
|
-
"ts-jest": "^28.0.
|
|
29
|
+
"@types/jest": "^29.5.14",
|
|
30
|
+
"jest": "^28.1.3",
|
|
31
|
+
"rollup": "^3.30.0",
|
|
32
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
33
|
+
"ts-jest": "^28.0.8",
|
|
34
|
+
"typescript": "^5.9.3"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"vue": "^2.6.0 || ^3.0.0"
|
package/src/VCComponent.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, getCurrentInstance, isVue3 } from 'vue-demi';
|
|
2
2
|
import * as Vue from 'vue-demi';
|
|
3
|
-
import { camelize } from '@
|
|
3
|
+
import { camelize } from '@cicctencent/ark-util';
|
|
4
4
|
import { generateEventHandlers } from './event/generateEventHandler';
|
|
5
5
|
|
|
6
6
|
function renderVue3(item: any) {
|
|
@@ -16,9 +16,9 @@ import type {
|
|
|
16
16
|
FunctionData,
|
|
17
17
|
FunctionConfig,
|
|
18
18
|
EditorConfig,
|
|
19
|
-
} from '@
|
|
19
|
+
} from '@cicctencent/low-code-core';
|
|
20
20
|
|
|
21
|
-
import { ComponentType } from '@
|
|
21
|
+
import { ComponentType } from '@cicctencent/low-code-core';
|
|
22
22
|
import { navTreeKey, componentTreeKey } from '../domain/ProjectDomain';
|
|
23
23
|
import {
|
|
24
24
|
cloneDeep,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
merge,
|
|
30
30
|
isEmpty,
|
|
31
31
|
log,
|
|
32
|
-
} from '@
|
|
32
|
+
} from '@cicctencent/ark-util';
|
|
33
33
|
import { decodeContent } from 'jm-jsruntime';
|
|
34
34
|
|
|
35
35
|
import { getSchemaObjectAttribute } from '../utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component, ComponentItem, ComponentType } from '@
|
|
1
|
+
import { Component, ComponentItem, ComponentType } from '@cicctencent/low-code-core';
|
|
2
2
|
|
|
3
3
|
import { getSchemaObjectAttribute } from '../utils';
|
|
4
|
-
import { cloneDeep, merge, get, set } from '@
|
|
4
|
+
import { cloneDeep, merge, get, set } from '@cicctencent/ark-util';
|
|
5
5
|
import { transformSchemaToForm } from '../utils/transform';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
cloneDeep,
|
|
7
7
|
isEqual,
|
|
8
8
|
toPlainObject,
|
|
9
|
-
} from '@
|
|
10
|
-
import { Communicator } from '@
|
|
9
|
+
} from '@cicctencent/ark-util';
|
|
10
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
11
11
|
|
|
12
12
|
import type {
|
|
13
13
|
EditorConfig,
|
|
@@ -16,8 +16,8 @@ import type {
|
|
|
16
16
|
ComponentItem,
|
|
17
17
|
CheckRequestItem,
|
|
18
18
|
History,
|
|
19
|
-
} from '@
|
|
20
|
-
import { ComponentType } from '@
|
|
19
|
+
} from '@cicctencent/low-code-core';
|
|
20
|
+
import { ComponentType } from '@cicctencent/low-code-core';
|
|
21
21
|
import ProjectDomain from './ProjectDomain';
|
|
22
22
|
import DataHistoryDomain from './DataHistoryDomain';
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity, get, set } from '@
|
|
1
|
+
import { Entity, get, set } from '@cicctencent/ark-util';
|
|
2
2
|
import type {
|
|
3
3
|
Project,
|
|
4
4
|
GroupTree,
|
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
EditorConfig,
|
|
10
10
|
ComponentItem,
|
|
11
11
|
History,
|
|
12
|
-
} from '@
|
|
12
|
+
} from '@cicctencent/low-code-core';
|
|
13
13
|
import { ProjectDomainState } from './BaseProjectDomain';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -2,8 +2,8 @@ import type {
|
|
|
2
2
|
IEventDescriptor,
|
|
3
3
|
ICustomEventDescriptor,
|
|
4
4
|
InativeEventTypeDescriptor,
|
|
5
|
-
} from '@
|
|
6
|
-
import { UniqueType } from '@
|
|
5
|
+
} from '@cicctencent/low-code-core';
|
|
6
|
+
import { UniqueType } from '@cicctencent/low-code-core';
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
eventRegistry,
|
package/src/event/register.ts
CHANGED
|
@@ -2,16 +2,16 @@ import type {
|
|
|
2
2
|
ComponentItem,
|
|
3
3
|
CheckRequestItem,
|
|
4
4
|
CheckResponseItem,
|
|
5
|
-
} from '@
|
|
5
|
+
} from '@cicctencent/low-code-core';
|
|
6
6
|
import { getComponentKeyValue, groupBy } from '../utils';
|
|
7
7
|
import BaseProjectDomain from '../domain/BaseProjectDomain';
|
|
8
8
|
import PreviewDomain from '../domain/PreviewDomain';
|
|
9
9
|
import { formilyValidate } from '../utils/validate';
|
|
10
10
|
import { transform } from '../utils/transform';
|
|
11
|
-
import { cloneDeep, set, toPlainObject, log, get } from '@
|
|
11
|
+
import { cloneDeep, set, toPlainObject, log, get } from '@cicctencent/ark-util';
|
|
12
12
|
const logTag = '[low-code-creator onH5PageValidate]';
|
|
13
13
|
const logInfo = log(logTag);
|
|
14
|
-
import { validate } from '@
|
|
14
|
+
import { validate } from '@cicctencent/low-code-validate';
|
|
15
15
|
|
|
16
16
|
export function findComponentById(components, componentId) {
|
|
17
17
|
for (const component of components) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComponentItem } from '@
|
|
1
|
+
import type { ComponentItem } from '@cicctencent/low-code-core';
|
|
2
2
|
import PreviewDomain from '../domain/PreviewDomain';
|
|
3
|
-
import { get, toPlainObject, getLog } from '@
|
|
3
|
+
import { get, toPlainObject, getLog } from '@cicctencent/ark-util';
|
|
4
4
|
import { getSchemaObjectAttribute } from '../utils';
|
|
5
5
|
import { transformComponentMeta } from './subscribeTransformComponentMeta';
|
|
6
6
|
import BaseProjectDomain from '../domain/BaseProjectDomain';
|
|
@@ -2,9 +2,9 @@ import { getFileSizeStr } from '../utils';
|
|
|
2
2
|
import BaseProjectDomain from '../domain/BaseProjectDomain';
|
|
3
3
|
import PreviewDomain from '../domain/PreviewDomain';
|
|
4
4
|
import { tipIcon } from '../utils/base64';
|
|
5
|
-
import { toPlainObject } from '@
|
|
5
|
+
import { toPlainObject } from '@cicctencent/ark-util';
|
|
6
6
|
import { getSchemaObjectAttribute, getImageType } from '../utils';
|
|
7
|
-
import type { ConfirmMessageBoxData } from '@
|
|
7
|
+
import type { ConfirmMessageBoxData } from '@cicctencent/low-code-core';
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
10
10
|
* @param previewDomain - previewDomain
|
package/src/utils/index.ts
CHANGED
package/src/utils/validate.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
## API Report File for "@
|
|
1
|
+
## API Report File for "@cicctencent/low-code-simulate-base"
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { CheckRequestItem } from '@
|
|
8
|
-
import { Communicator } from '@
|
|
9
|
-
import { Component } from '@
|
|
10
|
-
import { ComponentItem } from '@
|
|
11
|
-
import { ComponentTreeData } from '@
|
|
12
|
-
import { EditorConfig } from '@
|
|
13
|
-
import { Entity } from '@
|
|
14
|
-
import { FunctionConfig } from '@
|
|
15
|
-
import { FunctionData } from '@
|
|
16
|
-
import { GroupTree } from '@
|
|
17
|
-
import { History as History_2 } from '@
|
|
18
|
-
import { IConfiguredEvent } from '@
|
|
19
|
-
import { IConfiguredMiddleware } from '@
|
|
20
|
-
import { ICustomEventDescriptor } from '@
|
|
21
|
-
import { IEventDescriptor } from '@
|
|
22
|
-
import { IEventMiddlewareDescriptor } from '@
|
|
23
|
-
import { ImageUrlOptions } from '@
|
|
24
|
-
import { ImageUrlResponse } from '@
|
|
25
|
-
import { InativeEventTypeDescriptor } from '@
|
|
26
|
-
import * as _jt_low_code_core from '@
|
|
27
|
-
import * as _jt_low_code_validate from '@
|
|
28
|
-
import { LowCodeKey } from '@
|
|
29
|
-
import { MenuData } from '@
|
|
30
|
-
import { NavTreeData } from '@
|
|
31
|
-
import { Next } from '@
|
|
32
|
-
import { Project } from '@
|
|
33
|
-
import { ProjectData } from '@
|
|
34
|
-
import { SchemaData } from '@
|
|
7
|
+
import { CheckRequestItem } from '@cicctencent/low-code-core';
|
|
8
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
9
|
+
import { Component } from '@cicctencent/low-code-core';
|
|
10
|
+
import { ComponentItem } from '@cicctencent/low-code-core';
|
|
11
|
+
import { ComponentTreeData } from '@cicctencent/low-code-core';
|
|
12
|
+
import { EditorConfig } from '@cicctencent/low-code-core';
|
|
13
|
+
import { Entity } from '@cicctencent/ark-util';
|
|
14
|
+
import { FunctionConfig } from '@cicctencent/low-code-core';
|
|
15
|
+
import { FunctionData } from '@cicctencent/low-code-core';
|
|
16
|
+
import { GroupTree } from '@cicctencent/low-code-core';
|
|
17
|
+
import { History as History_2 } from '@cicctencent/low-code-core';
|
|
18
|
+
import { IConfiguredEvent } from '@cicctencent/low-code-core';
|
|
19
|
+
import { IConfiguredMiddleware } from '@cicctencent/low-code-core';
|
|
20
|
+
import { ICustomEventDescriptor } from '@cicctencent/low-code-core';
|
|
21
|
+
import { IEventDescriptor } from '@cicctencent/low-code-core';
|
|
22
|
+
import { IEventMiddlewareDescriptor } from '@cicctencent/low-code-core';
|
|
23
|
+
import { ImageUrlOptions } from '@cicctencent/low-code-core';
|
|
24
|
+
import { ImageUrlResponse } from '@cicctencent/low-code-core';
|
|
25
|
+
import { InativeEventTypeDescriptor } from '@cicctencent/low-code-core';
|
|
26
|
+
import * as _jt_low_code_core from '@cicctencent/low-code-core';
|
|
27
|
+
import * as _jt_low_code_validate from '@cicctencent/low-code-validate';
|
|
28
|
+
import { LowCodeKey } from '@cicctencent/low-code-core';
|
|
29
|
+
import { MenuData } from '@cicctencent/low-code-core';
|
|
30
|
+
import { NavTreeData } from '@cicctencent/low-code-core';
|
|
31
|
+
import { Next } from '@cicctencent/low-code-core';
|
|
32
|
+
import { Project } from '@cicctencent/low-code-core';
|
|
33
|
+
import { ProjectData } from '@cicctencent/low-code-core';
|
|
34
|
+
import { SchemaData } from '@cicctencent/low-code-core';
|
|
35
35
|
|
|
36
36
|
// @public (undocumented)
|
|
37
37
|
export class BaseProjectDomain extends ProjectDomain {
|