@kengic/vue 0.29.1-beta.9 → 0.30.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/CHANGELOG.md +83 -7
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +28791 -28448
- package/dist/src/component/KgAppSelect/KgAppSelect.hooks.d.ts +2 -28
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +6 -12
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +3 -144
- package/dist/src/component/KgButton/KgButton.store.d.ts +63 -36
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +2 -2
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +2 -6
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +2 -2
- package/dist/src/component/KgForm/KgForm.store.d.ts +2 -4
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +5 -5
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +7 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +5 -11
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +9 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +1 -1
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +5 -5
- package/dist/src/component/KgForm.Item/index.d.ts +1 -1
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +2 -2
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +8 -10
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +2 -2
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +10 -9
- package/dist/src/component/KgSubmit/index.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.event.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +10 -24
- package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.store.d.ts +41 -89
- package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +1 -1
- package/dist/src/component/KgTable/components/KgTable.HeaderCell.d.ts +1 -2
- package/dist/src/component/KgTable/index.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +21 -30
- package/dist/src/component/KgVar/{KgVar.vm.d.ts → KgVar.model.d.ts} +1 -1
- package/dist/src/component/KgVar/KgVar.store.d.ts +61 -102
- package/dist/src/component/KgVar/KgVarFactory.d.ts +12 -16
- package/dist/src/component/KgVar/index.d.ts +1 -1
- package/dist/src/component/KgVarConfig/KgVarConfig.hooks.d.ts +3 -21
- package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -6
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +5 -4
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +2 -4
- package/dist/src/config/config.hooks.d.ts +3 -48
- package/dist/src/config/config.store.d.ts +31 -61
- package/dist/src/const/{const.vm.d.ts → const.model.d.ts} +7 -0
- package/dist/src/const/index.d.ts +2 -2
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts +1 -1
- package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +3 -3
- package/dist/src/page/KgCircleVis/components/KgCircleVis.store.d.ts +29 -31
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +32 -1381
- package/dist/src/page/index.d.ts +1 -1
- package/dist/src/project/types/store.d.ts +1 -0
- package/package.json +4 -2
- package/dist/src/component/KgVar/KgVar.VarConfigDescription.store.d.ts +0 -12
- package/dist/src/component/KgVar/KgVar.VarGridConfig.store.d.ts +0 -10
- package/dist/src/component/KgVar/KgVar.VarGridMaster.store.d.ts +0 -10
- /package/dist/src/component/KgCanvas/{KgCanvas.vm.d.ts → KgCanvas.model.d.ts} +0 -0
- /package/dist/src/component/KgForm/{KgForm.vm.d.ts → KgForm.model.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{KgForm.Item.vm.d.ts → KgForm.Item.model.d.ts} +0 -0
- /package/dist/src/component/KgModal/{KgModal.vm.d.ts → KgModal.model.d.ts} +0 -0
- /package/dist/src/component/KgSearch/{KgSearch.vm.d.ts → KgSearch.model.d.ts} +0 -0
- /package/dist/src/component/KgSubmit/{KgSubmit.vm.d.ts → KgSubmit.model.d.ts} +0 -0
- /package/dist/src/component/KgTable/{KgTable.vm.d.ts → KgTable.model.d.ts} +0 -0
- /package/dist/src/component/KgVarConfig/{KgVarConfig.vm.d.ts → KgVarConfig.model.d.ts} +0 -0
- /package/dist/src/const/{const.injection-keys.d.ts → injection-keys.const.d.ts} +0 -0
- /package/dist/src/page/KgCircleVis/components/{KgCircleVis.vm.d.ts → KgCircleVis.model.d.ts} +0 -0
@@ -1,139 +1,91 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
import { IKgTableRow, IKgTableRowHeight } from './KgTable.vm';
|
5
|
-
export interface IUseKgTableStoreState {
|
6
|
-
/** 列表数据. */
|
7
|
-
datasMap: Map<String, Array<any>>;
|
8
|
-
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
9
|
-
isReadyMap: Map<string, boolean>;
|
1
|
+
import { KgUseStore } from '../../const';
|
2
|
+
import { IKgTableRowHeight } from './KgTable.model';
|
3
|
+
export interface UseKgTableStoreGetters {
|
10
4
|
/**
|
11
|
-
*
|
12
|
-
* <ul>
|
13
|
-
* <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
|
14
|
-
* <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
|
15
|
-
* </ul>
|
5
|
+
* 列表数据.
|
16
6
|
*/
|
17
|
-
|
18
|
-
/** 是否正在查询. */
|
19
|
-
isRequestingMap: Map<string, boolean>;
|
7
|
+
dataList: Array<any>;
|
20
8
|
/**
|
21
|
-
*
|
22
|
-
* <ul>
|
23
|
-
* <li>是: 所有描述列显示的是描述,</li>
|
24
|
-
* <li>否: 所有描述列显示的是原始的值,</li>
|
25
|
-
* </ul>
|
26
|
-
* <p>描述列指的是显示类型为 KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC 的列.</p>
|
27
|
-
*
|
28
|
-
* @default true
|
9
|
+
* 是否就绪.
|
29
10
|
*/
|
30
|
-
|
11
|
+
getIsReady: boolean;
|
31
12
|
/**
|
32
|
-
*
|
33
|
-
* <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
|
13
|
+
* 是否已经查询过一次了.
|
34
14
|
*/
|
35
|
-
|
36
|
-
/** 行高. */
|
37
|
-
rowHeightMap: Map<string, IKgTableRowHeight>;
|
38
|
-
/** 勾选的行的主键. */
|
39
|
-
selectedRowKeysMap: Map<string, Ref<Array<Key>>>;
|
40
|
-
/** 勾选的行. */
|
41
|
-
selectedRowsMap: Map<string, Array<any>>;
|
42
|
-
/** 表格宽度. */
|
43
|
-
tableWidthMap: Map<string, number>;
|
44
|
-
}
|
45
|
-
export interface IUseKgTableStoreGetters {
|
46
|
-
/** 列表数据. */
|
47
|
-
getDatas(): (formID: string | null | undefined) => Array<Record<string, any>>;
|
48
|
-
/** 是否就绪. */
|
49
|
-
getIsReady(): (formID: string | null | undefined) => boolean;
|
15
|
+
isRequested: boolean;
|
50
16
|
/**
|
51
|
-
*
|
17
|
+
* 是否正在查询.
|
52
18
|
*/
|
53
|
-
|
19
|
+
getIsRequesting: boolean | null;
|
20
|
+
getIsShowDescription: boolean;
|
54
21
|
/**
|
55
|
-
*
|
22
|
+
* 查询参数.
|
56
23
|
*/
|
57
|
-
|
58
|
-
|
59
|
-
/**
|
60
|
-
* 根据 formID 获取查询参数.
|
61
|
-
*/
|
62
|
-
getRequestParams(): (formID: string | null | undefined) => Record<string, any>;
|
63
|
-
getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
|
24
|
+
getRequestParams: Record<string, any>;
|
25
|
+
getRowHeight: IKgTableRowHeight;
|
64
26
|
/** 当前勾选的第一行. */
|
65
|
-
getSelectedFirstRow
|
27
|
+
getSelectedFirstRow: any | null;
|
66
28
|
/** 当前勾选的唯一行. */
|
67
|
-
getSelectedRow
|
29
|
+
getSelectedRow: any | null;
|
68
30
|
/** 当前勾选的行的主键. */
|
69
|
-
getSelectedRowKeys
|
31
|
+
getSelectedRowKeys: Array<string>;
|
70
32
|
/** 当前勾选的行. */
|
71
|
-
getSelectedRows
|
33
|
+
getSelectedRows: Array<any> | null;
|
72
34
|
/**
|
73
|
-
*
|
35
|
+
* 表格宽度.
|
74
36
|
*/
|
75
|
-
getTableWidth
|
37
|
+
getTableWidth: number;
|
76
38
|
}
|
77
|
-
export interface
|
39
|
+
export interface UseKgTableStoreActions {
|
78
40
|
/**
|
79
41
|
* 清空表格数据.
|
80
|
-
* @param formID 界面标识.
|
81
42
|
*/
|
82
|
-
clearDatas(
|
43
|
+
clearDatas(): void;
|
83
44
|
/**
|
84
45
|
* 清理数据.
|
85
|
-
* @param formID 页面标识.
|
86
|
-
*/
|
87
|
-
dispose(formID: string | null | undefined): void;
|
88
|
-
/**
|
89
|
-
* 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
|
90
|
-
* @param formID 界面标识.
|
91
46
|
*/
|
92
|
-
|
47
|
+
dispose(): void;
|
93
48
|
/**
|
94
49
|
* 设置列表数据.
|
95
|
-
* @param param.frmId 界面标识.
|
96
50
|
* @param param.datas 列表数据.
|
97
51
|
* @param param.isPreserveSelectedRows 是否保留行的勾选状态. 默认为 false.
|
98
52
|
*/
|
99
53
|
setDatas(param: {
|
100
|
-
frmId: string | null | undefined;
|
101
54
|
datas: Array<any>;
|
102
55
|
isPreserveSelectedRows?: boolean;
|
103
56
|
}): void;
|
104
57
|
/**
|
105
58
|
* 设置是否就绪.
|
106
|
-
*
|
59
|
+
*
|
107
60
|
* @param ready 是否就绪.
|
108
61
|
*/
|
109
|
-
setIsReady(
|
110
|
-
setIsRequested(
|
111
|
-
setIsRequesting(
|
112
|
-
setIsShowDescription(
|
113
|
-
setRequestParams(
|
114
|
-
setRowHeight(
|
62
|
+
setIsReady(ready?: boolean): void;
|
63
|
+
setIsRequested(value: boolean): void;
|
64
|
+
setIsRequesting(value: boolean): void;
|
65
|
+
setIsShowDescription(value: boolean): void;
|
66
|
+
setRequestParams(requestParams: Record<string, any> | null | undefined): void;
|
67
|
+
setRowHeight(value: IKgTableRowHeight): void;
|
115
68
|
/**
|
116
69
|
* 设置某行的勾选状态.
|
117
|
-
*
|
70
|
+
*
|
118
71
|
* @param row 行.
|
119
72
|
* @param isSelected 是否勾选.
|
120
73
|
*/
|
121
|
-
setRowSelect(
|
74
|
+
setRowSelect(row: any, isSelected: boolean): void;
|
122
75
|
/**
|
123
76
|
* 设置勾选的行.
|
124
|
-
*
|
125
|
-
* @param selectedRows 勾选的行.
|
77
|
+
*
|
78
|
+
* @param param.selectedRows 勾选的行.
|
126
79
|
*/
|
127
|
-
setSelectedRows(
|
80
|
+
setSelectedRows(param: {
|
81
|
+
selectedRows: Array<any>;
|
82
|
+
}): void;
|
128
83
|
/**
|
129
84
|
* 根据勾选行的主键, 设置勾选的行.
|
130
85
|
*
|
131
|
-
* @param formID 界面标识.
|
132
86
|
* @param selectedRowKeys 勾选行的主键.
|
133
87
|
*/
|
134
|
-
|
135
|
-
setTableWidth(
|
88
|
+
setSelectedRowKeys(selectedRowKeys: Array<string>): void;
|
89
|
+
setTableWidth(value: number): void;
|
136
90
|
}
|
137
|
-
export declare
|
138
|
-
export declare type IKgTableStore = ReturnType<IUseKgTableStore>;
|
139
|
-
export declare const useKgTableStore: IUseKgTableStore;
|
91
|
+
export declare function buildUseKgTableStore(formID: string | null | undefined): KgUseStore<UseKgTableStoreGetters, UseKgTableStoreActions>;
|
@@ -16,7 +16,7 @@ export declare const getProps: () => {
|
|
16
16
|
default: undefined;
|
17
17
|
};
|
18
18
|
};
|
19
|
-
declare const
|
19
|
+
export declare const KgTableHeaderCell: import("vue").DefineComponent<{
|
20
20
|
/**
|
21
21
|
* 列的数据.
|
22
22
|
*/
|
@@ -49,4 +49,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
}>> & {}, {
|
50
50
|
kgDisabled: boolean;
|
51
51
|
}>;
|
52
|
-
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
-
import { VarButton, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarDda, VarGridConfig, VarGridDetail,
|
3
|
+
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileMasterDTO, VarVariable } from '../../api/WMS/models';
|
4
4
|
import { IKgVarButtonConfigProperties, IKgVarDdaProperties, IKgVarGridConfigProperties, IKgVarProfileConfigProperties, KG__VAR_BUTTON__TYPE } from '../../const';
|
5
5
|
import { IUseKgButton } from '../KgButton';
|
6
6
|
import { IUseKgForm } from '../KgForm';
|
@@ -9,8 +9,8 @@ import { IUseKgSubmit } from '../KgSubmit';
|
|
9
9
|
import { IUseKgTable } from '../KgTable';
|
10
10
|
import { IUseKgVarConfig } from '../KgVarConfig';
|
11
11
|
import { eventListeners, IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
|
12
|
-
import {
|
13
|
-
import {
|
12
|
+
import { IKgProps, IKgSlots } from './KgVar.model';
|
13
|
+
import { useKgVarStore } from './KgVar.store';
|
14
14
|
export declare type IUseKgVar = {
|
15
15
|
/**
|
16
16
|
* <p>添加一个「变量配置:表单控件」.</p>
|
@@ -33,27 +33,13 @@ export declare type IUseKgVar = {
|
|
33
33
|
* @param varConfigPossibility 要添加的「变量配置:列表数据」.
|
34
34
|
*/
|
35
35
|
createVarConfigPossibility(varConfigPossibility: VarConfigPossibility): void;
|
36
|
-
/**
|
37
|
-
* <p>添加一个「表格配置」.</p>
|
38
|
-
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加变量配置数据.</p>
|
39
|
-
*
|
40
|
-
* @param varGridConfig 要添加的「表格配置」.
|
41
|
-
*/
|
42
|
-
createVarGridConfig(varGridConfig: VarGridConfig): void;
|
43
|
-
/**
|
44
|
-
* <p>添加一个「表格视图」.</p>
|
45
|
-
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加变量配置数据.</p>
|
46
|
-
*
|
47
|
-
* @param varGridMaster 要添加的「表格视图」.
|
48
|
-
*/
|
49
|
-
createVarGridMaster(varGridMaster: VarGridMaster): void;
|
50
|
-
/** 当前的 VarGridDetail 列表. */
|
36
|
+
/** 当前的「表格视图明细」列表. */
|
51
37
|
currentVarGridDetails: ComputedRef<Array<VarGridDetail> | null>;
|
52
|
-
/**
|
38
|
+
/** 当前的「表格视图明细」主键. */
|
53
39
|
currentVarGridMasteID: ComputedRef<string | null>;
|
54
|
-
/**
|
40
|
+
/** 当前的「表格视图」. */
|
55
41
|
currentVarGridMaster: ComputedRef<VarGridMasterDTO | null>;
|
56
|
-
/**
|
42
|
+
/** 当前的「表格视图」主键. */
|
57
43
|
currentVarProfileMasterID: ComputedRef<string | null>;
|
58
44
|
/**
|
59
45
|
* 所有事件监听函数.
|
@@ -113,7 +99,7 @@ export declare type IUseKgVar = {
|
|
113
99
|
*/
|
114
100
|
isCopying: ComputedRef<boolean>;
|
115
101
|
/** 正在复制:正在调用接口. */
|
116
|
-
isCopyingRequesting
|
102
|
+
isCopyingRequesting$$: ComputedRef<boolean | null>;
|
117
103
|
/**
|
118
104
|
* 是否正在创建.
|
119
105
|
*/
|
@@ -121,15 +107,15 @@ export declare type IUseKgVar = {
|
|
121
107
|
/**
|
122
108
|
* 正在创建:正在调用接口.
|
123
109
|
*/
|
124
|
-
isCreatingRequesting
|
110
|
+
isCreatingRequesting$$: ComputedRef<boolean | null>;
|
125
111
|
/**
|
126
112
|
* 是否正在删除.
|
127
113
|
*/
|
128
114
|
isDeleting: ComputedRef<boolean>;
|
129
115
|
/** 正在删除:正在调用接口. */
|
130
|
-
isDeletingRequesting
|
116
|
+
isDeletingRequesting$$: ComputedRef<boolean | null>;
|
131
117
|
/** 其他按钮:正在调用接口. */
|
132
|
-
isOtherRequesting
|
118
|
+
isOtherRequesting$$: ComputedRef<boolean | null>;
|
133
119
|
/** 变量配置是否查询完成. */
|
134
120
|
isRequested: ComputedRef<boolean>;
|
135
121
|
/** 正在查询变量配置. */
|
@@ -143,7 +129,7 @@ export declare type IUseKgVar = {
|
|
143
129
|
*/
|
144
130
|
isUpdating: ComputedRef<boolean>;
|
145
131
|
/** 正在更新:正在调用接口. */
|
146
|
-
isUpdatingRequesting
|
132
|
+
isUpdatingRequesting$$: ComputedRef<boolean | null>;
|
147
133
|
kgButton: IUseKgButton;
|
148
134
|
kgForm: IUseKgForm;
|
149
135
|
kgSearch: IUseKgSearch;
|
@@ -243,8 +229,7 @@ export declare type IUseKgVar = {
|
|
243
229
|
*/
|
244
230
|
setSlots(slots: IKgSlots): void;
|
245
231
|
slots: ComputedRef<IKgSlots | null>;
|
246
|
-
|
247
|
-
store: IKgVarStore;
|
232
|
+
store: ReturnType<typeof useKgVarStore>;
|
248
233
|
/** @deprecated 已废弃, 请使用 {@link IUseKgVar.t2()} */
|
249
234
|
t(varName: string | null | undefined): ComputedRef<string>;
|
250
235
|
/**
|
@@ -253,10 +238,18 @@ export declare type IUseKgVar = {
|
|
253
238
|
* @param varName 变量名称.
|
254
239
|
*/
|
255
240
|
t2(varName: string | null | undefined): string;
|
241
|
+
/**
|
242
|
+
* 按钮配置.
|
243
|
+
*/
|
244
|
+
varButtonConfig: ComputedRef<VarButtonConfig | null>;
|
256
245
|
varButtonConfig$Props$$: ComputedRef<IKgVarButtonConfigProperties>;
|
257
246
|
varButtonCopy: ComputedRef<VarButton | null>;
|
258
247
|
varButtonCreate: ComputedRef<VarButton | null>;
|
259
248
|
varButtonDelete: ComputedRef<VarButton | null>;
|
249
|
+
/**
|
250
|
+
* <p>「查询按钮」.</p>
|
251
|
+
*/
|
252
|
+
varButtonSearch: ComputedRef<VarButton | null>;
|
260
253
|
varButtonUpdate: ComputedRef<VarButton | null>;
|
261
254
|
/**
|
262
255
|
* 所有按钮.
|
@@ -271,8 +264,6 @@ export declare type IUseKgVar = {
|
|
271
264
|
* 所有的「表格视图」.
|
272
265
|
*/
|
273
266
|
varGridMasters: ComputedRef<Array<VarGridMasterDTO> | null>;
|
274
|
-
/** @deprecated 已废弃, 请使用 {@linkplain IUseKgVar.varProfileConfig$$} */
|
275
|
-
varProfileConfig: ComputedRef<VarProfileConfig | null>;
|
276
267
|
varProfileConfig$$: ComputedRef<VarProfileConfig | null>;
|
277
268
|
varProfileConfig$Props$$: ComputedRef<IKgVarProfileConfigProperties>;
|
278
269
|
/** 所有的 VarProfileMaster. */
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ComputedRef, InjectionKey } from 'vue';
|
2
2
|
import { IKgButtonProps } from '../KgButton';
|
3
|
-
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.
|
3
|
+
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.model';
|
4
4
|
import { IKgSearchProps } from '../KgSearch';
|
5
5
|
import { KgSubmitProps } from '../KgSubmit';
|
6
6
|
import { IKgTableSlotParams } from '../KgTable';
|
@@ -1,151 +1,112 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { KG__VAR_BUTTON__TYPE } from '../../const';
|
1
|
+
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../api/WMS/models';
|
2
|
+
import { KG__VAR_BUTTON__TYPE, KgUseStore } from '../../const';
|
4
3
|
import { IUseKgVar } from './KgVar.hooks';
|
5
|
-
import { IKgProps, IKgSlots } from './KgVar.
|
6
|
-
export interface IUseKgVarStoreState {
|
7
|
-
/** 正在复制: 正在调用接口. */
|
8
|
-
isCopyingRequestingMap: Map<string, boolean>;
|
9
|
-
/** 正在创建: 正在调用接口. */
|
10
|
-
isCreatingRequestingMap: Map<string, boolean>;
|
11
|
-
/** 正在删除: 正在调用接口. */
|
12
|
-
isDeletingRequestingMap: Map<string, boolean>;
|
13
|
-
/** 其他按钮: 正在调用接口. */
|
14
|
-
isOtherRequestingMap: Map<string, boolean>;
|
15
|
-
/** 变量配置是否查询完成. */
|
16
|
-
isRequestedMap: Map<string, boolean>;
|
17
|
-
/**
|
18
|
-
* 正在查询所有变量配置.
|
19
|
-
*/
|
20
|
-
isRequestingAllMap: Map<string, boolean>;
|
21
|
-
/** 正在查询 VarGridMaster. */
|
22
|
-
isRetrievingVarGridMasterMap: Map<string, boolean>;
|
23
|
-
/** 正在查询 VarProfileMaster. */
|
24
|
-
isRetrievingVarProfileMasterMap: Map<string, boolean>;
|
25
|
-
/** 正在更新: 正在调用接口. */
|
26
|
-
isUpdatingRequestingMap: Map<string, boolean>;
|
27
|
-
/**
|
28
|
-
* 界面层级.
|
29
|
-
*/
|
30
|
-
levelMap: Map<string, number>;
|
31
|
-
propsMap: Map<string, IKgProps>;
|
32
|
-
slotsMap: Map<string, IKgSlots>;
|
33
|
-
varButtonConfigMap: Map<string, VarButtonConfig | null>;
|
34
|
-
varButtonMap: Map<string, Array<VarButton>>;
|
35
|
-
varChildDetailMap: Map<string, Array<VarChildDetail>>;
|
36
|
-
varConfigControlMap: Map<string, Array<VarConfigControl>>;
|
37
|
-
varConfigInputMap: Map<string, Array<VarConfigInput>>;
|
38
|
-
varConfigLookupMap: Map<string, Array<VarConfigLookup>>;
|
39
|
-
varConfigPossibilityMap: Map<string, Array<VarConfigPossibility>>;
|
40
|
-
varConfigTipMap: Map<string, Array<VarConfigTip>>;
|
41
|
-
varDdaMap: Map<string, VarDda | null>;
|
42
|
-
varGridConfigMap: Map<string, VarGridConfig | null>;
|
43
|
-
varGridMasterMap: Map<string, {
|
44
|
-
varGridMasters: Array<VarGridMasterDTO> | null;
|
45
|
-
/** 当前表格视图. */
|
46
|
-
currentVarGridMasterID: string | null;
|
47
|
-
}>;
|
48
|
-
varProfileConfigMap: Map<string, VarProfileConfig | null>;
|
49
|
-
varProfileMasterMap: Map<string, {
|
50
|
-
varProfileMasters: Array<VarProfileMasterDTO> | null;
|
51
|
-
/** 当前选中的 VarProfileMaster ID. */
|
52
|
-
currentVarProfileMasterID: string | null;
|
53
|
-
}>;
|
54
|
-
varSubmitConfigMap: Map<string, Array<VarSubmitConfig>>;
|
55
|
-
varSubmitDetailMap: Map<string, Array<VarSubmitDetail>>;
|
56
|
-
varVariableMap: Map<string, Array<VarVariable> | null>;
|
57
|
-
}
|
4
|
+
import { IKgProps, IKgSlots } from './KgVar.model';
|
58
5
|
export interface UseKgVarStoreGetters {
|
59
6
|
/** 获取当前'表格视图'的 ID. */
|
60
|
-
getCurrentVarGridMasterID
|
7
|
+
getCurrentVarGridMasterID: (formID: string | null | undefined) => string | null;
|
61
8
|
/**
|
62
9
|
* 获取当前的「查询条件」.
|
63
10
|
*/
|
64
|
-
getCurrentVarProfileMaster
|
11
|
+
getCurrentVarProfileMaster: (formID: string | null | undefined) => VarProfileMasterDTO | null;
|
65
12
|
/** 获取当前 VarProfileMaster 的 ID. */
|
66
|
-
getCurrentVarProfileMasterID
|
13
|
+
getCurrentVarProfileMasterID: (formID: string | null | undefined) => string | null;
|
14
|
+
getIsRequestedMap: Record<string, boolean>;
|
67
15
|
/**
|
68
16
|
* 获取界面层级.
|
69
17
|
*/
|
70
|
-
getLevel
|
71
|
-
getParent
|
72
|
-
getProps
|
73
|
-
getSlots
|
18
|
+
getLevel: (formID: string | null | undefined) => number;
|
19
|
+
getParent: (formID: string | null | undefined) => IUseKgVar | null;
|
20
|
+
getProps: (formID: string | null | undefined) => IKgProps | null;
|
21
|
+
getSlots: (formID: string | null | undefined) => IKgSlots | null;
|
74
22
|
/**
|
75
23
|
* 和 varName 获取 VarButton.
|
76
24
|
*/
|
77
|
-
getVarButton
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
25
|
+
getVarButton: (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
|
26
|
+
getVarButtonConfig: (formID: string | null | undefined) => VarButtonConfig | null;
|
27
|
+
getVarButtonConfigMap: Record<string, VarButtonConfig | null>;
|
28
|
+
getVarButtonCopy: (formID: string | null | undefined) => VarButton | null;
|
29
|
+
getVarButtonCreate: (formID: string | null | undefined) => VarButton | null;
|
30
|
+
getVarButtonDelete: (formID: string | null | undefined) => VarButton | null;
|
31
|
+
getVarButtonMap: Record<string, Array<VarButton>>;
|
32
|
+
getVarButtonUpdate: (formID: string | null | undefined) => VarButton | null;
|
33
|
+
getVarButtonSearch: (formID: string | null | undefined) => VarButton | null;
|
34
|
+
getVarButtons: (formID: string | null | undefined) => Array<VarButton>;
|
35
|
+
getVarChildDetails: (formID: string | null | undefined) => Array<VarChildDetail>;
|
36
|
+
getVarConfigControl: (formID: string | null | undefined, param: {
|
85
37
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
86
38
|
buttonVarName?: string | null;
|
87
39
|
varName: string | null | undefined;
|
88
40
|
}) => VarConfigControl | null;
|
89
|
-
getVarConfigInput
|
90
|
-
getVarConfigLookup
|
91
|
-
getVarConfigPossibility
|
41
|
+
getVarConfigInput: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
|
42
|
+
getVarConfigLookup: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
|
43
|
+
getVarConfigPossibility: (formID: string | null | undefined, param: {
|
92
44
|
varName: string | null | undefined;
|
93
45
|
}) => VarConfigPossibility | null;
|
94
|
-
getVarConfigTip
|
95
|
-
getVarDda
|
46
|
+
getVarConfigTip: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
|
47
|
+
getVarDda: (formID: string | null | undefined) => VarDda | null;
|
96
48
|
/**
|
97
49
|
* 获取'表格配置'.
|
98
50
|
*/
|
99
|
-
getVarGridConfig
|
51
|
+
getVarGridConfig: (formID: string | null | undefined) => VarGridConfig | null;
|
100
52
|
/** 获取所有的 VarGridConfig. */
|
101
|
-
getVarGridConfigMap
|
102
|
-
getVarGridDetail
|
53
|
+
getVarGridConfigMap: Record<string, VarGridConfig | null>;
|
54
|
+
getVarGridDetail: (formID: string | null | undefined, param: {
|
103
55
|
varName: string | null | undefined;
|
104
56
|
}) => VarGridDetail | null;
|
105
57
|
/**
|
106
58
|
* 获取当前的「表格视图明细」列表.
|
107
59
|
*/
|
108
|
-
getVarGridDetailList
|
60
|
+
getVarGridDetailList: (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
109
61
|
/**
|
110
62
|
* 获取当前的「表格视图」.
|
111
63
|
*/
|
112
|
-
getVarGridMaster
|
64
|
+
getVarGridMaster: (formID: string | null | undefined) => VarGridMasterDTO | null;
|
113
65
|
/**
|
114
66
|
* 获取 VarGridMaster 列表.
|
115
67
|
*/
|
116
|
-
getVarGridMasters
|
117
|
-
getVarProfileConfig
|
68
|
+
getVarGridMasters: (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
69
|
+
getVarProfileConfig: (formID: string | null | undefined) => VarProfileConfig | null;
|
118
70
|
/**
|
119
71
|
* 和 varName 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
120
72
|
*/
|
121
|
-
getVarProfileDetail
|
73
|
+
getVarProfileDetail: (formID: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
|
74
|
+
getVarProfileMasterMap: Record<string, {
|
75
|
+
varProfileMasters: Array<VarProfileMasterDTO> | null;
|
76
|
+
/** 当前选中的 VarProfileMaster ID. */
|
77
|
+
currentVarProfileMasterID: string | null;
|
78
|
+
}>;
|
122
79
|
/**
|
123
80
|
* 获取 VarProfileMasterDTO 列表.
|
124
81
|
*/
|
125
|
-
getVarProfileMasters
|
126
|
-
|
82
|
+
getVarProfileMasters: (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
83
|
+
getVarSubmitConfigMap: Record<string, Array<VarSubmitConfig>>;
|
84
|
+
getVarSubmitDetailMap: Record<string, Array<VarSubmitDetail>>;
|
85
|
+
getVarVariables: (formID: string | null | undefined) => Array<VarVariable>;
|
127
86
|
/**
|
128
87
|
* 获取当前视图下可显示的 VarGridDetail 列表.
|
129
88
|
*/
|
130
|
-
getVisibleVarGridDetailList
|
89
|
+
getVisibleVarGridDetailList: (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
131
90
|
/**
|
132
91
|
* 获取当前视图下可显示的 VarGridDetail 的宽度之和.
|
133
92
|
*/
|
134
|
-
getVisibleVarGridDetailListTotalWidth
|
135
|
-
isCopyingRequesting
|
136
|
-
isCreatingRequesting
|
137
|
-
isDeletingRequesting
|
138
|
-
isOtherRequesting
|
93
|
+
getVisibleVarGridDetailListTotalWidth: (formID: string | null | undefined) => number | null;
|
94
|
+
isCopyingRequesting: (formID: string | null | undefined) => boolean | null;
|
95
|
+
isCreatingRequesting: (formID: string | null | undefined) => boolean | null;
|
96
|
+
isDeletingRequesting: (formID: string | null | undefined) => boolean | null;
|
97
|
+
isOtherRequesting: (formID: string | null | undefined) => boolean | null;
|
139
98
|
/** 变量配置是否查询完成. */
|
140
|
-
isRequested
|
141
|
-
isRetrieving
|
142
|
-
isRetrievingVarGridMaster
|
143
|
-
isRetrievingVarProfileMaster
|
144
|
-
isUpdatingRequesting
|
99
|
+
isRequested: (formID: string | null | undefined) => boolean;
|
100
|
+
isRetrieving: (formID: string | null | undefined) => boolean | null;
|
101
|
+
isRetrievingVarGridMaster: (formID: string | null | undefined) => boolean | null;
|
102
|
+
isRetrievingVarProfileMaster: (formID: string | null | undefined) => boolean | null;
|
103
|
+
isUpdatingRequesting: (formID: string | null | undefined) => boolean | null;
|
104
|
+
t: (formID: string | null | undefined, varName: string | null | undefined) => string;
|
145
105
|
}
|
146
106
|
export interface IUseKgVarStoreActions {
|
147
|
-
createVarConfigControl(
|
148
|
-
|
107
|
+
createVarConfigControl(varConfigControl: VarConfigControl): void;
|
108
|
+
createVarConfigDescription(varConfigDescription: VarConfigDescription): void;
|
109
|
+
createVarConfigPossibility(varConfigPossibility: VarConfigPossibility): void;
|
149
110
|
/**
|
150
111
|
* <p>离开一个界面, 即销毁一个界面.</p>
|
151
112
|
* <p>删除它的变量配置数据.</p>
|
@@ -274,6 +235,4 @@ export interface IUseKgVarStoreActions {
|
|
274
235
|
*/
|
275
236
|
setVarProfileDetailEnable(formID: string, varName: string | null | undefined, enable: number): void;
|
276
237
|
}
|
277
|
-
export declare
|
278
|
-
export declare type IKgVarStore = ReturnType<IUseKgVarStore>;
|
279
|
-
export declare const useKgVarStore: IUseKgVarStore;
|
238
|
+
export declare const useKgVarStore: KgUseStore<UseKgVarStoreGetters, IUseKgVarStoreActions>;
|
@@ -2,8 +2,7 @@ export declare function KgVarFactory(param?: {
|
|
2
2
|
formID?: string | null | undefined;
|
3
3
|
}): import("vue").DefineComponent<{
|
4
4
|
kgBackgroundGray: {
|
5
|
-
type: import("vue").PropType<boolean>;
|
6
|
-
/**
|
5
|
+
type: import("vue").PropType<boolean>; /**
|
7
6
|
* 子页面的组件.
|
8
7
|
*/
|
9
8
|
default: undefined;
|
@@ -13,12 +12,11 @@ export declare function KgVarFactory(param?: {
|
|
13
12
|
type: import("vue").PropType<number>;
|
14
13
|
default: number;
|
15
14
|
};
|
16
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
17
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
15
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
16
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
18
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
19
18
|
kgBackgroundGray: {
|
20
|
-
type: import("vue").PropType<boolean>;
|
21
|
-
/**
|
19
|
+
type: import("vue").PropType<boolean>; /**
|
22
20
|
* 子页面的组件.
|
23
21
|
*/
|
24
22
|
default: undefined;
|
@@ -28,8 +26,8 @@ export declare function KgVarFactory(param?: {
|
|
28
26
|
type: import("vue").PropType<number>;
|
29
27
|
default: number;
|
30
28
|
};
|
31
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
32
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
29
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
30
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
33
31
|
}>>, {
|
34
32
|
kgBackgroundGray: boolean;
|
35
33
|
kgLevel: number;
|
@@ -39,8 +37,7 @@ export declare function KgVarFactory(param?: {
|
|
39
37
|
*/
|
40
38
|
export declare const KgVar2: import("vue").DefineComponent<{
|
41
39
|
kgBackgroundGray: {
|
42
|
-
type: import("vue").PropType<boolean>;
|
43
|
-
/**
|
40
|
+
type: import("vue").PropType<boolean>; /**
|
44
41
|
* 子页面的组件.
|
45
42
|
*/
|
46
43
|
default: undefined;
|
@@ -50,12 +47,11 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
50
47
|
type: import("vue").PropType<number>;
|
51
48
|
default: number;
|
52
49
|
};
|
53
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
54
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
50
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
51
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
55
52
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
56
53
|
kgBackgroundGray: {
|
57
|
-
type: import("vue").PropType<boolean>;
|
58
|
-
/**
|
54
|
+
type: import("vue").PropType<boolean>; /**
|
59
55
|
* 子页面的组件.
|
60
56
|
*/
|
61
57
|
default: undefined;
|
@@ -65,8 +61,8 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
65
61
|
type: import("vue").PropType<number>;
|
66
62
|
default: number;
|
67
63
|
};
|
68
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
69
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
64
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
65
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
70
66
|
}>>, {
|
71
67
|
kgBackgroundGray: boolean;
|
72
68
|
kgLevel: number;
|