@kengic/vue 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +4183 -4018
- package/dist/src/components/KgForm/index.hooks.d.ts +18 -5
- package/dist/src/components/KgForm/index.store.d.ts +45 -19
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +4 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +4 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -2
- package/dist/src/components/KgSubmit/index.vm.d.ts +6 -6
- package/dist/src/components/KgTable/index.hooks.d.ts +72 -84
- package/dist/src/components/KgVar/index.hooks.d.ts +82 -73
- package/dist/src/components/KgVar/index.store.d.ts +93 -85
- package/dist/src/consts/index.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +4 -1
- package/dist/src/utils/kg-var.util.d.ts +6 -6
- package/package.json +1 -1
@@ -20,80 +20,88 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
20
20
|
/** 状态数据. */
|
21
21
|
store: import("pinia").Store<"KgVar", import("./index.store").IKgVarState, {
|
22
22
|
getTopFormIDs(): string[];
|
23
|
-
getFormLevel(): (
|
24
|
-
t(): (
|
25
|
-
isRetrieving(): (
|
26
|
-
isRetrievingVarProfileMaster(): (
|
27
|
-
isRetrievingVarGridMaster(): (
|
28
|
-
isSearched(): (
|
29
|
-
isCreating(): (
|
30
|
-
isUpdating(): (
|
31
|
-
isCopying(): (
|
32
|
-
isDeleting(): (
|
33
|
-
isCreatingRequesting(): (
|
34
|
-
isUpdatingRequesting(): (
|
35
|
-
isCopyingRequesting(): (
|
36
|
-
isDeletingRequesting(): (
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
23
|
+
getFormLevel(): (formID: string | null | undefined) => number;
|
24
|
+
t(): (formID: string | null | undefined, var_nam: string | null | undefined) => string;
|
25
|
+
isRetrieving(): (formID: string | null | undefined) => boolean | null;
|
26
|
+
isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
|
27
|
+
isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
|
28
|
+
isSearched(): (formID: string | null | undefined) => boolean;
|
29
|
+
isCreating(): (formID: string | null | undefined) => boolean | null;
|
30
|
+
isUpdating(): (formID: string | null | undefined) => boolean | null;
|
31
|
+
isCopying(): (formID: string | null | undefined) => boolean | null;
|
32
|
+
isDeleting(): (formID: string | null | undefined) => boolean | null;
|
33
|
+
isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
34
|
+
isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
35
|
+
isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
|
36
|
+
isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
|
37
|
+
isOtherRequesting(): (formID: string | null | undefined) => boolean | null;
|
38
|
+
getVarCatalogs(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog[] | null;
|
39
|
+
getVarCatalog(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog | null;
|
40
|
+
getVarLookup(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableLookup | null;
|
41
|
+
getVarPossibility(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariablePossibility | null;
|
42
|
+
getVarVariableConfig(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null;
|
43
|
+
getVarVariableInput(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableInput | null;
|
44
|
+
getVarButtons(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButton[] | null;
|
45
|
+
getVarSubmitConfig(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarSubmitConfig | null;
|
46
|
+
getVarSubmitConfigProps(): (formID: string | null | undefined) => import("../../consts").IKgSubmitConfigProps;
|
47
|
+
getVarSubmitFields(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
48
|
+
getVarSubmitFieldSectionsForCreateVisible(): (formID: string | null | undefined) => string[];
|
49
|
+
getVarSubmitFieldSectionsForUpdateVisible(): (formID: string | null | undefined) => string[];
|
50
|
+
getVarSubmitFieldSectionsForCopyVisible(): (formID: string | null | undefined) => string[]; /** 所有的 VarButton 列表. */
|
51
|
+
getVarSubmitFieldSectionsForDeleteVisible(): (formID: string | null | undefined) => string[];
|
52
|
+
getVarSubmitFieldsForCreate(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
53
|
+
getVarSubmitFieldsForCreateKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
54
|
+
getVarSubmitFieldsForCreateVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
55
|
+
getVarSubmitFieldsForCreateNotKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
56
|
+
getVarSubmitFieldsForCreateKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
57
|
+
getVarSubmitFieldsForCreateNotKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
58
|
+
getVarSubmitFieldsForUpdate(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
59
|
+
getVarSubmitFieldsForUpdateKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
60
|
+
getVarSubmitFieldsForUpdateVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
61
|
+
/**
|
62
|
+
* 设置'是否正在更新'.
|
63
|
+
* @param value 是否正在更新.
|
47
64
|
*/
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
getVarButtonCopy(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
79
|
-
getVarButtonDelete(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
80
|
-
getVarProfileConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileConfig | null;
|
81
|
-
getVarProfileMasters(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO[] | null;
|
82
|
-
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail | null;
|
83
|
-
getVarProfileDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
|
84
|
-
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
|
85
|
-
getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
|
86
|
-
getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO | null;
|
65
|
+
getVarSubmitFieldsForUpdateNotKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
66
|
+
getVarSubmitFieldsForUpdateKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
67
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
68
|
+
getVarSubmitFieldsForCopy(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
69
|
+
getVarSubmitFieldsForCopyKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
70
|
+
getVarSubmitFieldsForCopyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
71
|
+
getVarSubmitFieldsForCopyNotKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
72
|
+
getVarSubmitFieldsForCopyKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
73
|
+
getVarSubmitFieldsForCopyNotKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
74
|
+
getVarSubmitFieldsForDelete(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
75
|
+
getVarSubmitFieldsForDeleteKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
76
|
+
getVarSubmitFieldsForDeleteVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
77
|
+
getVarSubmitFieldsForDeleteNotKey(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
78
|
+
getVarSubmitFieldsForDeleteKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
79
|
+
getVarSubmitFieldsForDeleteNotKeyVisible(): (formID: string | null | undefined) => VarSubmitField[] | null;
|
80
|
+
getVarSubmitField(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarSubmitField | null;
|
81
|
+
getVarButton(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
82
|
+
getVarButtonConfig(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButtonConfig | null;
|
83
|
+
getVarButtonSearch(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
84
|
+
getVarButtonCreate(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
85
|
+
getVarButtonUpdate(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
86
|
+
getVarButtonCopy(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
87
|
+
getVarButtonDelete(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
88
|
+
getVarProfileConfig(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarProfileConfig | null;
|
89
|
+
getVarProfileMasters(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO[] | null;
|
90
|
+
getVarProfileDetail(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail | null;
|
91
|
+
getVarProfileDetails(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
|
92
|
+
getSystemVarProfileDetails(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarProfileDetail[] | null;
|
93
|
+
getCurrentVarProfileMasterID(): (formID: string | null | undefined) => string | null;
|
94
|
+
getCurrentVarProfileMaster(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO | null;
|
87
95
|
getVarGridConfigMap(): Map<string, import("../../apis/WMS/models").VarGridConfig | null>;
|
88
|
-
getVarGridConfig(): (
|
89
|
-
getVarGridMasters(): (
|
90
|
-
getVarGridDetail(): (
|
91
|
-
getCurrentVarGridMasterID(): (
|
92
|
-
getCurrentVarGridMaster(): (
|
93
|
-
getCurrentVarGridDetails(): (
|
94
|
-
getSystemVarGridDetails(): (
|
95
|
-
getCurrentVisibleVarGridDetails(): (
|
96
|
-
getCurrentVisibleVarGridDetailsTotalWidth(): (
|
96
|
+
getVarGridConfig(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarGridConfig | null;
|
97
|
+
getVarGridMasters(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarGridMasterDTO[] | null;
|
98
|
+
getVarGridDetail(): (formID: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail | null;
|
99
|
+
getCurrentVarGridMasterID(): (formID: string | null | undefined) => string | null;
|
100
|
+
getCurrentVarGridMaster(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarGridMasterDTO | null;
|
101
|
+
getCurrentVarGridDetails(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail[] | null;
|
102
|
+
getSystemVarGridDetails(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail[] | null;
|
103
|
+
getCurrentVisibleVarGridDetails(): (formID: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail[] | null;
|
104
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (formID: string | null | undefined) => number | null;
|
97
105
|
}, {
|
98
106
|
dispose(frm_id: string): void;
|
99
107
|
addEventListener(frm_id: string, event: "retrieve", cb: IKgVarRetrieveCb): void;
|
@@ -173,8 +181,9 @@ export declare function useKgVar(formID?: string | null, init?: boolean, level?:
|
|
173
181
|
systemVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
|
174
182
|
/** 当前的 VarGridDetail 列表. */
|
175
183
|
currentVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
|
176
|
-
/** 提交弹窗的配置属性. */
|
177
184
|
varSubmitConfigProps: ComputedRef<import("../../consts").IKgSubmitConfigProps>;
|
185
|
+
varSubmitFieldSectionsForVisible: ComputedRef<string[]>;
|
186
|
+
varSubmitFieldsForVisible: ComputedRef<VarSubmitField[] | null>;
|
178
187
|
/**
|
179
188
|
* 设置'是否正在创建'.
|
180
189
|
* @param value 是否正在创建.
|
@@ -81,116 +81,124 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
81
81
|
/** 获取最顶层的界面标识, 即 level 最大的界面, 可能包含多个. */
|
82
82
|
getTopFormIDs(): Array<string>;
|
83
83
|
/** 获取界面层级. */
|
84
|
-
getFormLevel(): (
|
85
|
-
t(): (
|
86
|
-
isRetrieving(): (
|
87
|
-
isRetrievingVarProfileMaster(): (
|
88
|
-
isRetrievingVarGridMaster(): (
|
84
|
+
getFormLevel(): (formID: string | null | undefined) => number;
|
85
|
+
t(): (formID: string | null | undefined, var_nam: string | null | undefined) => string;
|
86
|
+
isRetrieving(): (formID: string | null | undefined) => boolean | null;
|
87
|
+
isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
|
88
|
+
isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
|
89
89
|
/** 变量配置是否查询完成. */
|
90
|
-
isSearched(): (
|
91
|
-
isCreating(): (
|
92
|
-
isUpdating(): (
|
93
|
-
isCopying(): (
|
94
|
-
isDeleting(): (
|
95
|
-
isCreatingRequesting(): (
|
96
|
-
isUpdatingRequesting(): (
|
97
|
-
isCopyingRequesting(): (
|
98
|
-
isDeletingRequesting(): (
|
99
|
-
isOtherRequesting(): (
|
100
|
-
getVarCatalogs(): (
|
90
|
+
isSearched(): (formID: string | null | undefined) => boolean;
|
91
|
+
isCreating(): (formID: string | null | undefined) => boolean | null;
|
92
|
+
isUpdating(): (formID: string | null | undefined) => boolean | null;
|
93
|
+
isCopying(): (formID: string | null | undefined) => boolean | null;
|
94
|
+
isDeleting(): (formID: string | null | undefined) => boolean | null;
|
95
|
+
isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
96
|
+
isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
97
|
+
isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
|
98
|
+
isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
|
99
|
+
isOtherRequesting(): (formID: string | null | undefined) => boolean | null;
|
100
|
+
getVarCatalogs(): (formID: string | null | undefined) => Array<VarVariableCatalog> | null;
|
101
101
|
/**
|
102
102
|
* 和 var_nam 获取 VarVariableCatalog.
|
103
103
|
*/
|
104
|
-
getVarCatalog(): (
|
105
|
-
getVarLookup(): (
|
106
|
-
getVarPossibility(): (
|
107
|
-
getVarVariableConfig(): (
|
108
|
-
getVarVariableInput(): (
|
109
|
-
getVarButtons(): (
|
110
|
-
getVarSubmitConfig(): (
|
111
|
-
getVarSubmitConfigProps(): (
|
104
|
+
getVarCatalog(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarVariableCatalog | null;
|
105
|
+
getVarLookup(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarVariableLookup | null;
|
106
|
+
getVarPossibility(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarVariablePossibility | null;
|
107
|
+
getVarVariableConfig(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarVariableConfig | null;
|
108
|
+
getVarVariableInput(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarVariableInput | null;
|
109
|
+
getVarButtons(): (formID: string | null | undefined) => Array<VarButton> | null;
|
110
|
+
getVarSubmitConfig(): (formID: string | null | undefined) => VarSubmitConfig | null;
|
111
|
+
getVarSubmitConfigProps(): (formID: string | null | undefined) => IKgSubmitConfigProps;
|
112
112
|
/** 获取所有提交字段. */
|
113
|
-
getVarSubmitFields(): (
|
113
|
+
getVarSubmitFields(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
114
|
+
getVarSubmitFieldSectionsForCreateVisible(): (formID: string | null | undefined) => Array<string>;
|
115
|
+
getVarSubmitFieldSectionsForUpdateVisible(): (formID: string | null | undefined) => Array<string>;
|
116
|
+
getVarSubmitFieldSectionsForCopyVisible(): (formID: string | null | undefined) => Array<string>;
|
117
|
+
getVarSubmitFieldSectionsForDeleteVisible(): (formID: string | null | undefined) => Array<string>;
|
114
118
|
/** 获取创建时的提交字段. */
|
115
|
-
getVarSubmitFieldsForCreate(): (
|
116
|
-
/** 获取创建时的提交字段:
|
117
|
-
getVarSubmitFieldsForCreateKey(): (
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
119
|
+
getVarSubmitFieldsForCreate(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
120
|
+
/** 获取创建时的提交字段: 关键的字段. */
|
121
|
+
getVarSubmitFieldsForCreateKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
122
|
+
getVarSubmitFieldsForCreateVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
123
|
+
/** 获取创建时的提交字段: 普通的字段. */
|
124
|
+
getVarSubmitFieldsForCreateNotKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
125
|
+
/** 获取创建时的提交字段: 关键的字段, 可见的字段. */
|
126
|
+
getVarSubmitFieldsForCreateKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
127
|
+
/** 获取创建时的提交字段: 普通的字段, 可见的字段. */
|
128
|
+
getVarSubmitFieldsForCreateNotKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
124
129
|
/** 获取更新时的提交字段. */
|
125
|
-
getVarSubmitFieldsForUpdate(): (
|
126
|
-
/** 获取更新时的提交字段:
|
127
|
-
getVarSubmitFieldsForUpdateKey(): (
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
130
|
+
getVarSubmitFieldsForUpdate(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
131
|
+
/** 获取更新时的提交字段: 关键的字段. */
|
132
|
+
getVarSubmitFieldsForUpdateKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
133
|
+
getVarSubmitFieldsForUpdateVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
134
|
+
/** 获取更新时的提交字段: 普通的字段. */
|
135
|
+
getVarSubmitFieldsForUpdateNotKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
136
|
+
/** 获取更新时的提交字段: 关键的字段, 可见的字段. */
|
137
|
+
getVarSubmitFieldsForUpdateKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
138
|
+
/** 获取更新时的提交字段: 普通的字段, 可见的字段. */
|
139
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
134
140
|
/** 获取复制时的提交字段. */
|
135
|
-
getVarSubmitFieldsForCopy(): (
|
136
|
-
/** 获取复制时的提交字段:
|
137
|
-
getVarSubmitFieldsForCopyKey(): (
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
141
|
+
getVarSubmitFieldsForCopy(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
142
|
+
/** 获取复制时的提交字段: 关键的字段. */
|
143
|
+
getVarSubmitFieldsForCopyKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
144
|
+
getVarSubmitFieldsForCopyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
145
|
+
/** 获取复制时的提交字段: 普通的字段. */
|
146
|
+
getVarSubmitFieldsForCopyNotKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
147
|
+
/** 获取复制时的提交字段: 关键的字段, 可见的字段. */
|
148
|
+
getVarSubmitFieldsForCopyKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
149
|
+
/** 获取复制时的提交字段: 普通的字段, 可见的字段. */
|
150
|
+
getVarSubmitFieldsForCopyNotKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
144
151
|
/** 获取删除时的提交字段. */
|
145
|
-
getVarSubmitFieldsForDelete(): (
|
146
|
-
/** 获取删除时的提交字段:
|
147
|
-
getVarSubmitFieldsForDeleteKey(): (
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
152
|
+
getVarSubmitFieldsForDelete(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
153
|
+
/** 获取删除时的提交字段: 关键的字段. */
|
154
|
+
getVarSubmitFieldsForDeleteKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
155
|
+
getVarSubmitFieldsForDeleteVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
156
|
+
/** 获取删除时的提交字段: 普通的字段. */
|
157
|
+
getVarSubmitFieldsForDeleteNotKey(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
158
|
+
/** 获取删除时的提交字段: 关键的字段, 可见的字段. */
|
159
|
+
getVarSubmitFieldsForDeleteKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
160
|
+
/** 获取删除时的提交字段: 普通的字段, 可见的字段. */
|
161
|
+
getVarSubmitFieldsForDeleteNotKeyVisible(): (formID: string | null | undefined) => Array<VarSubmitField> | null;
|
162
|
+
getVarSubmitField(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarSubmitField | null;
|
163
|
+
getVarButton(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarButton | null;
|
164
|
+
getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
|
165
|
+
getVarButtonSearch(): (formID: string | null | undefined) => VarButton | null;
|
166
|
+
getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
|
167
|
+
getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
|
168
|
+
getVarButtonCopy(): (formID: string | null | undefined) => VarButton | null;
|
169
|
+
getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
|
170
|
+
getVarProfileConfig(): (formID: string | null | undefined) => VarProfileConfig | null;
|
171
|
+
getVarProfileMasters(): (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
164
172
|
/**
|
165
173
|
* 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
166
174
|
*/
|
167
|
-
getVarProfileDetail(): (
|
175
|
+
getVarProfileDetail(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
|
168
176
|
/**
|
169
177
|
* 获取 VarProfileDetail 列表.
|
170
178
|
*/
|
171
|
-
getVarProfileDetails(): (
|
179
|
+
getVarProfileDetails(): (formID: string | null | undefined) => Array<VarProfileDetail> | null;
|
172
180
|
/**
|
173
181
|
* 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
|
174
182
|
*/
|
175
|
-
getSystemVarProfileDetails(): (
|
183
|
+
getSystemVarProfileDetails(): (formID: string | null | undefined) => Array<VarProfileDetail> | null;
|
176
184
|
/** 获取当前 VarProfileMaster 的 ID. */
|
177
|
-
getCurrentVarProfileMasterID(): (
|
178
|
-
getCurrentVarProfileMaster(): (
|
185
|
+
getCurrentVarProfileMasterID(): (formID: string | null | undefined) => string | null;
|
186
|
+
getCurrentVarProfileMaster(): (formID: string | null | undefined) => VarProfileMasterDTO | null;
|
179
187
|
/** 获取所有的 VarGridConfig. */
|
180
188
|
getVarGridConfigMap(): Map<string, VarGridConfig | null>;
|
181
|
-
getVarGridConfig(): (
|
182
|
-
getVarGridMasters(): (
|
183
|
-
getVarGridDetail(): (
|
189
|
+
getVarGridConfig(): (formID: string | null | undefined) => VarGridConfig | null;
|
190
|
+
getVarGridMasters(): (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
191
|
+
getVarGridDetail(): (formID: string | null | undefined, var_nam: string | null | undefined) => VarGridDetail | null;
|
184
192
|
/** 获取当前'表格视图'的 ID. */
|
185
|
-
getCurrentVarGridMasterID(): (
|
186
|
-
getCurrentVarGridMaster(): (
|
187
|
-
getCurrentVarGridDetails(): (
|
193
|
+
getCurrentVarGridMasterID(): (formID: string | null | undefined) => string | null;
|
194
|
+
getCurrentVarGridMaster(): (formID: string | null | undefined) => VarGridMasterDTO | null;
|
195
|
+
getCurrentVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
188
196
|
/**
|
189
197
|
* 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
|
190
198
|
*/
|
191
|
-
getSystemVarGridDetails(): (
|
192
|
-
getCurrentVisibleVarGridDetails(): (
|
193
|
-
getCurrentVisibleVarGridDetailsTotalWidth(): (
|
199
|
+
getSystemVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
200
|
+
getCurrentVisibleVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
201
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (formID: string | null | undefined) => number | null;
|
194
202
|
}, {
|
195
203
|
/**
|
196
204
|
* 清理数据.
|
@@ -32,7 +32,7 @@ export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
|
32
32
|
* @see VarVariableConfig.ctrl_prop
|
33
33
|
* @see IKgVariableConfigProps
|
34
34
|
*/
|
35
|
-
export declare const enum
|
35
|
+
export declare const enum KG_FORM_ITEM_CONTROL_TYPE {
|
36
36
|
/** 文本. */
|
37
37
|
INPUT = "INPUT",
|
38
38
|
/** 密码. */
|
@@ -530,6 +530,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
530
530
|
}>;
|
531
531
|
getFrmId: import("vue").ComputedRef<string | null | undefined>;
|
532
532
|
getVarButtons: import("vue").ComputedRef<VarButton[]>;
|
533
|
+
initCreateVarDdaQuery: () => void;
|
533
534
|
setIsLoading: (_isLoading: boolean | null | undefined) => void;
|
534
535
|
setResultSetMetadataColumns: (columns: Array<ResultSetMetadataColumn> | null | undefined) => void;
|
535
536
|
setFrmId: (_frmId: string | null | undefined) => void;
|
@@ -1092,6 +1093,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
1092
1093
|
}>;
|
1093
1094
|
getFrmId: import("vue").ComputedRef<string | null | undefined>;
|
1094
1095
|
getVarButtons: import("vue").ComputedRef<VarButton[]>;
|
1096
|
+
initCreateVarDdaQuery: () => void;
|
1095
1097
|
setIsLoading: (_isLoading: boolean | null | undefined) => void;
|
1096
1098
|
setResultSetMetadataColumns: (columns: Array<ResultSetMetadataColumn> | null | undefined) => void;
|
1097
1099
|
setFrmId: (_frmId: string | null | undefined) => void;
|
@@ -1654,6 +1656,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
1654
1656
|
}>;
|
1655
1657
|
getFrmId: import("vue").ComputedRef<string | null | undefined>;
|
1656
1658
|
getVarButtons: import("vue").ComputedRef<VarButton[]>;
|
1659
|
+
initCreateVarDdaQuery: () => void;
|
1657
1660
|
setIsLoading: (_isLoading: boolean | null | undefined) => void;
|
1658
1661
|
setResultSetMetadataColumns: (columns: Array<ResultSetMetadataColumn> | null | undefined) => void;
|
1659
1662
|
setFrmId: (_frmId: string | null | undefined) => void;
|
@@ -1685,4 +1688,4 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
1685
1688
|
}) => void;
|
1686
1689
|
setVarVariableConfigs: (varVariableConfigs: Array<VarVariableConfig>) => void;
|
1687
1690
|
getVarText: (varNam: string | null | undefined) => string;
|
1688
|
-
}, "setIsLoading" | "setResultSetMetadataColumns" | "setFrmId" | "patchSysPermission" | "updateVarDda" | "createVarButton" | "patchVarButton" | "deleteVarButton" | "setVarProfileDetails" | "setVarGridDetails" | "setVarSubmitFields" | "createVarVariableCatalog" | "updateVarVariableCatalog" | "setVarVariableConfigs" | "getVarText">>;
|
1691
|
+
}, "setIsLoading" | "initCreateVarDdaQuery" | "setResultSetMetadataColumns" | "setFrmId" | "patchSysPermission" | "updateVarDda" | "createVarButton" | "patchVarButton" | "deleteVarButton" | "setVarProfileDetails" | "setVarGridDetails" | "setVarSubmitFields" | "createVarVariableCatalog" | "updateVarVariableCatalog" | "setVarVariableConfigs" | "getVarText">>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import dayjs from 'dayjs';
|
2
|
-
import {
|
2
|
+
import { KG_FORM_ITEM_CONTROL_TYPE } from '../consts';
|
3
3
|
/**
|
4
4
|
* 变量相关工具.
|
5
5
|
*/
|
@@ -12,14 +12,14 @@ export declare class KgVarUtil {
|
|
12
12
|
static parseRequestParamsToJSON(params?: string | null): Record<string, any>;
|
13
13
|
/**
|
14
14
|
* 根据控件类型, 将任意的值(可能非法)转换为合法的值.
|
15
|
-
* @param
|
16
|
-
* @param
|
15
|
+
* @param formID 界面标识.
|
16
|
+
* @param variableName 变量名称.
|
17
17
|
* @param $dayjs dayjs.
|
18
18
|
* @param value 原始的值.
|
19
|
-
* @param
|
19
|
+
* @param operation 操作类型. C: 创建, R: 查询, U: 更新, D: 删除, CP: 复制.
|
20
20
|
* @return {} 转换后的合法的值.
|
21
21
|
*/
|
22
|
-
static transformFormItemValue(
|
22
|
+
static transformFormItemValue(formID: string, variableName: string, $dayjs: typeof dayjs, value: any, operation: 'C' | 'R' | 'U' | 'D' | 'CP'): any;
|
23
23
|
/**
|
24
24
|
* 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
|
25
25
|
* @param frm_id 界面标识.
|
@@ -32,5 +32,5 @@ export declare class KgVarUtil {
|
|
32
32
|
* 根据控件类型获取高级查询操作符的下拉列表.
|
33
33
|
* @param controlType 控件类型.
|
34
34
|
*/
|
35
|
-
static getDynamicQueryOperatorSelectOptions(controlType:
|
35
|
+
static getDynamicQueryOperatorSelectOptions(controlType: KG_FORM_ITEM_CONTROL_TYPE): any;
|
36
36
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.20.
|
3
|
+
"version": "0.20.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",
|