@xuda.io/runtime-bundle 1.0.246 → 1.0.248
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/xuda-runtime-bundle.js +10 -37
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +6 -2
- package/js/xuda-runtime-mini-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +10 -37
- package/js/xuda-runtime-slim.min.es.js +10 -37
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +6 -2
- package/js/xuda-worker-bundle.js +6 -2
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -27220,9 +27220,13 @@ func.utils.set_SYS_GLOBAL_OBJ_WIDGET_INFO = async function (SESSION_ID, docP) {
|
|
|
27220
27220
|
};
|
|
27221
27221
|
|
|
27222
27222
|
func.utils.get_last_datasource_no = function (SESSION_ID) {
|
|
27223
|
-
const filtered = Object.values(SESSION_OBJ[SESSION_ID].DS_GLB).filter((e) => e.tree_obj.menuType !== 'api');
|
|
27224
27223
|
|
|
27225
|
-
|
|
27224
|
+
if (typeof IS_PROCESS_SERVER !== "undefined") {
|
|
27225
|
+
return Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at?.(-1)
|
|
27226
|
+
} else {
|
|
27227
|
+
const filtered = Object.values(SESSION_OBJ[SESSION_ID].DS_GLB).filter((e) => e.tree_obj.menuType !== 'api');
|
|
27228
|
+
return filtered?.at?.(-1)?.dsSession;
|
|
27229
|
+
}
|
|
27226
27230
|
};
|
|
27227
27231
|
func.UI.utils = {};
|
|
27228
27232
|
|
|
@@ -34161,44 +34165,13 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
34161
34165
|
let iterator_val = $elm.data().xuData.iterator_val;
|
|
34162
34166
|
let iterator_key = $elm.data().xuData.iterator_key;
|
|
34163
34167
|
var i = 0;
|
|
34164
|
-
for await (
|
|
34168
|
+
for await (let [_key, _val] of Object.entries(arr)) {
|
|
34169
|
+
|
|
34170
|
+
if (_.isArray(arr)) { _key = Number(_key) }
|
|
34165
34171
|
|
|
34166
34172
|
const set_value = async function (currentRecordId, field_id, value) {
|
|
34167
34173
|
let is_dynamic_field = false;
|
|
34168
|
-
|
|
34169
|
-
// SESSION_ID,
|
|
34170
|
-
// paramsP.dsSessionP
|
|
34171
|
-
// );
|
|
34172
|
-
|
|
34173
|
-
// let view_field_obj = func.common.find_item_by_key(
|
|
34174
|
-
// _progFields,
|
|
34175
|
-
// "field_id",
|
|
34176
|
-
// field_id
|
|
34177
|
-
// );
|
|
34178
|
-
// if (view_field_obj) {
|
|
34179
|
-
// let _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
|
|
34180
|
-
// try {
|
|
34181
|
-
// const row_idx = func.common.find_ROWID_idx(
|
|
34182
|
-
// _ds,
|
|
34183
|
-
// currentRecordId
|
|
34184
|
-
// );
|
|
34185
|
-
// _ds.data_feed.rows[row_idx][field_id] = value;
|
|
34186
|
-
// } catch (err) {
|
|
34187
|
-
// console.error(err);
|
|
34188
|
-
// }
|
|
34189
|
-
// } else {
|
|
34190
|
-
// if (["_FOR_VAL", "_FOR_KEY"].includes(field_id)) {
|
|
34191
|
-
// is_dynamic_field = true;
|
|
34192
|
-
// func.datasource.add_dynamic_field_to_ds(
|
|
34193
|
-
// SESSION_ID,
|
|
34194
|
-
// paramsP.dsSessionP,
|
|
34195
|
-
// field_id,
|
|
34196
|
-
// value
|
|
34197
|
-
// );
|
|
34198
|
-
// } else {
|
|
34199
|
-
// console.error("field not exist in dataset for xu-for method")
|
|
34200
|
-
// }
|
|
34201
|
-
// }
|
|
34174
|
+
|
|
34202
34175
|
|
|
34203
34176
|
|
|
34204
34177
|
if (["_FOR_VAL", "_FOR_KEY"].includes(field_id)) {
|