@kengic/vue 0.29.1-beta.9 → 0.30.1-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/CHANGELOG.md +83 -7
- package/dist/bubble-loading.cd2fe007.mjs +8 -0
- package/dist/close-circle-outlined.85f75690.mjs +8 -0
- package/dist/close-outlined.5757472a.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +113162 -55865
- 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.service.d.ts +1 -1
- 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/KgTable02/KgTable02.d.ts +46 -0
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +97 -0
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +32 -0
- package/dist/src/component/KgTable02/KgTable02.model.d.ts +1 -0
- package/dist/src/component/KgTable02/KgTable02.store.d.ts +62 -0
- package/dist/src/component/KgTable02/index.d.ts +4 -0
- package/dist/src/component/KgVar/KgVar.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +23 -30
- package/dist/src/component/KgVar/{KgVar.vm.d.ts → KgVar.model.d.ts} +3 -1
- package/dist/src/component/KgVar/KgVar.store.d.ts +90 -102
- package/dist/src/component/KgVar/KgVarFactory.d.ts +8 -20
- 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/config/index.d.ts +33 -2
- package/dist/src/const/{const.vm.d.ts → const.model.d.ts} +13 -0
- package/dist/src/const/index.d.ts +2 -2
- package/dist/src/i18n/i18n.setup.d.ts +2 -17
- package/dist/src/index.d.ts +0 -1
- 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/dist/src/service/http-client.d.ts +2 -2
- package/package.json +8 -4
- package/dist/close-circle-outlined.247eef63.mjs +0 -8
- package/dist/close-outlined.b338331c.mjs +0 -8
- 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/KgVar/KgVar.store.service.d.ts +0 -30
- package/dist/src/store/index.d.ts +0 -8
- /package/dist/{aim-outlined.c49e7018.mjs → aim-outlined.8d38a0f9.mjs} +0 -0
- /package/dist/{audit-outlined.f37f7da2.mjs → audit-outlined.4555f723.mjs} +0 -0
- /package/dist/{bulb-outlined.93f68e9f.mjs → bulb-outlined.a5bf22d8.mjs} +0 -0
- /package/dist/{caret-right-filled.bfffd471.mjs → caret-right-filled.dbbda237.mjs} +0 -0
- /package/dist/{caret-right-outlined.f3fc4d46.mjs → caret-right-outlined.12fe6699.mjs} +0 -0
- /package/dist/{check-circle-outlined.7d48e8e7.mjs → check-circle-outlined.b219949f.mjs} +0 -0
- /package/dist/{check-outlined.9928ff0c.mjs → check-outlined.59c42074.mjs} +0 -0
- /package/dist/{check-square-outlined.d21c4d4e.mjs → check-square-outlined.233589d8.mjs} +0 -0
- /package/dist/{clock-circle-outline.c90a0ae1.mjs → clock-circle-outline.b9d0b3dc.mjs} +0 -0
- /package/dist/{control-outlined.69345ce9.mjs → control-outlined.d66ac4d2.mjs} +0 -0
- /package/dist/{copy-filled.28f04bba.mjs → copy-filled.a3dcd299.mjs} +0 -0
- /package/dist/{copy-outlined.ca34e717.mjs → copy-outlined.6a695d8a.mjs} +0 -0
- /package/dist/{delete-outlined.d1c5c60d.mjs → delete-outlined.20afb717.mjs} +0 -0
- /package/dist/{delete-twotone.8485a948.mjs → delete-twotone.1d40696a.mjs} +0 -0
- /package/dist/{down-circle-outlined.1e7e4a7b.mjs → down-circle-outlined.8ba93393.mjs} +0 -0
- /package/dist/{download-outlined.f13eae9a.mjs → download-outlined.e78b5364.mjs} +0 -0
- /package/dist/{edit-outlined.c08469a0.mjs → edit-outlined.0aae2217.mjs} +0 -0
- /package/dist/{edit-twotone.8e37fd1c.mjs → edit-twotone.67c952fa.mjs} +0 -0
- /package/dist/{exception-outlined.6dede184.mjs → exception-outlined.8c0003a2.mjs} +0 -0
- /package/dist/{eye-outlined.649899dc.mjs → eye-outlined.b25b4d28.mjs} +0 -0
- /package/dist/{file-text-outline.bae206dd.mjs → file-text-outline.2fbccab6.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined.a75b82c2.mjs → fullscreen-exit-outlined.b77fa876.mjs} +0 -0
- /package/dist/{fullscreen-outlined.c9ba7960.mjs → fullscreen-outlined.cd572ef8.mjs} +0 -0
- /package/dist/{info-circle-outlined.c59a629f.mjs → info-circle-outlined.7ddbd554.mjs} +0 -0
- /package/dist/{one-to-one-outlined.4f97e62a.mjs → one-to-one-outlined.ac265beb.mjs} +0 -0
- /package/dist/{pause-circle-outlined.c32a598a.mjs → pause-circle-outlined.cd534f5f.mjs} +0 -0
- /package/dist/{pause-outlined.a5f6ccbd.mjs → pause-outlined.fca0d0f9.mjs} +0 -0
- /package/dist/{plus-outlined.2ff6998c.mjs → plus-outlined.bdaa6481.mjs} +0 -0
- /package/dist/{printer-outlined.d9d087d5.mjs → printer-outlined.a8d0d92b.mjs} +0 -0
- /package/dist/{reload-outlined.abae07b1.mjs → reload-outlined.d320578b.mjs} +0 -0
- /package/dist/{retweet-outlined.a2c4bb1a.mjs → retweet-outlined.bfa9b123.mjs} +0 -0
- /package/dist/{search-outlined.8364f123.mjs → search-outlined.ba5c5a3f.mjs} +0 -0
- /package/dist/{setting-outlined.7f72790b.mjs → setting-outlined.a3caf743.mjs} +0 -0
- /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
- /package/dist/{stop-outlined.facea37d.mjs → stop-outlined.9f2c4f61.mjs} +0 -0
- /package/dist/{upload-outlined.7ffb99b8.mjs → upload-outlined.c576b26a.mjs} +0 -0
@@ -1,151 +1,141 @@
|
|
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, KgStoreDefinition } from '../../const';
|
4
3
|
import { IUseKgVar } from './KgVar.hooks';
|
5
|
-
import { IKgProps, IKgSlots } from './KgVar.
|
6
|
-
export
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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';
|
5
|
+
export declare function transformVarProfileConfig(varProfileConfig: VarProfileConfig | null | undefined): VarProfileConfig | null;
|
6
|
+
export declare function transformVarGridConfig(varGridConfig: VarGridConfig | null | undefined): VarGridConfig | null;
|
7
|
+
export declare function transformVarGridMasters(varGridMasters?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
8
|
+
export declare function transformVarChildDetails(varChildDetails: Array<VarChildDetail> | null | undefined): Array<VarChildDetail>;
|
9
|
+
export declare function transformVarProfileMasters(varProfileMasters?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
|
10
|
+
export declare function transformVarSubmitConfigs(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
|
11
|
+
export declare function transformVarSubmitDetails(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
|
12
|
+
export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
|
13
|
+
export declare function transformVarConfigPossibilities(varConfigPossibilities: Array<VarConfigPossibility> | null | undefined): Array<VarConfigPossibility>;
|
14
|
+
export declare function transformVarConfigControls(varConfigControls: Array<VarConfigControl> | null | undefined): Array<VarConfigControl>;
|
15
|
+
export declare function transformVarConfigLookups(varConfigLookups: Array<VarConfigLookup> | null | undefined): Array<VarConfigLookup>;
|
16
|
+
export declare function transformVarConfigTips(varConfigTips: Array<VarConfigTip> | null | undefined): Array<VarConfigTip>;
|
17
|
+
export declare function transformVarConfigInputs(varConfigInputs: Array<VarConfigInput> | null | undefined): Array<VarConfigInput>;
|
18
|
+
export declare function transformVarButtonConfig(varButtonConfig: VarButtonConfig | null | undefined): VarButtonConfig | null;
|
19
|
+
/**
|
20
|
+
* 处理 VarGridDetail 数据.
|
21
|
+
*
|
22
|
+
* @param varGridDetails 原始数据.
|
23
|
+
*/
|
24
|
+
export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
|
25
|
+
export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
|
26
|
+
/**
|
27
|
+
* 给所有没有「提交表单字段」的「查询条件视图明细」创建一个默认的「提交表单字段」.
|
28
|
+
*
|
29
|
+
* @param varGridMasters 「查询条件视图」列表.
|
30
|
+
* @param varSubmitDetails 「提交表单字段」列表.
|
31
|
+
* @param varButtons 「按钮」列表.
|
32
|
+
*/
|
33
|
+
export declare function createDefaultVarSubmitDetailsForVarProfileDetails(varGridMasters: Array<VarProfileMasterDTO>, varSubmitDetails: Array<VarSubmitDetail>, varButtons: Array<VarButton>): void;
|
58
34
|
export interface UseKgVarStoreGetters {
|
59
35
|
/** 获取当前'表格视图'的 ID. */
|
60
|
-
getCurrentVarGridMasterID
|
36
|
+
getCurrentVarGridMasterID: (formID: string | null | undefined) => string | null;
|
61
37
|
/**
|
62
38
|
* 获取当前的「查询条件」.
|
63
39
|
*/
|
64
|
-
getCurrentVarProfileMaster
|
40
|
+
getCurrentVarProfileMaster: (formID: string | null | undefined) => VarProfileMasterDTO | null;
|
65
41
|
/** 获取当前 VarProfileMaster 的 ID. */
|
66
|
-
getCurrentVarProfileMasterID
|
42
|
+
getCurrentVarProfileMasterID: (formID: string | null | undefined) => string | null;
|
43
|
+
getIsRequestedMap: Record<string, boolean>;
|
67
44
|
/**
|
68
45
|
* 获取界面层级.
|
69
46
|
*/
|
70
|
-
getLevel
|
71
|
-
getParent
|
72
|
-
getProps
|
73
|
-
getSlots
|
47
|
+
getLevel: (formID: string | null | undefined) => number;
|
48
|
+
getParent: (formID: string | null | undefined) => IUseKgVar | null;
|
49
|
+
getProps: (formID: string | null | undefined) => IKgProps | null;
|
50
|
+
getSlots: (formID: string | null | undefined) => IKgSlots | null;
|
74
51
|
/**
|
75
52
|
* 和 varName 获取 VarButton.
|
76
53
|
*/
|
77
|
-
getVarButton
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
54
|
+
getVarButton: (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
|
55
|
+
getVarButtonConfig: (formID: string | null | undefined) => VarButtonConfig | null;
|
56
|
+
getVarButtonConfigMap: Record<string, VarButtonConfig | null>;
|
57
|
+
getVarButtonCopy: (formID: string | null | undefined) => VarButton | null;
|
58
|
+
getVarButtonCreate: (formID: string | null | undefined) => VarButton | null;
|
59
|
+
getVarButtonDelete: (formID: string | null | undefined) => VarButton | null;
|
60
|
+
getVarButtonMap: Record<string, Array<VarButton>>;
|
61
|
+
getVarButtonUpdate: (formID: string | null | undefined) => VarButton | null;
|
62
|
+
getVarButtonSearch: (formID: string | null | undefined) => VarButton | null;
|
63
|
+
getVarButtons: (formID: string | null | undefined) => Array<VarButton>;
|
64
|
+
getVarChildDetails: (formID: string | null | undefined) => Array<VarChildDetail>;
|
65
|
+
getVarConfigControl: (formID: string | null | undefined, param: {
|
85
66
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
86
67
|
buttonVarName?: string | null;
|
87
68
|
varName: string | null | undefined;
|
88
69
|
}) => VarConfigControl | null;
|
89
|
-
getVarConfigInput
|
90
|
-
getVarConfigLookup
|
91
|
-
getVarConfigPossibility
|
70
|
+
getVarConfigInput: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
|
71
|
+
getVarConfigLookup: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
|
72
|
+
getVarConfigPossibility: (formID: string | null | undefined, param: {
|
92
73
|
varName: string | null | undefined;
|
93
74
|
}) => VarConfigPossibility | null;
|
94
|
-
getVarConfigTip
|
95
|
-
getVarDda
|
75
|
+
getVarConfigTip: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
|
76
|
+
getVarDda: (formID: string | null | undefined) => VarDda | null;
|
96
77
|
/**
|
97
78
|
* 获取'表格配置'.
|
98
79
|
*/
|
99
|
-
getVarGridConfig
|
80
|
+
getVarGridConfig: (formID: string | null | undefined) => VarGridConfig | null;
|
100
81
|
/** 获取所有的 VarGridConfig. */
|
101
|
-
getVarGridConfigMap
|
102
|
-
getVarGridDetail
|
82
|
+
getVarGridConfigMap: Record<string, VarGridConfig | null>;
|
83
|
+
getVarGridDetail: (formID: string | null | undefined, param: {
|
103
84
|
varName: string | null | undefined;
|
104
85
|
}) => VarGridDetail | null;
|
105
86
|
/**
|
106
87
|
* 获取当前的「表格视图明细」列表.
|
107
88
|
*/
|
108
|
-
getVarGridDetailList
|
89
|
+
getVarGridDetailList: (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
109
90
|
/**
|
110
91
|
* 获取当前的「表格视图」.
|
111
92
|
*/
|
112
|
-
getVarGridMaster
|
93
|
+
getVarGridMaster: (formID: string | null | undefined) => VarGridMasterDTO | null;
|
113
94
|
/**
|
114
95
|
* 获取 VarGridMaster 列表.
|
115
96
|
*/
|
116
|
-
getVarGridMasters
|
117
|
-
getVarProfileConfig
|
97
|
+
getVarGridMasters: (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
98
|
+
getVarProfileConfig: (formID: string | null | undefined) => VarProfileConfig | null;
|
118
99
|
/**
|
119
100
|
* 和 varName 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
120
101
|
*/
|
121
|
-
getVarProfileDetail
|
102
|
+
getVarProfileDetail: (formID: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
|
103
|
+
getVarProfileMasterMap: Record<string, {
|
104
|
+
varProfileMasters: Array<VarProfileMasterDTO> | null;
|
105
|
+
/** 当前选中的 VarProfileMaster ID. */
|
106
|
+
currentVarProfileMasterID: string | null;
|
107
|
+
}>;
|
122
108
|
/**
|
123
109
|
* 获取 VarProfileMasterDTO 列表.
|
124
110
|
*/
|
125
|
-
getVarProfileMasters
|
126
|
-
|
111
|
+
getVarProfileMasters: (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
112
|
+
getVarSubmitConfigMap: Record<string, Array<VarSubmitConfig>>;
|
113
|
+
getVarSubmitDetailMap: Record<string, Array<VarSubmitDetail>>;
|
114
|
+
getVarVariables: (formID: string | null | undefined) => Array<VarVariable>;
|
127
115
|
/**
|
128
116
|
* 获取当前视图下可显示的 VarGridDetail 列表.
|
129
117
|
*/
|
130
|
-
getVisibleVarGridDetailList
|
118
|
+
getVisibleVarGridDetailList: (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
131
119
|
/**
|
132
120
|
* 获取当前视图下可显示的 VarGridDetail 的宽度之和.
|
133
121
|
*/
|
134
|
-
getVisibleVarGridDetailListTotalWidth
|
135
|
-
isCopyingRequesting
|
136
|
-
isCreatingRequesting
|
137
|
-
isDeletingRequesting
|
138
|
-
isOtherRequesting
|
122
|
+
getVisibleVarGridDetailListTotalWidth: (formID: string | null | undefined) => number | null;
|
123
|
+
isCopyingRequesting: (formID: string | null | undefined) => boolean | null;
|
124
|
+
isCreatingRequesting: (formID: string | null | undefined) => boolean | null;
|
125
|
+
isDeletingRequesting: (formID: string | null | undefined) => boolean | null;
|
126
|
+
isOtherRequesting: (formID: string | null | undefined) => boolean | null;
|
139
127
|
/** 变量配置是否查询完成. */
|
140
|
-
isRequested
|
141
|
-
isRetrieving
|
142
|
-
isRetrievingVarGridMaster
|
143
|
-
isRetrievingVarProfileMaster
|
144
|
-
isUpdatingRequesting
|
128
|
+
isRequested: (formID: string | null | undefined) => boolean;
|
129
|
+
isRetrieving: (formID: string | null | undefined) => boolean | null;
|
130
|
+
isRetrievingVarGridMaster: (formID: string | null | undefined) => boolean | null;
|
131
|
+
isRetrievingVarProfileMaster: (formID: string | null | undefined) => boolean | null;
|
132
|
+
isUpdatingRequesting: (formID: string | null | undefined) => boolean | null;
|
133
|
+
t: (formID: string | null | undefined, varName: string | null | undefined) => string;
|
145
134
|
}
|
146
135
|
export interface IUseKgVarStoreActions {
|
147
|
-
createVarConfigControl(
|
148
|
-
|
136
|
+
createVarConfigControl(varConfigControl: VarConfigControl): void;
|
137
|
+
createVarConfigDescription(varConfigDescription: VarConfigDescription): void;
|
138
|
+
createVarConfigPossibility(varConfigPossibility: VarConfigPossibility): void;
|
149
139
|
/**
|
150
140
|
* <p>离开一个界面, 即销毁一个界面.</p>
|
151
141
|
* <p>删除它的变量配置数据.</p>
|
@@ -274,6 +264,4 @@ export interface IUseKgVarStoreActions {
|
|
274
264
|
*/
|
275
265
|
setVarProfileDetailEnable(formID: string, varName: string | null | undefined, enable: number): void;
|
276
266
|
}
|
277
|
-
export declare
|
278
|
-
export declare type IKgVarStore = ReturnType<IUseKgVarStore>;
|
279
|
-
export declare const useKgVarStore: IUseKgVarStore;
|
267
|
+
export declare const useKgVarStore: KgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
|
@@ -3,9 +3,6 @@ export declare function KgVarFactory(param?: {
|
|
3
3
|
}): import("vue").DefineComponent<{
|
4
4
|
kgBackgroundGray: {
|
5
5
|
type: import("vue").PropType<boolean>;
|
6
|
-
/**
|
7
|
-
* 子页面的组件.
|
8
|
-
*/
|
9
6
|
default: undefined;
|
10
7
|
};
|
11
8
|
kgFormID: import("vue").PropType<string>;
|
@@ -13,14 +10,11 @@ export declare function KgVarFactory(param?: {
|
|
13
10
|
type: import("vue").PropType<number>;
|
14
11
|
default: number;
|
15
12
|
};
|
16
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
17
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
13
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
14
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
18
15
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
19
16
|
kgBackgroundGray: {
|
20
17
|
type: import("vue").PropType<boolean>;
|
21
|
-
/**
|
22
|
-
* 子页面的组件.
|
23
|
-
*/
|
24
18
|
default: undefined;
|
25
19
|
};
|
26
20
|
kgFormID: import("vue").PropType<string>;
|
@@ -28,8 +22,8 @@ export declare function KgVarFactory(param?: {
|
|
28
22
|
type: import("vue").PropType<number>;
|
29
23
|
default: number;
|
30
24
|
};
|
31
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
32
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
25
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
26
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
33
27
|
}>>, {
|
34
28
|
kgBackgroundGray: boolean;
|
35
29
|
kgLevel: number;
|
@@ -40,9 +34,6 @@ export declare function KgVarFactory(param?: {
|
|
40
34
|
export declare const KgVar2: import("vue").DefineComponent<{
|
41
35
|
kgBackgroundGray: {
|
42
36
|
type: import("vue").PropType<boolean>;
|
43
|
-
/**
|
44
|
-
* 子页面的组件.
|
45
|
-
*/
|
46
37
|
default: undefined;
|
47
38
|
};
|
48
39
|
kgFormID: import("vue").PropType<string>;
|
@@ -50,14 +41,11 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
50
41
|
type: import("vue").PropType<number>;
|
51
42
|
default: number;
|
52
43
|
};
|
53
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
54
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
44
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
45
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
55
46
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
56
47
|
kgBackgroundGray: {
|
57
48
|
type: import("vue").PropType<boolean>;
|
58
|
-
/**
|
59
|
-
* 子页面的组件.
|
60
|
-
*/
|
61
49
|
default: undefined;
|
62
50
|
};
|
63
51
|
kgFormID: import("vue").PropType<string>;
|
@@ -65,8 +53,8 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
65
53
|
type: import("vue").PropType<number>;
|
66
54
|
default: number;
|
67
55
|
};
|
68
|
-
kgProps: import("vue").PropType<import("./KgVar.
|
69
|
-
kgSlots: import("vue").PropType<import("./KgVar.
|
56
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
57
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
70
58
|
}>>, {
|
71
59
|
kgBackgroundGray: boolean;
|
72
60
|
kgLevel: number;
|
@@ -1,21 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
export
|
3
|
-
|
4
|
-
* 打开变量配置弹窗, 并使用传入的宿主界面标识.
|
5
|
-
*
|
6
|
-
* @param param.hostFormID 宿主界面标识
|
7
|
-
* @param param.kgContext {@link KG_VAR_CONFIG_MODAL__CONTEXT}
|
8
|
-
*/
|
9
|
-
open(param: {
|
10
|
-
hostFormID: string;
|
11
|
-
kgContext?: string;
|
12
|
-
}): void;
|
13
|
-
/**
|
14
|
-
* 状态数据.
|
15
|
-
*/
|
16
|
-
store: IKgVarConfigStore;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* @param formID 界面标识.
|
20
|
-
*/
|
21
|
-
export declare function useKgVarConfig(formID?: string | null): IUseKgVarConfig;
|
1
|
+
import { useKgVarConfigStore } from './KgVarConfig.store';
|
2
|
+
export declare type IUseKgVarConfig = {} & ReturnType<typeof useKgVarConfigStore>;
|
3
|
+
export declare function useKgVarConfig(): IUseKgVarConfig;
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export interface IUseKgVarConfigStoreState {
|
3
|
-
}
|
1
|
+
import { KgStoreDefinition } from '../../const';
|
4
2
|
export interface IUseKgVarConfigStoreGetters {
|
5
3
|
}
|
6
4
|
export interface IUseKgVarConfigStoreActions {
|
@@ -15,6 +13,4 @@ export interface IUseKgVarConfigStoreActions {
|
|
15
13
|
kgContext?: string;
|
16
14
|
}): void;
|
17
15
|
}
|
18
|
-
export declare
|
19
|
-
export declare type IKgVarConfigStore = ReturnType<IUseKgVarConfigStore>;
|
20
|
-
export declare const useKgVarConfigStore: IUseKgVarConfigStore;
|
16
|
+
export declare const useKgVarConfigStore: KgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
+
import { WhDTO } from '../../api/WMS/models';
|
3
4
|
import { IKgWarehouseOnMountedEventListener } from './KgWarehouse.event';
|
4
|
-
import {
|
5
|
+
import { useKgWarehouseStore } from './KgWarehouse.store';
|
5
6
|
export declare type IUseKgWarehouse = {
|
6
7
|
/**
|
7
8
|
* 监听事件: 组件加载完成.
|
@@ -9,14 +10,14 @@ export declare type IUseKgWarehouse = {
|
|
9
10
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
10
11
|
*/
|
11
12
|
onMounted(listener: IKgWarehouseOnMountedEventListener, isOnce?: boolean): IRemoveEventListener;
|
12
|
-
store:
|
13
|
+
store: ReturnType<typeof useKgWarehouseStore>;
|
13
14
|
/**
|
14
15
|
* 是否显示弹窗.
|
15
16
|
*/
|
16
|
-
visible: ComputedRef<
|
17
|
+
visible: ComputedRef<boolean>;
|
17
18
|
/**
|
18
19
|
* 当前仓库.
|
19
20
|
*/
|
20
|
-
warehouse: ComputedRef<
|
21
|
+
warehouse: ComputedRef<WhDTO | null>;
|
21
22
|
};
|
22
23
|
export declare function useKgWarehouse(): IUseKgWarehouse;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { StoreDefinition } from 'pinia';
|
2
1
|
import { WhDTO } from '../../api/WMS/models';
|
2
|
+
import { KgStoreDefinition } from '../../const';
|
3
3
|
export interface IUseKgWarehouseStoreState {
|
4
4
|
/**
|
5
5
|
* 是否显示弹窗.
|
@@ -31,6 +31,4 @@ export interface IUseKgWarehouseStoreActions {
|
|
31
31
|
*/
|
32
32
|
setWarehouse(warehouse?: WhDTO | null): void;
|
33
33
|
}
|
34
|
-
export declare
|
35
|
-
export declare type IKgWarehouseStore = ReturnType<IUseKgWarehouseStore>;
|
36
|
-
export declare const useKgWarehouseStore: IUseKgWarehouseStore;
|
34
|
+
export declare const useKgWarehouseStore: KgStoreDefinition<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
|
@@ -1,55 +1,10 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import { Router } from 'vue-router';
|
3
|
-
import { Description } from '../api/WMS/models';
|
4
2
|
import { LocaleType } from '../project/types/config';
|
5
|
-
import {
|
6
|
-
export
|
7
|
-
/**
|
8
|
-
* 语言数据.
|
9
|
-
*/
|
10
|
-
I18N$$: ComputedRef<Record<string, any>>;
|
11
|
-
/**
|
12
|
-
* 获取当前语言下的某个描述.
|
13
|
-
*
|
14
|
-
* @param.codeName 描述组名.
|
15
|
-
* @param.codeValue 描述数值.
|
16
|
-
*/
|
17
|
-
getDescription(param: {
|
18
|
-
codeName: string | null | undefined;
|
19
|
-
codeValue: string | null | undefined;
|
20
|
-
}): Description | null;
|
3
|
+
import { useKgStore } from './config.store';
|
4
|
+
export declare type IUseKg = {
|
21
5
|
/**
|
22
6
|
* 当前语言.
|
23
7
|
*/
|
24
8
|
locale: ComputedRef<LocaleType>;
|
25
|
-
|
26
|
-
option: ComputedRef<IKgOption>;
|
27
|
-
/**
|
28
|
-
* 配置参数.
|
29
|
-
*/
|
30
|
-
option$$: ComputedRef<IKgOption>;
|
31
|
-
/**
|
32
|
-
* 检查权限方法.
|
33
|
-
*/
|
34
|
-
p: P;
|
35
|
-
/**
|
36
|
-
* 请求某组描述数据.
|
37
|
-
*
|
38
|
-
* @param param.codeName 描述组名.
|
39
|
-
* @param param.isForceRequest 是否强制请求, 即无论是否已经请求过该组, 始终重新请求, 默认为 true.
|
40
|
-
*/
|
41
|
-
requestDescriptionList(param: {
|
42
|
-
codeName: string | null | undefined;
|
43
|
-
isForceRequest?: boolean | null | undefined;
|
44
|
-
}): Promise<void>;
|
45
|
-
/**
|
46
|
-
* 路由对象.
|
47
|
-
*/
|
48
|
-
router: ComputedRef<Router | null>;
|
49
|
-
store: IKgStore;
|
50
|
-
/**
|
51
|
-
* 翻译方法.
|
52
|
-
*/
|
53
|
-
t: T;
|
54
|
-
}
|
9
|
+
} & ReturnType<typeof useKgStore>;
|
55
10
|
export declare function useKg(): IUseKg;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import { ComputedRef } from 'vue';
|
3
2
|
import { Router } from 'vue-router';
|
4
3
|
import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
|
5
|
-
import { KG_APP } from '../const';
|
4
|
+
import { KG_APP, KgStoreDefinition } from '../const';
|
6
5
|
import { Menu } from '../project/src/router/types';
|
7
|
-
import { LocaleType } from '../project/types/config';
|
8
6
|
import { UserInfo } from '../project/types/store';
|
9
7
|
export declare type IKgOption = {
|
10
8
|
/**
|
@@ -186,98 +184,68 @@ export declare type P = {
|
|
186
184
|
(permissionCode?: string | Array<string> | null): boolean;
|
187
185
|
};
|
188
186
|
export interface UserState {
|
189
|
-
userInfo: UserInfo | null;
|
190
|
-
token?: string;
|
191
187
|
roleList: any[];
|
192
|
-
userWarehouses: SysUserWarehouseDTO[];
|
193
188
|
sessionTimeout?: boolean;
|
189
|
+
token?: string;
|
190
|
+
userInfo: UserInfo | null;
|
191
|
+
userWarehouses: SysUserWarehouseDTO[];
|
194
192
|
}
|
195
193
|
interface AuthItem {
|
196
194
|
/** 权限编码. */
|
197
195
|
action: string;
|
198
|
-
/** 权限策略. 1:显示, 2:禁用. */
|
199
|
-
type: string | number;
|
200
|
-
/** 权限状态. 0:无效, 1:有效. */
|
201
|
-
status: string | number;
|
202
196
|
/** 权限名称. */
|
203
197
|
describe?: string;
|
198
|
+
/** 权限状态. 0:无效, 1:有效. */
|
199
|
+
status: string | number;
|
200
|
+
/** 权限策略. 1:显示, 2:禁用. */
|
201
|
+
type: string | number;
|
204
202
|
}
|
205
203
|
export interface PermissionState {
|
206
|
-
/** 当前登录用户所拥有的权限编码列表. */
|
207
|
-
permCodeList: string[] | number[];
|
208
|
-
/** 菜单列表. */
|
209
|
-
backMenuList: Menu[];
|
210
|
-
/** 当前登录用户所拥有的权限配置. */
|
211
|
-
authList: AuthItem[];
|
212
204
|
/** 全部权限配置. */
|
213
205
|
allAuthList: AuthItem[];
|
214
|
-
|
215
|
-
|
216
|
-
/**
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
/**
|
221
|
-
* <p>系统描述.</p>
|
222
|
-
* <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
|
223
|
-
*/
|
224
|
-
descriptionMap: Map<string, Map<string, DescriptionDTO>>;
|
225
|
-
i18n: any;
|
226
|
-
/**
|
227
|
-
* <p>某个系统描述是否正在查询.</p>
|
228
|
-
* <p>其中的 key 表示 codeName.</p>
|
229
|
-
*/
|
230
|
-
isDescriptionsRequestingMap: Map<string, boolean>;
|
231
|
-
/** 语言. */
|
232
|
-
locale: ComputedRef<LocaleType> | null;
|
233
|
-
/** 配置参数. */
|
234
|
-
option: IKgOption;
|
235
|
-
/** 检查权限的方法. */
|
236
|
-
pFunction: P | null;
|
237
|
-
router: Router | null;
|
238
|
-
/** 翻译的方法. */
|
239
|
-
tFunction: T | null;
|
240
|
-
/** 权限数据. */
|
241
|
-
usePermissionStore: StoreDefinition | null;
|
242
|
-
/** 用户数据. */
|
243
|
-
useUserStore: StoreDefinition | null;
|
206
|
+
/** 当前登录用户所拥有的权限配置. */
|
207
|
+
authList: AuthItem[];
|
208
|
+
/** 菜单列表. */
|
209
|
+
backMenuList: Menu[];
|
210
|
+
/** 当前登录用户所拥有的权限编码列表. */
|
211
|
+
permCodeList: string[] | number[];
|
244
212
|
}
|
245
213
|
export interface IUseKgStoreGetters {
|
214
|
+
I18N: Record<string, any>;
|
246
215
|
/**
|
247
216
|
* 根据 codeName 和 codeValue 获取当前语言下的某个描述.
|
248
217
|
*/
|
249
|
-
getDescription
|
218
|
+
getDescription: (param: {
|
250
219
|
codeName: string | null | undefined;
|
251
220
|
codeValue: string | null | undefined;
|
252
221
|
}) => DescriptionDTO | null;
|
253
222
|
/**
|
254
223
|
* 根据 codeName 获取当前语言下的它的所有描述.
|
255
224
|
*/
|
256
|
-
|
225
|
+
getDescriptionList: (param: {
|
257
226
|
codeName: string | null | undefined;
|
258
227
|
}) => Array<DescriptionDTO>;
|
259
|
-
|
260
|
-
getI18n(): any;
|
228
|
+
i18n: any;
|
261
229
|
/**
|
262
230
|
* 配置参数.
|
263
231
|
*/
|
264
|
-
|
232
|
+
option: IKgOption;
|
265
233
|
/**
|
266
234
|
* 后端接口地址前缀.
|
267
235
|
*/
|
268
|
-
|
269
|
-
|
236
|
+
publicPath: IKgOption;
|
237
|
+
router: Router | null;
|
270
238
|
/**
|
271
239
|
* 菜单数据.
|
272
240
|
*/
|
273
|
-
|
241
|
+
usePermissionStore: StoreDefinition<string, PermissionState, {
|
274
242
|
getPermCodeList(): string[] | number[];
|
275
243
|
getBackMenuList(): Menu[];
|
276
244
|
}> | null;
|
277
245
|
/**
|
278
246
|
* 权限数据.
|
279
247
|
*/
|
280
|
-
|
248
|
+
useUserStore: StoreDefinition<string, UserState, {
|
281
249
|
getToken(): string;
|
282
250
|
getRoleList(): any[];
|
283
251
|
getUserWarehouses(): SysUserWarehouseDTO[];
|
@@ -286,7 +254,9 @@ export interface IUseKgStoreGetters {
|
|
286
254
|
}, {}> | null;
|
287
255
|
}
|
288
256
|
export interface IUseKgStoreActions {
|
289
|
-
/**
|
257
|
+
/**
|
258
|
+
* 检查权限.
|
259
|
+
*/
|
290
260
|
p: P;
|
291
261
|
/**
|
292
262
|
* 请求某组描述数据.
|
@@ -304,7 +274,7 @@ export interface IUseKgStoreActions {
|
|
304
274
|
* @param param.codeName 描述组名.
|
305
275
|
* @param param.descriptions 描述数据.
|
306
276
|
*/
|
307
|
-
|
277
|
+
setDescriptionList(param: {
|
308
278
|
codeName: string | null | undefined;
|
309
279
|
descriptions: Array<DescriptionDTO>;
|
310
280
|
}): void;
|
@@ -316,10 +286,10 @@ export interface IUseKgStoreActions {
|
|
316
286
|
setT(i18n: any): void;
|
317
287
|
setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
|
318
288
|
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
319
|
-
/**
|
289
|
+
/**
|
290
|
+
* 翻译.
|
291
|
+
*/
|
320
292
|
t: T;
|
321
293
|
}
|
322
|
-
export declare
|
323
|
-
export declare type IKgStore = ReturnType<IUseKgStore>;
|
324
|
-
export declare const useKgStore: IUseKgStore;
|
294
|
+
export declare const useKgStore: KgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
|
325
295
|
export {};
|