@xuda.io/runtime-bundle 1.0.463 → 1.0.465
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 +27 -4
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +27 -4
- package/js/xuda-runtime-slim.min.es.js +27 -4
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +27 -4
- package/js/xuda-worker-bundle.js +27 -4
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -29297,7 +29297,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29297
29297
|
break;
|
|
29298
29298
|
}
|
|
29299
29299
|
case 'component': {
|
|
29300
|
-
debugger;
|
|
29301
29300
|
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
29302
29301
|
_ds.rows_processed = 0;
|
|
29303
29302
|
_ds.viewRangeExp_rows_deleted = 0;
|
|
@@ -29315,10 +29314,33 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29315
29314
|
}
|
|
29316
29315
|
|
|
29317
29316
|
const row_not_found = async function () {
|
|
29318
|
-
if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
29317
|
+
// if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
29318
|
+
// _ds.currentRecordId = 'newRecord';
|
|
29319
|
+
// _ds.set_mode = 'C';
|
|
29320
|
+
// _ds.record_not_found = true;
|
|
29321
|
+
|
|
29322
|
+
// try {
|
|
29323
|
+
// const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
29324
|
+
// } catch (error) {
|
|
29325
|
+
// await func.datasource.render_fields_form(SESSION_ID, dataSourceSession, { id: 'newRecord', value: {} });
|
|
29326
|
+
// }
|
|
29327
|
+
|
|
29328
|
+
// var count = await func.datasource.get_field_init_count(SESSION_ID, dataSourceSession, 'newRecord', false);
|
|
29329
|
+
// if (
|
|
29330
|
+
// count > 0 // was: && !args.dataSourceNoP
|
|
29331
|
+
// ) {
|
|
29332
|
+
// await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
29333
|
+
// }
|
|
29334
|
+
// }
|
|
29335
|
+
|
|
29336
|
+
if (!prog_obj.progDataSource?.dataSourceType || prog_obj.properties.renderType === 'form' || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
29319
29337
|
_ds.currentRecordId = 'newRecord';
|
|
29320
|
-
|
|
29321
|
-
|
|
29338
|
+
if (tree_obj.rwMode === 'U' && tree_obj.allowCreate) {
|
|
29339
|
+
_ds.set_mode = 'C';
|
|
29340
|
+
}
|
|
29341
|
+
if (prog_obj.progDataSource?.dataSourceType) {
|
|
29342
|
+
_ds.record_not_found = true;
|
|
29343
|
+
}
|
|
29322
29344
|
|
|
29323
29345
|
try {
|
|
29324
29346
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
@@ -29333,6 +29355,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
29333
29355
|
await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
29334
29356
|
}
|
|
29335
29357
|
}
|
|
29358
|
+
|
|
29336
29359
|
await func.datasource.callback(SESSION_ID, dataSourceSession, args.rowIdP, args.jobNoP, _ds.prog_id);
|
|
29337
29360
|
};
|
|
29338
29361
|
if (!rows) {
|