@kengic/vue 0.2.1-beta.0 → 0.2.1-beta.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/index.css +1 -1
- package/dist/kengic-vue.js +4645 -2136
- package/dist/src/apis/WMS/models.d.ts +177 -9
- package/dist/src/components/KgButton/KgButton.Copy.d.ts +32 -0
- package/dist/src/components/KgButton/KgButton.Create.d.ts +29 -5
- package/dist/src/components/KgButton/KgButton.Delete.d.ts +29 -8
- package/dist/src/components/KgButton/KgButton.Export.d.ts +32 -0
- package/dist/src/components/KgButton/KgButton.Import.d.ts +32 -0
- package/dist/src/components/KgButton/KgButton.Other.d.ts +32 -0
- package/dist/src/components/KgButton/KgButton.Search.d.ts +32 -0
- package/dist/src/components/KgButton/KgButton.Update.d.ts +29 -5
- package/dist/src/components/KgButton/KgButton.d.ts +30 -8
- package/dist/src/components/KgButton/KgButtons.d.ts +22 -0
- package/dist/src/components/KgButton/index.d.ts +1 -0
- package/dist/src/components/KgButton/index.vm.d.ts +18 -3
- package/dist/src/components/KgControl/KgControl.Date.d.ts +28 -22
- package/dist/src/components/KgControl/KgControl.Input.d.ts +28 -22
- package/dist/src/components/KgControl/KgControl.InputNumber.d.ts +110 -0
- package/dist/src/components/KgControl/KgControl.Select.d.ts +32 -28
- package/dist/src/components/KgControl/KgControl.Switch.d.ts +28 -22
- package/dist/src/components/KgControl/KgControl.d.ts +29 -25
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.Modal.d.ts +4 -4
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +4 -4
- package/dist/src/components/KgControl/index.vm.d.ts +28 -17
- package/dist/src/components/KgSearch/KgSearch.d.ts +30 -7
- package/dist/src/components/KgSearch/index.d.ts +1 -1
- package/dist/src/components/KgSearch/index.hooks.d.ts +18 -0
- package/dist/src/components/KgSearch/index.store.d.ts +41 -23
- package/dist/src/components/KgTable/{KgTable.Td.d.ts → KgTable.Cell.d.ts} +1 -1
- package/dist/src/components/KgTable/KgTable.Info.d.ts +53 -0
- package/dist/src/components/KgTable/KgTable.data.d.ts +9 -4
- package/dist/src/components/KgTable/index.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +15 -0
- package/dist/src/components/KgTable/index.store.d.ts +25 -10
- package/dist/src/components/KgTable/index.vm.d.ts +14 -4
- package/dist/src/components/KgVar/index.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +29 -0
- package/dist/src/components/KgVar/index.store.d.ts +27 -2
- package/dist/src/consts/i18n/en.d.ts +13 -0
- package/dist/src/consts/i18n/index.d.ts +26 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +13 -0
- package/dist/src/consts/index.d.ts +34 -32
- package/dist/src/utils/app.util.d.ts +4 -4
- package/dist/src/utils/kg.util.d.ts +4 -0
- package/dist/src/utils/logger.util.d.ts +1 -1
- package/package.json +5 -1
- package/dist/src/components/KgSearch/index.hook.d.ts +0 -4
- package/dist/src/components/KgTable/index.hook.d.ts +0 -7
- package/dist/src/components/KgVar/index.hook.d.ts +0 -45
|
@@ -1,67 +1,69 @@
|
|
|
1
1
|
export * from './i18n';
|
|
2
2
|
export * from './injection-keys.const';
|
|
3
3
|
/** 所有模块. */
|
|
4
|
-
export declare const enum
|
|
4
|
+
export declare const enum KG_APP {
|
|
5
5
|
DATA_MANAGER = "data-manager",
|
|
6
6
|
BUSINESS_MANAGER = "business-manager",
|
|
7
7
|
SYS = "sys"
|
|
8
8
|
}
|
|
9
9
|
/** 模块路径前缀. */
|
|
10
|
-
export declare const enum
|
|
10
|
+
export declare const enum KG_APPS_PREFIX {
|
|
11
11
|
DATA_MANAGER = "/wms/data-manager",
|
|
12
12
|
BUSINESS_MANAGER = "/wms/business-manager",
|
|
13
13
|
SYS = "/sys"
|
|
14
14
|
}
|
|
15
15
|
/** 表单控件类型. */
|
|
16
|
-
export declare const enum
|
|
16
|
+
export declare const enum KG_CONTROL_TYPE {
|
|
17
17
|
/** 文本. */
|
|
18
|
-
INPUT = "
|
|
18
|
+
INPUT = "INPUT",
|
|
19
19
|
/** 密码. */
|
|
20
|
-
INPUT_PASSWORD = "
|
|
20
|
+
INPUT_PASSWORD = "INPUT_PASSWORD",
|
|
21
21
|
/** 多行文本. */
|
|
22
|
-
INPUT_AREA = "
|
|
22
|
+
INPUT_AREA = "INPUT_AREA",
|
|
23
23
|
/** 数字. */
|
|
24
|
-
INPUT_NUMBER = "
|
|
25
|
-
CHECKBOX = "
|
|
26
|
-
SWITCH = "
|
|
24
|
+
INPUT_NUMBER = "INPUT_NUMBER",
|
|
25
|
+
CHECKBOX = "CHECKBOX",
|
|
26
|
+
SWITCH = "SWITCH",
|
|
27
27
|
/** 下拉列表单选. */
|
|
28
|
-
SELECT = "
|
|
28
|
+
SELECT = "SELECT",
|
|
29
29
|
/** 下拉列表多选. */
|
|
30
|
-
SELECT_MULTIPLE = "
|
|
31
|
-
DATE_DATE = "
|
|
32
|
-
DATE_DATE_RANGE = "
|
|
33
|
-
DATE_DATETIME = "
|
|
34
|
-
DATE_DATETIME_RANGE = "
|
|
35
|
-
DATE_WEEK = "
|
|
36
|
-
DATE_MONTH = "
|
|
37
|
-
DATE_YEAR = "
|
|
30
|
+
SELECT_MULTIPLE = "SELECT_MULTIPLE",
|
|
31
|
+
DATE_DATE = "DATE_DATE",
|
|
32
|
+
DATE_DATE_RANGE = "DATE_DATE_RANGE",
|
|
33
|
+
DATE_DATETIME = "DATE_DATETIME",
|
|
34
|
+
DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE",
|
|
35
|
+
DATE_WEEK = "DATE_WEEK",
|
|
36
|
+
DATE_MONTH = "DATE_MONTH",
|
|
37
|
+
DATE_YEAR = "DATE_YEAR",
|
|
38
38
|
/** 单位. */
|
|
39
|
-
UOM = "
|
|
40
|
-
/** 秒表计时. */
|
|
41
|
-
STOPWATCH = "Stopwatch",
|
|
39
|
+
UOM = "UOM",
|
|
42
40
|
/** 文件上传按钮. */
|
|
43
|
-
|
|
41
|
+
BTN_UPLOAD = "BTN_UPLOAD"
|
|
44
42
|
}
|
|
45
43
|
/** 所有模块. */
|
|
46
|
-
export declare const KG_APPS: Array<
|
|
44
|
+
export declare const KG_APPS: Array<KG_APP>;
|
|
47
45
|
/** 按钮类型. */
|
|
48
|
-
export declare const enum
|
|
46
|
+
export declare const enum KG_BUTTON_TYPE {
|
|
49
47
|
/** 创建. */
|
|
50
|
-
CREATE = "
|
|
48
|
+
CREATE = "CREATE",
|
|
51
49
|
/** 创建. */
|
|
52
|
-
UPDATE = "
|
|
50
|
+
UPDATE = "UPDATE",
|
|
53
51
|
/** 复制. */
|
|
54
|
-
COPY = "
|
|
52
|
+
COPY = "COPY",
|
|
55
53
|
/** 删除. */
|
|
56
|
-
DELETE = "
|
|
54
|
+
DELETE = "DELETE",
|
|
55
|
+
/** 导出. */
|
|
56
|
+
IMPORT = "IMPORT",
|
|
57
|
+
/** 导出. */
|
|
58
|
+
EXPORT = "EXPORT",
|
|
57
59
|
/** 查询. */
|
|
58
|
-
SEARCH = "
|
|
60
|
+
SEARCH = "SEARCH",
|
|
59
61
|
/** 清空查询条件. */
|
|
60
|
-
CLEAR = "
|
|
62
|
+
CLEAR = "CLEAR",
|
|
61
63
|
/** 刷新. */
|
|
62
|
-
REFRESH = "
|
|
64
|
+
REFRESH = "REFRESH",
|
|
63
65
|
/** 其他. */
|
|
64
|
-
OTHER = "
|
|
66
|
+
OTHER = "OTHER"
|
|
65
67
|
}
|
|
66
68
|
/** 定制级别. */
|
|
67
69
|
export declare const enum KG_CUSTOM_LEVEL {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KG_APP } from '../consts';
|
|
2
2
|
/**
|
|
3
3
|
* 判断某个路径是否属于某个模块.
|
|
4
4
|
* @param path 路径.
|
|
5
5
|
* @param app 模块.
|
|
6
6
|
*/
|
|
7
|
-
export declare function isPathInApp(path: string | undefined | null, app:
|
|
7
|
+
export declare function isPathInApp(path: string | undefined | null, app: KG_APP): boolean;
|
|
8
8
|
/**
|
|
9
9
|
* 根据地址获取模块.
|
|
10
10
|
* @param path 地址.
|
|
11
11
|
*/
|
|
12
|
-
export declare function getAppByPath(path: string):
|
|
12
|
+
export declare function getAppByPath(path: string): KG_APP;
|
|
13
13
|
/**
|
|
14
14
|
* 获取模块首页地址.
|
|
15
15
|
* @param app 模块.
|
|
16
16
|
*/
|
|
17
|
-
export declare function getAppIndexPath(app:
|
|
17
|
+
export declare function getAppIndexPath(app: KG_APP): string;
|
|
@@ -27,7 +27,7 @@ declare class Logger {
|
|
|
27
27
|
* @param collapsed 是否折叠.
|
|
28
28
|
* @param style 提示消息样式.
|
|
29
29
|
*/
|
|
30
|
-
static log(level: "error" | "
|
|
30
|
+
static log(level: "error" | "warn" | "info" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string): void;
|
|
31
31
|
/**
|
|
32
32
|
* 打印警告日志.
|
|
33
33
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build:dev": "rimraf dist && vue-tsc && vite build --mode development",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
|
11
11
|
"bump-to:luotao.wms-vue3": "tsx scripts/bump-to.luotao.wms-vue3.ts",
|
|
12
12
|
"copy-to:luotao.wms-vue3": "tsx scripts/copy-to.luotao.wms-vue3.ts",
|
|
13
|
+
"copy-to:luotao.wms-vue3 & build": "npm run build:dev && npm run copy-to:luotao.wms-vue3",
|
|
13
14
|
"gen:apis:WMS": "kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
|
14
15
|
"--------------------": "",
|
|
15
16
|
"bump-version:beta": "tsx scripts/bump.ts beta",
|
|
@@ -24,6 +25,9 @@
|
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@ant-design/icons-vue": "6.1.0",
|
|
28
|
+
"@iconify/vue": "4.1.1",
|
|
29
|
+
"@vueuse/core": "8.9.4",
|
|
30
|
+
"@vueuse/shared": "8.9.4",
|
|
27
31
|
"ant-design-vue": "3.2.14",
|
|
28
32
|
"axios": "0.26.1",
|
|
29
33
|
"dayjs": "1.11.6",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 启用变量.
|
|
4
|
-
* 在子组件中调用时, 可以不传该参数, 此时会通过依赖注入获取.
|
|
5
|
-
* 在寄生页面中想访问宿主页面的变量配置时, 需要传宿主页面的界面标识.
|
|
6
|
-
* 在组件外调用时, 必须传界面标识.
|
|
7
|
-
* @param formID 界面标识.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useKgVar(formID?: string): {
|
|
10
|
-
formID: string;
|
|
11
|
-
kgVarStore: import("pinia").Store<"KgVar", import("./index.store").KgVarState, {
|
|
12
|
-
getTopFormID(): string | null;
|
|
13
|
-
getVarCatalogs(): (formID?: string | null | undefined) => import("../..").VarCatalog[] | null;
|
|
14
|
-
getVarCatalog(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarCatalog | null;
|
|
15
|
-
getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarLookup | null;
|
|
16
|
-
getVarGridMasters(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO[] | null;
|
|
17
|
-
getVarGridMaster(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO | null;
|
|
18
|
-
getVarGridDetails(): (formID?: string | null | undefined) => import("../..").VarGridDetail[] | null;
|
|
19
|
-
}, {
|
|
20
|
-
leave(formID: string): void;
|
|
21
|
-
deleteAll(formID: string): void;
|
|
22
|
-
retrieveAll(formID?: string | null | undefined): Promise<void>;
|
|
23
|
-
enter(formID: string): Promise<void>;
|
|
24
|
-
}>;
|
|
25
|
-
t1: (varName?: string | null) => ComputedRef<string>;
|
|
26
|
-
t2: (varName?: string | null) => string;
|
|
27
|
-
} | {
|
|
28
|
-
formID: string;
|
|
29
|
-
kgVarStore: import("pinia").Store<"KgVar", import("./index.store").KgVarState, {
|
|
30
|
-
getTopFormID(): string | null;
|
|
31
|
-
getVarCatalogs(): (formID?: string | null | undefined) => import("../..").VarCatalog[] | null;
|
|
32
|
-
getVarCatalog(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarCatalog | null;
|
|
33
|
-
getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarLookup | null;
|
|
34
|
-
getVarGridMasters(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO[] | null;
|
|
35
|
-
getVarGridMaster(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO | null;
|
|
36
|
-
getVarGridDetails(): (formID?: string | null | undefined) => import("../..").VarGridDetail[] | null;
|
|
37
|
-
}, {
|
|
38
|
-
leave(formID: string): void;
|
|
39
|
-
deleteAll(formID: string): void;
|
|
40
|
-
retrieveAll(formID?: string | null | undefined): Promise<void>;
|
|
41
|
-
enter(formID: string): Promise<void>;
|
|
42
|
-
}>;
|
|
43
|
-
t1: (varName?: string | null) => Ref<string>;
|
|
44
|
-
t2: (varName?: string | null) => string;
|
|
45
|
-
};
|