@kontur.candy/generator 5.10.0 → 5.11.1
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 +603 -143
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60974,6 +60974,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60974
60974
|
/* harmony export */ "getLastDateOfMonth": () => (/* binding */ getLastDateOfMonth),
|
|
60975
60975
|
/* harmony export */ "differenceInMonths": () => (/* binding */ differenceInMonths),
|
|
60976
60976
|
/* harmony export */ "differenceInDays": () => (/* binding */ differenceInDays),
|
|
60977
|
+
/* harmony export */ "addDays": () => (/* binding */ addDays),
|
|
60978
|
+
/* harmony export */ "addMonths": () => (/* binding */ addMonths),
|
|
60979
|
+
/* harmony export */ "addYears": () => (/* binding */ addYears),
|
|
60980
|
+
/* harmony export */ "dateToString": () => (/* binding */ dateToString),
|
|
60981
|
+
/* harmony export */ "isDate": () => (/* binding */ isDate),
|
|
60977
60982
|
/* harmony export */ "convertDate": () => (/* binding */ convertDate),
|
|
60978
60983
|
/* harmony export */ "HelperFunctionsDateHelpers": () => (/* binding */ HelperFunctionsDateHelpers)
|
|
60979
60984
|
/* harmony export */ });
|
|
@@ -61078,16 +61083,40 @@ function differenceInDays(leftDate, rightDate) {
|
|
|
61078
61083
|
const difference = (rightDate.getTime() - leftDate.getTime()) / (1000 * 3600 * 24);
|
|
61079
61084
|
return Math.floor(difference);
|
|
61080
61085
|
}
|
|
61086
|
+
function addDays(date, amount) {
|
|
61087
|
+
date.setDate(date.getDate() + amount);
|
|
61088
|
+
return date;
|
|
61089
|
+
}
|
|
61090
|
+
function addMonths(date, amount) {
|
|
61091
|
+
date.setMonth(date.getMonth() + amount);
|
|
61092
|
+
return date;
|
|
61093
|
+
}
|
|
61094
|
+
function addYears(date, amount) {
|
|
61095
|
+
date.setFullYear(date.getFullYear() + amount);
|
|
61096
|
+
return date;
|
|
61097
|
+
}
|
|
61098
|
+
function dateToString(date, format) {
|
|
61099
|
+
return format.replace("dd", date.getDate().toString().padStart(2, "0")).replace("MM", (date.getMonth() + 1).toString().padStart(2, "0")).replace("yyyy", date.getFullYear().toString());
|
|
61100
|
+
}
|
|
61101
|
+
function isDate(date) {
|
|
61102
|
+
return date instanceof Date && !isNaN(date.getTime());
|
|
61103
|
+
}
|
|
61081
61104
|
function convertDate(dateValue) {
|
|
61082
|
-
|
|
61083
|
-
if (
|
|
61084
|
-
|
|
61105
|
+
// dd.MM.yyyy
|
|
61106
|
+
if (_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__.ValidationHelper.isDateFormat(dateValue)) {
|
|
61107
|
+
var _v$, _v$2, _v$3;
|
|
61108
|
+
const v = dateValue.split(".");
|
|
61109
|
+
const d = parseInt((_v$ = v[0]) !== null && _v$ !== void 0 ? _v$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
61110
|
+
const m = parseInt((_v$2 = v[1]) !== null && _v$2 !== void 0 ? _v$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
61111
|
+
const y = parseInt((_v$3 = v[2]) !== null && _v$3 !== void 0 ? _v$3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
61112
|
+
return new Date(Date.UTC(y, m - 1, d));
|
|
61113
|
+
}
|
|
61114
|
+
|
|
61115
|
+
// yyyy-MM-dd
|
|
61116
|
+
if (_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__.ValidationHelper.isDateFormatIso(dateValue)) {
|
|
61117
|
+
return new Date(dateValue);
|
|
61085
61118
|
}
|
|
61086
|
-
|
|
61087
|
-
const d = parseInt((_v$ = v[0]) !== null && _v$ !== void 0 ? _v$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
61088
|
-
const m = parseInt((_v$2 = v[1]) !== null && _v$2 !== void 0 ? _v$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
61089
|
-
const y = parseInt((_v$3 = v[2]) !== null && _v$3 !== void 0 ? _v$3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
61090
|
-
return new Date(Date.UTC(y, m - 1, d));
|
|
61119
|
+
return null;
|
|
61091
61120
|
}
|
|
61092
61121
|
const HelperFunctionsDateHelpers = {
|
|
61093
61122
|
isValidDate: isValidDate,
|
|
@@ -61781,9 +61810,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61781
61810
|
/* harmony export */ "dateNowKCLangFunction": () => (/* binding */ dateNowKCLangFunction),
|
|
61782
61811
|
/* harmony export */ "getDaysInMonthKCLangFunction": () => (/* binding */ getDaysInMonthKCLangFunction),
|
|
61783
61812
|
/* harmony export */ "getDayKCLangFunction": () => (/* binding */ getDayKCLangFunction),
|
|
61813
|
+
/* harmony export */ "getMonthKCLangFunction": () => (/* binding */ getMonthKCLangFunction),
|
|
61814
|
+
/* harmony export */ "getYearKCLangFunction": () => (/* binding */ getYearKCLangFunction),
|
|
61784
61815
|
/* harmony export */ "isDateInMonthKCLangFunction": () => (/* binding */ isDateInMonthKCLangFunction),
|
|
61785
61816
|
/* harmony export */ "differenceInMonthsKCLangFunction": () => (/* binding */ differenceInMonthsKCLangFunction),
|
|
61786
61817
|
/* harmony export */ "differenceInDaysKCLangFunction": () => (/* binding */ differenceInDaysKCLangFunction),
|
|
61818
|
+
/* harmony export */ "addDaysKCLangFunction": () => (/* binding */ addDaysKCLangFunction),
|
|
61819
|
+
/* harmony export */ "addMonthsKCLangFunction": () => (/* binding */ addMonthsKCLangFunction),
|
|
61820
|
+
/* harmony export */ "addYearsKCLangFunction": () => (/* binding */ addYearsKCLangFunction),
|
|
61821
|
+
/* harmony export */ "dateToStringKCLangFunction": () => (/* binding */ dateToStringKCLangFunction),
|
|
61787
61822
|
/* harmony export */ "dateTimeKCLangFunction": () => (/* binding */ dateTimeKCLangFunction)
|
|
61788
61823
|
/* harmony export */ });
|
|
61789
61824
|
class ArgumentValidationError {
|
|
@@ -62241,7 +62276,7 @@ const getDayKCLangFunction = params => {
|
|
|
62241
62276
|
expression: param
|
|
62242
62277
|
};
|
|
62243
62278
|
};
|
|
62244
|
-
const
|
|
62279
|
+
const getMonthKCLangFunction = params => {
|
|
62245
62280
|
var _params$33;
|
|
62246
62281
|
const errors = Array.from(validateParams(params, 1));
|
|
62247
62282
|
if (errors.length > 0) {
|
|
@@ -62251,6 +62286,36 @@ const isDateInMonthKCLangFunction = params => {
|
|
|
62251
62286
|
if (param == undefined) {
|
|
62252
62287
|
throw new Error("Unexpected error!");
|
|
62253
62288
|
}
|
|
62289
|
+
return {
|
|
62290
|
+
type: "getMonth",
|
|
62291
|
+
expression: param
|
|
62292
|
+
};
|
|
62293
|
+
};
|
|
62294
|
+
const getYearKCLangFunction = params => {
|
|
62295
|
+
var _params$34;
|
|
62296
|
+
const errors = Array.from(validateParams(params, 1));
|
|
62297
|
+
if (errors.length > 0) {
|
|
62298
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62299
|
+
}
|
|
62300
|
+
const param = (_params$34 = params[0]) === null || _params$34 === void 0 ? void 0 : _params$34.value;
|
|
62301
|
+
if (param == undefined) {
|
|
62302
|
+
throw new Error("Unexpected error!");
|
|
62303
|
+
}
|
|
62304
|
+
return {
|
|
62305
|
+
type: "getYear",
|
|
62306
|
+
expression: param
|
|
62307
|
+
};
|
|
62308
|
+
};
|
|
62309
|
+
const isDateInMonthKCLangFunction = params => {
|
|
62310
|
+
var _params$35;
|
|
62311
|
+
const errors = Array.from(validateParams(params, 1));
|
|
62312
|
+
if (errors.length > 0) {
|
|
62313
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62314
|
+
}
|
|
62315
|
+
const param = (_params$35 = params[0]) === null || _params$35 === void 0 ? void 0 : _params$35.value;
|
|
62316
|
+
if (param == undefined) {
|
|
62317
|
+
throw new Error("Unexpected error!");
|
|
62318
|
+
}
|
|
62254
62319
|
return {
|
|
62255
62320
|
type: "isDate",
|
|
62256
62321
|
expression: param
|
|
@@ -62276,13 +62341,100 @@ const differenceInDaysKCLangFunction = params => {
|
|
|
62276
62341
|
expressions: params.map(x => x.value)
|
|
62277
62342
|
};
|
|
62278
62343
|
};
|
|
62344
|
+
const addDaysKCLangFunction = params => {
|
|
62345
|
+
var _params$36, _params$37;
|
|
62346
|
+
const errors = Array.from(validateParams(params, 2));
|
|
62347
|
+
if (errors.length > 0) {
|
|
62348
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62349
|
+
}
|
|
62350
|
+
const exprParam = (_params$36 = params[0]) === null || _params$36 === void 0 ? void 0 : _params$36.value;
|
|
62351
|
+
const amountParam = (_params$37 = params[1]) === null || _params$37 === void 0 ? void 0 : _params$37.value;
|
|
62352
|
+
if (exprParam == undefined) {
|
|
62353
|
+
throw new Error("Expected expression for addDays().");
|
|
62354
|
+
}
|
|
62355
|
+
if ((amountParam === null || amountParam === void 0 ? void 0 : amountParam.type) !== "const") {
|
|
62356
|
+
const invalidArgsError = new ArgumentValidationError("Invalid argument types. Expected number for amount argument for addDays().");
|
|
62357
|
+
return new FunctionValidationErrorCollection([...errors, invalidArgsError]);
|
|
62358
|
+
}
|
|
62359
|
+
const amount = Number.parseInt(amountParam.value.value, 10);
|
|
62360
|
+
return {
|
|
62361
|
+
type: "addDays",
|
|
62362
|
+
expression: exprParam,
|
|
62363
|
+
amount: amount
|
|
62364
|
+
};
|
|
62365
|
+
};
|
|
62366
|
+
const addMonthsKCLangFunction = params => {
|
|
62367
|
+
var _params$38, _params$39;
|
|
62368
|
+
const errors = Array.from(validateParams(params, 2));
|
|
62369
|
+
if (errors.length > 0) {
|
|
62370
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62371
|
+
}
|
|
62372
|
+
const exprParam = (_params$38 = params[0]) === null || _params$38 === void 0 ? void 0 : _params$38.value;
|
|
62373
|
+
const amountParam = (_params$39 = params[1]) === null || _params$39 === void 0 ? void 0 : _params$39.value;
|
|
62374
|
+
if (exprParam == undefined) {
|
|
62375
|
+
throw new Error("Expected expression for addMonths().");
|
|
62376
|
+
}
|
|
62377
|
+
if ((amountParam === null || amountParam === void 0 ? void 0 : amountParam.type) !== "const") {
|
|
62378
|
+
const invalidArgsError = new ArgumentValidationError("Invalid argument types. Expected number for amount argument for addMonths().");
|
|
62379
|
+
return new FunctionValidationErrorCollection([...errors, invalidArgsError]);
|
|
62380
|
+
}
|
|
62381
|
+
const amount = Number.parseInt(amountParam.value.value, 10);
|
|
62382
|
+
return {
|
|
62383
|
+
type: "addMonths",
|
|
62384
|
+
expression: exprParam,
|
|
62385
|
+
amount: amount
|
|
62386
|
+
};
|
|
62387
|
+
};
|
|
62388
|
+
const addYearsKCLangFunction = params => {
|
|
62389
|
+
var _params$40, _params$41;
|
|
62390
|
+
const errors = Array.from(validateParams(params, 2));
|
|
62391
|
+
if (errors.length > 0) {
|
|
62392
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62393
|
+
}
|
|
62394
|
+
const exprParam = (_params$40 = params[0]) === null || _params$40 === void 0 ? void 0 : _params$40.value;
|
|
62395
|
+
const amountParam = (_params$41 = params[1]) === null || _params$41 === void 0 ? void 0 : _params$41.value;
|
|
62396
|
+
if (exprParam == undefined) {
|
|
62397
|
+
throw new Error("Expected expression for addYears().");
|
|
62398
|
+
}
|
|
62399
|
+
if ((amountParam === null || amountParam === void 0 ? void 0 : amountParam.type) !== "const") {
|
|
62400
|
+
const invalidArgsError = new ArgumentValidationError("Invalid argument types. Expected number for amount argument for addYears().");
|
|
62401
|
+
return new FunctionValidationErrorCollection([...errors, invalidArgsError]);
|
|
62402
|
+
}
|
|
62403
|
+
const amount = Number.parseInt(amountParam.value.value, 10);
|
|
62404
|
+
return {
|
|
62405
|
+
type: "addYears",
|
|
62406
|
+
expression: exprParam,
|
|
62407
|
+
amount: amount
|
|
62408
|
+
};
|
|
62409
|
+
};
|
|
62410
|
+
const dateToStringKCLangFunction = params => {
|
|
62411
|
+
var _params$42, _params$43;
|
|
62412
|
+
const errors = Array.from(validateParams(params, 1, 2));
|
|
62413
|
+
if (errors.length > 0) {
|
|
62414
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62415
|
+
}
|
|
62416
|
+
const exprParam = (_params$42 = params[0]) === null || _params$42 === void 0 ? void 0 : _params$42.value;
|
|
62417
|
+
const formatParam = (_params$43 = params[1]) === null || _params$43 === void 0 ? void 0 : _params$43.value;
|
|
62418
|
+
if (exprParam == undefined) {
|
|
62419
|
+
throw new Error("Expected expression for dateToString().");
|
|
62420
|
+
}
|
|
62421
|
+
if (formatParam != undefined && formatParam.type !== "const") {
|
|
62422
|
+
const invalidArgsError = new ArgumentValidationError("Invalid argument types. Expected number for format argument for dateToString().");
|
|
62423
|
+
return new FunctionValidationErrorCollection([...errors, invalidArgsError]);
|
|
62424
|
+
}
|
|
62425
|
+
return {
|
|
62426
|
+
type: "dateToString",
|
|
62427
|
+
expression: exprParam,
|
|
62428
|
+
format: formatParam === null || formatParam === void 0 ? void 0 : formatParam.value.value
|
|
62429
|
+
};
|
|
62430
|
+
};
|
|
62279
62431
|
const dateTimeKCLangFunction = params => {
|
|
62280
|
-
var _params$
|
|
62432
|
+
var _params$44;
|
|
62281
62433
|
const errors = Array.from(validateParams(params, 1));
|
|
62282
62434
|
if (errors.length > 0) {
|
|
62283
62435
|
return new FunctionValidationErrorCollection(errors);
|
|
62284
62436
|
}
|
|
62285
|
-
const param = (_params$
|
|
62437
|
+
const param = (_params$44 = params[0]) === null || _params$44 === void 0 ? void 0 : _params$44.value;
|
|
62286
62438
|
if (param == undefined) {
|
|
62287
62439
|
throw new Error("Unexpected error!");
|
|
62288
62440
|
}
|
|
@@ -62343,9 +62495,15 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
62343
62495
|
dateNow: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateNowKCLangFunction],
|
|
62344
62496
|
getDaysInMonth: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.getDaysInMonthKCLangFunction],
|
|
62345
62497
|
getDay: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.getDayKCLangFunction],
|
|
62498
|
+
getMonth: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.getMonthKCLangFunction],
|
|
62499
|
+
getYear: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.getYearKCLangFunction],
|
|
62346
62500
|
isDate: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.isDateInMonthKCLangFunction],
|
|
62347
62501
|
differenceInMonths: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.differenceInMonthsKCLangFunction],
|
|
62348
62502
|
differenceInDays: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.differenceInDaysKCLangFunction],
|
|
62503
|
+
addDays: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.addDaysKCLangFunction],
|
|
62504
|
+
addMonths: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.addMonthsKCLangFunction],
|
|
62505
|
+
addYears: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.addYearsKCLangFunction],
|
|
62506
|
+
dateToString: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateToStringKCLangFunction],
|
|
62349
62507
|
dateTime: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateTimeKCLangFunction]
|
|
62350
62508
|
});
|
|
62351
62509
|
class ErrorListener {
|
|
@@ -69843,6 +70001,12 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
69843
70001
|
case "getDay":
|
|
69844
70002
|
visitor.visitGetDayKCLangNode(node);
|
|
69845
70003
|
break;
|
|
70004
|
+
case "getMonth":
|
|
70005
|
+
visitor.visitGetMonthKCLangNode(node);
|
|
70006
|
+
break;
|
|
70007
|
+
case "getYear":
|
|
70008
|
+
visitor.visitGetYearKCLangNode(node);
|
|
70009
|
+
break;
|
|
69846
70010
|
case "isDate":
|
|
69847
70011
|
visitor.visitIsDateKCLangNode(node);
|
|
69848
70012
|
break;
|
|
@@ -69852,6 +70016,18 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
69852
70016
|
case "differenceInDays":
|
|
69853
70017
|
visitor.visitDifferenceInDaysKCLangNode(node);
|
|
69854
70018
|
break;
|
|
70019
|
+
case "addDays":
|
|
70020
|
+
visitor.visitAddDaysKCLangNode(node);
|
|
70021
|
+
break;
|
|
70022
|
+
case "addMonths":
|
|
70023
|
+
visitor.visitAddMonthsKCLangNode(node);
|
|
70024
|
+
break;
|
|
70025
|
+
case "addYears":
|
|
70026
|
+
visitor.visitAddYearsKCLangNode(node);
|
|
70027
|
+
break;
|
|
70028
|
+
case "dateToString":
|
|
70029
|
+
visitor.visitDateToStringKCLangNode(node);
|
|
70030
|
+
break;
|
|
69855
70031
|
case "dateTime":
|
|
69856
70032
|
visitor.visitDateTimeKCLangNode(node);
|
|
69857
70033
|
break;
|
|
@@ -69984,6 +70160,12 @@ class DefaultKCLangExpressionVisitor {
|
|
|
69984
70160
|
visitGetDayKCLangNode(node) {
|
|
69985
70161
|
// default empty implementation
|
|
69986
70162
|
}
|
|
70163
|
+
visitGetMonthKCLangNode(node) {
|
|
70164
|
+
// default empty implementation
|
|
70165
|
+
}
|
|
70166
|
+
visitGetYearKCLangNode(node) {
|
|
70167
|
+
// default empty implementation
|
|
70168
|
+
}
|
|
69987
70169
|
visitIsDateKCLangNode(node) {
|
|
69988
70170
|
// default empty implementation
|
|
69989
70171
|
}
|
|
@@ -69993,6 +70175,18 @@ class DefaultKCLangExpressionVisitor {
|
|
|
69993
70175
|
visitDifferenceInDaysKCLangNode(node) {
|
|
69994
70176
|
// default empty implementation
|
|
69995
70177
|
}
|
|
70178
|
+
visitAddDaysKCLangNode(node) {
|
|
70179
|
+
// default empty implementation
|
|
70180
|
+
}
|
|
70181
|
+
visitAddMonthsKCLangNode(node) {
|
|
70182
|
+
// default empty implementation
|
|
70183
|
+
}
|
|
70184
|
+
visitAddYearsKCLangNode(node) {
|
|
70185
|
+
// default empty implementation
|
|
70186
|
+
}
|
|
70187
|
+
visitDateToStringKCLangNode(node) {
|
|
70188
|
+
// default empty implementation
|
|
70189
|
+
}
|
|
69996
70190
|
visitDateTimeKCLangNode(node) {
|
|
69997
70191
|
// default empty implementation
|
|
69998
70192
|
}
|
|
@@ -70324,25 +70518,26 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
70324
70518
|
return `${utilsName}.${floorFnName}(${expr})`;
|
|
70325
70519
|
}
|
|
70326
70520
|
case "multySum":
|
|
70327
|
-
{
|
|
70328
|
-
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
70329
|
-
}
|
|
70330
70521
|
case "count":
|
|
70331
70522
|
case "groupCount":
|
|
70332
70523
|
case "groupSum":
|
|
70333
70524
|
case "getDaysInMonth":
|
|
70334
70525
|
case "getDay":
|
|
70526
|
+
case "getMonth":
|
|
70527
|
+
case "getYear":
|
|
70335
70528
|
case "isDate":
|
|
70336
70529
|
case "differenceInMonths":
|
|
70337
70530
|
case "differenceInDays":
|
|
70531
|
+
case "addDays":
|
|
70532
|
+
case "addMonths":
|
|
70533
|
+
case "addYears":
|
|
70534
|
+
case "dateToString":
|
|
70338
70535
|
case "dateTime":
|
|
70339
70536
|
case "getPicklistValues":
|
|
70340
70537
|
case "nodeps":
|
|
70341
70538
|
case "array":
|
|
70342
70539
|
case "firstOrDefault":
|
|
70343
|
-
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
70344
70540
|
case "concat":
|
|
70345
|
-
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
70346
70541
|
case "newline":
|
|
70347
70542
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
70348
70543
|
case "dateNow":
|
|
@@ -70471,12 +70666,20 @@ function generateKCXmlExpression(expression) {
|
|
|
70471
70666
|
return `<m:dateNow />`;
|
|
70472
70667
|
case "getDaysInMonth":
|
|
70473
70668
|
case "getDay":
|
|
70669
|
+
case "getMonth":
|
|
70670
|
+
case "getYear":
|
|
70474
70671
|
case "isDate":
|
|
70475
70672
|
case "dateTime":
|
|
70476
70673
|
return [`<m:${expression.type}>`, expression.expression.type === "argument" ? (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(`<m:argument select="${expression.expression.select}" type="string" />`, 1) : (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
70477
70674
|
case "differenceInMonths":
|
|
70478
70675
|
case "differenceInDays":
|
|
70479
70676
|
return [`<m:${expression.type}>`, ...expression.expressions.map(x => x.type === "argument" ? `<m:argument select="${x.select}" type="string" />` : generateKCXmlExpression(x)).map(x => (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(x, 1)), `</m:${expression.type}>`].join("\n");
|
|
70677
|
+
case "addDays":
|
|
70678
|
+
case "addMonths":
|
|
70679
|
+
case "addYears":
|
|
70680
|
+
return [`<m:${expression.type} amount="${expression.amount}">`, expression.expression.type === "argument" ? (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(`<m:argument select="${expression.expression.select}" type="string" />`, 1) : (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
70681
|
+
case "dateToString":
|
|
70682
|
+
return [`<m:${expression.type}${!!expression.format ? ` format="${expression.format}"` : ""}>`, expression.expression.type === "argument" ? (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(`<m:argument select="${expression.expression.select}" type="string" />`, 1) : (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
70480
70683
|
case "newline":
|
|
70481
70684
|
return `<m:newline />`;
|
|
70482
70685
|
case "regexMatch":
|
|
@@ -75861,9 +76064,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75861
76064
|
/* harmony export */ "FormulaDateNowExpression": () => (/* binding */ FormulaDateNowExpression),
|
|
75862
76065
|
/* harmony export */ "FormulaGetDaysInMonthExpression": () => (/* binding */ FormulaGetDaysInMonthExpression),
|
|
75863
76066
|
/* harmony export */ "FormulaGetDayExpression": () => (/* binding */ FormulaGetDayExpression),
|
|
76067
|
+
/* harmony export */ "FormulaGetMonthExpression": () => (/* binding */ FormulaGetMonthExpression),
|
|
76068
|
+
/* harmony export */ "FormulaGetYearExpression": () => (/* binding */ FormulaGetYearExpression),
|
|
75864
76069
|
/* harmony export */ "FormulaIsDateExpression": () => (/* binding */ FormulaIsDateExpression),
|
|
75865
76070
|
/* harmony export */ "FormulaDifferenceInMonthsExpression": () => (/* binding */ FormulaDifferenceInMonthsExpression),
|
|
75866
76071
|
/* harmony export */ "FormulaDifferenceInDaysExpression": () => (/* binding */ FormulaDifferenceInDaysExpression),
|
|
76072
|
+
/* harmony export */ "FormulaAddDaysExpression": () => (/* binding */ FormulaAddDaysExpression),
|
|
76073
|
+
/* harmony export */ "FormulaAddMonthsExpression": () => (/* binding */ FormulaAddMonthsExpression),
|
|
76074
|
+
/* harmony export */ "FormulaAddYearsExpression": () => (/* binding */ FormulaAddYearsExpression),
|
|
76075
|
+
/* harmony export */ "FormulaDateToStringExpression": () => (/* binding */ FormulaDateToStringExpression),
|
|
75867
76076
|
/* harmony export */ "FormulaDateTimeExpression": () => (/* binding */ FormulaDateTimeExpression),
|
|
75868
76077
|
/* harmony export */ "FormulaIsSnilsExpression": () => (/* binding */ FormulaIsSnilsExpression),
|
|
75869
76078
|
/* harmony export */ "FormulaIsInnExpression": () => (/* binding */ FormulaIsInnExpression),
|
|
@@ -75900,7 +76109,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75900
76109
|
|
|
75901
76110
|
|
|
75902
76111
|
|
|
75903
|
-
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, _class102, _class103, _descriptor46, _dec83, _dec84, _class105, _class106, _descriptor47, _dec85, _dec86, _class108, _class109, _descriptor48, _dec87, _dec88, _class111, _class112, _descriptor49, _dec89, _dec90, _class114, _class115, _descriptor50,
|
|
76112
|
+
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, _class102, _class103, _descriptor46, _dec83, _dec84, _class105, _class106, _descriptor47, _dec85, _dec86, _class108, _class109, _descriptor48, _dec87, _dec88, _class111, _class112, _descriptor49, _dec89, _dec90, _dec91, _class114, _class115, _descriptor50, _descriptor51, _dec92, _dec93, _dec94, _class117, _class118, _descriptor52, _descriptor53, _dec95, _dec96, _dec97, _class120, _class121, _descriptor54, _descriptor55, _dec98, _dec99, _dec100, _class123, _class124, _descriptor56, _descriptor57, _dec101, _dec102, _class126, _class127, _descriptor58, _dec103, _dec104, _class129, _class130, _descriptor59, _dec105, _dec106, _class132, _class133, _descriptor60, _dec107, _dec108, _class135, _class136, _descriptor61, _dec109, _dec110, _dec111, _class138, _class139, _descriptor62, _descriptor63, _dec112, _dec113, _dec114, _class141, _class142, _descriptor64, _descriptor65, _dec115, _dec116, _class144, _class145, _descriptor66, _dec117, _dec118, _class147, _class148, _descriptor67, _dec119, _dec120, _class150, _class151, _descriptor68, _dec121, _dec122, _dec123, _dec124, _dec125, _class153, _class154, _descriptor69, _descriptor70, _descriptor71, _descriptor72, _dec126, _dec127, _class156, _class157, _descriptor73, _dec128, _dec129, _class159, _class160, _descriptor74, _dec130, _dec131, _class162, _class163, _descriptor75, _dec132, _dec133, _dec134, _class165, _class166, _descriptor76, _descriptor77, _dec135, _dec136, _class168, _class169, _descriptor78, _dec137, _class171, _dec138, _dec139, _dec140, _dec141, _class172, _class173, _descriptor79, _descriptor80, _descriptor81, _dec142, _dec143, _class175, _class176, _descriptor82, _dec144, _dec145, _class178, _class179, _descriptor83, _dec146, _dec147, _dec148, _dec149, _dec150, _dec151, _class181, _class182, _descriptor84, _descriptor85, _descriptor86, _descriptor87, _descriptor88, _dec152, _dec153, _class184, _class185, _descriptor89, _dec154, _dec155, _dec156, _class187, _class188, _descriptor90, _descriptor91;
|
|
75904
76113
|
|
|
75905
76114
|
|
|
75906
76115
|
|
|
@@ -76399,7 +76608,7 @@ let FormulaGetDayExpression = (_dec77 = (0,_markupGenerator_Serializer_SugarSeri
|
|
|
76399
76608
|
writable: true,
|
|
76400
76609
|
initializer: null
|
|
76401
76610
|
})), _class97)) || _class96);
|
|
76402
|
-
let
|
|
76611
|
+
let FormulaGetMonthExpression = (_dec79 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getmonth", `Месяц из указанной даты`), _dec80 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec79(_class99 = (_class100 = class FormulaGetMonthExpression extends FormulaExpression {
|
|
76403
76612
|
constructor(...args) {
|
|
76404
76613
|
super(...args);
|
|
76405
76614
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor45, this);
|
|
@@ -76410,359 +76619,454 @@ let FormulaIsDateExpression = (_dec79 = (0,_markupGenerator_Serializer_SugarSeri
|
|
|
76410
76619
|
writable: true,
|
|
76411
76620
|
initializer: null
|
|
76412
76621
|
})), _class100)) || _class99);
|
|
76413
|
-
let
|
|
76622
|
+
let FormulaGetYearExpression = (_dec81 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getyear", `Год из указанной даты`), _dec82 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec81(_class102 = (_class103 = class FormulaGetYearExpression extends FormulaExpression {
|
|
76414
76623
|
constructor(...args) {
|
|
76415
76624
|
super(...args);
|
|
76416
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
76625
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor46, this);
|
|
76417
76626
|
}
|
|
76418
|
-
}, (_descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class103.prototype, "
|
|
76627
|
+
}, (_descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class103.prototype, "expression", [_dec82], {
|
|
76419
76628
|
configurable: true,
|
|
76420
76629
|
enumerable: true,
|
|
76421
76630
|
writable: true,
|
|
76422
76631
|
initializer: null
|
|
76423
76632
|
})), _class103)) || _class102);
|
|
76424
|
-
let
|
|
76633
|
+
let FormulaIsDateExpression = (_dec83 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isdate", `Проверка, является ли дата валидной`), _dec84 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec83(_class105 = (_class106 = class FormulaIsDateExpression extends FormulaExpression {
|
|
76425
76634
|
constructor(...args) {
|
|
76426
76635
|
super(...args);
|
|
76427
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
76636
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor47, this);
|
|
76428
76637
|
}
|
|
76429
|
-
}, (_descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "
|
|
76638
|
+
}, (_descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "expression", [_dec84], {
|
|
76430
76639
|
configurable: true,
|
|
76431
76640
|
enumerable: true,
|
|
76432
76641
|
writable: true,
|
|
76433
76642
|
initializer: null
|
|
76434
76643
|
})), _class106)) || _class105);
|
|
76435
|
-
let
|
|
76644
|
+
let FormulaDifferenceInMonthsExpression = (_dec85 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("differenceinmonths", `Количество полных месяцев между двумя датами`), _dec86 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec85(_class108 = (_class109 = class FormulaDifferenceInMonthsExpression extends FormulaExpression {
|
|
76436
76645
|
constructor(...args) {
|
|
76437
76646
|
super(...args);
|
|
76438
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
76647
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor48, this);
|
|
76439
76648
|
}
|
|
76440
|
-
}, (_descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class109.prototype, "
|
|
76649
|
+
}, (_descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class109.prototype, "arguments", [_dec86], {
|
|
76441
76650
|
configurable: true,
|
|
76442
76651
|
enumerable: true,
|
|
76443
76652
|
writable: true,
|
|
76444
76653
|
initializer: null
|
|
76445
76654
|
})), _class109)) || _class108);
|
|
76446
|
-
let
|
|
76655
|
+
let FormulaDifferenceInDaysExpression = (_dec87 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("differenceindays", `Разница в днях между двумя датами`), _dec88 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec87(_class111 = (_class112 = class FormulaDifferenceInDaysExpression extends FormulaExpression {
|
|
76656
|
+
constructor(...args) {
|
|
76657
|
+
super(...args);
|
|
76658
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor49, this);
|
|
76659
|
+
}
|
|
76660
|
+
}, (_descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "arguments", [_dec88], {
|
|
76661
|
+
configurable: true,
|
|
76662
|
+
enumerable: true,
|
|
76663
|
+
writable: true,
|
|
76664
|
+
initializer: null
|
|
76665
|
+
})), _class112)) || _class111);
|
|
76666
|
+
let FormulaAddDaysExpression = (_dec89 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("adddays", `Добавить дни к дате`), _dec90 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec91 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("amount", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `Количество дней (можно указать отрицательное)`), _dec89(_class114 = (_class115 = class FormulaAddDaysExpression extends FormulaExpression {
|
|
76667
|
+
constructor(...args) {
|
|
76668
|
+
super(...args);
|
|
76669
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor50, this);
|
|
76670
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount", _descriptor51, this);
|
|
76671
|
+
}
|
|
76672
|
+
}, (_descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class115.prototype, "expression", [_dec90], {
|
|
76673
|
+
configurable: true,
|
|
76674
|
+
enumerable: true,
|
|
76675
|
+
writable: true,
|
|
76676
|
+
initializer: null
|
|
76677
|
+
}), _descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class115.prototype, "amount", [_dec91], {
|
|
76678
|
+
configurable: true,
|
|
76679
|
+
enumerable: true,
|
|
76680
|
+
writable: true,
|
|
76681
|
+
initializer: null
|
|
76682
|
+
})), _class115)) || _class114);
|
|
76683
|
+
let FormulaAddMonthsExpression = (_dec92 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("addmonths", `Добавить месяцы к дате`), _dec93 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec94 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("amount", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `Количество месяцев (можно указать отрицательное)`), _dec92(_class117 = (_class118 = class FormulaAddMonthsExpression extends FormulaExpression {
|
|
76684
|
+
constructor(...args) {
|
|
76685
|
+
super(...args);
|
|
76686
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor52, this);
|
|
76687
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount", _descriptor53, this);
|
|
76688
|
+
}
|
|
76689
|
+
}, (_descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "expression", [_dec93], {
|
|
76690
|
+
configurable: true,
|
|
76691
|
+
enumerable: true,
|
|
76692
|
+
writable: true,
|
|
76693
|
+
initializer: null
|
|
76694
|
+
}), _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "amount", [_dec94], {
|
|
76695
|
+
configurable: true,
|
|
76696
|
+
enumerable: true,
|
|
76697
|
+
writable: true,
|
|
76698
|
+
initializer: null
|
|
76699
|
+
})), _class118)) || _class117);
|
|
76700
|
+
let FormulaAddYearsExpression = (_dec95 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("addyears", `Добавить годы к дате`), _dec96 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec97 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("amount", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `Количество лет (можно указать отрицательное)`), _dec95(_class120 = (_class121 = class FormulaAddYearsExpression extends FormulaExpression {
|
|
76701
|
+
constructor(...args) {
|
|
76702
|
+
super(...args);
|
|
76703
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor54, this);
|
|
76704
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount", _descriptor55, this);
|
|
76705
|
+
}
|
|
76706
|
+
}, (_descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class121.prototype, "expression", [_dec96], {
|
|
76707
|
+
configurable: true,
|
|
76708
|
+
enumerable: true,
|
|
76709
|
+
writable: true,
|
|
76710
|
+
initializer: null
|
|
76711
|
+
}), _descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class121.prototype, "amount", [_dec97], {
|
|
76712
|
+
configurable: true,
|
|
76713
|
+
enumerable: true,
|
|
76714
|
+
writable: true,
|
|
76715
|
+
initializer: null
|
|
76716
|
+
})), _class121)) || _class120);
|
|
76717
|
+
let FormulaDateToStringExpression = (_dec98 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datetostring", `Преобразование даты в строку. Используется как обертка над методами, которые возвращают объект даты (addDays, dateNow и т.д.)`), _dec99 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("format", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `
|
|
76718
|
+
Формат даты.
|
|
76719
|
+
- По дефолту (ничего не указано): dd.MM.yyyy
|
|
76720
|
+
- Можно указать "fss" (будет yyyy-MM-dd)
|
|
76721
|
+
- Можно указывать любые форматы с "yyyy", "MM", "dd", например US формат: MM/dd/yyyy
|
|
76722
|
+
`), _dec98(_class123 = (_class124 = class FormulaDateToStringExpression extends FormulaExpression {
|
|
76447
76723
|
constructor(...args) {
|
|
76448
76724
|
super(...args);
|
|
76449
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
76725
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor56, this);
|
|
76726
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "format", _descriptor57, this);
|
|
76727
|
+
}
|
|
76728
|
+
}, (_descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "expression", [_dec99], {
|
|
76729
|
+
configurable: true,
|
|
76730
|
+
enumerable: true,
|
|
76731
|
+
writable: true,
|
|
76732
|
+
initializer: null
|
|
76733
|
+
}), _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "format", [_dec100], {
|
|
76734
|
+
configurable: true,
|
|
76735
|
+
enumerable: true,
|
|
76736
|
+
writable: true,
|
|
76737
|
+
initializer: null
|
|
76738
|
+
})), _class124)) || _class123);
|
|
76739
|
+
let FormulaDateTimeExpression = (_dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datetime", `Преобразование строки в дату`), _dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec101(_class126 = (_class127 = class FormulaDateTimeExpression extends FormulaExpression {
|
|
76740
|
+
constructor(...args) {
|
|
76741
|
+
super(...args);
|
|
76742
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor58, this);
|
|
76743
|
+
}
|
|
76744
|
+
}, (_descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "expression", [_dec102], {
|
|
76745
|
+
configurable: true,
|
|
76746
|
+
enumerable: true,
|
|
76747
|
+
writable: true,
|
|
76748
|
+
initializer: null
|
|
76749
|
+
})), _class127)) || _class126);
|
|
76750
|
+
let FormulaIsSnilsExpression = (_dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec103(_class129 = (_class130 = class FormulaIsSnilsExpression extends FormulaExpression {
|
|
76751
|
+
constructor(...args) {
|
|
76752
|
+
super(...args);
|
|
76753
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor59, this);
|
|
76450
76754
|
}
|
|
76451
76755
|
getLegacyExpressionTypeForFunctionName() {
|
|
76452
76756
|
return "isSnils";
|
|
76453
76757
|
}
|
|
76454
|
-
}, (
|
|
76758
|
+
}, (_descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class130.prototype, "select", [_dec104], {
|
|
76455
76759
|
configurable: true,
|
|
76456
76760
|
enumerable: true,
|
|
76457
76761
|
writable: true,
|
|
76458
76762
|
initializer: null
|
|
76459
|
-
})),
|
|
76460
|
-
let FormulaIsInnExpression = (
|
|
76763
|
+
})), _class130)) || _class129);
|
|
76764
|
+
let FormulaIsInnExpression = (_dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec105(_class132 = (_class133 = class FormulaIsInnExpression extends FormulaExpression {
|
|
76461
76765
|
constructor(...args) {
|
|
76462
76766
|
super(...args);
|
|
76463
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
76767
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor60, this);
|
|
76464
76768
|
}
|
|
76465
76769
|
getLegacyExpressionTypeForFunctionName() {
|
|
76466
76770
|
return "isInn";
|
|
76467
76771
|
}
|
|
76468
|
-
}, (
|
|
76772
|
+
}, (_descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "select", [_dec106], {
|
|
76469
76773
|
configurable: true,
|
|
76470
76774
|
enumerable: true,
|
|
76471
76775
|
writable: true,
|
|
76472
76776
|
initializer: null
|
|
76473
|
-
})),
|
|
76474
|
-
let FormulaIsValidMirCardNumberExpression = (
|
|
76777
|
+
})), _class133)) || _class132);
|
|
76778
|
+
let FormulaIsValidMirCardNumberExpression = (_dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec107(_class135 = (_class136 = class FormulaIsValidMirCardNumberExpression extends FormulaExpression {
|
|
76475
76779
|
constructor(...args) {
|
|
76476
76780
|
super(...args);
|
|
76477
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
76781
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor61, this);
|
|
76478
76782
|
}
|
|
76479
76783
|
getLegacyExpressionTypeForFunctionName() {
|
|
76480
76784
|
return "isValidMirCardNumber";
|
|
76481
76785
|
}
|
|
76482
|
-
}, (
|
|
76786
|
+
}, (_descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class136.prototype, "select", [_dec108], {
|
|
76483
76787
|
configurable: true,
|
|
76484
76788
|
enumerable: true,
|
|
76485
76789
|
writable: true,
|
|
76486
76790
|
initializer: null
|
|
76487
|
-
})),
|
|
76488
|
-
let FormulaIsValidAccountNumberExpression = (
|
|
76791
|
+
})), _class136)) || _class135);
|
|
76792
|
+
let FormulaIsValidAccountNumberExpression = (_dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumber", `Проверка на валидность карты МИР`), _dec110 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("bik", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec111 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("account", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec109(_class138 = (_class139 = class FormulaIsValidAccountNumberExpression extends FormulaExpression {
|
|
76489
76793
|
constructor(...args) {
|
|
76490
76794
|
super(...args);
|
|
76491
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik",
|
|
76492
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account",
|
|
76795
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor62, this);
|
|
76796
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor63, this);
|
|
76493
76797
|
}
|
|
76494
76798
|
getLegacyExpressionTypeForFunctionName() {
|
|
76495
76799
|
return "isValidAccountNumber";
|
|
76496
76800
|
}
|
|
76497
|
-
}, (
|
|
76801
|
+
}, (_descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "bik", [_dec110], {
|
|
76498
76802
|
configurable: true,
|
|
76499
76803
|
enumerable: true,
|
|
76500
76804
|
writable: true,
|
|
76501
76805
|
initializer: null
|
|
76502
|
-
}),
|
|
76806
|
+
}), _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "account", [_dec111], {
|
|
76503
76807
|
configurable: true,
|
|
76504
76808
|
enumerable: true,
|
|
76505
76809
|
writable: true,
|
|
76506
76810
|
initializer: null
|
|
76507
|
-
})),
|
|
76508
|
-
let FormulaArgumentExpression = (
|
|
76811
|
+
})), _class139)) || _class138);
|
|
76812
|
+
let FormulaArgumentExpression = (_dec112 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("argument", `TODO`), _dec113 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec114 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип атрибута: string или decimal (по умолчанию)`), _dec112(_class141 = (_class142 = class FormulaArgumentExpression extends FormulaExpression {
|
|
76509
76813
|
constructor(...args) {
|
|
76510
76814
|
super(...args);
|
|
76511
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
76512
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
76815
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor64, this);
|
|
76816
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor65, this);
|
|
76513
76817
|
}
|
|
76514
|
-
}, (
|
|
76818
|
+
}, (_descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class142.prototype, "select", [_dec113], {
|
|
76515
76819
|
configurable: true,
|
|
76516
76820
|
enumerable: true,
|
|
76517
76821
|
writable: true,
|
|
76518
76822
|
initializer: null
|
|
76519
|
-
}),
|
|
76823
|
+
}), _descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class142.prototype, "type", [_dec114], {
|
|
76520
76824
|
configurable: true,
|
|
76521
76825
|
enumerable: true,
|
|
76522
76826
|
writable: true,
|
|
76523
76827
|
initializer: function () {
|
|
76524
76828
|
return "decimal";
|
|
76525
76829
|
}
|
|
76526
|
-
})),
|
|
76527
|
-
let FormulaArrayExpression = (
|
|
76830
|
+
})), _class142)) || _class141);
|
|
76831
|
+
let FormulaArrayExpression = (_dec115 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("array", `TODO`), _dec116 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec115(_class144 = (_class145 = class FormulaArrayExpression extends FormulaExpression {
|
|
76528
76832
|
constructor(...args) {
|
|
76529
76833
|
super(...args);
|
|
76530
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
76834
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor66, this);
|
|
76531
76835
|
}
|
|
76532
|
-
}, (
|
|
76836
|
+
}, (_descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "items", [_dec116], {
|
|
76533
76837
|
configurable: true,
|
|
76534
76838
|
enumerable: true,
|
|
76535
76839
|
writable: true,
|
|
76536
76840
|
initializer: null
|
|
76537
|
-
})),
|
|
76538
|
-
let FormulaFilterColumnExpression = (
|
|
76841
|
+
})), _class145)) || _class144);
|
|
76842
|
+
let FormulaFilterColumnExpression = (_dec117 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filtercolumn", `Получить значения пиклиста по фильру`), _dec118 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec117(_class147 = (_class148 = class FormulaFilterColumnExpression extends FormulaExpression {
|
|
76539
76843
|
constructor(...args) {
|
|
76540
76844
|
super(...args);
|
|
76541
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
76845
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor67, this);
|
|
76542
76846
|
}
|
|
76543
|
-
}, (
|
|
76847
|
+
}, (_descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class148.prototype, "filterColumn", [_dec118], {
|
|
76544
76848
|
configurable: true,
|
|
76545
76849
|
enumerable: true,
|
|
76546
76850
|
writable: true,
|
|
76547
76851
|
initializer: null
|
|
76548
|
-
})),
|
|
76549
|
-
let FormulaFilterKeyExpression = (
|
|
76852
|
+
})), _class148)) || _class147);
|
|
76853
|
+
let FormulaFilterKeyExpression = (_dec119 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filterkey", `Получить значения пиклиста по фильру`), _dec120 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec119(_class150 = (_class151 = class FormulaFilterKeyExpression extends FormulaExpression {
|
|
76550
76854
|
constructor(...args) {
|
|
76551
76855
|
super(...args);
|
|
76552
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
76856
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor68, this);
|
|
76553
76857
|
}
|
|
76554
|
-
}, (
|
|
76858
|
+
}, (_descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "filterKey", [_dec120], {
|
|
76555
76859
|
configurable: true,
|
|
76556
76860
|
enumerable: true,
|
|
76557
76861
|
writable: true,
|
|
76558
76862
|
initializer: null
|
|
76559
|
-
})),
|
|
76560
|
-
let FormulaGetPicklistValuesExpression = (
|
|
76863
|
+
})), _class151)) || _class150);
|
|
76864
|
+
let FormulaGetPicklistValuesExpression = (_dec121 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getpicklistvalues", `Получить значения пиклиста по фильру. Используется только для генерации FLANG. В калькуляторе не работает`), _dec122 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec123 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filtercolumn", [FormulaFilterColumnExpression]), _dec124 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filterkey", [FormulaFilterKeyExpression]), _dec125 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("resultColumn", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec121(_class153 = (_class154 = class FormulaGetPicklistValuesExpression extends FormulaExpression {
|
|
76561
76865
|
constructor(...args) {
|
|
76562
76866
|
super(...args);
|
|
76563
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
76564
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
76565
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
76566
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn",
|
|
76867
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor69, this);
|
|
76868
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor70, this);
|
|
76869
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor71, this);
|
|
76870
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn", _descriptor72, this);
|
|
76567
76871
|
}
|
|
76568
76872
|
getLegacyExpressionTypeForFunctionName() {
|
|
76569
76873
|
return "getPicklistValues";
|
|
76570
76874
|
}
|
|
76571
|
-
}, (
|
|
76875
|
+
}, (_descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class154.prototype, "gId", [_dec122], {
|
|
76572
76876
|
configurable: true,
|
|
76573
76877
|
enumerable: true,
|
|
76574
76878
|
writable: true,
|
|
76575
76879
|
initializer: null
|
|
76576
|
-
}),
|
|
76880
|
+
}), _descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class154.prototype, "filterColumn", [_dec123], {
|
|
76577
76881
|
configurable: true,
|
|
76578
76882
|
enumerable: true,
|
|
76579
76883
|
writable: true,
|
|
76580
76884
|
initializer: null
|
|
76581
|
-
}),
|
|
76885
|
+
}), _descriptor71 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class154.prototype, "filterKey", [_dec124], {
|
|
76582
76886
|
configurable: true,
|
|
76583
76887
|
enumerable: true,
|
|
76584
76888
|
writable: true,
|
|
76585
76889
|
initializer: null
|
|
76586
|
-
}),
|
|
76890
|
+
}), _descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class154.prototype, "resultColumn", [_dec125], {
|
|
76587
76891
|
configurable: true,
|
|
76588
76892
|
enumerable: true,
|
|
76589
76893
|
writable: true,
|
|
76590
76894
|
initializer: null
|
|
76591
|
-
})),
|
|
76592
|
-
let FormulaFirstOrDefaultExpression = (
|
|
76895
|
+
})), _class154)) || _class153);
|
|
76896
|
+
let FormulaFirstOrDefaultExpression = (_dec126 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("firstordefault", `Взять первый элемент массива. Используется только для генерации FLANG. В калькуляторе не работает`), _dec127 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec126(_class156 = (_class157 = class FormulaFirstOrDefaultExpression extends FormulaExpression {
|
|
76593
76897
|
constructor(...args) {
|
|
76594
76898
|
super(...args);
|
|
76595
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
76899
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor73, this);
|
|
76596
76900
|
}
|
|
76597
|
-
}, (
|
|
76901
|
+
}, (_descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class157.prototype, "expression", [_dec127], {
|
|
76598
76902
|
configurable: true,
|
|
76599
76903
|
enumerable: true,
|
|
76600
76904
|
writable: true,
|
|
76601
76905
|
initializer: null
|
|
76602
|
-
})),
|
|
76603
|
-
let FormulaExistsExpression = (
|
|
76906
|
+
})), _class157)) || _class156);
|
|
76907
|
+
let FormulaExistsExpression = (_dec128 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("exists", `TODO`), _dec129 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec128(_class159 = (_class160 = class FormulaExistsExpression extends FormulaExpression {
|
|
76604
76908
|
constructor(...args) {
|
|
76605
76909
|
super(...args);
|
|
76606
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
76910
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor74, this);
|
|
76607
76911
|
}
|
|
76608
76912
|
getLegacyExpressionTypeForFunctionName() {
|
|
76609
76913
|
return "exists";
|
|
76610
76914
|
}
|
|
76611
|
-
}, (
|
|
76915
|
+
}, (_descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class160.prototype, "select", [_dec129], {
|
|
76612
76916
|
configurable: true,
|
|
76613
76917
|
enumerable: true,
|
|
76614
76918
|
writable: true,
|
|
76615
76919
|
initializer: null
|
|
76616
|
-
})),
|
|
76617
|
-
let FormulaMultySumExpression = (
|
|
76920
|
+
})), _class160)) || _class159);
|
|
76921
|
+
let FormulaMultySumExpression = (_dec130 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multysum", `TODO`), _dec131 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec130(_class162 = (_class163 = class FormulaMultySumExpression extends FormulaExpression {
|
|
76618
76922
|
constructor(...args) {
|
|
76619
76923
|
super(...args);
|
|
76620
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
76924
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor75, this);
|
|
76621
76925
|
}
|
|
76622
|
-
}, (
|
|
76926
|
+
}, (_descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class163.prototype, "select", [_dec131], {
|
|
76623
76927
|
configurable: true,
|
|
76624
76928
|
enumerable: true,
|
|
76625
76929
|
writable: true,
|
|
76626
76930
|
initializer: null
|
|
76627
|
-
})),
|
|
76628
|
-
let FormulaCountExpression = (
|
|
76931
|
+
})), _class163)) || _class162);
|
|
76932
|
+
let FormulaCountExpression = (_dec132 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("count", `TODO`), _dec133 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec134 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("withNullOrEmptyValues", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `брать в расчет незаполненные экземпляры`), _dec132(_class165 = (_class166 = class FormulaCountExpression extends FormulaExpression {
|
|
76629
76933
|
constructor(...args) {
|
|
76630
76934
|
super(...args);
|
|
76631
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
76632
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
76935
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor76, this);
|
|
76936
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor77, this);
|
|
76633
76937
|
}
|
|
76634
|
-
}, (
|
|
76938
|
+
}, (_descriptor76 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class166.prototype, "select", [_dec133], {
|
|
76635
76939
|
configurable: true,
|
|
76636
76940
|
enumerable: true,
|
|
76637
76941
|
writable: true,
|
|
76638
76942
|
initializer: null
|
|
76639
|
-
}),
|
|
76943
|
+
}), _descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class166.prototype, "withNullOrEmptyValues", [_dec134], {
|
|
76640
76944
|
configurable: true,
|
|
76641
76945
|
enumerable: true,
|
|
76642
76946
|
writable: true,
|
|
76643
76947
|
initializer: null
|
|
76644
|
-
})),
|
|
76645
|
-
let FormulaConcatExpression = (
|
|
76948
|
+
})), _class166)) || _class165);
|
|
76949
|
+
let FormulaConcatExpression = (_dec135 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec136 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec135(_class168 = (_class169 = class FormulaConcatExpression extends FormulaExpression {
|
|
76646
76950
|
constructor(...args) {
|
|
76647
76951
|
super(...args);
|
|
76648
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
76952
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor78, this);
|
|
76649
76953
|
}
|
|
76650
|
-
}, (
|
|
76954
|
+
}, (_descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class169.prototype, "arguments", [_dec136], {
|
|
76651
76955
|
configurable: true,
|
|
76652
76956
|
enumerable: true,
|
|
76653
76957
|
writable: true,
|
|
76654
76958
|
initializer: null
|
|
76655
|
-
})),
|
|
76656
|
-
let FormulaNewLineExpression = (
|
|
76657
|
-
let Formula = (
|
|
76959
|
+
})), _class169)) || _class168);
|
|
76960
|
+
let FormulaNewLineExpression = (_dec137 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec137(_class171 = class FormulaNewLineExpression extends FormulaExpression {}) || _class171);
|
|
76961
|
+
let Formula = (_dec138 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec139 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec138(_class172 = (_class173 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
76658
76962
|
constructor(...args) {
|
|
76659
76963
|
super(...args);
|
|
76660
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
76661
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
76662
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
76964
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor79, this);
|
|
76965
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor80, this);
|
|
76966
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor81, this);
|
|
76663
76967
|
}
|
|
76664
|
-
}, (
|
|
76968
|
+
}, (_descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class173.prototype, "match", [_dec139], {
|
|
76665
76969
|
configurable: true,
|
|
76666
76970
|
enumerable: true,
|
|
76667
76971
|
writable: true,
|
|
76668
76972
|
initializer: null
|
|
76669
|
-
}),
|
|
76973
|
+
}), _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class173.prototype, "target", [_dec140], {
|
|
76670
76974
|
configurable: true,
|
|
76671
76975
|
enumerable: true,
|
|
76672
76976
|
writable: true,
|
|
76673
76977
|
initializer: null
|
|
76674
|
-
}),
|
|
76978
|
+
}), _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class173.prototype, "expression", [_dec141], {
|
|
76675
76979
|
configurable: true,
|
|
76676
76980
|
enumerable: true,
|
|
76677
76981
|
writable: true,
|
|
76678
76982
|
initializer: null
|
|
76679
|
-
})),
|
|
76680
|
-
let FormulaNoDepsNode = (
|
|
76983
|
+
})), _class173)) || _class172);
|
|
76984
|
+
let FormulaNoDepsNode = (_dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec142(_class175 = (_class176 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
76681
76985
|
constructor(...args) {
|
|
76682
76986
|
super(...args);
|
|
76683
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
76987
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor82, this);
|
|
76684
76988
|
}
|
|
76685
|
-
}, (
|
|
76989
|
+
}, (_descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class176.prototype, "expression", [_dec143], {
|
|
76686
76990
|
configurable: true,
|
|
76687
76991
|
enumerable: true,
|
|
76688
76992
|
writable: true,
|
|
76689
76993
|
initializer: null
|
|
76690
|
-
})),
|
|
76691
|
-
let Formulas = (
|
|
76994
|
+
})), _class176)) || _class175);
|
|
76995
|
+
let Formulas = (_dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec144(_class178 = (_class179 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
76692
76996
|
constructor(...args) {
|
|
76693
76997
|
super(...args);
|
|
76694
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
76998
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor83, this);
|
|
76695
76999
|
}
|
|
76696
|
-
}, (
|
|
77000
|
+
}, (_descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class179.prototype, "items", [_dec145], {
|
|
76697
77001
|
configurable: true,
|
|
76698
77002
|
enumerable: true,
|
|
76699
77003
|
writable: true,
|
|
76700
77004
|
initializer: null
|
|
76701
|
-
})),
|
|
76702
|
-
let ConditionNode = (
|
|
77005
|
+
})), _class179)) || _class178);
|
|
77006
|
+
let ConditionNode = (_dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec146(_class181 = (_class182 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
76703
77007
|
constructor(...args) {
|
|
76704
77008
|
super(...args);
|
|
76705
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
76706
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
76707
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
76708
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
76709
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
77009
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor84, this);
|
|
77010
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor85, this);
|
|
77011
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor86, this);
|
|
77012
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor87, this);
|
|
77013
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor88, this);
|
|
76710
77014
|
}
|
|
76711
|
-
}, (
|
|
77015
|
+
}, (_descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class182.prototype, "match", [_dec147], {
|
|
76712
77016
|
configurable: true,
|
|
76713
77017
|
enumerable: true,
|
|
76714
77018
|
writable: true,
|
|
76715
77019
|
initializer: null
|
|
76716
|
-
}),
|
|
77020
|
+
}), _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class182.prototype, "target", [_dec148], {
|
|
76717
77021
|
configurable: true,
|
|
76718
77022
|
enumerable: true,
|
|
76719
77023
|
writable: true,
|
|
76720
77024
|
initializer: null
|
|
76721
|
-
}),
|
|
77025
|
+
}), _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class182.prototype, "description", [_dec149], {
|
|
76722
77026
|
configurable: true,
|
|
76723
77027
|
enumerable: true,
|
|
76724
77028
|
writable: true,
|
|
76725
77029
|
initializer: null
|
|
76726
|
-
}),
|
|
77030
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class182.prototype, "errorLevel", [_dec150], {
|
|
76727
77031
|
configurable: true,
|
|
76728
77032
|
enumerable: true,
|
|
76729
77033
|
writable: true,
|
|
76730
77034
|
initializer: null
|
|
76731
|
-
}),
|
|
77035
|
+
}), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class182.prototype, "expression", [_dec151], {
|
|
76732
77036
|
configurable: true,
|
|
76733
77037
|
enumerable: true,
|
|
76734
77038
|
writable: true,
|
|
76735
77039
|
initializer: null
|
|
76736
|
-
})),
|
|
76737
|
-
let ConditionsNode = (
|
|
77040
|
+
})), _class182)) || _class181);
|
|
77041
|
+
let ConditionsNode = (_dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec152(_class184 = (_class185 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
76738
77042
|
constructor(...args) {
|
|
76739
77043
|
super(...args);
|
|
76740
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
77044
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor89, this);
|
|
76741
77045
|
}
|
|
76742
|
-
}, (
|
|
77046
|
+
}, (_descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class185.prototype, "items", [_dec153], {
|
|
76743
77047
|
configurable: true,
|
|
76744
77048
|
enumerable: true,
|
|
76745
77049
|
writable: true,
|
|
76746
77050
|
initializer: null
|
|
76747
|
-
})),
|
|
76748
|
-
let MathContainer = (
|
|
77051
|
+
})), _class185)) || _class184);
|
|
77052
|
+
let MathContainer = (_dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec154(_class187 = (_class188 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
76749
77053
|
constructor(...args) {
|
|
76750
77054
|
super(...args);
|
|
76751
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
76752
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
77055
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor90, this);
|
|
77056
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor91, this);
|
|
76753
77057
|
}
|
|
76754
|
-
}, (
|
|
77058
|
+
}, (_descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class188.prototype, "formulas", [_dec155], {
|
|
76755
77059
|
configurable: true,
|
|
76756
77060
|
enumerable: true,
|
|
76757
77061
|
writable: true,
|
|
76758
77062
|
initializer: null
|
|
76759
|
-
}),
|
|
77063
|
+
}), _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class188.prototype, "conditions", [_dec156], {
|
|
76760
77064
|
configurable: true,
|
|
76761
77065
|
enumerable: true,
|
|
76762
77066
|
writable: true,
|
|
76763
77067
|
initializer: null
|
|
76764
|
-
})),
|
|
76765
|
-
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, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaDateTimeExpression, FormulaIsSnilsExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode];
|
|
77068
|
+
})), _class188)) || _class187);
|
|
77069
|
+
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, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaIsSnilsExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode];
|
|
76766
77070
|
|
|
76767
77071
|
/***/ }),
|
|
76768
77072
|
|
|
@@ -78846,6 +79150,14 @@ class KCXmlGeneratorBase {
|
|
|
78846
79150
|
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
78847
79151
|
return gcf(x => x.getDay, compiledArgument);
|
|
78848
79152
|
}
|
|
79153
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetMonthExpression) {
|
|
79154
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79155
|
+
return gcf(x => x.getMonth, compiledArgument);
|
|
79156
|
+
}
|
|
79157
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetYearExpression) {
|
|
79158
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79159
|
+
return gcf(x => x.getYear, compiledArgument);
|
|
79160
|
+
}
|
|
78849
79161
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsDateExpression) {
|
|
78850
79162
|
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
78851
79163
|
return gcf(x => x.isDate, compiledArgument);
|
|
@@ -78860,6 +79172,22 @@ class KCXmlGeneratorBase {
|
|
|
78860
79172
|
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
78861
79173
|
return gcf(x => x.differenceInDays, `[${compiledExpressions}]`);
|
|
78862
79174
|
}
|
|
79175
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddDaysExpression) {
|
|
79176
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79177
|
+
return gcf(x => x.addDays, `${path}, ${expression.amount}`);
|
|
79178
|
+
}
|
|
79179
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddMonthsExpression) {
|
|
79180
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79181
|
+
return gcf(x => x.addMonths, `${path}, ${expression.amount}`);
|
|
79182
|
+
}
|
|
79183
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddYearsExpression) {
|
|
79184
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79185
|
+
return gcf(x => x.addYears, `${path}, ${expression.amount}`);
|
|
79186
|
+
}
|
|
79187
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateToStringExpression) {
|
|
79188
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79189
|
+
return gcf(x => x.dateToString, `${path}, "${!!expression.format ? expression.format : "dd.MM.yyyy"}"`);
|
|
79190
|
+
}
|
|
78863
79191
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateTimeExpression) {
|
|
78864
79192
|
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
78865
79193
|
return gcf(x => x.dateTime, compiledArgument);
|
|
@@ -80395,6 +80723,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80395
80723
|
/* harmony export */ "FloorExpression": () => (/* binding */ FloorExpression),
|
|
80396
80724
|
/* harmony export */ "GetDaysInMonthExpression": () => (/* binding */ GetDaysInMonthExpression),
|
|
80397
80725
|
/* harmony export */ "GetDayExpression": () => (/* binding */ GetDayExpression),
|
|
80726
|
+
/* harmony export */ "GetMonthExpression": () => (/* binding */ GetMonthExpression),
|
|
80727
|
+
/* harmony export */ "GetYearExpression": () => (/* binding */ GetYearExpression),
|
|
80398
80728
|
/* harmony export */ "IsDateExpression": () => (/* binding */ IsDateExpression),
|
|
80399
80729
|
/* harmony export */ "DifferenceInMonthsExpression": () => (/* binding */ DifferenceInMonthsExpression),
|
|
80400
80730
|
/* harmony export */ "DifferenceInDaysExpression": () => (/* binding */ DifferenceInDaysExpression),
|
|
@@ -80408,6 +80738,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80408
80738
|
/* harmony export */ "NullLiteralExpression": () => (/* binding */ NullLiteralExpression),
|
|
80409
80739
|
/* harmony export */ "ConditionalExpression": () => (/* binding */ ConditionalExpression),
|
|
80410
80740
|
/* harmony export */ "DateNowExpression": () => (/* binding */ DateNowExpression),
|
|
80741
|
+
/* harmony export */ "AddDaysExpression": () => (/* binding */ AddDaysExpression),
|
|
80742
|
+
/* harmony export */ "AddMonthsExpression": () => (/* binding */ AddMonthsExpression),
|
|
80743
|
+
/* harmony export */ "AddYearsExpression": () => (/* binding */ AddYearsExpression),
|
|
80744
|
+
/* harmony export */ "DateToStringExpression": () => (/* binding */ DateToStringExpression),
|
|
80411
80745
|
/* harmony export */ "GetPicklistValuesExpression": () => (/* binding */ GetPicklistValuesExpression),
|
|
80412
80746
|
/* harmony export */ "FirstOrDefaultExpression": () => (/* binding */ FirstOrDefaultExpression),
|
|
80413
80747
|
/* harmony export */ "ArrayExpression": () => (/* binding */ ArrayExpression),
|
|
@@ -81061,6 +81395,32 @@ class GetDayExpression extends FLangDecimalExpression {
|
|
|
81061
81395
|
return `getDay(${this.expression.convertToString()})`;
|
|
81062
81396
|
}
|
|
81063
81397
|
}
|
|
81398
|
+
class GetMonthExpression extends FLangDecimalExpression {
|
|
81399
|
+
constructor(expression) {
|
|
81400
|
+
super();
|
|
81401
|
+
this.expression = void 0;
|
|
81402
|
+
this.expression = expression;
|
|
81403
|
+
}
|
|
81404
|
+
*getChildNodes() {
|
|
81405
|
+
yield this.expression;
|
|
81406
|
+
}
|
|
81407
|
+
convertToString() {
|
|
81408
|
+
return `getMonth(${this.expression.convertToString()})`;
|
|
81409
|
+
}
|
|
81410
|
+
}
|
|
81411
|
+
class GetYearExpression extends FLangDecimalExpression {
|
|
81412
|
+
constructor(expression) {
|
|
81413
|
+
super();
|
|
81414
|
+
this.expression = void 0;
|
|
81415
|
+
this.expression = expression;
|
|
81416
|
+
}
|
|
81417
|
+
*getChildNodes() {
|
|
81418
|
+
yield this.expression;
|
|
81419
|
+
}
|
|
81420
|
+
convertToString() {
|
|
81421
|
+
return `getYear(${this.expression.convertToString()})`;
|
|
81422
|
+
}
|
|
81423
|
+
}
|
|
81064
81424
|
class IsDateExpression extends FLangDecimalExpression {
|
|
81065
81425
|
constructor(expression) {
|
|
81066
81426
|
super();
|
|
@@ -81256,6 +81616,78 @@ class DateNowExpression extends DateTimeExpression {
|
|
|
81256
81616
|
return `dateNow()`;
|
|
81257
81617
|
}
|
|
81258
81618
|
}
|
|
81619
|
+
class AddDaysExpression extends DateTimeExpression {
|
|
81620
|
+
constructor(expression, amount) {
|
|
81621
|
+
super();
|
|
81622
|
+
this.expression = void 0;
|
|
81623
|
+
this.amount = void 0;
|
|
81624
|
+
this.expression = expression;
|
|
81625
|
+
this.amount = amount;
|
|
81626
|
+
}
|
|
81627
|
+
*getChildNodes() {
|
|
81628
|
+
yield this.expression;
|
|
81629
|
+
yield this.amount;
|
|
81630
|
+
}
|
|
81631
|
+
convertToString() {
|
|
81632
|
+
const expression = this.expression.convertToString();
|
|
81633
|
+
const amount = this.amount.convertToString();
|
|
81634
|
+
return `addDays(${expression}, ${amount})`;
|
|
81635
|
+
}
|
|
81636
|
+
}
|
|
81637
|
+
class AddMonthsExpression extends DateTimeExpression {
|
|
81638
|
+
constructor(expression, amount) {
|
|
81639
|
+
super();
|
|
81640
|
+
this.expression = void 0;
|
|
81641
|
+
this.amount = void 0;
|
|
81642
|
+
this.expression = expression;
|
|
81643
|
+
this.amount = amount;
|
|
81644
|
+
}
|
|
81645
|
+
*getChildNodes() {
|
|
81646
|
+
yield this.expression;
|
|
81647
|
+
yield this.amount;
|
|
81648
|
+
}
|
|
81649
|
+
convertToString() {
|
|
81650
|
+
const expression = this.expression.convertToString();
|
|
81651
|
+
const amount = this.amount.convertToString();
|
|
81652
|
+
return `addMonths(${expression}, ${amount})`;
|
|
81653
|
+
}
|
|
81654
|
+
}
|
|
81655
|
+
class AddYearsExpression extends DateTimeExpression {
|
|
81656
|
+
constructor(expression, amount) {
|
|
81657
|
+
super();
|
|
81658
|
+
this.expression = void 0;
|
|
81659
|
+
this.amount = void 0;
|
|
81660
|
+
this.expression = expression;
|
|
81661
|
+
this.amount = amount;
|
|
81662
|
+
}
|
|
81663
|
+
*getChildNodes() {
|
|
81664
|
+
yield this.expression;
|
|
81665
|
+
yield this.amount;
|
|
81666
|
+
}
|
|
81667
|
+
convertToString() {
|
|
81668
|
+
const expression = this.expression.convertToString();
|
|
81669
|
+
const amount = this.amount.convertToString();
|
|
81670
|
+
return `addYears(${expression}, ${amount})`;
|
|
81671
|
+
}
|
|
81672
|
+
}
|
|
81673
|
+
class DateToStringExpression extends FLangStringExpression {
|
|
81674
|
+
constructor(expression, format) {
|
|
81675
|
+
super();
|
|
81676
|
+
this.expression = void 0;
|
|
81677
|
+
this.format = void 0;
|
|
81678
|
+
this.expression = expression;
|
|
81679
|
+
this.format = format;
|
|
81680
|
+
}
|
|
81681
|
+
*getChildNodes() {
|
|
81682
|
+
yield this.expression;
|
|
81683
|
+
yield this.format;
|
|
81684
|
+
}
|
|
81685
|
+
convertToString() {
|
|
81686
|
+
const expression = this.expression.convertToString();
|
|
81687
|
+
const format = this.format.convertToString();
|
|
81688
|
+
return `dateToString(${expression}, ${format})`;
|
|
81689
|
+
}
|
|
81690
|
+
}
|
|
81259
81691
|
class GetPicklistValuesExpression extends FLangExpression {
|
|
81260
81692
|
constructor(gid, filterColumn, filterKey, columns) {
|
|
81261
81693
|
super();
|
|
@@ -81508,6 +81940,9 @@ function tryExtractValueReferenceAsStringFromDecimal(expression) {
|
|
|
81508
81940
|
return expression;
|
|
81509
81941
|
}
|
|
81510
81942
|
function castOperandToStringIfNeed(operandExpression, format) {
|
|
81943
|
+
if (operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.DateTimeExpression || operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.DateNowExpression) {
|
|
81944
|
+
return new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.DateToStringExpression(operandExpression, new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.StringLiteralExpression("dd.MM.yyyy"));
|
|
81945
|
+
}
|
|
81511
81946
|
return operandExpression.getType() != _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.BuildInTypeExpression.string ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.CastExpression(operandExpression, _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.BuildInTypeExpression.string, format != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.StringLiteralExpression(format) : undefined) : operandExpression;
|
|
81512
81947
|
}
|
|
81513
81948
|
function castOperandToBoolIfNeed(operandExpression) {
|
|
@@ -81846,30 +82281,30 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81846
82281
|
}
|
|
81847
82282
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGtExpression) {
|
|
81848
82283
|
const leftOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[0], prefix, target, addPrecalculationRule);
|
|
81849
|
-
const left = expression.arguments[0]
|
|
82284
|
+
const left = this.castOperandForComparisonExpression(expression.arguments[0], leftOperandExpression);
|
|
81850
82285
|
const rightOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[1], prefix, target, addPrecalculationRule);
|
|
81851
|
-
const right = expression.arguments[1]
|
|
82286
|
+
const right = this.castOperandForComparisonExpression(expression.arguments[1], rightOperandExpression);
|
|
81852
82287
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.GtExpression(left, right);
|
|
81853
82288
|
}
|
|
81854
82289
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLtExpression) {
|
|
81855
82290
|
const leftOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[0], prefix, target, addPrecalculationRule);
|
|
81856
|
-
const left = expression.arguments[0]
|
|
82291
|
+
const left = this.castOperandForComparisonExpression(expression.arguments[0], leftOperandExpression);
|
|
81857
82292
|
const rightOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[1], prefix, target, addPrecalculationRule);
|
|
81858
|
-
const right = expression.arguments[1]
|
|
82293
|
+
const right = this.castOperandForComparisonExpression(expression.arguments[1], rightOperandExpression);
|
|
81859
82294
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.LtExpression(left, right);
|
|
81860
82295
|
}
|
|
81861
82296
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGeExpression) {
|
|
81862
82297
|
const leftOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[0], prefix, target, addPrecalculationRule);
|
|
81863
|
-
const left = expression.arguments[0]
|
|
82298
|
+
const left = this.castOperandForComparisonExpression(expression.arguments[0], leftOperandExpression);
|
|
81864
82299
|
const rightOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[1], prefix, target, addPrecalculationRule);
|
|
81865
|
-
const right = expression.arguments[1]
|
|
82300
|
+
const right = this.castOperandForComparisonExpression(expression.arguments[1], rightOperandExpression);
|
|
81866
82301
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.GeExpression(left, right);
|
|
81867
82302
|
}
|
|
81868
82303
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLeExpression) {
|
|
81869
82304
|
const leftOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[0], prefix, target, addPrecalculationRule);
|
|
81870
|
-
const left = expression.arguments[0]
|
|
82305
|
+
const left = this.castOperandForComparisonExpression(expression.arguments[0], leftOperandExpression);
|
|
81871
82306
|
const rightOperandExpression = this.compileExpressionToFlangExpressionInternal(expression.arguments[1], prefix, target, addPrecalculationRule);
|
|
81872
|
-
const right = expression.arguments[1]
|
|
82307
|
+
const right = this.castOperandForComparisonExpression(expression.arguments[1], rightOperandExpression);
|
|
81873
82308
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.LeExpression(left, right);
|
|
81874
82309
|
}
|
|
81875
82310
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaEqExpression) {
|
|
@@ -81923,6 +82358,12 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81923
82358
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGetDayExpression) {
|
|
81924
82359
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.GetDayExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
81925
82360
|
}
|
|
82361
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGetMonthExpression) {
|
|
82362
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.GetMonthExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
82363
|
+
}
|
|
82364
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGetYearExpression) {
|
|
82365
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.GetYearExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
82366
|
+
}
|
|
81926
82367
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsDateExpression) {
|
|
81927
82368
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.IsDateExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
81928
82369
|
}
|
|
@@ -81934,6 +82375,19 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81934
82375
|
const expressions = expression.arguments.map(x => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(x, prefix, target, addPrecalculationRule)));
|
|
81935
82376
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DifferenceInDaysExpression(expressions);
|
|
81936
82377
|
}
|
|
82378
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaAddDaysExpression) {
|
|
82379
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AddDaysExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DecimalLiteralExpression(expression.amount));
|
|
82380
|
+
}
|
|
82381
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaAddMonthsExpression) {
|
|
82382
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AddMonthsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DecimalLiteralExpression(expression.amount));
|
|
82383
|
+
}
|
|
82384
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaAddYearsExpression) {
|
|
82385
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AddYearsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DecimalLiteralExpression(expression.amount));
|
|
82386
|
+
}
|
|
82387
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateToStringExpression) {
|
|
82388
|
+
var _expression$format;
|
|
82389
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DateToStringExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.StringLiteralExpression((_expression$format = expression.format) !== null && _expression$format !== void 0 ? _expression$format : "dd.MM.yyyy"));
|
|
82390
|
+
}
|
|
81937
82391
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateTimeExpression) {
|
|
81938
82392
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.CastExpression(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dateTime);
|
|
81939
82393
|
}
|
|
@@ -81980,6 +82434,12 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81980
82434
|
}
|
|
81981
82435
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}`);
|
|
81982
82436
|
}
|
|
82437
|
+
castOperandForComparisonExpression(formulaExpression, flangExpression) {
|
|
82438
|
+
if (formulaExpression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateTimeExpression || formulaExpression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateNowExpression) {
|
|
82439
|
+
return flangExpression;
|
|
82440
|
+
}
|
|
82441
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDecimalIfNeed)(flangExpression);
|
|
82442
|
+
}
|
|
81983
82443
|
compileEqExpression(prefix, target, expression, addPrecalculationRule) {
|
|
81984
82444
|
const left = this.compileExpressionToFlangExpressionInternal(expression.arguments[0], prefix, target, addPrecalculationRule);
|
|
81985
82445
|
const right = this.compileExpressionToFlangExpressionInternal(expression.arguments[1], prefix, target, addPrecalculationRule);
|