@xuda.io/xuda-worker-bundle-min 1.3.787 → 1.3.789
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/index.js +15 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1899,6 +1899,8 @@ func.datasource.prepare = async function (
|
|
|
1899
1899
|
IS_DATASOURCE_REFRESH = true;
|
|
1900
1900
|
|
|
1901
1901
|
try {
|
|
1902
|
+
if (!_ds.v) _ds.v = {};
|
|
1903
|
+
|
|
1902
1904
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
1903
1905
|
delete _ds.rows_found;
|
|
1904
1906
|
_ds.raw_data = {};
|
|
@@ -1927,7 +1929,6 @@ func.datasource.prepare = async function (
|
|
|
1927
1929
|
// init_v();
|
|
1928
1930
|
|
|
1929
1931
|
if (IS_DATASOURCE_REFRESH) {
|
|
1930
|
-
debugger;
|
|
1931
1932
|
if (!static_refreshP) await set_parameters(); // do only on new datasource or refresh
|
|
1932
1933
|
return func.datasource.execute(SESSION_ID, dataSourceSession, true);
|
|
1933
1934
|
}
|
|
@@ -8371,18 +8372,29 @@ func.events.execute = async function (
|
|
|
8371
8372
|
SESSION_ID,
|
|
8372
8373
|
"xuda-event-javascript-module.mjs"
|
|
8373
8374
|
);
|
|
8374
|
-
|
|
8375
|
+
|
|
8376
|
+
return await module.run_javascript(
|
|
8377
|
+
SESSION_ID,
|
|
8378
|
+
jobNoP,
|
|
8379
|
+
dsSession,
|
|
8380
|
+
`(async function($elm) {
|
|
8381
|
+
${refIdP.value}
|
|
8382
|
+
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`
|
|
8383
|
+
);
|
|
8375
8384
|
},
|
|
8376
8385
|
execute_evaluate_javascript: async function () {
|
|
8377
8386
|
const module = await func.common.get_module(
|
|
8378
8387
|
SESSION_ID,
|
|
8379
8388
|
"xuda-event-javascript-module.mjs"
|
|
8380
8389
|
);
|
|
8390
|
+
|
|
8381
8391
|
return await module.run_javascript(
|
|
8382
8392
|
SESSION_ID,
|
|
8383
8393
|
jobNoP,
|
|
8384
|
-
refIdP,
|
|
8385
8394
|
dsSession,
|
|
8395
|
+
`(async function($elm) {
|
|
8396
|
+
${refIdP.value}
|
|
8397
|
+
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`,
|
|
8386
8398
|
true
|
|
8387
8399
|
);
|
|
8388
8400
|
},
|