@easyquery/ui 7.2.4-rc03 → 7.2.4-rc04

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * EasyQuery.JS Community 7.2.4-rc03 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.4-rc04 (https://korzh.com/easyquery/javascript)
3
3
  * Copyright 2023 Korzh.com. All rights reserved.
4
4
  *
5
5
  * EasyQuery.JS commercial licenses may be obtained at
@@ -1589,39 +1589,6 @@ var HttpRequest = /** @class */ (function () {
1589
1589
  }());
1590
1590
 
1591
1591
  //# sourceMappingURL=http_request.js.map
1592
- ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/string_utils.js
1593
- function repeatString(str, times) {
1594
- var result = "";
1595
- for (var i = 0; i < times; i++) {
1596
- result += str;
1597
- }
1598
- return result;
1599
- }
1600
- function reverseString(str) {
1601
- return str.split("").reverse().join("");
1602
- }
1603
- function strEndsWith(str, symbol) {
1604
- return str && str.lastIndexOf(symbol) == (str.length - symbol.length);
1605
- }
1606
- /**
1607
- * Adds two paths and returns the result
1608
- * Correctly processes leading and trailing slashes
1609
- * @param path1
1610
- * @param path2
1611
- */
1612
- function combinePath(path1, path2) {
1613
- var result = path1;
1614
- if (result != null && result.length > 0) {
1615
- if (result.charAt(result.length - 1) != '/')
1616
- result += "/";
1617
- result += path2;
1618
- }
1619
- else {
1620
- result = path2;
1621
- }
1622
- return result;
1623
- }
1624
- //# sourceMappingURL=string_utils.js.map
1625
1592
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/i18n/i18n.js
1626
1593
 
1627
1594
 
@@ -2095,7 +2062,6 @@ var i18n;
2095
2062
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/utils.js
2096
2063
 
2097
2064
 
2098
-
2099
2065
  var utils;
2100
2066
  (function (utils) {
2101
2067
  function getAllDataTypes() {
@@ -2418,27 +2384,26 @@ var utils;
2418
2384
  if (prfx && prfx.length > 0) {
2419
2385
  prfx += "-";
2420
2386
  }
2421
- //adding 2 random symbols
2422
- var randValue = repeatString("", 2);
2423
- ;
2424
- var maxSymbolIndex = symbols.length - 1;
2425
- randValue = replaceAtString(randValue, 0, symbols[getRandomInt(0, maxSymbolIndex)]);
2426
- randValue = replaceAtString(randValue, 1, symbols[getRandomInt(0, maxSymbolIndex)]);
2427
- //generating main ID part (64-base representation of the current value of the time ticks)
2428
- var ticksNum64 = intToNum36(getNowTicks() - magicTicks);
2429
- return prfx + randValue + ticksNum64;
2387
+ //adding 3 random symbols
2388
+ var randCharPart = symbols[getRandomInt(0, symbols.length)] +
2389
+ symbols[getRandomInt(0, symbols.length)] +
2390
+ symbols[getRandomInt(0, symbols.length)];
2391
+ var randInt = getRandomInt(0, 10000);
2392
+ //generating main ID part
2393
+ //it's a 36-base representation of some random number based on current value of ticks
2394
+ var ticksNum36 = intToNumBase(getNowTicks() - magicTicks - randInt);
2395
+ return prfx + randCharPart + ticksNum36;
2430
2396
  }
2431
2397
  utils.generateId = generateId;
2432
- function intToNum36(value) {
2433
- var targetBase = 36;
2434
- var i = 14;
2435
- var buffer = repeatString("", i);
2398
+ function intToNumBase(value, targetBase) {
2399
+ if (targetBase === void 0) { targetBase = 36; }
2400
+ var buffer = '';
2436
2401
  var rest = value;
2437
2402
  do {
2438
- buffer = replaceAtString(buffer, i--, symbols[rest % targetBase]);
2403
+ buffer = symbols[rest % targetBase] + buffer;
2439
2404
  rest = Math.floor(rest /= targetBase);
2440
2405
  } while (rest > 0);
2441
- return reverseString(buffer.trim());
2406
+ return buffer;
2442
2407
  }
2443
2408
  function squeezeMoniker(str, maxlen) {
2444
2409
  var parts = str.split('-');
@@ -2475,8 +2440,8 @@ var utils;
2475
2440
  return str;
2476
2441
  }
2477
2442
  }
2478
- function replaceAtString(str, index, value) {
2479
- return str.substr(0, index) + value + str.substr(index + value.length);
2443
+ function replaceAtString(str, index, replacement) {
2444
+ return str.substring(0, index) + replacement + str.substring(index + replacement.length);
2480
2445
  }
2481
2446
  function getRandomInt(min, max) {
2482
2447
  return Math.floor(Math.random() * (max - min)) + min;
@@ -4255,6 +4220,35 @@ var EventEmitter = /** @class */ (function () {
4255
4220
  }());
4256
4221
 
4257
4222
  //# sourceMappingURL=event_emitter.js.map
4223
+ ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/string_utils.js
4224
+ function repeatString(str, times) {
4225
+ return str.repeat(times);
4226
+ }
4227
+ function reverseString(str) {
4228
+ return str.split("").reverse().join("");
4229
+ }
4230
+ function strEndsWith(str, symbol) {
4231
+ return str && str.lastIndexOf(symbol) == (str.length - symbol.length);
4232
+ }
4233
+ /**
4234
+ * Adds two paths and returns the result
4235
+ * Correctly processes leading and trailing slashes
4236
+ * @param path1
4237
+ * @param path2
4238
+ */
4239
+ function combinePath(path1, path2) {
4240
+ var result = path1;
4241
+ if (result != null && result.length > 0) {
4242
+ if (result.charAt(result.length - 1) != '/')
4243
+ result += "/";
4244
+ result += path2;
4245
+ }
4246
+ else {
4247
+ result = path2;
4248
+ }
4249
+ return result;
4250
+ }
4251
+ //# sourceMappingURL=string_utils.js.map
4258
4252
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/liquid.js
4259
4253
  var liquid;
4260
4254
  (function (liquid) {
@@ -14877,7 +14871,7 @@ var Query = /** @class */ (function () {
14877
14871
  throw new InvalidQueryError(entityAttrNotExistError + column.expr.args[0].value);
14878
14872
  }
14879
14873
  }
14880
- else if (column.expr.tag !== ExprTag.CustomSql) {
14874
+ else if (column.expr.tag === ExprTag.Unknown) {
14881
14875
  throw new InvalidQueryError(wrongExprTag + column.expr.tag);
14882
14876
  }
14883
14877
  }
@@ -15901,7 +15895,9 @@ var Query = /** @class */ (function () {
15901
15895
  var expr = cond.expressions[part.index];
15902
15896
  if (expr.kind == DataKind.Attribute || expr.tag == ExprTag.EntityAttribute) {
15903
15897
  var attr = model.getAttributeById(expr.value);
15904
- txt = model.getAttributeText(attr, "{entity} {attr}");
15898
+ if (attr != null) {
15899
+ txt = model.getAttributeText(attr, "{entity} {attr}");
15900
+ }
15905
15901
  }
15906
15902
  else {
15907
15903
  txt = expr.getText();