@easyquery/enterprise 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 Enterprise 7.2.4-rc03 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Enterprise 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
@@ -1368,39 +1368,6 @@ var HttpRequest = /** @class */ (function () {
1368
1368
  }());
1369
1369
 
1370
1370
  //# sourceMappingURL=http_request.js.map
1371
- ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/string_utils.js
1372
- function repeatString(str, times) {
1373
- var result = "";
1374
- for (var i = 0; i < times; i++) {
1375
- result += str;
1376
- }
1377
- return result;
1378
- }
1379
- function reverseString(str) {
1380
- return str.split("").reverse().join("");
1381
- }
1382
- function strEndsWith(str, symbol) {
1383
- return str && str.lastIndexOf(symbol) == (str.length - symbol.length);
1384
- }
1385
- /**
1386
- * Adds two paths and returns the result
1387
- * Correctly processes leading and trailing slashes
1388
- * @param path1
1389
- * @param path2
1390
- */
1391
- function combinePath(path1, path2) {
1392
- var result = path1;
1393
- if (result != null && result.length > 0) {
1394
- if (result.charAt(result.length - 1) != '/')
1395
- result += "/";
1396
- result += path2;
1397
- }
1398
- else {
1399
- result = path2;
1400
- }
1401
- return result;
1402
- }
1403
- //# sourceMappingURL=string_utils.js.map
1404
1371
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/i18n/i18n.js
1405
1372
 
1406
1373
 
@@ -1874,7 +1841,6 @@ var i18n;
1874
1841
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/utils.js
1875
1842
 
1876
1843
 
1877
-
1878
1844
  var utils;
1879
1845
  (function (utils) {
1880
1846
  function getAllDataTypes() {
@@ -2197,27 +2163,26 @@ var utils;
2197
2163
  if (prfx && prfx.length > 0) {
2198
2164
  prfx += "-";
2199
2165
  }
2200
- //adding 2 random symbols
2201
- var randValue = repeatString("", 2);
2202
- ;
2203
- var maxSymbolIndex = symbols.length - 1;
2204
- randValue = replaceAtString(randValue, 0, symbols[getRandomInt(0, maxSymbolIndex)]);
2205
- randValue = replaceAtString(randValue, 1, symbols[getRandomInt(0, maxSymbolIndex)]);
2206
- //generating main ID part (64-base representation of the current value of the time ticks)
2207
- var ticksNum64 = intToNum36(getNowTicks() - magicTicks);
2208
- return prfx + randValue + ticksNum64;
2166
+ //adding 3 random symbols
2167
+ var randCharPart = symbols[getRandomInt(0, symbols.length)] +
2168
+ symbols[getRandomInt(0, symbols.length)] +
2169
+ symbols[getRandomInt(0, symbols.length)];
2170
+ var randInt = getRandomInt(0, 10000);
2171
+ //generating main ID part
2172
+ //it's a 36-base representation of some random number based on current value of ticks
2173
+ var ticksNum36 = intToNumBase(getNowTicks() - magicTicks - randInt);
2174
+ return prfx + randCharPart + ticksNum36;
2209
2175
  }
2210
2176
  utils.generateId = generateId;
2211
- function intToNum36(value) {
2212
- var targetBase = 36;
2213
- var i = 14;
2214
- var buffer = repeatString("", i);
2177
+ function intToNumBase(value, targetBase) {
2178
+ if (targetBase === void 0) { targetBase = 36; }
2179
+ var buffer = '';
2215
2180
  var rest = value;
2216
2181
  do {
2217
- buffer = replaceAtString(buffer, i--, symbols[rest % targetBase]);
2182
+ buffer = symbols[rest % targetBase] + buffer;
2218
2183
  rest = Math.floor(rest /= targetBase);
2219
2184
  } while (rest > 0);
2220
- return reverseString(buffer.trim());
2185
+ return buffer;
2221
2186
  }
2222
2187
  function squeezeMoniker(str, maxlen) {
2223
2188
  var parts = str.split('-');
@@ -2254,8 +2219,8 @@ var utils;
2254
2219
  return str;
2255
2220
  }
2256
2221
  }
2257
- function replaceAtString(str, index, value) {
2258
- return str.substr(0, index) + value + str.substr(index + value.length);
2222
+ function replaceAtString(str, index, replacement) {
2223
+ return str.substring(0, index) + replacement + str.substring(index + replacement.length);
2259
2224
  }
2260
2225
  function getRandomInt(min, max) {
2261
2226
  return Math.floor(Math.random() * (max - min)) + min;
@@ -4034,6 +3999,35 @@ var EventEmitter = /** @class */ (function () {
4034
3999
  }());
4035
4000
 
4036
4001
  //# sourceMappingURL=event_emitter.js.map
4002
+ ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/string_utils.js
4003
+ function repeatString(str, times) {
4004
+ return str.repeat(times);
4005
+ }
4006
+ function reverseString(str) {
4007
+ return str.split("").reverse().join("");
4008
+ }
4009
+ function strEndsWith(str, symbol) {
4010
+ return str && str.lastIndexOf(symbol) == (str.length - symbol.length);
4011
+ }
4012
+ /**
4013
+ * Adds two paths and returns the result
4014
+ * Correctly processes leading and trailing slashes
4015
+ * @param path1
4016
+ * @param path2
4017
+ */
4018
+ function combinePath(path1, path2) {
4019
+ var result = path1;
4020
+ if (result != null && result.length > 0) {
4021
+ if (result.charAt(result.length - 1) != '/')
4022
+ result += "/";
4023
+ result += path2;
4024
+ }
4025
+ else {
4026
+ result = path2;
4027
+ }
4028
+ return result;
4029
+ }
4030
+ //# sourceMappingURL=string_utils.js.map
4037
4031
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/liquid.js
4038
4032
  var liquid;
4039
4033
  (function (liquid) {
@@ -15968,7 +15962,7 @@ var Query = /** @class */ (function () {
15968
15962
  throw new InvalidQueryError(entityAttrNotExistError + column.expr.args[0].value);
15969
15963
  }
15970
15964
  }
15971
- else if (column.expr.tag !== ExprTag.CustomSql) {
15965
+ else if (column.expr.tag === ExprTag.Unknown) {
15972
15966
  throw new InvalidQueryError(wrongExprTag + column.expr.tag);
15973
15967
  }
15974
15968
  }
@@ -16992,7 +16986,9 @@ var Query = /** @class */ (function () {
16992
16986
  var expr = cond.expressions[part.index];
16993
16987
  if (expr.kind == DataKind.Attribute || expr.tag == ExprTag.EntityAttribute) {
16994
16988
  var attr = model.getAttributeById(expr.value);
16995
- txt = model.getAttributeText(attr, "{entity} {attr}");
16989
+ if (attr != null) {
16990
+ txt = model.getAttributeText(attr, "{entity} {attr}");
16991
+ }
16996
16992
  }
16997
16993
  else {
16998
16994
  txt = expr.getText();
@@ -36528,7 +36524,7 @@ function strIsEmpty(str) {
36528
36524
  else
36529
36525
  return true;
36530
36526
  }
36531
- var baseLicApiUrl = 'https://korzh.com/api/license';
36527
+ var baseLicApiUrl = 'https://account.korzh.com/api/license';
36532
36528
  //const baseLicApiUrl = 'https://localhost:44301/api/license';
36533
36529
  var eqVersion = '7.2';
36534
36530
  var LCDialog = /** @class */ (function () {