@byteluck-fe/model-driven-shared 2.22.2-beta.4 → 2.22.2-beta.7
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.
- package/dist/esm/EventLogic.js +123 -113
- package/dist/esm/RulesMessage.js +7 -1
- package/dist/esm/locales/zh-CN.json +68 -2
- package/dist/index.umd.js +19 -19
- package/dist/types/EventLogic.d.ts +49 -137
- package/dist/types/locales/index.d.ts +67 -1
- package/package.json +2 -2
|
@@ -16,285 +16,197 @@ export interface EventItem {
|
|
|
16
16
|
name: string;
|
|
17
17
|
code: string;
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
20
|
-
readonly key: "on_click";
|
|
21
|
-
readonly name: "点击时";
|
|
22
|
-
readonly code: "click";
|
|
23
|
-
}, {
|
|
24
|
-
readonly key: "on_click_finish";
|
|
25
|
-
readonly name: "执行完成时";
|
|
26
|
-
readonly code: "click-finish";
|
|
27
|
-
}, {
|
|
28
|
-
readonly key: "on_change";
|
|
29
|
-
readonly name: "值发生变化时";
|
|
30
|
-
readonly code: "change";
|
|
31
|
-
}, {
|
|
32
|
-
readonly key: "on_search";
|
|
33
|
-
readonly name: "搜索时";
|
|
34
|
-
readonly code: "search";
|
|
35
|
-
}, {
|
|
36
|
-
readonly key: "on_list_change";
|
|
37
|
-
readonly name: "列表数据变化时";
|
|
38
|
-
readonly code: "list-change";
|
|
39
|
-
}, {
|
|
40
|
-
readonly key: "on_list_search";
|
|
41
|
-
readonly name: "列表数据查询构建时";
|
|
42
|
-
readonly code: "list-search";
|
|
43
|
-
}, {
|
|
44
|
-
readonly key: "on_list_mounted";
|
|
45
|
-
readonly name: "列表数据返回时";
|
|
46
|
-
readonly code: "list-mounted";
|
|
47
|
-
}, {
|
|
48
|
-
readonly key: "on_list_delete";
|
|
49
|
-
readonly name: "列表数据删除时";
|
|
50
|
-
readonly code: "list-delete";
|
|
51
|
-
}, {
|
|
52
|
-
readonly key: "on_list_before_insert";
|
|
53
|
-
readonly name: "列表数据插入前";
|
|
54
|
-
readonly code: "list-before-insert";
|
|
55
|
-
}, {
|
|
56
|
-
readonly key: "on_input";
|
|
57
|
-
readonly name: "用户输入时";
|
|
58
|
-
readonly code: "input";
|
|
59
|
-
}, {
|
|
60
|
-
readonly key: "on_blur";
|
|
61
|
-
readonly name: "失去焦点时";
|
|
62
|
-
readonly code: "blur";
|
|
63
|
-
}, {
|
|
64
|
-
readonly key: "on_focus";
|
|
65
|
-
readonly name: "获取焦点时";
|
|
66
|
-
readonly code: "focus";
|
|
67
|
-
}, {
|
|
68
|
-
readonly key: "on_wps_open";
|
|
69
|
-
readonly name: "打开文件时";
|
|
70
|
-
readonly code: "wps-open";
|
|
71
|
-
}, {
|
|
72
|
-
readonly key: "on_wps_save";
|
|
73
|
-
readonly name: "保存文件时";
|
|
74
|
-
readonly code: "wps-save";
|
|
75
|
-
}, {
|
|
76
|
-
readonly key: "on_wps_rename";
|
|
77
|
-
readonly name: "重命名时";
|
|
78
|
-
readonly code: "wps-rename";
|
|
79
|
-
}, {
|
|
80
|
-
readonly key: "on_list_actions";
|
|
81
|
-
readonly name: "点击操作按钮时";
|
|
82
|
-
readonly code: "list-actions";
|
|
83
|
-
}, {
|
|
84
|
-
readonly key: "on_list_render_operation";
|
|
85
|
-
readonly name: "操作列渲染时";
|
|
86
|
-
readonly code: "list-render-operation";
|
|
87
|
-
}, {
|
|
88
|
-
readonly key: "on_list_rowclick";
|
|
89
|
-
readonly name: "行点击时";
|
|
90
|
-
readonly code: "list-rowclick";
|
|
91
|
-
}, {
|
|
92
|
-
readonly key: "on_list_before_rowdelete";
|
|
93
|
-
readonly name: "行删除前";
|
|
94
|
-
readonly code: "list-before-rowdelete";
|
|
95
|
-
}, {
|
|
96
|
-
readonly key: "on_list_before_import";
|
|
97
|
-
readonly name: "列表数据导入前";
|
|
98
|
-
readonly code: "list-before-import";
|
|
99
|
-
}, {
|
|
100
|
-
readonly key: "on_list_rows_checked";
|
|
101
|
-
readonly name: "行选中时";
|
|
102
|
-
readonly code: "list-rows-checked";
|
|
103
|
-
}, {
|
|
104
|
-
readonly key: "on_change_tab";
|
|
105
|
-
readonly name: "标签页切换时";
|
|
106
|
-
readonly code: "change-tab";
|
|
107
|
-
}, {
|
|
19
|
+
declare const eventMapType: readonly [{
|
|
108
20
|
readonly key: "on_modal_ok";
|
|
109
|
-
readonly name:
|
|
21
|
+
readonly name: string;
|
|
110
22
|
readonly code: "modal-ok";
|
|
111
23
|
}];
|
|
112
|
-
export type InnerEventCode = (typeof
|
|
24
|
+
export type InnerEventCode = (typeof eventMapType)[number]['code'];
|
|
113
25
|
export declare class EventLogic {
|
|
114
26
|
static readonly events: readonly [{
|
|
115
27
|
readonly key: "on_click";
|
|
116
|
-
readonly name:
|
|
28
|
+
readonly name: string;
|
|
117
29
|
readonly code: "click";
|
|
118
30
|
}, {
|
|
119
31
|
readonly key: "on_click_finish";
|
|
120
|
-
readonly name:
|
|
32
|
+
readonly name: string;
|
|
121
33
|
readonly code: "click-finish";
|
|
122
34
|
}, {
|
|
123
35
|
readonly key: "on_change";
|
|
124
|
-
readonly name:
|
|
36
|
+
readonly name: string;
|
|
125
37
|
readonly code: "change";
|
|
126
38
|
}, {
|
|
127
39
|
readonly key: "on_search";
|
|
128
|
-
readonly name:
|
|
40
|
+
readonly name: string;
|
|
129
41
|
readonly code: "search";
|
|
130
42
|
}, {
|
|
131
43
|
readonly key: "on_list_change";
|
|
132
|
-
readonly name:
|
|
44
|
+
readonly name: string;
|
|
133
45
|
readonly code: "list-change";
|
|
134
46
|
}, {
|
|
135
47
|
readonly key: "on_list_search";
|
|
136
|
-
readonly name:
|
|
48
|
+
readonly name: string;
|
|
137
49
|
readonly code: "list-search";
|
|
138
50
|
}, {
|
|
139
51
|
readonly key: "on_list_mounted";
|
|
140
|
-
readonly name:
|
|
52
|
+
readonly name: string;
|
|
141
53
|
readonly code: "list-mounted";
|
|
142
54
|
}, {
|
|
143
55
|
readonly key: "on_list_delete";
|
|
144
|
-
readonly name:
|
|
56
|
+
readonly name: string;
|
|
145
57
|
readonly code: "list-delete";
|
|
146
58
|
}, {
|
|
147
59
|
readonly key: "on_list_before_insert";
|
|
148
|
-
readonly name:
|
|
60
|
+
readonly name: string;
|
|
149
61
|
readonly code: "list-before-insert";
|
|
150
62
|
}, {
|
|
151
63
|
readonly key: "on_input";
|
|
152
|
-
readonly name:
|
|
64
|
+
readonly name: string;
|
|
153
65
|
readonly code: "input";
|
|
154
66
|
}, {
|
|
155
67
|
readonly key: "on_blur";
|
|
156
|
-
readonly name:
|
|
68
|
+
readonly name: string;
|
|
157
69
|
readonly code: "blur";
|
|
158
70
|
}, {
|
|
159
71
|
readonly key: "on_focus";
|
|
160
|
-
readonly name:
|
|
72
|
+
readonly name: string;
|
|
161
73
|
readonly code: "focus";
|
|
162
74
|
}, {
|
|
163
75
|
readonly key: "on_wps_open";
|
|
164
|
-
readonly name:
|
|
76
|
+
readonly name: string;
|
|
165
77
|
readonly code: "wps-open";
|
|
166
78
|
}, {
|
|
167
79
|
readonly key: "on_wps_save";
|
|
168
|
-
readonly name:
|
|
80
|
+
readonly name: string;
|
|
169
81
|
readonly code: "wps-save";
|
|
170
82
|
}, {
|
|
171
83
|
readonly key: "on_wps_rename";
|
|
172
|
-
readonly name:
|
|
84
|
+
readonly name: string;
|
|
173
85
|
readonly code: "wps-rename";
|
|
174
86
|
}, {
|
|
175
87
|
readonly key: "on_list_actions";
|
|
176
|
-
readonly name:
|
|
88
|
+
readonly name: string;
|
|
177
89
|
readonly code: "list-actions";
|
|
178
90
|
}, {
|
|
179
91
|
readonly key: "on_list_render_operation";
|
|
180
|
-
readonly name:
|
|
92
|
+
readonly name: string;
|
|
181
93
|
readonly code: "list-render-operation";
|
|
182
94
|
}, {
|
|
183
95
|
readonly key: "on_list_rowclick";
|
|
184
|
-
readonly name:
|
|
96
|
+
readonly name: string;
|
|
185
97
|
readonly code: "list-rowclick";
|
|
186
98
|
}, {
|
|
187
99
|
readonly key: "on_list_before_rowdelete";
|
|
188
|
-
readonly name:
|
|
100
|
+
readonly name: string;
|
|
189
101
|
readonly code: "list-before-rowdelete";
|
|
190
102
|
}, {
|
|
191
103
|
readonly key: "on_list_before_import";
|
|
192
|
-
readonly name:
|
|
104
|
+
readonly name: string;
|
|
193
105
|
readonly code: "list-before-import";
|
|
194
106
|
}, {
|
|
195
107
|
readonly key: "on_list_rows_checked";
|
|
196
|
-
readonly name:
|
|
108
|
+
readonly name: string;
|
|
197
109
|
readonly code: "list-rows-checked";
|
|
198
110
|
}, {
|
|
199
111
|
readonly key: "on_change_tab";
|
|
200
|
-
readonly name:
|
|
112
|
+
readonly name: string;
|
|
201
113
|
readonly code: "change-tab";
|
|
202
114
|
}, {
|
|
203
115
|
readonly key: "on_modal_ok";
|
|
204
|
-
readonly name:
|
|
116
|
+
readonly name: string;
|
|
205
117
|
readonly code: "modal-ok";
|
|
206
118
|
}];
|
|
207
119
|
static getEventsFromKeys(keys: string | string[]): ({
|
|
208
120
|
readonly key: "on_click";
|
|
209
|
-
readonly name:
|
|
121
|
+
readonly name: string;
|
|
210
122
|
readonly code: "click";
|
|
211
123
|
} | {
|
|
212
124
|
readonly key: "on_click_finish";
|
|
213
|
-
readonly name:
|
|
125
|
+
readonly name: string;
|
|
214
126
|
readonly code: "click-finish";
|
|
215
127
|
} | {
|
|
216
128
|
readonly key: "on_change";
|
|
217
|
-
readonly name:
|
|
129
|
+
readonly name: string;
|
|
218
130
|
readonly code: "change";
|
|
219
131
|
} | {
|
|
220
132
|
readonly key: "on_search";
|
|
221
|
-
readonly name:
|
|
133
|
+
readonly name: string;
|
|
222
134
|
readonly code: "search";
|
|
223
135
|
} | {
|
|
224
136
|
readonly key: "on_list_change";
|
|
225
|
-
readonly name:
|
|
137
|
+
readonly name: string;
|
|
226
138
|
readonly code: "list-change";
|
|
227
139
|
} | {
|
|
228
140
|
readonly key: "on_list_search";
|
|
229
|
-
readonly name:
|
|
141
|
+
readonly name: string;
|
|
230
142
|
readonly code: "list-search";
|
|
231
143
|
} | {
|
|
232
144
|
readonly key: "on_list_mounted";
|
|
233
|
-
readonly name:
|
|
145
|
+
readonly name: string;
|
|
234
146
|
readonly code: "list-mounted";
|
|
235
147
|
} | {
|
|
236
148
|
readonly key: "on_list_delete";
|
|
237
|
-
readonly name:
|
|
149
|
+
readonly name: string;
|
|
238
150
|
readonly code: "list-delete";
|
|
239
151
|
} | {
|
|
240
152
|
readonly key: "on_list_before_insert";
|
|
241
|
-
readonly name:
|
|
153
|
+
readonly name: string;
|
|
242
154
|
readonly code: "list-before-insert";
|
|
243
155
|
} | {
|
|
244
156
|
readonly key: "on_input";
|
|
245
|
-
readonly name:
|
|
157
|
+
readonly name: string;
|
|
246
158
|
readonly code: "input";
|
|
247
159
|
} | {
|
|
248
160
|
readonly key: "on_blur";
|
|
249
|
-
readonly name:
|
|
161
|
+
readonly name: string;
|
|
250
162
|
readonly code: "blur";
|
|
251
163
|
} | {
|
|
252
164
|
readonly key: "on_focus";
|
|
253
|
-
readonly name:
|
|
165
|
+
readonly name: string;
|
|
254
166
|
readonly code: "focus";
|
|
255
167
|
} | {
|
|
256
168
|
readonly key: "on_wps_open";
|
|
257
|
-
readonly name:
|
|
169
|
+
readonly name: string;
|
|
258
170
|
readonly code: "wps-open";
|
|
259
171
|
} | {
|
|
260
172
|
readonly key: "on_wps_save";
|
|
261
|
-
readonly name:
|
|
173
|
+
readonly name: string;
|
|
262
174
|
readonly code: "wps-save";
|
|
263
175
|
} | {
|
|
264
176
|
readonly key: "on_wps_rename";
|
|
265
|
-
readonly name:
|
|
177
|
+
readonly name: string;
|
|
266
178
|
readonly code: "wps-rename";
|
|
267
179
|
} | {
|
|
268
180
|
readonly key: "on_list_actions";
|
|
269
|
-
readonly name:
|
|
181
|
+
readonly name: string;
|
|
270
182
|
readonly code: "list-actions";
|
|
271
183
|
} | {
|
|
272
184
|
readonly key: "on_list_render_operation";
|
|
273
|
-
readonly name:
|
|
185
|
+
readonly name: string;
|
|
274
186
|
readonly code: "list-render-operation";
|
|
275
187
|
} | {
|
|
276
188
|
readonly key: "on_list_rowclick";
|
|
277
|
-
readonly name:
|
|
189
|
+
readonly name: string;
|
|
278
190
|
readonly code: "list-rowclick";
|
|
279
191
|
} | {
|
|
280
192
|
readonly key: "on_list_before_rowdelete";
|
|
281
|
-
readonly name:
|
|
193
|
+
readonly name: string;
|
|
282
194
|
readonly code: "list-before-rowdelete";
|
|
283
195
|
} | {
|
|
284
196
|
readonly key: "on_list_before_import";
|
|
285
|
-
readonly name:
|
|
197
|
+
readonly name: string;
|
|
286
198
|
readonly code: "list-before-import";
|
|
287
199
|
} | {
|
|
288
200
|
readonly key: "on_list_rows_checked";
|
|
289
|
-
readonly name:
|
|
201
|
+
readonly name: string;
|
|
290
202
|
readonly code: "list-rows-checked";
|
|
291
203
|
} | {
|
|
292
204
|
readonly key: "on_change_tab";
|
|
293
|
-
readonly name:
|
|
205
|
+
readonly name: string;
|
|
294
206
|
readonly code: "change-tab";
|
|
295
207
|
} | {
|
|
296
208
|
readonly key: "on_modal_ok";
|
|
297
|
-
readonly name:
|
|
209
|
+
readonly name: string;
|
|
298
210
|
readonly code: "modal-ok";
|
|
299
211
|
})[];
|
|
300
212
|
static getEventsFromControl(control: {
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
pleaseBindAtLeastOneDisplayValueInDataSetting: string;
|
|
63
63
|
rootNodeIsRequiredInDataSetting: string;
|
|
64
64
|
pleaseEnterMaxHeight: string;
|
|
65
|
-
pleaseEnter: string;
|
|
66
65
|
pleaseEnterWatermark: string;
|
|
67
66
|
pleaseEnterFileName: string;
|
|
68
67
|
pleaseUploadAtLeastOnePrintTemplate: string;
|
|
@@ -155,6 +154,73 @@ declare const _default: {
|
|
|
155
154
|
batchSubmissionListButton: string;
|
|
156
155
|
exportRecordListButton: string;
|
|
157
156
|
listViewSelect: string;
|
|
157
|
+
endTime: string;
|
|
158
|
+
startTime: string;
|
|
159
|
+
unit: string;
|
|
160
|
+
result: string;
|
|
161
|
+
currency: string;
|
|
162
|
+
endDate: string;
|
|
163
|
+
startDate: string;
|
|
164
|
+
pleaseSelectCompanyName: string;
|
|
165
|
+
pleaseSelectPhoneOrEmail: string;
|
|
166
|
+
pleaseSelectSignType: string;
|
|
167
|
+
pleaseSelectSigner: string;
|
|
168
|
+
pleaseSelectOnlyOne: string;
|
|
169
|
+
pleaseSelectSignFile: string;
|
|
170
|
+
pleaseSelect: string;
|
|
171
|
+
pleaseSelectOrg: string;
|
|
172
|
+
pleaseSelectDept: string;
|
|
173
|
+
pleaseSelectEndDate: string;
|
|
174
|
+
pleaseSelectStartDate: string;
|
|
175
|
+
pleaseChooseAddress: string;
|
|
176
|
+
modalConfirm: string;
|
|
177
|
+
tabChange: string;
|
|
178
|
+
rowSelected: string;
|
|
179
|
+
listDataImport: string;
|
|
180
|
+
rowDelete: string;
|
|
181
|
+
rowClick: string;
|
|
182
|
+
cellRender: string;
|
|
183
|
+
onClickBtn: string;
|
|
184
|
+
rename: string;
|
|
185
|
+
onSaveFile: string;
|
|
186
|
+
onOpenFile: string;
|
|
187
|
+
onFocus: string;
|
|
188
|
+
onBlur: string;
|
|
189
|
+
onInput: string;
|
|
190
|
+
listDataAdd: string;
|
|
191
|
+
listDataDelete: string;
|
|
192
|
+
listDataBack: string;
|
|
193
|
+
listDataCreate: string;
|
|
194
|
+
listDataChange: string;
|
|
195
|
+
search: string;
|
|
196
|
+
valueChange: string;
|
|
197
|
+
fibished: string;
|
|
198
|
+
click: string;
|
|
199
|
+
pleaseEnterNameorEmail: string;
|
|
200
|
+
pleaseEnterDate: string;
|
|
201
|
+
pleaseEnterAutonumber: string;
|
|
202
|
+
pleaseEnter: string;
|
|
203
|
+
defaultTemplate: string;
|
|
204
|
+
left: string;
|
|
205
|
+
top: string;
|
|
206
|
+
default: string;
|
|
207
|
+
readonly: string;
|
|
208
|
+
required: string;
|
|
209
|
+
textTip: string;
|
|
210
|
+
hideCaption: string;
|
|
211
|
+
titleRequired: string;
|
|
212
|
+
organizationalForm: string;
|
|
213
|
+
businessType: string;
|
|
214
|
+
deleteConfirm: string;
|
|
215
|
+
hide: string;
|
|
216
|
+
processStatus: string;
|
|
217
|
+
approvedDocuments: string;
|
|
218
|
+
delete: string;
|
|
219
|
+
edit: string;
|
|
220
|
+
view: string;
|
|
221
|
+
loadCtrlErrorTip: string;
|
|
222
|
+
loadCtrlError: string;
|
|
223
|
+
fullLine: string;
|
|
158
224
|
};
|
|
159
225
|
enUS: {
|
|
160
226
|
isNotNumber: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-shared",
|
|
3
|
-
"version": "2.22.2-beta.
|
|
3
|
+
"version": "2.22.2-beta.7",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"fast-json-clone": "^1.0.2",
|
|
30
30
|
"humps": "^2.0.1"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "0875adbab5443db95f08fba55fd65e0ff45da953"
|
|
33
33
|
}
|