@xuda.io/runtime-bundle 1.0.1263 → 1.0.1264

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.
@@ -14323,28 +14323,28 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
14323
14323
 
14324
14324
  // ALL
14325
14325
 
14326
- function sortArrayByIncludedStrings(mainArray, searchStrings) {
14327
- return mainArray.sort((a, b) => {
14328
- // Check if 'a' includes any of the search strings
14329
- const aIncludesSearchString = searchStrings.some((str) => a[0].includes(str));
14330
- // Check if 'b' includes any of the search strings
14331
- const bIncludesSearchString = searchStrings.some((str) => b[0].includes(str));
14332
-
14333
- if (aIncludesSearchString && !bIncludesSearchString) {
14334
- // 'a' has a search string, 'b' doesn't, so 'a' comes first
14335
- return -1;
14336
- } else if (!aIncludesSearchString && bIncludesSearchString) {
14337
- // 'b' has a search string, 'a' doesn't, so 'b' comes first
14338
- return 1;
14339
- } else {
14340
- // Both or neither include a search string, maintain original relative order or use another sorting criteria
14341
- // For example, you could sort alphabetically here:
14342
- return -1; //a.localeCompare(b);
14343
- }
14344
- });
14345
- }
14326
+ // function sortArrayByIncludedStrings(mainArray, searchStrings) {
14327
+ // return mainArray.sort((a, b) => {
14328
+ // // Check if 'a' includes any of the search strings
14329
+ // const aIncludesSearchString = searchStrings.some((str) => a[0].includes(str));
14330
+ // // Check if 'b' includes any of the search strings
14331
+ // const bIncludesSearchString = searchStrings.some((str) => b[0].includes(str));
14332
+
14333
+ // if (aIncludesSearchString && !bIncludesSearchString) {
14334
+ // // 'a' has a search string, 'b' doesn't, so 'a' comes first
14335
+ // return -1;
14336
+ // } else if (!aIncludesSearchString && bIncludesSearchString) {
14337
+ // // 'b' has a search string, 'a' doesn't, so 'b' comes first
14338
+ // return 1;
14339
+ // } else {
14340
+ // // Both or neither include a search string, maintain original relative order or use another sorting criteria
14341
+ // // For example, you could sort alphabetically here:
14342
+ // return 0; //a.localeCompare(b);
14343
+ // }
14344
+ // });
14345
+ // }
14346
14346
 
14347
- const sortedAttrs = sortArrayByIncludedStrings(Object.entries(nodeP.attributes), ['xu-exp:xu-render', 'xu-render', 'xu-exp:program', 'program']);
14347
+ // const sortedAttrs = sortArrayByIncludedStrings(Object.entries(nodeP.attributes), ['xu-exp:xu-render', 'xu-render', 'xu-exp:program', 'program']);
14348
14348
 
14349
14349
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
14350
14350
  if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
@@ -12048,28 +12048,28 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
12048
12048
 
12049
12049
  // ALL
12050
12050
 
12051
- function sortArrayByIncludedStrings(mainArray, searchStrings) {
12052
- return mainArray.sort((a, b) => {
12053
- // Check if 'a' includes any of the search strings
12054
- const aIncludesSearchString = searchStrings.some((str) => a[0].includes(str));
12055
- // Check if 'b' includes any of the search strings
12056
- const bIncludesSearchString = searchStrings.some((str) => b[0].includes(str));
12057
-
12058
- if (aIncludesSearchString && !bIncludesSearchString) {
12059
- // 'a' has a search string, 'b' doesn't, so 'a' comes first
12060
- return -1;
12061
- } else if (!aIncludesSearchString && bIncludesSearchString) {
12062
- // 'b' has a search string, 'a' doesn't, so 'b' comes first
12063
- return 1;
12064
- } else {
12065
- // Both or neither include a search string, maintain original relative order or use another sorting criteria
12066
- // For example, you could sort alphabetically here:
12067
- return -1; //a.localeCompare(b);
12068
- }
12069
- });
12070
- }
12051
+ // function sortArrayByIncludedStrings(mainArray, searchStrings) {
12052
+ // return mainArray.sort((a, b) => {
12053
+ // // Check if 'a' includes any of the search strings
12054
+ // const aIncludesSearchString = searchStrings.some((str) => a[0].includes(str));
12055
+ // // Check if 'b' includes any of the search strings
12056
+ // const bIncludesSearchString = searchStrings.some((str) => b[0].includes(str));
12057
+
12058
+ // if (aIncludesSearchString && !bIncludesSearchString) {
12059
+ // // 'a' has a search string, 'b' doesn't, so 'a' comes first
12060
+ // return -1;
12061
+ // } else if (!aIncludesSearchString && bIncludesSearchString) {
12062
+ // // 'b' has a search string, 'a' doesn't, so 'b' comes first
12063
+ // return 1;
12064
+ // } else {
12065
+ // // Both or neither include a search string, maintain original relative order or use another sorting criteria
12066
+ // // For example, you could sort alphabetically here:
12067
+ // return 0; //a.localeCompare(b);
12068
+ // }
12069
+ // });
12070
+ // }
12071
12071
 
12072
- const sortedAttrs = sortArrayByIncludedStrings(Object.entries(nodeP.attributes), ['xu-exp:xu-render', 'xu-render', 'xu-exp:program', 'program']);
12072
+ // const sortedAttrs = sortArrayByIncludedStrings(Object.entries(nodeP.attributes), ['xu-exp:xu-render', 'xu-render', 'xu-exp:program', 'program']);
12073
12073
 
12074
12074
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
12075
12075
  if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;