@xuda.io/runtime-bundle 1.0.1334 → 1.0.1336
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-slim.js
CHANGED
|
@@ -9180,7 +9180,7 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
9180
9180
|
if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
|
|
9181
9181
|
SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
|
|
9182
9182
|
}
|
|
9183
|
-
SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
|
|
9183
|
+
// SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
|
|
9184
9184
|
|
|
9185
9185
|
function deepUpdateObject(a, b) {
|
|
9186
9186
|
for (let key in b) {
|
|
@@ -9188,14 +9188,16 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
9188
9188
|
if (typeof b[key] === 'object' && b[key] !== null && !Array.isArray(b[key]) && a[key] && typeof a[key] === 'object') {
|
|
9189
9189
|
deepUpdateObject(a[key], b[key]);
|
|
9190
9190
|
} else {
|
|
9191
|
-
a[key]
|
|
9191
|
+
if (!_.isEqual(a[key], b[key])) {
|
|
9192
|
+
a[key] = b[key];
|
|
9193
|
+
}
|
|
9192
9194
|
}
|
|
9193
9195
|
}
|
|
9194
9196
|
}
|
|
9195
9197
|
return a;
|
|
9196
9198
|
}
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
+
deepUpdateObject(SYS_GLOBAL_OBJ_REFS[ref_field_id], obj);
|
|
9200
|
+
SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
|
|
9199
9201
|
ret = true;
|
|
9200
9202
|
}
|
|
9201
9203
|
|
|
@@ -20139,7 +20141,7 @@ func.index.set_ds_0_proxy = function (SESSION_ID) {
|
|
|
20139
20141
|
const fx = _session?.watchers?.[path];
|
|
20140
20142
|
fx(change);
|
|
20141
20143
|
}
|
|
20142
|
-
|
|
20144
|
+
return;
|
|
20143
20145
|
if (!change.path.includes('data_system.SYS_GLOBAL_OBJ_REFS')) return;
|
|
20144
20146
|
const ref_id = change.path.split('SYS_GLOBAL_OBJ_REFS.')[1].split('.')[0];
|
|
20145
20147
|
if (!ref_id) return;
|
|
@@ -9181,7 +9181,7 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
9181
9181
|
if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
|
|
9182
9182
|
SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
|
|
9183
9183
|
}
|
|
9184
|
-
SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
|
|
9184
|
+
// SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
|
|
9185
9185
|
|
|
9186
9186
|
function deepUpdateObject(a, b) {
|
|
9187
9187
|
for (let key in b) {
|
|
@@ -9189,14 +9189,16 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
9189
9189
|
if (typeof b[key] === 'object' && b[key] !== null && !Array.isArray(b[key]) && a[key] && typeof a[key] === 'object') {
|
|
9190
9190
|
deepUpdateObject(a[key], b[key]);
|
|
9191
9191
|
} else {
|
|
9192
|
-
a[key]
|
|
9192
|
+
if (!_.isEqual(a[key], b[key])) {
|
|
9193
|
+
a[key] = b[key];
|
|
9194
|
+
}
|
|
9193
9195
|
}
|
|
9194
9196
|
}
|
|
9195
9197
|
}
|
|
9196
9198
|
return a;
|
|
9197
9199
|
}
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
+
deepUpdateObject(SYS_GLOBAL_OBJ_REFS[ref_field_id], obj);
|
|
9201
|
+
SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
|
|
9200
9202
|
ret = true;
|
|
9201
9203
|
}
|
|
9202
9204
|
|
|
@@ -20140,7 +20142,7 @@ func.index.set_ds_0_proxy = function (SESSION_ID) {
|
|
|
20140
20142
|
const fx = _session?.watchers?.[path];
|
|
20141
20143
|
fx(change);
|
|
20142
20144
|
}
|
|
20143
|
-
|
|
20145
|
+
return;
|
|
20144
20146
|
if (!change.path.includes('data_system.SYS_GLOBAL_OBJ_REFS')) return;
|
|
20145
20147
|
const ref_id = change.path.split('SYS_GLOBAL_OBJ_REFS.')[1].split('.')[0];
|
|
20146
20148
|
if (!ref_id) return;
|