@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.
@@ -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
- "onabort",
63
- "onafterprint",
64
- "onautocomplete",
65
- "onautocompleteerror",
66
- "onbeforeprint",
67
- "onbeforeunload",
68
- "onblur",
69
- "oncancel",
70
- "oncanplay",
71
- "oncanplaythrough",
72
- "onchange",
73
- "onclick",
74
- "onclose",
75
- "oncontextmenu",
76
- "oncopy",
77
- "oncuechange",
78
- "oncut",
79
- "ondblclick",
80
- "ondrag",
81
- "ondragend",
82
- "ondragenter",
83
- "ondragexit",
84
- "ondragleave",
85
- "ondragover",
86
- "ondragstart",
87
- "ondrop",
88
- "ondurationchange",
89
- "onemptied",
90
- "onended",
91
- "onerror",
92
- "onfocus",
93
- "onhashchange",
94
- "oninput",
95
- "oninvalid",
96
- "onkeydown",
97
- "onkeypress",
98
- "onkeyup",
99
- "onload",
100
- "onloadeddata",
101
- "onloadedmetadata",
102
- "onloadstart",
103
- "onmessage",
104
- "onmousedown",
105
- "onmouseenter",
106
- "onmouseleave",
107
- "onmousemove",
108
- "onmouseout",
109
- "onmouseover",
110
- "onmouseup",
111
- "onmousewheel",
112
- "onoffline",
113
- "ononline",
114
- "onpagehide",
115
- "onpageshow",
116
- "onpaste",
117
- "onpause",
118
- "onplay",
119
- "onplaying",
120
- "onpopstate",
121
- "onprogress",
122
- "onratechange",
123
- "onreset",
124
- "onresize",
125
- "onscroll",
126
- "onsearch",
127
- "onseeked",
128
- "onseeking",
129
- "onselect",
130
- "onshow",
131
- "onsort",
132
- "onstalled",
133
- "onstorage",
134
- "onsubmit",
135
- "onsuspend",
136
- "ontimeupdate",
137
- "ontoggle",
138
- "onunload",
139
- "onvolumechange",
140
- "onwaiting",
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
- "xuda-api-library.mjs",
162
- {
163
- func,
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
- "xu-cdn",
192
- "xu-style",
193
- "xu-render",
194
- "xu-for-key",
195
- "xu-for-val",
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 = ["xu-bind", "xu-class", "xu-script", "xu-ui-plugin"];
200
- glb.attr_abbreviations_arr = [
201
- "xu-click",
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 = {};