@xuda.io/runtime-bundle 1.0.1421 → 1.0.1422
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 +6 -5
- package/js/xuda-runtime-bundle.min.js +2 -2
- package/js/xuda-runtime-slim.js +6 -5
- package/js/xuda-runtime-slim.min.es.js +6 -5
- package/js/xuda-runtime-slim.min.js +2 -2
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +4 -3
- package/js/xuda-worker-bundle.js +4 -3
- package/js/xuda-worker-bundle.min.js +1 -1
- package/js/xuda_common-bundle.js +4 -3
- package/js/xuda_common-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -2115,11 +2115,12 @@ func.runtime.render.get_root_data_system = function (SESSION_ID) {
|
|
|
2115
2115
|
func.runtime.render.resolve_xu_for_source = async function (SESSION_ID, dsSessionP, value) {
|
|
2116
2116
|
let arr = value;
|
|
2117
2117
|
let reference_source_obj;
|
|
2118
|
+
const normalized_reference = typeof value === 'string' && value.startsWith('@') ? value.substring(1) : value;
|
|
2118
2119
|
const _progFields = await func.datasource.get_progFields(SESSION_ID, dsSessionP);
|
|
2119
|
-
let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id',
|
|
2120
|
+
let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', normalized_reference);
|
|
2120
2121
|
|
|
2121
|
-
if (view_field_obj) {
|
|
2122
|
-
reference_source_obj = await func.datasource.get_value(SESSION_ID,
|
|
2122
|
+
if (view_field_obj || normalized_reference !== value) {
|
|
2123
|
+
reference_source_obj = await func.datasource.get_value(SESSION_ID, normalized_reference, dsSessionP);
|
|
2123
2124
|
arr = reference_source_obj?.ret?.value;
|
|
2124
2125
|
} else {
|
|
2125
2126
|
if (typeof value === 'string') {
|
|
@@ -16347,8 +16348,8 @@ func.runtime.render.get_xu_for_iterators = function ($elm) {
|
|
|
16347
16348
|
return {
|
|
16348
16349
|
iterator_key: custom_iterator_key || '_FOR_KEY',
|
|
16349
16350
|
iterator_val: custom_iterator_val || '_FOR_VAL',
|
|
16350
|
-
is_key_dynamic_field:
|
|
16351
|
-
is_val_dynamic_field:
|
|
16351
|
+
is_key_dynamic_field: true,
|
|
16352
|
+
is_val_dynamic_field: true,
|
|
16352
16353
|
};
|
|
16353
16354
|
};
|
|
16354
16355
|
func.runtime.render.attach_iterate_info_to_children = function ($divP, iterate_info) {
|
|
@@ -2041,11 +2041,12 @@ func.runtime.render.get_root_data_system = function (SESSION_ID) {
|
|
|
2041
2041
|
func.runtime.render.resolve_xu_for_source = async function (SESSION_ID, dsSessionP, value) {
|
|
2042
2042
|
let arr = value;
|
|
2043
2043
|
let reference_source_obj;
|
|
2044
|
+
const normalized_reference = typeof value === 'string' && value.startsWith('@') ? value.substring(1) : value;
|
|
2044
2045
|
const _progFields = await func.datasource.get_progFields(SESSION_ID, dsSessionP);
|
|
2045
|
-
let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id',
|
|
2046
|
+
let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', normalized_reference);
|
|
2046
2047
|
|
|
2047
|
-
if (view_field_obj) {
|
|
2048
|
-
reference_source_obj = await func.datasource.get_value(SESSION_ID,
|
|
2048
|
+
if (view_field_obj || normalized_reference !== value) {
|
|
2049
|
+
reference_source_obj = await func.datasource.get_value(SESSION_ID, normalized_reference, dsSessionP);
|
|
2049
2050
|
arr = reference_source_obj?.ret?.value;
|
|
2050
2051
|
} else {
|
|
2051
2052
|
if (typeof value === 'string') {
|
|
@@ -16273,8 +16274,8 @@ func.runtime.render.get_xu_for_iterators = function ($elm) {
|
|
|
16273
16274
|
return {
|
|
16274
16275
|
iterator_key: custom_iterator_key || '_FOR_KEY',
|
|
16275
16276
|
iterator_val: custom_iterator_val || '_FOR_VAL',
|
|
16276
|
-
is_key_dynamic_field:
|
|
16277
|
-
is_val_dynamic_field:
|
|
16277
|
+
is_key_dynamic_field: true,
|
|
16278
|
+
is_val_dynamic_field: true,
|
|
16278
16279
|
};
|
|
16279
16280
|
};
|
|
16280
16281
|
func.runtime.render.attach_iterate_info_to_children = function ($divP, iterate_info) {
|