@kengic/vue 0.19.1 → 0.19.2-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +905 -906
- package/dist/src/components/KgForm/index.hooks.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +3 -6
- package/dist/src/components/KgSearch/index.hooks.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +468 -33
- package/dist/src/components/KgVar/index.hooks.d.ts +49 -70
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/components/util.d.ts +4 -4
- package/package.json +1 -1
@@ -1,62 +1,6 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import {
|
3
|
-
import { IKgVarRetrieveCb
|
4
|
-
export declare type IUseKgVar = {
|
5
|
-
/** 状态数据. */
|
6
|
-
store: IKgVarStore;
|
7
|
-
/** 正在查询变量配置. */
|
8
|
-
isRetrieving: ComputedRef<ReturnType<IKgVarStore['isRetrieving']>>;
|
9
|
-
/** 正在查询 VarProfileMaster. */
|
10
|
-
isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
|
11
|
-
/** 正在查询 VarGridMaster. */
|
12
|
-
isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
|
13
|
-
/** 变量配置是否查询完成. */
|
14
|
-
isSearched: ComputedRef<ReturnType<IKgVarStore['isSearched']>>;
|
15
|
-
/** 正在创建. */
|
16
|
-
isCreating: ComputedRef<ReturnType<IKgVarStore['isCreating']>>;
|
17
|
-
/** 正在创建:正在调用接口. */
|
18
|
-
isCreatingRequesting: ComputedRef<ReturnType<IKgVarStore['isCreatingRequesting']>>;
|
19
|
-
/** 正在更新. */
|
20
|
-
isUpdating: ComputedRef<ReturnType<IKgVarStore['isUpdating']>>;
|
21
|
-
/** 正在更新:正在调用接口. */
|
22
|
-
isUpdatingRequesting: ComputedRef<ReturnType<IKgVarStore['isUpdatingRequesting']>>;
|
23
|
-
/** 正在复制. */
|
24
|
-
isCopying: ComputedRef<ReturnType<IKgVarStore['isCopying']>>;
|
25
|
-
/** 正在复制:正在调用接口. */
|
26
|
-
isCopyingRequesting: ComputedRef<ReturnType<IKgVarStore['isCopyingRequesting']>>;
|
27
|
-
/** 正在删除. */
|
28
|
-
isDeleting: ComputedRef<ReturnType<IKgVarStore['isDeleting']>>;
|
29
|
-
/** 正在删除:正在调用接口. */
|
30
|
-
isDeletingRequesting: ComputedRef<ReturnType<IKgVarStore['isDeletingRequesting']>>;
|
31
|
-
/** 其他按钮:正在调用接口. */
|
32
|
-
isOtherRequesting: ComputedRef<ReturnType<IKgVarStore['isOtherRequesting']>>;
|
33
|
-
/** 所有的 VarButton 列表. */
|
34
|
-
varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
|
35
|
-
varButtonSearch: ComputedRef<ReturnType<IKgVarStore['getVarButtonSearch']>>;
|
36
|
-
varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
|
37
|
-
varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
|
38
|
-
varButtonCopy: ComputedRef<ReturnType<IKgVarStore['getVarButtonCopy']>>;
|
39
|
-
varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
|
40
|
-
/** 所有的 VarProfileMaster 列表. */
|
41
|
-
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
42
|
-
/** 当前的 VarProfileMaster ID. */
|
43
|
-
currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
|
44
|
-
/** 当前的 VarProfileMaster. */
|
45
|
-
currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
|
46
|
-
/** 当前的 VarProfileDetail 列表. */
|
47
|
-
currentVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
|
48
|
-
varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
|
49
|
-
/** 所有的 VarGridMaster 列表. */
|
50
|
-
varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
|
51
|
-
/** 当前的 VarGridMaster ID. */
|
52
|
-
currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
|
53
|
-
/** 当前的 VarGridMaster. */
|
54
|
-
currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
|
55
|
-
/** 系统的 VarGridDetail 列表. */
|
56
|
-
systemVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getSystemVarGridDetails']>>;
|
57
|
-
/** 当前的 VarGridDetail 列表. */
|
58
|
-
currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
|
59
|
-
};
|
2
|
+
import { VarSubmitField } from '../../apis/WMS/models';
|
3
|
+
import { IKgVarRetrieveCb } from './index.store';
|
60
4
|
/**
|
61
5
|
* <p>使用变量配置.</p>
|
62
6
|
* <ol>
|
@@ -73,10 +17,12 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
73
17
|
* 界面标识.
|
74
18
|
*/
|
75
19
|
formID: string;
|
20
|
+
/** 状态数据. */
|
76
21
|
store: import("pinia").Store<"KgVar", import("./index.store").IKgVarState, {
|
77
22
|
getTopFormIDs(): string[];
|
78
23
|
getFormLevel(): (frm_id: string | null | undefined) => number;
|
79
24
|
t(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => string;
|
25
|
+
/** 正在查询变量配置. */
|
80
26
|
isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
|
81
27
|
isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null;
|
82
28
|
isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
|
@@ -91,16 +37,26 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
91
37
|
isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
92
38
|
isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
93
39
|
getVarCatalogs(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog[] | null;
|
40
|
+
/** 当前的 VarProfileMaster. */
|
94
41
|
getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog | null;
|
95
42
|
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableLookup | null;
|
96
43
|
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariablePossibility | null;
|
44
|
+
/**
|
45
|
+
* 设置'是否正在创建'.
|
46
|
+
* @param value 是否正在创建.
|
47
|
+
*/
|
97
48
|
getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null;
|
98
49
|
getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableInput | null;
|
99
50
|
getVarButtons(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton[] | null;
|
100
51
|
getVarSubmitConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarSubmitConfig | null;
|
101
52
|
getVarSubmitConfigProps(): (frm_id: string | null | undefined) => import("../../consts").IKgSubmitConfigProps;
|
102
53
|
getVarSubmitFields(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
103
|
-
getVarSubmitFieldsForCreate(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
54
|
+
getVarSubmitFieldsForCreate(): (frm_id: string | null | undefined) => VarSubmitField[] | null; /**
|
55
|
+
* 修改 VarSubmitField 的部分属性.
|
56
|
+
* @param variableName 变量名称
|
57
|
+
* @param properties 要修改的部分属性.
|
58
|
+
* @param isTriggerEvent 是否触发变更事件.
|
59
|
+
*/
|
104
60
|
getVarSubmitFieldsForCreateKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
105
61
|
getVarSubmitFieldsForCreateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
106
62
|
getVarSubmitFieldsForCreateKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
@@ -130,9 +86,9 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
130
86
|
getVarButtonDelete(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
131
87
|
getVarProfileConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileConfig | null;
|
132
88
|
getVarProfileMasters(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO[] | null;
|
133
|
-
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
|
134
|
-
getVarProfileDetails(): (frm_id: string | null | undefined) => VarProfileDetail[] | null;
|
135
|
-
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => VarProfileDetail[] | null;
|
89
|
+
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail | null;
|
90
|
+
getVarProfileDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
|
91
|
+
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
|
136
92
|
getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
|
137
93
|
getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO | null;
|
138
94
|
getVarGridConfigMap(): Map<string, import("../../apis/WMS/models").VarGridConfig | null>;
|
@@ -166,40 +122,63 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
166
122
|
setCurrentVarGridMasterID(frm_id: string, currentVarGridMasterID: string): Promise<void>;
|
167
123
|
setVarGridDetailWidth(frm_id: string, var_nam: string | null | undefined, width: number): void;
|
168
124
|
patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: import("../../apis/WMS/models").VarGridDetail): Promise<void>;
|
169
|
-
patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
|
125
|
+
patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: import("../../apis/WMS/models").VarProfileDetail): Promise<void>;
|
170
126
|
setVarPossibility(frm_id: string | null | undefined, var_nam: string | null | undefined, varPossibility: import("../../apis/WMS/models").VarVariablePossibility): void;
|
171
127
|
patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean | undefined): void;
|
172
128
|
patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
|
173
129
|
dragSortCurrentVarGridDetails(frm_id: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
|
174
130
|
}>;
|
131
|
+
/** 正在查询变量配置. */
|
175
132
|
isRetrieving: ComputedRef<boolean | null>;
|
133
|
+
/** 正在查询 VarProfileMaster. */
|
176
134
|
isRetrievingVarProfileMaster: ComputedRef<boolean | null>;
|
135
|
+
/** 正在查询 VarGridMaster. */
|
177
136
|
isRetrievingVarGridMaster: ComputedRef<boolean | null>;
|
137
|
+
/** 变量配置是否查询完成. */
|
178
138
|
isSearched: ComputedRef<boolean>;
|
139
|
+
/** 正在创建. */
|
179
140
|
isCreating: ComputedRef<boolean | null>;
|
141
|
+
/** 正在创建:正在调用接口. */
|
180
142
|
isCreatingRequesting: ComputedRef<boolean | null>;
|
143
|
+
/** 正在更新. */
|
181
144
|
isUpdating: ComputedRef<boolean | null>;
|
145
|
+
/** 正在更新:正在调用接口. */
|
182
146
|
isUpdatingRequesting: ComputedRef<boolean | null>;
|
147
|
+
/** 正在复制. */
|
183
148
|
isCopying: ComputedRef<boolean | null>;
|
149
|
+
/** 正在复制:正在调用接口. */
|
184
150
|
isCopyingRequesting: ComputedRef<boolean | null>;
|
151
|
+
/** 正在删除. */
|
185
152
|
isDeleting: ComputedRef<boolean | null>;
|
153
|
+
/** 正在删除:正在调用接口. */
|
186
154
|
isDeletingRequesting: ComputedRef<boolean | null>;
|
155
|
+
/** 其他按钮:正在调用接口. */
|
187
156
|
isOtherRequesting: ComputedRef<boolean | null>;
|
157
|
+
/** 所有的 VarButton 列表. */
|
188
158
|
varButtons: ComputedRef<import("../../apis/WMS/models").VarButton[] | null>;
|
189
159
|
varButtonSearch: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
190
160
|
varButtonCreate: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
191
161
|
varButtonUpdate: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
192
162
|
varButtonCopy: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
193
163
|
varButtonDelete: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
164
|
+
/** 所有的 VarProfileMaster 列表. */
|
194
165
|
varProfileMasters: ComputedRef<import("../../apis/WMS/models").VarProfileMasterDTO[] | null>;
|
166
|
+
/** 当前的 VarProfileMaster ID. */
|
195
167
|
currentVarProfileMasterID: ComputedRef<string | null>;
|
168
|
+
/** 当前的 VarProfileMaster. */
|
196
169
|
currentVarProfileMaster: ComputedRef<import("../../apis/WMS/models").VarProfileMasterDTO | null>;
|
197
|
-
|
170
|
+
/** 当前的 VarProfileDetail 列表. */
|
171
|
+
currentVarProfileDetails: ComputedRef<import("../../apis/WMS/models").VarProfileDetail[] | null>;
|
198
172
|
varGridConfig: ComputedRef<import("../../apis/WMS/models").VarGridConfig | null>;
|
173
|
+
/** 所有的 VarGridMaster 列表. */
|
199
174
|
varGridMasters: ComputedRef<import("../../apis/WMS/models").VarGridMasterDTO[] | null>;
|
175
|
+
/** 当前的 VarGridMaster ID. */
|
200
176
|
currentVarGridMasteID: ComputedRef<string | null>;
|
177
|
+
/** 当前的 VarGridMaster. */
|
201
178
|
currentVarGridMaster: ComputedRef<import("../../apis/WMS/models").VarGridMasterDTO | null>;
|
179
|
+
/** 系统的 VarGridDetail 列表. */
|
202
180
|
systemVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
|
181
|
+
/** 当前的 VarGridDetail 列表. */
|
203
182
|
currentVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
|
204
183
|
/**
|
205
184
|
* 设置'是否正在创建'.
|
@@ -228,15 +207,15 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
228
207
|
* @param isTriggerEvent 是否触发变更事件.
|
229
208
|
*/
|
230
209
|
patchVarSubmitField(variableName: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean): void;
|
231
|
-
/**
|
232
|
-
* 事件: 变量配置查询完成.
|
233
|
-
* @param cb 回调函数.
|
234
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
235
|
-
*/
|
236
|
-
onRetrieve: (cb: IKgVarRetrieveCb) => import("../../consts").IRemoveEventListenerHandler;
|
237
210
|
/**
|
238
211
|
* 翻译变量. 响应式的.
|
239
212
|
* @param variableName 变量名称.
|
240
213
|
*/
|
241
214
|
t(variableName: string | null | undefined): ComputedRef<string>;
|
215
|
+
/**
|
216
|
+
* 事件: 变量配置查询完成.
|
217
|
+
* @param cb 回调函数.
|
218
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
219
|
+
*/
|
220
|
+
onRetrieve: (cb: IKgVarRetrieveCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
|
242
221
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type StoreDefinition } from 'pinia';
|
2
|
-
import { VarButton, VarButtonConfig,
|
2
|
+
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableCatalog, VarVariableConfig, VarVariableInput, VarVariableLookup, VarVariablePossibility } from '../../apis/WMS/models';
|
3
3
|
import { IKgEventCb, IKgSubmitConfigProps } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { IKgEventCb, IRemoveEventListenerHandler } from '../consts';
|
2
2
|
/**
|
3
3
|
* 构造事件监听.
|
4
|
-
* @param
|
4
|
+
* @param frmId 界面标识.
|
5
5
|
* @param store 状态管理.
|
6
6
|
* @param event 事件名称.
|
7
7
|
*/
|
8
8
|
export declare function onEventFactory<S extends {
|
9
|
-
addEventListener(
|
10
|
-
removeEventListener(
|
9
|
+
addEventListener(frmId: string, event: E, cb: C): void;
|
10
|
+
removeEventListener(frmId: string, event: E, cb?: C): void;
|
11
11
|
} | {
|
12
12
|
addEventListener(event: E, cb: C): void;
|
13
13
|
removeEventListener(event: E, cb?: C): void;
|
14
|
-
} = any, E = any, C extends IKgEventCb = any>(
|
14
|
+
} = any, E = any, C extends IKgEventCb = any>(frmId: string | null, store: S, event: E): (cb: C, once?: boolean) => IRemoveEventListenerHandler;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.19.
|
3
|
+
"version": "0.19.2-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",
|