@kengic/vue 0.27.1-beta.0 → 0.27.1-beta.10
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/index.css +1 -1
- package/dist/kengic-vue.js +13854 -13686
- package/dist/project/build/generate/icon/index.ts +2 -5
- package/dist/project/build/script/buildConf.ts +1 -1
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/src/component/KgAppSelect/{index.hooks.d.ts → KgAppSelect.hooks.d.ts} +4 -3
- package/dist/src/component/KgAppSelect/{index.store.d.ts → KgAppSelect.store.d.ts} +3 -2
- package/dist/src/component/KgAppSelect/index.d.ts +2 -2
- package/dist/src/component/KgButton/{index.hooks.d.ts → KgButton.hooks.d.ts} +2 -6
- package/dist/src/component/KgButton/{index.store.d.ts → KgButton.store.d.ts} +1 -2
- package/dist/src/component/KgButton/index.d.ts +2 -2
- package/dist/src/component/KgCanvas/{index.hooks.d.ts → KgCanvas.hooks.d.ts} +2 -2
- package/dist/src/component/KgCanvas/index.d.ts +1 -1
- package/dist/src/component/KgForm/{index.hooks.d.ts → KgForm.hooks.d.ts} +2 -2
- package/dist/src/component/KgForm/{index.store.d.ts → KgForm.store.d.ts} +1 -1
- package/dist/src/component/KgForm/index.d.ts +2 -2
- 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 +7 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +7 -9
- 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 +11 -7
- 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.RadioGroup.d.ts +5 -9
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +2 -2
- 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/KgLayoutHeader/index.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +11 -11
- package/dist/src/component/KgSearch/{index.hooks.d.ts → KgSearch.hooks.d.ts} +2 -2
- package/dist/src/component/KgSearch/{index.store.d.ts → KgSearch.store.d.ts} +1 -1
- package/dist/src/component/KgSearch/index.d.ts +2 -2
- package/dist/src/component/KgSubmit/{index.event.d.ts → KgSubmit.event.d.ts} +10 -10
- package/dist/src/component/KgSubmit/{index.hooks.d.ts → KgSubmit.hooks.d.ts} +9 -9
- package/dist/src/component/KgSubmit/{index.store.d.ts → KgSubmit.store.d.ts} +16 -16
- package/dist/src/component/KgSubmit/index.d.ts +3 -3
- package/dist/src/component/KgTable/{index.event.d.ts → KgTable.event.d.ts} +1 -1
- package/dist/src/component/KgTable/{index.hooks.d.ts → KgTable.hooks.d.ts} +12 -31
- package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
- package/dist/src/component/KgTable/{index.store.d.ts → KgTable.store.d.ts} +2 -28
- package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +1 -1
- package/dist/src/component/KgTable/index.d.ts +3 -3
- package/dist/src/component/KgVar/KgVar.d.ts +2 -2
- package/dist/src/component/KgVar/{index.hooks.d.ts → KgVar.hooks.d.ts} +60 -10
- package/dist/src/component/KgVar/{index.store.d.ts → KgVar.store.d.ts} +44 -3
- package/dist/src/component/KgVar/{index.vm.d.ts → KgVar.vm.d.ts} +3 -1
- package/dist/src/component/KgVar/KgVarFactory.d.ts +8 -8
- package/dist/src/component/KgVar/index.d.ts +3 -3
- package/dist/src/component/KgVarConfig/{index.hooks.d.ts → KgVarConfig.hooks.d.ts} +1 -10
- package/dist/src/component/KgVarConfig/index.d.ts +2 -2
- package/dist/src/component/KgWarehouse/{index.hooks.d.ts → KgWarehouse.hooks.d.ts} +1 -1
- package/dist/src/component/KgWarehouse/index.d.ts +3 -3
- package/dist/src/config/index.store.d.ts +2 -1
- package/dist/src/const/index.vm.d.ts +81 -12
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +2 -2
- package/dist/src/project/src/api/index.d.ts +3 -0
- package/dist/src/project/src/api/sys/model/menuModel.d.ts +15 -0
- package/dist/src/project/src/api/sys/model/uploadModel.d.ts +5 -0
- package/dist/src/project/src/api/sys/model/userModel.d.ts +46 -0
- package/dist/src/project/src/components/Dropdown/index.d.ts +1 -0
- package/dist/src/project/src/components/Dropdown/src/typing.d.ts +9 -0
- package/dist/src/project/src/components/index.d.ts +1 -0
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +19 -0
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +8 -0
- package/dist/src/project/src/enums/appEnum.d.ts +40 -0
- package/dist/src/project/src/enums/breakpointEnum.d.ts +18 -0
- package/dist/src/project/src/enums/cacheEnum.d.ts +18 -0
- package/dist/src/project/src/enums/exceptionEnum.d.ts +17 -0
- package/dist/src/project/src/enums/httpEnum.d.ts +38 -0
- package/dist/src/project/src/enums/index.d.ts +13 -0
- package/dist/src/project/src/enums/jeecgEnum.d.ts +16 -0
- package/dist/src/project/src/enums/menuEnum.d.ts +35 -0
- package/dist/src/project/src/enums/pageEnum.d.ts +14 -0
- package/dist/src/project/src/enums/roleEnum.d.ts +4 -0
- package/dist/src/project/src/enums/sizeEnum.d.ts +18 -0
- package/dist/src/project/src/hooks/index.d.ts +1 -0
- package/dist/src/project/src/hooks/web/useI18n.d.ts +13 -0
- package/dist/src/project/src/index.d.ts +14 -0
- package/dist/src/project/src/locales/helper.d.ts +5 -0
- package/dist/src/project/src/locales/index.d.ts +3 -0
- package/dist/src/project/src/locales/setupI18n.d.ts +4 -0
- package/dist/src/project/src/locales/useLocale.d.ts +10 -0
- package/dist/src/project/src/router/types.d.ts +42 -0
- package/dist/src/project/src/settings/componentSetting.d.ts +44 -0
- package/dist/src/project/src/settings/designSetting.d.ts +6 -0
- package/dist/src/project/src/settings/encryptionSetting.d.ts +6 -0
- package/dist/src/project/src/settings/index.d.ts +3 -0
- package/dist/src/project/src/store/index.d.ts +1 -0
- package/dist/src/project/src/store/modules/index.d.ts +1 -0
- package/dist/src/project/src/store/modules/locale.d.ts +38 -0
- package/dist/src/project/src/utils/cache/index.d.ts +7 -0
- package/dist/src/project/src/utils/cache/memory.d.ts +22 -0
- package/dist/src/project/src/utils/cache/persistent.d.ts +33 -0
- package/dist/src/project/src/utils/cache/storageCache.d.ts +8 -0
- package/dist/src/project/src/utils/cipher.d.ts +19 -0
- package/dist/src/project/src/utils/env.d.ts +34 -0
- package/dist/src/util/kg-route.util.d.ts +2 -1
- package/dist/src/util/kg.util.d.ts +9 -16
- package/package.json +4 -4
- package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +0 -3
- package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +0 -3
- package/script/bump-to.ts +0 -38
- package/script/bump.ts +0 -35
- package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +0 -3
- package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +0 -3
- package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +0 -3
- package/script/copy-to.ts +0 -23
- package/script/publish.ts +0 -30
- /package/dist/{close-outlined-DMcSQWxQ.0f7b1ee1.mjs → close-outlined-DMcSQWxQ.adfa0cf3.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.32d9fc79.mjs → exclamation-circle-outlined-DZrXCnvM.20d450b7.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.4b203dc4.mjs → fullscreen-exit-outlined-X1iYkFc4.bceef6fa.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.a38a27ed.mjs → fullscreen-outlined-DDBrsRcy.26d588f0.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.9851f549.mjs → search-outlined-Od1M_oxf.761cc44e.mjs} +0 -0
- /package/dist/src/component/KgAppSelect/{index.event.d.ts → KgAppSelect.event.d.ts} +0 -0
- /package/dist/src/component/KgButton/{index.event.d.ts → KgButton.event.d.ts} +0 -0
- /package/dist/src/component/KgCanvas/{index.event.d.ts → KgCanvas.event.d.ts} +0 -0
- /package/dist/src/component/KgCanvas/{index.store.d.ts → KgCanvas.store.d.ts} +0 -0
- /package/dist/src/component/KgCanvas/{index.vm.d.ts → KgCanvas.vm.d.ts} +0 -0
- /package/dist/src/component/KgForm/{index.event.d.ts → KgForm.event.d.ts} +0 -0
- /package/dist/src/component/KgForm/{index.vm.d.ts → KgForm.vm.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{index.vm.d.ts → KgForm.Item.vm.d.ts} +0 -0
- /package/dist/src/component/KgLayoutHeader/{index.hooks.d.ts → KgLayoutHeader.hooks.d.ts} +0 -0
- /package/dist/src/component/KgModal/{index.vm.d.ts → KgModal.vm.d.ts} +0 -0
- /package/dist/src/component/KgSearch/{index.event.d.ts → KgSearch.event.d.ts} +0 -0
- /package/dist/src/component/KgSearch/{index.vm.d.ts → KgSearch.vm.d.ts} +0 -0
- /package/dist/src/component/KgSubmit/{index.vm.d.ts → KgSubmit.vm.d.ts} +0 -0
- /package/dist/src/component/KgTable/{index.vm.d.ts → KgTable.vm.d.ts} +0 -0
- /package/dist/src/component/KgVar/{index.event.d.ts → KgVar.event.d.ts} +0 -0
- /package/dist/src/component/KgVar/{index.store.service.d.ts → KgVar.store.service.d.ts} +0 -0
- /package/dist/src/component/KgVarConfig/{index.store.d.ts → KgVarConfig.store.d.ts} +0 -0
- /package/dist/src/component/KgVarConfig/{index.vm.d.ts → KgVarConfig.vm.d.ts} +0 -0
- /package/dist/src/component/KgWarehouse/{index.guard.d.ts → KgWarehouse.guard.d.ts} +0 -0
- /package/dist/src/component/KgWarehouse/{index.store.d.ts → KgWarehouse.store.d.ts} +0 -0
- /package/dist/src/page/KgPageDda/{index.vm.d.ts → KgPageDda.vm.d.ts} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.ebc46650.mjs → three-dots-loading-bIlrTJYR.5f916930.mjs} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
-
import { VarConfigControl, VarConfigDescription, VarConfigPossibility } from '../../api/WMS/models';
|
3
|
+
import { VarButton, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarGridConfig, VarGridDetail, VarGridMasterDTO } 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';
|
@@ -8,9 +8,9 @@ import { type IUseKgSearch } from '../KgSearch';
|
|
8
8
|
import { IUseKgSubmit } from '../KgSubmit';
|
9
9
|
import { IUseKgTable } from '../KgTable';
|
10
10
|
import { IUseKgVarConfig } from '../KgVarConfig';
|
11
|
-
import { IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './
|
12
|
-
import { IKgVarStore } from './
|
13
|
-
import { IKgProps, IKgSlots } from './
|
11
|
+
import { IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
|
12
|
+
import { IKgVarStore } from './KgVar.store';
|
13
|
+
import { IKgProps, IKgSlots } from './KgVar.vm';
|
14
14
|
export declare type IUseKgVar = {
|
15
15
|
/**
|
16
16
|
* <p>添加一个「变量配置:表单控件」.</p>
|
@@ -50,7 +50,7 @@ export declare type IUseKgVar = {
|
|
50
50
|
*
|
51
51
|
* <ul>
|
52
52
|
* <li>
|
53
|
-
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName}
|
53
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 过滤.</p>
|
54
54
|
* </li>
|
55
55
|
* <li>
|
56
56
|
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
@@ -72,10 +72,24 @@ export declare type IUseKgVar = {
|
|
72
72
|
buttonVarName?: string | null;
|
73
73
|
varName: string | null | undefined;
|
74
74
|
}): ReturnType<IKgVarStore['getVarConfigControl']>;
|
75
|
-
/**
|
75
|
+
/**
|
76
|
+
* 获取「变量配置:列表数据」.
|
77
|
+
*
|
78
|
+
* @param param
|
79
|
+
* @param param.varName 变量名称.
|
80
|
+
*/
|
76
81
|
getVarConfigPossibility(param: {
|
77
82
|
varName: string;
|
78
83
|
}): VarConfigPossibility | null;
|
84
|
+
/**
|
85
|
+
* 获取某个「表格视图明细」.
|
86
|
+
*
|
87
|
+
* @param param
|
88
|
+
* @param param.varName 变量名称.
|
89
|
+
*/
|
90
|
+
getVarGridDetail(param: {
|
91
|
+
varName: string | null | undefined;
|
92
|
+
}): VarGridDetail | null;
|
79
93
|
/**
|
80
94
|
* 是否正在复制.
|
81
95
|
*/
|
@@ -147,7 +161,37 @@ export declare type IUseKgVar = {
|
|
147
161
|
* 父亲界面.
|
148
162
|
*/
|
149
163
|
parent: ComputedRef<ReturnType<IKgVarStore['getParent']>>;
|
150
|
-
|
164
|
+
/**
|
165
|
+
* 修改「按钮」的部分属性.
|
166
|
+
*
|
167
|
+
* @param param
|
168
|
+
* @param param.varName 变量名称.
|
169
|
+
* @param param.properties 要修改的部分属性.
|
170
|
+
*/
|
171
|
+
patchVarButton(param: {
|
172
|
+
properties: VarButton;
|
173
|
+
varName: string | null | undefined;
|
174
|
+
}): Promise<void>;
|
175
|
+
/**
|
176
|
+
* 修改「表格配置」的部分属性.
|
177
|
+
*
|
178
|
+
* @param param.properties 要修改的部分属性.
|
179
|
+
*/
|
180
|
+
patchVarGridConfig(param: {
|
181
|
+
properties: VarGridConfig;
|
182
|
+
}): Promise<void>;
|
183
|
+
/**
|
184
|
+
* 修改「表格视图明细」的部分属性.
|
185
|
+
*
|
186
|
+
* @param param
|
187
|
+
* @param param.varName 变量名称.
|
188
|
+
* @param param.properties 要修改的部分属性.
|
189
|
+
*/
|
190
|
+
patchVarGridDetail(param: {
|
191
|
+
properties: VarGridDetail;
|
192
|
+
varName: string | null | undefined;
|
193
|
+
}): Promise<void>;
|
194
|
+
props: ComputedRef<IKgProps | null>;
|
151
195
|
/**
|
152
196
|
* 查询所有变量配置.
|
153
197
|
*
|
@@ -183,13 +227,19 @@ export declare type IUseKgVar = {
|
|
183
227
|
varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
|
184
228
|
varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
|
185
229
|
varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
|
230
|
+
/**
|
231
|
+
* 所有按钮.
|
232
|
+
*/
|
233
|
+
varButtons: ComputedRef<Array<VarButton>>;
|
186
234
|
varChildDetails: ComputedRef<ReturnType<IKgVarStore['getVarChildDetails']>>;
|
187
235
|
varDda: ComputedRef<ReturnType<IKgVarStore['getVarDda']>>;
|
188
236
|
varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
|
189
|
-
/**
|
190
|
-
|
237
|
+
/**
|
238
|
+
* 所有的「表格视图」.
|
239
|
+
*/
|
240
|
+
varGridMasters: ComputedRef<Array<VarGridMasterDTO> | null>;
|
191
241
|
varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
|
192
|
-
/** 所有的 VarProfileMaster
|
242
|
+
/** 所有的 VarProfileMaster. */
|
193
243
|
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
194
244
|
varVariables: ComputedRef<ReturnType<IKgVarStore['getVarVariables']>>;
|
195
245
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../api/WMS/models';
|
3
3
|
import { KG__VAR_BUTTON__TYPE } from '../../const';
|
4
|
-
import { IUseKgVar } from './
|
5
|
-
import { IKgProps, IKgSlots } from './
|
4
|
+
import { IUseKgVar } from './KgVar.hooks';
|
5
|
+
import { IKgProps, IKgSlots } from './KgVar.vm';
|
6
6
|
export interface IUseKgVarStoreState {
|
7
7
|
/** 正在复制: 正在调用接口. */
|
8
8
|
isCopyingRequestingMap: Map<string, boolean>;
|
@@ -93,6 +93,7 @@ export interface IUseKgVarStoreGetters {
|
|
93
93
|
getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
|
94
94
|
getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
|
95
95
|
getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
|
96
|
+
getVarButtons(): (formID: string | null | undefined) => Array<VarButton>;
|
96
97
|
getVarChildDetails(): (formID: string | null | undefined) => Array<VarChildDetail>;
|
97
98
|
getVarConfigControl(): (formID: string | null | undefined, param: {
|
98
99
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
@@ -101,7 +102,9 @@ export interface IUseKgVarStoreGetters {
|
|
101
102
|
}) => VarConfigControl | null;
|
102
103
|
getVarConfigInput(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
|
103
104
|
getVarConfigLookup(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
|
104
|
-
getVarConfigPossibility(): (formID: string | null | undefined,
|
105
|
+
getVarConfigPossibility(): (formID: string | null | undefined, param: {
|
106
|
+
varName: string | null | undefined;
|
107
|
+
}) => VarConfigPossibility | null;
|
105
108
|
getVarConfigTip(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
|
106
109
|
getVarDda(): (formID: string | null | undefined) => VarDda | null;
|
107
110
|
/**
|
@@ -134,6 +137,9 @@ export interface IUseKgVarStoreGetters {
|
|
134
137
|
isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
|
135
138
|
isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
|
136
139
|
isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
140
|
+
getVarGridDetail(): (formID: string | null | undefined, param: {
|
141
|
+
varName: string | null | undefined;
|
142
|
+
}) => VarGridDetail | null;
|
137
143
|
/**
|
138
144
|
* 翻译变量.
|
139
145
|
*/
|
@@ -166,6 +172,40 @@ export interface IUseKgVarStoreActions {
|
|
166
172
|
formID: string;
|
167
173
|
level: number;
|
168
174
|
}): Promise<void>;
|
175
|
+
/**
|
176
|
+
* 修改 VarButton 的部分属性.
|
177
|
+
*
|
178
|
+
* @param formID 界面标识.
|
179
|
+
* @param param
|
180
|
+
* @param param.varName 变量名称.
|
181
|
+
* @param param.properties 要修改的部分属性.
|
182
|
+
*/
|
183
|
+
patchVarButton(formID: string | null | undefined, param: {
|
184
|
+
properties: VarButton;
|
185
|
+
varName: string | null | undefined;
|
186
|
+
}): Promise<void>;
|
187
|
+
/**
|
188
|
+
* 修改「表格配置」的部分属性.
|
189
|
+
*
|
190
|
+
* @param formID 界面标识.
|
191
|
+
* @param param
|
192
|
+
* @param param.properties 要修改的部分属性.
|
193
|
+
*/
|
194
|
+
patchVarGridConfig(formID: string | null | undefined, param: {
|
195
|
+
properties: VarGridConfig;
|
196
|
+
}): Promise<void>;
|
197
|
+
/**
|
198
|
+
* 修改「表格视图明细」的部分属性.
|
199
|
+
*
|
200
|
+
* @param formID 界面标识.
|
201
|
+
* @param param
|
202
|
+
* @param param.varName 变量名称.
|
203
|
+
* @param param.properties 要修改的部分属性.
|
204
|
+
*/
|
205
|
+
patchVarGridDetail(formID: string | null | undefined, param: {
|
206
|
+
properties: VarGridDetail;
|
207
|
+
varName: string | null | undefined;
|
208
|
+
}): Promise<void>;
|
169
209
|
/**
|
170
210
|
* 修改 VarConfigPossibility 的接口参数 cmd_prm 的部分属性.
|
171
211
|
* @param formID 界面标识.
|
@@ -175,6 +215,7 @@ export interface IUseKgVarStoreActions {
|
|
175
215
|
patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
|
176
216
|
/**
|
177
217
|
* 修改 VarProfileDetail 的部分属性.
|
218
|
+
*
|
178
219
|
* @param formID 界面标识.
|
179
220
|
* @param var_nam 变量名称.
|
180
221
|
* @param properties 要修改的部分属性.
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { ComputedRef, InjectionKey } from 'vue';
|
2
2
|
import { IKgButtonProps } from '../KgButton';
|
3
|
-
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/
|
3
|
+
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.vm';
|
4
4
|
import { IKgSearchProps } from '../KgSearch';
|
5
5
|
import { KgSubmitProps } from '../KgSubmit';
|
6
6
|
import { IKgTableSlotParams } from '../KgTable';
|
7
7
|
import { IKgTableProps } from '../KgTable/KgTable';
|
8
|
+
import { KgVarProps } from './KgVar';
|
8
9
|
export declare type IKgSlots = {
|
9
10
|
/** 按钮. */
|
10
11
|
KgButton?: {
|
@@ -66,6 +67,7 @@ export declare type IKgProps = {
|
|
66
67
|
KgSearch?: IKgSearchProps;
|
67
68
|
KgSubmit?: KgSubmitProps;
|
68
69
|
KgTable?: IKgTableProps;
|
70
|
+
KgVar?: KgVarProps;
|
69
71
|
};
|
70
72
|
/** 注入 kgProps 参数. */
|
71
73
|
export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
@@ -10,8 +10,8 @@ export declare function KgVarFactory(param?: {
|
|
10
10
|
type: import("vue").PropType<number>;
|
11
11
|
default: number;
|
12
12
|
};
|
13
|
-
kgProps: import("vue").PropType<import("./
|
14
|
-
kgSlots: import("vue").PropType<import("./
|
13
|
+
kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
|
14
|
+
kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
|
15
15
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
kgBackgroundGray: {
|
17
17
|
type: import("vue").PropType<boolean>;
|
@@ -22,8 +22,8 @@ export declare function KgVarFactory(param?: {
|
|
22
22
|
type: import("vue").PropType<number>;
|
23
23
|
default: number;
|
24
24
|
};
|
25
|
-
kgProps: import("vue").PropType<import("./
|
26
|
-
kgSlots: import("vue").PropType<import("./
|
25
|
+
kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
|
26
|
+
kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
|
27
27
|
}>>, {
|
28
28
|
kgBackgroundGray: boolean;
|
29
29
|
kgLevel: number;
|
@@ -41,8 +41,8 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
41
41
|
type: import("vue").PropType<number>;
|
42
42
|
default: number;
|
43
43
|
};
|
44
|
-
kgProps: import("vue").PropType<import("./
|
45
|
-
kgSlots: import("vue").PropType<import("./
|
44
|
+
kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
|
45
|
+
kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
|
46
46
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
47
|
kgBackgroundGray: {
|
48
48
|
type: import("vue").PropType<boolean>;
|
@@ -53,8 +53,8 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
53
53
|
type: import("vue").PropType<number>;
|
54
54
|
default: number;
|
55
55
|
};
|
56
|
-
kgProps: import("vue").PropType<import("./
|
57
|
-
kgSlots: import("vue").PropType<import("./
|
56
|
+
kgProps: import("vue").PropType<import("./KgVar.vm").IKgProps>;
|
57
|
+
kgSlots: import("vue").PropType<import("./KgVar.vm").IKgSlots>;
|
58
58
|
}>>, {
|
59
59
|
kgBackgroundGray: boolean;
|
60
60
|
kgLevel: number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export { default as KgVar, type IKgVarProps, type KgVarProps } from './KgVar';
|
2
2
|
export * from './KgVarFactory';
|
3
|
-
export * from './
|
4
|
-
export * from './
|
5
|
-
export * from './
|
3
|
+
export * from './KgVar.hooks';
|
4
|
+
export * from './KgVar.store';
|
5
|
+
export * from './KgVar.vm';
|
@@ -1,14 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import { IKgVarConfigStore } from './index.store';
|
1
|
+
import { IKgVarConfigStore } from './KgVarConfig.store';
|
3
2
|
export interface IUseKgVarConfig {
|
4
|
-
/**
|
5
|
-
* 获取「变量配置:列表数据」.
|
6
|
-
*
|
7
|
-
* @param param.varName 变量名称.
|
8
|
-
*/
|
9
|
-
getVarConfigPossibility(param: {
|
10
|
-
varName: string;
|
11
|
-
}): VarConfigPossibility | null;
|
12
3
|
/**
|
13
4
|
* 打开变量配置弹窗, 并使用传入的宿主界面标识.
|
14
5
|
*
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { default as KgVarConfig } from './KgVarConfig';
|
2
|
-
export * from './
|
3
|
-
export * from './
|
2
|
+
export * from './KgVarConfig.hooks';
|
3
|
+
export * from './KgVarConfig.store';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { Pinia } from 'pinia';
|
3
3
|
import { ComputedRef } from 'vue';
|
4
|
-
import { IKgWarehouseOnMountedEventListener, IKgWarehouseStore } from './
|
4
|
+
import { IKgWarehouseOnMountedEventListener, IKgWarehouseStore } from './KgWarehouse.store';
|
5
5
|
export declare type IUseKgWarehouse = {
|
6
6
|
/**
|
7
7
|
* 监听事件: 组件加载完成.
|
@@ -1,4 +1,4 @@
|
|
1
1
|
export { default as KgWarehouse } from './KgWarehouse';
|
2
|
-
export * from './
|
3
|
-
export * from './
|
4
|
-
export * from './
|
2
|
+
export * from './KgWarehouse.guard';
|
3
|
+
export * from './KgWarehouse.hooks';
|
4
|
+
export * from './KgWarehouse.store';
|
@@ -2,7 +2,8 @@ import { StoreDefinition } from 'pinia';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
4
|
import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
|
5
|
-
import { KG_APP
|
5
|
+
import { KG_APP } from '../const';
|
6
|
+
import { Menu } from '../project/src/router/types';
|
6
7
|
import { LocaleType } from '../project/types/config';
|
7
8
|
import { UserInfo } from '../project/types/store';
|
8
9
|
export declare type IKgOption = {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
|
+
import { KgModalProps } from '../component';
|
2
3
|
/** 模块. */
|
3
4
|
export declare const enum KG_APP {
|
4
5
|
/** 数据管理. */
|
@@ -385,6 +386,82 @@ export declare const enum KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT {
|
|
385
386
|
*/
|
386
387
|
PX = "PX"
|
387
388
|
}
|
389
|
+
/**
|
390
|
+
* 动态参数.
|
391
|
+
*/
|
392
|
+
export declare const KG__DYNAMIC_PARAM: {
|
393
|
+
/**
|
394
|
+
* 空字符串.
|
395
|
+
*/
|
396
|
+
EMPTY_STRING: string;
|
397
|
+
/**
|
398
|
+
* 当前语言.
|
399
|
+
*/
|
400
|
+
LOCALE: string;
|
401
|
+
/**
|
402
|
+
* 当前时间.
|
403
|
+
*/
|
404
|
+
NOW: string;
|
405
|
+
/**
|
406
|
+
* 当前勾选行对应的属性.
|
407
|
+
*/
|
408
|
+
ROW: string;
|
409
|
+
/**
|
410
|
+
* 当前用户.
|
411
|
+
*/
|
412
|
+
USER: string;
|
413
|
+
/**
|
414
|
+
* 当前仓库编号.
|
415
|
+
*/
|
416
|
+
WAREHOUSE: string;
|
417
|
+
/**
|
418
|
+
* 当前工作区.
|
419
|
+
*/
|
420
|
+
WORK_AREA: string;
|
421
|
+
/**
|
422
|
+
* 当前工作站.
|
423
|
+
*/
|
424
|
+
WORK_STATION: string;
|
425
|
+
};
|
426
|
+
export declare const KG__DYNAMIC_PARAM_LIST: string[];
|
427
|
+
/**
|
428
|
+
* 动态参数, 在首尾添加了 # 字符.
|
429
|
+
*/
|
430
|
+
export declare const KG__DYNAMIC_PARAM_HASH: {
|
431
|
+
/**
|
432
|
+
* 空字符串.
|
433
|
+
*/
|
434
|
+
EMPTY_STRING: string;
|
435
|
+
/**
|
436
|
+
* 当前语言.
|
437
|
+
*/
|
438
|
+
LOCALE: string;
|
439
|
+
/**
|
440
|
+
* 当前时间.
|
441
|
+
*/
|
442
|
+
NOW: string;
|
443
|
+
/**
|
444
|
+
* 当前勾选行对应的属性.
|
445
|
+
*/
|
446
|
+
ROW: string;
|
447
|
+
/**
|
448
|
+
* 当前用户.
|
449
|
+
*/
|
450
|
+
USER: string;
|
451
|
+
/**
|
452
|
+
* 当前仓库编号.
|
453
|
+
*/
|
454
|
+
WAREHOUSE: string;
|
455
|
+
/**
|
456
|
+
* 当前工作区.
|
457
|
+
*/
|
458
|
+
WORK_AREA: string;
|
459
|
+
/**
|
460
|
+
* 当前工作站.
|
461
|
+
*/
|
462
|
+
WORK_STATION: string;
|
463
|
+
};
|
464
|
+
export declare const KG__DYNAMIC_PARAM_HASH_LIST: string[];
|
388
465
|
/**
|
389
466
|
* 栅格布局宽度.
|
390
467
|
*/
|
@@ -508,18 +585,6 @@ export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
|
|
508
585
|
export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
|
509
586
|
/** 模块菜单的临时ID:PDA. */
|
510
587
|
export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
511
|
-
/** 菜单. */
|
512
|
-
export interface Menu {
|
513
|
-
id: string;
|
514
|
-
app: string | null;
|
515
|
-
name: string;
|
516
|
-
title: string;
|
517
|
-
path?: string;
|
518
|
-
icon?: string;
|
519
|
-
hideMenu?: boolean;
|
520
|
-
children?: Menu[];
|
521
|
-
[key: string]: any;
|
522
|
-
}
|
523
588
|
/**
|
524
589
|
* 按钮确认弹窗的参数.
|
525
590
|
* <p>对应于 {@link VarButton#modal_props} 字段.</p>
|
@@ -579,6 +644,10 @@ export interface IKgVarConfigInputProperties {
|
|
579
644
|
* <p>额外的配置属性. 对应 {@link VarConfigLookup#props} 字段.</p>
|
580
645
|
*/
|
581
646
|
export interface IKgVarConfigLookupProperties {
|
647
|
+
/**
|
648
|
+
* 查找弹窗组件的参数.
|
649
|
+
*/
|
650
|
+
KgModal?: KgModalProps;
|
582
651
|
}
|
583
652
|
/**
|
584
653
|
* <p>额外的配置属性. 对应 {@link VarConfigPossibility#props} 字段.</p>
|
@@ -919,7 +919,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
919
919
|
formID: string;
|
920
920
|
frmNam: string;
|
921
921
|
}) => void;
|
922
|
-
}, "getVarButtons" | "
|
922
|
+
}, "getVarButtons" | "getIsLoading" | "getCreateVarDdaQuery" | "getFrmId" | "getResultSetMetadataColumns">>, Pick<{
|
923
923
|
createVarButton: (button: VarButton) => void;
|
924
924
|
updateVarConfigDescription: (param: {
|
925
925
|
varName: string | null | undefined;
|
@@ -1379,4 +1379,4 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
1379
1379
|
formID: string;
|
1380
1380
|
frmNam: string;
|
1381
1381
|
}) => void;
|
1382
|
-
}, "createVarButton" | "updateVarConfigDescription" | "deleteVarButton" | "getVarText" | "initCreateVarDdaQuery" | "patchSysPermission" | "
|
1382
|
+
}, "patchVarButton" | "createVarButton" | "updateVarConfigDescription" | "deleteVarButton" | "getVarText" | "initCreateVarDdaQuery" | "patchSysPermission" | "setFormID" | "setIsLoading" | "setResultSetMetadataColumns" | "setVarGridDetails" | "setVarProfileDetails" | "setVarSubmitDetails" | "updateVarDda">>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { RouteMeta } from 'vue-router';
|
2
|
+
export interface RouteItem {
|
3
|
+
path: string;
|
4
|
+
component: any;
|
5
|
+
meta: RouteMeta;
|
6
|
+
name?: string;
|
7
|
+
alias?: string | string[];
|
8
|
+
redirect?: string;
|
9
|
+
caseSensitive?: boolean;
|
10
|
+
children?: RouteItem[];
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @description: Get menu return value
|
14
|
+
*/
|
15
|
+
export declare type getMenuListResultModel = RouteItem[];
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* @description: Login interface parameters
|
3
|
+
*/
|
4
|
+
export interface LoginParams {
|
5
|
+
username: string;
|
6
|
+
password: string;
|
7
|
+
}
|
8
|
+
export interface ThirdLoginParams {
|
9
|
+
token: string;
|
10
|
+
thirdType: string;
|
11
|
+
}
|
12
|
+
export interface RoleInfo {
|
13
|
+
roleName: string;
|
14
|
+
value: string;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @description: Login interface return value
|
18
|
+
*/
|
19
|
+
export interface LoginResultModel {
|
20
|
+
userId: string | number;
|
21
|
+
token: string;
|
22
|
+
role: RoleInfo;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* @description: Get user information return value
|
26
|
+
*/
|
27
|
+
export interface GetUserInfoModel {
|
28
|
+
roles: RoleInfo[];
|
29
|
+
userId: string | number;
|
30
|
+
username: string;
|
31
|
+
realname: string;
|
32
|
+
avatar: string;
|
33
|
+
desc?: string;
|
34
|
+
userInfo?: any;
|
35
|
+
sysAllDictItems?: any;
|
36
|
+
userWarehouses?: any;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* @description: Get user information return value
|
40
|
+
*/
|
41
|
+
export interface GetResultModel {
|
42
|
+
code: number;
|
43
|
+
message: string;
|
44
|
+
result: object;
|
45
|
+
success: Boolean;
|
46
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './src/typing';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Dropdown';
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* 组件类型
|
3
|
+
*/
|
4
|
+
export declare enum CompTypeEnum {
|
5
|
+
Radio = "radio",
|
6
|
+
RadioButton = "radioButton",
|
7
|
+
Select = "select",
|
8
|
+
List = "list",
|
9
|
+
Switch = "switch",
|
10
|
+
SelTree = "sel_tree",
|
11
|
+
CatTree = "cat_tree",
|
12
|
+
SelSearch = "search",
|
13
|
+
SelUser = "sel_user",
|
14
|
+
Checkbox = "checkbox",
|
15
|
+
ListMulti = "list_multi",
|
16
|
+
Pca = "pca",
|
17
|
+
Popup = "popup",
|
18
|
+
SelDepart = "sel_depart"
|
19
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
export declare const SIDE_BAR_MINI_WIDTH = 48;
|
2
|
+
export declare const SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
|
3
|
+
export declare enum TabsThemeEnum {
|
4
|
+
SMOOTH = "smooth",
|
5
|
+
CARD = "card",
|
6
|
+
SIMPLE = "simple"
|
7
|
+
}
|
8
|
+
export declare enum ContentEnum {
|
9
|
+
FULL = "full",
|
10
|
+
FIXED = "fixed"
|
11
|
+
}
|
12
|
+
export declare enum ThemeEnum {
|
13
|
+
DARK = "dark",
|
14
|
+
LIGHT = "light"
|
15
|
+
}
|
16
|
+
export declare enum SettingButtonPositionEnum {
|
17
|
+
AUTO = "auto",
|
18
|
+
HEADER = "header",
|
19
|
+
FIXED = "fixed"
|
20
|
+
}
|
21
|
+
export declare enum SessionTimeoutProcessingEnum {
|
22
|
+
ROUTE_JUMP = 0,
|
23
|
+
PAGE_COVERAGE = 1
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* 权限模式
|
27
|
+
*/
|
28
|
+
export declare enum PermissionModeEnum {
|
29
|
+
ROLE = "ROLE",
|
30
|
+
BACK = "BACK",
|
31
|
+
ROUTE_MAPPING = "ROUTE_MAPPING"
|
32
|
+
}
|
33
|
+
export declare enum RouterTransitionEnum {
|
34
|
+
ZOOM_FADE = "zoom-fade",
|
35
|
+
ZOOM_OUT = "zoom-out",
|
36
|
+
FADE_SIDE = "fade-slide",
|
37
|
+
FADE = "fade",
|
38
|
+
FADE_BOTTOM = "fade-bottom",
|
39
|
+
FADE_SCALE = "fade-scale"
|
40
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare enum sizeEnum {
|
2
|
+
XS = "XS",
|
3
|
+
SM = "SM",
|
4
|
+
MD = "MD",
|
5
|
+
LG = "LG",
|
6
|
+
XL = "XL",
|
7
|
+
XXL = "XXL"
|
8
|
+
}
|
9
|
+
export declare enum screenEnum {
|
10
|
+
XS = 480,
|
11
|
+
SM = 576,
|
12
|
+
MD = 768,
|
13
|
+
LG = 992,
|
14
|
+
XL = 1200,
|
15
|
+
XXL = 1600
|
16
|
+
}
|
17
|
+
declare const screenMap: Map<sizeEnum, number>;
|
18
|
+
export { screenMap };
|