@kengic/vue 0.19.2-beta.2 → 0.19.2-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +520 -482
- package/dist/src/components/KgButton/index.d.ts +2 -2
- package/dist/src/components/KgButton/{KgButton.hooks.d.ts → index.hooks.d.ts} +1 -1
- package/dist/src/components/KgSearch/index.store.d.ts +0 -5
- package/dist/src/components/KgVar/index.hooks.d.ts +16 -14
- package/dist/src/components/KgVar/index.store.d.ts +5 -5
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +0 -3
- package/dist/src/components/KgWarehouse/index.store.d.ts +0 -3
- package/dist/src/consts/index.vm.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/src/components/KgButton/{KgButton.store.d.ts → index.store.d.ts} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
|
2
|
-
import { IKgButtonClickCb, IKgButtonDeleteOkCb, IKgButtonImportOkCb, IKgButtonOtherOkCb, IKgButtonStore, IKgButtonSubmitCancelCb, IKgButtonSubmitSaveCb, IKgButtonUpdateBeforeClickCb } from './
|
2
|
+
import { IKgButtonClickCb, IKgButtonDeleteOkCb, IKgButtonImportOkCb, IKgButtonOtherOkCb, IKgButtonStore, IKgButtonSubmitCancelCb, IKgButtonSubmitSaveCb, IKgButtonUpdateBeforeClickCb } from './index.store';
|
3
3
|
export declare type IUseKgButton = {
|
4
4
|
formID: string;
|
5
5
|
/** 状态数据. */
|
@@ -38,17 +38,12 @@ export interface IKgSearchState {
|
|
38
38
|
resetFnMap: Map<string, IKgSearchResetFn>;
|
39
39
|
}
|
40
40
|
export declare type IKgSearchStoreDefinition = StoreDefinition<'KgSearch', IKgSearchState, {
|
41
|
-
/** 是否就绪. */
|
42
41
|
getIsReady(): (formID: string | null | undefined) => boolean;
|
43
42
|
getModel(): (formID: string | null | undefined) => Record<string, any> | null;
|
44
43
|
getOperatorModel(): (formID: string | null | undefined) => Record<string, string> | null;
|
45
44
|
getSearchFn(): (formID: string | null | undefined) => IKgSearchSearchFn | null;
|
46
45
|
getResetFn(): (formID: string | null | undefined) => IKgSearchResetFn | null;
|
47
46
|
}, {
|
48
|
-
/**
|
49
|
-
* 清理数据.
|
50
|
-
* @param formID 页面标识.
|
51
|
-
*/
|
52
47
|
dispose(formID: string | null | undefined): void;
|
53
48
|
addEventListener(formID: string, event: IKgSearchEvent, cb: IKgSearchCb): void;
|
54
49
|
removeEventListener(formID: string, event: IKgSearchEvent, cb?: IKgSearchCb): void;
|
@@ -22,25 +22,26 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
22
22
|
getTopFormIDs(): string[];
|
23
23
|
getFormLevel(): (frm_id: string | null | undefined) => number;
|
24
24
|
t(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => string;
|
25
|
-
isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
|
26
|
-
|
25
|
+
isRetrieving(): (frm_id: string | null | undefined) => boolean | null; /**
|
26
|
+
* 界面标识.
|
27
|
+
*/
|
28
|
+
isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null; /** 状态数据. */
|
27
29
|
isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
|
28
|
-
isSearched(): (frm_id: string | null | undefined) => boolean;
|
29
|
-
isCreating(): (frm_id: string | null | undefined) => boolean | null;
|
30
|
+
isSearched(): (frm_id: string | null | undefined) => boolean; /** 正在查询 VarGridMaster. */
|
31
|
+
isCreating(): (frm_id: string | null | undefined) => boolean | null; /** 变量配置是否查询完成. */
|
30
32
|
isUpdating(): (frm_id: string | null | undefined) => boolean | null;
|
31
33
|
isCopying(): (frm_id: string | null | undefined) => boolean | null;
|
32
|
-
isDeleting(): (frm_id: string | null | undefined) => boolean | null;
|
34
|
+
isDeleting(): (frm_id: string | null | undefined) => boolean | null; /** 正在更新:正在调用接口. */
|
33
35
|
isCreatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
34
36
|
isUpdatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
35
37
|
isCopyingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
36
|
-
/** 其他按钮:正在调用接口. */
|
37
38
|
isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
38
39
|
isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
39
40
|
getVarCatalogs(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog[] | null;
|
40
41
|
getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog | null;
|
41
42
|
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableLookup | null;
|
42
|
-
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariablePossibility | null;
|
43
|
-
getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null;
|
43
|
+
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariablePossibility | null; /** 当前的 VarGridMaster. */
|
44
|
+
getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null;
|
44
45
|
getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableInput | null;
|
45
46
|
getVarButtons(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton[] | null;
|
46
47
|
getVarSubmitConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarSubmitConfig | null;
|
@@ -48,16 +49,17 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
48
49
|
getVarSubmitFields(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
49
50
|
getVarSubmitFieldsForCreate(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
50
51
|
getVarSubmitFieldsForCreateKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
51
|
-
getVarSubmitFieldsForCreateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
52
|
+
getVarSubmitFieldsForCreateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null; /**
|
53
|
+
* 修改 VarSubmitField 的部分属性.
|
54
|
+
* @param variableName 变量名称
|
55
|
+
* @param properties 要修改的部分属性.
|
56
|
+
* @param isTriggerEvent 是否触发变更事件.
|
57
|
+
*/
|
52
58
|
getVarSubmitFieldsForCreateKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
53
59
|
getVarSubmitFieldsForCreateNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
54
60
|
getVarSubmitFieldsForUpdate(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
55
61
|
getVarSubmitFieldsForUpdateKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
56
|
-
getVarSubmitFieldsForUpdateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
57
|
-
* 事件: 变量配置查询完成.
|
58
|
-
* @param cb 回调函数.
|
59
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
60
|
-
*/
|
62
|
+
getVarSubmitFieldsForUpdateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
61
63
|
getVarSubmitFieldsForUpdateKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
62
64
|
getVarSubmitFieldsForUpdateNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
63
65
|
getVarSubmitFieldsForCopy(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
@@ -102,7 +102,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
102
102
|
isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
103
103
|
getVarCatalogs(): (frm_id: string | null | undefined) => Array<VarVariableCatalog> | null;
|
104
104
|
/**
|
105
|
-
*
|
105
|
+
* 和 var_nam 获取 VarVariableCatalog.
|
106
106
|
*/
|
107
107
|
getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableCatalog | null;
|
108
108
|
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableLookup | null;
|
@@ -165,15 +165,15 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
165
165
|
getVarProfileConfig(): (frm_id: string | null | undefined) => VarProfileConfig | null;
|
166
166
|
getVarProfileMasters(): (frm_id: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
167
167
|
/**
|
168
|
-
*
|
168
|
+
* 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
169
169
|
*/
|
170
170
|
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
|
171
171
|
/**
|
172
|
-
*
|
172
|
+
* 获取 VarProfileDetail 列表.
|
173
173
|
*/
|
174
174
|
getVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
175
175
|
/**
|
176
|
-
*
|
176
|
+
* 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
|
177
177
|
*/
|
178
178
|
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
179
179
|
/** 获取当前 VarProfileMaster 的 ID. */
|
@@ -189,7 +189,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
189
189
|
getCurrentVarGridMaster(): (frm_id: string | null | undefined) => VarGridMasterDTO | null;
|
190
190
|
getCurrentVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
191
191
|
/**
|
192
|
-
*
|
192
|
+
* 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
|
193
193
|
*/
|
194
194
|
getSystemVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
195
195
|
getCurrentVisibleVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
@@ -44,7 +44,7 @@ export interface IKgSubmitConfigProps {
|
|
44
44
|
'footer.ok-button.text-var-name.deleting'?: string;
|
45
45
|
}
|
46
46
|
/**
|
47
|
-
*
|
47
|
+
* <p>表单控件的参数.</p>
|
48
48
|
* <p>对应于 {@link VarVariableConfig.ctrl_prop} 字段, 根据表单控件的类型, 设置额外的参数.</p>
|
49
49
|
* @see VarVariableConfig.ctrl_prop
|
50
50
|
* @see KG_FORM_ITEM_TYPE
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.19.2-beta.
|
3
|
+
"version": "0.19.2-beta.3",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
File without changes
|