@kontur.candy/generator 4.290.0-errorlogapi.13 → 4.290.0-errorlogapi.16
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/index.js +1036 -258
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112324,7 +112324,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
112324
112324
|
/* harmony export */ "KCLangRuntimeUtils": () => (/* binding */ KCLangRuntimeUtils)
|
|
112325
112325
|
/* harmony export */ });
|
|
112326
112326
|
/* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.mjs");
|
|
112327
|
-
/* harmony import */ var
|
|
112327
|
+
/* harmony import */ var _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Engine/src/Engine/ValidationHelper */ "./Engine/src/Engine/ValidationHelper.ts");
|
|
112328
|
+
/* harmony import */ var _Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Engine/src/Helpers/AutocalcCommonFunctions */ "./Engine/src/Helpers/AutocalcCommonFunctions.ts");
|
|
112329
|
+
/* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TypingUtils */ "./Common/TypingUtils.ts");
|
|
112330
|
+
|
|
112331
|
+
|
|
112328
112332
|
|
|
112329
112333
|
|
|
112330
112334
|
|
|
@@ -112349,7 +112353,7 @@ class KCLangRuntimeUtils {
|
|
|
112349
112353
|
|
|
112350
112354
|
division(left, right) {
|
|
112351
112355
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112352
|
-
return (0,
|
|
112356
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).div(right);
|
|
112353
112357
|
}
|
|
112354
112358
|
|
|
112355
112359
|
return undefined;
|
|
@@ -112361,7 +112365,7 @@ class KCLangRuntimeUtils {
|
|
|
112361
112365
|
}
|
|
112362
112366
|
|
|
112363
112367
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112364
|
-
return (0,
|
|
112368
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).cmp(right) === 0;
|
|
112365
112369
|
}
|
|
112366
112370
|
|
|
112367
112371
|
return false;
|
|
@@ -112369,7 +112373,7 @@ class KCLangRuntimeUtils {
|
|
|
112369
112373
|
|
|
112370
112374
|
ge(left, right) {
|
|
112371
112375
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112372
|
-
return (0,
|
|
112376
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).gte(right);
|
|
112373
112377
|
}
|
|
112374
112378
|
|
|
112375
112379
|
return false;
|
|
@@ -112377,7 +112381,7 @@ class KCLangRuntimeUtils {
|
|
|
112377
112381
|
|
|
112378
112382
|
gt(left, right) {
|
|
112379
112383
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112380
|
-
return (0,
|
|
112384
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).gt(right);
|
|
112381
112385
|
}
|
|
112382
112386
|
|
|
112383
112387
|
return false;
|
|
@@ -112385,7 +112389,7 @@ class KCLangRuntimeUtils {
|
|
|
112385
112389
|
|
|
112386
112390
|
le(left, right) {
|
|
112387
112391
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112388
|
-
return (0,
|
|
112392
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).lte(right);
|
|
112389
112393
|
}
|
|
112390
112394
|
|
|
112391
112395
|
return false;
|
|
@@ -112393,7 +112397,7 @@ class KCLangRuntimeUtils {
|
|
|
112393
112397
|
|
|
112394
112398
|
lt(left, right) {
|
|
112395
112399
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112396
|
-
return (0,
|
|
112400
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).lt(right);
|
|
112397
112401
|
}
|
|
112398
112402
|
|
|
112399
112403
|
return false;
|
|
@@ -112401,7 +112405,7 @@ class KCLangRuntimeUtils {
|
|
|
112401
112405
|
|
|
112402
112406
|
minus(argument) {
|
|
112403
112407
|
if (isBigSource(argument)) {
|
|
112404
|
-
return (0,
|
|
112408
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(argument).mul(-1);
|
|
112405
112409
|
}
|
|
112406
112410
|
|
|
112407
112411
|
return undefined;
|
|
@@ -112409,7 +112413,7 @@ class KCLangRuntimeUtils {
|
|
|
112409
112413
|
|
|
112410
112414
|
multiply(left, right) {
|
|
112411
112415
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112412
|
-
return (0,
|
|
112416
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).mul(right);
|
|
112413
112417
|
}
|
|
112414
112418
|
|
|
112415
112419
|
return undefined;
|
|
@@ -112433,7 +112437,7 @@ class KCLangRuntimeUtils {
|
|
|
112433
112437
|
|
|
112434
112438
|
round(value, fractionDigits) {
|
|
112435
112439
|
if (isBigSource(value)) {
|
|
112436
|
-
return (0,
|
|
112440
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(value).round(fractionDigits);
|
|
112437
112441
|
}
|
|
112438
112442
|
|
|
112439
112443
|
return undefined;
|
|
@@ -112441,7 +112445,7 @@ class KCLangRuntimeUtils {
|
|
|
112441
112445
|
|
|
112442
112446
|
floor(value) {
|
|
112443
112447
|
if (isBigSource(value)) {
|
|
112444
|
-
return (0,
|
|
112448
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)((0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(value).round(undefined, 0));
|
|
112445
112449
|
}
|
|
112446
112450
|
|
|
112447
112451
|
return undefined;
|
|
@@ -112453,15 +112457,15 @@ class KCLangRuntimeUtils {
|
|
|
112453
112457
|
}
|
|
112454
112458
|
|
|
112455
112459
|
if (isBigSource(left) && isBigSource(right)) {
|
|
112456
|
-
return (0,
|
|
112460
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).add(right);
|
|
112457
112461
|
}
|
|
112458
112462
|
|
|
112459
112463
|
if (isBigSource(left)) {
|
|
112460
|
-
return (0,
|
|
112464
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left);
|
|
112461
112465
|
}
|
|
112462
112466
|
|
|
112463
112467
|
if (isBigSource(right)) {
|
|
112464
|
-
return (0,
|
|
112468
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(right);
|
|
112465
112469
|
}
|
|
112466
112470
|
|
|
112467
112471
|
return undefined;
|
|
@@ -112469,7 +112473,7 @@ class KCLangRuntimeUtils {
|
|
|
112469
112473
|
|
|
112470
112474
|
abs(argument) {
|
|
112471
112475
|
if (isBigSource(argument)) {
|
|
112472
|
-
return (0,
|
|
112476
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(argument).abs();
|
|
112473
112477
|
}
|
|
112474
112478
|
|
|
112475
112479
|
return undefined;
|
|
@@ -112477,7 +112481,7 @@ class KCLangRuntimeUtils {
|
|
|
112477
112481
|
|
|
112478
112482
|
xabs(argument) {
|
|
112479
112483
|
if (isBigSource(argument)) {
|
|
112480
|
-
const value = (0,
|
|
112484
|
+
const value = (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(argument);
|
|
112481
112485
|
return value.lt(0) ? new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](0) : value;
|
|
112482
112486
|
}
|
|
112483
112487
|
|
|
@@ -112501,8 +112505,71 @@ class KCLangRuntimeUtils {
|
|
|
112501
112505
|
return value != undefined && value != "";
|
|
112502
112506
|
}
|
|
112503
112507
|
|
|
112508
|
+
isSnils(valueSelector, path) {
|
|
112509
|
+
if (valueSelector == undefined) {
|
|
112510
|
+
return undefined;
|
|
112511
|
+
}
|
|
112512
|
+
|
|
112513
|
+
const value = valueSelector(path);
|
|
112514
|
+
const normalizedSnils = value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, "");
|
|
112515
|
+
|
|
112516
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNullOrWhiteSpace)(normalizedSnils)) {
|
|
112517
|
+
return false;
|
|
112518
|
+
}
|
|
112519
|
+
|
|
112520
|
+
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isSnils(normalizedSnils);
|
|
112521
|
+
return result;
|
|
112522
|
+
}
|
|
112523
|
+
|
|
112524
|
+
isInn(valueSelector, path) {
|
|
112525
|
+
if (valueSelector == undefined) {
|
|
112526
|
+
return undefined;
|
|
112527
|
+
}
|
|
112528
|
+
|
|
112529
|
+
const value = valueSelector(path);
|
|
112530
|
+
const normalizedSnils = value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, "");
|
|
112531
|
+
|
|
112532
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNullOrWhiteSpace)(normalizedSnils)) {
|
|
112533
|
+
return false;
|
|
112534
|
+
}
|
|
112535
|
+
|
|
112536
|
+
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isInn(normalizedSnils);
|
|
112537
|
+
return result;
|
|
112538
|
+
}
|
|
112539
|
+
|
|
112540
|
+
isValidAccountNumber(valueSelector, bik, account) {
|
|
112541
|
+
if (valueSelector == undefined) {
|
|
112542
|
+
return undefined;
|
|
112543
|
+
}
|
|
112544
|
+
|
|
112545
|
+
const bikValue = valueSelector(bik);
|
|
112546
|
+
const accountValue = valueSelector(account);
|
|
112547
|
+
|
|
112548
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNullOrWhiteSpace)(bikValue) || (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNullOrWhiteSpace)(accountValue)) {
|
|
112549
|
+
return false;
|
|
112550
|
+
}
|
|
112551
|
+
|
|
112552
|
+
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isValidAccountNumber(bikValue, accountValue);
|
|
112553
|
+
return result;
|
|
112554
|
+
}
|
|
112555
|
+
|
|
112556
|
+
isValidMirCardNumber(valueSelector, path) {
|
|
112557
|
+
if (valueSelector == undefined) {
|
|
112558
|
+
return undefined;
|
|
112559
|
+
}
|
|
112560
|
+
|
|
112561
|
+
const value = valueSelector(path);
|
|
112562
|
+
|
|
112563
|
+
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNullOrWhiteSpace)(value)) {
|
|
112564
|
+
return false;
|
|
112565
|
+
}
|
|
112566
|
+
|
|
112567
|
+
const result = _Engine_src_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isValidMirCardNumber(value);
|
|
112568
|
+
return result;
|
|
112569
|
+
}
|
|
112570
|
+
|
|
112504
112571
|
convertToDecimal(argument) {
|
|
112505
|
-
return (0,
|
|
112572
|
+
return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(argument);
|
|
112506
112573
|
}
|
|
112507
112574
|
|
|
112508
112575
|
convertToString(argument) {
|
|
@@ -114259,6 +114326,205 @@ class PathUtils {
|
|
|
114259
114326
|
|
|
114260
114327
|
/***/ }),
|
|
114261
114328
|
|
|
114329
|
+
/***/ "./Engine/src/Engine/ValidationHelper.ts":
|
|
114330
|
+
/*!***********************************************!*\
|
|
114331
|
+
!*** ./Engine/src/Engine/ValidationHelper.ts ***!
|
|
114332
|
+
\***********************************************/
|
|
114333
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
114334
|
+
|
|
114335
|
+
"use strict";
|
|
114336
|
+
__webpack_require__.r(__webpack_exports__);
|
|
114337
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
114338
|
+
/* harmony export */ "ValidationHelper": () => (/* binding */ ValidationHelper)
|
|
114339
|
+
/* harmony export */ });
|
|
114340
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
114341
|
+
|
|
114342
|
+
class ValidationHelper {
|
|
114343
|
+
static isBlank(str) {
|
|
114344
|
+
return !str || /^\s*$/.test(str);
|
|
114345
|
+
}
|
|
114346
|
+
|
|
114347
|
+
static isNumber(str) {
|
|
114348
|
+
return !this.isBlank(str) && str != undefined && /^-?\d+(([.]\d+$)|($))/.test(str);
|
|
114349
|
+
}
|
|
114350
|
+
|
|
114351
|
+
static isDateFormat(date) {
|
|
114352
|
+
if (/^(0[1-9]|[12][0-9]|3[01])\.(0[1-9]|1[012])\.(19|20)[0-9]{2}$/.test(date)) {
|
|
114353
|
+
var _v$, _v$2, _v$3;
|
|
114354
|
+
|
|
114355
|
+
const v = date.split(".");
|
|
114356
|
+
const d = parseInt((_v$ = v[0]) !== null && _v$ !== void 0 ? _v$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(), 10);
|
|
114357
|
+
const m = parseInt((_v$2 = v[1]) !== null && _v$2 !== void 0 ? _v$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(), 10);
|
|
114358
|
+
const y = parseInt((_v$3 = v[2]) !== null && _v$3 !== void 0 ? _v$3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(), 10);
|
|
114359
|
+
const o = new Date(Date.UTC(y, m - 1, d)); // o.setUTCHours(o.setUTCHours() + 2);//Orthodox Christmas magic in IE8 on new Date(2015,0,7)
|
|
114360
|
+
|
|
114361
|
+
return o.getUTCDate() === d && o.getUTCMonth() + 1 === m && o.getUTCFullYear() === y;
|
|
114362
|
+
}
|
|
114363
|
+
|
|
114364
|
+
return false;
|
|
114365
|
+
}
|
|
114366
|
+
|
|
114367
|
+
static isDateFormatIso(date) {
|
|
114368
|
+
if (/^(19|20)[0-9]{2}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$/.test(date)) {
|
|
114369
|
+
var _v$4, _v$5, _v$6;
|
|
114370
|
+
|
|
114371
|
+
const v = date.split("-");
|
|
114372
|
+
const d = parseInt((_v$4 = v[2]) !== null && _v$4 !== void 0 ? _v$4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(), 10);
|
|
114373
|
+
const m = parseInt((_v$5 = v[1]) !== null && _v$5 !== void 0 ? _v$5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(), 10);
|
|
114374
|
+
const y = parseInt((_v$6 = v[0]) !== null && _v$6 !== void 0 ? _v$6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(), 10);
|
|
114375
|
+
const o = new Date(Date.UTC(y, m - 1, d)); // o.setUTCHours(o.setUTCHours() + 2);//Orthodox Christmas magic in IE8 on new Date(2015,0,7)
|
|
114376
|
+
|
|
114377
|
+
return o.getUTCDate() === d && o.getUTCMonth() + 1 === m && o.getUTCFullYear() === y;
|
|
114378
|
+
}
|
|
114379
|
+
|
|
114380
|
+
return false;
|
|
114381
|
+
}
|
|
114382
|
+
|
|
114383
|
+
static isInn(str) {
|
|
114384
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNullOrWhiteSpace)(str)) {
|
|
114385
|
+
return false;
|
|
114386
|
+
}
|
|
114387
|
+
|
|
114388
|
+
const innBits = str.split("").map(x => parseInt(x, 10));
|
|
114389
|
+
|
|
114390
|
+
if (innBits.length === 10) {
|
|
114391
|
+
var _innBits$, _innBits$2, _innBits$3, _innBits$4, _innBits$5, _innBits$6, _innBits$7, _innBits$8, _innBits$9;
|
|
114392
|
+
|
|
114393
|
+
const sum9Inn = ((_innBits$ = innBits[0]) !== null && _innBits$ !== void 0 ? _innBits$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 2 + ((_innBits$2 = innBits[1]) !== null && _innBits$2 !== void 0 ? _innBits$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 4 + ((_innBits$3 = innBits[2]) !== null && _innBits$3 !== void 0 ? _innBits$3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 10 + ((_innBits$4 = innBits[3]) !== null && _innBits$4 !== void 0 ? _innBits$4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 3 + ((_innBits$5 = innBits[4]) !== null && _innBits$5 !== void 0 ? _innBits$5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 5 + ((_innBits$6 = innBits[5]) !== null && _innBits$6 !== void 0 ? _innBits$6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 9 + ((_innBits$7 = innBits[6]) !== null && _innBits$7 !== void 0 ? _innBits$7 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 4 + ((_innBits$8 = innBits[7]) !== null && _innBits$8 !== void 0 ? _innBits$8 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 6 + ((_innBits$9 = innBits[8]) !== null && _innBits$9 !== void 0 ? _innBits$9 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 8;
|
|
114394
|
+
const k10 = sum9Inn % 11 % 10;
|
|
114395
|
+
return k10 === innBits[9];
|
|
114396
|
+
}
|
|
114397
|
+
|
|
114398
|
+
if (innBits.length === 12) {
|
|
114399
|
+
var _innBits$10, _innBits$11, _innBits$12, _innBits$13, _innBits$14, _innBits$15, _innBits$16, _innBits$17, _innBits$18, _innBits$19, _innBits$20, _innBits$21, _innBits$22, _innBits$23, _innBits$24, _innBits$25, _innBits$26, _innBits$27, _innBits$28, _innBits$29, _innBits$30;
|
|
114400
|
+
|
|
114401
|
+
const sum10Inn = ((_innBits$10 = innBits[0]) !== null && _innBits$10 !== void 0 ? _innBits$10 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 7 + ((_innBits$11 = innBits[1]) !== null && _innBits$11 !== void 0 ? _innBits$11 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 2 + ((_innBits$12 = innBits[2]) !== null && _innBits$12 !== void 0 ? _innBits$12 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 4 + ((_innBits$13 = innBits[3]) !== null && _innBits$13 !== void 0 ? _innBits$13 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 10 + ((_innBits$14 = innBits[4]) !== null && _innBits$14 !== void 0 ? _innBits$14 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 3 + ((_innBits$15 = innBits[5]) !== null && _innBits$15 !== void 0 ? _innBits$15 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 5 + ((_innBits$16 = innBits[6]) !== null && _innBits$16 !== void 0 ? _innBits$16 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 9 + ((_innBits$17 = innBits[7]) !== null && _innBits$17 !== void 0 ? _innBits$17 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 4 + ((_innBits$18 = innBits[8]) !== null && _innBits$18 !== void 0 ? _innBits$18 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 6 + ((_innBits$19 = innBits[9]) !== null && _innBits$19 !== void 0 ? _innBits$19 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 8;
|
|
114402
|
+
const k11 = sum10Inn % 11 % 10;
|
|
114403
|
+
const sum11Inn = ((_innBits$20 = innBits[0]) !== null && _innBits$20 !== void 0 ? _innBits$20 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 3 + ((_innBits$21 = innBits[1]) !== null && _innBits$21 !== void 0 ? _innBits$21 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 7 + ((_innBits$22 = innBits[2]) !== null && _innBits$22 !== void 0 ? _innBits$22 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 2 + ((_innBits$23 = innBits[3]) !== null && _innBits$23 !== void 0 ? _innBits$23 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 4 + ((_innBits$24 = innBits[4]) !== null && _innBits$24 !== void 0 ? _innBits$24 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 10 + ((_innBits$25 = innBits[5]) !== null && _innBits$25 !== void 0 ? _innBits$25 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 3 + ((_innBits$26 = innBits[6]) !== null && _innBits$26 !== void 0 ? _innBits$26 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 5 + ((_innBits$27 = innBits[7]) !== null && _innBits$27 !== void 0 ? _innBits$27 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 9 + ((_innBits$28 = innBits[8]) !== null && _innBits$28 !== void 0 ? _innBits$28 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 4 + ((_innBits$29 = innBits[9]) !== null && _innBits$29 !== void 0 ? _innBits$29 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 6 + ((_innBits$30 = innBits[10]) !== null && _innBits$30 !== void 0 ? _innBits$30 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)()) * 8;
|
|
114404
|
+
const k12 = sum11Inn % 11 % 10;
|
|
114405
|
+
return k11 === innBits[10] && k12 === innBits[11];
|
|
114406
|
+
}
|
|
114407
|
+
|
|
114408
|
+
return false;
|
|
114409
|
+
}
|
|
114410
|
+
|
|
114411
|
+
static isValidAccountNumber(bik, accountNumber) {
|
|
114412
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNullOrWhiteSpace)(bik) || (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNullOrWhiteSpace)(accountNumber)) {
|
|
114413
|
+
return false;
|
|
114414
|
+
}
|
|
114415
|
+
|
|
114416
|
+
if (bik.length != 9 || accountNumber.length != 20) {
|
|
114417
|
+
return false;
|
|
114418
|
+
}
|
|
114419
|
+
|
|
114420
|
+
const allowedBicBase = ["000", "001", "002"];
|
|
114421
|
+
const coefs = {
|
|
114422
|
+
0: 7,
|
|
114423
|
+
1: 1,
|
|
114424
|
+
2: 3
|
|
114425
|
+
};
|
|
114426
|
+
const conditionNumber = allowedBicBase.includes(bik.slice(-3)) ? "0" + bik.substring(4, 2) : bik.slice(-3);
|
|
114427
|
+
const extendenedAccountNumber = conditionNumber + accountNumber;
|
|
114428
|
+
const totalCheckSum = extendenedAccountNumber.split("").reduce((sum, number, index) => {
|
|
114429
|
+
const coefOrder = index % 3;
|
|
114430
|
+
const x = coefs[coefOrder] * parseInt(number, 10);
|
|
114431
|
+
sum += x % 10;
|
|
114432
|
+
return sum;
|
|
114433
|
+
}, 0);
|
|
114434
|
+
return totalCheckSum % 10 == 0;
|
|
114435
|
+
}
|
|
114436
|
+
|
|
114437
|
+
static isValidMirCardNumber(cardNumber) {
|
|
114438
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNullOrWhiteSpace)(cardNumber)) {
|
|
114439
|
+
return false;
|
|
114440
|
+
} else if (cardNumber.length < 16) {
|
|
114441
|
+
return false;
|
|
114442
|
+
}
|
|
114443
|
+
|
|
114444
|
+
return this.LuhnAlgorithmCheckSumVerifier(cardNumber);
|
|
114445
|
+
}
|
|
114446
|
+
|
|
114447
|
+
static isSnils(snils) {
|
|
114448
|
+
if (!snils.length) {
|
|
114449
|
+
return false;
|
|
114450
|
+
} else if (/[^0-9]/.test(snils)) {
|
|
114451
|
+
return false; // СНИЛС может состоять только из цифр
|
|
114452
|
+
} else if (snils.length !== 11) {
|
|
114453
|
+
return false; // СНИЛС может состоять только из 11 цифр
|
|
114454
|
+
} else {
|
|
114455
|
+
let sum = 0;
|
|
114456
|
+
|
|
114457
|
+
for (let i = 0; i < 9; i++) {
|
|
114458
|
+
const currentDigit = snils[i];
|
|
114459
|
+
|
|
114460
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNotNullOrEmpty)(currentDigit)) {
|
|
114461
|
+
sum += parseInt(currentDigit, 10) * (9 - i);
|
|
114462
|
+
}
|
|
114463
|
+
}
|
|
114464
|
+
|
|
114465
|
+
let checkDigit = 0;
|
|
114466
|
+
|
|
114467
|
+
if (sum < 100) {
|
|
114468
|
+
checkDigit = sum;
|
|
114469
|
+
} else if (sum > 101) {
|
|
114470
|
+
checkDigit = parseInt((sum % 101).toString(), 10);
|
|
114471
|
+
|
|
114472
|
+
if (checkDigit === 100) {
|
|
114473
|
+
checkDigit = 0;
|
|
114474
|
+
}
|
|
114475
|
+
}
|
|
114476
|
+
|
|
114477
|
+
if (checkDigit === parseInt(snils.slice(-2), 10)) {
|
|
114478
|
+
return true;
|
|
114479
|
+
}
|
|
114480
|
+
}
|
|
114481
|
+
|
|
114482
|
+
return false;
|
|
114483
|
+
}
|
|
114484
|
+
|
|
114485
|
+
static isKpp(str) {
|
|
114486
|
+
if (str.length !== 9) {
|
|
114487
|
+
return false;
|
|
114488
|
+
} else if (!/([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})([0-9]{2})([0-9A-Z]{2})([0-9]{3})/.test(str)) {
|
|
114489
|
+
return false;
|
|
114490
|
+
}
|
|
114491
|
+
|
|
114492
|
+
return true;
|
|
114493
|
+
}
|
|
114494
|
+
|
|
114495
|
+
static isOkved(str) {
|
|
114496
|
+
if (str.length < 2 || str.length > 8) {
|
|
114497
|
+
return false;
|
|
114498
|
+
} else if (!/[0-9]{2}/.test(str) && !/[0-9]{2}\.[0-9]{1}/.test(str) && !/[0-9]{2}\.[0-9]{2}/.test(str) && !/[0-9]{2}\.[0-9]{2}\.[0-9]{1}/.test(str) && !/[0-9]{2}\.[0-9]{2}\.[0-9]{2}/.test(str)) {
|
|
114499
|
+
return false;
|
|
114500
|
+
}
|
|
114501
|
+
|
|
114502
|
+
return true;
|
|
114503
|
+
}
|
|
114504
|
+
|
|
114505
|
+
static LuhnAlgorithmCheckSumVerifier(value) {
|
|
114506
|
+
const numbers = value.split("").map(num => parseInt(num, 10));
|
|
114507
|
+
const totalCheckSum = numbers.reduce((sum, number, index) => {
|
|
114508
|
+
let cardNumber = number;
|
|
114509
|
+
|
|
114510
|
+
if ((numbers.length - index) % 2 == 0) {
|
|
114511
|
+
cardNumber *= 2;
|
|
114512
|
+
|
|
114513
|
+
if (cardNumber > 9) {
|
|
114514
|
+
cardNumber -= 9;
|
|
114515
|
+
}
|
|
114516
|
+
}
|
|
114517
|
+
|
|
114518
|
+
sum += cardNumber;
|
|
114519
|
+
return sum;
|
|
114520
|
+
}, 0);
|
|
114521
|
+
return totalCheckSum % 10 === 0;
|
|
114522
|
+
}
|
|
114523
|
+
|
|
114524
|
+
}
|
|
114525
|
+
|
|
114526
|
+
/***/ }),
|
|
114527
|
+
|
|
114262
114528
|
/***/ "./Engine/src/Helpers/AutocalcCommonFunctions.ts":
|
|
114263
114529
|
/*!*******************************************************!*\
|
|
114264
114530
|
!*** ./Engine/src/Helpers/AutocalcCommonFunctions.ts ***!
|
|
@@ -115265,10 +115531,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
115265
115531
|
/* harmony export */ "roundKCLangFunction": () => (/* binding */ roundKCLangFunction),
|
|
115266
115532
|
/* harmony export */ "floorKCLangFunction": () => (/* binding */ floorKCLangFunction),
|
|
115267
115533
|
/* harmony export */ "existsKCLangFunction": () => (/* binding */ existsKCLangFunction),
|
|
115534
|
+
/* harmony export */ "isSnilsKCLangFunction": () => (/* binding */ isSnilsKCLangFunction),
|
|
115535
|
+
/* harmony export */ "isInnKCLangFunction": () => (/* binding */ isInnKCLangFunction),
|
|
115536
|
+
/* harmony export */ "isValidMirCardNumberKCLangFunction": () => (/* binding */ isValidMirCardNumberKCLangFunction),
|
|
115537
|
+
/* harmony export */ "isValidAccountNumberKCLangFunction": () => (/* binding */ isValidAccountNumberKCLangFunction),
|
|
115268
115538
|
/* harmony export */ "countKCLangFunction": () => (/* binding */ countKCLangFunction),
|
|
115269
115539
|
/* harmony export */ "sumKCLangFunction": () => (/* binding */ sumKCLangFunction),
|
|
115270
115540
|
/* harmony export */ "substringKCLangFunction": () => (/* binding */ substringKCLangFunction),
|
|
115271
115541
|
/* harmony export */ "groupSumKCLangFunction": () => (/* binding */ groupSumKCLangFunction),
|
|
115542
|
+
/* harmony export */ "groupCountKCLangFunction": () => (/* binding */ groupCountKCLangFunction),
|
|
115272
115543
|
/* harmony export */ "concatKCLangFunction": () => (/* binding */ concatKCLangFunction),
|
|
115273
115544
|
/* harmony export */ "newlineKCLangFunction": () => (/* binding */ newlineKCLangFunction),
|
|
115274
115545
|
/* harmony export */ "dateNowKCLangFunction": () => (/* binding */ dateNowKCLangFunction)
|
|
@@ -115454,7 +115725,7 @@ const existsKCLangFunction = params => {
|
|
|
115454
115725
|
|
|
115455
115726
|
throw new Error("Invalid parameters!");
|
|
115456
115727
|
};
|
|
115457
|
-
const
|
|
115728
|
+
const isSnilsKCLangFunction = params => {
|
|
115458
115729
|
var _params$10;
|
|
115459
115730
|
|
|
115460
115731
|
const errors = Array.from(validateParams(params, 1));
|
|
@@ -115463,7 +115734,114 @@ const countKCLangFunction = params => {
|
|
|
115463
115734
|
return new FunctionValidationErrorCollection(errors);
|
|
115464
115735
|
}
|
|
115465
115736
|
|
|
115466
|
-
const
|
|
115737
|
+
const argumentExpr = (_params$10 = params[0]) === null || _params$10 === void 0 ? void 0 : _params$10.value;
|
|
115738
|
+
|
|
115739
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
115740
|
+
const param = argumentExpr.select;
|
|
115741
|
+
|
|
115742
|
+
if (param == undefined) {
|
|
115743
|
+
throw new Error("Unexpected error!");
|
|
115744
|
+
}
|
|
115745
|
+
|
|
115746
|
+
return {
|
|
115747
|
+
type: "isSnils",
|
|
115748
|
+
select: param
|
|
115749
|
+
};
|
|
115750
|
+
}
|
|
115751
|
+
|
|
115752
|
+
throw new Error("Invalid parameters!");
|
|
115753
|
+
};
|
|
115754
|
+
const isInnKCLangFunction = params => {
|
|
115755
|
+
var _params$11;
|
|
115756
|
+
|
|
115757
|
+
const errors = Array.from(validateParams(params, 1));
|
|
115758
|
+
|
|
115759
|
+
if (errors.length > 0) {
|
|
115760
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115761
|
+
}
|
|
115762
|
+
|
|
115763
|
+
const argumentExpr = (_params$11 = params[0]) === null || _params$11 === void 0 ? void 0 : _params$11.value;
|
|
115764
|
+
|
|
115765
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
115766
|
+
const param = argumentExpr.select;
|
|
115767
|
+
|
|
115768
|
+
if (param == undefined) {
|
|
115769
|
+
throw new Error("Unexpected error!");
|
|
115770
|
+
}
|
|
115771
|
+
|
|
115772
|
+
return {
|
|
115773
|
+
type: "isInn",
|
|
115774
|
+
select: param
|
|
115775
|
+
};
|
|
115776
|
+
}
|
|
115777
|
+
|
|
115778
|
+
throw new Error("Invalid parameters!");
|
|
115779
|
+
};
|
|
115780
|
+
const isValidMirCardNumberKCLangFunction = params => {
|
|
115781
|
+
var _params$12;
|
|
115782
|
+
|
|
115783
|
+
const errors = Array.from(validateParams(params, 1));
|
|
115784
|
+
|
|
115785
|
+
if (errors.length > 0) {
|
|
115786
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115787
|
+
}
|
|
115788
|
+
|
|
115789
|
+
const argumentExpr = (_params$12 = params[0]) === null || _params$12 === void 0 ? void 0 : _params$12.value;
|
|
115790
|
+
|
|
115791
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
115792
|
+
const param = argumentExpr.select;
|
|
115793
|
+
|
|
115794
|
+
if (param == undefined) {
|
|
115795
|
+
throw new Error("Unexpected error!");
|
|
115796
|
+
}
|
|
115797
|
+
|
|
115798
|
+
return {
|
|
115799
|
+
type: "isValidMirCardNumber",
|
|
115800
|
+
select: param
|
|
115801
|
+
};
|
|
115802
|
+
}
|
|
115803
|
+
|
|
115804
|
+
throw new Error("Invalid parameters!");
|
|
115805
|
+
};
|
|
115806
|
+
const isValidAccountNumberKCLangFunction = params => {
|
|
115807
|
+
var _params$13, _params$14;
|
|
115808
|
+
|
|
115809
|
+
const errors = Array.from(validateParams(params, 2));
|
|
115810
|
+
|
|
115811
|
+
if (errors.length > 0) {
|
|
115812
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115813
|
+
}
|
|
115814
|
+
|
|
115815
|
+
const bik = (_params$13 = params[0]) === null || _params$13 === void 0 ? void 0 : _params$13.value;
|
|
115816
|
+
const account = (_params$14 = params[1]) === null || _params$14 === void 0 ? void 0 : _params$14.value;
|
|
115817
|
+
|
|
115818
|
+
if ((bik === null || bik === void 0 ? void 0 : bik.type) === "argument" && (account === null || account === void 0 ? void 0 : account.type) === "argument") {
|
|
115819
|
+
const bikValue = bik.select;
|
|
115820
|
+
const accountValue = account.select;
|
|
115821
|
+
|
|
115822
|
+
if (accountValue == undefined || bikValue == undefined) {
|
|
115823
|
+
throw new Error("Unexpected error!");
|
|
115824
|
+
}
|
|
115825
|
+
|
|
115826
|
+
return {
|
|
115827
|
+
type: "isValidAccountNumber",
|
|
115828
|
+
bik: bikValue,
|
|
115829
|
+
account: accountValue
|
|
115830
|
+
};
|
|
115831
|
+
}
|
|
115832
|
+
|
|
115833
|
+
throw new Error("Invalid parameters!");
|
|
115834
|
+
};
|
|
115835
|
+
const countKCLangFunction = params => {
|
|
115836
|
+
var _params$15;
|
|
115837
|
+
|
|
115838
|
+
const errors = Array.from(validateParams(params, 1));
|
|
115839
|
+
|
|
115840
|
+
if (errors.length > 0) {
|
|
115841
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115842
|
+
}
|
|
115843
|
+
|
|
115844
|
+
const expr = (_params$15 = params[0]) === null || _params$15 === void 0 ? void 0 : _params$15.value;
|
|
115467
115845
|
|
|
115468
115846
|
if ((expr === null || expr === void 0 ? void 0 : expr.type) === "argument") {
|
|
115469
115847
|
const param = expr.select;
|
|
@@ -115481,7 +115859,7 @@ const countKCLangFunction = params => {
|
|
|
115481
115859
|
throw new Error("Invalid parameters!");
|
|
115482
115860
|
};
|
|
115483
115861
|
const sumKCLangFunction = params => {
|
|
115484
|
-
var _params$
|
|
115862
|
+
var _params$16;
|
|
115485
115863
|
|
|
115486
115864
|
const errors = Array.from(validateParams(params, 1));
|
|
115487
115865
|
|
|
@@ -115489,7 +115867,7 @@ const sumKCLangFunction = params => {
|
|
|
115489
115867
|
return new FunctionValidationErrorCollection(errors);
|
|
115490
115868
|
}
|
|
115491
115869
|
|
|
115492
|
-
const argumentExpr = (_params$
|
|
115870
|
+
const argumentExpr = (_params$16 = params[0]) === null || _params$16 === void 0 ? void 0 : _params$16.value;
|
|
115493
115871
|
|
|
115494
115872
|
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
115495
115873
|
const param = argumentExpr.select;
|
|
@@ -115507,7 +115885,7 @@ const sumKCLangFunction = params => {
|
|
|
115507
115885
|
throw new Error("Invalid parameters!");
|
|
115508
115886
|
};
|
|
115509
115887
|
const substringKCLangFunction = params => {
|
|
115510
|
-
var _params$
|
|
115888
|
+
var _params$17, _params$18, _params$19;
|
|
115511
115889
|
|
|
115512
115890
|
const errors = Array.from(validateParams(params, 2, 1));
|
|
115513
115891
|
|
|
@@ -115515,9 +115893,9 @@ const substringKCLangFunction = params => {
|
|
|
115515
115893
|
return new FunctionValidationErrorCollection(errors);
|
|
115516
115894
|
}
|
|
115517
115895
|
|
|
115518
|
-
const exprParam = (_params$
|
|
115519
|
-
const startParam = (_params$
|
|
115520
|
-
const lengthParam = (_params$
|
|
115896
|
+
const exprParam = (_params$17 = params[0]) === null || _params$17 === void 0 ? void 0 : _params$17.value;
|
|
115897
|
+
const startParam = (_params$18 = params[1]) === null || _params$18 === void 0 ? void 0 : _params$18.value;
|
|
115898
|
+
const lengthParam = (_params$19 = params[2]) === null || _params$19 === void 0 ? void 0 : _params$19.value;
|
|
115521
115899
|
|
|
115522
115900
|
if (exprParam == undefined) {
|
|
115523
115901
|
throw new Error("Unexpected error!");
|
|
@@ -115538,7 +115916,7 @@ const substringKCLangFunction = params => {
|
|
|
115538
115916
|
};
|
|
115539
115917
|
};
|
|
115540
115918
|
const groupSumKCLangFunction = params => {
|
|
115541
|
-
var _params$
|
|
115919
|
+
var _params$20, _params$21, _params$22;
|
|
115542
115920
|
|
|
115543
115921
|
const errors = Array.from(validateParams(params, 3));
|
|
115544
115922
|
|
|
@@ -115546,9 +115924,9 @@ const groupSumKCLangFunction = params => {
|
|
|
115546
115924
|
return new FunctionValidationErrorCollection(errors);
|
|
115547
115925
|
}
|
|
115548
115926
|
|
|
115549
|
-
const targetKeyPathParam = (_params$
|
|
115550
|
-
const sourceKeyPathParam = (_params$
|
|
115551
|
-
const sourceValuePathParam = (_params$
|
|
115927
|
+
const targetKeyPathParam = (_params$20 = params[0]) === null || _params$20 === void 0 ? void 0 : _params$20.value;
|
|
115928
|
+
const sourceKeyPathParam = (_params$21 = params[1]) === null || _params$21 === void 0 ? void 0 : _params$21.value;
|
|
115929
|
+
const sourceValuePathParam = (_params$22 = params[2]) === null || _params$22 === void 0 ? void 0 : _params$22.value;
|
|
115552
115930
|
|
|
115553
115931
|
if ((targetKeyPathParam === null || targetKeyPathParam === void 0 ? void 0 : targetKeyPathParam.type) !== "argument" || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || (sourceValuePathParam === null || sourceValuePathParam === void 0 ? void 0 : sourceValuePathParam.type) !== "argument") {
|
|
115554
115932
|
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeyPath, sourceKeyPath, sourceValuePath");
|
|
@@ -115562,6 +115940,29 @@ const groupSumKCLangFunction = params => {
|
|
|
115562
115940
|
sourceValuePath: sourceValuePathParam.select
|
|
115563
115941
|
};
|
|
115564
115942
|
};
|
|
115943
|
+
const groupCountKCLangFunction = params => {
|
|
115944
|
+
var _params$23, _params$24;
|
|
115945
|
+
|
|
115946
|
+
const errors = Array.from(validateParams(params, 2));
|
|
115947
|
+
|
|
115948
|
+
if (errors.length > 0) {
|
|
115949
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115950
|
+
}
|
|
115951
|
+
|
|
115952
|
+
const targetKeyPathParam = (_params$23 = params[0]) === null || _params$23 === void 0 ? void 0 : _params$23.value;
|
|
115953
|
+
const sourceKeyPathParam = (_params$24 = params[1]) === null || _params$24 === void 0 ? void 0 : _params$24.value;
|
|
115954
|
+
|
|
115955
|
+
if ((targetKeyPathParam === null || targetKeyPathParam === void 0 ? void 0 : targetKeyPathParam.type) !== "argument" || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
|
|
115956
|
+
const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
|
|
115957
|
+
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
115958
|
+
}
|
|
115959
|
+
|
|
115960
|
+
return {
|
|
115961
|
+
type: "groupCount",
|
|
115962
|
+
targetKeyPath: targetKeyPathParam.select,
|
|
115963
|
+
sourceKeyPath: sourceKeyPathParam.select
|
|
115964
|
+
};
|
|
115965
|
+
};
|
|
115565
115966
|
const concatKCLangFunction = params => {
|
|
115566
115967
|
const errors = Array.from(validateParams(params, 2, Infinity));
|
|
115567
115968
|
|
|
@@ -115631,10 +116032,15 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
115631
116032
|
round: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.roundKCLangFunction],
|
|
115632
116033
|
floor: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.floorKCLangFunction],
|
|
115633
116034
|
exists: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.existsKCLangFunction],
|
|
116035
|
+
isSnils: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.isSnilsKCLangFunction],
|
|
116036
|
+
isInn: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.isInnKCLangFunction],
|
|
116037
|
+
isValidAccountNumber: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.isValidAccountNumberKCLangFunction],
|
|
116038
|
+
isValidMirCardNumber: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.isValidMirCardNumberKCLangFunction],
|
|
115634
116039
|
sum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.sumKCLangFunction],
|
|
115635
116040
|
substring: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.substringKCLangFunction],
|
|
115636
116041
|
count: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.countKCLangFunction],
|
|
115637
116042
|
groupSum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.groupSumKCLangFunction],
|
|
116043
|
+
groupCount: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.groupCountKCLangFunction],
|
|
115638
116044
|
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.concatKCLangFunction],
|
|
115639
116045
|
newline: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.newlineKCLangFunction],
|
|
115640
116046
|
dateNow: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateNowKCLangFunction]
|
|
@@ -115738,7 +116144,7 @@ class KCLangAntlrVisitor {
|
|
|
115738
116144
|
}
|
|
115739
116145
|
|
|
115740
116146
|
visitCheck(ctx) {
|
|
115741
|
-
var _ctx$formula;
|
|
116147
|
+
var _ctx$formula, _withBlocks$descripti;
|
|
115742
116148
|
|
|
115743
116149
|
const node = (_ctx$formula = ctx.formula()) !== null && _ctx$formula !== void 0 ? _ctx$formula : ctx.expression();
|
|
115744
116150
|
|
|
@@ -115748,26 +116154,13 @@ class KCLangAntlrVisitor {
|
|
|
115748
116154
|
|
|
115749
116155
|
const formula = ctx.formula();
|
|
115750
116156
|
const expression = ctx.expression();
|
|
115751
|
-
const withBlocks = ctx.withBlock().map(i => i.accept(this))
|
|
115752
|
-
|
|
115753
|
-
|
|
115754
|
-
|
|
115755
|
-
|
|
115756
|
-
|
|
115757
|
-
|
|
115758
|
-
case "description":
|
|
115759
|
-
description = withBlock.value;
|
|
115760
|
-
break;
|
|
115761
|
-
|
|
115762
|
-
case "errorLevel":
|
|
115763
|
-
errorLevel = withBlock.value;
|
|
115764
|
-
break;
|
|
115765
|
-
|
|
115766
|
-
default:
|
|
115767
|
-
break;
|
|
115768
|
-
}
|
|
115769
|
-
}
|
|
115770
|
-
}
|
|
116157
|
+
const withBlocks = ctx.withBlock().map(i => i.accept(this)).reduce((result, currentBlock) => {
|
|
116158
|
+
result[currentBlock.name] = currentBlock.value;
|
|
116159
|
+
return result;
|
|
116160
|
+
}, {});
|
|
116161
|
+
const description = (_withBlocks$descripti = withBlocks["description"]) !== null && _withBlocks$descripti !== void 0 ? _withBlocks$descripti : "";
|
|
116162
|
+
const errorLevel = withBlocks["errorLevel"];
|
|
116163
|
+
const target = withBlocks["target"];
|
|
115771
116164
|
|
|
115772
116165
|
if (formula) {
|
|
115773
116166
|
let formulaValue = [formula.accept(this)];
|
|
@@ -115783,6 +116176,7 @@ class KCLangAntlrVisitor {
|
|
|
115783
116176
|
} else if (expression) {
|
|
115784
116177
|
const expressionValue = {
|
|
115785
116178
|
expression: expression.accept(this),
|
|
116179
|
+
target: target,
|
|
115786
116180
|
type: "ensure",
|
|
115787
116181
|
level: errorLevel
|
|
115788
116182
|
};
|
|
@@ -121306,6 +121700,22 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
121306
121700
|
visitor.visitExistsKCLangNode(node);
|
|
121307
121701
|
break;
|
|
121308
121702
|
|
|
121703
|
+
case "isSnils":
|
|
121704
|
+
visitor.visitIsSnilsKCLangNode(node);
|
|
121705
|
+
break;
|
|
121706
|
+
|
|
121707
|
+
case "isValidAccountNumber":
|
|
121708
|
+
visitor.visitIsValidAccountNumberNode(node);
|
|
121709
|
+
break;
|
|
121710
|
+
|
|
121711
|
+
case "isValidMirCardNumber":
|
|
121712
|
+
visitor.visitIsValidMirCardNumberNode(node);
|
|
121713
|
+
break;
|
|
121714
|
+
|
|
121715
|
+
case "isInn":
|
|
121716
|
+
visitor.visitIsInnKCLangNode(node);
|
|
121717
|
+
break;
|
|
121718
|
+
|
|
121309
121719
|
case "length":
|
|
121310
121720
|
traverseKCLangExpression(node.expression, visitor);
|
|
121311
121721
|
visitor.visitLengthKCLangNode(node);
|
|
@@ -121400,6 +121810,10 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
121400
121810
|
visitor.visitGroupSumKCLangNode(node);
|
|
121401
121811
|
break;
|
|
121402
121812
|
|
|
121813
|
+
case "groupCount":
|
|
121814
|
+
visitor.visitGroupCountKCLangNode(node);
|
|
121815
|
+
break;
|
|
121816
|
+
|
|
121403
121817
|
case "substring":
|
|
121404
121818
|
traverseKCLangExpression(node.expression, visitor);
|
|
121405
121819
|
visitor.visitSubstringKCLangNode(node);
|
|
@@ -121456,6 +121870,18 @@ class DefaultKCLangExpressionVisitor {
|
|
|
121456
121870
|
visitExistsKCLangNode(node) {// default empty implementation
|
|
121457
121871
|
}
|
|
121458
121872
|
|
|
121873
|
+
visitIsSnilsKCLangNode(node) {// default empty implementation
|
|
121874
|
+
}
|
|
121875
|
+
|
|
121876
|
+
visitIsInnKCLangNode(node) {// default empty implementation
|
|
121877
|
+
}
|
|
121878
|
+
|
|
121879
|
+
visitIsValidAccountNumberNode(node) {// default empty implementation
|
|
121880
|
+
}
|
|
121881
|
+
|
|
121882
|
+
visitIsValidMirCardNumberNode(node) {// default empty implementation
|
|
121883
|
+
}
|
|
121884
|
+
|
|
121459
121885
|
visitLengthKCLangNode(node) {// default empty implementation
|
|
121460
121886
|
}
|
|
121461
121887
|
|
|
@@ -121471,6 +121897,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
121471
121897
|
visitGroupSumKCLangNode(node) {// default empty implementation
|
|
121472
121898
|
}
|
|
121473
121899
|
|
|
121900
|
+
visitGroupCountKCLangNode(node) {// default empty implementation
|
|
121901
|
+
}
|
|
121902
|
+
|
|
121474
121903
|
visitNotKCLangNode(node) {// default empty implementation
|
|
121475
121904
|
}
|
|
121476
121905
|
|
|
@@ -121769,11 +122198,39 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
121769
122198
|
|
|
121770
122199
|
case "exists":
|
|
121771
122200
|
{
|
|
121772
|
-
//
|
|
122201
|
+
//eslint-disable-next-line @typescript-eslint/unbound-method
|
|
121773
122202
|
const existsFnName = gn(x => x.exists);
|
|
121774
122203
|
return `${utilsName}.${existsFnName}(${pathFnName}, "${expression.select}")`;
|
|
121775
122204
|
}
|
|
121776
122205
|
|
|
122206
|
+
case "isSnils":
|
|
122207
|
+
{
|
|
122208
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
122209
|
+
const isSnilsFnName = gn(x => x.isSnils);
|
|
122210
|
+
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${expression.select}")`;
|
|
122211
|
+
}
|
|
122212
|
+
|
|
122213
|
+
case "isInn":
|
|
122214
|
+
{
|
|
122215
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
122216
|
+
const isInnFnName = gn(x => x.isInn);
|
|
122217
|
+
return `${utilsName}.${isInnFnName}(${pathFnName}, "${expression.select}")`;
|
|
122218
|
+
}
|
|
122219
|
+
|
|
122220
|
+
case "isValidMirCardNumber":
|
|
122221
|
+
{
|
|
122222
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
122223
|
+
const isValidMirCardNumberFnName = gn(x => x.isValidMirCardNumber);
|
|
122224
|
+
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${expression.select}")`;
|
|
122225
|
+
}
|
|
122226
|
+
|
|
122227
|
+
case "isValidAccountNumber":
|
|
122228
|
+
{
|
|
122229
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
122230
|
+
const isValidAccountNumberFnName = gn(x => x.isValidAccountNumber);
|
|
122231
|
+
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${expression.bik}", "${expression.account}")`;
|
|
122232
|
+
}
|
|
122233
|
+
|
|
121777
122234
|
case "const":
|
|
121778
122235
|
{
|
|
121779
122236
|
const constExprValue = expression.value.value;
|
|
@@ -121870,6 +122327,7 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
121870
122327
|
}
|
|
121871
122328
|
|
|
121872
122329
|
case "count":
|
|
122330
|
+
case "groupCount":
|
|
121873
122331
|
case "groupSum":
|
|
121874
122332
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
121875
122333
|
|
|
@@ -121954,12 +122412,21 @@ function generateKCXmlExpression(expression) {
|
|
|
121954
122412
|
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
121955
122413
|
|
|
121956
122414
|
case "exists":
|
|
122415
|
+
case "isSnils":
|
|
122416
|
+
case "isInn":
|
|
122417
|
+
case "isValidMirCardNumber":
|
|
121957
122418
|
case "multySum":
|
|
121958
122419
|
return `<m:${expression.type} select="${expression.select}" />`;
|
|
121959
122420
|
|
|
122421
|
+
case "isValidAccountNumber":
|
|
122422
|
+
return `<m:${expression.type} bik="${expression.bik}" account="${expression.account}" />`;
|
|
122423
|
+
|
|
121960
122424
|
case "groupSum":
|
|
121961
122425
|
return `<m:${expression.type} targetKeyPath="${expression.targetKeyPath}" sourceKeyPath="${expression.sourceKeyPath}" sourceValuePath="${expression.sourceValuePath}" />`;
|
|
121962
122426
|
|
|
122427
|
+
case "groupCount":
|
|
122428
|
+
return `<m:${expression.type} targetKeyPath="${expression.targetKeyPath}" sourceKeyPath="${expression.sourceKeyPath}" />`;
|
|
122429
|
+
|
|
121963
122430
|
case "cast":
|
|
121964
122431
|
if (expression.expression.type === "argument") {
|
|
121965
122432
|
return `<m:argument select="${expression.expression.select}" type="${expression.targetType}" />`;
|
|
@@ -122119,6 +122586,30 @@ function guessConditionTarget(condition) {
|
|
|
122119
122586
|
}
|
|
122120
122587
|
}
|
|
122121
122588
|
|
|
122589
|
+
visitIsSnilsKCLangNode(node) {
|
|
122590
|
+
if (result == undefined) {
|
|
122591
|
+
result = node.select;
|
|
122592
|
+
}
|
|
122593
|
+
}
|
|
122594
|
+
|
|
122595
|
+
visitIsInnKCLangNode(node) {
|
|
122596
|
+
if (result == undefined) {
|
|
122597
|
+
result = node.select;
|
|
122598
|
+
}
|
|
122599
|
+
}
|
|
122600
|
+
|
|
122601
|
+
visitIsValidMirCardNumberNode(node) {
|
|
122602
|
+
if (result == undefined) {
|
|
122603
|
+
result = node.select;
|
|
122604
|
+
}
|
|
122605
|
+
}
|
|
122606
|
+
|
|
122607
|
+
visitIsValidAccountNumberNode(node) {
|
|
122608
|
+
if (result == undefined) {
|
|
122609
|
+
result = node.account;
|
|
122610
|
+
}
|
|
122611
|
+
}
|
|
122612
|
+
|
|
122122
122613
|
visitArgumentKCLangNode(node) {
|
|
122123
122614
|
if (result == undefined) {
|
|
122124
122615
|
result = node.select;
|
|
@@ -122138,9 +122629,11 @@ function guessConditionTarget(condition) {
|
|
|
122138
122629
|
}
|
|
122139
122630
|
|
|
122140
122631
|
function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
|
|
122632
|
+
var _ast$target;
|
|
122633
|
+
|
|
122141
122634
|
const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
|
|
122142
122635
|
const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
|
|
122143
|
-
const guessedTarget = guessConditionTarget(ast);
|
|
122636
|
+
const guessedTarget = (_ast$target = ast.target) !== null && _ast$target !== void 0 ? _ast$target : guessConditionTarget(ast);
|
|
122144
122637
|
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
122145
122638
|
|
|
122146
122639
|
if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
|
|
@@ -127040,6 +127533,10 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
|
|
|
127040
127533
|
}
|
|
127041
127534
|
|
|
127042
127535
|
compileAllItemsIsEmptyCheckBlock(innerExpression, deps) {
|
|
127536
|
+
if (deps.length === 0) {
|
|
127537
|
+
return innerExpression;
|
|
127538
|
+
}
|
|
127539
|
+
|
|
127043
127540
|
const compiledArgumentsCondition = deps.map(x => x.toLegacyPath()).map(x => `(expression.argument("${x}") === "" || expression.argument("${x}") == undefined)`).join(" && ");
|
|
127044
127541
|
const compiledBlock = `(${compiledArgumentsCondition} ? undefined : ${innerExpression})`;
|
|
127045
127542
|
return compiledBlock;
|
|
@@ -127054,9 +127551,12 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
|
|
|
127054
127551
|
const autoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(target.toLegacyPath());
|
|
127055
127552
|
const disabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(target.toLegacyPath());
|
|
127056
127553
|
const compiledTarget = this.modelPathInstance(target);
|
|
127057
|
-
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.map(x => (
|
|
127058
|
-
|
|
127059
|
-
|
|
127554
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.map(x => ({
|
|
127555
|
+
path: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(x) ? x : (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isAggregationDependencyModelPath)(x) ? x.modelPath : x.path,
|
|
127556
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x)
|
|
127557
|
+
})).filter(x => !x.path.isEquals(target)), x => x.path.toLegacyPath()));
|
|
127558
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path.toCurrentIteration()).map(x => this.modelPathInstance(x)).join(", ");
|
|
127559
|
+
const compiledExpressionWithCheck = this.compileAllItemsIsEmptyCheckBlock(compiledExpression, dependencyModelPaths.filter(x => !x.isIgnoreForChecks).map(x => x.path));
|
|
127060
127560
|
const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpressionWithCheck}, "${defaultValue}")`;
|
|
127061
127561
|
return {
|
|
127062
127562
|
compiledFunction: `new CalculationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate}, ${autoField}, ${disabled})`,
|
|
@@ -128100,6 +128600,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
128100
128600
|
/* harmony export */ "DummyContent": () => (/* binding */ DummyContent),
|
|
128101
128601
|
/* harmony export */ "FormulaSumExpression": () => (/* binding */ FormulaSumExpression),
|
|
128102
128602
|
/* harmony export */ "FormulaGroupSumExpression": () => (/* binding */ FormulaGroupSumExpression),
|
|
128603
|
+
/* harmony export */ "FormulaGroupCountExpression": () => (/* binding */ FormulaGroupCountExpression),
|
|
128103
128604
|
/* harmony export */ "FormulaAndExpression": () => (/* binding */ FormulaAndExpression),
|
|
128104
128605
|
/* harmony export */ "FormulaOrExpression": () => (/* binding */ FormulaOrExpression),
|
|
128105
128606
|
/* harmony export */ "FormulaGtExpression": () => (/* binding */ FormulaGtExpression),
|
|
@@ -128127,6 +128628,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
128127
128628
|
/* harmony export */ "FormulaSubstringExpression": () => (/* binding */ FormulaSubstringExpression),
|
|
128128
128629
|
/* harmony export */ "FormulaCastExpression": () => (/* binding */ FormulaCastExpression),
|
|
128129
128630
|
/* harmony export */ "FormulaDateNowExpression": () => (/* binding */ FormulaDateNowExpression),
|
|
128631
|
+
/* harmony export */ "FormulaIsSnilsExpression": () => (/* binding */ FormulaIsSnilsExpression),
|
|
128632
|
+
/* harmony export */ "FormulaIsInnExpression": () => (/* binding */ FormulaIsInnExpression),
|
|
128633
|
+
/* harmony export */ "FormulaIsValidMirCardNumberExpression": () => (/* binding */ FormulaIsValidMirCardNumberExpression),
|
|
128634
|
+
/* harmony export */ "FormulaIsValidAccountNumberExpression": () => (/* binding */ FormulaIsValidAccountNumberExpression),
|
|
128130
128635
|
/* harmony export */ "FormulaArgumentExpression": () => (/* binding */ FormulaArgumentExpression),
|
|
128131
128636
|
/* harmony export */ "FormulaExistsExpression": () => (/* binding */ FormulaExistsExpression),
|
|
128132
128637
|
/* harmony export */ "FormulaMultySumExpression": () => (/* binding */ FormulaMultySumExpression),
|
|
@@ -128153,7 +128658,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
128153
128658
|
|
|
128154
128659
|
|
|
128155
128660
|
|
|
128156
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class4, _dec4, _dec5, _class5, _class6, _descriptor2, _dec6, _dec7, _dec8, _dec9, _class8, _class9, _descriptor3, _descriptor4, _descriptor5, _dec10, _dec11, _class11, _class12, _descriptor6,
|
|
128661
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class4, _dec4, _dec5, _class5, _class6, _descriptor2, _dec6, _dec7, _dec8, _dec9, _class8, _class9, _descriptor3, _descriptor4, _descriptor5, _dec10, _dec11, _dec12, _class11, _class12, _descriptor6, _descriptor7, _dec13, _dec14, _class14, _class15, _descriptor8, _dec15, _dec16, _class17, _class18, _descriptor9, _dec17, _dec18, _class20, _class21, _descriptor10, _dec19, _dec20, _class23, _class24, _descriptor11, _dec21, _dec22, _dec23, _class26, _class27, _descriptor12, _descriptor13, _dec24, _dec25, _dec26, _class29, _class30, _descriptor14, _descriptor15, _dec27, _dec28, _class32, _class33, _descriptor16, _dec29, _dec30, _class35, _class36, _descriptor17, _dec31, _dec32, _class38, _class39, _descriptor18, _dec33, _dec34, _class41, _class42, _descriptor19, _dec35, _dec36, _class44, _class45, _descriptor20, _dec37, _dec38, _class47, _class48, _descriptor21, _dec39, _dec40, _class50, _class51, _descriptor22, _dec41, _dec42, _class53, _class54, _descriptor23, _dec43, _dec44, _class56, _class57, _descriptor24, _dec45, _dec46, _dec47, _dec48, _class59, _class60, _descriptor25, _descriptor26, _descriptor27, _dec49, _dec50, _class62, _class63, _descriptor28, _dec51, _dec52, _class65, _class66, _descriptor29, _dec53, _dec54, _dec55, _class68, _class69, _descriptor30, _descriptor31, _dec56, _dec57, _class71, _class72, _descriptor32, _dec58, _dec59, _class74, _class75, _descriptor33, _dec60, _dec61, _class77, _class78, _descriptor34, _dec62, _dec63, _class80, _class81, _descriptor35, _dec64, _dec65, _dec66, _class83, _class84, _descriptor36, _descriptor37, _dec67, _dec68, _dec69, _dec70, _class86, _class87, _descriptor38, _descriptor39, _descriptor40, _dec71, _dec72, _dec73, _class89, _class90, _descriptor41, _descriptor42, _dec74, _class92, _dec75, _dec76, _class93, _class94, _descriptor43, _dec77, _dec78, _class96, _class97, _descriptor44, _dec79, _dec80, _class99, _class100, _descriptor45, _dec81, _dec82, _dec83, _class102, _class103, _descriptor46, _descriptor47, _dec84, _dec85, _dec86, _class105, _class106, _descriptor48, _descriptor49, _dec87, _dec88, _class108, _class109, _descriptor50, _dec89, _dec90, _class111, _class112, _descriptor51, _dec91, _dec92, _dec93, _class114, _class115, _descriptor52, _descriptor53, _dec94, _dec95, _class117, _class118, _descriptor54, _dec96, _class120, _dec97, _dec98, _dec99, _dec100, _class121, _class122, _descriptor55, _descriptor56, _descriptor57, _dec101, _dec102, _class124, _class125, _descriptor58, _dec103, _dec104, _dec105, _dec106, _dec107, _dec108, _class127, _class128, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _dec109, _dec110, _class130, _class131, _descriptor64, _dec111, _dec112, _dec113, _class133, _class134, _descriptor65, _descriptor66;
|
|
128157
128662
|
|
|
128158
128663
|
|
|
128159
128664
|
|
|
@@ -128233,679 +128738,774 @@ let FormulaGroupSumExpression = (_dec6 = (0,_markupGenerator_Serializer_SugarSer
|
|
|
128233
128738
|
writable: true,
|
|
128234
128739
|
initializer: null
|
|
128235
128740
|
})), _class9)) || _class8);
|
|
128236
|
-
let
|
|
128741
|
+
let FormulaGroupCountExpression = (_dec10 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec11 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("targetKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в целевой множественности`), _dec12 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec10(_class11 = (_class12 = class FormulaGroupCountExpression extends FormulaExpression {
|
|
128237
128742
|
constructor(...args) {
|
|
128238
128743
|
super(...args);
|
|
128239
128744
|
|
|
128240
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
128745
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeyPath", _descriptor6, this);
|
|
128746
|
+
|
|
128747
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor7, this);
|
|
128748
|
+
}
|
|
128749
|
+
|
|
128750
|
+
}, (_descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class12.prototype, "targetKeyPath", [_dec11], {
|
|
128751
|
+
configurable: true,
|
|
128752
|
+
enumerable: true,
|
|
128753
|
+
writable: true,
|
|
128754
|
+
initializer: null
|
|
128755
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class12.prototype, "sourceKeyPath", [_dec12], {
|
|
128756
|
+
configurable: true,
|
|
128757
|
+
enumerable: true,
|
|
128758
|
+
writable: true,
|
|
128759
|
+
initializer: null
|
|
128760
|
+
})), _class12)) || _class11);
|
|
128761
|
+
let FormulaAndExpression = (_dec13 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("and", `TODO`), _dec14 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec13(_class14 = (_class15 = class FormulaAndExpression extends FormulaExpression {
|
|
128762
|
+
constructor(...args) {
|
|
128763
|
+
super(...args);
|
|
128764
|
+
|
|
128765
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor8, this);
|
|
128241
128766
|
}
|
|
128242
128767
|
|
|
128243
128768
|
getLegacyExpressionTypeForFunctionName() {
|
|
128244
128769
|
return "and";
|
|
128245
128770
|
}
|
|
128246
128771
|
|
|
128247
|
-
}, (
|
|
128772
|
+
}, (_descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class15.prototype, "arguments", [_dec14], {
|
|
128248
128773
|
configurable: true,
|
|
128249
128774
|
enumerable: true,
|
|
128250
128775
|
writable: true,
|
|
128251
128776
|
initializer: null
|
|
128252
|
-
})),
|
|
128253
|
-
let FormulaOrExpression = (
|
|
128777
|
+
})), _class15)) || _class14);
|
|
128778
|
+
let FormulaOrExpression = (_dec15 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("or", `TODO`), _dec16 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec15(_class17 = (_class18 = class FormulaOrExpression extends FormulaExpression {
|
|
128254
128779
|
constructor(...args) {
|
|
128255
128780
|
super(...args);
|
|
128256
128781
|
|
|
128257
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
128782
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor9, this);
|
|
128258
128783
|
}
|
|
128259
128784
|
|
|
128260
128785
|
getLegacyExpressionTypeForFunctionName() {
|
|
128261
128786
|
return "or";
|
|
128262
128787
|
}
|
|
128263
128788
|
|
|
128264
|
-
}, (
|
|
128789
|
+
}, (_descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class18.prototype, "arguments", [_dec16], {
|
|
128265
128790
|
configurable: true,
|
|
128266
128791
|
enumerable: true,
|
|
128267
128792
|
writable: true,
|
|
128268
128793
|
initializer: null
|
|
128269
|
-
})),
|
|
128270
|
-
let FormulaGtExpression = (
|
|
128794
|
+
})), _class18)) || _class17);
|
|
128795
|
+
let FormulaGtExpression = (_dec17 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("gt", `TODO`), _dec18 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec17(_class20 = (_class21 = class FormulaGtExpression extends FormulaExpression {
|
|
128271
128796
|
constructor(...args) {
|
|
128272
128797
|
super(...args);
|
|
128273
128798
|
|
|
128274
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
128799
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor10, this);
|
|
128275
128800
|
}
|
|
128276
128801
|
|
|
128277
128802
|
getLegacyExpressionTypeForFunctionName() {
|
|
128278
128803
|
return "gt";
|
|
128279
128804
|
}
|
|
128280
128805
|
|
|
128281
|
-
}, (
|
|
128806
|
+
}, (_descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class21.prototype, "arguments", [_dec18], {
|
|
128282
128807
|
configurable: true,
|
|
128283
128808
|
enumerable: true,
|
|
128284
128809
|
writable: true,
|
|
128285
128810
|
initializer: null
|
|
128286
|
-
})),
|
|
128287
|
-
let FormulaOneOfItemsExpression = (
|
|
128811
|
+
})), _class21)) || _class20);
|
|
128812
|
+
let FormulaOneOfItemsExpression = (_dec19 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("oneofitems", `TODO`), _dec20 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec19(_class23 = (_class24 = class FormulaOneOfItemsExpression extends FormulaExpression {
|
|
128288
128813
|
constructor(...args) {
|
|
128289
128814
|
super(...args);
|
|
128290
128815
|
|
|
128291
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expressions",
|
|
128816
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expressions", _descriptor11, this);
|
|
128292
128817
|
}
|
|
128293
128818
|
|
|
128294
|
-
}, (
|
|
128819
|
+
}, (_descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class24.prototype, "expressions", [_dec20], {
|
|
128295
128820
|
configurable: true,
|
|
128296
128821
|
enumerable: true,
|
|
128297
128822
|
writable: true,
|
|
128298
128823
|
initializer: null
|
|
128299
|
-
})),
|
|
128300
|
-
let FormulaOneOfExpression = (
|
|
128824
|
+
})), _class24)) || _class23);
|
|
128825
|
+
let FormulaOneOfExpression = (_dec21 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("oneof", `TODO`), _dec22 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec23 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("oneofitems", [FormulaOneOfItemsExpression]), _dec21(_class26 = (_class27 = class FormulaOneOfExpression extends FormulaExpression {
|
|
128301
128826
|
constructor(...args) {
|
|
128302
128827
|
super(...args);
|
|
128303
128828
|
|
|
128304
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
128829
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor12, this);
|
|
128305
128830
|
|
|
128306
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
128831
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor13, this);
|
|
128307
128832
|
}
|
|
128308
128833
|
|
|
128309
128834
|
getLegacyExpressionTypeForFunctionName() {
|
|
128310
128835
|
return "oneof";
|
|
128311
128836
|
}
|
|
128312
128837
|
|
|
128313
|
-
}, (
|
|
128838
|
+
}, (_descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class27.prototype, "argument", [_dec22], {
|
|
128314
128839
|
configurable: true,
|
|
128315
128840
|
enumerable: true,
|
|
128316
128841
|
writable: true,
|
|
128317
128842
|
initializer: null
|
|
128318
|
-
}),
|
|
128843
|
+
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class27.prototype, "items", [_dec23], {
|
|
128319
128844
|
configurable: true,
|
|
128320
128845
|
enumerable: true,
|
|
128321
128846
|
writable: true,
|
|
128322
128847
|
initializer: null
|
|
128323
|
-
})),
|
|
128324
|
-
let FormulaRegexMatchExpression = (
|
|
128848
|
+
})), _class27)) || _class26);
|
|
128849
|
+
let FormulaRegexMatchExpression = (_dec24 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("regexmatch", `TODO`), _dec25 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec26 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("pattern", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `TODO`), _dec24(_class29 = (_class30 = class FormulaRegexMatchExpression extends FormulaExpression {
|
|
128325
128850
|
constructor(...args) {
|
|
128326
128851
|
super(...args);
|
|
128327
128852
|
|
|
128328
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
128853
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor14, this);
|
|
128329
128854
|
|
|
128330
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pattern",
|
|
128855
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pattern", _descriptor15, this);
|
|
128331
128856
|
}
|
|
128332
128857
|
|
|
128333
128858
|
getLegacyExpressionTypeForFunctionName() {
|
|
128334
128859
|
return "regexMatch";
|
|
128335
128860
|
}
|
|
128336
128861
|
|
|
128337
|
-
}, (
|
|
128862
|
+
}, (_descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class30.prototype, "argument", [_dec25], {
|
|
128338
128863
|
configurable: true,
|
|
128339
128864
|
enumerable: true,
|
|
128340
128865
|
writable: true,
|
|
128341
128866
|
initializer: null
|
|
128342
|
-
}),
|
|
128867
|
+
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class30.prototype, "pattern", [_dec26], {
|
|
128343
128868
|
configurable: true,
|
|
128344
128869
|
enumerable: true,
|
|
128345
128870
|
writable: true,
|
|
128346
128871
|
initializer: null
|
|
128347
|
-
})),
|
|
128348
|
-
let FormulaLengthExpression = (
|
|
128872
|
+
})), _class30)) || _class29);
|
|
128873
|
+
let FormulaLengthExpression = (_dec27 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("length", `TODO`), _dec28 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec27(_class32 = (_class33 = class FormulaLengthExpression extends FormulaExpression {
|
|
128349
128874
|
constructor(...args) {
|
|
128350
128875
|
super(...args);
|
|
128351
128876
|
|
|
128352
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
128877
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor16, this);
|
|
128353
128878
|
}
|
|
128354
128879
|
|
|
128355
128880
|
getLegacyExpressionTypeForFunctionName() {
|
|
128356
128881
|
return "length";
|
|
128357
128882
|
}
|
|
128358
128883
|
|
|
128359
|
-
}, (
|
|
128884
|
+
}, (_descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class33.prototype, "argument", [_dec28], {
|
|
128360
128885
|
configurable: true,
|
|
128361
128886
|
enumerable: true,
|
|
128362
128887
|
writable: true,
|
|
128363
128888
|
initializer: null
|
|
128364
|
-
})),
|
|
128365
|
-
let FormulaLtExpression = (
|
|
128889
|
+
})), _class33)) || _class32);
|
|
128890
|
+
let FormulaLtExpression = (_dec29 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("lt", `TODO`), _dec30 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec29(_class35 = (_class36 = class FormulaLtExpression extends FormulaExpression {
|
|
128366
128891
|
constructor(...args) {
|
|
128367
128892
|
super(...args);
|
|
128368
128893
|
|
|
128369
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
128894
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor17, this);
|
|
128370
128895
|
}
|
|
128371
128896
|
|
|
128372
128897
|
getLegacyExpressionTypeForFunctionName() {
|
|
128373
128898
|
return "lt";
|
|
128374
128899
|
}
|
|
128375
128900
|
|
|
128376
|
-
}, (
|
|
128901
|
+
}, (_descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class36.prototype, "arguments", [_dec30], {
|
|
128377
128902
|
configurable: true,
|
|
128378
128903
|
enumerable: true,
|
|
128379
128904
|
writable: true,
|
|
128380
128905
|
initializer: null
|
|
128381
|
-
})),
|
|
128382
|
-
let FormulaGeExpression = (
|
|
128906
|
+
})), _class36)) || _class35);
|
|
128907
|
+
let FormulaGeExpression = (_dec31 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("ge", `TODO`), _dec32 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec31(_class38 = (_class39 = class FormulaGeExpression extends FormulaExpression {
|
|
128383
128908
|
constructor(...args) {
|
|
128384
128909
|
super(...args);
|
|
128385
128910
|
|
|
128386
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
128911
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor18, this);
|
|
128387
128912
|
}
|
|
128388
128913
|
|
|
128389
128914
|
getLegacyExpressionTypeForFunctionName() {
|
|
128390
128915
|
return "ge";
|
|
128391
128916
|
}
|
|
128392
128917
|
|
|
128393
|
-
}, (
|
|
128918
|
+
}, (_descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class39.prototype, "arguments", [_dec32], {
|
|
128394
128919
|
configurable: true,
|
|
128395
128920
|
enumerable: true,
|
|
128396
128921
|
writable: true,
|
|
128397
128922
|
initializer: null
|
|
128398
|
-
})),
|
|
128399
|
-
let FormulaLeExpression = (
|
|
128923
|
+
})), _class39)) || _class38);
|
|
128924
|
+
let FormulaLeExpression = (_dec33 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("le", `TODO`), _dec34 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec33(_class41 = (_class42 = class FormulaLeExpression extends FormulaExpression {
|
|
128400
128925
|
constructor(...args) {
|
|
128401
128926
|
super(...args);
|
|
128402
128927
|
|
|
128403
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
128928
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor19, this);
|
|
128404
128929
|
}
|
|
128405
128930
|
|
|
128406
128931
|
getLegacyExpressionTypeForFunctionName() {
|
|
128407
128932
|
return "le";
|
|
128408
128933
|
}
|
|
128409
128934
|
|
|
128410
|
-
}, (
|
|
128935
|
+
}, (_descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class42.prototype, "arguments", [_dec34], {
|
|
128411
128936
|
configurable: true,
|
|
128412
128937
|
enumerable: true,
|
|
128413
128938
|
writable: true,
|
|
128414
128939
|
initializer: null
|
|
128415
|
-
})),
|
|
128416
|
-
let FormulaNotExpression = (
|
|
128940
|
+
})), _class42)) || _class41);
|
|
128941
|
+
let FormulaNotExpression = (_dec35 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("not", `TODO`), _dec36 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec35(_class44 = (_class45 = class FormulaNotExpression extends FormulaExpression {
|
|
128417
128942
|
constructor(...args) {
|
|
128418
128943
|
super(...args);
|
|
128419
128944
|
|
|
128420
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
128945
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor20, this);
|
|
128421
128946
|
}
|
|
128422
128947
|
|
|
128423
128948
|
getLegacyExpressionTypeForFunctionName() {
|
|
128424
128949
|
return "not";
|
|
128425
128950
|
}
|
|
128426
128951
|
|
|
128427
|
-
}, (
|
|
128952
|
+
}, (_descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class45.prototype, "argument", [_dec36], {
|
|
128428
128953
|
configurable: true,
|
|
128429
128954
|
enumerable: true,
|
|
128430
128955
|
writable: true,
|
|
128431
128956
|
initializer: null
|
|
128432
|
-
})),
|
|
128433
|
-
let FormulaEqExpression = (
|
|
128957
|
+
})), _class45)) || _class44);
|
|
128958
|
+
let FormulaEqExpression = (_dec37 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("eq", `TODO`), _dec38 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec37(_class47 = (_class48 = class FormulaEqExpression extends FormulaExpression {
|
|
128434
128959
|
constructor(...args) {
|
|
128435
128960
|
super(...args);
|
|
128436
128961
|
|
|
128437
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
128962
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor21, this);
|
|
128438
128963
|
}
|
|
128439
128964
|
|
|
128440
128965
|
getLegacyExpressionTypeForFunctionName() {
|
|
128441
128966
|
return "eq";
|
|
128442
128967
|
}
|
|
128443
128968
|
|
|
128444
|
-
}, (
|
|
128969
|
+
}, (_descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class48.prototype, "arguments", [_dec38], {
|
|
128445
128970
|
configurable: true,
|
|
128446
128971
|
enumerable: true,
|
|
128447
128972
|
writable: true,
|
|
128448
128973
|
initializer: null
|
|
128449
|
-
})),
|
|
128450
|
-
let FormulaChooseIfExpression = (
|
|
128974
|
+
})), _class48)) || _class47);
|
|
128975
|
+
let FormulaChooseIfExpression = (_dec39 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("if", `TODO`), _dec40 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec39(_class50 = (_class51 = class FormulaChooseIfExpression extends FormulaExpression {
|
|
128451
128976
|
constructor(...args) {
|
|
128452
128977
|
super(...args);
|
|
128453
128978
|
|
|
128454
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition",
|
|
128979
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition", _descriptor22, this);
|
|
128455
128980
|
}
|
|
128456
128981
|
|
|
128457
128982
|
getLegacyExpressionTypeForFunctionName() {
|
|
128458
128983
|
return "if";
|
|
128459
128984
|
}
|
|
128460
128985
|
|
|
128461
|
-
}, (
|
|
128986
|
+
}, (_descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class51.prototype, "condition", [_dec40], {
|
|
128462
128987
|
configurable: true,
|
|
128463
128988
|
enumerable: true,
|
|
128464
128989
|
writable: true,
|
|
128465
128990
|
initializer: null
|
|
128466
|
-
})),
|
|
128467
|
-
let FormulaChooseThenExpression = (
|
|
128991
|
+
})), _class51)) || _class50);
|
|
128992
|
+
let FormulaChooseThenExpression = (_dec41 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("then", `TODO`), _dec42 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec41(_class53 = (_class54 = class FormulaChooseThenExpression extends FormulaExpression {
|
|
128468
128993
|
constructor(...args) {
|
|
128469
128994
|
super(...args);
|
|
128470
128995
|
|
|
128471
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
128996
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor23, this);
|
|
128472
128997
|
}
|
|
128473
128998
|
|
|
128474
128999
|
getLegacyExpressionTypeForFunctionName() {
|
|
128475
129000
|
return "then";
|
|
128476
129001
|
}
|
|
128477
129002
|
|
|
128478
|
-
}, (
|
|
129003
|
+
}, (_descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class54.prototype, "expression", [_dec42], {
|
|
128479
129004
|
configurable: true,
|
|
128480
129005
|
enumerable: true,
|
|
128481
129006
|
writable: true,
|
|
128482
129007
|
initializer: null
|
|
128483
|
-
})),
|
|
128484
|
-
let FormulaChooseElseExpression = (
|
|
129008
|
+
})), _class54)) || _class53);
|
|
129009
|
+
let FormulaChooseElseExpression = (_dec43 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("else", `TODO`), _dec44 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec43(_class56 = (_class57 = class FormulaChooseElseExpression extends FormulaExpression {
|
|
128485
129010
|
constructor(...args) {
|
|
128486
129011
|
super(...args);
|
|
128487
129012
|
|
|
128488
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129013
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor24, this);
|
|
128489
129014
|
}
|
|
128490
129015
|
|
|
128491
129016
|
getLegacyExpressionTypeForFunctionName() {
|
|
128492
129017
|
return "else";
|
|
128493
129018
|
}
|
|
128494
129019
|
|
|
128495
|
-
}, (
|
|
129020
|
+
}, (_descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class57.prototype, "expression", [_dec44], {
|
|
128496
129021
|
configurable: true,
|
|
128497
129022
|
enumerable: true,
|
|
128498
129023
|
writable: true,
|
|
128499
129024
|
initializer: null
|
|
128500
|
-
})),
|
|
128501
|
-
let FormulaChooseExpression = (
|
|
129025
|
+
})), _class57)) || _class56);
|
|
129026
|
+
let FormulaChooseExpression = (_dec45 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("choose", `TODO`), _dec46 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("if", [FormulaChooseIfExpression]), _dec47 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("then", [FormulaChooseThenExpression]), _dec48 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("else", [FormulaChooseElseExpression]), _dec45(_class59 = (_class60 = class FormulaChooseExpression extends FormulaExpression {
|
|
128502
129027
|
constructor(...args) {
|
|
128503
129028
|
super(...args);
|
|
128504
129029
|
|
|
128505
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "ifNode",
|
|
129030
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "ifNode", _descriptor25, this);
|
|
128506
129031
|
|
|
128507
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "thenNode",
|
|
129032
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "thenNode", _descriptor26, this);
|
|
128508
129033
|
|
|
128509
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "elseNode",
|
|
129034
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "elseNode", _descriptor27, this);
|
|
128510
129035
|
}
|
|
128511
129036
|
|
|
128512
129037
|
getLegacyExpressionTypeForFunctionName() {
|
|
128513
129038
|
return "choose";
|
|
128514
129039
|
}
|
|
128515
129040
|
|
|
128516
|
-
}, (
|
|
129041
|
+
}, (_descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class60.prototype, "ifNode", [_dec46], {
|
|
128517
129042
|
configurable: true,
|
|
128518
129043
|
enumerable: true,
|
|
128519
129044
|
writable: true,
|
|
128520
129045
|
initializer: null
|
|
128521
|
-
}),
|
|
129046
|
+
}), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class60.prototype, "thenNode", [_dec47], {
|
|
128522
129047
|
configurable: true,
|
|
128523
129048
|
enumerable: true,
|
|
128524
129049
|
writable: true,
|
|
128525
129050
|
initializer: null
|
|
128526
|
-
}),
|
|
129051
|
+
}), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class60.prototype, "elseNode", [_dec48], {
|
|
128527
129052
|
configurable: true,
|
|
128528
129053
|
enumerable: true,
|
|
128529
129054
|
writable: true,
|
|
128530
129055
|
initializer: null
|
|
128531
|
-
})),
|
|
128532
|
-
let FormulaDivisionExpression = (
|
|
129056
|
+
})), _class60)) || _class59);
|
|
129057
|
+
let FormulaDivisionExpression = (_dec49 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("division", `TODO`), _dec50 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec49(_class62 = (_class63 = class FormulaDivisionExpression extends FormulaExpression {
|
|
128533
129058
|
constructor(...args) {
|
|
128534
129059
|
super(...args);
|
|
128535
129060
|
|
|
128536
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
129061
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor28, this);
|
|
128537
129062
|
}
|
|
128538
129063
|
|
|
128539
|
-
}, (
|
|
129064
|
+
}, (_descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class63.prototype, "arguments", [_dec50], {
|
|
128540
129065
|
configurable: true,
|
|
128541
129066
|
enumerable: true,
|
|
128542
129067
|
writable: true,
|
|
128543
129068
|
initializer: null
|
|
128544
|
-
})),
|
|
128545
|
-
let FormulaMultiplyExpression = (
|
|
129069
|
+
})), _class63)) || _class62);
|
|
129070
|
+
let FormulaMultiplyExpression = (_dec51 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multiply", `TODO`), _dec52 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec51(_class65 = (_class66 = class FormulaMultiplyExpression extends FormulaExpression {
|
|
128546
129071
|
constructor(...args) {
|
|
128547
129072
|
super(...args);
|
|
128548
129073
|
|
|
128549
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
129074
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor29, this);
|
|
128550
129075
|
}
|
|
128551
129076
|
|
|
128552
|
-
}, (
|
|
129077
|
+
}, (_descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class66.prototype, "arguments", [_dec52], {
|
|
128553
129078
|
configurable: true,
|
|
128554
129079
|
enumerable: true,
|
|
128555
129080
|
writable: true,
|
|
128556
129081
|
initializer: null
|
|
128557
|
-
})),
|
|
128558
|
-
let FormulaRoundExpression = (
|
|
129082
|
+
})), _class66)) || _class65);
|
|
129083
|
+
let FormulaRoundExpression = (_dec53 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("round", `TODO`), _dec54 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec55 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("fractionalDigits", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `TODO`), _dec53(_class68 = (_class69 = class FormulaRoundExpression extends FormulaExpression {
|
|
128559
129084
|
constructor(...args) {
|
|
128560
129085
|
super(...args);
|
|
128561
129086
|
|
|
128562
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129087
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor30, this);
|
|
128563
129088
|
|
|
128564
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fractionalDigits",
|
|
129089
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fractionalDigits", _descriptor31, this);
|
|
128565
129090
|
}
|
|
128566
129091
|
|
|
128567
|
-
}, (
|
|
129092
|
+
}, (_descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class69.prototype, "expression", [_dec54], {
|
|
128568
129093
|
configurable: true,
|
|
128569
129094
|
enumerable: true,
|
|
128570
129095
|
writable: true,
|
|
128571
129096
|
initializer: null
|
|
128572
|
-
}),
|
|
129097
|
+
}), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class69.prototype, "fractionalDigits", [_dec55], {
|
|
128573
129098
|
configurable: true,
|
|
128574
129099
|
enumerable: true,
|
|
128575
129100
|
writable: true,
|
|
128576
129101
|
initializer: null
|
|
128577
|
-
})),
|
|
128578
|
-
let FormulaFloorExpression = (
|
|
129102
|
+
})), _class69)) || _class68);
|
|
129103
|
+
let FormulaFloorExpression = (_dec56 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("floor", `Округление числа в меньшую сторону`), _dec57 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec56(_class71 = (_class72 = class FormulaFloorExpression extends FormulaExpression {
|
|
128579
129104
|
constructor(...args) {
|
|
128580
129105
|
super(...args);
|
|
128581
129106
|
|
|
128582
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129107
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor32, this);
|
|
128583
129108
|
}
|
|
128584
129109
|
|
|
128585
|
-
}, (
|
|
129110
|
+
}, (_descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class72.prototype, "expression", [_dec57], {
|
|
128586
129111
|
configurable: true,
|
|
128587
129112
|
enumerable: true,
|
|
128588
129113
|
writable: true,
|
|
128589
129114
|
initializer: null
|
|
128590
|
-
})),
|
|
128591
|
-
let FormulaAbsExpression = (
|
|
129115
|
+
})), _class72)) || _class71);
|
|
129116
|
+
let FormulaAbsExpression = (_dec58 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("abs", `TODO`), _dec59 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec58(_class74 = (_class75 = class FormulaAbsExpression extends FormulaExpression {
|
|
128592
129117
|
constructor(...args) {
|
|
128593
129118
|
super(...args);
|
|
128594
129119
|
|
|
128595
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129120
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor33, this);
|
|
128596
129121
|
}
|
|
128597
129122
|
|
|
128598
|
-
}, (
|
|
129123
|
+
}, (_descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class75.prototype, "expression", [_dec59], {
|
|
128599
129124
|
configurable: true,
|
|
128600
129125
|
enumerable: true,
|
|
128601
129126
|
writable: true,
|
|
128602
129127
|
initializer: null
|
|
128603
|
-
})),
|
|
128604
|
-
let FormulaXAbsExpression = (
|
|
129128
|
+
})), _class75)) || _class74);
|
|
129129
|
+
let FormulaXAbsExpression = (_dec60 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("xabs", `TODO`), _dec61 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec60(_class77 = (_class78 = class FormulaXAbsExpression extends FormulaExpression {
|
|
128605
129130
|
constructor(...args) {
|
|
128606
129131
|
super(...args);
|
|
128607
129132
|
|
|
128608
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129133
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor34, this);
|
|
128609
129134
|
}
|
|
128610
129135
|
|
|
128611
|
-
}, (
|
|
129136
|
+
}, (_descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class78.prototype, "expression", [_dec61], {
|
|
128612
129137
|
configurable: true,
|
|
128613
129138
|
enumerable: true,
|
|
128614
129139
|
writable: true,
|
|
128615
129140
|
initializer: null
|
|
128616
|
-
})),
|
|
128617
|
-
let FormulaMinusExpression = (
|
|
129141
|
+
})), _class78)) || _class77);
|
|
129142
|
+
let FormulaMinusExpression = (_dec62 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("minus", `TODO`), _dec63 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec62(_class80 = (_class81 = class FormulaMinusExpression extends FormulaExpression {
|
|
128618
129143
|
constructor(...args) {
|
|
128619
129144
|
super(...args);
|
|
128620
129145
|
|
|
128621
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129146
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor35, this);
|
|
128622
129147
|
}
|
|
128623
129148
|
|
|
128624
|
-
}, (
|
|
129149
|
+
}, (_descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class81.prototype, "expression", [_dec63], {
|
|
128625
129150
|
configurable: true,
|
|
128626
129151
|
enumerable: true,
|
|
128627
129152
|
writable: true,
|
|
128628
129153
|
initializer: null
|
|
128629
|
-
})),
|
|
128630
|
-
let FormulaConstExpression = (
|
|
129154
|
+
})), _class81)) || _class80);
|
|
129155
|
+
let FormulaConstExpression = (_dec64 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("const", `TODO`), _dec65 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("value", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec66 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип константы: string или decimal (по умолчанию)`), _dec64(_class83 = (_class84 = class FormulaConstExpression extends FormulaExpression {
|
|
128631
129156
|
constructor(...args) {
|
|
128632
129157
|
super(...args);
|
|
128633
129158
|
|
|
128634
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value",
|
|
129159
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value", _descriptor36, this);
|
|
128635
129160
|
|
|
128636
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
129161
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor37, this);
|
|
128637
129162
|
}
|
|
128638
129163
|
|
|
128639
|
-
}, (
|
|
129164
|
+
}, (_descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class84.prototype, "value", [_dec65], {
|
|
128640
129165
|
configurable: true,
|
|
128641
129166
|
enumerable: true,
|
|
128642
129167
|
writable: true,
|
|
128643
129168
|
initializer: null
|
|
128644
|
-
}),
|
|
129169
|
+
}), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class84.prototype, "type", [_dec66], {
|
|
128645
129170
|
configurable: true,
|
|
128646
129171
|
enumerable: true,
|
|
128647
129172
|
writable: true,
|
|
128648
129173
|
initializer: function () {
|
|
128649
129174
|
return "decimal";
|
|
128650
129175
|
}
|
|
128651
|
-
})),
|
|
128652
|
-
let FormulaSubstringExpression = (
|
|
129176
|
+
})), _class84)) || _class83);
|
|
129177
|
+
let FormulaSubstringExpression = (_dec67 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("substring", `TODO`), _dec68 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec69 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("start", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `TODO`), _dec70 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("length", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `TODO`), _dec67(_class86 = (_class87 = class FormulaSubstringExpression extends FormulaExpression {
|
|
128653
129178
|
constructor(...args) {
|
|
128654
129179
|
super(...args);
|
|
128655
129180
|
|
|
128656
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129181
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor38, this);
|
|
128657
129182
|
|
|
128658
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "start",
|
|
129183
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "start", _descriptor39, this);
|
|
128659
129184
|
|
|
128660
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "length",
|
|
129185
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "length", _descriptor40, this);
|
|
128661
129186
|
}
|
|
128662
129187
|
|
|
128663
129188
|
getLegacyExpressionTypeForFunctionName() {
|
|
128664
129189
|
return "substring";
|
|
128665
129190
|
}
|
|
128666
129191
|
|
|
128667
|
-
}, (
|
|
129192
|
+
}, (_descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class87.prototype, "expression", [_dec68], {
|
|
128668
129193
|
configurable: true,
|
|
128669
129194
|
enumerable: true,
|
|
128670
129195
|
writable: true,
|
|
128671
129196
|
initializer: null
|
|
128672
|
-
}),
|
|
129197
|
+
}), _descriptor39 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class87.prototype, "start", [_dec69], {
|
|
128673
129198
|
configurable: true,
|
|
128674
129199
|
enumerable: true,
|
|
128675
129200
|
writable: true,
|
|
128676
129201
|
initializer: null
|
|
128677
|
-
}),
|
|
129202
|
+
}), _descriptor40 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class87.prototype, "length", [_dec70], {
|
|
128678
129203
|
configurable: true,
|
|
128679
129204
|
enumerable: true,
|
|
128680
129205
|
writable: true,
|
|
128681
129206
|
initializer: null
|
|
128682
|
-
})),
|
|
128683
|
-
let FormulaCastExpression = (
|
|
129207
|
+
})), _class87)) || _class86);
|
|
129208
|
+
let FormulaCastExpression = (_dec71 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("cast", `TODO`), _dec72 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec73 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser.required, `TODO`), _dec71(_class89 = (_class90 = class FormulaCastExpression extends FormulaExpression {
|
|
128684
129209
|
constructor(...args) {
|
|
128685
129210
|
super(...args);
|
|
128686
129211
|
|
|
128687
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129212
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor41, this);
|
|
128688
129213
|
|
|
128689
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
129214
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor42, this);
|
|
128690
129215
|
}
|
|
128691
129216
|
|
|
128692
129217
|
getLegacyExpressionTypeForFunctionName() {
|
|
128693
129218
|
return "cast";
|
|
128694
129219
|
}
|
|
128695
129220
|
|
|
128696
|
-
}, (
|
|
129221
|
+
}, (_descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "expression", [_dec72], {
|
|
128697
129222
|
configurable: true,
|
|
128698
129223
|
enumerable: true,
|
|
128699
129224
|
writable: true,
|
|
128700
129225
|
initializer: null
|
|
128701
|
-
}),
|
|
129226
|
+
}), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "type", [_dec73], {
|
|
128702
129227
|
configurable: true,
|
|
128703
129228
|
enumerable: true,
|
|
128704
129229
|
writable: true,
|
|
128705
129230
|
initializer: null
|
|
128706
|
-
})),
|
|
128707
|
-
let FormulaDateNowExpression = (
|
|
128708
|
-
let
|
|
129231
|
+
})), _class90)) || _class89);
|
|
129232
|
+
let FormulaDateNowExpression = (_dec74 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datenow", `Дата в формате: {dd/mm/yyyy}`), _dec74(_class92 = class FormulaDateNowExpression extends FormulaExpression {}) || _class92);
|
|
129233
|
+
let FormulaIsSnilsExpression = (_dec75 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec76 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec75(_class93 = (_class94 = class FormulaIsSnilsExpression extends FormulaExpression {
|
|
128709
129234
|
constructor(...args) {
|
|
128710
129235
|
super(...args);
|
|
128711
129236
|
|
|
128712
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129237
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor43, this);
|
|
129238
|
+
}
|
|
128713
129239
|
|
|
128714
|
-
|
|
129240
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129241
|
+
return "isSnils";
|
|
128715
129242
|
}
|
|
128716
129243
|
|
|
128717
|
-
}, (
|
|
129244
|
+
}, (_descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "select", [_dec76], {
|
|
128718
129245
|
configurable: true,
|
|
128719
129246
|
enumerable: true,
|
|
128720
129247
|
writable: true,
|
|
128721
129248
|
initializer: null
|
|
128722
|
-
}),
|
|
129249
|
+
})), _class94)) || _class93);
|
|
129250
|
+
let FormulaIsInnExpression = (_dec77 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec78 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec77(_class96 = (_class97 = class FormulaIsInnExpression extends FormulaExpression {
|
|
129251
|
+
constructor(...args) {
|
|
129252
|
+
super(...args);
|
|
129253
|
+
|
|
129254
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor44, this);
|
|
129255
|
+
}
|
|
129256
|
+
|
|
129257
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129258
|
+
return "isInn";
|
|
129259
|
+
}
|
|
129260
|
+
|
|
129261
|
+
}, (_descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class97.prototype, "select", [_dec78], {
|
|
129262
|
+
configurable: true,
|
|
129263
|
+
enumerable: true,
|
|
129264
|
+
writable: true,
|
|
129265
|
+
initializer: null
|
|
129266
|
+
})), _class97)) || _class96);
|
|
129267
|
+
let FormulaIsValidMirCardNumberExpression = (_dec79 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec80 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec79(_class99 = (_class100 = class FormulaIsValidMirCardNumberExpression extends FormulaExpression {
|
|
129268
|
+
constructor(...args) {
|
|
129269
|
+
super(...args);
|
|
129270
|
+
|
|
129271
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor45, this);
|
|
129272
|
+
}
|
|
129273
|
+
|
|
129274
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129275
|
+
return "isValidMirCardNumber";
|
|
129276
|
+
}
|
|
129277
|
+
|
|
129278
|
+
}, (_descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "select", [_dec80], {
|
|
129279
|
+
configurable: true,
|
|
129280
|
+
enumerable: true,
|
|
129281
|
+
writable: true,
|
|
129282
|
+
initializer: null
|
|
129283
|
+
})), _class100)) || _class99);
|
|
129284
|
+
let FormulaIsValidAccountNumberExpression = (_dec81 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumber", `Проверка на валидность карты МИР`), _dec82 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("bik", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec83 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("account", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec81(_class102 = (_class103 = class FormulaIsValidAccountNumberExpression extends FormulaExpression {
|
|
129285
|
+
constructor(...args) {
|
|
129286
|
+
super(...args);
|
|
129287
|
+
|
|
129288
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor46, this);
|
|
129289
|
+
|
|
129290
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor47, this);
|
|
129291
|
+
}
|
|
129292
|
+
|
|
129293
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129294
|
+
return "isValidAccountNumber";
|
|
129295
|
+
}
|
|
129296
|
+
|
|
129297
|
+
}, (_descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class103.prototype, "bik", [_dec82], {
|
|
129298
|
+
configurable: true,
|
|
129299
|
+
enumerable: true,
|
|
129300
|
+
writable: true,
|
|
129301
|
+
initializer: null
|
|
129302
|
+
}), _descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class103.prototype, "account", [_dec83], {
|
|
129303
|
+
configurable: true,
|
|
129304
|
+
enumerable: true,
|
|
129305
|
+
writable: true,
|
|
129306
|
+
initializer: null
|
|
129307
|
+
})), _class103)) || _class102);
|
|
129308
|
+
let FormulaArgumentExpression = (_dec84 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("argument", `TODO`), _dec85 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec86 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип атрибута: string или decimal (по умолчанию)`), _dec84(_class105 = (_class106 = class FormulaArgumentExpression extends FormulaExpression {
|
|
129309
|
+
constructor(...args) {
|
|
129310
|
+
super(...args);
|
|
129311
|
+
|
|
129312
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor48, this);
|
|
129313
|
+
|
|
129314
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor49, this);
|
|
129315
|
+
}
|
|
129316
|
+
|
|
129317
|
+
}, (_descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "select", [_dec85], {
|
|
129318
|
+
configurable: true,
|
|
129319
|
+
enumerable: true,
|
|
129320
|
+
writable: true,
|
|
129321
|
+
initializer: null
|
|
129322
|
+
}), _descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "type", [_dec86], {
|
|
128723
129323
|
configurable: true,
|
|
128724
129324
|
enumerable: true,
|
|
128725
129325
|
writable: true,
|
|
128726
129326
|
initializer: function () {
|
|
128727
129327
|
return "decimal";
|
|
128728
129328
|
}
|
|
128729
|
-
})),
|
|
128730
|
-
let FormulaExistsExpression = (
|
|
129329
|
+
})), _class106)) || _class105);
|
|
129330
|
+
let FormulaExistsExpression = (_dec87 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("exists", `TODO`), _dec88 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec87(_class108 = (_class109 = class FormulaExistsExpression extends FormulaExpression {
|
|
128731
129331
|
constructor(...args) {
|
|
128732
129332
|
super(...args);
|
|
128733
129333
|
|
|
128734
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129334
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor50, this);
|
|
128735
129335
|
}
|
|
128736
129336
|
|
|
128737
129337
|
getLegacyExpressionTypeForFunctionName() {
|
|
128738
129338
|
return "exists";
|
|
128739
129339
|
}
|
|
128740
129340
|
|
|
128741
|
-
}, (
|
|
129341
|
+
}, (_descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class109.prototype, "select", [_dec88], {
|
|
128742
129342
|
configurable: true,
|
|
128743
129343
|
enumerable: true,
|
|
128744
129344
|
writable: true,
|
|
128745
129345
|
initializer: null
|
|
128746
|
-
})),
|
|
128747
|
-
let FormulaMultySumExpression = (
|
|
129346
|
+
})), _class109)) || _class108);
|
|
129347
|
+
let FormulaMultySumExpression = (_dec89 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multysum", `TODO`), _dec90 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec89(_class111 = (_class112 = class FormulaMultySumExpression extends FormulaExpression {
|
|
128748
129348
|
constructor(...args) {
|
|
128749
129349
|
super(...args);
|
|
128750
129350
|
|
|
128751
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129351
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor51, this);
|
|
128752
129352
|
}
|
|
128753
129353
|
|
|
128754
|
-
}, (
|
|
129354
|
+
}, (_descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "select", [_dec90], {
|
|
128755
129355
|
configurable: true,
|
|
128756
129356
|
enumerable: true,
|
|
128757
129357
|
writable: true,
|
|
128758
129358
|
initializer: null
|
|
128759
|
-
})),
|
|
128760
|
-
let FormulaCountExpression = (
|
|
129359
|
+
})), _class112)) || _class111);
|
|
129360
|
+
let FormulaCountExpression = (_dec91 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("count", `TODO`), _dec92 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec93 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("withNullOrEmptyValues", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `брать в расчет незаполненные экземпляры`), _dec91(_class114 = (_class115 = class FormulaCountExpression extends FormulaExpression {
|
|
128761
129361
|
constructor(...args) {
|
|
128762
129362
|
super(...args);
|
|
128763
129363
|
|
|
128764
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129364
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor52, this);
|
|
128765
129365
|
|
|
128766
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
129366
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor53, this);
|
|
128767
129367
|
}
|
|
128768
129368
|
|
|
128769
|
-
}, (
|
|
129369
|
+
}, (_descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class115.prototype, "select", [_dec92], {
|
|
128770
129370
|
configurable: true,
|
|
128771
129371
|
enumerable: true,
|
|
128772
129372
|
writable: true,
|
|
128773
129373
|
initializer: null
|
|
128774
|
-
}),
|
|
129374
|
+
}), _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class115.prototype, "withNullOrEmptyValues", [_dec93], {
|
|
128775
129375
|
configurable: true,
|
|
128776
129376
|
enumerable: true,
|
|
128777
129377
|
writable: true,
|
|
128778
129378
|
initializer: null
|
|
128779
|
-
})),
|
|
128780
|
-
let FormulaConcatExpression = (
|
|
129379
|
+
})), _class115)) || _class114);
|
|
129380
|
+
let FormulaConcatExpression = (_dec94 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec95 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec94(_class117 = (_class118 = class FormulaConcatExpression extends FormulaExpression {
|
|
128781
129381
|
constructor(...args) {
|
|
128782
129382
|
super(...args);
|
|
128783
129383
|
|
|
128784
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
129384
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor54, this);
|
|
128785
129385
|
}
|
|
128786
129386
|
|
|
128787
|
-
}, (
|
|
129387
|
+
}, (_descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "arguments", [_dec95], {
|
|
128788
129388
|
configurable: true,
|
|
128789
129389
|
enumerable: true,
|
|
128790
129390
|
writable: true,
|
|
128791
129391
|
initializer: null
|
|
128792
|
-
})),
|
|
128793
|
-
let FormulaNewLineExpression = (
|
|
128794
|
-
let Formula = (
|
|
129392
|
+
})), _class118)) || _class117);
|
|
129393
|
+
let FormulaNewLineExpression = (_dec96 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec96(_class120 = class FormulaNewLineExpression extends FormulaExpression {}) || _class120);
|
|
129394
|
+
let Formula = (_dec97 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec98 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec99 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec97(_class121 = (_class122 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128795
129395
|
constructor(...args) {
|
|
128796
129396
|
super(...args);
|
|
128797
129397
|
|
|
128798
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
129398
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor55, this);
|
|
128799
129399
|
|
|
128800
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
129400
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor56, this);
|
|
128801
129401
|
|
|
128802
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129402
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor57, this);
|
|
128803
129403
|
}
|
|
128804
129404
|
|
|
128805
|
-
}, (
|
|
129405
|
+
}, (_descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "match", [_dec98], {
|
|
128806
129406
|
configurable: true,
|
|
128807
129407
|
enumerable: true,
|
|
128808
129408
|
writable: true,
|
|
128809
129409
|
initializer: null
|
|
128810
|
-
}),
|
|
129410
|
+
}), _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "target", [_dec99], {
|
|
128811
129411
|
configurable: true,
|
|
128812
129412
|
enumerable: true,
|
|
128813
129413
|
writable: true,
|
|
128814
129414
|
initializer: null
|
|
128815
|
-
}),
|
|
129415
|
+
}), _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "expression", [_dec100], {
|
|
128816
129416
|
configurable: true,
|
|
128817
129417
|
enumerable: true,
|
|
128818
129418
|
writable: true,
|
|
128819
129419
|
initializer: null
|
|
128820
|
-
})),
|
|
128821
|
-
let Formulas = (
|
|
129420
|
+
})), _class122)) || _class121);
|
|
129421
|
+
let Formulas = (_dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec101(_class124 = (_class125 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128822
129422
|
constructor(...args) {
|
|
128823
129423
|
super(...args);
|
|
128824
129424
|
|
|
128825
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
129425
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor58, this);
|
|
128826
129426
|
}
|
|
128827
129427
|
|
|
128828
|
-
}, (
|
|
129428
|
+
}, (_descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class125.prototype, "items", [_dec102], {
|
|
128829
129429
|
configurable: true,
|
|
128830
129430
|
enumerable: true,
|
|
128831
129431
|
writable: true,
|
|
128832
129432
|
initializer: null
|
|
128833
|
-
})),
|
|
128834
|
-
let ConditionNode = (
|
|
129433
|
+
})), _class125)) || _class124);
|
|
129434
|
+
let ConditionNode = (_dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec103(_class127 = (_class128 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128835
129435
|
constructor(...args) {
|
|
128836
129436
|
super(...args);
|
|
128837
129437
|
|
|
128838
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
129438
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor59, this);
|
|
128839
129439
|
|
|
128840
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
129440
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor60, this);
|
|
128841
129441
|
|
|
128842
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
129442
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor61, this);
|
|
128843
129443
|
|
|
128844
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
129444
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor62, this);
|
|
128845
129445
|
|
|
128846
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129446
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor63, this);
|
|
128847
129447
|
}
|
|
128848
129448
|
|
|
128849
|
-
}, (
|
|
129449
|
+
}, (_descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "match", [_dec104], {
|
|
128850
129450
|
configurable: true,
|
|
128851
129451
|
enumerable: true,
|
|
128852
129452
|
writable: true,
|
|
128853
129453
|
initializer: null
|
|
128854
|
-
}),
|
|
129454
|
+
}), _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "target", [_dec105], {
|
|
128855
129455
|
configurable: true,
|
|
128856
129456
|
enumerable: true,
|
|
128857
129457
|
writable: true,
|
|
128858
129458
|
initializer: null
|
|
128859
|
-
}),
|
|
129459
|
+
}), _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "description", [_dec106], {
|
|
128860
129460
|
configurable: true,
|
|
128861
129461
|
enumerable: true,
|
|
128862
129462
|
writable: true,
|
|
128863
129463
|
initializer: null
|
|
128864
|
-
}),
|
|
129464
|
+
}), _descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "errorLevel", [_dec107], {
|
|
128865
129465
|
configurable: true,
|
|
128866
129466
|
enumerable: true,
|
|
128867
129467
|
writable: true,
|
|
128868
129468
|
initializer: null
|
|
128869
|
-
}),
|
|
129469
|
+
}), _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "expression", [_dec108], {
|
|
128870
129470
|
configurable: true,
|
|
128871
129471
|
enumerable: true,
|
|
128872
129472
|
writable: true,
|
|
128873
129473
|
initializer: null
|
|
128874
|
-
})),
|
|
128875
|
-
let ConditionsNode = (
|
|
129474
|
+
})), _class128)) || _class127);
|
|
129475
|
+
let ConditionsNode = (_dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec110 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec109(_class130 = (_class131 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128876
129476
|
constructor(...args) {
|
|
128877
129477
|
super(...args);
|
|
128878
129478
|
|
|
128879
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
129479
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor64, this);
|
|
128880
129480
|
}
|
|
128881
129481
|
|
|
128882
|
-
}, (
|
|
129482
|
+
}, (_descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "items", [_dec110], {
|
|
128883
129483
|
configurable: true,
|
|
128884
129484
|
enumerable: true,
|
|
128885
129485
|
writable: true,
|
|
128886
129486
|
initializer: null
|
|
128887
|
-
})),
|
|
128888
|
-
let MathContainer = (
|
|
129487
|
+
})), _class131)) || _class130);
|
|
129488
|
+
let MathContainer = (_dec111 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec112 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec113 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec111(_class133 = (_class134 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128889
129489
|
constructor(...args) {
|
|
128890
129490
|
super(...args);
|
|
128891
129491
|
|
|
128892
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
129492
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor65, this);
|
|
128893
129493
|
|
|
128894
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
129494
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor66, this);
|
|
128895
129495
|
}
|
|
128896
129496
|
|
|
128897
|
-
}, (
|
|
129497
|
+
}, (_descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class134.prototype, "formulas", [_dec112], {
|
|
128898
129498
|
configurable: true,
|
|
128899
129499
|
enumerable: true,
|
|
128900
129500
|
writable: true,
|
|
128901
129501
|
initializer: null
|
|
128902
|
-
}),
|
|
129502
|
+
}), _descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class134.prototype, "conditions", [_dec113], {
|
|
128903
129503
|
configurable: true,
|
|
128904
129504
|
enumerable: true,
|
|
128905
129505
|
writable: true,
|
|
128906
129506
|
initializer: null
|
|
128907
|
-
})),
|
|
128908
|
-
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaDateNowExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaNewLineExpression, FormulaOneOfExpression];
|
|
129507
|
+
})), _class134)) || _class133);
|
|
129508
|
+
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaDateNowExpression, FormulaIsSnilsExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression];
|
|
128909
129509
|
|
|
128910
129510
|
/***/ }),
|
|
128911
129511
|
|
|
@@ -130946,7 +131546,10 @@ const statementsToCode = statements => {
|
|
|
130946
131546
|
"use strict";
|
|
130947
131547
|
__webpack_require__.r(__webpack_exports__);
|
|
130948
131548
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131549
|
+
/* harmony export */ "AggregationDependencyModelPath": () => (/* binding */ AggregationDependencyModelPath),
|
|
131550
|
+
/* harmony export */ "DependencyWithoutChecks": () => (/* binding */ DependencyWithoutChecks),
|
|
130949
131551
|
/* harmony export */ "isAggregationDependencyModelPath": () => (/* binding */ isAggregationDependencyModelPath),
|
|
131552
|
+
/* harmony export */ "isDependencyWithoutChecks": () => (/* binding */ isDependencyWithoutChecks),
|
|
130950
131553
|
/* harmony export */ "KCXmlGeneratorBase": () => (/* binding */ KCXmlGeneratorBase)
|
|
130951
131554
|
/* harmony export */ });
|
|
130952
131555
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
@@ -130963,8 +131566,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130963
131566
|
|
|
130964
131567
|
|
|
130965
131568
|
|
|
131569
|
+
class AggregationDependencyModelPath {
|
|
131570
|
+
constructor(type, modelPath, prefixModelPath, restModelPath) {
|
|
131571
|
+
this.type = void 0;
|
|
131572
|
+
this.modelPath = void 0;
|
|
131573
|
+
this.prefixModelPath = void 0;
|
|
131574
|
+
this.restModelPath = void 0;
|
|
131575
|
+
this.type = type;
|
|
131576
|
+
this.modelPath = modelPath;
|
|
131577
|
+
this.prefixModelPath = prefixModelPath;
|
|
131578
|
+
this.restModelPath = restModelPath;
|
|
131579
|
+
}
|
|
131580
|
+
|
|
131581
|
+
}
|
|
131582
|
+
class DependencyWithoutChecks {
|
|
131583
|
+
constructor(path) {
|
|
131584
|
+
this.path = void 0;
|
|
131585
|
+
this.path = path;
|
|
131586
|
+
}
|
|
131587
|
+
|
|
131588
|
+
}
|
|
130966
131589
|
function isAggregationDependencyModelPath(path) {
|
|
130967
|
-
return
|
|
131590
|
+
return path instanceof AggregationDependencyModelPath;
|
|
131591
|
+
}
|
|
131592
|
+
function isDependencyWithoutChecks(path) {
|
|
131593
|
+
return path instanceof DependencyWithoutChecks;
|
|
130968
131594
|
}
|
|
130969
131595
|
class KCXmlGeneratorBase {
|
|
130970
131596
|
constructor(schema) {
|
|
@@ -130985,12 +131611,7 @@ class KCXmlGeneratorBase {
|
|
|
130985
131611
|
getArgumentDeps(targetFullPath, selectFullPath, aggregationType) {
|
|
130986
131612
|
const pathDiffInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetFullPath, selectFullPath);
|
|
130987
131613
|
const restPath = pathDiffInfo.differentPath;
|
|
130988
|
-
return !restPath.isContainIteration() ? selectFullPath :
|
|
130989
|
-
type: aggregationType,
|
|
130990
|
-
modelPath: pathDiffInfo.matchedPath.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...restPath.getPathPartsAsArray().filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken(x)), aggregationType])),
|
|
130991
|
-
prefixModelPath: pathDiffInfo.matchedPath,
|
|
130992
|
-
restModelPath: restPath
|
|
130993
|
-
};
|
|
131614
|
+
return !restPath.isContainIteration() ? selectFullPath : new AggregationDependencyModelPath(aggregationType, pathDiffInfo.matchedPath.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...restPath.getPathPartsAsArray().filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken(x)), aggregationType])), pathDiffInfo.matchedPath, restPath);
|
|
130994
131615
|
}
|
|
130995
131616
|
|
|
130996
131617
|
getAggregationPathsRecursively(currentParts, restParts) {
|
|
@@ -131063,7 +131684,7 @@ class KCXmlGeneratorBase {
|
|
|
131063
131684
|
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131064
131685
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
131065
131686
|
deps.push(argumentDependency);
|
|
131066
|
-
const finalPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(argumentDependency) ? argumentDependency : argumentDependency.modelPath;
|
|
131687
|
+
const finalPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(argumentDependency) ? argumentDependency : isAggregationDependencyModelPath(argumentDependency) ? argumentDependency.modelPath : argumentDependency.path;
|
|
131067
131688
|
return gcf(x => x.argument, `"${finalPath.toLegacyPath()}"`);
|
|
131068
131689
|
}
|
|
131069
131690
|
|
|
@@ -131073,6 +131694,32 @@ class KCXmlGeneratorBase {
|
|
|
131073
131694
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
131074
131695
|
}
|
|
131075
131696
|
|
|
131697
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
131698
|
+
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131699
|
+
deps.push(modelPath);
|
|
131700
|
+
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
131701
|
+
}
|
|
131702
|
+
|
|
131703
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
131704
|
+
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131705
|
+
deps.push(modelPath);
|
|
131706
|
+
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
131707
|
+
}
|
|
131708
|
+
|
|
131709
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
131710
|
+
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131711
|
+
deps.push(modelPath);
|
|
131712
|
+
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
131713
|
+
}
|
|
131714
|
+
|
|
131715
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
131716
|
+
const bikPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.bik)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131717
|
+
const accountPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.account)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131718
|
+
deps.push(bikPath);
|
|
131719
|
+
deps.push(accountPath);
|
|
131720
|
+
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
131721
|
+
}
|
|
131722
|
+
|
|
131076
131723
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
131077
131724
|
var _expression$withNullO;
|
|
131078
131725
|
|
|
@@ -131082,7 +131729,7 @@ class KCXmlGeneratorBase {
|
|
|
131082
131729
|
if (targetFullPath.isContainIteration()) {
|
|
131083
131730
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
131084
131731
|
deps.push(argumentDependency);
|
|
131085
|
-
finalPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(argumentDependency) ? argumentDependency : argumentDependency.modelPath;
|
|
131732
|
+
finalPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(argumentDependency) ? argumentDependency : isAggregationDependencyModelPath(argumentDependency) ? argumentDependency.modelPath : argumentDependency.path;
|
|
131086
131733
|
} else {
|
|
131087
131734
|
deps.push(modelPath);
|
|
131088
131735
|
}
|
|
@@ -131225,14 +131872,22 @@ class KCXmlGeneratorBase {
|
|
|
131225
131872
|
|
|
131226
131873
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupSumExpression) {
|
|
131227
131874
|
const targetKeyPath = this.getModelPath(prefix, expression.targetKeyPath);
|
|
131228
|
-
deps.push(targetKeyPath);
|
|
131875
|
+
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
131229
131876
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
131230
|
-
deps.push(sourceKeyPath);
|
|
131877
|
+
deps.push(new DependencyWithoutChecks(sourceKeyPath));
|
|
131231
131878
|
const sourceValuePath = this.getModelPath(prefix, expression.sourceValuePath);
|
|
131232
|
-
deps.push(sourceValuePath);
|
|
131879
|
+
deps.push(new DependencyWithoutChecks(sourceValuePath));
|
|
131233
131880
|
return gcf(x => x.groupSum, `"${targetKeyPath}", "${sourceKeyPath}", "${sourceValuePath}"`);
|
|
131234
131881
|
}
|
|
131235
131882
|
|
|
131883
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupCountExpression) {
|
|
131884
|
+
const targetKeyPath = this.getModelPath(prefix, expression.targetKeyPath);
|
|
131885
|
+
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
131886
|
+
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
131887
|
+
deps.push(new DependencyWithoutChecks(sourceKeyPath));
|
|
131888
|
+
return gcf(x => x.groupCount, `"${targetKeyPath}", "${sourceKeyPath}"`);
|
|
131889
|
+
}
|
|
131890
|
+
|
|
131236
131891
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression) {
|
|
131237
131892
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
131238
131893
|
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
@@ -131297,6 +131952,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131297
131952
|
/* harmony export */ });
|
|
131298
131953
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
131299
131954
|
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
131955
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
131956
|
+
|
|
131300
131957
|
|
|
131301
131958
|
|
|
131302
131959
|
const emptyResult = `
|
|
@@ -131326,7 +131983,11 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
131326
131983
|
const deps = [];
|
|
131327
131984
|
const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
|
|
131328
131985
|
const compiledTarget = this.modelPathInstance(target);
|
|
131329
|
-
const
|
|
131986
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
|
|
131987
|
+
path: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(x) ? x : (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isAggregationDependencyModelPath)(x) ? x.modelPath : x.path,
|
|
131988
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x)
|
|
131989
|
+
})).filter(x => !x.path.isEquals(target)), x => x.path.toLegacyPath()));
|
|
131990
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path.toCurrentIteration()).map(x => this.modelPathInstance(x)).join(", ");
|
|
131330
131991
|
const compiledDescription = (_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message";
|
|
131331
131992
|
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `() => "${compiledDescription}", "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
131332
131993
|
return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
|
|
@@ -132753,6 +133414,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132753
133414
|
/* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
|
|
132754
133415
|
/* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
|
|
132755
133416
|
/* harmony export */ "FloorExpression": () => (/* binding */ FloorExpression),
|
|
133417
|
+
/* harmony export */ "IsSnilsExpression": () => (/* binding */ IsSnilsExpression),
|
|
133418
|
+
/* harmony export */ "IsInnExpression": () => (/* binding */ IsInnExpression),
|
|
133419
|
+
/* harmony export */ "IsValidMirCardNumberExpression": () => (/* binding */ IsValidMirCardNumberExpression),
|
|
133420
|
+
/* harmony export */ "IsValidAccountNumberExpression": () => (/* binding */ IsValidAccountNumberExpression),
|
|
132756
133421
|
/* harmony export */ "AddSumExpression": () => (/* binding */ AddSumExpression),
|
|
132757
133422
|
/* harmony export */ "GetExpression": () => (/* binding */ GetExpression),
|
|
132758
133423
|
/* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
|
|
@@ -133504,6 +134169,73 @@ class FloorExpression extends FLangDecimalExpression {
|
|
|
133504
134169
|
return `floor(${this.expression.convertToString()})`;
|
|
133505
134170
|
}
|
|
133506
134171
|
|
|
134172
|
+
}
|
|
134173
|
+
class IsSnilsExpression extends FLangBoolExpression {
|
|
134174
|
+
constructor(expression) {
|
|
134175
|
+
super();
|
|
134176
|
+
this.expression = void 0;
|
|
134177
|
+
this.expression = expression;
|
|
134178
|
+
}
|
|
134179
|
+
|
|
134180
|
+
*getChildNodes() {
|
|
134181
|
+
yield this.expression;
|
|
134182
|
+
}
|
|
134183
|
+
|
|
134184
|
+
convertToString() {
|
|
134185
|
+
return `isSnils(${this.expression.convertToString()})`;
|
|
134186
|
+
}
|
|
134187
|
+
|
|
134188
|
+
}
|
|
134189
|
+
class IsInnExpression extends FLangBoolExpression {
|
|
134190
|
+
constructor(expression) {
|
|
134191
|
+
super();
|
|
134192
|
+
this.expression = void 0;
|
|
134193
|
+
this.expression = expression;
|
|
134194
|
+
}
|
|
134195
|
+
|
|
134196
|
+
*getChildNodes() {
|
|
134197
|
+
yield this.expression;
|
|
134198
|
+
}
|
|
134199
|
+
|
|
134200
|
+
convertToString() {
|
|
134201
|
+
return `isInn(${this.expression.convertToString()})`;
|
|
134202
|
+
}
|
|
134203
|
+
|
|
134204
|
+
}
|
|
134205
|
+
class IsValidMirCardNumberExpression extends FLangBoolExpression {
|
|
134206
|
+
constructor(expression) {
|
|
134207
|
+
super();
|
|
134208
|
+
this.expression = void 0;
|
|
134209
|
+
this.expression = expression;
|
|
134210
|
+
}
|
|
134211
|
+
|
|
134212
|
+
*getChildNodes() {
|
|
134213
|
+
yield this.expression;
|
|
134214
|
+
}
|
|
134215
|
+
|
|
134216
|
+
convertToString() {
|
|
134217
|
+
return `isValidMirCardNumber(${this.expression.convertToString()})`;
|
|
134218
|
+
}
|
|
134219
|
+
|
|
134220
|
+
}
|
|
134221
|
+
class IsValidAccountNumberExpression extends FLangBoolExpression {
|
|
134222
|
+
constructor(bik, account) {
|
|
134223
|
+
super();
|
|
134224
|
+
this.bik = void 0;
|
|
134225
|
+
this.account = void 0;
|
|
134226
|
+
this.bik = bik;
|
|
134227
|
+
this.account = account;
|
|
134228
|
+
}
|
|
134229
|
+
|
|
134230
|
+
*getChildNodes() {
|
|
134231
|
+
yield this.bik;
|
|
134232
|
+
yield this.account;
|
|
134233
|
+
}
|
|
134234
|
+
|
|
134235
|
+
convertToString() {
|
|
134236
|
+
return `isValidAccountNumber(${this.bik.convertToString()}, ${this.account.convertToString()})`;
|
|
134237
|
+
}
|
|
134238
|
+
|
|
133507
134239
|
}
|
|
133508
134240
|
class AddSumExpression extends FLangDictExpression {
|
|
133509
134241
|
constructor(argumentReference, key, value) {
|
|
@@ -134266,10 +134998,35 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
134266
134998
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DateNowExpression();
|
|
134267
134999
|
}
|
|
134268
135000
|
|
|
135001
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
135002
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
135003
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(arg));
|
|
135004
|
+
}
|
|
135005
|
+
|
|
135006
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsInnExpression) {
|
|
135007
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
135008
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(arg));
|
|
135009
|
+
}
|
|
135010
|
+
|
|
135011
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidMirCardNumberExpression) {
|
|
135012
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
135013
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(arg));
|
|
135014
|
+
}
|
|
135015
|
+
|
|
135016
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidAccountNumberExpression) {
|
|
135017
|
+
const bik = this.compiledArgumentExpression(prefix, target, expression.bik, "string", addPrecalculationRule);
|
|
135018
|
+
const account = this.compiledArgumentExpression(prefix, target, expression.account, "string", addPrecalculationRule);
|
|
135019
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsValidAccountNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(bik), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(account));
|
|
135020
|
+
}
|
|
135021
|
+
|
|
134269
135022
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGroupSumExpression) {
|
|
134270
135023
|
return this.compileGroupSumExpression(prefix, target, expression, addPrecalculationRule);
|
|
134271
135024
|
}
|
|
134272
135025
|
|
|
135026
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGroupCountExpression) {
|
|
135027
|
+
return this.compileGroupCountExpression(prefix, target, expression, addPrecalculationRule);
|
|
135028
|
+
}
|
|
135029
|
+
|
|
134273
135030
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaOneOfExpression) {
|
|
134274
135031
|
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.argument, prefix, target, addPrecalculationRule));
|
|
134275
135032
|
const items = expression.items.expressions.map(item => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(item, prefix, target, addPrecalculationRule)));
|
|
@@ -134291,12 +135048,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
134291
135048
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(left), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(right));
|
|
134292
135049
|
}
|
|
134293
135050
|
|
|
134294
|
-
|
|
134295
|
-
const targetKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.targetKeyPath);
|
|
134296
|
-
const sourceKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceKeyPath);
|
|
134297
|
-
const sourceValuePath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceValuePath);
|
|
135051
|
+
compileGroupSumExpressionWithCustomValueExpression(prefix, target, targetKeyPath, sourceKeyPath, sourceValueExpression, addPrecalculationRule) {
|
|
134298
135052
|
const iterationEntries = [...(0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.reverseArray)((0,_Common_ModelPath_BuildIterationSequence__WEBPACK_IMPORTED_MODULE_4__.buildIterationSequence)(sourceKeyPath))];
|
|
134299
|
-
const finalAnonymousFunction = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AddSumExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ValueReferenceExpression(sourceKeyPath.toCurrentIteration(), "value"), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDecimalIfNeed)(
|
|
135053
|
+
const finalAnonymousFunction = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AddSumExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ValueReferenceExpression(sourceKeyPath.toCurrentIteration(), "value"), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDecimalIfNeed)(sourceValueExpression)));
|
|
134300
135054
|
|
|
134301
135055
|
const getWrapReduceFunction = innerReduceCall => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict)], innerReduceCall);
|
|
134302
135056
|
|
|
@@ -134320,6 +135074,21 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
134320
135074
|
return finalValueExpression;
|
|
134321
135075
|
}
|
|
134322
135076
|
|
|
135077
|
+
compileGroupSumExpression(prefix, target, expression, addPrecalculationRule) {
|
|
135078
|
+
const targetKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.targetKeyPath);
|
|
135079
|
+
const sourceKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceKeyPath);
|
|
135080
|
+
const sourceValuePath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceValuePath);
|
|
135081
|
+
const sourceValueExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ValueReferenceExpression(sourceValuePath.toCurrentIteration(), "value");
|
|
135082
|
+
return this.compileGroupSumExpressionWithCustomValueExpression(prefix, target, targetKeyPath, sourceKeyPath, sourceValueExpression, addPrecalculationRule);
|
|
135083
|
+
}
|
|
135084
|
+
|
|
135085
|
+
compileGroupCountExpression(prefix, target, expression, addPrecalculationRule) {
|
|
135086
|
+
const targetKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.targetKeyPath);
|
|
135087
|
+
const sourceKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceKeyPath);
|
|
135088
|
+
const sourceValueExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DecimalLiteralExpression(1);
|
|
135089
|
+
return this.compileGroupSumExpressionWithCustomValueExpression(prefix, target, targetKeyPath, sourceKeyPath, sourceValueExpression, addPrecalculationRule);
|
|
135090
|
+
}
|
|
135091
|
+
|
|
134323
135092
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
134324
135093
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
134325
135094
|
const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
|
|
@@ -148511,7 +149280,16 @@ let CrossfitTableRowNode = (_dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMP
|
|
|
148511
149280
|
initializer: null
|
|
148512
149281
|
})), _class5)) || _class4);
|
|
148513
149282
|
let MultilineNode = (_dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("multiline", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("maxOccurs", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.javascriptExpression, `Масмальное возможное количество элементов в заданном множественном элементе. Может быть ${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)}.`), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("filteredUniqKey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Уникальный ключ фильтрации multiline, используется, для фильтраций одних и тех же путей иннера
|
|
148514
|
-
разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("debounceDisable", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean,
|
|
149283
|
+
разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("debounceDisable", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Это хитрая опция, если вы прочитали все ниже, но не особо поняли, лучше уточните у @candy_fe_duty.
|
|
149284
|
+
Вот как все устроено:
|
|
149285
|
+
Если на мультилайне есть defaultFilter, в таком случае, этот фильтр накапливает в себе изменения
|
|
149286
|
+
которые происходят в таблице, т.е человек меняет фильтр в выпадающем списке, а потом вводит в текстовом фильтре
|
|
149287
|
+
Чтобы дважды не делать фильтрацию (это очень дорого), мы ждем какое то время (1 сек), и начинаем действовать.
|
|
149288
|
+
Это помогает здорово сэкономить время в среднем, не сильно пугая людей "неотзывчивым" интерфейсом.
|
|
149289
|
+
Однако, ежели у вас однозначно небольшие данные, в которых не будет развесистой логики, и огромных объемов, вы можете
|
|
149290
|
+
применить debounceDisable. Это позволит отключить данную задержку, и повысить отзывчивость интерфейса.
|
|
149291
|
+
Платой за эту опцию, может быть тормознутый интерфейс, пересчитывающий все фильтры на каждый чих.
|
|
149292
|
+
Обязательно проверьте, как себя ведет интерфейс на "средних" данных, когда резко меняете фильтры. (в инпуте добавляйте и стирайте значения например).`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("defaultChildren", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.arrayLiteral(), ``), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("focusByHotkey", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.InvalidUsage), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("instancesPerPage", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.Removed), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("pageStep", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.InvalidUsage), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `false - чтобы слева от раздела не было кнопки "Удалить"`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("row", [CrossfitTableRowNode]), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("addbutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.localizedString, `Название кнопки при добавлении множественности`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("addType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType["enum"]("button", "link"), `Добавить строку м.б. как кнопка "button" или ссылка "link"`), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("usepager", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `false - без пейджера (1-11, 12-22 - этого нет внизу страницы)`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("onRowClick", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при клике по строке"), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("storeFilters", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Будут ли сохраняться фильтры для этого мультилайна между обнолениями страницы. По умолчанию -- нет`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("disableScroll", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Возможность отключить скролл в мультилайне`), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("defaultFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.objectLiteral(), `Дает возможность изначально фильтровать мультилайн, по определенному выражению`), _dec27(_class7 = (_class8 = class MultilineNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__.SugarNodeWithLegacyVisibility {
|
|
148515
149293
|
constructor(...args) {
|
|
148516
149294
|
super(...args);
|
|
148517
149295
|
|