@kengic/vue 0.23.3 → 0.23.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +3263 -3345
  3. package/dist/src/components/KgAppSelect/index.hooks.d.ts +6 -6
  4. package/dist/src/components/KgAppSelect/index.store.d.ts +4 -4
  5. package/dist/src/components/KgButton/KgButton.Item.d.ts +3 -3
  6. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +2 -2
  7. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +3 -3
  8. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -3
  9. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
  10. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +3 -3
  11. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +3 -3
  12. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +3 -3
  13. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +2 -2
  14. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
  15. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -3
  16. package/dist/src/components/KgButton/index.hooks.d.ts +39 -35
  17. package/dist/src/components/KgButton/index.store.d.ts +13 -12
  18. package/dist/src/components/KgForm/index.hooks.d.ts +17 -17
  19. package/dist/src/components/KgForm/index.store.d.ts +4 -4
  20. package/dist/src/components/KgForm/index.vm.d.ts +2 -2
  21. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -0
  23. package/dist/src/components/KgForm.Item/index.vm.d.ts +1 -1
  24. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +4 -27
  25. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -1
  26. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +5 -22
  27. package/dist/src/components/KgSearch/components/{KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts → KgSearch.ConfigModal.VarProfileMaster.service.d.ts} +1 -1
  28. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -22
  29. package/dist/src/components/KgSearch/index.hooks.d.ts +9 -9
  30. package/dist/src/components/KgSearch/index.store.d.ts +4 -4
  31. package/dist/src/components/KgSearch/index.vm.d.ts +2 -1
  32. package/dist/src/components/KgSubmit/KgSubmit.d.ts +1 -30
  33. package/dist/src/components/KgSubmit/index.hooks.d.ts +31 -31
  34. package/dist/src/components/KgSubmit/index.store.d.ts +8 -8
  35. package/dist/src/components/KgTable/KgTable.service.d.ts +0 -1
  36. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +4 -21
  37. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +5 -18
  38. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +5 -22
  39. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts +2 -2
  40. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -15
  41. package/dist/src/components/KgTable/index.hooks.d.ts +28 -24
  42. package/dist/src/components/KgTable/index.store.d.ts +12 -6
  43. package/dist/src/components/KgVar/index.hooks.d.ts +6 -6
  44. package/dist/src/components/KgVar/index.store.d.ts +16 -17
  45. package/dist/src/components/KgVar/index.vm.d.ts +2 -2
  46. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +1 -1
  47. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +6 -12
  48. package/dist/src/components/{KgSubmit/components/KgSubmit.VarSubmitConfig.Button.d.ts → KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts} +1 -1
  49. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +5 -22
  50. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +4 -21
  51. package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -1
  52. package/dist/src/components/KgWarehouse/index.hooks.d.ts +3 -3
  53. package/dist/src/components/KgWarehouse/index.store.d.ts +4 -4
  54. package/dist/src/components/util.d.ts +5 -5
  55. package/dist/src/consts/i18n/en.d.ts +1 -1
  56. package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
  57. package/dist/src/consts/index.vm.d.ts +25 -2
  58. package/dist/src/consts/injection-keys.const.d.ts +4 -4
  59. package/package.json +1 -1
  60. package/dist/src/components/KgSubmit/components/KgSubmit.VarSubmitConfig.Modal.d.ts +0 -29
@@ -1,21 +1,8 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  export declare const FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig";
3
- export declare const getProps: () => {
4
- hostFormID: {
5
- type: PropType<string>;
6
- required: boolean;
7
- };
8
- };
3
+ export declare const getProps: () => any;
9
4
  export declare type IKgTableSettingConfigModalVarGridConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
10
- declare const _default: import("vue").DefineComponent<{
11
- hostFormID: {
12
- type: PropType<string>;
13
- required: boolean;
14
- };
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
16
- hostFormID: {
17
- type: PropType<string>;
18
- required: boolean;
19
- };
20
- }>>, {}>;
5
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
6
+ [x: string]: any;
7
+ }>;
21
8
  export default _default;
@@ -1,24 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import './KgTable.Setting.ConfigModal.VarGridMaster.less';
3
- export declare const getProps: () => {
4
- /** 主页面的页面标识. */
5
- hostFormID: {
6
- type: PropType<string>;
7
- required: boolean;
8
- };
9
- };
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
10
3
  export declare type IKgTableSettingConfigModalVarGridMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
11
- declare const _default: import("vue").DefineComponent<{
12
- /** 主页面的页面标识. */
13
- hostFormID: {
14
- type: PropType<string>;
15
- required: boolean;
16
- };
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
- /** 主页面的页面标识. */
19
- hostFormID: {
20
- type: PropType<string>;
21
- required: boolean;
22
- };
23
- }>>, {}>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
24
7
  export default _default;
@@ -12,7 +12,7 @@ export declare type IUseTransferColumns = {
12
12
  * @param hostFormID 宿主页面标识.
13
13
  * @param varGridDetails
14
14
  */
15
- export declare function _useTransferColumns(hostFormID: string | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseTransferColumns;
15
+ export declare function _useTransferColumns(hostFormID: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseTransferColumns;
16
16
  export declare type IUseDragRow = {};
17
17
  /**
18
18
  *
@@ -20,4 +20,4 @@ export declare type IUseDragRow = {};
20
20
  * @param varGridDetails
21
21
  * @param transferRightRows
22
22
  */
23
- export declare function _useDragRow(hostFormID: string | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
23
+ export declare function _useDragRow(hostFormID: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
@@ -2,29 +2,14 @@ import { ExtractPropTypes, PropType } from 'vue';
2
2
  export declare const getProps: () => {
3
3
  visible: PropType<boolean>;
4
4
  'onUpdate:visible': PropType<(value: boolean) => void>;
5
- /** 主页面的页面标识. */
6
- hostFormID: {
7
- type: PropType<string>;
8
- required: boolean;
9
- };
10
5
  };
11
6
  export declare type IKgTableSettingConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
7
  declare const _default: import("vue").DefineComponent<{
13
8
  visible: PropType<boolean>;
14
9
  'onUpdate:visible': PropType<(value: boolean) => void>;
15
- /** 主页面的页面标识. */
16
- hostFormID: {
17
- type: PropType<string>;
18
- required: boolean;
19
- };
20
10
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
21
11
  visible: PropType<boolean>;
22
12
  'onUpdate:visible': PropType<(value: boolean) => void>;
23
- /** 主页面的页面标识. */
24
- hostFormID: {
25
- type: PropType<string>;
26
- required: boolean;
27
- };
28
13
  }>> & {
29
14
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
30
15
  }, {}>;
@@ -3,6 +3,10 @@ import { VarGridConfig } from '../../apis/WMS/models';
3
3
  import { IRemoveEventListenerHandler } from '../../consts';
4
4
  import { IKgTableAfterRequestEventListener, IKgTableBeforeParseParameterEventListener, IKgTableBeforeRequestEventListener, IKgTableBeforeSetDatasEventListener, IKgTableReadyEventListener, IKgTableRowDoubleClickEventListener, IKgTableStore } from './index.store';
5
5
  export interface IUseKgTable {
6
+ /**
7
+ * 列表数据.
8
+ */
9
+ datas: ComputedRef<ReturnType<IKgTableStore['getDatas']>>;
6
10
  /** 界面标识. */
7
11
  formID: string;
8
12
  /** 主键字段. */
@@ -35,54 +39,54 @@ export interface IUseKgTable {
35
39
  kgSearchFormID: ComputedRef<string>;
36
40
  /**
37
41
  * 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
38
- * @param cb 事件监听函数.
39
- * @param once 是否只会触发一次. 默认为 undefined.
42
+ * @param listener 事件监听函数.
43
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
40
44
  */
41
- onAfterSearch(cb: IKgTableAfterRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
45
+ onAfterSearch(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
42
46
  /**
43
47
  * 监听事件: 即将解析请求参数.
44
- * @param cb 事件监听函数.
45
- * @param once 是否只会触发一次. 默认为 undefined.
48
+ * @param listener 事件监听函数.
49
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
46
50
  */
47
- onBeforeParseParameter(cb: IKgTableBeforeParseParameterEventListener, once?: boolean): IRemoveEventListenerHandler;
51
+ onBeforeParseParameter(listener: IKgTableBeforeParseParameterEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
48
52
  /**
49
53
  * 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
50
- * @param cb 事件监听函数.
51
- * @param once 是否只会触发一次. 默认为 undefined.
54
+ * @param listener 事件监听函数.
55
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
52
56
  * @deprecated 已废弃, 请使用 onBeforeSearch() 方法.
53
57
  */
54
- onBeforeRetrieve(cb: IKgTableBeforeRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
58
+ onBeforeRetrieve(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
55
59
  /**
56
60
  * 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
57
- * @param cb 事件监听函数.
58
- * @param once 是否只会触发一次. 默认为 undefined.
61
+ * @param listener 事件监听函数.
62
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
59
63
  */
60
- onBeforeSearch(cb: IKgTableBeforeRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
64
+ onBeforeSearch(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
61
65
  /**
62
66
  * 监听事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
63
- * @param cb 事件监听函数.
64
- * @param once 是否只会触发一次. 默认为 undefined.
67
+ * @param listener 事件监听函数.
68
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
65
69
  */
66
- onBeforeSetDatas(cb: IKgTableBeforeSetDatasEventListener, once?: boolean): IRemoveEventListenerHandler;
70
+ onBeforeSetDatas(listener: IKgTableBeforeSetDatasEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
67
71
  /**
68
72
  * 监听事件: ready, 配置初始完成, 组件渲染完成.
69
- * @param cb 事件监听函数.
70
- * @param once 是否只会触发一次. 默认为 undefined.
73
+ * @param listener 事件监听函数.
74
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
71
75
  */
72
- onReady(cb: IKgTableReadyEventListener, once?: boolean): IRemoveEventListenerHandler;
76
+ onReady(listener: IKgTableReadyEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
73
77
  /**
74
78
  * 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
75
- * @param cb 事件监听函数.
76
- * @param once 是否只会触发一次. 默认为 undefined.
79
+ * @param listener 事件监听函数.
80
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
77
81
  * @deprecated 已废弃, 请使用 onAfterSearch() 方法.
78
82
  */
79
- onRetrieve(cb: IKgTableAfterRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
83
+ onRetrieve(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
80
84
  /**
81
85
  * 监听事件: 双击某行.
82
- * @param cb 事件监听函数.
83
- * @param once 是否只会触发一次. 默认为 undefined.
86
+ * @param listener 事件监听函数.
87
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
84
88
  */
85
- onRowDoubleClick(cb: IKgTableRowDoubleClickEventListener, once?: boolean): IRemoveEventListenerHandler;
89
+ onRowDoubleClick(listener: IKgTableRowDoubleClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
86
90
  /** 当前分页选项. */
87
91
  pageSizeOption: ComputedRef<number>;
88
92
  /** 所有分页选项. */
@@ -36,8 +36,14 @@ export declare type IKgTableBeforeRequestEventListenerParameter = {
36
36
  };
37
37
  export declare type IKgTableBeforeRequestEventListener = ((param: IKgTableBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
38
38
  export declare type IKgTableBeforeSetDatasEventListenerParameter = {
39
- /** 列表数据. */
39
+ /**
40
+ * 列表数据.
41
+ */
40
42
  datas: Ref<Array<IKgTableRow>>;
43
+ /**
44
+ * 数据总数.
45
+ */
46
+ total: Ref<Number>;
41
47
  };
42
48
  export declare type IKgTableBeforeSetDatasEventListener = ((param: IKgTableBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
43
49
  export declare type IKgTableAfterRequestEventListenerParameter = {
@@ -101,7 +107,7 @@ export interface IUseKgTableStoreState {
101
107
  }
102
108
  export interface IUseKgTableStoreGetters {
103
109
  /** 列表数据. */
104
- getDatas(): <T = IKgTableRow>(formID: string | null | undefined) => Array<T>;
110
+ getDatas(): (formID: string | null | undefined) => Array<Record<string, any>>;
105
111
  /** 是否就绪. */
106
112
  getIsReady(): (formID: string | null | undefined) => boolean;
107
113
  /**
@@ -136,9 +142,9 @@ export interface IUseKgTableStoreActions {
136
142
  * 注册事件监听.
137
143
  * @param formID 界面标识.
138
144
  * @param event 事件名称.
139
- * @param cb 事件监听函数.
145
+ * @param listener 事件监听函数.
140
146
  */
141
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: IKgTableEventListener): void;
147
+ addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: IKgTableEventListener): void;
142
148
  /**
143
149
  * 修改「表格配置」的部分属性.
144
150
  *
@@ -175,9 +181,9 @@ export interface IUseKgTableStoreActions {
175
181
  * 退订事件监听.
176
182
  * @param formID 界面标识.
177
183
  * @param event 事件名称.
178
- * @param cb 事件监听函数.
184
+ * @param listener 事件监听函数.
179
185
  */
180
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableEventListener): void;
186
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: IKgTableEventListener): void;
181
187
  /**
182
188
  * 设置列表数据.
183
189
  * @param param.frmId 界面标识.
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
2
+ import { IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE } from '../../consts';
3
3
  import { IUseKgButton } from '../KgButton';
4
4
  import { IUseKgForm } from '../KgForm';
5
5
  import { type IUseKgSearch } from '../KgSearch';
@@ -38,12 +38,12 @@ export declare type IUseKgVar = {
38
38
  * </li>
39
39
  * </ul>
40
40
  *
41
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
41
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
42
42
  * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
43
43
  * @param param.varName 提交表单字段的变量名, 对应的是 {@link VarConfigControl.var_nam} 属性.
44
44
  */
45
45
  getVarConfigControl(param: {
46
- buttonType?: KG_BUTTON_TYPE;
46
+ buttonType?: KG__VAR_BUTTON__TYPE;
47
47
  buttonVarName?: string | null;
48
48
  varName: string | null | undefined;
49
49
  }): ReturnType<IKgVarStore['getVarConfigControl']>;
@@ -94,10 +94,10 @@ export declare type IUseKgVar = {
94
94
  /**
95
95
  * 监听事件: 变量配置数据查询完成.
96
96
  *
97
- * @param cb 事件监听函数.
98
- * @param once 是否只会触发一次. 默认为 undefined.
97
+ * @param listener 事件监听函数.
98
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
99
99
  */
100
- onRetrieve(cb: IKgVarRetrieveEventListener, once?: boolean): IRemoveEventListenerHandler;
100
+ onRetrieve(listener: IKgVarRetrieveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
101
101
  /**
102
102
  * 查询所有变量配置.
103
103
  *
@@ -1,6 +1,6 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
3
- import { IKgEventListener, KG_BUTTON_TYPE } from '../../consts';
3
+ import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
4
4
  /**
5
5
  * 事件类型.
6
6
  * 'retrieve': 变量配置查询完成
@@ -97,13 +97,12 @@ export interface IUseKgVarStoreGetters {
97
97
  * 和 var_nam 获取 VarButton.
98
98
  */
99
99
  getVarButton(): (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
100
- getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
101
100
  getVarButtonCopy(): (formID: string | null | undefined) => VarButton | null;
102
101
  getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
103
102
  getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
104
103
  getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
105
104
  getVarConfigControl(): (formID: string | null | undefined, param: {
106
- buttonType?: KG_BUTTON_TYPE;
105
+ buttonType?: KG__VAR_BUTTON__TYPE;
107
106
  buttonVarName?: string | null;
108
107
  varName: string | null | undefined;
109
108
  }) => VarConfigControl | null;
@@ -151,9 +150,9 @@ export interface IUseKgVarStoreActions {
151
150
  * 注册事件监听.
152
151
  * @param formID 界面标识.
153
152
  * @param event 事件名称.
154
- * @param cb 事件监听函数.
153
+ * @param listener 事件监听函数.
155
154
  */
156
- addEventListener(formID: string, event: IKgVarEvent, cb: IKgVarEventListener): void;
155
+ addEventListener(formID: string, event: IKgVarEvent, listener: IKgVarEventListener): void;
157
156
  /**
158
157
  * <p>离开一个界面, 即销毁一个界面.</p>
159
158
  * <p>删除它的变量配置数据.</p>
@@ -163,11 +162,11 @@ export interface IUseKgVarStoreActions {
163
162
  dispose(formID: string): void;
164
163
  /**
165
164
  * 拖拽排序 VarGridDetail 列表.
166
- * @param frm_id 界面标识.
165
+ * @param formID 界面标识.
167
166
  * @param from_var_nam 被拽起的变量名称
168
167
  * @param to_var_nam 被放下的变量名称.
169
168
  */
170
- dragSortCurrentVarGridDetails(frm_id: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
169
+ dragSortCurrentVarGridDetails(formID: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
171
170
  /**
172
171
  * 触发事件.
173
172
  * @param formID 界面标识.
@@ -186,11 +185,11 @@ export interface IUseKgVarStoreActions {
186
185
  }): Promise<void>;
187
186
  /**
188
187
  * 修改 VarGridDetail 的部分属性.
189
- * @param frm_id 界面标识.
188
+ * @param formID 界面标识.
190
189
  * @param var_nam 变量名称.
191
190
  * @param properties 要修改的部分属性.
192
191
  */
193
- patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: VarGridDetail): Promise<void>;
192
+ patchVarGridDetail(formID: string, var_nam: string | null | undefined, properties: VarGridDetail): Promise<void>;
194
193
  /**
195
194
  * 修改 VarConfigPossibility 的接口参数 cmd_prm 的部分属性.
196
195
  * @param formID 界面标识.
@@ -200,18 +199,18 @@ export interface IUseKgVarStoreActions {
200
199
  patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
201
200
  /**
202
201
  * 修改 VarProfileDetail 的部分属性.
203
- * @param frm_id 界面标识.
202
+ * @param formID 界面标识.
204
203
  * @param var_nam 变量名称.
205
204
  * @param properties 要修改的部分属性.
206
205
  */
207
- patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
206
+ patchVarProfileDetail(formID: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
208
207
  /**
209
208
  * 退订事件监听.
210
209
  * @param formID 界面标识.
211
210
  * @param event 事件名称.
212
- * @param cb 事件监听函数.
211
+ * @param listener 事件监听函数.
213
212
  */
214
- removeEventListener(formID: string, event: IKgVarEvent, cb?: IKgVarEventListener): void;
213
+ removeEventListener(formID: string, event: IKgVarEvent, listener?: IKgVarEventListener): void;
215
214
  /**
216
215
  * 查询所有变量配置.
217
216
  *
@@ -234,11 +233,11 @@ export interface IUseKgVarStoreActions {
234
233
  * @param currentVarProfileMasterID 当前选择的查询条件的 ID.
235
234
  */
236
235
  setCurrentVarProfileMasterID(formID?: string | null, currentVarProfileMasterID?: string | null): Promise<void>;
237
- setIsCopyingRequesting(frm_id: string, value: boolean): void;
236
+ setIsCopyingRequesting(formID: string, value: boolean): void;
238
237
  setIsCreatingRequesting(formID: string, value: boolean): void;
239
- setIsDeletingRequesting(frm_id: string, value: boolean): void;
240
- setIsOtherRequesting(frm_id: string, value: boolean): void;
241
- setIsUpdatingRequesting(frm_id: string, value: boolean): void;
238
+ setIsDeletingRequesting(formID: string, value: boolean): void;
239
+ setIsOtherRequesting(formID: string, value: boolean): void;
240
+ setIsUpdatingRequesting(formID: string, value: boolean): void;
242
241
  /**
243
242
  * 设置列的宽度.
244
243
  * @param formID 界面标识.
@@ -36,7 +36,7 @@ export declare type IKgSlots = {
36
36
  afterKgTable?: () => any;
37
37
  };
38
38
  /** 注入 kgSlots 参数. */
39
- export declare const DI_KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
39
+ export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
40
40
  export declare type IKgProps = {
41
41
  KgButton?: IKgButtonProps;
42
42
  KgSearch?: IKgSearchProps;
@@ -44,4 +44,4 @@ export declare type IKgProps = {
44
44
  KgTable?: IKgTableProps;
45
45
  };
46
46
  /** 注入 kgProps 参数. */
47
- export declare const DI_KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
47
+ export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  export declare const getProps: () => any;
3
- export declare type IKgVarConfig_ModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
3
+ export declare type KgVarConfigModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
4
  declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
5
  [x: string]: any;
6
6
  }>;
@@ -1,13 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const getProps: () => {
3
- onKgClose: PropType<() => void>;
4
- };
5
- export declare type IKgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
6
- declare const _default: import("vue").DefineComponent<{
7
- onKgClose: PropType<() => void>;
8
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
9
- onKgClose: PropType<() => void>;
10
- }>> & {
11
- onKgClose?: ((...args: any[]) => any) | undefined;
12
- }, {}>;
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type KgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
13
7
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  export declare const getProps: () => any;
3
- export declare type KgSubmitVarSubmitConfigButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
3
+ export declare type KgVarConfigModalSubmitVarSubmitConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
4
  declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
5
  [x: string]: any;
6
6
  }>;
@@ -1,24 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const FORM_ID__VAR_SUBMIT_FIELD = "kg-submit.VarSubmitDetail";
3
- export declare const getProps: () => {
4
- /** 主页面的页面标识. */
5
- hostFormID: {
6
- type: PropType<string>;
7
- required: boolean;
8
- };
9
- };
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
10
3
  export declare type IKgVarConfigModalSubmitVarSubmitDetailProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
11
- declare const _default: import("vue").DefineComponent<{
12
- /** 主页面的页面标识. */
13
- hostFormID: {
14
- type: PropType<string>;
15
- required: boolean;
16
- };
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
- /** 主页面的页面标识. */
19
- hostFormID: {
20
- type: PropType<string>;
21
- required: boolean;
22
- };
23
- }>>, {}>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
24
7
  export default _default;
@@ -1,22 +1,5 @@
1
- import { PropType } from 'vue';
2
- export declare const getProps: () => {
3
- /** 主页面的页面标识. */
4
- hostFormID: {
5
- type: PropType<string>;
6
- required: boolean;
7
- };
8
- };
9
- declare const _default: import("vue").DefineComponent<{
10
- /** 主页面的页面标识. */
11
- hostFormID: {
12
- type: PropType<string>;
13
- required: boolean;
14
- };
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
- /** 主页面的页面标识. */
17
- hostFormID: {
18
- type: PropType<string>;
19
- required: boolean;
20
- };
21
- }>>, {}>;
1
+ export declare const getProps: () => any;
2
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
3
+ [x: string]: any;
4
+ }>;
22
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  /** 正在被配置的界面标识. */
3
- export declare const DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
3
+ export declare const KG__DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
4
4
  /**
5
5
  * 界面标识: 变量配置弹窗:按钮:按钮管理.
6
6
  */
@@ -41,3 +41,5 @@ export declare const FORM_ID__VAR__VAR_CONFIG_LOOKUP__VAR_DDA = "KgVarConfig.Mod
41
41
  * 界面标识: 变量配置弹窗:变量配置:提示文本.
42
42
  */
43
43
  export declare const FORM_ID__VAR__VAR_CONFIG_TIP = "KgVarConfig.Modal.Var.VarConfigTip";
44
+ export declare const FORM_ID__SUBMIT__VAR_SUBMIT_DETAIL = "kg-submit.VarSubmitDetail";
45
+ export declare const FORM_ID__SUBMIT__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitConfig";
@@ -6,10 +6,10 @@ import { IKgWarehouseMountedEventListener, IKgWarehouseStore } from './index.sto
6
6
  export declare type IUseKgWarehouse = {
7
7
  /**
8
8
  * 监听事件: 组件加载完成.
9
- * @param cb 事件监听函数.
10
- * @param once 是否只会触发一次. 默认为 undefined.
9
+ * @param listener 事件监听函数.
10
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
11
11
  */
12
- onMounted(cb: IKgWarehouseMountedEventListener, once?: boolean): IRemoveEventListenerHandler;
12
+ onMounted(listener: IKgWarehouseMountedEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
13
13
  store: IKgWarehouseStore;
14
14
  /**
15
15
  * 弹窗当前是否显示.
@@ -30,15 +30,15 @@ export interface IUseKgWarehouseStoreActions {
30
30
  /**
31
31
  * 注册事件监听.
32
32
  * @param event 事件名称.
33
- * @param cb 事件监听函数.
33
+ * @param listener 事件监听函数.
34
34
  */
35
- addEventListener(event: IKgWarehouseEvent, cb: IKgWarehouseEventListener): void;
35
+ addEventListener(event: IKgWarehouseEvent, listener: IKgWarehouseEventListener): void;
36
36
  /**
37
37
  * 退订事件监听.
38
38
  * @param event 事件名称.
39
- * @param cb 事件监听函数.
39
+ * @param listener 事件监听函数.
40
40
  */
41
- removeEventListener(event: IKgWarehouseEvent, cb?: IKgWarehouseEventListener): void;
41
+ removeEventListener(event: IKgWarehouseEvent, listener?: IKgWarehouseEventListener): void;
42
42
  /**
43
43
  * 触发事件.
44
44
  * @param event 事件名称.
@@ -6,9 +6,9 @@ import { IKgEventListener, IRemoveEventListenerHandler } from '../consts';
6
6
  * @param event 事件名称.
7
7
  */
8
8
  export declare function onEventFactory<S extends {
9
- addEventListener(formID: string, event: E, cb: L): void;
10
- removeEventListener(formID: string, event: E, cb?: L): void;
9
+ addEventListener(formID: string, event: E, listener: L): void;
10
+ removeEventListener(formID: string, event: E, listener?: L): void;
11
11
  } | {
12
- addEventListener(event: E, cb: L): void;
13
- removeEventListener(event: E, cb?: L): void;
14
- } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (cb: L, once?: boolean) => IRemoveEventListenerHandler;
12
+ addEventListener(event: E, listener: L): void;
13
+ removeEventListener(event: E, listener?: L): void;
14
+ } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListenerHandler;
@@ -98,7 +98,7 @@ declare const _default: {
98
98
  formTitle: string;
99
99
  pleaseSelectVarProfileMaster: string;
100
100
  };
101
- KgSubmitVarSubmitConfigModal: {
101
+ KgVarConfigModalSubmitVarSubmitConfig: {
102
102
  invalidWidthForSpan: string;
103
103
  };
104
104
  KgTable: {
@@ -98,7 +98,7 @@ declare const _default: {
98
98
  formTitle: string;
99
99
  pleaseSelectVarProfileMaster: string;
100
100
  };
101
- KgSubmitVarSubmitConfigModal: {
101
+ KgVarConfigModalSubmitVarSubmitConfig: {
102
102
  invalidWidthForSpan: string;
103
103
  };
104
104
  KgTable: {
@@ -166,7 +166,7 @@ export declare const enum KG__VAR_GRID_DETAIL__DISPLAY_TYPE {
166
166
  */
167
167
  ICON = "ICON"
168
168
  }
169
- /** 按钮类型. */
169
+ /** @deprecated 已弃用, 请使用 {@link KG__VAR_BUTTON__TYPE}. */
170
170
  export declare const enum KG_BUTTON_TYPE {
171
171
  /** 查询. */
172
172
  SEARCH = "SEARCH",
@@ -187,6 +187,29 @@ export declare const enum KG_BUTTON_TYPE {
187
187
  /** 其他. */
188
188
  OTHER = "OTHER"
189
189
  }
190
+ /**
191
+ * 按钮类型.
192
+ */
193
+ export declare const enum KG__VAR_BUTTON__TYPE {
194
+ /** 查询. */
195
+ SEARCH = "SEARCH",
196
+ /** 创建. */
197
+ CREATE = "CREATE",
198
+ /** 更新. */
199
+ UPDATE = "UPDATE",
200
+ /** 复制. */
201
+ COPY = "COPY",
202
+ /** 删除. */
203
+ DELETE = "DELETE",
204
+ /** 导入. */
205
+ IMPORT = "IMPORT",
206
+ /** 下载导入模板. */
207
+ IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
208
+ /** 导出. */
209
+ EXPORT = "EXPORT",
210
+ /** 其他. */
211
+ OTHER = "OTHER"
212
+ }
190
213
  /**
191
214
  * 按钮颜色.
192
215
  */
@@ -417,7 +440,7 @@ export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
417
440
  export declare type IRemoveEventListenerHandler = () => void;
418
441
  export declare type IKgEventListener = {
419
442
  /** 是否只会触发一次. */
420
- once?: boolean;
443
+ isOnce?: boolean;
421
444
  /** 是否已经触发过一次了. */
422
445
  invoked?: boolean;
423
446
  };