@kengic/vue 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +6479 -5667
- package/dist/project/build/script/buildConf.ts +1 -2
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/project/src/api/sys/model/userModel.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +20 -4
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
- package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
- package/dist/src/components/KgButton/KgButton.d.ts +18 -12
- package/dist/src/components/KgButton/index.d.ts +4 -4
- package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
- package/dist/src/components/KgButton/index.store.d.ts +19 -16
- package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
- package/dist/src/components/KgForm/index.store.d.ts +74 -34
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
- package/dist/src/components/KgForm.Item/index.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
- package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
- package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
- package/dist/src/components/KgSearch/index.hooks.d.ts +33 -9
- package/dist/src/components/KgSearch/index.store.d.ts +44 -37
- package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
- package/dist/src/components/KgSubmit/index.store.d.ts +44 -45
- package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
- package/dist/src/components/KgTable/index.store.d.ts +48 -34
- package/dist/src/components/KgTable/index.vm.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +9 -11
- package/dist/src/components/KgVar/index.store.d.ts +51 -60
- package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
- package/dist/src/components/KgVar/index.vm.d.ts +7 -7
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
- package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
- package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
- package/dist/src/components/util.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +10 -7
- package/dist/src/consts/i18n/zh_CN.d.ts +10 -7
- package/dist/src/consts/index.d.ts +0 -284
- package/dist/src/consts/index.vm.d.ts +425 -24
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -0
- package/dist/src/utils/kg-var.util.d.ts +4 -3
- package/dist/src/utils/kg.util.d.ts +11 -14
- package/package.json +2 -2
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
- /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,12 +1,11 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import { VarProfileDetail } from '../../apis/WMS/models';
|
3
2
|
import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
|
4
3
|
import { IUseKgButton } from '../KgButton';
|
5
4
|
import { IUseKgForm } from '../KgForm';
|
6
5
|
import { type IUseKgSearch } from '../KgSearch';
|
7
6
|
import { IUseKgSubmit } from '../KgSubmit';
|
8
7
|
import { IUseKgTable } from '../KgTable';
|
9
|
-
import {
|
8
|
+
import { IKgVarRetrieveEventListener, IKgVarStore } from './index.store';
|
10
9
|
export declare type IUseKgVar = {
|
11
10
|
/** 当前的 VarGridDetail 列表. */
|
12
11
|
currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
|
@@ -14,10 +13,6 @@ export declare type IUseKgVar = {
|
|
14
13
|
currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
|
15
14
|
/** 当前的 VarGridMaster. */
|
16
15
|
currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
|
17
|
-
/** 当前的 VarProfileDetail 列表. */
|
18
|
-
currentVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
|
19
|
-
/** 当前的 VarProfileMaster. */
|
20
|
-
currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
|
21
16
|
/** 当前的 VarProfileMaster ID. */
|
22
17
|
currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
|
23
18
|
/**
|
@@ -100,7 +95,11 @@ export declare type IUseKgVar = {
|
|
100
95
|
* @param cb 回调函数.
|
101
96
|
* @param once 是否只会触发一次. 默认为 undefined.
|
102
97
|
*/
|
103
|
-
onRetrieve(cb:
|
98
|
+
onRetrieve(cb: IKgVarRetrieveEventListener, once?: boolean): IRemoveEventListenerHandler;
|
99
|
+
/**
|
100
|
+
* 查询所有变量配置.
|
101
|
+
*/
|
102
|
+
requestAll(): Promise<void>;
|
104
103
|
/** 状态数据. */
|
105
104
|
store: IKgVarStore;
|
106
105
|
/** 系统的 VarGridDetail 列表. */
|
@@ -108,18 +107,17 @@ export declare type IUseKgVar = {
|
|
108
107
|
/**
|
109
108
|
* 翻译变量. 响应式的.
|
110
109
|
*
|
111
|
-
* @param
|
110
|
+
* @param varName 变量名称.
|
112
111
|
*/
|
113
|
-
t(
|
112
|
+
t(varName: string | null | undefined): ComputedRef<string>;
|
114
113
|
varButtonCopy: ComputedRef<ReturnType<IKgVarStore['getVarButtonCopy']>>;
|
115
114
|
varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
|
116
115
|
varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
|
117
116
|
varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
|
118
|
-
/** 所有的 VarButton 列表. */
|
119
|
-
varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
|
120
117
|
varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
|
121
118
|
/** 所有的 VarGridMaster 列表. */
|
122
119
|
varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
|
120
|
+
varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
|
123
121
|
/** 所有的 VarProfileMaster 列表. */
|
124
122
|
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
125
123
|
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
3
|
-
import {
|
3
|
+
import { IKgEventListener, KG_BUTTON_TYPE } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
* 'retrieve': 变量配置查询完成
|
7
7
|
*/
|
8
8
|
export declare type IKgVarEvent = 'retrieve';
|
9
|
-
|
10
|
-
export declare type
|
11
|
-
export declare type
|
9
|
+
export declare type IKgVarRetrieveEventListener = (() => void) & IKgEventListener;
|
10
|
+
export declare type IKgVarEventListenerParameter = any;
|
11
|
+
export declare type IKgVarEventListener = IKgVarRetrieveEventListener;
|
12
12
|
export interface IUseKgVarStoreState {
|
13
13
|
/** 正在复制: 正在调用接口. */
|
14
14
|
isCopyingRequestingMap: Map<string, boolean>;
|
@@ -20,8 +20,10 @@ export interface IUseKgVarStoreState {
|
|
20
20
|
isOtherRequestingMap: Map<string, boolean>;
|
21
21
|
/** 变量配置是否查询完成. */
|
22
22
|
isRequestedMap: Map<string, boolean>;
|
23
|
-
/**
|
24
|
-
|
23
|
+
/**
|
24
|
+
* 正在查询所有变量配置.
|
25
|
+
*/
|
26
|
+
isRequestingAllMap: Map<string, boolean>;
|
25
27
|
/** 正在查询 VarGridMaster. */
|
26
28
|
isRetrievingVarGridMasterMap: Map<string, boolean>;
|
27
29
|
/** 正在查询 VarProfileMaster. */
|
@@ -33,7 +35,7 @@ export interface IUseKgVarStoreState {
|
|
33
35
|
*/
|
34
36
|
levelMap: Map<string, number>;
|
35
37
|
/** 事件监听函数列表: retrieve. */
|
36
|
-
|
38
|
+
onRetrieveEventListenersMap: Map<string, Array<IKgVarRetrieveEventListener>>;
|
37
39
|
varButtonConfigMap: Map<string, VarButtonConfig | null>;
|
38
40
|
varButtonMap: Map<string, Array<VarButton>>;
|
39
41
|
varConfigControlMap: Map<string, Array<VarConfigControl>>;
|
@@ -61,24 +63,24 @@ export interface IUseKgVarStoreGetters {
|
|
61
63
|
/**
|
62
64
|
* 获取当前的 VarGridDetail 列表.
|
63
65
|
*/
|
64
|
-
getCurrentVarGridDetails(): (
|
65
|
-
getCurrentVarGridMaster(): (
|
66
|
+
getCurrentVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
67
|
+
getCurrentVarGridMaster(): (formID: string | null | undefined) => VarGridMasterDTO | null;
|
66
68
|
/** 获取当前'表格视图'的 ID. */
|
67
|
-
getCurrentVarGridMasterID(): (
|
69
|
+
getCurrentVarGridMasterID(): (formID: string | null | undefined) => string | null;
|
68
70
|
/**
|
69
71
|
* 获取当前的 VarProfileMaster.
|
70
72
|
*/
|
71
|
-
getCurrentVarProfileMaster(): (
|
73
|
+
getCurrentVarProfileMaster(): (formID: string | null | undefined) => VarProfileMasterDTO | null;
|
72
74
|
/** 获取当前 VarProfileMaster 的 ID. */
|
73
|
-
getCurrentVarProfileMasterID(): (
|
75
|
+
getCurrentVarProfileMasterID(): (formID: string | null | undefined) => string | null;
|
74
76
|
/**
|
75
77
|
* 获取当前视图下可显示的 VarGridDetail 列表.
|
76
78
|
*/
|
77
|
-
getCurrentVisibleVarGridDetails(): (
|
79
|
+
getCurrentVisibleVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
78
80
|
/**
|
79
81
|
* 获取当前视图下可显示的 VarGridDetail 的宽度之和.
|
80
82
|
*/
|
81
|
-
getCurrentVisibleVarGridDetailsTotalWidth(): (
|
83
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (formID: string | null | undefined) => number | null;
|
82
84
|
/**
|
83
85
|
* 获取界面层级.
|
84
86
|
*/
|
@@ -86,75 +88,63 @@ export interface IUseKgVarStoreGetters {
|
|
86
88
|
/**
|
87
89
|
* 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
|
88
90
|
*/
|
89
|
-
getSystemVarGridDetails(): (
|
91
|
+
getSystemVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
90
92
|
/**
|
91
93
|
* 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
|
92
94
|
*/
|
93
|
-
getSystemVarProfileDetails(): (
|
95
|
+
getSystemVarProfileDetails(): (formID: string | null | undefined) => Array<VarProfileDetail> | null;
|
94
96
|
/**
|
95
97
|
* 和 var_nam 获取 VarButton.
|
96
98
|
*/
|
97
99
|
getVarButton(): (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
|
98
|
-
getVarButtonConfig(): (
|
99
|
-
getVarButtonCopy(): (
|
100
|
-
getVarButtonCreate(): (
|
101
|
-
getVarButtonDelete(): (
|
102
|
-
getVarButtonUpdate(): (
|
103
|
-
/**
|
104
|
-
* 获取 VarButton 列表.
|
105
|
-
*/
|
106
|
-
getVarButtons(): (frm_id: string | null | undefined) => Array<VarButton> | null;
|
100
|
+
getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
|
101
|
+
getVarButtonCopy(): (formID: string | null | undefined) => VarButton | null;
|
102
|
+
getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
|
103
|
+
getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
|
104
|
+
getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
|
107
105
|
getVarConfigControl(): (formID: string | null | undefined, param: {
|
108
106
|
buttonType?: KG_BUTTON_TYPE;
|
109
107
|
buttonVarName?: string | null;
|
110
108
|
varName: string | null | undefined;
|
111
109
|
}) => VarConfigControl | null;
|
112
|
-
getVarConfigInput(): (
|
110
|
+
getVarConfigInput(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
|
111
|
+
getVarConfigLookup(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
|
112
|
+
getVarConfigPossibility(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigPossibility | null;
|
113
|
+
getVarConfigTip(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
|
113
114
|
/**
|
114
115
|
* 获取'表格配置'.
|
115
116
|
*/
|
116
|
-
getVarGridConfig(): (
|
117
|
+
getVarGridConfig(): (formID: string | null | undefined) => VarGridConfig | null;
|
117
118
|
/** 获取所有的 VarGridConfig. */
|
118
119
|
getVarGridConfigMap(): Map<string, VarGridConfig | null>;
|
119
|
-
|
120
|
-
* 和 var_nam 获取 VarGridDetail.
|
121
|
-
*/
|
122
|
-
getVarGridDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarGridDetail | null;
|
120
|
+
getVarGridDetail(): (formID: string | null | undefined, varName: string | null | undefined) => VarGridDetail | null;
|
123
121
|
/**
|
124
122
|
* 获取 VarGridMaster 列表.
|
125
123
|
*/
|
126
|
-
getVarGridMasters(): (
|
127
|
-
|
128
|
-
* 和 var_nam 获取 VarConfigLookup.
|
129
|
-
*/
|
130
|
-
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarConfigLookup | null;
|
131
|
-
/**
|
132
|
-
* 和 var_nam 获取 VarConfigPossibility.
|
133
|
-
*/
|
134
|
-
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarConfigPossibility | null;
|
135
|
-
getVarProfileConfig(): (frm_id: string | null | undefined) => VarProfileConfig | null;
|
124
|
+
getVarGridMasters(): (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
125
|
+
getVarProfileConfig(): (formID: string | null | undefined) => VarProfileConfig | null;
|
136
126
|
/**
|
137
127
|
* 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
138
128
|
*/
|
139
|
-
getVarProfileDetail(): (
|
129
|
+
getVarProfileDetail(): (formID: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
|
140
130
|
/**
|
141
131
|
* 获取 VarProfileMasterDTO 列表.
|
142
132
|
*/
|
143
|
-
getVarProfileMasters(): (
|
144
|
-
isCopyingRequesting(): (
|
145
|
-
isCreatingRequesting(): (
|
146
|
-
isDeletingRequesting(): (
|
147
|
-
isOtherRequesting(): (
|
148
|
-
isRetrieving(): (
|
149
|
-
isRetrievingVarGridMaster(): (
|
150
|
-
isRetrievingVarProfileMaster(): (
|
133
|
+
getVarProfileMasters(): (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
134
|
+
isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
|
135
|
+
isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
136
|
+
isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
|
137
|
+
isOtherRequesting(): (formID: string | null | undefined) => boolean | null;
|
138
|
+
isRetrieving(): (formID: string | null | undefined) => boolean | null;
|
139
|
+
isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
|
140
|
+
isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
|
151
141
|
/** 变量配置是否查询完成. */
|
152
|
-
isSearched(): (
|
153
|
-
isUpdatingRequesting(): (
|
142
|
+
isSearched(): (formID: string | null | undefined) => boolean;
|
143
|
+
isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
154
144
|
/**
|
155
145
|
* 翻译变量.
|
156
146
|
*/
|
157
|
-
t(): (
|
147
|
+
t(): (formID: string | null | undefined, varName: string | null | undefined) => string;
|
158
148
|
}
|
159
149
|
export interface IUseKgVarStoreActions {
|
160
150
|
/**
|
@@ -163,7 +153,7 @@ export interface IUseKgVarStoreActions {
|
|
163
153
|
* @param event 事件名称.
|
164
154
|
* @param cb 回调函数.
|
165
155
|
*/
|
166
|
-
addEventListener(formID: string, event: IKgVarEvent, cb:
|
156
|
+
addEventListener(formID: string, event: IKgVarEvent, cb: IKgVarEventListener): void;
|
167
157
|
/**
|
168
158
|
* <p>离开一个界面, 即销毁一个界面.</p>
|
169
159
|
* <p>删除它的变量配置数据.</p>
|
@@ -190,7 +180,7 @@ export interface IUseKgVarStoreActions {
|
|
190
180
|
* @param param.formID 界面标识.
|
191
181
|
* @param param.level 界面层级.
|
192
182
|
*/
|
193
|
-
|
183
|
+
init(param: {
|
194
184
|
formID: string;
|
195
185
|
level: number;
|
196
186
|
}): Promise<void>;
|
@@ -221,12 +211,13 @@ export interface IUseKgVarStoreActions {
|
|
221
211
|
* @param event 事件名称.
|
222
212
|
* @param cb 回调函数.
|
223
213
|
*/
|
224
|
-
removeEventListener(formID: string, event: IKgVarEvent, cb?:
|
214
|
+
removeEventListener(formID: string, event: IKgVarEvent, cb?: IKgVarEventListener): void;
|
225
215
|
/**
|
226
216
|
* 查询所有变量配置.
|
227
|
-
*
|
217
|
+
*
|
218
|
+
* @param formID 界面标识.
|
228
219
|
*/
|
229
|
-
|
220
|
+
requestAll(formID: string | null | undefined): Promise<void>;
|
230
221
|
/**
|
231
222
|
* 设置当前选择的表格视图的 ID.
|
232
223
|
* @param formID 界面标识.
|
@@ -255,9 +246,9 @@ export interface IUseKgVarStoreActions {
|
|
255
246
|
* 设置某个 VarConfigPossibility 配置.
|
256
247
|
* @param formID 界面标识.
|
257
248
|
* @param var_nam 变量名称
|
258
|
-
* @param
|
249
|
+
* @param varConfigPossibility 配置.
|
259
250
|
*/
|
260
|
-
setVarPossibility(formID: string | null | undefined, var_nam: string | null | undefined,
|
251
|
+
setVarPossibility(formID: string | null | undefined, var_nam: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
|
261
252
|
/**
|
262
253
|
* 设置查询字段是否启用.
|
263
254
|
* @param formID 界面标识.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
1
|
+
import { VarButton, VarButtonConfig, VarConfigPossibility, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
2
2
|
export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
|
3
3
|
export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
|
4
4
|
export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
@@ -6,6 +6,7 @@ export declare function transformVarProfileMasterDTOs(varProfileMasterDTOs?: Arr
|
|
6
6
|
export declare function transformVarSubmitConfigs(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
|
7
7
|
export declare function transformVarSubmitDetails(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
|
8
8
|
export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
|
9
|
+
export declare function transformVarConfigPossibilities(varConfigPossibilities?: Array<VarConfigPossibility> | null): Array<VarConfigPossibility>;
|
9
10
|
export declare function transformVarButtonConfig(varButtonConfig?: VarButtonConfig | null): VarButtonConfig | null;
|
10
11
|
/**
|
11
12
|
* 处理 VarGridDetail 数据.
|
@@ -6,16 +6,14 @@ import { KgSubmitProps } from '../KgSubmit';
|
|
6
6
|
import { IKgTableSlotParams } from '../KgTable';
|
7
7
|
import { IKgTableProps } from '../KgTable/KgTable';
|
8
8
|
export declare type IKgSlots = {
|
9
|
-
/** KgTable 下面. */
|
10
|
-
afterKgTable?: () => any;
|
11
|
-
KgSearch?: {
|
12
|
-
/** 左侧. */
|
13
|
-
left?: () => any;
|
14
|
-
};
|
15
9
|
KgButton?: {
|
16
10
|
/** 右侧. */
|
17
11
|
right?: () => any;
|
18
12
|
};
|
13
|
+
KgSearch?: {
|
14
|
+
/** 左侧. */
|
15
|
+
left?: () => any;
|
16
|
+
};
|
19
17
|
KgSubmit?: {
|
20
18
|
/** 某个表单控件. */
|
21
19
|
'KgForm.Item.control'?: {
|
@@ -34,12 +32,14 @@ export declare type IKgSlots = {
|
|
34
32
|
/** 表格底部的汇总行.单元格. */
|
35
33
|
'summary.bodyCell'?: (param: IKgTableSlotParams['summary.bodyCell']) => any;
|
36
34
|
};
|
35
|
+
/** KgTable 下面. */
|
36
|
+
afterKgTable?: () => any;
|
37
37
|
};
|
38
38
|
/** 注入 kgSlots 参数. */
|
39
39
|
export declare const DI_KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
40
40
|
export declare type IKgProps = {
|
41
|
-
KgSearch?: IKgSearchProps;
|
42
41
|
KgButton?: IKgButtonProps;
|
42
|
+
KgSearch?: IKgSearchProps;
|
43
43
|
KgSubmit?: KgSubmitProps;
|
44
44
|
KgTable?: IKgTableProps;
|
45
45
|
};
|
package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
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<{}>>, {}>;
|
2
|
+
export default _default;
|
package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
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<{}>>, {}>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
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<{}>>, {}>;
|
2
|
+
export default _default;
|
package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
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<{}>>, {}>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
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<{}>>, {}>;
|
2
|
+
export default _default;
|
@@ -1,20 +1,27 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import {
|
3
|
-
export interface
|
4
|
-
/**
|
2
|
+
import { VarConfigDescription, VarVariable } from '../../apis/WMS/models';
|
3
|
+
export interface IUseKgVarConfigStoreState {
|
4
|
+
/**
|
5
|
+
* 变量.
|
6
|
+
*/
|
5
7
|
variable: {
|
6
|
-
/**
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
/**
|
9
|
+
* 当前选中的变量.
|
10
|
+
*/
|
11
|
+
currentVarVariable: VarVariable | null;
|
12
|
+
/**
|
13
|
+
* 当前选中的变量翻译.
|
14
|
+
*/
|
15
|
+
currentVarConfigDescription: VarConfigDescription | null;
|
10
16
|
};
|
11
17
|
}
|
12
|
-
export
|
13
|
-
|
14
|
-
|
15
|
-
}
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
export declare type
|
20
|
-
export declare
|
18
|
+
export interface IUseKgVarConfigStoreGetters {
|
19
|
+
getCurrentVarVariable: VarVariable | null;
|
20
|
+
getCurrentVarConfigDescription: VarConfigDescription | null;
|
21
|
+
}
|
22
|
+
export interface IUseKgVarConfigStoreActions {
|
23
|
+
setCurrentVarConfigDescription(variable: VarConfigDescription | null): void;
|
24
|
+
}
|
25
|
+
export declare type IUseKgVarConfigStore = StoreDefinition<'KgVarConfig', IUseKgVarConfigStoreState, IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
|
26
|
+
export declare type IKgVarConfigStore = ReturnType<IUseKgVarConfigStore>;
|
27
|
+
export declare const useKgVarConfigStore: IUseKgVarConfigStore;
|
@@ -1,3 +1,35 @@
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
2
2
|
/** 正在被配置的界面标识. */
|
3
3
|
export declare const DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
|
4
|
+
/**
|
5
|
+
* 界面标识: 变量配置弹窗:变量配置:变量列表.
|
6
|
+
*/
|
7
|
+
export declare const FORM_ID__VAR__VAR_VARIABLE = "KgVarConfig.Modal.Var.VarVariable";
|
8
|
+
/**
|
9
|
+
* 界面标识: 变量配置弹窗:变量配置:变量翻译.
|
10
|
+
*/
|
11
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_DESCRIPTION = "KgVarConfig.Modal.Var.VarConfigDescription";
|
12
|
+
/**
|
13
|
+
* 界面标识: 变量配置弹窗:变量配置:表单控件.
|
14
|
+
*/
|
15
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_CONTROL = "KgVarConfig.Modal.Var.VarConfigControl";
|
16
|
+
/**
|
17
|
+
* 界面标识: 变量配置弹窗:变量配置:列表数据.
|
18
|
+
*/
|
19
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_POSSIBILITY = "KgVarConfig.Modal.Var.VarConfigPossibility";
|
20
|
+
/**
|
21
|
+
* 界面标识: 变量配置弹窗:变量配置:表单输入验证.
|
22
|
+
*/
|
23
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_INPUT = "KgVarConfig.Modal.Var.VarConfigInput";
|
24
|
+
/**
|
25
|
+
* 界面标识: 变量配置弹窗:变量配置:查找弹窗.
|
26
|
+
*/
|
27
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_LOOKUP = "KgVarConfig.Modal.Var.VarConfigLookup";
|
28
|
+
/**
|
29
|
+
* 界面标识: 变量配置弹窗:变量配置:查找弹窗::查找弹窗界面标识.
|
30
|
+
*/
|
31
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_LOOKUP__VAR_DDA = "KgVarConfig.Modal.Var.VarConfigLookup:LookupID";
|
32
|
+
/**
|
33
|
+
* 界面标识: 变量配置弹窗:变量配置:提示文本.
|
34
|
+
*/
|
35
|
+
export declare const FORM_ID__VAR__VAR_CONFIG_TIP = "KgVarConfig.Modal.Var.VarConfigTip";
|
@@ -2,23 +2,27 @@ import { Pinia } from 'pinia';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { WhDTO } from '../../apis/WMS/models';
|
4
4
|
import { IRemoveEventListenerHandler } from '../../consts';
|
5
|
-
import {
|
5
|
+
import { IKgWarehouseMountedEventListener, IKgWarehouseStore } from './index.store';
|
6
6
|
export declare type IUseKgWarehouse = {
|
7
|
+
/**
|
8
|
+
* 事件: 组件加载完成.
|
9
|
+
* @param cb 回调函数.
|
10
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
11
|
+
*/
|
12
|
+
onMounted(cb: IKgWarehouseMountedEventListener, once?: boolean): IRemoveEventListenerHandler;
|
7
13
|
store: IKgWarehouseStore;
|
8
14
|
/**
|
9
15
|
* 弹窗当前是否显示.
|
10
16
|
*/
|
11
17
|
visible: ComputedRef<boolean>;
|
12
|
-
warehouse: ComputedRef<WhDTO | null>;
|
13
18
|
/**
|
14
|
-
*
|
15
|
-
* @param cb 回调函数.
|
16
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
19
|
+
* 当前仓库.
|
17
20
|
*/
|
18
|
-
|
21
|
+
warehouse: ComputedRef<WhDTO | null>;
|
19
22
|
};
|
20
23
|
/**
|
21
24
|
* 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
|
25
|
+
*
|
22
26
|
* @param pinia
|
23
27
|
*/
|
24
28
|
export declare function useKgWarehouse(pinia?: Pinia): IUseKgWarehouse;
|
@@ -1,15 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
2
|
import { WhDTO } from '../../apis/WMS/models';
|
3
|
-
import {
|
3
|
+
import { IKgEventListener } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
* 'mounted': 组件加载完成
|
7
7
|
*/
|
8
8
|
export declare type IKgWarehouseEvent = 'mounted';
|
9
|
-
|
10
|
-
export declare type
|
11
|
-
export
|
12
|
-
export interface IKgWarehouseState {
|
9
|
+
export declare type IKgWarehouseMountedEventListener = (() => void) & IKgEventListener;
|
10
|
+
export declare type IKgWarehouseEventListener = IKgWarehouseMountedEventListener;
|
11
|
+
export interface IUseKgWarehouseStoreState {
|
13
12
|
/**
|
14
13
|
* 弹窗当前是否显示.
|
15
14
|
*/
|
@@ -18,27 +17,28 @@ export interface IKgWarehouseState {
|
|
18
17
|
* 当前仓库.
|
19
18
|
*/
|
20
19
|
warehouse: WhDTO | null;
|
21
|
-
mountedListeners: Array<
|
20
|
+
mountedListeners: Array<IKgWarehouseMountedEventListener>;
|
22
21
|
}
|
23
|
-
export
|
22
|
+
export interface IUseKgWarehouseStoreGetters {
|
24
23
|
/**
|
25
24
|
* 弹窗当前是否显示.
|
26
25
|
*/
|
27
26
|
getVisible: boolean;
|
28
27
|
getWarehouse: WhDTO | null;
|
29
|
-
}
|
28
|
+
}
|
29
|
+
export interface IUseKgWarehouseStoreActions {
|
30
30
|
/**
|
31
31
|
* 注册事件监听.
|
32
32
|
* @param event 事件名称.
|
33
33
|
* @param cb 回调函数.
|
34
34
|
*/
|
35
|
-
addEventListener(event: IKgWarehouseEvent, cb:
|
35
|
+
addEventListener(event: IKgWarehouseEvent, cb: IKgWarehouseEventListener): void;
|
36
36
|
/**
|
37
37
|
* 退订事件监听.
|
38
38
|
* @param event 事件名称.
|
39
39
|
* @param cb 回调函数.
|
40
40
|
*/
|
41
|
-
removeEventListener(event: IKgWarehouseEvent, cb?:
|
41
|
+
removeEventListener(event: IKgWarehouseEvent, cb?: IKgWarehouseEventListener): void;
|
42
42
|
/**
|
43
43
|
* 触发事件.
|
44
44
|
* @param event 事件名称.
|
@@ -55,6 +55,7 @@ export declare type IKgWarehouseStoreDefinition = StoreDefinition<'KgWarehouse',
|
|
55
55
|
* @param warehouse 当前仓库.
|
56
56
|
*/
|
57
57
|
setWarehouse(warehouse?: WhDTO | null): void;
|
58
|
-
}
|
59
|
-
export declare type
|
60
|
-
export declare
|
58
|
+
}
|
59
|
+
export declare type IUseKgWarehouseStore = StoreDefinition<'KgWarehouse', IUseKgWarehouseStoreState, IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
|
60
|
+
export declare type IKgWarehouseStore = ReturnType<IUseKgWarehouseStore>;
|
61
|
+
export declare const useKgWarehouseStore: IUseKgWarehouseStore;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { IKgEventListener, IRemoveEventListenerHandler } from '../consts';
|
2
2
|
/**
|
3
3
|
* 构造事件监听.
|
4
|
-
* @param
|
4
|
+
* @param formID 界面标识.
|
5
5
|
* @param store 状态管理.
|
6
6
|
* @param event 事件名称.
|
7
7
|
*/
|
8
8
|
export declare function onEventFactory<S extends {
|
9
|
-
addEventListener(
|
10
|
-
removeEventListener(
|
9
|
+
addEventListener(formID: string, event: E, cb: L): void;
|
10
|
+
removeEventListener(formID: string, event: E, cb?: L): void;
|
11
11
|
} | {
|
12
|
-
addEventListener(event: E, cb:
|
13
|
-
removeEventListener(event: E, cb?:
|
14
|
-
} = any, E = any,
|
12
|
+
addEventListener(event: E, cb: L): void;
|
13
|
+
removeEventListener(event: E, cb?: L): void;
|
14
|
+
} = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (cb: L, once?: boolean) => IRemoveEventListenerHandler;
|
@@ -90,12 +90,13 @@ declare const _default: {
|
|
90
90
|
invalidWidthForSpan: string;
|
91
91
|
};
|
92
92
|
KgTable: {
|
93
|
+
apiNotSupportDynamicQuery: string;
|
93
94
|
canNotUpdateSystemVarGridMaster: string;
|
94
95
|
column: string;
|
95
96
|
config: string;
|
96
|
-
'dynamic-query-is-off-in-server': string;
|
97
97
|
emptyText: string;
|
98
|
-
|
98
|
+
isShowDescription: string;
|
99
|
+
other: string;
|
99
100
|
'request-fail-error': string;
|
100
101
|
'request-fail-no-data': string;
|
101
102
|
rowHeight: string;
|
@@ -146,8 +147,6 @@ declare const _default: {
|
|
146
147
|
action: string;
|
147
148
|
allForm: string;
|
148
149
|
allLanguage: string;
|
149
|
-
applyTo: string;
|
150
|
-
catalog: string;
|
151
150
|
confirm: string;
|
152
151
|
createConfig: string;
|
153
152
|
createSuccess: string;
|
@@ -157,19 +156,23 @@ declare const _default: {
|
|
157
156
|
deleteConfirmMessage: string;
|
158
157
|
deleteSuccess: string;
|
159
158
|
discardConfirmMessage: string;
|
160
|
-
form: string;
|
161
159
|
formId: string;
|
162
160
|
groupName: string;
|
163
|
-
language: string;
|
164
161
|
required: string;
|
165
162
|
saveSuccess: string;
|
166
163
|
tabButton: string;
|
167
164
|
tabSearch: string;
|
168
165
|
tabSubmit: string;
|
169
166
|
tabTable: string;
|
167
|
+
varConfigControl: string;
|
168
|
+
varConfigDescription: string;
|
169
|
+
varConfigInput: string;
|
170
|
+
varConfigLookup: string;
|
171
|
+
varConfigPossibility: string;
|
172
|
+
varConfigTip: string;
|
173
|
+
varVariable: string;
|
170
174
|
variable: string;
|
171
175
|
variableName: string;
|
172
|
-
variables: string;
|
173
176
|
};
|
174
177
|
KgVarConfigModalButton: {
|
175
178
|
VarButton: string;
|