@xuda.io/xuda-worker-bundle-min 1.3.1105 → 1.3.1106
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 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2697,7 +2697,7 @@ func.datasource.execute = async function (
|
|
|
2697
2697
|
"after_record"
|
|
2698
2698
|
);
|
|
2699
2699
|
}
|
|
2700
|
-
|
|
2700
|
+
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
|
|
2701
2701
|
break;
|
|
2702
2702
|
|
|
2703
2703
|
case "set_data":
|
|
@@ -2714,15 +2714,15 @@ func.datasource.execute = async function (
|
|
|
2714
2714
|
);
|
|
2715
2715
|
}
|
|
2716
2716
|
|
|
2717
|
-
const get_data_from_data_feed = function () {
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
};
|
|
2717
|
+
// const get_data_from_data_feed = function () {
|
|
2718
|
+
// const rows = _ds?.data_feed?.rows || [];
|
|
2719
|
+
// return rows.map((item) => ({
|
|
2720
|
+
// id: item._ROWID,
|
|
2721
|
+
// value: {
|
|
2722
|
+
// ...item.value,
|
|
2723
|
+
// },
|
|
2724
|
+
// }));
|
|
2725
|
+
// };
|
|
2726
2726
|
|
|
2727
2727
|
const find_ROWID_idx_from_raw_data_arr = function (rowId) {
|
|
2728
2728
|
if (!_raw_data_rows) {
|
|
@@ -2816,7 +2816,7 @@ func.datasource.execute = async function (
|
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
2818
2818
|
// ret = await callback_datasource();
|
|
2819
|
-
|
|
2819
|
+
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
|
|
2820
2820
|
break;
|
|
2821
2821
|
|
|
2822
2822
|
case "component":
|
|
@@ -8459,7 +8459,7 @@ func.events.execute = async function (
|
|
|
8459
8459
|
"xuda-event-javascript-module.mjs"
|
|
8460
8460
|
);
|
|
8461
8461
|
|
|
8462
|
-
|
|
8462
|
+
const result = await module.run_javascript(
|
|
8463
8463
|
SESSION_ID,
|
|
8464
8464
|
jobNoP,
|
|
8465
8465
|
dsSession,
|
|
@@ -8467,6 +8467,7 @@ func.events.execute = async function (
|
|
|
8467
8467
|
${refIdP.value}
|
|
8468
8468
|
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`
|
|
8469
8469
|
);
|
|
8470
|
+
return result
|
|
8470
8471
|
},
|
|
8471
8472
|
execute_evaluate_javascript: async function () {
|
|
8472
8473
|
const module = await func.common.get_module(
|
|
@@ -8474,7 +8475,7 @@ func.events.execute = async function (
|
|
|
8474
8475
|
"xuda-event-javascript-module.mjs"
|
|
8475
8476
|
);
|
|
8476
8477
|
|
|
8477
|
-
|
|
8478
|
+
const result = await module.run_javascript(
|
|
8478
8479
|
SESSION_ID,
|
|
8479
8480
|
jobNoP,
|
|
8480
8481
|
dsSession,
|
|
@@ -8483,6 +8484,7 @@ func.events.execute = async function (
|
|
|
8483
8484
|
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`,
|
|
8484
8485
|
true
|
|
8485
8486
|
);
|
|
8487
|
+
return result
|
|
8486
8488
|
},
|
|
8487
8489
|
loader_on: async function () {
|
|
8488
8490
|
glb.CURRENT_APP_LOADING = null;
|