@kontur.candy/generator 4.294.0 → 4.295.0-fs-7926-fix-groupsum.2
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 +827 -113
- 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,6 +115531,10 @@ __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),
|
|
@@ -115455,7 +115725,7 @@ const existsKCLangFunction = params => {
|
|
|
115455
115725
|
|
|
115456
115726
|
throw new Error("Invalid parameters!");
|
|
115457
115727
|
};
|
|
115458
|
-
const
|
|
115728
|
+
const isSnilsKCLangFunction = params => {
|
|
115459
115729
|
var _params$10;
|
|
115460
115730
|
|
|
115461
115731
|
const errors = Array.from(validateParams(params, 1));
|
|
@@ -115464,7 +115734,114 @@ const countKCLangFunction = params => {
|
|
|
115464
115734
|
return new FunctionValidationErrorCollection(errors);
|
|
115465
115735
|
}
|
|
115466
115736
|
|
|
115467
|
-
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;
|
|
115468
115845
|
|
|
115469
115846
|
if ((expr === null || expr === void 0 ? void 0 : expr.type) === "argument") {
|
|
115470
115847
|
const param = expr.select;
|
|
@@ -115482,7 +115859,7 @@ const countKCLangFunction = params => {
|
|
|
115482
115859
|
throw new Error("Invalid parameters!");
|
|
115483
115860
|
};
|
|
115484
115861
|
const sumKCLangFunction = params => {
|
|
115485
|
-
var _params$
|
|
115862
|
+
var _params$16;
|
|
115486
115863
|
|
|
115487
115864
|
const errors = Array.from(validateParams(params, 1));
|
|
115488
115865
|
|
|
@@ -115490,7 +115867,7 @@ const sumKCLangFunction = params => {
|
|
|
115490
115867
|
return new FunctionValidationErrorCollection(errors);
|
|
115491
115868
|
}
|
|
115492
115869
|
|
|
115493
|
-
const argumentExpr = (_params$
|
|
115870
|
+
const argumentExpr = (_params$16 = params[0]) === null || _params$16 === void 0 ? void 0 : _params$16.value;
|
|
115494
115871
|
|
|
115495
115872
|
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
115496
115873
|
const param = argumentExpr.select;
|
|
@@ -115508,7 +115885,7 @@ const sumKCLangFunction = params => {
|
|
|
115508
115885
|
throw new Error("Invalid parameters!");
|
|
115509
115886
|
};
|
|
115510
115887
|
const substringKCLangFunction = params => {
|
|
115511
|
-
var _params$
|
|
115888
|
+
var _params$17, _params$18, _params$19;
|
|
115512
115889
|
|
|
115513
115890
|
const errors = Array.from(validateParams(params, 2, 1));
|
|
115514
115891
|
|
|
@@ -115516,9 +115893,9 @@ const substringKCLangFunction = params => {
|
|
|
115516
115893
|
return new FunctionValidationErrorCollection(errors);
|
|
115517
115894
|
}
|
|
115518
115895
|
|
|
115519
|
-
const exprParam = (_params$
|
|
115520
|
-
const startParam = (_params$
|
|
115521
|
-
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;
|
|
115522
115899
|
|
|
115523
115900
|
if (exprParam == undefined) {
|
|
115524
115901
|
throw new Error("Unexpected error!");
|
|
@@ -115539,7 +115916,7 @@ const substringKCLangFunction = params => {
|
|
|
115539
115916
|
};
|
|
115540
115917
|
};
|
|
115541
115918
|
const groupSumKCLangFunction = params => {
|
|
115542
|
-
var _params$
|
|
115919
|
+
var _params$20, _params$21, _params$22;
|
|
115543
115920
|
|
|
115544
115921
|
const errors = Array.from(validateParams(params, 3));
|
|
115545
115922
|
|
|
@@ -115547,9 +115924,9 @@ const groupSumKCLangFunction = params => {
|
|
|
115547
115924
|
return new FunctionValidationErrorCollection(errors);
|
|
115548
115925
|
}
|
|
115549
115926
|
|
|
115550
|
-
const targetKeyPathParam = (_params$
|
|
115551
|
-
const sourceKeyPathParam = (_params$
|
|
115552
|
-
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;
|
|
115553
115930
|
|
|
115554
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") {
|
|
115555
115932
|
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeyPath, sourceKeyPath, sourceValuePath");
|
|
@@ -115564,7 +115941,7 @@ const groupSumKCLangFunction = params => {
|
|
|
115564
115941
|
};
|
|
115565
115942
|
};
|
|
115566
115943
|
const groupCountKCLangFunction = params => {
|
|
115567
|
-
var _params$
|
|
115944
|
+
var _params$23, _params$24;
|
|
115568
115945
|
|
|
115569
115946
|
const errors = Array.from(validateParams(params, 2));
|
|
115570
115947
|
|
|
@@ -115572,8 +115949,8 @@ const groupCountKCLangFunction = params => {
|
|
|
115572
115949
|
return new FunctionValidationErrorCollection(errors);
|
|
115573
115950
|
}
|
|
115574
115951
|
|
|
115575
|
-
const targetKeyPathParam = (_params$
|
|
115576
|
-
const sourceKeyPathParam = (_params$
|
|
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;
|
|
115577
115954
|
|
|
115578
115955
|
if ((targetKeyPathParam === null || targetKeyPathParam === void 0 ? void 0 : targetKeyPathParam.type) !== "argument" || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
|
|
115579
115956
|
const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
|
|
@@ -115655,6 +116032,10 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
115655
116032
|
round: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.roundKCLangFunction],
|
|
115656
116033
|
floor: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.floorKCLangFunction],
|
|
115657
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],
|
|
115658
116039
|
sum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.sumKCLangFunction],
|
|
115659
116040
|
substring: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.substringKCLangFunction],
|
|
115660
116041
|
count: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.countKCLangFunction],
|
|
@@ -121319,6 +121700,22 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
121319
121700
|
visitor.visitExistsKCLangNode(node);
|
|
121320
121701
|
break;
|
|
121321
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
|
+
|
|
121322
121719
|
case "length":
|
|
121323
121720
|
traverseKCLangExpression(node.expression, visitor);
|
|
121324
121721
|
visitor.visitLengthKCLangNode(node);
|
|
@@ -121473,6 +121870,18 @@ class DefaultKCLangExpressionVisitor {
|
|
|
121473
121870
|
visitExistsKCLangNode(node) {// default empty implementation
|
|
121474
121871
|
}
|
|
121475
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
|
+
|
|
121476
121885
|
visitLengthKCLangNode(node) {// default empty implementation
|
|
121477
121886
|
}
|
|
121478
121887
|
|
|
@@ -121789,11 +122198,39 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
121789
122198
|
|
|
121790
122199
|
case "exists":
|
|
121791
122200
|
{
|
|
121792
|
-
//
|
|
122201
|
+
//eslint-disable-next-line @typescript-eslint/unbound-method
|
|
121793
122202
|
const existsFnName = gn(x => x.exists);
|
|
121794
122203
|
return `${utilsName}.${existsFnName}(${pathFnName}, "${expression.select}")`;
|
|
121795
122204
|
}
|
|
121796
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
|
+
|
|
121797
122234
|
case "const":
|
|
121798
122235
|
{
|
|
121799
122236
|
const constExprValue = expression.value.value;
|
|
@@ -121975,9 +122412,15 @@ function generateKCXmlExpression(expression) {
|
|
|
121975
122412
|
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
121976
122413
|
|
|
121977
122414
|
case "exists":
|
|
122415
|
+
case "isSnils":
|
|
122416
|
+
case "isInn":
|
|
122417
|
+
case "isValidMirCardNumber":
|
|
121978
122418
|
case "multySum":
|
|
121979
122419
|
return `<m:${expression.type} select="${expression.select}" />`;
|
|
121980
122420
|
|
|
122421
|
+
case "isValidAccountNumber":
|
|
122422
|
+
return `<m:${expression.type} bik="${expression.bik}" account="${expression.account}" />`;
|
|
122423
|
+
|
|
121981
122424
|
case "groupSum":
|
|
121982
122425
|
return `<m:${expression.type} targetKeyPath="${expression.targetKeyPath}" sourceKeyPath="${expression.sourceKeyPath}" sourceValuePath="${expression.sourceValuePath}" />`;
|
|
121983
122426
|
|
|
@@ -122143,6 +122586,30 @@ function guessConditionTarget(condition) {
|
|
|
122143
122586
|
}
|
|
122144
122587
|
}
|
|
122145
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
|
+
|
|
122146
122613
|
visitArgumentKCLangNode(node) {
|
|
122147
122614
|
if (result == undefined) {
|
|
122148
122615
|
result = node.select;
|
|
@@ -127085,10 +127552,11 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
|
|
|
127085
127552
|
const disabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(target.toLegacyPath());
|
|
127086
127553
|
const compiledTarget = this.modelPathInstance(target);
|
|
127087
127554
|
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.map(x => ({
|
|
127088
|
-
path:
|
|
127089
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x)
|
|
127090
|
-
|
|
127091
|
-
|
|
127555
|
+
path: x.asDependencyModelPath(),
|
|
127556
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
|
|
127557
|
+
pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
|
|
127558
|
+
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
127559
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
127092
127560
|
const compiledExpressionWithCheck = this.compileAllItemsIsEmptyCheckBlock(compiledExpression, dependencyModelPaths.filter(x => !x.isIgnoreForChecks).map(x => x.path));
|
|
127093
127561
|
const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpressionWithCheck}, "${defaultValue}")`;
|
|
127094
127562
|
return {
|
|
@@ -128161,6 +128629,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
128161
128629
|
/* harmony export */ "FormulaSubstringExpression": () => (/* binding */ FormulaSubstringExpression),
|
|
128162
128630
|
/* harmony export */ "FormulaCastExpression": () => (/* binding */ FormulaCastExpression),
|
|
128163
128631
|
/* harmony export */ "FormulaDateNowExpression": () => (/* binding */ FormulaDateNowExpression),
|
|
128632
|
+
/* harmony export */ "FormulaIsSnilsExpression": () => (/* binding */ FormulaIsSnilsExpression),
|
|
128633
|
+
/* harmony export */ "FormulaIsInnExpression": () => (/* binding */ FormulaIsInnExpression),
|
|
128634
|
+
/* harmony export */ "FormulaIsValidMirCardNumberExpression": () => (/* binding */ FormulaIsValidMirCardNumberExpression),
|
|
128635
|
+
/* harmony export */ "FormulaIsValidAccountNumberExpression": () => (/* binding */ FormulaIsValidAccountNumberExpression),
|
|
128164
128636
|
/* harmony export */ "FormulaArgumentExpression": () => (/* binding */ FormulaArgumentExpression),
|
|
128165
128637
|
/* harmony export */ "FormulaExistsExpression": () => (/* binding */ FormulaExistsExpression),
|
|
128166
128638
|
/* harmony export */ "FormulaMultySumExpression": () => (/* binding */ FormulaMultySumExpression),
|
|
@@ -128187,7 +128659,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
128187
128659
|
|
|
128188
128660
|
|
|
128189
128661
|
|
|
128190
|
-
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,
|
|
128662
|
+
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;
|
|
128191
128663
|
|
|
128192
128664
|
|
|
128193
128665
|
|
|
@@ -128759,13 +129231,15 @@ let FormulaCastExpression = (_dec71 = (0,_markupGenerator_Serializer_SugarSerial
|
|
|
128759
129231
|
initializer: null
|
|
128760
129232
|
})), _class90)) || _class89);
|
|
128761
129233
|
let FormulaDateNowExpression = (_dec74 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datenow", `Дата в формате: {dd/mm/yyyy}`), _dec74(_class92 = class FormulaDateNowExpression extends FormulaExpression {}) || _class92);
|
|
128762
|
-
let
|
|
129234
|
+
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 {
|
|
128763
129235
|
constructor(...args) {
|
|
128764
129236
|
super(...args);
|
|
128765
129237
|
|
|
128766
129238
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor43, this);
|
|
129239
|
+
}
|
|
128767
129240
|
|
|
128768
|
-
|
|
129241
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129242
|
+
return "isSnils";
|
|
128769
129243
|
}
|
|
128770
129244
|
|
|
128771
129245
|
}, (_descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "select", [_dec76], {
|
|
@@ -128773,193 +129247,266 @@ let FormulaArgumentExpression = (_dec75 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
128773
129247
|
enumerable: true,
|
|
128774
129248
|
writable: true,
|
|
128775
129249
|
initializer: null
|
|
128776
|
-
}),
|
|
129250
|
+
})), _class94)) || _class93);
|
|
129251
|
+
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 {
|
|
129252
|
+
constructor(...args) {
|
|
129253
|
+
super(...args);
|
|
129254
|
+
|
|
129255
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor44, this);
|
|
129256
|
+
}
|
|
129257
|
+
|
|
129258
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129259
|
+
return "isInn";
|
|
129260
|
+
}
|
|
129261
|
+
|
|
129262
|
+
}, (_descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class97.prototype, "select", [_dec78], {
|
|
129263
|
+
configurable: true,
|
|
129264
|
+
enumerable: true,
|
|
129265
|
+
writable: true,
|
|
129266
|
+
initializer: null
|
|
129267
|
+
})), _class97)) || _class96);
|
|
129268
|
+
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 {
|
|
129269
|
+
constructor(...args) {
|
|
129270
|
+
super(...args);
|
|
129271
|
+
|
|
129272
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor45, this);
|
|
129273
|
+
}
|
|
129274
|
+
|
|
129275
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129276
|
+
return "isValidMirCardNumber";
|
|
129277
|
+
}
|
|
129278
|
+
|
|
129279
|
+
}, (_descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "select", [_dec80], {
|
|
129280
|
+
configurable: true,
|
|
129281
|
+
enumerable: true,
|
|
129282
|
+
writable: true,
|
|
129283
|
+
initializer: null
|
|
129284
|
+
})), _class100)) || _class99);
|
|
129285
|
+
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 {
|
|
129286
|
+
constructor(...args) {
|
|
129287
|
+
super(...args);
|
|
129288
|
+
|
|
129289
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor46, this);
|
|
129290
|
+
|
|
129291
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor47, this);
|
|
129292
|
+
}
|
|
129293
|
+
|
|
129294
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
129295
|
+
return "isValidAccountNumber";
|
|
129296
|
+
}
|
|
129297
|
+
|
|
129298
|
+
}, (_descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class103.prototype, "bik", [_dec82], {
|
|
129299
|
+
configurable: true,
|
|
129300
|
+
enumerable: true,
|
|
129301
|
+
writable: true,
|
|
129302
|
+
initializer: null
|
|
129303
|
+
}), _descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class103.prototype, "account", [_dec83], {
|
|
129304
|
+
configurable: true,
|
|
129305
|
+
enumerable: true,
|
|
129306
|
+
writable: true,
|
|
129307
|
+
initializer: null
|
|
129308
|
+
})), _class103)) || _class102);
|
|
129309
|
+
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 {
|
|
129310
|
+
constructor(...args) {
|
|
129311
|
+
super(...args);
|
|
129312
|
+
|
|
129313
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor48, this);
|
|
129314
|
+
|
|
129315
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor49, this);
|
|
129316
|
+
}
|
|
129317
|
+
|
|
129318
|
+
}, (_descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "select", [_dec85], {
|
|
129319
|
+
configurable: true,
|
|
129320
|
+
enumerable: true,
|
|
129321
|
+
writable: true,
|
|
129322
|
+
initializer: null
|
|
129323
|
+
}), _descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "type", [_dec86], {
|
|
128777
129324
|
configurable: true,
|
|
128778
129325
|
enumerable: true,
|
|
128779
129326
|
writable: true,
|
|
128780
129327
|
initializer: function () {
|
|
128781
129328
|
return "decimal";
|
|
128782
129329
|
}
|
|
128783
|
-
})),
|
|
128784
|
-
let FormulaExistsExpression = (
|
|
129330
|
+
})), _class106)) || _class105);
|
|
129331
|
+
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 {
|
|
128785
129332
|
constructor(...args) {
|
|
128786
129333
|
super(...args);
|
|
128787
129334
|
|
|
128788
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129335
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor50, this);
|
|
128789
129336
|
}
|
|
128790
129337
|
|
|
128791
129338
|
getLegacyExpressionTypeForFunctionName() {
|
|
128792
129339
|
return "exists";
|
|
128793
129340
|
}
|
|
128794
129341
|
|
|
128795
|
-
}, (
|
|
129342
|
+
}, (_descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class109.prototype, "select", [_dec88], {
|
|
128796
129343
|
configurable: true,
|
|
128797
129344
|
enumerable: true,
|
|
128798
129345
|
writable: true,
|
|
128799
129346
|
initializer: null
|
|
128800
|
-
})),
|
|
128801
|
-
let FormulaMultySumExpression = (
|
|
129347
|
+
})), _class109)) || _class108);
|
|
129348
|
+
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 {
|
|
128802
129349
|
constructor(...args) {
|
|
128803
129350
|
super(...args);
|
|
128804
129351
|
|
|
128805
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129352
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor51, this);
|
|
128806
129353
|
}
|
|
128807
129354
|
|
|
128808
|
-
}, (
|
|
129355
|
+
}, (_descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "select", [_dec90], {
|
|
128809
129356
|
configurable: true,
|
|
128810
129357
|
enumerable: true,
|
|
128811
129358
|
writable: true,
|
|
128812
129359
|
initializer: null
|
|
128813
|
-
})),
|
|
128814
|
-
let FormulaCountExpression = (
|
|
129360
|
+
})), _class112)) || _class111);
|
|
129361
|
+
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 {
|
|
128815
129362
|
constructor(...args) {
|
|
128816
129363
|
super(...args);
|
|
128817
129364
|
|
|
128818
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
129365
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor52, this);
|
|
128819
129366
|
|
|
128820
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
129367
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor53, this);
|
|
128821
129368
|
}
|
|
128822
129369
|
|
|
128823
|
-
}, (
|
|
129370
|
+
}, (_descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class115.prototype, "select", [_dec92], {
|
|
128824
129371
|
configurable: true,
|
|
128825
129372
|
enumerable: true,
|
|
128826
129373
|
writable: true,
|
|
128827
129374
|
initializer: null
|
|
128828
|
-
}),
|
|
129375
|
+
}), _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class115.prototype, "withNullOrEmptyValues", [_dec93], {
|
|
128829
129376
|
configurable: true,
|
|
128830
129377
|
enumerable: true,
|
|
128831
129378
|
writable: true,
|
|
128832
129379
|
initializer: null
|
|
128833
|
-
})),
|
|
128834
|
-
let FormulaConcatExpression = (
|
|
129380
|
+
})), _class115)) || _class114);
|
|
129381
|
+
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 {
|
|
128835
129382
|
constructor(...args) {
|
|
128836
129383
|
super(...args);
|
|
128837
129384
|
|
|
128838
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
129385
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor54, this);
|
|
128839
129386
|
}
|
|
128840
129387
|
|
|
128841
|
-
}, (
|
|
129388
|
+
}, (_descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "arguments", [_dec95], {
|
|
128842
129389
|
configurable: true,
|
|
128843
129390
|
enumerable: true,
|
|
128844
129391
|
writable: true,
|
|
128845
129392
|
initializer: null
|
|
128846
|
-
})),
|
|
128847
|
-
let FormulaNewLineExpression = (
|
|
128848
|
-
let Formula = (
|
|
129393
|
+
})), _class118)) || _class117);
|
|
129394
|
+
let FormulaNewLineExpression = (_dec96 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec96(_class120 = class FormulaNewLineExpression extends FormulaExpression {}) || _class120);
|
|
129395
|
+
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 {
|
|
128849
129396
|
constructor(...args) {
|
|
128850
129397
|
super(...args);
|
|
128851
129398
|
|
|
128852
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
129399
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor55, this);
|
|
128853
129400
|
|
|
128854
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
129401
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor56, this);
|
|
128855
129402
|
|
|
128856
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129403
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor57, this);
|
|
128857
129404
|
}
|
|
128858
129405
|
|
|
128859
|
-
}, (
|
|
129406
|
+
}, (_descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "match", [_dec98], {
|
|
128860
129407
|
configurable: true,
|
|
128861
129408
|
enumerable: true,
|
|
128862
129409
|
writable: true,
|
|
128863
129410
|
initializer: null
|
|
128864
|
-
}),
|
|
129411
|
+
}), _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "target", [_dec99], {
|
|
128865
129412
|
configurable: true,
|
|
128866
129413
|
enumerable: true,
|
|
128867
129414
|
writable: true,
|
|
128868
129415
|
initializer: null
|
|
128869
|
-
}),
|
|
129416
|
+
}), _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "expression", [_dec100], {
|
|
128870
129417
|
configurable: true,
|
|
128871
129418
|
enumerable: true,
|
|
128872
129419
|
writable: true,
|
|
128873
129420
|
initializer: null
|
|
128874
|
-
})),
|
|
128875
|
-
let Formulas = (
|
|
129421
|
+
})), _class122)) || _class121);
|
|
129422
|
+
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 {
|
|
128876
129423
|
constructor(...args) {
|
|
128877
129424
|
super(...args);
|
|
128878
129425
|
|
|
128879
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
129426
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor58, this);
|
|
128880
129427
|
}
|
|
128881
129428
|
|
|
128882
|
-
}, (
|
|
129429
|
+
}, (_descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class125.prototype, "items", [_dec102], {
|
|
128883
129430
|
configurable: true,
|
|
128884
129431
|
enumerable: true,
|
|
128885
129432
|
writable: true,
|
|
128886
129433
|
initializer: null
|
|
128887
|
-
})),
|
|
128888
|
-
let ConditionNode = (
|
|
129434
|
+
})), _class125)) || _class124);
|
|
129435
|
+
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 {
|
|
128889
129436
|
constructor(...args) {
|
|
128890
129437
|
super(...args);
|
|
128891
129438
|
|
|
128892
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
129439
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor59, this);
|
|
128893
129440
|
|
|
128894
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
129441
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor60, this);
|
|
128895
129442
|
|
|
128896
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
129443
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor61, this);
|
|
128897
129444
|
|
|
128898
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
129445
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor62, this);
|
|
128899
129446
|
|
|
128900
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
129447
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor63, this);
|
|
128901
129448
|
}
|
|
128902
129449
|
|
|
128903
|
-
}, (
|
|
129450
|
+
}, (_descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "match", [_dec104], {
|
|
128904
129451
|
configurable: true,
|
|
128905
129452
|
enumerable: true,
|
|
128906
129453
|
writable: true,
|
|
128907
129454
|
initializer: null
|
|
128908
|
-
}),
|
|
129455
|
+
}), _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "target", [_dec105], {
|
|
128909
129456
|
configurable: true,
|
|
128910
129457
|
enumerable: true,
|
|
128911
129458
|
writable: true,
|
|
128912
129459
|
initializer: null
|
|
128913
|
-
}),
|
|
129460
|
+
}), _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "description", [_dec106], {
|
|
128914
129461
|
configurable: true,
|
|
128915
129462
|
enumerable: true,
|
|
128916
129463
|
writable: true,
|
|
128917
129464
|
initializer: null
|
|
128918
|
-
}),
|
|
129465
|
+
}), _descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "errorLevel", [_dec107], {
|
|
128919
129466
|
configurable: true,
|
|
128920
129467
|
enumerable: true,
|
|
128921
129468
|
writable: true,
|
|
128922
129469
|
initializer: null
|
|
128923
|
-
}),
|
|
129470
|
+
}), _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "expression", [_dec108], {
|
|
128924
129471
|
configurable: true,
|
|
128925
129472
|
enumerable: true,
|
|
128926
129473
|
writable: true,
|
|
128927
129474
|
initializer: null
|
|
128928
|
-
})),
|
|
128929
|
-
let ConditionsNode = (
|
|
129475
|
+
})), _class128)) || _class127);
|
|
129476
|
+
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 {
|
|
128930
129477
|
constructor(...args) {
|
|
128931
129478
|
super(...args);
|
|
128932
129479
|
|
|
128933
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
129480
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor64, this);
|
|
128934
129481
|
}
|
|
128935
129482
|
|
|
128936
|
-
}, (
|
|
129483
|
+
}, (_descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "items", [_dec110], {
|
|
128937
129484
|
configurable: true,
|
|
128938
129485
|
enumerable: true,
|
|
128939
129486
|
writable: true,
|
|
128940
129487
|
initializer: null
|
|
128941
|
-
})),
|
|
128942
|
-
let MathContainer = (
|
|
129488
|
+
})), _class131)) || _class130);
|
|
129489
|
+
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 {
|
|
128943
129490
|
constructor(...args) {
|
|
128944
129491
|
super(...args);
|
|
128945
129492
|
|
|
128946
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
129493
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor65, this);
|
|
128947
129494
|
|
|
128948
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
129495
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor66, this);
|
|
128949
129496
|
}
|
|
128950
129497
|
|
|
128951
|
-
}, (
|
|
129498
|
+
}, (_descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class134.prototype, "formulas", [_dec112], {
|
|
128952
129499
|
configurable: true,
|
|
128953
129500
|
enumerable: true,
|
|
128954
129501
|
writable: true,
|
|
128955
129502
|
initializer: null
|
|
128956
|
-
}),
|
|
129503
|
+
}), _descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class134.prototype, "conditions", [_dec113], {
|
|
128957
129504
|
configurable: true,
|
|
128958
129505
|
enumerable: true,
|
|
128959
129506
|
writable: true,
|
|
128960
129507
|
initializer: null
|
|
128961
|
-
})),
|
|
128962
|
-
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, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression];
|
|
129508
|
+
})), _class134)) || _class133);
|
|
129509
|
+
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];
|
|
128963
129510
|
|
|
128964
129511
|
/***/ }),
|
|
128965
129512
|
|
|
@@ -131000,6 +131547,7 @@ const statementsToCode = statements => {
|
|
|
131000
131547
|
"use strict";
|
|
131001
131548
|
__webpack_require__.r(__webpack_exports__);
|
|
131002
131549
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131550
|
+
/* harmony export */ "RegularDependency": () => (/* binding */ RegularDependency),
|
|
131003
131551
|
/* harmony export */ "AggregationDependencyModelPath": () => (/* binding */ AggregationDependencyModelPath),
|
|
131004
131552
|
/* harmony export */ "DependencyWithoutChecks": () => (/* binding */ DependencyWithoutChecks),
|
|
131005
131553
|
/* harmony export */ "isAggregationDependencyModelPath": () => (/* binding */ isAggregationDependencyModelPath),
|
|
@@ -131020,6 +131568,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131020
131568
|
|
|
131021
131569
|
|
|
131022
131570
|
|
|
131571
|
+
class RegularDependency {
|
|
131572
|
+
constructor(currentDependencyPath, eachDependencyPath) {
|
|
131573
|
+
this.currentDependencyPath = void 0;
|
|
131574
|
+
this.eachDependencyPath = void 0;
|
|
131575
|
+
this.eachDependencyPath = eachDependencyPath;
|
|
131576
|
+
this.currentDependencyPath = currentDependencyPath;
|
|
131577
|
+
}
|
|
131578
|
+
|
|
131579
|
+
asDependencyModelPath() {
|
|
131580
|
+
const currentPart = this.currentDependencyPath.toCurrentIteration();
|
|
131581
|
+
return this.eachDependencyPath != undefined ? currentPart.joinWith(this.eachDependencyPath) : currentPart;
|
|
131582
|
+
}
|
|
131583
|
+
|
|
131584
|
+
}
|
|
131023
131585
|
class AggregationDependencyModelPath {
|
|
131024
131586
|
constructor(type, modelPath, prefixModelPath, restModelPath) {
|
|
131025
131587
|
this.type = void 0;
|
|
@@ -131032,14 +131594,12 @@ class AggregationDependencyModelPath {
|
|
|
131032
131594
|
this.restModelPath = restModelPath;
|
|
131033
131595
|
}
|
|
131034
131596
|
|
|
131035
|
-
|
|
131036
|
-
|
|
131037
|
-
constructor(path) {
|
|
131038
|
-
this.path = void 0;
|
|
131039
|
-
this.path = path;
|
|
131597
|
+
asDependencyModelPath() {
|
|
131598
|
+
return this.modelPath.toCurrentIteration();
|
|
131040
131599
|
}
|
|
131041
131600
|
|
|
131042
131601
|
}
|
|
131602
|
+
class DependencyWithoutChecks extends RegularDependency {}
|
|
131043
131603
|
function isAggregationDependencyModelPath(path) {
|
|
131044
131604
|
return path instanceof AggregationDependencyModelPath;
|
|
131045
131605
|
}
|
|
@@ -131065,7 +131625,7 @@ class KCXmlGeneratorBase {
|
|
|
131065
131625
|
getArgumentDeps(targetFullPath, selectFullPath, aggregationType) {
|
|
131066
131626
|
const pathDiffInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetFullPath, selectFullPath);
|
|
131067
131627
|
const restPath = pathDiffInfo.differentPath;
|
|
131068
|
-
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);
|
|
131628
|
+
return !restPath.isContainIteration() ? new RegularDependency(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);
|
|
131069
131629
|
}
|
|
131070
131630
|
|
|
131071
131631
|
getAggregationPathsRecursively(currentParts, restParts) {
|
|
@@ -131138,16 +131698,42 @@ class KCXmlGeneratorBase {
|
|
|
131138
131698
|
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());
|
|
131139
131699
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
131140
131700
|
deps.push(argumentDependency);
|
|
131141
|
-
const finalPath =
|
|
131701
|
+
const finalPath = argumentDependency.asDependencyModelPath();
|
|
131142
131702
|
return gcf(x => x.argument, `"${finalPath.toLegacyPath()}"`);
|
|
131143
131703
|
}
|
|
131144
131704
|
|
|
131145
131705
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
|
|
131146
131706
|
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());
|
|
131147
|
-
deps.push(modelPath);
|
|
131707
|
+
deps.push(new RegularDependency(modelPath));
|
|
131148
131708
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
131149
131709
|
}
|
|
131150
131710
|
|
|
131711
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
131712
|
+
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());
|
|
131713
|
+
deps.push(modelPath);
|
|
131714
|
+
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
131715
|
+
}
|
|
131716
|
+
|
|
131717
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
131718
|
+
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());
|
|
131719
|
+
deps.push(modelPath);
|
|
131720
|
+
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
131721
|
+
}
|
|
131722
|
+
|
|
131723
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
131724
|
+
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());
|
|
131725
|
+
deps.push(modelPath);
|
|
131726
|
+
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
131727
|
+
}
|
|
131728
|
+
|
|
131729
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
131730
|
+
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());
|
|
131731
|
+
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());
|
|
131732
|
+
deps.push(bikPath);
|
|
131733
|
+
deps.push(accountPath);
|
|
131734
|
+
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
131735
|
+
}
|
|
131736
|
+
|
|
131151
131737
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
131152
131738
|
var _expression$withNullO;
|
|
131153
131739
|
|
|
@@ -131157,9 +131743,9 @@ class KCXmlGeneratorBase {
|
|
|
131157
131743
|
if (targetFullPath.isContainIteration()) {
|
|
131158
131744
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
131159
131745
|
deps.push(argumentDependency);
|
|
131160
|
-
finalPath =
|
|
131746
|
+
finalPath = argumentDependency.asDependencyModelPath();
|
|
131161
131747
|
} else {
|
|
131162
|
-
deps.push(modelPath);
|
|
131748
|
+
deps.push(new RegularDependency(modelPath));
|
|
131163
131749
|
}
|
|
131164
131750
|
|
|
131165
131751
|
return gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
@@ -131302,9 +131888,11 @@ class KCXmlGeneratorBase {
|
|
|
131302
131888
|
const targetKeyPath = this.getModelPath(prefix, expression.targetKeyPath);
|
|
131303
131889
|
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
131304
131890
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
131305
|
-
|
|
131891
|
+
const sourceKeyDeps = this.calculatedGroupSumDependencies(targetKeyPath, sourceKeyPath);
|
|
131892
|
+
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
131306
131893
|
const sourceValuePath = this.getModelPath(prefix, expression.sourceValuePath);
|
|
131307
|
-
|
|
131894
|
+
const sourceValueDeps = this.calculatedGroupSumDependencies(targetKeyPath, sourceValuePath);
|
|
131895
|
+
deps.push(new DependencyWithoutChecks(sourceValueDeps.currentDepsPath, sourceValueDeps.eachDepsPath));
|
|
131308
131896
|
return gcf(x => x.groupSum, `"${targetKeyPath}", "${sourceKeyPath}", "${sourceValuePath}"`);
|
|
131309
131897
|
}
|
|
131310
131898
|
|
|
@@ -131312,7 +131900,8 @@ class KCXmlGeneratorBase {
|
|
|
131312
131900
|
const targetKeyPath = this.getModelPath(prefix, expression.targetKeyPath);
|
|
131313
131901
|
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
131314
131902
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
131315
|
-
|
|
131903
|
+
const sourceKeyDeps = this.calculatedGroupSumDependencies(targetKeyPath, sourceKeyPath);
|
|
131904
|
+
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
131316
131905
|
return gcf(x => x.groupCount, `"${targetKeyPath}", "${sourceKeyPath}"`);
|
|
131317
131906
|
}
|
|
131318
131907
|
|
|
@@ -131336,6 +131925,38 @@ class KCXmlGeneratorBase {
|
|
|
131336
131925
|
}
|
|
131337
131926
|
/* eslint-enable @typescript-eslint/unbound-method */
|
|
131338
131927
|
|
|
131928
|
+
/*
|
|
131929
|
+
Метод вычисляет зависимости для оператора.
|
|
131930
|
+
Для того, чтобы калькулятор корректно реагировал на измнения необходимо сделать корректные зависимости:
|
|
131931
|
+
1) Если исходная множественность и множественность по которой строится группа совпадают, то необходио
|
|
131932
|
+
для последней звёздочки построить зависимость не через PathTokens.current, а через PathTokens.each,
|
|
131933
|
+
т.к. в таком случае пересчёт groupSum/groupCount должен тригетрися при изменении любого элемента в множественности, а не только текущего.
|
|
131934
|
+
2) Если множественности не совпадают, то количество звёздочек (getIterationRank()) в общей части будет разным и ничего дополнительно делать не нужно,
|
|
131935
|
+
в зависимостях в CalculationFunction в данном случае все звёздочки превратятся в PathTokens.current.
|
|
131936
|
+
*/
|
|
131937
|
+
|
|
131938
|
+
|
|
131939
|
+
calculatedGroupSumDependencies(targetKeyPath, sourcePath) {
|
|
131940
|
+
var _targetPathParts$last;
|
|
131941
|
+
|
|
131942
|
+
const diffPaths = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetKeyPath, sourcePath);
|
|
131943
|
+
|
|
131944
|
+
if (targetKeyPath.getIterationRank() > diffPaths.matchedPath.getIterationRank()) {
|
|
131945
|
+
return {
|
|
131946
|
+
currentDepsPath: diffPaths.matchedPath,
|
|
131947
|
+
eachDepsPath: diffPaths.differentPath
|
|
131948
|
+
};
|
|
131949
|
+
}
|
|
131950
|
+
|
|
131951
|
+
const targetPathParts = diffPaths.matchedPath.getPathPartsAsArray();
|
|
131952
|
+
const lastStarIndex = targetPathParts.lastIndexOf(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
131953
|
+
const currentDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(targetPathParts.slice(0, lastStarIndex));
|
|
131954
|
+
const eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([(_targetPathParts$last = targetPathParts[lastStarIndex]) !== null && _targetPathParts$last !== void 0 ? _targetPathParts$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(), ...targetPathParts.slice(lastStarIndex + 1)]).joinWith(diffPaths.differentPath);
|
|
131955
|
+
return {
|
|
131956
|
+
currentDepsPath: currentDepsPath,
|
|
131957
|
+
eachDepsPath: eachDepsPath
|
|
131958
|
+
};
|
|
131959
|
+
}
|
|
131339
131960
|
|
|
131340
131961
|
removeAttributePrefix(pathPart) {
|
|
131341
131962
|
return pathPart.replace(/\@/g, "");
|
|
@@ -131412,10 +132033,11 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
131412
132033
|
const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
|
|
131413
132034
|
const compiledTarget = this.modelPathInstance(target);
|
|
131414
132035
|
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
|
|
131415
|
-
path:
|
|
131416
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x)
|
|
131417
|
-
|
|
131418
|
-
|
|
132036
|
+
path: x.asDependencyModelPath(),
|
|
132037
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
|
|
132038
|
+
pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
|
|
132039
|
+
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
132040
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
131419
132041
|
const compiledDescription = (_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message";
|
|
131420
132042
|
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `() => "${compiledDescription}", "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
131421
132043
|
return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
|
|
@@ -132842,6 +133464,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132842
133464
|
/* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
|
|
132843
133465
|
/* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
|
|
132844
133466
|
/* harmony export */ "FloorExpression": () => (/* binding */ FloorExpression),
|
|
133467
|
+
/* harmony export */ "IsSnilsExpression": () => (/* binding */ IsSnilsExpression),
|
|
133468
|
+
/* harmony export */ "IsInnExpression": () => (/* binding */ IsInnExpression),
|
|
133469
|
+
/* harmony export */ "IsValidMirCardNumberExpression": () => (/* binding */ IsValidMirCardNumberExpression),
|
|
133470
|
+
/* harmony export */ "IsValidAccountNumberExpression": () => (/* binding */ IsValidAccountNumberExpression),
|
|
132845
133471
|
/* harmony export */ "AddSumExpression": () => (/* binding */ AddSumExpression),
|
|
132846
133472
|
/* harmony export */ "GetExpression": () => (/* binding */ GetExpression),
|
|
132847
133473
|
/* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
|
|
@@ -133593,6 +134219,73 @@ class FloorExpression extends FLangDecimalExpression {
|
|
|
133593
134219
|
return `floor(${this.expression.convertToString()})`;
|
|
133594
134220
|
}
|
|
133595
134221
|
|
|
134222
|
+
}
|
|
134223
|
+
class IsSnilsExpression extends FLangBoolExpression {
|
|
134224
|
+
constructor(expression) {
|
|
134225
|
+
super();
|
|
134226
|
+
this.expression = void 0;
|
|
134227
|
+
this.expression = expression;
|
|
134228
|
+
}
|
|
134229
|
+
|
|
134230
|
+
*getChildNodes() {
|
|
134231
|
+
yield this.expression;
|
|
134232
|
+
}
|
|
134233
|
+
|
|
134234
|
+
convertToString() {
|
|
134235
|
+
return `isSnils(${this.expression.convertToString()})`;
|
|
134236
|
+
}
|
|
134237
|
+
|
|
134238
|
+
}
|
|
134239
|
+
class IsInnExpression extends FLangBoolExpression {
|
|
134240
|
+
constructor(expression) {
|
|
134241
|
+
super();
|
|
134242
|
+
this.expression = void 0;
|
|
134243
|
+
this.expression = expression;
|
|
134244
|
+
}
|
|
134245
|
+
|
|
134246
|
+
*getChildNodes() {
|
|
134247
|
+
yield this.expression;
|
|
134248
|
+
}
|
|
134249
|
+
|
|
134250
|
+
convertToString() {
|
|
134251
|
+
return `isInn(${this.expression.convertToString()})`;
|
|
134252
|
+
}
|
|
134253
|
+
|
|
134254
|
+
}
|
|
134255
|
+
class IsValidMirCardNumberExpression extends FLangBoolExpression {
|
|
134256
|
+
constructor(expression) {
|
|
134257
|
+
super();
|
|
134258
|
+
this.expression = void 0;
|
|
134259
|
+
this.expression = expression;
|
|
134260
|
+
}
|
|
134261
|
+
|
|
134262
|
+
*getChildNodes() {
|
|
134263
|
+
yield this.expression;
|
|
134264
|
+
}
|
|
134265
|
+
|
|
134266
|
+
convertToString() {
|
|
134267
|
+
return `isValidMirCardNumber(${this.expression.convertToString()})`;
|
|
134268
|
+
}
|
|
134269
|
+
|
|
134270
|
+
}
|
|
134271
|
+
class IsValidAccountNumberExpression extends FLangBoolExpression {
|
|
134272
|
+
constructor(bik, account) {
|
|
134273
|
+
super();
|
|
134274
|
+
this.bik = void 0;
|
|
134275
|
+
this.account = void 0;
|
|
134276
|
+
this.bik = bik;
|
|
134277
|
+
this.account = account;
|
|
134278
|
+
}
|
|
134279
|
+
|
|
134280
|
+
*getChildNodes() {
|
|
134281
|
+
yield this.bik;
|
|
134282
|
+
yield this.account;
|
|
134283
|
+
}
|
|
134284
|
+
|
|
134285
|
+
convertToString() {
|
|
134286
|
+
return `isValidAccountNumber(${this.bik.convertToString()}, ${this.account.convertToString()})`;
|
|
134287
|
+
}
|
|
134288
|
+
|
|
133596
134289
|
}
|
|
133597
134290
|
class AddSumExpression extends FLangDictExpression {
|
|
133598
134291
|
constructor(argumentReference, key, value) {
|
|
@@ -134355,6 +135048,27 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
134355
135048
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DateNowExpression();
|
|
134356
135049
|
}
|
|
134357
135050
|
|
|
135051
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
135052
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
135053
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(arg));
|
|
135054
|
+
}
|
|
135055
|
+
|
|
135056
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsInnExpression) {
|
|
135057
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
135058
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(arg));
|
|
135059
|
+
}
|
|
135060
|
+
|
|
135061
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidMirCardNumberExpression) {
|
|
135062
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
135063
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(arg));
|
|
135064
|
+
}
|
|
135065
|
+
|
|
135066
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidAccountNumberExpression) {
|
|
135067
|
+
const bik = this.compiledArgumentExpression(prefix, target, expression.bik, "string", addPrecalculationRule);
|
|
135068
|
+
const account = this.compiledArgumentExpression(prefix, target, expression.account, "string", addPrecalculationRule);
|
|
135069
|
+
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));
|
|
135070
|
+
}
|
|
135071
|
+
|
|
134358
135072
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGroupSumExpression) {
|
|
134359
135073
|
return this.compileGroupSumExpression(prefix, target, expression, addPrecalculationRule);
|
|
134360
135074
|
}
|