@kengic/vue 0.27.1-beta.9 → 0.27.2-beta.0
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/kengic-vue.js +17422 -17695
- package/dist/src/component/KgAppSelect/KgAppSelect.event.d.ts +16 -2
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +0 -21
- package/dist/src/component/KgButton/KgButton.event.d.ts +20 -6
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +6 -5
- package/dist/src/component/KgButton/KgButton.store.d.ts +0 -28
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +1 -35
- package/dist/src/component/KgForm/KgForm.event.d.ts +22 -8
- package/dist/src/component/KgForm/KgForm.store.d.ts +0 -30
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +0 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.vm.d.ts +0 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -6
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -4
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +2 -4
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +1 -4
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -2
- package/dist/src/component/KgSearch/KgSearch.event.d.ts +17 -3
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +6 -6
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +0 -28
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +24 -10
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +3 -2
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +0 -26
- package/dist/src/component/KgTable/KgTable.event.d.ts +22 -8
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +9 -9
- package/dist/src/component/KgTable/KgTable.store.d.ts +0 -30
- package/dist/src/component/KgVar/KgVar.event.d.ts +1 -4
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +28 -28
- package/dist/src/component/KgWarehouse/KgWarehouse.event.d.ts +24 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +2 -1
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +0 -27
- package/dist/src/util/index.d.ts +0 -15
- package/package.json +5 -5
- /package/dist/{close-outlined-DMcSQWxQ.f380d206.mjs → close-outlined-DMcSQWxQ.537d8ddf.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.eacb69e4.mjs → exclamation-circle-outlined-DZrXCnvM.a3e96b6e.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.67cebcef.mjs → fullscreen-exit-outlined-X1iYkFc4.37edd487.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.271d25be.mjs → fullscreen-outlined-DDBrsRcy.db231def.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.3c08cf5f.mjs → search-outlined-Od1M_oxf.1b143df4.mjs} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.9ee040df.mjs → three-dots-loading-bIlrTJYR.bd624bcf.mjs} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
-
import { VarButton, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarGridConfig, VarGridDetail, VarGridMasterDTO } from '../../api/WMS/models';
|
3
|
+
import { VarButton, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileMasterDTO, VarVariable } from '../../api/WMS/models';
|
4
4
|
import { KG__VAR_BUTTON__TYPE } from '../../const';
|
5
5
|
import { IUseKgButton } from '../KgButton';
|
6
6
|
import { IUseKgForm } from '../KgForm';
|
@@ -34,13 +34,13 @@ export declare type IUseKgVar = {
|
|
34
34
|
*/
|
35
35
|
createVarConfigPossibility(varConfigPossibility: VarConfigPossibility): void;
|
36
36
|
/** 当前的 VarGridDetail 列表. */
|
37
|
-
currentVarGridDetails: ComputedRef<
|
37
|
+
currentVarGridDetails: ComputedRef<Array<VarGridDetail> | null>;
|
38
38
|
/** 当前的 VarGridMaster ID. */
|
39
|
-
currentVarGridMasteID: ComputedRef<
|
39
|
+
currentVarGridMasteID: ComputedRef<string | null>;
|
40
40
|
/** 当前的 VarGridMaster. */
|
41
|
-
currentVarGridMaster: ComputedRef<
|
41
|
+
currentVarGridMaster: ComputedRef<VarGridMasterDTO | null>;
|
42
42
|
/** 当前的 VarProfileMaster ID. */
|
43
|
-
currentVarProfileMasterID: ComputedRef<
|
43
|
+
currentVarProfileMasterID: ComputedRef<string | null>;
|
44
44
|
/**
|
45
45
|
* 界面标识.
|
46
46
|
*/
|
@@ -71,7 +71,7 @@ export declare type IUseKgVar = {
|
|
71
71
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
72
72
|
buttonVarName?: string | null;
|
73
73
|
varName: string | null | undefined;
|
74
|
-
}):
|
74
|
+
}): VarConfigControl | null;
|
75
75
|
/**
|
76
76
|
* 获取「变量配置:列表数据」.
|
77
77
|
*
|
@@ -95,7 +95,7 @@ export declare type IUseKgVar = {
|
|
95
95
|
*/
|
96
96
|
isCopying: ComputedRef<boolean>;
|
97
97
|
/** 正在复制:正在调用接口. */
|
98
|
-
isCopyingRequesting: ComputedRef<
|
98
|
+
isCopyingRequesting: ComputedRef<boolean | null>;
|
99
99
|
/**
|
100
100
|
* 是否正在创建.
|
101
101
|
*/
|
@@ -103,29 +103,29 @@ export declare type IUseKgVar = {
|
|
103
103
|
/**
|
104
104
|
* 正在创建:正在调用接口.
|
105
105
|
*/
|
106
|
-
isCreatingRequesting: ComputedRef<
|
106
|
+
isCreatingRequesting: ComputedRef<boolean | null>;
|
107
107
|
/**
|
108
108
|
* 是否正在删除.
|
109
109
|
*/
|
110
110
|
isDeleting: ComputedRef<boolean>;
|
111
111
|
/** 正在删除:正在调用接口. */
|
112
|
-
isDeletingRequesting: ComputedRef<
|
112
|
+
isDeletingRequesting: ComputedRef<boolean | null>;
|
113
113
|
/** 其他按钮:正在调用接口. */
|
114
|
-
isOtherRequesting: ComputedRef<
|
114
|
+
isOtherRequesting: ComputedRef<boolean | null>;
|
115
115
|
/** 变量配置是否查询完成. */
|
116
|
-
isRequested: ComputedRef<
|
116
|
+
isRequested: ComputedRef<boolean>;
|
117
117
|
/** 正在查询变量配置. */
|
118
|
-
isRetrieving: ComputedRef<
|
118
|
+
isRetrieving: ComputedRef<boolean | null>;
|
119
119
|
/** 正在查询 VarGridMaster. */
|
120
|
-
isRetrievingVarGridMaster: ComputedRef<
|
120
|
+
isRetrievingVarGridMaster: ComputedRef<boolean | null>;
|
121
121
|
/** 正在查询 VarProfileMaster. */
|
122
|
-
isRetrievingVarProfileMaster: ComputedRef<
|
122
|
+
isRetrievingVarProfileMaster: ComputedRef<boolean | null>;
|
123
123
|
/**
|
124
124
|
* 是否正在更新.
|
125
125
|
*/
|
126
126
|
isUpdating: ComputedRef<boolean>;
|
127
127
|
/** 正在更新:正在调用接口. */
|
128
|
-
isUpdatingRequesting: ComputedRef<
|
128
|
+
isUpdatingRequesting: ComputedRef<boolean | null>;
|
129
129
|
kgButton: IUseKgButton;
|
130
130
|
kgForm: IUseKgForm;
|
131
131
|
kgSearch: IUseKgSearch;
|
@@ -135,7 +135,7 @@ export declare type IUseKgVar = {
|
|
135
135
|
/**
|
136
136
|
* 界面层级.
|
137
137
|
*/
|
138
|
-
level: ComputedRef<
|
138
|
+
level: ComputedRef<number>;
|
139
139
|
/**
|
140
140
|
* 监听事件: 变量配置数据查询完成.
|
141
141
|
*
|
@@ -160,7 +160,7 @@ export declare type IUseKgVar = {
|
|
160
160
|
/**
|
161
161
|
* 父亲界面.
|
162
162
|
*/
|
163
|
-
parent: ComputedRef<
|
163
|
+
parent: ComputedRef<IUseKgVar | null>;
|
164
164
|
/**
|
165
165
|
* 修改「按钮」的部分属性.
|
166
166
|
*
|
@@ -214,7 +214,7 @@ export declare type IUseKgVar = {
|
|
214
214
|
* @param slots 插槽.
|
215
215
|
*/
|
216
216
|
setSlots(slots: IKgSlots): void;
|
217
|
-
slots: ComputedRef<
|
217
|
+
slots: ComputedRef<IKgSlots | null>;
|
218
218
|
/** 状态数据. */
|
219
219
|
store: IKgVarStore;
|
220
220
|
/**
|
@@ -223,25 +223,25 @@ export declare type IUseKgVar = {
|
|
223
223
|
* @param varName 变量名称.
|
224
224
|
*/
|
225
225
|
t(varName: string | null | undefined): ComputedRef<string>;
|
226
|
-
varButtonCopy: ComputedRef<
|
227
|
-
varButtonCreate: ComputedRef<
|
228
|
-
varButtonDelete: ComputedRef<
|
229
|
-
varButtonUpdate: ComputedRef<
|
226
|
+
varButtonCopy: ComputedRef<VarButton | null>;
|
227
|
+
varButtonCreate: ComputedRef<VarButton | null>;
|
228
|
+
varButtonDelete: ComputedRef<VarButton | null>;
|
229
|
+
varButtonUpdate: ComputedRef<VarButton | null>;
|
230
230
|
/**
|
231
231
|
* 所有按钮.
|
232
232
|
*/
|
233
233
|
varButtons: ComputedRef<Array<VarButton>>;
|
234
|
-
varChildDetails: ComputedRef<
|
235
|
-
varDda: ComputedRef<
|
236
|
-
varGridConfig: ComputedRef<
|
234
|
+
varChildDetails: ComputedRef<Array<VarChildDetail>>;
|
235
|
+
varDda: ComputedRef<VarDda | null>;
|
236
|
+
varGridConfig: ComputedRef<VarGridConfig | null>;
|
237
237
|
/**
|
238
238
|
* 所有的「表格视图」.
|
239
239
|
*/
|
240
240
|
varGridMasters: ComputedRef<Array<VarGridMasterDTO> | null>;
|
241
|
-
varProfileConfig: ComputedRef<
|
241
|
+
varProfileConfig: ComputedRef<VarProfileConfig | null>;
|
242
242
|
/** 所有的 VarProfileMaster. */
|
243
|
-
varProfileMasters: ComputedRef<
|
244
|
-
varVariables: ComputedRef<
|
243
|
+
varProfileMasters: ComputedRef<Array<VarProfileMasterDTO> | null>;
|
244
|
+
varVariables: ComputedRef<Array<VarVariable>>;
|
245
245
|
};
|
246
246
|
/**
|
247
247
|
* <p>使用变量配置.</p>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { IKgEventListener } from '@kengic/core.core';
|
2
|
+
/**
|
3
|
+
* 事件类型.
|
4
|
+
*/
|
5
|
+
export declare type IKgWarehouseEvent = 'onMounted';
|
6
|
+
export declare type IKgAppSelectOnGotoAppEventListenerParameter = {};
|
7
|
+
export declare type IKgWarehouseOnMountedEventListener = ((param: IKgAppSelectOnGotoAppEventListenerParameter) => void) & IKgEventListener;
|
8
|
+
export declare type IKgAppSelectEventListenerParameter = IKgAppSelectOnGotoAppEventListenerParameter;
|
9
|
+
export declare type IKgWarehouseEventListener = IKgWarehouseOnMountedEventListener;
|
10
|
+
export declare const eventListeners: Record<string, {
|
11
|
+
onMounted: Array<IKgWarehouseOnMountedEventListener>;
|
12
|
+
}>;
|
13
|
+
/**
|
14
|
+
* 触发事件.
|
15
|
+
*
|
16
|
+
* @param param.event 事件名称.
|
17
|
+
* @param param.id 唯一标识.
|
18
|
+
* @param param.parameter 事件参数.
|
19
|
+
*/
|
20
|
+
export declare function emit<P extends IKgAppSelectEventListenerParameter>(param: {
|
21
|
+
event: IKgWarehouseEvent;
|
22
|
+
id?: string | undefined;
|
23
|
+
parameter: P;
|
24
|
+
}): Promise<boolean>;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { Pinia } from 'pinia';
|
3
3
|
import { ComputedRef } from 'vue';
|
4
|
-
import { IKgWarehouseOnMountedEventListener
|
4
|
+
import { IKgWarehouseOnMountedEventListener } from './KgWarehouse.event';
|
5
|
+
import { IKgWarehouseStore } from './KgWarehouse.store';
|
5
6
|
export declare type IUseKgWarehouse = {
|
6
7
|
/**
|
7
8
|
* 监听事件: 组件加载完成.
|
@@ -1,15 +1,6 @@
|
|
1
|
-
import { IKgEventListener } from '@kengic/core.core';
|
2
1
|
import { StoreDefinition } from 'pinia';
|
3
2
|
import { WhDTO } from '../../api/WMS/models';
|
4
|
-
/**
|
5
|
-
* 事件类型.
|
6
|
-
* 'onMounted': 组件挂载完成
|
7
|
-
*/
|
8
|
-
export declare type IKgWarehouseEvent = 'onMounted';
|
9
|
-
export declare type IKgWarehouseOnMountedEventListener = (() => void) & IKgEventListener;
|
10
|
-
export declare type IKgWarehouseEventListener = IKgWarehouseOnMountedEventListener;
|
11
3
|
export interface IUseKgWarehouseStoreState {
|
12
|
-
onMounted: Array<IKgWarehouseOnMountedEventListener>;
|
13
4
|
/**
|
14
5
|
* 是否显示弹窗.
|
15
6
|
*/
|
@@ -27,24 +18,6 @@ export interface IUseKgWarehouseStoreGetters {
|
|
27
18
|
getWarehouse: WhDTO | null;
|
28
19
|
}
|
29
20
|
export interface IUseKgWarehouseStoreActions {
|
30
|
-
/**
|
31
|
-
* 注册事件监听.
|
32
|
-
* @param event 事件名称.
|
33
|
-
* @param listener 事件监听函数.
|
34
|
-
*/
|
35
|
-
addEventListener(event: IKgWarehouseEvent, listener: any): void;
|
36
|
-
/**
|
37
|
-
* 触发事件.
|
38
|
-
* @param event 事件名称.
|
39
|
-
* @param args 数据.
|
40
|
-
*/
|
41
|
-
emit(event: IKgWarehouseEvent, args?: any | null): void;
|
42
|
-
/**
|
43
|
-
* 退订事件监听.
|
44
|
-
* @param event 事件名称.
|
45
|
-
* @param listener 事件监听函数.
|
46
|
-
*/
|
47
|
-
removeEventListener(event: IKgWarehouseEvent, listener?: any): void;
|
48
21
|
/**
|
49
22
|
* 设置是否显示弹窗.
|
50
23
|
*
|
package/dist/src/util/index.d.ts
CHANGED
@@ -1,18 +1,3 @@
|
|
1
|
-
import { IKgEventListener, IRemoveEventListener } from '@kengic/core.core';
|
2
1
|
export * from './kg-auth.util';
|
3
2
|
export * from './kg.util';
|
4
3
|
export * from './kg-route.util';
|
5
|
-
/**
|
6
|
-
* TODO 使用 @kengic/core.core 中的 onEventFactory 重构, 该方法已废弃.
|
7
|
-
* 构造事件监听.
|
8
|
-
* @param formID 界面标识.
|
9
|
-
* @param store 状态管理.
|
10
|
-
* @param event 事件名称.
|
11
|
-
*/
|
12
|
-
export declare function onEventFactory<S extends {
|
13
|
-
addEventListener(formID: string, event: E, listener: L): void;
|
14
|
-
removeEventListener(formID: string, event: E, listener?: L): void;
|
15
|
-
} | {
|
16
|
-
addEventListener(event: E, listener: L): void;
|
17
|
-
removeEventListener(event: E, listener?: L): void;
|
18
|
-
} = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListener;
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.27.
|
3
|
+
"version": "0.27.2-beta.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
7
7
|
"--------------------------------------------------": "",
|
8
8
|
"gen:apis:WMS": "npm run use-node && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
9
9
|
"- ------------------------------------------------": "",
|
10
|
-
"use-node": "
|
10
|
+
"use-node": "nvm use 20.17.0 && corepack enable && corepack use pnpm@9.12.1",
|
11
11
|
"cnpm:sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
|
12
12
|
"-- -----------------------------------------------": "",
|
13
13
|
"publish:major": "npm run bump:major && tsx script/publish.ts",
|
@@ -38,9 +38,9 @@
|
|
38
38
|
"@iconify-icons/mdi": "1.2.48",
|
39
39
|
"@iconify-icons/ph": "1.2.5",
|
40
40
|
"@iconify/vue": "4.1.2",
|
41
|
-
"@kengic/core.core": "0.0.1-beta.
|
42
|
-
"@kengic/core.react": "0.0.2-beta.
|
43
|
-
"@kengic/pont": "1.2.17-beta.
|
41
|
+
"@kengic/core.core": "0.0.1-beta.22",
|
42
|
+
"@kengic/core.react": "0.0.2-beta.5",
|
43
|
+
"@kengic/pont": "1.2.17-beta.4",
|
44
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
45
45
|
"@thymine/xunee": "0.4.9-beta.8",
|
46
46
|
"@types/crypto-js": "4.1.1",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{search-outlined-Od1M_oxf.3c08cf5f.mjs → search-outlined-Od1M_oxf.1b143df4.mjs}
RENAMED
File without changes
|
/package/dist/{three-dots-loading-bIlrTJYR.9ee040df.mjs → three-dots-loading-bIlrTJYR.bd624bcf.mjs}
RENAMED
File without changes
|