@xuda.io/runtime-bundle 1.0.461 → 1.0.463
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/modules/xuda-actions-module.esm.js +111 -169
- package/js/modules/xuda-actions-module.esm.min.js +1 -1
- package/js/modules/xuda-studio-checker.min.mjs +1 -1
- package/js/modules/xuda-studio-checker.mjs +621 -982
- package/js/xuda-runtime-bundle.js +112 -176
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +98 -131
- package/js/xuda-runtime-slim.js +112 -176
- package/js/xuda-runtime-slim.min.es.js +112 -176
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +110 -143
- package/js/xuda-worker-bundle.js +110 -143
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -1429,18 +1429,7 @@ var STUDIO_PEER_CONN_MSG_QUEUE = [];
|
|
|
1429
1429
|
|
|
1430
1430
|
var CLIENT_ACTIVITY_TS;
|
|
1431
1431
|
|
|
1432
|
-
glb.REFERENCE_LESS_FUNCTIONS = [
|
|
1433
|
-
"update",
|
|
1434
|
-
"raise_event",
|
|
1435
|
-
"call_library",
|
|
1436
|
-
"invoke_action",
|
|
1437
|
-
"loader_on",
|
|
1438
|
-
"loader_off",
|
|
1439
|
-
"emit_event",
|
|
1440
|
-
"delay",
|
|
1441
|
-
"execute_evaluate_javascript",
|
|
1442
|
-
"execute_native_javascript",
|
|
1443
|
-
];
|
|
1432
|
+
glb.REFERENCE_LESS_FUNCTIONS = ['update', 'raise_event', 'call_library', 'invoke_action', 'loader_on', 'loader_off', 'emit_event', 'delay', 'execute_evaluate_javascript', 'execute_native_javascript'];
|
|
1444
1433
|
|
|
1445
1434
|
var CACHE_PROG_UI = {};
|
|
1446
1435
|
|
|
@@ -1457,7 +1446,7 @@ var ELEMENT_CLICK_EVENT = null;
|
|
|
1457
1446
|
var posX = 0; //cursor x
|
|
1458
1447
|
var posY = 0; //cursor x
|
|
1459
1448
|
var LOADER_ACTIVE = false;
|
|
1460
|
-
var LOADER_TEXT =
|
|
1449
|
+
var LOADER_TEXT = '';
|
|
1461
1450
|
var REFRESHER_IN_PROGRESS = false;
|
|
1462
1451
|
|
|
1463
1452
|
glb.screen_num = 0;
|
|
@@ -1470,115 +1459,105 @@ var IS_PROGRESS_SCREEN_OPEN = null;
|
|
|
1470
1459
|
var UI_WORKER_OBJ = { jobs: [], num: 9000 };
|
|
1471
1460
|
|
|
1472
1461
|
glb.html5_events_handler = [
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1462
|
+
'onabort',
|
|
1463
|
+
'onafterprint',
|
|
1464
|
+
'onautocomplete',
|
|
1465
|
+
'onautocompleteerror',
|
|
1466
|
+
'onbeforeprint',
|
|
1467
|
+
'onbeforeunload',
|
|
1468
|
+
'onblur',
|
|
1469
|
+
'oncancel',
|
|
1470
|
+
'oncanplay',
|
|
1471
|
+
'oncanplaythrough',
|
|
1472
|
+
'onchange',
|
|
1473
|
+
'onclick',
|
|
1474
|
+
'onclose',
|
|
1475
|
+
'oncontextmenu',
|
|
1476
|
+
'oncopy',
|
|
1477
|
+
'oncuechange',
|
|
1478
|
+
'oncut',
|
|
1479
|
+
'ondblclick',
|
|
1480
|
+
'ondrag',
|
|
1481
|
+
'ondragend',
|
|
1482
|
+
'ondragenter',
|
|
1483
|
+
'ondragexit',
|
|
1484
|
+
'ondragleave',
|
|
1485
|
+
'ondragover',
|
|
1486
|
+
'ondragstart',
|
|
1487
|
+
'ondrop',
|
|
1488
|
+
'ondurationchange',
|
|
1489
|
+
'onemptied',
|
|
1490
|
+
'onended',
|
|
1491
|
+
'onerror',
|
|
1492
|
+
'onfocus',
|
|
1493
|
+
'onhashchange',
|
|
1494
|
+
'oninput',
|
|
1495
|
+
'oninvalid',
|
|
1496
|
+
'onkeydown',
|
|
1497
|
+
'onkeypress',
|
|
1498
|
+
'onkeyup',
|
|
1499
|
+
'onload',
|
|
1500
|
+
'onloadeddata',
|
|
1501
|
+
'onloadedmetadata',
|
|
1502
|
+
'onloadstart',
|
|
1503
|
+
'onmessage',
|
|
1504
|
+
'onmousedown',
|
|
1505
|
+
'onmouseenter',
|
|
1506
|
+
'onmouseleave',
|
|
1507
|
+
'onmousemove',
|
|
1508
|
+
'onmouseout',
|
|
1509
|
+
'onmouseover',
|
|
1510
|
+
'onmouseup',
|
|
1511
|
+
'onmousewheel',
|
|
1512
|
+
'onoffline',
|
|
1513
|
+
'ononline',
|
|
1514
|
+
'onpagehide',
|
|
1515
|
+
'onpageshow',
|
|
1516
|
+
'onpaste',
|
|
1517
|
+
'onpause',
|
|
1518
|
+
'onplay',
|
|
1519
|
+
'onplaying',
|
|
1520
|
+
'onpopstate',
|
|
1521
|
+
'onprogress',
|
|
1522
|
+
'onratechange',
|
|
1523
|
+
'onreset',
|
|
1524
|
+
'onresize',
|
|
1525
|
+
'onscroll',
|
|
1526
|
+
'onsearch',
|
|
1527
|
+
'onseeked',
|
|
1528
|
+
'onseeking',
|
|
1529
|
+
'onselect',
|
|
1530
|
+
'onshow',
|
|
1531
|
+
'onsort',
|
|
1532
|
+
'onstalled',
|
|
1533
|
+
'onstorage',
|
|
1534
|
+
'onsubmit',
|
|
1535
|
+
'onsuspend',
|
|
1536
|
+
'ontimeupdate',
|
|
1537
|
+
'ontoggle',
|
|
1538
|
+
'onunload',
|
|
1539
|
+
'onvolumechange',
|
|
1540
|
+
'onwaiting',
|
|
1552
1541
|
];
|
|
1553
1542
|
|
|
1554
1543
|
glb.lifecycle = {
|
|
1555
1544
|
plugins: {},
|
|
1556
1545
|
// queue: [],
|
|
1557
|
-
fn_arr: [
|
|
1558
|
-
"beforeInit",
|
|
1559
|
-
"initialized",
|
|
1560
|
-
"systemReady",
|
|
1561
|
-
"beforeMounted",
|
|
1562
|
-
"mounted",
|
|
1563
|
-
],
|
|
1546
|
+
fn_arr: ['beforeInit', 'initialized', 'systemReady', 'beforeMounted', 'mounted'],
|
|
1564
1547
|
// add(type, fn, params) {
|
|
1565
1548
|
// this.queue.push({ type, fn, params });
|
|
1566
1549
|
// },
|
|
1567
1550
|
execute: async function (SESSION_ID, event) {
|
|
1568
1551
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
1569
1552
|
|
|
1570
|
-
const xu_api = await func.common.get_module(
|
|
1553
|
+
const xu_api = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
1554
|
+
func,
|
|
1555
|
+
glb,
|
|
1556
|
+
SESSION_OBJ,
|
|
1571
1557
|
SESSION_ID,
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
glb,
|
|
1576
|
-
SESSION_OBJ,
|
|
1577
|
-
SESSION_ID,
|
|
1578
|
-
APP_OBJ,
|
|
1579
|
-
dsSession: func.utils.get_last_datasource_no(SESSION_ID),
|
|
1580
|
-
}
|
|
1581
|
-
);
|
|
1558
|
+
APP_OBJ,
|
|
1559
|
+
dsSession: func.utils.get_last_datasource_no(SESSION_ID),
|
|
1560
|
+
});
|
|
1582
1561
|
|
|
1583
1562
|
var params = {
|
|
1584
1563
|
SESSION_ID,
|
|
@@ -1587,9 +1566,7 @@ glb.lifecycle = {
|
|
|
1587
1566
|
xu_api,
|
|
1588
1567
|
};
|
|
1589
1568
|
|
|
1590
|
-
for await (const [plugin_name, val] of Object.entries(
|
|
1591
|
-
glb.lifecycle.plugins
|
|
1592
|
-
)) {
|
|
1569
|
+
for await (const [plugin_name, val] of Object.entries(glb.lifecycle.plugins)) {
|
|
1593
1570
|
if (val?.plugin_script?.[event]) {
|
|
1594
1571
|
params.setup_data = val.setup_data;
|
|
1595
1572
|
await val.plugin_script[event](params);
|
|
@@ -1599,27 +1576,17 @@ glb.lifecycle = {
|
|
|
1599
1576
|
};
|
|
1600
1577
|
|
|
1601
1578
|
glb.run_xu_before = [
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1579
|
+
'xu-cdn',
|
|
1580
|
+
'xu-style',
|
|
1581
|
+
'xu-render',
|
|
1582
|
+
'xu-for-key',
|
|
1583
|
+
'xu-for-val',
|
|
1607
1584
|
// "xu-ui-plugin",
|
|
1608
1585
|
// "programParameters",
|
|
1609
1586
|
];
|
|
1610
|
-
glb.run_xu_after = [
|
|
1611
|
-
glb.attr_abbreviations_arr = [
|
|
1612
|
-
|
|
1613
|
-
"xu-dblclick",
|
|
1614
|
-
"xu-contextmenu",
|
|
1615
|
-
"xu-focus",
|
|
1616
|
-
"xu-keyup",
|
|
1617
|
-
"xu-change",
|
|
1618
|
-
"xu-blur",
|
|
1619
|
-
"xu-init",
|
|
1620
|
-
];
|
|
1621
|
-
glb.solid_attributes = ["disabled"];
|
|
1622
|
-
|
|
1587
|
+
glb.run_xu_after = ['xu-bind', 'xu-class', 'xu-script', 'xu-ui-plugin'];
|
|
1588
|
+
glb.attr_abbreviations_arr = ['xu-click', 'xu-dblclick', 'xu-contextmenu', 'xu-focus', 'xu-keyup', 'xu-change', 'xu-blur', 'xu-init'];
|
|
1589
|
+
glb.solid_attributes = ['disabled'];
|
|
1623
1590
|
func.datasource = {};
|
|
1624
1591
|
func.datasource.create = async function (
|
|
1625
1592
|
SESSION_ID,
|
|
@@ -2262,7 +2229,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2262
2229
|
_ds.data_feed.rows = [];
|
|
2263
2230
|
|
|
2264
2231
|
switch (prog_obj.progDataSource?.dataSourceType) {
|
|
2265
|
-
case 'table':
|
|
2232
|
+
case 'table': {
|
|
2266
2233
|
_ds._dataSourceTableId = prog_obj.progDataSource?.dataSourceTableId; // get file id
|
|
2267
2234
|
|
|
2268
2235
|
if (prog_obj.progDataSource?.dataSourceTableIdExp) {
|
|
@@ -2304,8 +2271,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2304
2271
|
filterModelUserSql: _ds.progDataSource.filterModelUserSql,
|
|
2305
2272
|
};
|
|
2306
2273
|
|
|
2307
|
-
// _ds.data_feed = {};
|
|
2308
|
-
|
|
2309
2274
|
_ds.v.raw_data = await func.db.get_query(
|
|
2310
2275
|
SESSION_ID,
|
|
2311
2276
|
_ds._dataSourceTableId,
|
|
@@ -2323,6 +2288,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2323
2288
|
filterModel,
|
|
2324
2289
|
_ds?.progDataSource?.dataSourceFilterModelType,
|
|
2325
2290
|
);
|
|
2291
|
+
|
|
2326
2292
|
if (_ds?.progDataSource?.dataSourceLimit) {
|
|
2327
2293
|
const ret_rows_found = await func.db.get_query(
|
|
2328
2294
|
SESSION_ID,
|
|
@@ -2346,7 +2312,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2346
2312
|
_ds.rows_found = _ds?.v?.raw_data?.rows?.length || 0;
|
|
2347
2313
|
}
|
|
2348
2314
|
break;
|
|
2349
|
-
|
|
2315
|
+
}
|
|
2350
2316
|
case 'array': {
|
|
2351
2317
|
let data = await get_data_from_source();
|
|
2352
2318
|
|
|
@@ -2394,7 +2360,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2394
2360
|
break;
|
|
2395
2361
|
}
|
|
2396
2362
|
|
|
2397
|
-
case 'csv':
|
|
2363
|
+
case 'csv': {
|
|
2398
2364
|
let data = await get_data_from_source();
|
|
2399
2365
|
if (data === null) {
|
|
2400
2366
|
data = '';
|
|
@@ -2423,7 +2389,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2423
2389
|
}
|
|
2424
2390
|
_ds.rows_found = arr?.length || 0;
|
|
2425
2391
|
break;
|
|
2426
|
-
|
|
2392
|
+
}
|
|
2427
2393
|
default:
|
|
2428
2394
|
break;
|
|
2429
2395
|
}
|
|
@@ -2517,7 +2483,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2517
2483
|
break;
|
|
2518
2484
|
}
|
|
2519
2485
|
|
|
2520
|
-
case 'get_data':
|
|
2486
|
+
case 'get_data': {
|
|
2521
2487
|
if (await get_before_record_count()) {
|
|
2522
2488
|
await func.datasource.execute_view_events(SESSION_ID, dataSourceSession, 'before_record');
|
|
2523
2489
|
}
|
|
@@ -2529,8 +2495,8 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2529
2495
|
}
|
|
2530
2496
|
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows, _ds.args);
|
|
2531
2497
|
break;
|
|
2532
|
-
|
|
2533
|
-
case 'set_data':
|
|
2498
|
+
}
|
|
2499
|
+
case 'set_data': {
|
|
2534
2500
|
if (!prog_obj.progDataSource?.dataSourceType || _ds.progDataSource.dataSourceType !== 'table' || !_ds._dataSourceTableId) {
|
|
2535
2501
|
return func.utils.debug_report(SESSION_ID, 'Data source', 'Datasource DB Table must be defined for Set Data operation', 'E');
|
|
2536
2502
|
}
|
|
@@ -2620,8 +2586,9 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2620
2586
|
// ret = await callback_datasource();
|
|
2621
2587
|
await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows, _ds.args);
|
|
2622
2588
|
break;
|
|
2623
|
-
|
|
2624
|
-
case 'component':
|
|
2589
|
+
}
|
|
2590
|
+
case 'component': {
|
|
2591
|
+
debugger;
|
|
2625
2592
|
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
2626
2593
|
_ds.rows_processed = 0;
|
|
2627
2594
|
_ds.viewRangeExp_rows_deleted = 0;
|
|
@@ -2719,7 +2686,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2719
2686
|
await finish_form();
|
|
2720
2687
|
|
|
2721
2688
|
break;
|
|
2722
|
-
|
|
2689
|
+
}
|
|
2723
2690
|
default:
|
|
2724
2691
|
return func.utils.debug_report(SESSION_ID, 'Data source', 'Program type not defined', 'E');
|
|
2725
2692
|
}
|