@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
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -4212,7 +4212,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
4212
4212
|
break;
|
|
4213
4213
|
}
|
|
4214
4214
|
case 'component': {
|
|
4215
|
-
debugger;
|
|
4216
4215
|
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
4217
4216
|
_ds.rows_processed = 0;
|
|
4218
4217
|
_ds.viewRangeExp_rows_deleted = 0;
|
|
@@ -4230,10 +4229,33 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
4230
4229
|
}
|
|
4231
4230
|
|
|
4232
4231
|
const row_not_found = async function () {
|
|
4233
|
-
if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
4232
|
+
// if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
4233
|
+
// _ds.currentRecordId = 'newRecord';
|
|
4234
|
+
// _ds.set_mode = 'C';
|
|
4235
|
+
// _ds.record_not_found = true;
|
|
4236
|
+
|
|
4237
|
+
// try {
|
|
4238
|
+
// const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
4239
|
+
// } catch (error) {
|
|
4240
|
+
// await func.datasource.render_fields_form(SESSION_ID, dataSourceSession, { id: 'newRecord', value: {} });
|
|
4241
|
+
// }
|
|
4242
|
+
|
|
4243
|
+
// var count = await func.datasource.get_field_init_count(SESSION_ID, dataSourceSession, 'newRecord', false);
|
|
4244
|
+
// if (
|
|
4245
|
+
// count > 0 // was: && !args.dataSourceNoP
|
|
4246
|
+
// ) {
|
|
4247
|
+
// await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
4248
|
+
// }
|
|
4249
|
+
// }
|
|
4250
|
+
|
|
4251
|
+
if (!prog_obj.progDataSource?.dataSourceType || prog_obj.properties.renderType === 'form' || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
4234
4252
|
_ds.currentRecordId = 'newRecord';
|
|
4235
|
-
|
|
4236
|
-
|
|
4253
|
+
if (tree_obj.rwMode === 'U' && tree_obj.allowCreate) {
|
|
4254
|
+
_ds.set_mode = 'C';
|
|
4255
|
+
}
|
|
4256
|
+
if (prog_obj.progDataSource?.dataSourceType) {
|
|
4257
|
+
_ds.record_not_found = true;
|
|
4258
|
+
}
|
|
4237
4259
|
|
|
4238
4260
|
try {
|
|
4239
4261
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
@@ -4248,6 +4270,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
4248
4270
|
await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
4249
4271
|
}
|
|
4250
4272
|
}
|
|
4273
|
+
|
|
4251
4274
|
await func.datasource.callback(SESSION_ID, dataSourceSession, args.rowIdP, args.jobNoP, _ds.prog_id);
|
|
4252
4275
|
};
|
|
4253
4276
|
if (!rows) {
|
|
@@ -4213,7 +4213,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
4213
4213
|
break;
|
|
4214
4214
|
}
|
|
4215
4215
|
case 'component': {
|
|
4216
|
-
debugger;
|
|
4217
4216
|
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
4218
4217
|
_ds.rows_processed = 0;
|
|
4219
4218
|
_ds.viewRangeExp_rows_deleted = 0;
|
|
@@ -4231,10 +4230,33 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
4231
4230
|
}
|
|
4232
4231
|
|
|
4233
4232
|
const row_not_found = async function () {
|
|
4234
|
-
if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
4233
|
+
// if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
4234
|
+
// _ds.currentRecordId = 'newRecord';
|
|
4235
|
+
// _ds.set_mode = 'C';
|
|
4236
|
+
// _ds.record_not_found = true;
|
|
4237
|
+
|
|
4238
|
+
// try {
|
|
4239
|
+
// const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
4240
|
+
// } catch (error) {
|
|
4241
|
+
// await func.datasource.render_fields_form(SESSION_ID, dataSourceSession, { id: 'newRecord', value: {} });
|
|
4242
|
+
// }
|
|
4243
|
+
|
|
4244
|
+
// var count = await func.datasource.get_field_init_count(SESSION_ID, dataSourceSession, 'newRecord', false);
|
|
4245
|
+
// if (
|
|
4246
|
+
// count > 0 // was: && !args.dataSourceNoP
|
|
4247
|
+
// ) {
|
|
4248
|
+
// await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
4249
|
+
// }
|
|
4250
|
+
// }
|
|
4251
|
+
|
|
4252
|
+
if (!prog_obj.progDataSource?.dataSourceType || prog_obj.properties.renderType === 'form' || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
|
|
4235
4253
|
_ds.currentRecordId = 'newRecord';
|
|
4236
|
-
|
|
4237
|
-
|
|
4254
|
+
if (tree_obj.rwMode === 'U' && tree_obj.allowCreate) {
|
|
4255
|
+
_ds.set_mode = 'C';
|
|
4256
|
+
}
|
|
4257
|
+
if (prog_obj.progDataSource?.dataSourceType) {
|
|
4258
|
+
_ds.record_not_found = true;
|
|
4259
|
+
}
|
|
4238
4260
|
|
|
4239
4261
|
try {
|
|
4240
4262
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
@@ -4249,6 +4271,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
4249
4271
|
await func.datasource.execute_field_init_events(SESSION_ID, dataSourceSession, 'form', 'newRecord');
|
|
4250
4272
|
}
|
|
4251
4273
|
}
|
|
4274
|
+
|
|
4252
4275
|
await func.datasource.callback(SESSION_ID, dataSourceSession, args.rowIdP, args.jobNoP, _ds.prog_id);
|
|
4253
4276
|
};
|
|
4254
4277
|
if (!rows) {
|