@xuda.io/runtime-bundle 1.0.664 → 1.0.666
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 +4 -2
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +4 -2
- package/js/xuda-runtime-slim.min.es.js +4 -2
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +2 -1
- package/js/xuda-worker-bundle.js +2 -1
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -4857,7 +4857,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4857
4857
|
|
|
4858
4858
|
try {
|
|
4859
4859
|
const row_idx = func.common.find_ROWID_idx(_ds, record_id);
|
|
4860
|
-
if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
4860
|
+
// if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
4861
|
+
if (!_.isEqual(_ds.data_feed.rows[row_idx][field_id], value)) {
|
|
4861
4862
|
_ds.data_feed.rows[row_idx][field_id] = value;
|
|
4862
4863
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
4863
4864
|
|
|
@@ -12386,8 +12387,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12386
12387
|
const field_changed = async function (e) {
|
|
12387
12388
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
|
|
12388
12389
|
|
|
12390
|
+
// update array for checkbox that not in xu-for
|
|
12389
12391
|
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
|
|
12390
|
-
let arr_value_before_cast = (await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value;
|
|
12392
|
+
let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
|
|
12391
12393
|
let value_from_getter = bind.getter($elm[0]);
|
|
12392
12394
|
let value;
|
|
12393
12395
|
if (arr_value_before_cast.includes(value_from_getter)) {
|
|
@@ -4858,7 +4858,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4858
4858
|
|
|
4859
4859
|
try {
|
|
4860
4860
|
const row_idx = func.common.find_ROWID_idx(_ds, record_id);
|
|
4861
|
-
if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
4861
|
+
// if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
4862
|
+
if (!_.isEqual(_ds.data_feed.rows[row_idx][field_id], value)) {
|
|
4862
4863
|
_ds.data_feed.rows[row_idx][field_id] = value;
|
|
4863
4864
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
4864
4865
|
|
|
@@ -10108,8 +10109,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10108
10109
|
const field_changed = async function (e) {
|
|
10109
10110
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
|
|
10110
10111
|
|
|
10112
|
+
// update array for checkbox that not in xu-for
|
|
10111
10113
|
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
|
|
10112
|
-
let arr_value_before_cast = (await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value;
|
|
10114
|
+
let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
|
|
10113
10115
|
let value_from_getter = bind.getter($elm[0]);
|
|
10114
10116
|
let value;
|
|
10115
10117
|
if (arr_value_before_cast.includes(value_from_getter)) {
|