@easyquery/ui 7.2.4-rc02 → 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.
- package/dist/browser/eq.community.js +50 -54
- package/dist/browser/eq.community.js.map +1 -1
- package/dist/browser/eq.community.min.js +1 -1
- package/dist/browser/eq.community.min.js.map +1 -1
- package/dist/browser/eq.core.css +1 -1
- package/dist/browser/eq.view.css +1 -1
- package/dist/bundles/easyquery.ui.js +21 -56
- package/dist/bundles/easyquery.ui.js.map +1 -1
- package/dist/bundles/easyquery.ui.min.js +1 -1
- package/dist/bundles/easyquery.ui.min.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Community 7.2.4-
|
|
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
|
|
2422
|
-
var
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
//
|
|
2428
|
-
var
|
|
2429
|
-
return prfx +
|
|
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
|
|
2433
|
-
|
|
2434
|
-
var
|
|
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 =
|
|
2403
|
+
buffer = symbols[rest % targetBase] + buffer;
|
|
2439
2404
|
rest = Math.floor(rest /= targetBase);
|
|
2440
2405
|
} while (rest > 0);
|
|
2441
|
-
return
|
|
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,
|
|
2479
|
-
return str.
|
|
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
|
|
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
|
-
|
|
15898
|
+
if (attr != null) {
|
|
15899
|
+
txt = model.getAttributeText(attr, "{entity} {attr}");
|
|
15900
|
+
}
|
|
15905
15901
|
}
|
|
15906
15902
|
else {
|
|
15907
15903
|
txt = expr.getText();
|