@kengic/vue 0.5.7 → 0.5.8
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 +5391 -5278
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.data.d.ts +1 -1
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +1 -1
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.SaveGridMaster.d.ts +1 -1
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridConfig.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +2 -1
- package/dist/src/components/KgVar/index.store.d.ts +20 -7
- package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +24 -0
- package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -0
- package/dist/src/consts/i18n/en.d.ts +4 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +4 -0
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const FORM_ID__VAR_PROFILE_MASTER = "kg-search.VarProfileMaster";
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit
|
1
|
+
export declare const FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitConfig";
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
3
3
|
export default _default;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save";
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
3
3
|
export default _default;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const FORM_ID__VAR_GRID_CONFIG = "kg-
|
1
|
+
export declare const FORM_ID__VAR_GRID_CONFIG = "kg-search.VarGridConfig";
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
3
3
|
export default _default;
|
@@ -46,5 +46,6 @@ export declare type IUseKgVar = {
|
|
46
46
|
* 3. 在组件外(setup 外面)调用时, 必须传入'界面标识'.
|
47
47
|
* @param formID 界面标识.
|
48
48
|
* @param init 是否要初始化界面. 在'宿主页面'第一次调用时, 需要传 true, 对该页面做初始化.
|
49
|
+
* @param level 层级.
|
49
50
|
*/
|
50
|
-
export declare function useKgVar(formID?: string | null, init?: boolean): IUseKgVar;
|
51
|
+
export declare function useKgVar(formID?: string | null, init?: boolean, level?: number): IUseKgVar;
|
@@ -1,10 +1,23 @@
|
|
1
1
|
import { type StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton, VarCatalog, VarConfig, VarGridConfig, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileConfig, VarProfileDetail, VarProfileDTO, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
|
3
|
+
export declare type IFormID = {
|
4
|
+
formID: string;
|
5
|
+
/**
|
6
|
+
* 页面所处的模态框(弹出框)的层级.
|
7
|
+
*
|
8
|
+
* - 普通页面中该属性值为 0
|
9
|
+
* - 第一级弹出框中该属性值为 1
|
10
|
+
* - 第二级弹出框中该属性值为 2
|
11
|
+
* - 依次类推...
|
12
|
+
*/
|
13
|
+
level: number;
|
14
|
+
};
|
3
15
|
export interface IKgVarState {
|
4
16
|
/**
|
5
|
-
*
|
17
|
+
* 当前打开的所有界面.
|
18
|
+
* 当前可能打开了多个界面, 需要把它们的界面标识和层级都记录下来.
|
6
19
|
*/
|
7
|
-
formIDs: Array<
|
20
|
+
formIDs: Array<IFormID>;
|
8
21
|
/** 正在查询变量配置. */
|
9
22
|
isRetrievingVarMap: Map<string, boolean>;
|
10
23
|
/** 正在查询 VarProfileMaster. */
|
@@ -48,10 +61,10 @@ export interface IKgVarState {
|
|
48
61
|
}>;
|
49
62
|
}
|
50
63
|
export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState, {
|
51
|
-
/**
|
52
|
-
|
53
|
-
/**
|
54
|
-
|
64
|
+
/** 获取最顶层的界面标识, 即 level 最大的界面, 可能包含多个. */
|
65
|
+
getTopFormIDs(): Array<string>;
|
66
|
+
/** 获取界面层级. */
|
67
|
+
getFormLevel(): (formID?: string | null) => number;
|
55
68
|
isRetrievingVar(): (formID?: string | null) => boolean | null;
|
56
69
|
isRetrievingVarProfileMaster(): (formID?: string | null) => boolean | null;
|
57
70
|
isCreating(): (formID?: string | null) => boolean | null;
|
@@ -122,7 +135,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
122
135
|
getCurrentVisibleVarGridDetails(): (formID?: string | null) => Array<VarGridDetail> | null;
|
123
136
|
getCurrentVisibleVarGridDetailsTotalWidth(): (formID?: string | null) => number | null;
|
124
137
|
}, {
|
125
|
-
enter(formID:
|
138
|
+
enter(formID: IFormID): Promise<void>;
|
126
139
|
leave(formID: string): void;
|
127
140
|
retrieve(formID?: string | null): Promise<void>;
|
128
141
|
setIsCreating(formID: string, value: boolean): void;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgVarConfig.FormIDsModal.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
visible: PropType<boolean>;
|
5
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
6
|
+
formIDs: PropType<string[]>;
|
7
|
+
onKgOk: PropType<(formID: string) => void>;
|
8
|
+
};
|
9
|
+
export declare type IKgVarConfigFormIDsModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
11
|
+
visible: PropType<boolean>;
|
12
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
13
|
+
formIDs: PropType<string[]>;
|
14
|
+
onKgOk: PropType<(formID: string) => void>;
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
16
|
+
visible: PropType<boolean>;
|
17
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
18
|
+
formIDs: PropType<string[]>;
|
19
|
+
onKgOk: PropType<(formID: string) => void>;
|
20
|
+
}>> & {
|
21
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
22
|
+
onKgOk?: ((...args: any[]) => any) | undefined;
|
23
|
+
}, {}>;
|
24
|
+
export default _default;
|
@@ -67,6 +67,9 @@ declare const _default: {
|
|
67
67
|
variableName: string;
|
68
68
|
variables: string;
|
69
69
|
};
|
70
|
+
KgVarConfigFormIDsModal: {
|
71
|
+
title: string;
|
72
|
+
};
|
70
73
|
KgWarehouse: {
|
71
74
|
reloadMessage: string;
|
72
75
|
selectWarehouse: string;
|
@@ -90,6 +93,7 @@ declare const _default: {
|
|
90
93
|
emptyText: string;
|
91
94
|
export: string;
|
92
95
|
exportSuccess: string;
|
96
|
+
formId: string;
|
93
97
|
import: string;
|
94
98
|
importSuccess: string;
|
95
99
|
importTemplate: string;
|
@@ -66,6 +66,9 @@ declare const _default: {
|
|
66
66
|
variableName: string;
|
67
67
|
variables: string;
|
68
68
|
};
|
69
|
+
KgVarConfigFormIDsModal: {
|
70
|
+
title: string;
|
71
|
+
};
|
69
72
|
KgWarehouse: {
|
70
73
|
reloadMessage: string;
|
71
74
|
selectWarehouse: string;
|
@@ -89,6 +92,7 @@ declare const _default: {
|
|
89
92
|
emptyText: string;
|
90
93
|
export: string;
|
91
94
|
exportSuccess: string;
|
95
|
+
formId: string;
|
92
96
|
import: string;
|
93
97
|
importSuccess: string;
|
94
98
|
importTemplate: string;
|