@byteluck-fe/model-driven-shared 2.22.2-beta.7 → 2.23.0-beta.10
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 +112 -121
- package/dist/esm/RulesMessage.js +17 -16
- package/dist/esm/locales/en-US.json +154 -154
- package/dist/esm/locales/ja-JP.json +154 -154
- package/dist/esm/locales/zh-CN.json +237 -223
- package/dist/esm/log.js +15 -25
- package/dist/index.umd.js +1 -45
- package/dist/types/EventLogic.d.ts +90 -2
- package/dist/types/RulesMessage.d.ts +2 -2
- package/dist/types/locales/index.d.ts +15 -1
- package/package.json +5 -3
|
@@ -16,12 +16,100 @@ export interface EventItem {
|
|
|
16
16
|
name: string;
|
|
17
17
|
code: string;
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
19
|
+
declare const eventMap: readonly [{
|
|
20
|
+
readonly key: "on_click";
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly code: "click";
|
|
23
|
+
}, {
|
|
24
|
+
readonly key: "on_click_finish";
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly code: "click-finish";
|
|
27
|
+
}, {
|
|
28
|
+
readonly key: "on_change";
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly code: "change";
|
|
31
|
+
}, {
|
|
32
|
+
readonly key: "on_search";
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly code: "search";
|
|
35
|
+
}, {
|
|
36
|
+
readonly key: "on_list_change";
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly code: "list-change";
|
|
39
|
+
}, {
|
|
40
|
+
readonly key: "on_list_search";
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly code: "list-search";
|
|
43
|
+
}, {
|
|
44
|
+
readonly key: "on_list_mounted";
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly code: "list-mounted";
|
|
47
|
+
}, {
|
|
48
|
+
readonly key: "on_list_delete";
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly code: "list-delete";
|
|
51
|
+
}, {
|
|
52
|
+
readonly key: "on_list_before_insert";
|
|
53
|
+
readonly name: string;
|
|
54
|
+
readonly code: "list-before-insert";
|
|
55
|
+
}, {
|
|
56
|
+
readonly key: "on_input";
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly code: "input";
|
|
59
|
+
}, {
|
|
60
|
+
readonly key: "on_blur";
|
|
61
|
+
readonly name: string;
|
|
62
|
+
readonly code: "blur";
|
|
63
|
+
}, {
|
|
64
|
+
readonly key: "on_focus";
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly code: "focus";
|
|
67
|
+
}, {
|
|
68
|
+
readonly key: "on_wps_open";
|
|
69
|
+
readonly name: string;
|
|
70
|
+
readonly code: "wps-open";
|
|
71
|
+
}, {
|
|
72
|
+
readonly key: "on_wps_save";
|
|
73
|
+
readonly name: string;
|
|
74
|
+
readonly code: "wps-save";
|
|
75
|
+
}, {
|
|
76
|
+
readonly key: "on_wps_rename";
|
|
77
|
+
readonly name: string;
|
|
78
|
+
readonly code: "wps-rename";
|
|
79
|
+
}, {
|
|
80
|
+
readonly key: "on_list_actions";
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly code: "list-actions";
|
|
83
|
+
}, {
|
|
84
|
+
readonly key: "on_list_render_operation";
|
|
85
|
+
readonly name: string;
|
|
86
|
+
readonly code: "list-render-operation";
|
|
87
|
+
}, {
|
|
88
|
+
readonly key: "on_list_rowclick";
|
|
89
|
+
readonly name: string;
|
|
90
|
+
readonly code: "list-rowclick";
|
|
91
|
+
}, {
|
|
92
|
+
readonly key: "on_list_before_rowdelete";
|
|
93
|
+
readonly name: string;
|
|
94
|
+
readonly code: "list-before-rowdelete";
|
|
95
|
+
}, {
|
|
96
|
+
readonly key: "on_list_before_import";
|
|
97
|
+
readonly name: string;
|
|
98
|
+
readonly code: "list-before-import";
|
|
99
|
+
}, {
|
|
100
|
+
readonly key: "on_list_rows_checked";
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly code: "list-rows-checked";
|
|
103
|
+
}, {
|
|
104
|
+
readonly key: "on_change_tab";
|
|
105
|
+
readonly name: string;
|
|
106
|
+
readonly code: "change-tab";
|
|
107
|
+
}, {
|
|
20
108
|
readonly key: "on_modal_ok";
|
|
21
109
|
readonly name: string;
|
|
22
110
|
readonly code: "modal-ok";
|
|
23
111
|
}];
|
|
24
|
-
export type InnerEventCode = (typeof
|
|
112
|
+
export type InnerEventCode = (typeof eventMap)[number]['code'];
|
|
25
113
|
export declare class EventLogic {
|
|
26
114
|
static readonly events: readonly [{
|
|
27
115
|
readonly key: "on_click";
|
|
@@ -5,9 +5,9 @@ type Variable = {
|
|
|
5
5
|
[key in Keys]?: string | number;
|
|
6
6
|
};
|
|
7
7
|
export declare class RulesMessage {
|
|
8
|
-
static $i18n:
|
|
8
|
+
static $i18n: void;
|
|
9
9
|
static getMessage(messageKey: keyof Message, variable?: Variable): string;
|
|
10
|
-
static resetI18n(locale?: string):
|
|
10
|
+
static resetI18n(locale?: string): void;
|
|
11
11
|
static setLocale(locale: string, messagesI18n: any): void;
|
|
12
12
|
}
|
|
13
13
|
export {};
|
|
@@ -194,7 +194,7 @@ declare const _default: {
|
|
|
194
194
|
listDataChange: string;
|
|
195
195
|
search: string;
|
|
196
196
|
valueChange: string;
|
|
197
|
-
|
|
197
|
+
finished: string;
|
|
198
198
|
click: string;
|
|
199
199
|
pleaseEnterNameorEmail: string;
|
|
200
200
|
pleaseEnterDate: string;
|
|
@@ -221,6 +221,20 @@ declare const _default: {
|
|
|
221
221
|
loadCtrlErrorTip: string;
|
|
222
222
|
loadCtrlError: string;
|
|
223
223
|
fullLine: string;
|
|
224
|
+
min: string;
|
|
225
|
+
max: string;
|
|
226
|
+
createWPS: string;
|
|
227
|
+
reset: string;
|
|
228
|
+
query: string;
|
|
229
|
+
detailed: string;
|
|
230
|
+
print: string;
|
|
231
|
+
draft: string;
|
|
232
|
+
save: string;
|
|
233
|
+
cancel: string;
|
|
234
|
+
uploadImg: string;
|
|
235
|
+
signature: string;
|
|
236
|
+
uploadFile: string;
|
|
237
|
+
linkContent: string;
|
|
224
238
|
};
|
|
225
239
|
enUS: {
|
|
226
240
|
isNotNumber: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0-beta.10",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,8 +26,10 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@byteluck-fe/locale-message": "^1.0.8",
|
|
29
30
|
"fast-json-clone": "^1.0.2",
|
|
30
|
-
"humps": "^2.0.1"
|
|
31
|
+
"humps": "^2.0.1",
|
|
32
|
+
"vue-i18n": "^9.13.1"
|
|
31
33
|
},
|
|
32
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "296f200cd62a6fc67551721f2fdc39bb9eb2ebb0"
|
|
33
35
|
}
|