@kengic/vue 0.27.1-beta.0 → 0.27.1-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -188,10 +188,6 @@ export interface IUseKgButton {
188
188
  * 按钮配置.
189
189
  */
190
190
  varButtonConfig: ComputedRef<ReturnType<IKgButtonStore['getVarButtonConfig']>>;
191
- /**
192
- * 所有按钮.
193
- */
194
- varButtons: ComputedRef<ReturnType<IKgButtonStore['getVarButtons']>>;
195
191
  }
196
192
  /**
197
193
  * @param formID 界面标识.
@@ -33,7 +33,6 @@ export interface IUseKgButtonStoreGetters {
33
33
  getCurrentButton(): (formID: string | null | undefined) => VarButton | null;
34
34
  getSearchButton(): (formID: string | null | undefined) => VarButton | null;
35
35
  getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
36
- getVarButtons(): (formID: string | null | undefined) => Array<VarButton>;
37
36
  isClickIntercepted(): (formID: string | undefined | null, param: {
38
37
  type?: KG__VAR_BUTTON__TYPE;
39
38
  varName?: string | null;
@@ -789,6 +789,17 @@ declare const _default: import("vue").DefineComponent<{
789
789
  originVNode: import("ant-design-vue/es/_util/type").VueNode;
790
790
  }) => import("ant-design-vue/es/_util/type").VueNode>;
791
791
  }>>, {
792
+ kgFullHeight: boolean;
793
+ kgIsDefaultFullscreen: boolean;
794
+ kgIsDragToMove: boolean;
795
+ kgIsDragToResize: boolean;
796
+ kgIsShowFullscreenButton: boolean;
797
+ kgMaxHeight: number;
798
+ kgMaxWidth: number;
799
+ kgMinHeight: number;
800
+ kgMinWidth: number;
801
+ kgShowCancelButton: boolean;
802
+ kgShowOkButton: boolean;
792
803
  visible: boolean;
793
804
  confirmLoading: boolean;
794
805
  closable: boolean;
@@ -802,16 +813,5 @@ declare const _default: import("vue").DefineComponent<{
802
813
  mask: boolean;
803
814
  keyboard: boolean;
804
815
  focusTriggerAfterClose: boolean;
805
- kgIsDragToMove: boolean;
806
- kgFullHeight: boolean;
807
- kgIsDefaultFullscreen: boolean;
808
- kgIsDragToResize: boolean;
809
- kgIsShowFullscreenButton: boolean;
810
- kgMaxHeight: number;
811
- kgMaxWidth: number;
812
- kgMinHeight: number;
813
- kgMinWidth: number;
814
- kgShowCancelButton: boolean;
815
- kgShowOkButton: boolean;
816
816
  }>;
817
817
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
- import { VarGridConfig, VarGridDetail } from '../../api/WMS/models';
3
+ import { VarGridConfig } from '../../api/WMS/models';
4
4
  import { IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './index.event';
5
5
  import { IKgTableStore } from './index.store';
6
6
  export interface IUseKgTable {
@@ -10,15 +10,6 @@ export interface IUseKgTable {
10
10
  datas: ComputedRef<ReturnType<IKgTableStore['getDatas']>>;
11
11
  /** 界面标识. */
12
12
  formID: string;
13
- /**
14
- * 获取某个「表格视图明细」.
15
- *
16
- * @param param
17
- * @param param.varName 变量名称.
18
- */
19
- getVarGridDetail(param: {
20
- varName: string | null | undefined;
21
- }): VarGridDetail | null;
22
13
  /** @deprecated 已弃用, 请使用 {@link IUseKgTable.idKey}. */
23
14
  id: ComputedRef<string>;
24
15
  /**
@@ -117,17 +108,6 @@ export interface IUseKgTable {
117
108
  patchVarGridConfig(param: {
118
109
  properties: VarGridConfig;
119
110
  }): Promise<void>;
120
- /**
121
- * 修改「表格视图明细」的部分属性.
122
- *
123
- * @param param
124
- * @param param.varName 变量名称.
125
- * @param param.properties 要修改的部分属性.
126
- */
127
- patchVarGridDetail(param: {
128
- varName: string | null | undefined;
129
- properties: VarGridDetail;
130
- }): Promise<void>;
131
111
  /**
132
112
  * <p>查询参数.</p>
133
113
  * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
@@ -1,7 +1,7 @@
1
1
  import { Key } from 'ant-design-vue/lib/_util/type';
2
2
  import { StoreDefinition } from 'pinia';
3
3
  import { Ref } from 'vue';
4
- import { VarGridConfig, VarGridDetail } from '../../api/WMS/models';
4
+ import { VarGridConfig } from '../../api/WMS/models';
5
5
  import { IKgTableEvent, IKgTableEventListenerParameter, IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRowDoubleClickEventListener } from './index.event';
6
6
  import { IKgTableRow, IKgTableRowHeight } from './index.vm';
7
7
  export interface IUseKgTableStoreState {
@@ -83,9 +83,6 @@ export interface IUseKgTableStoreGetters {
83
83
  * 根据 formID 获取表格宽度.
84
84
  */
85
85
  getTableWidth(): (formID: string | null | undefined) => number | null;
86
- getVarGridDetail(): (formID: string | null | undefined, param: {
87
- varName: string | null | undefined;
88
- }) => VarGridDetail | null;
89
86
  }
90
87
  export interface IUseKgTableStoreActions {
91
88
  /**
@@ -119,21 +116,9 @@ export interface IUseKgTableStoreActions {
119
116
  * @param param
120
117
  * @param param.properties 要修改的部分属性.
121
118
  */
122
- patchVarGridConfig(formID: string, param: {
119
+ patchVarGridConfig(formID: string | null | undefined, param: {
123
120
  properties: VarGridConfig;
124
121
  }): Promise<void>;
125
- /**
126
- * 修改「表格视图明细」的部分属性.
127
- *
128
- * @param formID 界面标识.
129
- * @param param
130
- * @param param.varName 变量名称.
131
- * @param param.properties 要修改的部分属性.
132
- */
133
- patchVarGridDetail(formID: string | null | undefined, param: {
134
- varName: string | null | undefined;
135
- properties: VarGridDetail;
136
- }): Promise<void>;
137
122
  /**
138
123
  * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
139
124
  * @param formID 界面标识.
@@ -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, 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';
@@ -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
- /** @deprecated 已弃用, 请使用 kgVar.kgVarConfig.getVarConfigPossibility() */
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,6 +161,28 @@ export declare type IUseKgVar = {
147
161
  * 父亲界面.
148
162
  */
149
163
  parent: ComputedRef<ReturnType<IKgVarStore['getParent']>>;
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
179
+ * @param param.varName 变量名称.
180
+ * @param param.properties 要修改的部分属性.
181
+ */
182
+ patchVarGridDetail(param: {
183
+ properties: VarGridDetail;
184
+ varName: string | null | undefined;
185
+ }): Promise<void>;
150
186
  props: ComputedRef<ReturnType<IKgVarStore['getProps']>>;
151
187
  /**
152
188
  * 查询所有变量配置.
@@ -183,13 +219,19 @@ export declare type IUseKgVar = {
183
219
  varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
184
220
  varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
185
221
  varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
222
+ /**
223
+ * 所有按钮.
224
+ */
225
+ varButtons: ComputedRef<Array<VarButton>>;
186
226
  varChildDetails: ComputedRef<ReturnType<IKgVarStore['getVarChildDetails']>>;
187
227
  varDda: ComputedRef<ReturnType<IKgVarStore['getVarDda']>>;
188
228
  varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
189
- /** 所有的 VarGridMaster 列表. */
190
- varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
229
+ /**
230
+ * 所有的「表格视图」.
231
+ */
232
+ varGridMasters: ComputedRef<Array<VarGridMasterDTO> | null>;
191
233
  varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
192
- /** 所有的 VarProfileMaster 列表. */
234
+ /** 所有的 VarProfileMaster. */
193
235
  varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
194
236
  varVariables: ComputedRef<ReturnType<IKgVarStore['getVarVariables']>>;
195
237
  };
@@ -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, varName: string | null | undefined) => VarConfigPossibility | null;
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,30 @@ 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.varName 变量名称.
193
+ * @param param.properties 要修改的部分属性.
194
+ */
195
+ patchVarGridDetail(formID: string | null | undefined, param: {
196
+ properties: VarGridDetail;
197
+ varName: string | null | undefined;
198
+ }): Promise<void>;
169
199
  /**
170
200
  * 修改 VarConfigPossibility 的接口参数 cmd_prm 的部分属性.
171
201
  * @param formID 界面标识.
@@ -175,6 +205,7 @@ export interface IUseKgVarStoreActions {
175
205
  patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
176
206
  /**
177
207
  * 修改 VarProfileDetail 的部分属性.
208
+ *
178
209
  * @param formID 界面标识.
179
210
  * @param var_nam 变量名称.
180
211
  * @param properties 要修改的部分属性.
@@ -1,14 +1,5 @@
1
- import { VarConfigPossibility } from '../../api/WMS/models';
2
1
  import { IKgVarConfigStore } from './index.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,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
  /** 数据管理. */
@@ -579,6 +580,10 @@ export interface IKgVarConfigInputProperties {
579
580
  * <p>额外的配置属性. 对应 {@link VarConfigLookup#props} 字段.</p>
580
581
  */
581
582
  export interface IKgVarConfigLookupProperties {
583
+ /**
584
+ * 查找弹窗组件的参数.
585
+ */
586
+ KgModal?: KgModalProps;
582
587
  }
583
588
  /**
584
589
  * <p>额外的配置属性. 对应 {@link VarConfigPossibility#props} 字段.</p>
@@ -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" | "patchVarButton" | "setFormID" | "setIsLoading" | "setResultSetMetadataColumns" | "setVarGridDetails" | "setVarProfileDetails" | "setVarSubmitDetails" | "updateVarDda">>;
1382
+ }, "patchVarButton" | "createVarButton" | "updateVarConfigDescription" | "deleteVarButton" | "getVarText" | "initCreateVarDdaQuery" | "patchSysPermission" | "setFormID" | "setIsLoading" | "setResultSetMetadataColumns" | "setVarGridDetails" | "setVarProfileDetails" | "setVarSubmitDetails" | "updateVarDda">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.27.1-beta.0",
3
+ "version": "0.27.1-beta.2",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",