@kengic/vue 0.2.1-beta.1 → 0.2.1-beta.11
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 +4599 -2202
- package/dist/src/apis/WMS/models.d.ts +177 -9
- package/dist/src/components/KgButton/KgButton.Copy.d.ts +21 -15
- package/dist/src/components/KgButton/KgButton.Create.d.ts +23 -15
- package/dist/src/components/KgButton/KgButton.Delete.d.ts +21 -15
- package/dist/src/components/KgButton/KgButton.Export.d.ts +21 -15
- 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 +23 -15
- package/dist/src/components/KgButton/KgButton.d.ts +22 -16
- 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 +15 -9
- 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 -26
- package/dist/src/components/KgControl/KgControl.Switch.d.ts +28 -22
- package/dist/src/components/KgControl/KgControl.d.ts +28 -22
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.Modal.d.ts +5 -5
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +5 -5
- package/dist/src/components/KgControl/index.vm.d.ts +23 -12
- 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 +40 -7
- 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 +7 -5
- 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 -6
- 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 +29 -4
- package/dist/src/consts/i18n/en.d.ts +14 -0
- package/dist/src/consts/i18n/index.d.ts +28 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +14 -0
- package/dist/src/consts/index.d.ts +17 -19
- package/dist/src/utils/kg.util.d.ts +4 -0
- 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
|
@@ -19,10 +19,24 @@ export declare const KG_I18N: {
|
|
|
19
19
|
cancel: string;
|
|
20
20
|
confirm: string;
|
|
21
21
|
lookup: string;
|
|
22
|
+
button: string;
|
|
22
23
|
confirmDelete: string;
|
|
24
|
+
deleteSuccess: string;
|
|
25
|
+
emptyText: string;
|
|
23
26
|
KgSearch: {
|
|
24
27
|
title: string;
|
|
25
28
|
};
|
|
29
|
+
KgTable: {
|
|
30
|
+
emptyText: string;
|
|
31
|
+
totalText: string;
|
|
32
|
+
};
|
|
33
|
+
KgTableInfo: {
|
|
34
|
+
check: string;
|
|
35
|
+
row: string;
|
|
36
|
+
clearCheck: string;
|
|
37
|
+
locate: string;
|
|
38
|
+
clearTable: string;
|
|
39
|
+
};
|
|
26
40
|
};
|
|
27
41
|
};
|
|
28
42
|
zh_CN: {
|
|
@@ -45,10 +59,24 @@ export declare const KG_I18N: {
|
|
|
45
59
|
cancel: string;
|
|
46
60
|
confirm: string;
|
|
47
61
|
lookup: string;
|
|
62
|
+
button: string;
|
|
48
63
|
confirmDelete: string;
|
|
64
|
+
deleteSuccess: string;
|
|
65
|
+
emptyText: string;
|
|
49
66
|
KgSearch: {
|
|
50
67
|
title: string;
|
|
51
68
|
};
|
|
69
|
+
KgTable: {
|
|
70
|
+
emptyText: string;
|
|
71
|
+
totalText: string;
|
|
72
|
+
};
|
|
73
|
+
KgTableInfo: {
|
|
74
|
+
check: string;
|
|
75
|
+
row: string;
|
|
76
|
+
clearCheck: string;
|
|
77
|
+
locate: string;
|
|
78
|
+
clearTable: string;
|
|
79
|
+
};
|
|
52
80
|
};
|
|
53
81
|
};
|
|
54
82
|
};
|
|
@@ -18,10 +18,24 @@ declare const _default: {
|
|
|
18
18
|
cancel: string;
|
|
19
19
|
confirm: string;
|
|
20
20
|
lookup: string;
|
|
21
|
+
button: string;
|
|
21
22
|
confirmDelete: string;
|
|
23
|
+
deleteSuccess: string;
|
|
24
|
+
emptyText: string;
|
|
22
25
|
KgSearch: {
|
|
23
26
|
title: string;
|
|
24
27
|
};
|
|
28
|
+
KgTable: {
|
|
29
|
+
emptyText: string;
|
|
30
|
+
totalText: string;
|
|
31
|
+
};
|
|
32
|
+
KgTableInfo: {
|
|
33
|
+
check: string;
|
|
34
|
+
row: string;
|
|
35
|
+
clearCheck: string;
|
|
36
|
+
locate: string;
|
|
37
|
+
clearTable: string;
|
|
38
|
+
};
|
|
25
39
|
};
|
|
26
40
|
};
|
|
27
41
|
export default _default;
|
|
@@ -15,32 +15,30 @@ export declare const enum KG_APPS_PREFIX {
|
|
|
15
15
|
/** 表单控件类型. */
|
|
16
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
44
|
export declare const KG_APPS: Array<KG_APP>;
|
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.11",
|
|
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
|
-
};
|