@kengic/vue 0.21.5-beta.2 → 0.22.1-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +156 -68
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +10150 -10225
- package/dist/project/index.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
- package/dist/src/apis/WMS/models.d.ts +179 -251
- package/dist/src/components/KgButton/index.hooks.d.ts +141 -68
- package/dist/src/components/KgButton/index.store.d.ts +175 -54
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
- package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
- package/dist/src/components/KgVar/index.hooks.d.ts +2642 -2027
- package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
- package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
- package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
- package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +5 -4
- package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
- package/dist/src/consts/index.d.ts +4 -4
- package/dist/src/consts/index.vm.d.ts +8 -11
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
- package/dist/src/utils/kg-route.util.d.ts +3 -2
- package/dist/src/utils/kg-var.util.d.ts +23 -11
- package/dist/src/utils/kg.util.d.ts +19 -10
- package/package.json +4 -4
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.VarVariableCatalog.d.ts → KgVarConfig.Modal.Var.VarConfigDescription.d.ts} +0 -0
@@ -7,9 +7,10 @@ export declare class KgRouteUtil {
|
|
7
7
|
*/
|
8
8
|
static addOnlineRoutesForAllApps(routes: any[]): any[];
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* 根据菜单地址地址获取菜单.
|
11
|
+
*
|
11
12
|
* @param menus 菜单列表.
|
12
|
-
* @param path
|
13
|
+
* @param path 菜单地址.
|
13
14
|
* @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
|
14
15
|
*/
|
15
16
|
static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
|
@@ -12,25 +12,37 @@ export declare class KgVarUtil {
|
|
12
12
|
static parseRequestParamsToJSON(params?: string | null): Record<string, any>;
|
13
13
|
/**
|
14
14
|
* 根据控件类型, 将任意的值(可能非法)转换为合法的值.
|
15
|
-
*
|
16
|
-
* @param
|
17
|
-
* @param
|
18
|
-
* @param
|
19
|
-
* @param
|
15
|
+
*
|
16
|
+
* @param param.$dayjs dayjs.
|
17
|
+
* @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
|
18
|
+
* @param param.formID 界面标识.
|
19
|
+
* @param param.value 原始的值.
|
20
|
+
* @param param.variableName 变量名称.
|
20
21
|
* @return {} 转换后的合法的值.
|
21
22
|
*/
|
22
|
-
static transformFormItemValue(
|
23
|
+
static transformFormItemValue(param: {
|
24
|
+
$dayjs: typeof dayjs;
|
25
|
+
buttonVarName: string | null | undefined;
|
26
|
+
formID: string;
|
27
|
+
value: any;
|
28
|
+
varName: string;
|
29
|
+
}): any;
|
23
30
|
/**
|
24
31
|
* 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
|
25
|
-
*
|
26
|
-
* @param
|
27
|
-
* @param value 原始的高级查询操作符.
|
32
|
+
*
|
33
|
+
* @param param.formID 界面标识.
|
34
|
+
* @param param.value 原始的高级查询操作符.
|
35
|
+
* @param param.varName 变量名称.
|
28
36
|
* @return {} 转换后的合法的值.
|
29
37
|
*/
|
30
|
-
static transformFormItemDynamicQueryOperator(
|
38
|
+
static transformFormItemDynamicQueryOperator(param: {
|
39
|
+
formID: string;
|
40
|
+
value: string | null | undefined;
|
41
|
+
varName: string;
|
42
|
+
}): string;
|
31
43
|
/**
|
32
44
|
* 根据控件类型获取高级查询操作符的下拉列表.
|
33
45
|
* @param controlType 控件类型.
|
34
46
|
*/
|
35
|
-
static getDynamicQueryOperatorSelectOptions(controlType: KG_FORM_ITEM_CONTROL_TYPE): any;
|
47
|
+
static getDynamicQueryOperatorSelectOptions(controlType: KG_FORM_ITEM_CONTROL_TYPE | null | undefined): any;
|
36
48
|
}
|
@@ -21,7 +21,11 @@ export declare class KgUtil {
|
|
21
21
|
* 下载文件.
|
22
22
|
* @param data 文件数据.
|
23
23
|
* @param fileName 文件名称, 包含后缀.
|
24
|
-
* @param contentType
|
24
|
+
* @param contentType <p>文件类型. 如果为空, 则根据文件名的后缀自动设置.</p>
|
25
|
+
* <ul>
|
26
|
+
* <li><code>.xls</code>: <code>application/vnd.ms-excel</code></li>
|
27
|
+
* <li><code>.xlsx</code>: <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code></li>
|
28
|
+
* </ul>
|
25
29
|
*/
|
26
30
|
static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
|
27
31
|
/**
|
@@ -39,8 +43,8 @@ export declare class KgUtil {
|
|
39
43
|
*/
|
40
44
|
static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
|
41
45
|
/**
|
42
|
-
* <p
|
43
|
-
* <p
|
46
|
+
* <p>获取根据查询条件拼接后的 SQL 语句片段.</p>
|
47
|
+
* <p>根据查询参数拼接为一个 SQL 片段, 格式如下: `WHERE ... ORDER BY ...`.</p>
|
44
48
|
* <p>
|
45
49
|
* 参数 formID 和 operators 只能其中一个传值.
|
46
50
|
* <ul>
|
@@ -55,16 +59,21 @@ export declare class KgUtil {
|
|
55
59
|
* </ul>
|
56
60
|
* </li>
|
57
61
|
* </ol>
|
58
|
-
* @param params 请求参数.
|
59
|
-
* @param formID 界面标识.
|
60
|
-
* @param operators 各个字段的高级查询操作符.
|
61
|
-
* @param
|
62
|
-
* @return {} 拼接好的 SQL.
|
62
|
+
* @param param.params 请求参数.
|
63
|
+
* @param param.formID 界面标识.
|
64
|
+
* @param param.operators 各个字段的高级查询操作符.
|
65
|
+
* @param param.$dayjs dayjs.
|
63
66
|
*/
|
64
|
-
static
|
67
|
+
static getQueryHeaders(param: {
|
68
|
+
$dayjs: typeof dayjs;
|
69
|
+
formID: string | null | undefined;
|
70
|
+
operators: Record<string, any> | null | undefined;
|
71
|
+
params: Record<string, any> | null | undefined;
|
72
|
+
}): {
|
73
|
+
operatorJSON: string;
|
74
|
+
orderBySql: string;
|
65
75
|
sql: string;
|
66
76
|
whereSql: string;
|
67
|
-
orderBySql: string;
|
68
77
|
};
|
69
78
|
/**
|
70
79
|
* 处理请求参数: 解析字符串类型的参数值.
|
package/package.json
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.22.1-beta.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
7
|
"--------------------------------------------------": "",
|
8
|
-
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
9
|
-
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
10
|
-
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
11
8
|
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
9
|
+
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
10
|
+
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
11
|
+
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
12
12
|
"----- --------------------------------------------": "",
|
13
13
|
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
14
14
|
"--- ----------------------------------------------": "",
|
File without changes
|
/package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts
RENAMED
File without changes
|
File without changes
|
/package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|