@kengic/vue 0.23.5 → 0.23.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +3844 -3442
  3. package/dist/src/apis/WMS/models.d.ts +4 -2
  4. package/dist/src/components/KgButton/index.hooks.d.ts +8 -9
  5. package/dist/src/components/KgButton/index.store.d.ts +3 -0
  6. package/dist/src/components/KgResizable/KgResizable.d.ts +4 -56
  7. package/dist/src/components/KgResizable/KgResizable.service.d.ts +12 -0
  8. package/dist/src/components/KgSearch/index.vm.d.ts +1 -2
  9. package/dist/src/components/KgSubmit/index.hooks.d.ts +3 -2
  10. package/dist/src/components/KgSubmit/index.store.d.ts +1 -18
  11. package/dist/src/components/KgTable/index.store.d.ts +7 -7
  12. package/dist/src/components/KgTable/index.vm.d.ts +0 -1
  13. package/dist/src/components/KgVar/index.hooks.d.ts +3 -2
  14. package/dist/src/components/KgVar/index.store.d.ts +8 -6
  15. package/dist/src/components/{KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts → KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts} +1 -1
  16. package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
  17. package/dist/src/components/{KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.service.d.ts → KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts} +1 -1
  18. package/dist/src/components/{KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts → KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts} +1 -1
  19. package/dist/src/components/{KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts → KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts} +1 -1
  20. package/dist/src/components/{KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts → KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts} +1 -1
  21. package/dist/src/components/KgVarConfig/index.vm.d.ts +14 -10
  22. package/dist/src/consts/i18n/en.d.ts +30 -37
  23. package/dist/src/consts/i18n/zh_CN.d.ts +30 -37
  24. package/dist/src/consts/index.vm.d.ts +36 -3
  25. package/package.json +1 -1
  26. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -8
  27. /package/dist/src/components/{KgSearch/components/KgSearch.ConfigModal.Body.d.ts → KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts} +0 -0
  28. /package/dist/src/components/{KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts → KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts} +0 -0
@@ -327,7 +327,7 @@ export declare class ValidateVarButtonVarNameQuery {
327
327
  varName?: string | null;
328
328
  constructor(obj?: ValidateVarButtonVarNameQuery);
329
329
  }
330
- /** 按钮 */
330
+ /** 按钮. */
331
331
  export declare class VarButton {
332
332
  /** 是否可用. */
333
333
  available_flag?: number | null;
@@ -567,6 +567,8 @@ export declare class VarDTO {
567
567
  varSubmitConfigs?: Array<VarSubmitConfig> | null;
568
568
  /** 提交表单字段. */
569
569
  varSubmitDetails?: Array<VarSubmitDetail> | null;
570
+ /** 变量. */
571
+ varVariables?: Array<VarVariable> | null;
570
572
  constructor(obj?: VarDTO);
571
573
  }
572
574
  /** DDA. */
@@ -851,7 +853,7 @@ export declare class VarSubmitDetail {
851
853
  id?: string | null;
852
854
  /** 是否是关键的字段. */
853
855
  key_flg?: number | null;
854
- /** 提示文字(Placeholder). */
856
+ /** 占位提示文字(Placeholder). */
855
857
  placeholder?: string | null;
856
858
  /** 是否必填. */
857
859
  required_flag?: number | null;
@@ -21,6 +21,14 @@ export interface IUseKgButton {
21
21
  * 界面标识.
22
22
  */
23
23
  formID: string;
24
+ /**
25
+ * 获取某一个按钮的翻译.
26
+ *
27
+ * @param param.varName 按钮变量名称.
28
+ */
29
+ getButtonDescription(param: {
30
+ varName: string | null | undefined;
31
+ }): string;
24
32
  /**
25
33
  * <p>判断某个按钮的 click 事件是否被拦截.</p>
26
34
  * <p>用户调用 <code>kgVar.kgButton.onClick(listener)</code> 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
@@ -29,12 +37,10 @@ export interface IUseKgButton {
29
37
  * <ul>
30
38
  * <li>
31
39
  * <p>如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG__VAR_BUTTON__TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
32
- * <p>调用方式如下: <code>isClickIntercepted({ type: KG__VAR_BUTTON__TYPE.CREATE });</code></p>
33
40
  * </li>
34
41
  * <li>
35
42
  * <p>如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG__VAR_BUTTON__TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
36
43
  * <p>根据参数 {@link param.varName} 获取按钮.</p>
37
- * <p>调用方式如下: <code>isClickIntercepted({ varName: 'SOME-OTHER-BUTTON' });</code></p>
38
44
  * </li>
39
45
  * </ul>
40
46
  *
@@ -51,12 +57,10 @@ export interface IUseKgButton {
51
57
  * <ul>
52
58
  * <li>
53
59
  * <p>如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG__VAR_BUTTON__TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
54
- * <p>调用方式如下: <code>isCurrentButton({ type: KG__VAR_BUTTON__TYPE.CREATE });</code></p>
55
60
  * </li>
56
61
  * <li>
57
62
  * <p>如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG__VAR_BUTTON__TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
58
63
  * <p>根据参数 {@link param.varName} 获取按钮.</p>
59
- * <p>调用方式如下: <code>isCurrentButton({ varName: 'SOME-OTHER-BUTTON' });</code></p>
60
64
  * </li>
61
65
  * </ul>
62
66
  *
@@ -113,16 +117,13 @@ export interface IUseKgButton {
113
117
  * <ul>
114
118
  * <li>
115
119
  * <p>如果参数 {@link param} === null, 表示清空「当前按钮」.</p>
116
- * <p>调用方式如下: <code>setCurrentButton(null);</code></p>
117
120
  * </li>
118
121
  * <li>
119
122
  * <p>否则, 如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG__VAR_BUTTON__TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
120
- * <p>调用方式如下: <code>setCurrentButton({ type: KG__VAR_BUTTON__TYPE.CREATE });</code></p>
121
123
  * </li>
122
124
  * <li>
123
125
  * <p>否则, 如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG__VAR_BUTTON__TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
124
126
  * <p>根据参数 {@link param.varName} 获取按钮.</p>
125
- * <p>调用方式如下: <code>setCurrentButton({ varName: 'SOME-OTHER-BUTTON' });</code></p>
126
127
  * </li>
127
128
  * </ul>
128
129
  *
@@ -139,12 +140,10 @@ export interface IUseKgButton {
139
140
  * <ul>
140
141
  * <li>
141
142
  * <p>如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG__VAR_BUTTON__TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
142
- * <p>调用方式如下: <code>setIsClickIntercepted({ type: KG__VAR_BUTTON__TYPE.CREATE, isIntercepted: true });</code></p>
143
143
  * </li>
144
144
  * <li>
145
145
  * <p>如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG__VAR_BUTTON__TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
146
146
  * <p>根据参数 {@link param.varName} 获取按钮.</p>
147
- * <p>调用方式如下: <code>setIsClickIntercepted({ varName: 'SOME-OTHER-BUTTON', isIntercepted: true });</code></p>
148
147
  * </li>
149
148
  * </ul>
150
149
  *
@@ -49,6 +49,9 @@ export interface IUseKgButtonStoreState {
49
49
  submitSaveEventListenersMap: Map<string, Array<IKgButtonSubmitSaveEventListener>>;
50
50
  }
51
51
  export interface IUseKgButtonStoreGetters {
52
+ getButtonDescription(): (formID: string | null | undefined, param: {
53
+ varName: string | null | undefined;
54
+ }) => string;
52
55
  getCurrentButton(): (formID: string | null | undefined) => VarButton | null;
53
56
  getSearchButton(): (formID: string | null | undefined) => VarButton | null;
54
57
  getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
@@ -13,35 +13,19 @@ export declare const getProps: () => {
13
13
  /** 最大高度. */
14
14
  kgMaxHeight: {
15
15
  type: PropType<number>;
16
- default: number;
17
- };
18
- /** 最大宽度. */
19
- kgMaxWidth: {
20
- type: PropType<number>;
21
- default: number;
16
+ default: undefined;
22
17
  };
23
18
  /** 最小高度. */
24
19
  kgMinHeight: {
25
20
  type: PropType<number>;
26
21
  default: number;
27
22
  };
28
- /** 最小宽度. */
29
- kgMinWidth: {
30
- type: PropType<number>;
31
- default: number;
32
- };
33
23
  /** 拖拽条的位置. */
34
24
  kgType: {
35
25
  type: PropType<"left" | "right" | "top" | "bottom">;
36
26
  default: string;
37
27
  };
38
- /** 当前宽度. */
39
- kgWidth: {
40
- type: PropType<number>;
41
- default: number;
42
- };
43
28
  'onUpdate:kgHeight': PropType<(value: number) => void>;
44
- 'onUpdate:kgWidth': PropType<(value: number) => void>;
45
29
  };
46
30
  export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
47
31
  declare const _default: import("vue").DefineComponent<{
@@ -57,36 +41,20 @@ declare const _default: import("vue").DefineComponent<{
57
41
  /** 最大高度. */
58
42
  kgMaxHeight: {
59
43
  type: PropType<number>;
60
- default: number;
61
- };
62
- /** 最大宽度. */
63
- kgMaxWidth: {
64
- type: PropType<number>;
65
- default: number;
44
+ default: undefined;
66
45
  };
67
46
  /** 最小高度. */
68
47
  kgMinHeight: {
69
48
  type: PropType<number>;
70
49
  default: number;
71
50
  };
72
- /** 最小宽度. */
73
- kgMinWidth: {
74
- type: PropType<number>;
75
- default: number;
76
- };
77
51
  /** 拖拽条的位置. */
78
52
  kgType: {
79
53
  type: PropType<"left" | "right" | "top" | "bottom">;
80
54
  default: string;
81
55
  };
82
- /** 当前宽度. */
83
- kgWidth: {
84
- type: PropType<number>;
85
- default: number;
86
- };
87
56
  'onUpdate:kgHeight': PropType<(value: number) => void>;
88
- 'onUpdate:kgWidth': PropType<(value: number) => void>;
89
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
57
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:kgHeight"[], "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
90
58
  /** 样式. */
91
59
  kgClass: PropType<string>;
92
60
  /** 是否禁用. */
@@ -99,45 +67,25 @@ declare const _default: import("vue").DefineComponent<{
99
67
  /** 最大高度. */
100
68
  kgMaxHeight: {
101
69
  type: PropType<number>;
102
- default: number;
103
- };
104
- /** 最大宽度. */
105
- kgMaxWidth: {
106
- type: PropType<number>;
107
- default: number;
70
+ default: undefined;
108
71
  };
109
72
  /** 最小高度. */
110
73
  kgMinHeight: {
111
74
  type: PropType<number>;
112
75
  default: number;
113
76
  };
114
- /** 最小宽度. */
115
- kgMinWidth: {
116
- type: PropType<number>;
117
- default: number;
118
- };
119
77
  /** 拖拽条的位置. */
120
78
  kgType: {
121
79
  type: PropType<"left" | "right" | "top" | "bottom">;
122
80
  default: string;
123
81
  };
124
- /** 当前宽度. */
125
- kgWidth: {
126
- type: PropType<number>;
127
- default: number;
128
- };
129
82
  'onUpdate:kgHeight': PropType<(value: number) => void>;
130
- 'onUpdate:kgWidth': PropType<(value: number) => void>;
131
83
  }>> & {
132
84
  "onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
133
- "onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
134
85
  }, {
135
86
  kgMaxHeight: number;
136
- kgMaxWidth: number;
137
87
  kgMinHeight: number;
138
- kgMinWidth: number;
139
88
  kgHeight: number;
140
89
  kgType: "left" | "right" | "top" | "bottom";
141
- kgWidth: number;
142
90
  }>;
143
91
  export default _default;
@@ -0,0 +1,12 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * <p>监测父元素的尺寸, 动态计算最大高度以及最大宽度.</p>
4
+ *
5
+ * @param param
6
+ */
7
+ export declare function _useObserveParentSize(param: {
8
+ kgResizableRef: Ref<HTMLDivElement | null>;
9
+ }): {
10
+ parentWidth: Ref<number>;
11
+ parentHeight: Ref<number>;
12
+ };
@@ -1,2 +1 @@
1
- export declare const FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "KgSearch.ConfigModal.VarProfileMaster";
2
- export declare const FORM_ID__KG_SEARCH__VAR_PROFILE_CONFIG = "KgSearch.ConfigModal.VarProfileConfig";
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { FormInstance } from 'ant-design-vue';
2
2
  import { ComputedRef, Ref } from 'vue';
3
3
  import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
4
- import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG__VAR_SUBMIT_CONFIG_LABEL_COLUMN_UNIT } from '../../consts';
4
+ import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
5
5
  import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
6
6
  export interface IUseKgSubmit {
7
7
  /**
@@ -227,7 +227,7 @@ export interface IUseKgSubmit {
227
227
  /**
228
228
  * <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
229
229
  */
230
- searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG_LABEL_COLUMN_UNIT>;
230
+ searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT>;
231
231
  /**
232
232
  * <p>「查询按钮」的「提交表单配置」的布局.</p>
233
233
  */
@@ -236,6 +236,7 @@ export interface IUseKgSubmit {
236
236
  * 状态数据.
237
237
  */
238
238
  store: IKgSubmitStore;
239
+ varSubmitConfigs: ComputedRef<Array<VarSubmitConfig>>;
239
240
  }
240
241
  /**
241
242
  * @param formID 界面标识.
@@ -42,29 +42,11 @@ export declare type IKgSubmitOpenEventListenerParameter = {
42
42
  };
43
43
  export declare type IKgSubmitOpenEventListener = ((param: IKgSubmitOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
44
44
  export declare type IKgSubmitBeforeOkEventListenerParameter = {
45
- /** @deprecated 已弃用 */
46
- isCopying: boolean | null;
47
- /** @deprecated 已弃用 */
48
- isCreating: boolean | null;
49
- /** @deprecated 已弃用 */
50
- isDeleting: boolean | null;
51
- /** @deprecated 已弃用 */
52
- isUpdating: boolean | null;
53
45
  /**
54
46
  * 表单数据对象.
55
47
  * @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formModel}
56
48
  */
57
49
  model: Ref<Record<string, any>>;
58
- /**
59
- * 表格当前勾选的唯一行.
60
- * @deprecated 已弃用, 请使用 {@link IUseKgTable.selectedRow}
61
- */
62
- row: IKgTableRow | null;
63
- /**
64
- * 表单验证规则.
65
- * @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formRules}
66
- */
67
- rules: Ref<Record<string, RuleObject[]>>;
68
50
  };
69
51
  export declare type IKgSubmitBeforeOkEventListener = ((param: IKgSubmitBeforeOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
70
52
  export declare type IKgSubmitAfterValidateEventListenerParameter = {
@@ -144,6 +126,7 @@ export interface IUseKgSubmitStoreGetters {
144
126
  buttonType?: KG__VAR_BUTTON__TYPE;
145
127
  buttonVarName?: string | null;
146
128
  }) => VarSubmitConfig | null;
129
+ getVarSubmitConfigs(): (formID: string | null | undefined) => Array<VarSubmitConfig>;
147
130
  getVarSubmitDetails(): (formID: string | null | undefined, param?: {
148
131
  buttonType?: KG__VAR_BUTTON__TYPE;
149
132
  buttonVarName?: string | null;
@@ -174,9 +174,9 @@ export interface IUseKgTableStoreActions {
174
174
  emit<T = IKgTableEventListenerParameter>(formID: string | null | undefined, event: IKgTableEvent, param: T): Promise<boolean>;
175
175
  /**
176
176
  * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
177
- * @param frmId 界面标识.
177
+ * @param formID 界面标识.
178
178
  */
179
- refreshSelectedRows(frmId: string | null | undefined): void;
179
+ refreshSelectedRows(formID: string | null | undefined): void;
180
180
  /**
181
181
  * 退订事件监听.
182
182
  * @param formID 界面标识.
@@ -201,24 +201,24 @@ export interface IUseKgTableStoreActions {
201
201
  * @param ready 是否就绪.
202
202
  */
203
203
  setIsReady(formID: string | null | undefined, ready?: boolean): void;
204
- setIsRequested(frmId: string | null | undefined, value: boolean): void;
204
+ setIsRequested(formID: string | null | undefined, value: boolean): void;
205
205
  setIsRequesting(formID: string | null | undefined, value: boolean): void;
206
206
  setIsShowDescription(formID: string | null | undefined, value: boolean): void;
207
207
  setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
208
208
  setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
209
209
  /**
210
210
  * 设置某行的勾选状态.
211
- * @param frmId 界面标识.
211
+ * @param formID 界面标识.
212
212
  * @param row 行.
213
213
  * @param isSelected 是否勾选.
214
214
  */
215
- setRowSelect(frmId: string | null | undefined, row: IKgTableRow, isSelected: boolean): void;
215
+ setRowSelect(formID: string | null | undefined, row: IKgTableRow, isSelected: boolean): void;
216
216
  /**
217
217
  * 设置勾选的行.
218
- * @param frmId 界面标识.
218
+ * @param formID 界面标识.
219
219
  * @param selectedRows 勾选的行.
220
220
  */
221
- setSelectedRows(frmId: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
221
+ setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
222
222
  setTableWidth(formID: string | null | undefined, value: number): void;
223
223
  }
224
224
  export declare type IUseKgTableStore = StoreDefinition<'KgTable', IUseKgTableStoreState, IUseKgTableStoreGetters, IUseKgTableStoreActions>;
@@ -1,6 +1,5 @@
1
1
  import { ColumnType } from 'ant-design-vue/es/table/interface';
2
2
  import { VarGridDetail } from '../../apis/WMS/models';
3
- export declare const FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
4
3
  /** 行高. */
5
4
  export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
6
5
  /** 表格的行. */
@@ -67,14 +67,14 @@ export declare type IUseKgVar = {
67
67
  isDeletingRequesting: ComputedRef<ReturnType<IKgVarStore['isDeletingRequesting']>>;
68
68
  /** 其他按钮:正在调用接口. */
69
69
  isOtherRequesting: ComputedRef<ReturnType<IKgVarStore['isOtherRequesting']>>;
70
+ /** 变量配置是否查询完成. */
71
+ isRequested: ComputedRef<ReturnType<IKgVarStore['isRequested']>>;
70
72
  /** 正在查询变量配置. */
71
73
  isRetrieving: ComputedRef<ReturnType<IKgVarStore['isRetrieving']>>;
72
74
  /** 正在查询 VarGridMaster. */
73
75
  isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
74
76
  /** 正在查询 VarProfileMaster. */
75
77
  isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
76
- /** 变量配置是否查询完成. */
77
- isSearched: ComputedRef<ReturnType<IKgVarStore['isSearched']>>;
78
78
  /**
79
79
  * 是否正在更新.
80
80
  */
@@ -126,6 +126,7 @@ export declare type IUseKgVar = {
126
126
  varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
127
127
  /** 所有的 VarProfileMaster 列表. */
128
128
  varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
129
+ varVariables: ComputedRef<ReturnType<IKgVarStore['getVarVariables']>>;
129
130
  };
130
131
  /**
131
132
  * <p>使用变量配置.</p>
@@ -1,5 +1,5 @@
1
1
  import { StoreDefinition } from 'pinia';
2
- import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
2
+ import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../apis/WMS/models';
3
3
  import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
4
4
  /**
5
5
  * 事件类型.
@@ -58,6 +58,7 @@ export interface IUseKgVarStoreState {
58
58
  }>;
59
59
  varSubmitConfigMap: Map<string, Array<VarSubmitConfig>>;
60
60
  varSubmitDetailMap: Map<string, Array<VarSubmitDetail>>;
61
+ varVariableMap: Map<string, Array<VarVariable> | null>;
61
62
  }
62
63
  export interface IUseKgVarStoreGetters {
63
64
  /**
@@ -130,15 +131,16 @@ export interface IUseKgVarStoreGetters {
130
131
  * 获取 VarProfileMasterDTO 列表.
131
132
  */
132
133
  getVarProfileMasters(): (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
134
+ getVarVariables(): (formID: string | null | undefined) => Array<VarVariable>;
133
135
  isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
134
136
  isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
135
137
  isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
136
138
  isOtherRequesting(): (formID: string | null | undefined) => boolean | null;
139
+ /** 变量配置是否查询完成. */
140
+ isRequested(): (formID: string | null | undefined) => boolean;
137
141
  isRetrieving(): (formID: string | null | undefined) => boolean | null;
138
142
  isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
139
143
  isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
140
- /** 变量配置是否查询完成. */
141
- isSearched(): (formID: string | null | undefined) => boolean;
142
144
  isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
143
145
  /**
144
146
  * 翻译变量.
@@ -163,10 +165,10 @@ export interface IUseKgVarStoreActions {
163
165
  /**
164
166
  * 拖拽排序 VarGridDetail 列表.
165
167
  * @param formID 界面标识.
166
- * @param from_var_nam 被拽起的变量名称
167
- * @param to_var_nam 被放下的变量名称.
168
+ * @param fromVarName 被拽起的变量名称
169
+ * @param toVarName 被放下的变量名称.
168
170
  */
169
- dragSortCurrentVarGridDetails(formID: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
171
+ dragSortCurrentVarGridDetails(formID: string | null | undefined, fromVarName: string | null | undefined, toVarName: string | null | undefined): void;
170
172
  /**
171
173
  * 触发事件.
172
174
  * @param formID 界面标识.
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  export declare const getProps: () => any;
3
- export declare type IKgTableSettingConfigModalVarGridMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
3
+ export declare type KgVarConfigModalSearchVarProfileConfigProps = 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
  }>;
@@ -0,0 +1,7 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type KgVarConfigModalSearchVarProfileMasterProps = 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
+ }>;
7
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ColumnsType } from 'ant-design-vue/es/table';
2
2
  import { Ref, UnwrapRef } from 'vue';
3
- import { VarProfileDetail } from '../../../apis/WMS/models';
3
+ import { VarProfileDetail } from '../../../../apis/WMS/models';
4
4
  export declare const leftVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
5
5
  export declare const rightVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
6
6
  export declare type IUseDragRow = {};
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  export declare const getProps: () => any;
3
- export declare type IKgSearchConfigModalVarProfileConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
3
+ export declare type KgVarConfigModalTableVarGridConfigProps = 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,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  export declare const getProps: () => any;
3
- export declare type IKgSearchConfigModalVarProfileMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
3
+ export declare type KgVarConfigModalTableVarGridMasterProps = 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,6 +1,6 @@
1
1
  import { ColumnsType } from 'ant-design-vue/es/table';
2
2
  import { Ref, UnwrapRef } from 'vue';
3
- import { VarGridDetail } from '../../../../../apis/WMS/models';
3
+ import { VarGridDetail } from '../../../../apis/WMS/models';
4
4
  export declare type IUseTransferColumns = {
5
5
  /** 左侧表格的列. */
6
6
  leftColumns: () => ColumnsType<VarGridDetail>;
@@ -1,14 +1,6 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  /** 正在被配置的界面标识. */
3
3
  export declare const KG__DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
4
- /**
5
- * 界面标识: 变量配置弹窗:按钮:按钮管理.
6
- */
7
- export declare const FORM_ID__BUTTON__VAR_BUTTON = "KgVarConfig.Modal.Button.VarButton";
8
- /**
9
- * 界面标识: 变量配置弹窗:按钮:按钮配置.
10
- */
11
- export declare const FORM_ID__BUTTON__VAR_BUTTON_CONFIG = "KgVarConfig.Modal.Button.VarButtonConfig";
12
4
  /**
13
5
  * 界面标识: 变量配置弹窗:变量配置:变量列表.
14
6
  */
@@ -41,5 +33,17 @@ export declare const FORM_ID__VAR__VAR_CONFIG_LOOKUP__VAR_DDA = "KgVarConfig.Mod
41
33
  * 界面标识: 变量配置弹窗:变量配置:提示文本.
42
34
  */
43
35
  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";
36
+ /**
37
+ * 界面标识: 变量配置弹窗:按钮:按钮管理.
38
+ */
39
+ export declare const FORM_ID__BUTTON__VAR_BUTTON = "KgVarConfig.Modal.Button.VarButton";
40
+ /**
41
+ * 界面标识: 变量配置弹窗:按钮:按钮配置.
42
+ */
43
+ export declare const FORM_ID__BUTTON__VAR_BUTTON_CONFIG = "KgVarConfig.Modal.Button.VarButtonConfig";
44
+ export declare const FORM_ID__SEARCH__VAR_PROFILE_MASTER = "KgSearch.ConfigModal.VarProfileMaster";
45
+ export declare const FORM_ID__SEARCH__VAR_PROFILE_CONFIG = "KgSearch.ConfigModal.VarProfileConfig";
46
+ export declare const FORM_ID__SUBMIT__VAR_SUBMIT_DETAIL = "KgVarConfig.Modal.Submit.VarSubmitDetail";
47
+ export declare const FORM_ID__SUBMIT__VAR_SUBMIT_CONFIG = "KgVarConfig.Modal.Submit.VarSubmitConfig";
48
+ export declare const FORM_ID__TABLE__VAR_GRID_MASTER = "KgVarConfig.Modal.Table.VarGridMaster";
49
+ export declare const FORM_ID__TABLE__VAR_GRID_CONFIG = "KgVarConfig.Modal.Table.VarGridConfig";
@@ -91,19 +91,12 @@ declare const _default: {
91
91
  'NE-desc': string;
92
92
  START_WITH: string;
93
93
  'START_WITH-desc': string;
94
- VarProfileConfig: string;
95
- VarProfileMaster: string;
96
- canNotUpdateSystemVarProfileMaster: string;
97
94
  close: string;
98
95
  formTitle: string;
99
96
  pleaseSelectVarProfileMaster: string;
100
97
  };
101
- KgVarConfigModalSubmitVarSubmitConfig: {
102
- invalidWidthForSpan: string;
103
- };
104
98
  KgTable: {
105
99
  apiNotSupportDynamicQuery: string;
106
- canNotUpdateSystemVarGridMaster: string;
107
100
  column: string;
108
101
  config: string;
109
102
  emptyText: string;
@@ -129,53 +122,36 @@ declare const _default: {
129
122
  locate: string;
130
123
  row: string;
131
124
  };
132
- KgTableSettingConfigModal: {
133
- VarGridConfig: string;
134
- VarGridMaster: string;
135
- };
136
- KgTableSettingConfigModalVarGridMaster: {
137
- DESC: string;
138
- ENUM: string;
139
- FILE_SIZE: string;
140
- PROGRESS: string;
141
- ROUTE_LINK: string;
142
- UPDATE_LINK: string;
143
- YN: string;
144
- center: string;
145
- left: string;
146
- 'not-sort': string;
147
- right: string;
148
- };
149
- KgTableSettingVarGridConfig: {
150
- emptyPageSizeOptions: string;
151
- invalidCommandParameter: string;
152
- invalidPageSizeOption: string;
153
- invalidPageSizeOptions: string;
154
- };
125
+ KgTableSettingConfigModal: {};
126
+ KgTableSettingVarGridConfig: {};
155
127
  KgTableSettingVarGridMasterSaveAs: {
156
128
  title: string;
157
129
  };
158
130
  KgVar: {};
159
131
  KgVarConfig: {
132
+ VarGridConfig: string;
133
+ VarGridMaster: string;
134
+ VarProfileConfig: string;
135
+ VarProfileMaster: string;
160
136
  action: string;
161
137
  allForm: string;
162
138
  allLanguage: string;
139
+ canNotUpdateSystemVarGridMaster: string;
140
+ canNotUpdateSystemVarProfileMaster: string;
163
141
  confirm: string;
164
142
  createConfig: string;
165
- createSuccess: string;
166
143
  currentForm: string;
167
144
  currentLanguage: string;
168
145
  customLevel: string;
169
- deleteConfirmMessage: string;
170
- deleteSuccess: string;
171
- discardConfirmMessage: string;
146
+ emptyPageSizeOptions: string;
172
147
  formId: string;
173
148
  formValidationMessageForMaxAndMin: string;
174
149
  formValidationMessageForMaxLengthAndMinLength: string;
175
- groupName: string;
176
- pleaseSelectVariableFromLeft: string;
150
+ invalidCommandParameter: string;
151
+ invalidPageSizeOption: string;
152
+ invalidPageSizeOptions: string;
153
+ pleaseSelectVariable: string;
177
154
  required: string;
178
- saveSuccess: string;
179
155
  tabButton: string;
180
156
  tabSearch: string;
181
157
  tabSubmit: string;
@@ -198,6 +174,23 @@ declare const _default: {
198
174
  VarSubmitConfig: string;
199
175
  VarSubmitDetail: string;
200
176
  };
177
+ KgVarConfigModalSubmitVarSubmitConfig: {
178
+ invalidWidthForSpan: string;
179
+ };
180
+ KgVarConfigModalTableVarGridMaster: {
181
+ DESC: string;
182
+ FILE_SIZE: string;
183
+ ICON: string;
184
+ IMAGE: string;
185
+ PROGRESS: string;
186
+ ROUTE_LINK: string;
187
+ UPDATE_LINK: string;
188
+ YN: string;
189
+ center: string;
190
+ left: string;
191
+ notSort: string;
192
+ right: string;
193
+ };
201
194
  KgVarConfigSelectFormIdModal: {
202
195
  title: string;
203
196
  };