@xuda.io/runtime-bundle 1.0.461 → 1.0.463
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/js/modules/xuda-actions-module.esm.js +111 -169
- package/js/modules/xuda-actions-module.esm.min.js +1 -1
- package/js/modules/xuda-studio-checker.min.mjs +1 -1
- package/js/modules/xuda-studio-checker.mjs +621 -982
- package/js/xuda-runtime-bundle.js +112 -176
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +98 -131
- package/js/xuda-runtime-slim.js +112 -176
- package/js/xuda-runtime-slim.min.es.js +112 -176
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +110 -143
- package/js/xuda-worker-bundle.js +110 -143
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -18,18 +18,7 @@ var STUDIO_PEER_CONN_MSG_QUEUE = [];
|
|
|
18
18
|
|
|
19
19
|
var CLIENT_ACTIVITY_TS;
|
|
20
20
|
|
|
21
|
-
glb.REFERENCE_LESS_FUNCTIONS = [
|
|
22
|
-
"update",
|
|
23
|
-
"raise_event",
|
|
24
|
-
"call_library",
|
|
25
|
-
"invoke_action",
|
|
26
|
-
"loader_on",
|
|
27
|
-
"loader_off",
|
|
28
|
-
"emit_event",
|
|
29
|
-
"delay",
|
|
30
|
-
"execute_evaluate_javascript",
|
|
31
|
-
"execute_native_javascript",
|
|
32
|
-
];
|
|
21
|
+
glb.REFERENCE_LESS_FUNCTIONS = ['update', 'raise_event', 'call_library', 'invoke_action', 'loader_on', 'loader_off', 'emit_event', 'delay', 'execute_evaluate_javascript', 'execute_native_javascript'];
|
|
33
22
|
|
|
34
23
|
var CACHE_PROG_UI = {};
|
|
35
24
|
|
|
@@ -46,7 +35,7 @@ var ELEMENT_CLICK_EVENT = null;
|
|
|
46
35
|
var posX = 0; //cursor x
|
|
47
36
|
var posY = 0; //cursor x
|
|
48
37
|
var LOADER_ACTIVE = false;
|
|
49
|
-
var LOADER_TEXT =
|
|
38
|
+
var LOADER_TEXT = '';
|
|
50
39
|
var REFRESHER_IN_PROGRESS = false;
|
|
51
40
|
|
|
52
41
|
glb.screen_num = 0;
|
|
@@ -59,115 +48,105 @@ var IS_PROGRESS_SCREEN_OPEN = null;
|
|
|
59
48
|
var UI_WORKER_OBJ = { jobs: [], num: 9000 };
|
|
60
49
|
|
|
61
50
|
glb.html5_events_handler = [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
51
|
+
'onabort',
|
|
52
|
+
'onafterprint',
|
|
53
|
+
'onautocomplete',
|
|
54
|
+
'onautocompleteerror',
|
|
55
|
+
'onbeforeprint',
|
|
56
|
+
'onbeforeunload',
|
|
57
|
+
'onblur',
|
|
58
|
+
'oncancel',
|
|
59
|
+
'oncanplay',
|
|
60
|
+
'oncanplaythrough',
|
|
61
|
+
'onchange',
|
|
62
|
+
'onclick',
|
|
63
|
+
'onclose',
|
|
64
|
+
'oncontextmenu',
|
|
65
|
+
'oncopy',
|
|
66
|
+
'oncuechange',
|
|
67
|
+
'oncut',
|
|
68
|
+
'ondblclick',
|
|
69
|
+
'ondrag',
|
|
70
|
+
'ondragend',
|
|
71
|
+
'ondragenter',
|
|
72
|
+
'ondragexit',
|
|
73
|
+
'ondragleave',
|
|
74
|
+
'ondragover',
|
|
75
|
+
'ondragstart',
|
|
76
|
+
'ondrop',
|
|
77
|
+
'ondurationchange',
|
|
78
|
+
'onemptied',
|
|
79
|
+
'onended',
|
|
80
|
+
'onerror',
|
|
81
|
+
'onfocus',
|
|
82
|
+
'onhashchange',
|
|
83
|
+
'oninput',
|
|
84
|
+
'oninvalid',
|
|
85
|
+
'onkeydown',
|
|
86
|
+
'onkeypress',
|
|
87
|
+
'onkeyup',
|
|
88
|
+
'onload',
|
|
89
|
+
'onloadeddata',
|
|
90
|
+
'onloadedmetadata',
|
|
91
|
+
'onloadstart',
|
|
92
|
+
'onmessage',
|
|
93
|
+
'onmousedown',
|
|
94
|
+
'onmouseenter',
|
|
95
|
+
'onmouseleave',
|
|
96
|
+
'onmousemove',
|
|
97
|
+
'onmouseout',
|
|
98
|
+
'onmouseover',
|
|
99
|
+
'onmouseup',
|
|
100
|
+
'onmousewheel',
|
|
101
|
+
'onoffline',
|
|
102
|
+
'ononline',
|
|
103
|
+
'onpagehide',
|
|
104
|
+
'onpageshow',
|
|
105
|
+
'onpaste',
|
|
106
|
+
'onpause',
|
|
107
|
+
'onplay',
|
|
108
|
+
'onplaying',
|
|
109
|
+
'onpopstate',
|
|
110
|
+
'onprogress',
|
|
111
|
+
'onratechange',
|
|
112
|
+
'onreset',
|
|
113
|
+
'onresize',
|
|
114
|
+
'onscroll',
|
|
115
|
+
'onsearch',
|
|
116
|
+
'onseeked',
|
|
117
|
+
'onseeking',
|
|
118
|
+
'onselect',
|
|
119
|
+
'onshow',
|
|
120
|
+
'onsort',
|
|
121
|
+
'onstalled',
|
|
122
|
+
'onstorage',
|
|
123
|
+
'onsubmit',
|
|
124
|
+
'onsuspend',
|
|
125
|
+
'ontimeupdate',
|
|
126
|
+
'ontoggle',
|
|
127
|
+
'onunload',
|
|
128
|
+
'onvolumechange',
|
|
129
|
+
'onwaiting',
|
|
141
130
|
];
|
|
142
131
|
|
|
143
132
|
glb.lifecycle = {
|
|
144
133
|
plugins: {},
|
|
145
134
|
// queue: [],
|
|
146
|
-
fn_arr: [
|
|
147
|
-
"beforeInit",
|
|
148
|
-
"initialized",
|
|
149
|
-
"systemReady",
|
|
150
|
-
"beforeMounted",
|
|
151
|
-
"mounted",
|
|
152
|
-
],
|
|
135
|
+
fn_arr: ['beforeInit', 'initialized', 'systemReady', 'beforeMounted', 'mounted'],
|
|
153
136
|
// add(type, fn, params) {
|
|
154
137
|
// this.queue.push({ type, fn, params });
|
|
155
138
|
// },
|
|
156
139
|
execute: async function (SESSION_ID, event) {
|
|
157
140
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
158
141
|
|
|
159
|
-
const xu_api = await func.common.get_module(
|
|
142
|
+
const xu_api = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
143
|
+
func,
|
|
144
|
+
glb,
|
|
145
|
+
SESSION_OBJ,
|
|
160
146
|
SESSION_ID,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
glb,
|
|
165
|
-
SESSION_OBJ,
|
|
166
|
-
SESSION_ID,
|
|
167
|
-
APP_OBJ,
|
|
168
|
-
dsSession: func.utils.get_last_datasource_no(SESSION_ID),
|
|
169
|
-
}
|
|
170
|
-
);
|
|
147
|
+
APP_OBJ,
|
|
148
|
+
dsSession: func.utils.get_last_datasource_no(SESSION_ID),
|
|
149
|
+
});
|
|
171
150
|
|
|
172
151
|
var params = {
|
|
173
152
|
SESSION_ID,
|
|
@@ -176,9 +155,7 @@ glb.lifecycle = {
|
|
|
176
155
|
xu_api,
|
|
177
156
|
};
|
|
178
157
|
|
|
179
|
-
for await (const [plugin_name, val] of Object.entries(
|
|
180
|
-
glb.lifecycle.plugins
|
|
181
|
-
)) {
|
|
158
|
+
for await (const [plugin_name, val] of Object.entries(glb.lifecycle.plugins)) {
|
|
182
159
|
if (val?.plugin_script?.[event]) {
|
|
183
160
|
params.setup_data = val.setup_data;
|
|
184
161
|
await val.plugin_script[event](params);
|
|
@@ -188,27 +165,17 @@ glb.lifecycle = {
|
|
|
188
165
|
};
|
|
189
166
|
|
|
190
167
|
glb.run_xu_before = [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
168
|
+
'xu-cdn',
|
|
169
|
+
'xu-style',
|
|
170
|
+
'xu-render',
|
|
171
|
+
'xu-for-key',
|
|
172
|
+
'xu-for-val',
|
|
196
173
|
// "xu-ui-plugin",
|
|
197
174
|
// "programParameters",
|
|
198
175
|
];
|
|
199
|
-
glb.run_xu_after = [
|
|
200
|
-
glb.attr_abbreviations_arr = [
|
|
201
|
-
|
|
202
|
-
"xu-dblclick",
|
|
203
|
-
"xu-contextmenu",
|
|
204
|
-
"xu-focus",
|
|
205
|
-
"xu-keyup",
|
|
206
|
-
"xu-change",
|
|
207
|
-
"xu-blur",
|
|
208
|
-
"xu-init",
|
|
209
|
-
];
|
|
210
|
-
glb.solid_attributes = ["disabled"];
|
|
211
|
-
|
|
176
|
+
glb.run_xu_after = ['xu-bind', 'xu-class', 'xu-script', 'xu-ui-plugin'];
|
|
177
|
+
glb.attr_abbreviations_arr = ['xu-click', 'xu-dblclick', 'xu-contextmenu', 'xu-focus', 'xu-keyup', 'xu-change', 'xu-blur', 'xu-init'];
|
|
178
|
+
glb.solid_attributes = ['disabled'];
|
|
212
179
|
func.utils = {};
|
|
213
180
|
|
|
214
181
|
func.utils.debug = {};
|