@kengic/vue 0.19.1 → 0.19.2-beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,62 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { VarProfileDetail, VarSubmitField } from '../../apis/WMS/models';
3
- import { IKgVarRetrieveCb, IKgVarStore } from './index.store';
4
- export declare type IUseKgVar = {
5
- /** 状态数据. */
6
- store: IKgVarStore;
7
- /** 正在查询变量配置. */
8
- isRetrieving: ComputedRef<ReturnType<IKgVarStore['isRetrieving']>>;
9
- /** 正在查询 VarProfileMaster. */
10
- isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
11
- /** 正在查询 VarGridMaster. */
12
- isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
13
- /** 变量配置是否查询完成. */
14
- isSearched: ComputedRef<ReturnType<IKgVarStore['isSearched']>>;
15
- /** 正在创建. */
16
- isCreating: ComputedRef<ReturnType<IKgVarStore['isCreating']>>;
17
- /** 正在创建:正在调用接口. */
18
- isCreatingRequesting: ComputedRef<ReturnType<IKgVarStore['isCreatingRequesting']>>;
19
- /** 正在更新. */
20
- isUpdating: ComputedRef<ReturnType<IKgVarStore['isUpdating']>>;
21
- /** 正在更新:正在调用接口. */
22
- isUpdatingRequesting: ComputedRef<ReturnType<IKgVarStore['isUpdatingRequesting']>>;
23
- /** 正在复制. */
24
- isCopying: ComputedRef<ReturnType<IKgVarStore['isCopying']>>;
25
- /** 正在复制:正在调用接口. */
26
- isCopyingRequesting: ComputedRef<ReturnType<IKgVarStore['isCopyingRequesting']>>;
27
- /** 正在删除. */
28
- isDeleting: ComputedRef<ReturnType<IKgVarStore['isDeleting']>>;
29
- /** 正在删除:正在调用接口. */
30
- isDeletingRequesting: ComputedRef<ReturnType<IKgVarStore['isDeletingRequesting']>>;
31
- /** 其他按钮:正在调用接口. */
32
- isOtherRequesting: ComputedRef<ReturnType<IKgVarStore['isOtherRequesting']>>;
33
- /** 所有的 VarButton 列表. */
34
- varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
35
- varButtonSearch: ComputedRef<ReturnType<IKgVarStore['getVarButtonSearch']>>;
36
- varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
37
- varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
38
- varButtonCopy: ComputedRef<ReturnType<IKgVarStore['getVarButtonCopy']>>;
39
- varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
40
- /** 所有的 VarProfileMaster 列表. */
41
- varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
42
- /** 当前的 VarProfileMaster ID. */
43
- currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
44
- /** 当前的 VarProfileMaster. */
45
- currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
46
- /** 当前的 VarProfileDetail 列表. */
47
- currentVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
48
- varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
49
- /** 所有的 VarGridMaster 列表. */
50
- varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
51
- /** 当前的 VarGridMaster ID. */
52
- currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
53
- /** 当前的 VarGridMaster. */
54
- currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
55
- /** 系统的 VarGridDetail 列表. */
56
- systemVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getSystemVarGridDetails']>>;
57
- /** 当前的 VarGridDetail 列表. */
58
- currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
59
- };
2
+ import { VarSubmitField } from '../../apis/WMS/models';
3
+ import { IKgVarRetrieveCb } from './index.store';
60
4
  /**
61
5
  * <p>使用变量配置.</p>
62
6
  * <ol>
@@ -73,12 +17,13 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
73
17
  * 界面标识.
74
18
  */
75
19
  formID: string;
20
+ /** 状态数据. */
76
21
  store: import("pinia").Store<"KgVar", import("./index.store").IKgVarState, {
77
22
  getTopFormIDs(): string[];
78
23
  getFormLevel(): (frm_id: string | null | undefined) => number;
79
24
  t(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => string;
80
25
  isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
81
- isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null;
26
+ isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null; /** 正在查询变量配置. */
82
27
  isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
83
28
  isSearched(): (frm_id: string | null | undefined) => boolean;
84
29
  isCreating(): (frm_id: string | null | undefined) => boolean | null;
@@ -88,13 +33,14 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
88
33
  isCreatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
89
34
  isUpdatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
90
35
  isCopyingRequesting(): (frm_id: string | null | undefined) => boolean | null;
36
+ /** 其他按钮:正在调用接口. */
91
37
  isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
92
38
  isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
93
39
  getVarCatalogs(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog[] | null;
94
40
  getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog | null;
95
41
  getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableLookup | null;
96
42
  getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariablePossibility | null;
97
- getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null;
43
+ getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null; /** 提交弹窗的配置属性. */
98
44
  getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableInput | null;
99
45
  getVarButtons(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton[] | null;
100
46
  getVarSubmitConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarSubmitConfig | null;
@@ -107,7 +53,11 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
107
53
  getVarSubmitFieldsForCreateNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
108
54
  getVarSubmitFieldsForUpdate(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
109
55
  getVarSubmitFieldsForUpdateKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
110
- getVarSubmitFieldsForUpdateNotKey(): (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
+ */
111
61
  getVarSubmitFieldsForUpdateKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
112
62
  getVarSubmitFieldsForUpdateNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
113
63
  getVarSubmitFieldsForCopy(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
@@ -130,9 +80,9 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
130
80
  getVarButtonDelete(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
131
81
  getVarProfileConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileConfig | null;
132
82
  getVarProfileMasters(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO[] | null;
133
- getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
134
- getVarProfileDetails(): (frm_id: string | null | undefined) => VarProfileDetail[] | null;
135
- getSystemVarProfileDetails(): (frm_id: string | null | undefined) => VarProfileDetail[] | null;
83
+ getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail | null;
84
+ getVarProfileDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
85
+ getSystemVarProfileDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
136
86
  getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
137
87
  getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO | null;
138
88
  getVarGridConfigMap(): Map<string, import("../../apis/WMS/models").VarGridConfig | null>;
@@ -166,41 +116,66 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
166
116
  setCurrentVarGridMasterID(frm_id: string, currentVarGridMasterID: string): Promise<void>;
167
117
  setVarGridDetailWidth(frm_id: string, var_nam: string | null | undefined, width: number): void;
168
118
  patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: import("../../apis/WMS/models").VarGridDetail): Promise<void>;
169
- patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
119
+ patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: import("../../apis/WMS/models").VarProfileDetail): Promise<void>;
170
120
  setVarPossibility(frm_id: string | null | undefined, var_nam: string | null | undefined, varPossibility: import("../../apis/WMS/models").VarVariablePossibility): void;
171
121
  patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean | undefined): void;
172
122
  patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
173
123
  dragSortCurrentVarGridDetails(frm_id: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
174
124
  }>;
125
+ /** 正在查询变量配置. */
175
126
  isRetrieving: ComputedRef<boolean | null>;
127
+ /** 正在查询 VarProfileMaster. */
176
128
  isRetrievingVarProfileMaster: ComputedRef<boolean | null>;
129
+ /** 正在查询 VarGridMaster. */
177
130
  isRetrievingVarGridMaster: ComputedRef<boolean | null>;
131
+ /** 变量配置是否查询完成. */
178
132
  isSearched: ComputedRef<boolean>;
133
+ /** 正在创建. */
179
134
  isCreating: ComputedRef<boolean | null>;
135
+ /** 正在创建:正在调用接口. */
180
136
  isCreatingRequesting: ComputedRef<boolean | null>;
137
+ /** 正在更新. */
181
138
  isUpdating: ComputedRef<boolean | null>;
139
+ /** 正在更新:正在调用接口. */
182
140
  isUpdatingRequesting: ComputedRef<boolean | null>;
141
+ /** 正在复制. */
183
142
  isCopying: ComputedRef<boolean | null>;
143
+ /** 正在复制:正在调用接口. */
184
144
  isCopyingRequesting: ComputedRef<boolean | null>;
145
+ /** 正在删除. */
185
146
  isDeleting: ComputedRef<boolean | null>;
147
+ /** 正在删除:正在调用接口. */
186
148
  isDeletingRequesting: ComputedRef<boolean | null>;
149
+ /** 其他按钮:正在调用接口. */
187
150
  isOtherRequesting: ComputedRef<boolean | null>;
151
+ /** 所有的 VarButton 列表. */
188
152
  varButtons: ComputedRef<import("../../apis/WMS/models").VarButton[] | null>;
189
153
  varButtonSearch: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
190
154
  varButtonCreate: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
191
155
  varButtonUpdate: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
192
156
  varButtonCopy: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
193
157
  varButtonDelete: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
158
+ /** 所有的 VarProfileMaster 列表. */
194
159
  varProfileMasters: ComputedRef<import("../../apis/WMS/models").VarProfileMasterDTO[] | null>;
160
+ /** 当前的 VarProfileMaster ID. */
195
161
  currentVarProfileMasterID: ComputedRef<string | null>;
162
+ /** 当前的 VarProfileMaster. */
196
163
  currentVarProfileMaster: ComputedRef<import("../../apis/WMS/models").VarProfileMasterDTO | null>;
197
- currentVarProfileDetails: ComputedRef<VarProfileDetail[] | null>;
164
+ /** 当前的 VarProfileDetail 列表. */
165
+ currentVarProfileDetails: ComputedRef<import("../../apis/WMS/models").VarProfileDetail[] | null>;
198
166
  varGridConfig: ComputedRef<import("../../apis/WMS/models").VarGridConfig | null>;
167
+ /** 所有的 VarGridMaster 列表. */
199
168
  varGridMasters: ComputedRef<import("../../apis/WMS/models").VarGridMasterDTO[] | null>;
169
+ /** 当前的 VarGridMaster ID. */
200
170
  currentVarGridMasteID: ComputedRef<string | null>;
171
+ /** 当前的 VarGridMaster. */
201
172
  currentVarGridMaster: ComputedRef<import("../../apis/WMS/models").VarGridMasterDTO | null>;
173
+ /** 系统的 VarGridDetail 列表. */
202
174
  systemVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
175
+ /** 当前的 VarGridDetail 列表. */
203
176
  currentVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
177
+ /** 提交弹窗的配置属性. */
178
+ varSubmitConfigProps: ComputedRef<import("../../consts").IKgSubmitConfigProps>;
204
179
  /**
205
180
  * 设置'是否正在创建'.
206
181
  * @param value 是否正在创建.
@@ -228,15 +203,15 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
228
203
  * @param isTriggerEvent 是否触发变更事件.
229
204
  */
230
205
  patchVarSubmitField(variableName: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean): void;
231
- /**
232
- * 事件: 变量配置查询完成.
233
- * @param cb 回调函数.
234
- * @param once 是否只会触发一次. 默认为 undefined.
235
- */
236
- onRetrieve: (cb: IKgVarRetrieveCb) => import("../../consts").IRemoveEventListenerHandler;
237
206
  /**
238
207
  * 翻译变量. 响应式的.
239
208
  * @param variableName 变量名称.
240
209
  */
241
210
  t(variableName: string | null | undefined): ComputedRef<string>;
211
+ /**
212
+ * 事件: 变量配置查询完成.
213
+ * @param cb 回调函数.
214
+ * @param once 是否只会触发一次. 默认为 undefined.
215
+ */
216
+ onRetrieve: (cb: IKgVarRetrieveCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
242
217
  };
@@ -1,5 +1,5 @@
1
1
  import { type StoreDefinition } from 'pinia';
2
- import { VarButton, VarButtonConfig, VarVariableCatalog, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarVariableLookup, VarVariablePossibility, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableConfig, VarVariableInput } from '../../apis/WMS/models';
2
+ import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableCatalog, VarVariableConfig, VarVariableInput, VarVariableLookup, VarVariablePossibility } from '../../apis/WMS/models';
3
3
  import { IKgEventCb, IKgSubmitConfigProps } from '../../consts';
4
4
  /**
5
5
  * 事件类型.
@@ -1,14 +1,14 @@
1
1
  import { IKgEventCb, IRemoveEventListenerHandler } from '../consts';
2
2
  /**
3
3
  * 构造事件监听.
4
- * @param frm_id 界面标识.
4
+ * @param frmId 界面标识.
5
5
  * @param store 状态管理.
6
6
  * @param event 事件名称.
7
7
  */
8
8
  export declare function onEventFactory<S extends {
9
- addEventListener(frm_id: string, event: E, cb: C): void;
10
- removeEventListener(frm_id: string, event: E, cb?: C): void;
9
+ addEventListener(frmId: string, event: E, cb: C): void;
10
+ removeEventListener(frmId: string, event: E, cb?: C): void;
11
11
  } | {
12
12
  addEventListener(event: E, cb: C): void;
13
13
  removeEventListener(event: E, cb?: C): void;
14
- } = any, E = any, C extends IKgEventCb = any>(frm_id: string | null, store: S, event: E): (cb: C) => IRemoveEventListenerHandler;
14
+ } = any, E = any, C extends IKgEventCb = any>(frmId: string | null, store: S, event: E): (cb: C, once?: boolean) => IRemoveEventListenerHandler;
@@ -30,7 +30,7 @@ export declare type IKgButtonModalProps = ModalFuncProps & {
30
30
  kgHideCancelButton?: boolean;
31
31
  };
32
32
  /**
33
- * 提交弹窗的参数.
33
+ * <p>提交弹窗的配置参数.</p>
34
34
  * <p>对应于 {@link VarSubmitConfig.props} 字段.</p>
35
35
  */
36
36
  export interface IKgSubmitConfigProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.19.1",
3
+ "version": "0.19.2-beta.1",
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",