@xuda.io/runtime-bundle 1.0.491 → 1.0.492

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.
@@ -34922,7 +34922,7 @@ func.UI.component.init_xu_nav = function ($container, $nav) {
34922
34922
  };
34923
34923
  func.expression = {};
34924
34924
 
34925
- func.expression.get_org = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
34925
+ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
34926
34926
  class xu_class {
34927
34927
  async get() {
34928
34928
  var ret;
@@ -35276,7 +35276,7 @@ func.expression.get_org = async function (SESSION_ID, valP, dsSessionP, sourceP,
35276
35276
  return new_class.get();
35277
35277
  };
35278
35278
 
35279
- func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP = {}, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
35279
+ func.expression.get_bad = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP = {}, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
35280
35280
  const evalJson = (text) => eval(`(${text})`);
35281
35281
  const replaceQuotes = (str) => {
35282
35282
  for (const [key, val] of Object.entries(fields)) {
@@ -35542,64 +35542,6 @@ func.expression.parse_org = function (strP) {
35542
35542
  return res;
35543
35543
  };
35544
35544
 
35545
- func.expression.parse_bad = function (strP) {
35546
- const nonLettersPatt = /\W/;
35547
- const validSymbolsNoArray = /[^.@\[]/;
35548
- const validSymbolsWithArray = /[^.@"'\[\]]/;
35549
-
35550
- function extractStr(str, startPos = 0) {
35551
- const cleanSplit = (arr) => (arr?.length > 1 && arr[0] === '' && arr[1].includes('@') ? arr.slice(1) : arr);
35552
-
35553
- const segments = cleanSplit(str.replace(/@/g, '^^@').split('^^'));
35554
- const result = [];
35555
-
35556
- for (const val of segments || []) {
35557
- if (!val) continue;
35558
- const pos = str.indexOf(val) + startPos;
35559
-
35560
- if (val.startsWith('@')) {
35561
- let tmpStr = '';
35562
- let wordStart = null;
35563
- let wordEnd = null;
35564
- let validSymbols = validSymbolsNoArray;
35565
-
35566
- for (let i = 0; i < val.length; i++) {
35567
- const char = val[i];
35568
-
35569
- if (char === '[') validSymbols = validSymbolsWithArray;
35570
- if (char === '.' && wordStart === null) wordStart = i;
35571
- else if (wordStart !== null && nonLettersPatt.test(char)) wordEnd = i;
35572
-
35573
- if (wordStart !== null && wordEnd !== null) {
35574
- const word = val.slice(wordStart + 1, wordEnd);
35575
- tmpStr = tmpStr.slice(0, wordStart) + '^^' + tmpStr.slice(wordStart, wordEnd);
35576
- wordStart = char === '.' ? wordEnd : null;
35577
- wordEnd = null;
35578
- }
35579
-
35580
- tmpStr += nonLettersPatt.test(char) && validSymbols.test(char) && !tmpStr.includes('^^') ? '^^' + char : char;
35581
- }
35582
-
35583
- if (tmpStr.includes('^^')) {
35584
- result.push(...extractStr(tmpStr, pos));
35585
- } else {
35586
- const fieldIdMatch = val.match(/^@([^.\[]+)/);
35587
- result.push({
35588
- value: val,
35589
- fieldId: fieldIdMatch ? fieldIdMatch[1] : undefined,
35590
- pos,
35591
- });
35592
- }
35593
- } else {
35594
- result.push({ value: val, pos });
35595
- }
35596
- }
35597
- return result;
35598
- }
35599
-
35600
- return extractStr(strP);
35601
- };
35602
-
35603
35545
  func.expression.parse = function (input) {
35604
35546
  if (typeof input !== 'string') return [];
35605
35547