@byteluck-fe/model-driven-shared 2.22.2-beta.7 → 2.22.2-beta.8
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 +159 -122
- 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 +223 -223
- package/dist/index.umd.js +23 -23
- package/dist/types/EventLogic.d.ts +90 -2
- package/package.json +2 -2
|
@@ -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";
|
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.8",
|
|
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": "6e749a0c9a8f9521d30f674ab84d1476a5474d91"
|
|
33
33
|
}
|