@kontur.candy/generator 6.32.0 → 6.33.0-fs-9498-delete-doBuildNodeValidations.0
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 +808 -714
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109367,7 +109367,8 @@ IterUtils.concat = concat;
|
|
|
109367
109367
|
"use strict";
|
|
109368
109368
|
__webpack_require__.r(__webpack_exports__);
|
|
109369
109369
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
109370
|
-
/* harmony export */ KCLangRuntimeUtils: () => (/* binding */ KCLangRuntimeUtils)
|
|
109370
|
+
/* harmony export */ KCLangRuntimeUtils: () => (/* binding */ KCLangRuntimeUtils),
|
|
109371
|
+
/* harmony export */ assertValidRegexFlags: () => (/* binding */ assertValidRegexFlags)
|
|
109371
109372
|
/* harmony export */ });
|
|
109372
109373
|
/* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.mjs");
|
|
109373
109374
|
/* harmony import */ var _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Engine/src/Engine/ValidationHelper/ValidationHelper */ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts");
|
|
@@ -109379,6 +109380,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
109379
109380
|
|
|
109380
109381
|
|
|
109381
109382
|
|
|
109383
|
+
const ALLOWED_FLAGS = "ims";
|
|
109384
|
+
function assertValidRegexFlags(flags = "") {
|
|
109385
|
+
for (const flag of flags) {
|
|
109386
|
+
if (!ALLOWED_FLAGS.includes(flag)) {
|
|
109387
|
+
throw new Error(`Unknown regex flag: ${flag}`);
|
|
109388
|
+
}
|
|
109389
|
+
}
|
|
109390
|
+
}
|
|
109382
109391
|
const isBigSource = value => {
|
|
109383
109392
|
if (typeof value === "number" || typeof value === "string" || value instanceof big_js__WEBPACK_IMPORTED_MODULE_0__["default"]) {
|
|
109384
109393
|
return true;
|
|
@@ -109609,24 +109618,18 @@ class KCLangRuntimeUtils {
|
|
|
109609
109618
|
}
|
|
109610
109619
|
return undefined;
|
|
109611
109620
|
}
|
|
109612
|
-
regexMatch(pattern, value) {
|
|
109613
|
-
if (pattern == undefined || value
|
|
109621
|
+
regexMatch(pattern, value, flags) {
|
|
109622
|
+
if (pattern == undefined || typeof value !== "string") {
|
|
109614
109623
|
return undefined;
|
|
109615
109624
|
}
|
|
109616
|
-
|
|
109617
|
-
|
|
109618
|
-
}
|
|
109619
|
-
return undefined;
|
|
109625
|
+
assertValidRegexFlags(flags);
|
|
109626
|
+
return new RegExp(pattern, flags).test(value);
|
|
109620
109627
|
}
|
|
109621
109628
|
regexReplace(value, pattern, replacement, flags) {
|
|
109622
109629
|
if (pattern == undefined || value == undefined || replacement == undefined || typeof value !== "string") {
|
|
109623
109630
|
return undefined;
|
|
109624
109631
|
}
|
|
109625
|
-
|
|
109626
|
-
if (!"ims".includes(flag)) {
|
|
109627
|
-
throw new Error(`Unknown regex flag: ${flag}`);
|
|
109628
|
-
}
|
|
109629
|
-
}
|
|
109632
|
+
assertValidRegexFlags(flags);
|
|
109630
109633
|
const effectiveFlags = flags !== null && flags !== void 0 && flags.includes("g") ? flags : (flags !== null && flags !== void 0 ? flags : "") + "g";
|
|
109631
109634
|
return value.replace(new RegExp(pattern, effectiveFlags), replacement);
|
|
109632
109635
|
}
|
|
@@ -120859,6 +120862,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
120859
120862
|
/* harmony export */ getDateTimeTicksKCLangFunction: () => (/* binding */ getDateTimeTicksKCLangFunction),
|
|
120860
120863
|
/* harmony export */ getDayKCLangFunction: () => (/* binding */ getDayKCLangFunction),
|
|
120861
120864
|
/* harmony export */ getDaysInMonthKCLangFunction: () => (/* binding */ getDaysInMonthKCLangFunction),
|
|
120865
|
+
/* harmony export */ getExternalInfoKCLangFunction: () => (/* binding */ getExternalInfoKCLangFunction),
|
|
120862
120866
|
/* harmony export */ getMonthKCLangFunction: () => (/* binding */ getMonthKCLangFunction),
|
|
120863
120867
|
/* harmony export */ getPicklistValuesKCLangFunction: () => (/* binding */ getPicklistValuesKCLangFunction),
|
|
120864
120868
|
/* harmony export */ getSumByKeysKCLangFunction: () => (/* binding */ getSumByKeysKCLangFunction),
|
|
@@ -120963,32 +120967,49 @@ const xabsKCLangFunction = params => {
|
|
|
120963
120967
|
};
|
|
120964
120968
|
};
|
|
120965
120969
|
const regexMatchKCLangFunction = params => {
|
|
120966
|
-
var _params$4, _params$5;
|
|
120967
|
-
const errors = Array.from(validateParams(params, 2));
|
|
120970
|
+
var _params$4, _params$5, _params$6;
|
|
120971
|
+
const errors = Array.from(validateParams(params, 2, 1));
|
|
120968
120972
|
if (errors.length > 0) {
|
|
120969
120973
|
return new FunctionValidationErrorCollection(errors);
|
|
120970
120974
|
}
|
|
120971
120975
|
const expr = (_params$4 = params[0]) === null || _params$4 === void 0 ? void 0 : _params$4.value;
|
|
120972
120976
|
const pattern = (_params$5 = params[1]) === null || _params$5 === void 0 || (_params$5 = _params$5.value) === null || _params$5 === void 0 || (_params$5 = _params$5.value) === null || _params$5 === void 0 ? void 0 : _params$5.value;
|
|
120977
|
+
const flags = (_params$6 = params[2]) === null || _params$6 === void 0 || (_params$6 = _params$6.value) === null || _params$6 === void 0 || (_params$6 = _params$6.value) === null || _params$6 === void 0 ? void 0 : _params$6.value;
|
|
120973
120978
|
if (expr == undefined || pattern == undefined) {
|
|
120974
120979
|
throw new Error("Unexpected error!");
|
|
120975
120980
|
}
|
|
120976
120981
|
return {
|
|
120977
120982
|
type: "regexMatch",
|
|
120978
120983
|
expression: expr,
|
|
120979
|
-
pattern: pattern
|
|
120984
|
+
pattern: pattern,
|
|
120985
|
+
flags: flags
|
|
120986
|
+
};
|
|
120987
|
+
};
|
|
120988
|
+
const getExternalInfoKCLangFunction = params => {
|
|
120989
|
+
var _params$7;
|
|
120990
|
+
const errors = Array.from(validateParams(params, 1));
|
|
120991
|
+
if (errors.length > 0) {
|
|
120992
|
+
return new FunctionValidationErrorCollection(errors);
|
|
120993
|
+
}
|
|
120994
|
+
const key = (_params$7 = params[0]) === null || _params$7 === void 0 ? void 0 : _params$7.value;
|
|
120995
|
+
if (key == undefined) {
|
|
120996
|
+
throw new Error("Unexpected error!");
|
|
120997
|
+
}
|
|
120998
|
+
return {
|
|
120999
|
+
type: "getExternalInfo",
|
|
121000
|
+
key: key
|
|
120980
121001
|
};
|
|
120981
121002
|
};
|
|
120982
121003
|
const regexReplaceKCLangFunction = params => {
|
|
120983
|
-
var _params$
|
|
121004
|
+
var _params$8, _params$9, _params$10, _params$11;
|
|
120984
121005
|
const errors = Array.from(validateParams(params, 3, 1));
|
|
120985
121006
|
if (errors.length > 0) {
|
|
120986
121007
|
return new FunctionValidationErrorCollection(errors);
|
|
120987
121008
|
}
|
|
120988
|
-
const expr = (_params$
|
|
120989
|
-
const pattern = (_params$
|
|
120990
|
-
const replacement = (_params$
|
|
120991
|
-
const flags = (_params$
|
|
121009
|
+
const expr = (_params$8 = params[0]) === null || _params$8 === void 0 ? void 0 : _params$8.value;
|
|
121010
|
+
const pattern = (_params$9 = params[1]) === null || _params$9 === void 0 || (_params$9 = _params$9.value) === null || _params$9 === void 0 || (_params$9 = _params$9.value) === null || _params$9 === void 0 ? void 0 : _params$9.value;
|
|
121011
|
+
const replacement = (_params$10 = params[2]) === null || _params$10 === void 0 || (_params$10 = _params$10.value) === null || _params$10 === void 0 || (_params$10 = _params$10.value) === null || _params$10 === void 0 ? void 0 : _params$10.value;
|
|
121012
|
+
const flags = (_params$11 = params[3]) === null || _params$11 === void 0 || (_params$11 = _params$11.value) === null || _params$11 === void 0 || (_params$11 = _params$11.value) === null || _params$11 === void 0 ? void 0 : _params$11.value;
|
|
120992
121013
|
if (expr == undefined || pattern == undefined || replacement == undefined) {
|
|
120993
121014
|
throw new Error("Unexpected error!");
|
|
120994
121015
|
}
|
|
@@ -121001,13 +121022,13 @@ const regexReplaceKCLangFunction = params => {
|
|
|
121001
121022
|
};
|
|
121002
121023
|
};
|
|
121003
121024
|
const roundKCLangFunction = params => {
|
|
121004
|
-
var _params$
|
|
121025
|
+
var _params$12, _params$13;
|
|
121005
121026
|
const errors = Array.from(validateParams(params, 1, 1));
|
|
121006
121027
|
if (errors.length > 0) {
|
|
121007
121028
|
return new FunctionValidationErrorCollection(errors);
|
|
121008
121029
|
}
|
|
121009
|
-
const expr = (_params$
|
|
121010
|
-
const fractional = Number.parseInt((_params$
|
|
121030
|
+
const expr = (_params$12 = params[0]) === null || _params$12 === void 0 ? void 0 : _params$12.value;
|
|
121031
|
+
const fractional = Number.parseInt((_params$13 = params[1]) === null || _params$13 === void 0 || (_params$13 = _params$13.value) === null || _params$13 === void 0 || (_params$13 = _params$13.value) === null || _params$13 === void 0 ? void 0 : _params$13.value, 10);
|
|
121011
121032
|
if (expr == undefined || fractional == undefined) {
|
|
121012
121033
|
throw new Error("Unexpected error!");
|
|
121013
121034
|
}
|
|
@@ -121018,12 +121039,12 @@ const roundKCLangFunction = params => {
|
|
|
121018
121039
|
};
|
|
121019
121040
|
};
|
|
121020
121041
|
const floorKCLangFunction = params => {
|
|
121021
|
-
var _params$
|
|
121042
|
+
var _params$14;
|
|
121022
121043
|
const errors = Array.from(validateParams(params, 1, 1));
|
|
121023
121044
|
if (errors.length > 0) {
|
|
121024
121045
|
return new FunctionValidationErrorCollection(errors);
|
|
121025
121046
|
}
|
|
121026
|
-
const expr = (_params$
|
|
121047
|
+
const expr = (_params$14 = params[0]) === null || _params$14 === void 0 ? void 0 : _params$14.value;
|
|
121027
121048
|
if (expr == undefined) {
|
|
121028
121049
|
throw new Error("Unexpected error!");
|
|
121029
121050
|
}
|
|
@@ -121033,12 +121054,12 @@ const floorKCLangFunction = params => {
|
|
|
121033
121054
|
};
|
|
121034
121055
|
};
|
|
121035
121056
|
const existsKCLangFunction = params => {
|
|
121036
|
-
var _params$
|
|
121057
|
+
var _params$15;
|
|
121037
121058
|
const errors = Array.from(validateParams(params, 1));
|
|
121038
121059
|
if (errors.length > 0) {
|
|
121039
121060
|
return new FunctionValidationErrorCollection(errors);
|
|
121040
121061
|
}
|
|
121041
|
-
const argumentExpr = (_params$
|
|
121062
|
+
const argumentExpr = (_params$15 = params[0]) === null || _params$15 === void 0 ? void 0 : _params$15.value;
|
|
121042
121063
|
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
121043
121064
|
const param = argumentExpr.select;
|
|
121044
121065
|
if (param == undefined) {
|
|
@@ -121052,48 +121073,48 @@ const existsKCLangFunction = params => {
|
|
|
121052
121073
|
throw new Error("Invalid parameters!");
|
|
121053
121074
|
};
|
|
121054
121075
|
const isSnilsKCLangFunction = params => {
|
|
121055
|
-
var _params$0$value, _params$
|
|
121076
|
+
var _params$0$value, _params$16;
|
|
121056
121077
|
const errors = Array.from(validateParams(params, 1));
|
|
121057
121078
|
if (errors.length > 0) {
|
|
121058
121079
|
return new FunctionValidationErrorCollection(errors);
|
|
121059
121080
|
}
|
|
121060
|
-
const argumentExpr = (_params$0$value = (_params$
|
|
121081
|
+
const argumentExpr = (_params$0$value = (_params$16 = params[0]) === null || _params$16 === void 0 ? void 0 : _params$16.value) !== null && _params$0$value !== void 0 ? _params$0$value : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121061
121082
|
return {
|
|
121062
121083
|
type: "isSnils",
|
|
121063
121084
|
expression: argumentExpr
|
|
121064
121085
|
};
|
|
121065
121086
|
};
|
|
121066
121087
|
const isRegNumSfrKCLangFunction = params => {
|
|
121067
|
-
var _params$0$value2, _params$
|
|
121088
|
+
var _params$0$value2, _params$17;
|
|
121068
121089
|
const errors = Array.from(validateParams(params, 1));
|
|
121069
121090
|
if (errors.length > 0) {
|
|
121070
121091
|
return new FunctionValidationErrorCollection(errors);
|
|
121071
121092
|
}
|
|
121072
|
-
const argumentExpr = (_params$0$value2 = (_params$
|
|
121093
|
+
const argumentExpr = (_params$0$value2 = (_params$17 = params[0]) === null || _params$17 === void 0 ? void 0 : _params$17.value) !== null && _params$0$value2 !== void 0 ? _params$0$value2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121073
121094
|
return {
|
|
121074
121095
|
type: "isRegNumSfr",
|
|
121075
121096
|
expression: argumentExpr
|
|
121076
121097
|
};
|
|
121077
121098
|
};
|
|
121078
121099
|
const isInnKCLangFunction = params => {
|
|
121079
|
-
var _params$0$value3, _params$
|
|
121100
|
+
var _params$0$value3, _params$18;
|
|
121080
121101
|
const errors = Array.from(validateParams(params, 1));
|
|
121081
121102
|
if (errors.length > 0) {
|
|
121082
121103
|
return new FunctionValidationErrorCollection(errors);
|
|
121083
121104
|
}
|
|
121084
|
-
const argumentExpr = (_params$0$value3 = (_params$
|
|
121105
|
+
const argumentExpr = (_params$0$value3 = (_params$18 = params[0]) === null || _params$18 === void 0 ? void 0 : _params$18.value) !== null && _params$0$value3 !== void 0 ? _params$0$value3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121085
121106
|
return {
|
|
121086
121107
|
type: "isInn",
|
|
121087
121108
|
expression: argumentExpr
|
|
121088
121109
|
};
|
|
121089
121110
|
};
|
|
121090
121111
|
const isOgrnKCLangFunction = params => {
|
|
121091
|
-
var _params$0$value4, _params$
|
|
121112
|
+
var _params$0$value4, _params$19;
|
|
121092
121113
|
const errors = Array.from(validateParams(params, 1));
|
|
121093
121114
|
if (errors.length > 0) {
|
|
121094
121115
|
return new FunctionValidationErrorCollection(errors);
|
|
121095
121116
|
}
|
|
121096
|
-
const argumentExpr = (_params$0$value4 = (_params$
|
|
121117
|
+
const argumentExpr = (_params$0$value4 = (_params$19 = params[0]) === null || _params$19 === void 0 ? void 0 : _params$19.value) !== null && _params$0$value4 !== void 0 ? _params$0$value4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121097
121118
|
return {
|
|
121098
121119
|
type: "isOgrn",
|
|
121099
121120
|
expression: argumentExpr
|
|
@@ -121110,12 +121131,12 @@ const arrayKCLangFunction = params => {
|
|
|
121110
121131
|
};
|
|
121111
121132
|
};
|
|
121112
121133
|
const firstOrDefaultKCLangFunction = params => {
|
|
121113
|
-
var _params$
|
|
121134
|
+
var _params$20;
|
|
121114
121135
|
const errors = Array.from(validateParams(params, 1));
|
|
121115
121136
|
if (errors.length > 0) {
|
|
121116
121137
|
return new FunctionValidationErrorCollection(errors);
|
|
121117
121138
|
}
|
|
121118
|
-
const expr = (_params$
|
|
121139
|
+
const expr = (_params$20 = params[0]) === null || _params$20 === void 0 ? void 0 : _params$20.value;
|
|
121119
121140
|
if (expr === undefined) {
|
|
121120
121141
|
throw new Error("first param in firstOrDefault must be defined");
|
|
121121
121142
|
}
|
|
@@ -121125,12 +121146,12 @@ const firstOrDefaultKCLangFunction = params => {
|
|
|
121125
121146
|
};
|
|
121126
121147
|
};
|
|
121127
121148
|
const hashSetKCLangFunction = params => {
|
|
121128
|
-
var _params$
|
|
121149
|
+
var _params$21;
|
|
121129
121150
|
const errors = Array.from(validateParams(params, 1));
|
|
121130
121151
|
if (errors.length > 0) {
|
|
121131
121152
|
return new FunctionValidationErrorCollection(errors);
|
|
121132
121153
|
}
|
|
121133
|
-
const expr = (_params$
|
|
121154
|
+
const expr = (_params$21 = params[0]) === null || _params$21 === void 0 ? void 0 : _params$21.value;
|
|
121134
121155
|
if (expr === undefined) {
|
|
121135
121156
|
throw new Error("Parameter in hashSet() must be defined");
|
|
121136
121157
|
}
|
|
@@ -121140,12 +121161,12 @@ const hashSetKCLangFunction = params => {
|
|
|
121140
121161
|
};
|
|
121141
121162
|
};
|
|
121142
121163
|
const noDepsKCLangFunction = params => {
|
|
121143
|
-
var _params$
|
|
121164
|
+
var _params$22;
|
|
121144
121165
|
const errors = Array.from(validateParams(params, 1));
|
|
121145
121166
|
if (errors.length > 0) {
|
|
121146
121167
|
return new FunctionValidationErrorCollection(errors);
|
|
121147
121168
|
}
|
|
121148
|
-
const expr = (_params$
|
|
121169
|
+
const expr = (_params$22 = params[0]) === null || _params$22 === void 0 ? void 0 : _params$22.value;
|
|
121149
121170
|
if (expr === undefined) {
|
|
121150
121171
|
throw new Error("first param in nodeps must be defined");
|
|
121151
121172
|
}
|
|
@@ -121155,15 +121176,15 @@ const noDepsKCLangFunction = params => {
|
|
|
121155
121176
|
};
|
|
121156
121177
|
};
|
|
121157
121178
|
const getPicklistValuesKCLangFunction = params => {
|
|
121158
|
-
var _params$
|
|
121179
|
+
var _params$23, _params$24, _params$25, _params$26;
|
|
121159
121180
|
const errors = Array.from(validateParams(params, 4));
|
|
121160
121181
|
if (errors.length > 0) {
|
|
121161
121182
|
return new FunctionValidationErrorCollection(errors);
|
|
121162
121183
|
}
|
|
121163
|
-
const gId = (_params$
|
|
121164
|
-
const filterColumnParam = (_params$
|
|
121165
|
-
const filterKeyParam = (_params$
|
|
121166
|
-
const resultColumn = (_params$
|
|
121184
|
+
const gId = (_params$23 = params[0]) === null || _params$23 === void 0 ? void 0 : _params$23.value;
|
|
121185
|
+
const filterColumnParam = (_params$24 = params[1]) === null || _params$24 === void 0 ? void 0 : _params$24.value;
|
|
121186
|
+
const filterKeyParam = (_params$25 = params[2]) === null || _params$25 === void 0 ? void 0 : _params$25.value;
|
|
121187
|
+
const resultColumn = (_params$26 = params[3]) === null || _params$26 === void 0 ? void 0 : _params$26.value;
|
|
121167
121188
|
if ((filterColumnParam === null || filterColumnParam === void 0 ? void 0 : filterColumnParam.type) !== "array") {
|
|
121168
121189
|
throw new Error("second param in getPicklistValues must be wrapped in array( ... )");
|
|
121169
121190
|
}
|
|
@@ -121185,25 +121206,25 @@ const getPicklistValuesKCLangFunction = params => {
|
|
|
121185
121206
|
};
|
|
121186
121207
|
};
|
|
121187
121208
|
const isValidMirCardNumberKCLangFunction = params => {
|
|
121188
|
-
var _params$0$value5, _params$
|
|
121209
|
+
var _params$0$value5, _params$27;
|
|
121189
121210
|
const errors = Array.from(validateParams(params, 1));
|
|
121190
121211
|
if (errors.length > 0) {
|
|
121191
121212
|
return new FunctionValidationErrorCollection(errors);
|
|
121192
121213
|
}
|
|
121193
|
-
const argumentExpr = (_params$0$value5 = (_params$
|
|
121214
|
+
const argumentExpr = (_params$0$value5 = (_params$27 = params[0]) === null || _params$27 === void 0 ? void 0 : _params$27.value) !== null && _params$0$value5 !== void 0 ? _params$0$value5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121194
121215
|
return {
|
|
121195
121216
|
type: "isValidMirCardNumber",
|
|
121196
121217
|
expression: argumentExpr
|
|
121197
121218
|
};
|
|
121198
121219
|
};
|
|
121199
121220
|
const isValidAccountNumberKCLangFunction = params => {
|
|
121200
|
-
var _params$0$value6, _params$
|
|
121221
|
+
var _params$0$value6, _params$28, _params$1$value, _params$29;
|
|
121201
121222
|
const errors = Array.from(validateParams(params, 2));
|
|
121202
121223
|
if (errors.length > 0) {
|
|
121203
121224
|
return new FunctionValidationErrorCollection(errors);
|
|
121204
121225
|
}
|
|
121205
|
-
const bik = (_params$0$value6 = (_params$
|
|
121206
|
-
const account = (_params$1$value = (_params$
|
|
121226
|
+
const bik = (_params$0$value6 = (_params$28 = params[0]) === null || _params$28 === void 0 ? void 0 : _params$28.value) !== null && _params$0$value6 !== void 0 ? _params$0$value6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121227
|
+
const account = (_params$1$value = (_params$29 = params[1]) === null || _params$29 === void 0 ? void 0 : _params$29.value) !== null && _params$1$value !== void 0 ? _params$1$value : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
121207
121228
|
return {
|
|
121208
121229
|
type: "isValidAccountNumber",
|
|
121209
121230
|
bik: bik,
|
|
@@ -121211,12 +121232,12 @@ const isValidAccountNumberKCLangFunction = params => {
|
|
|
121211
121232
|
};
|
|
121212
121233
|
};
|
|
121213
121234
|
const countKCLangFunction = params => {
|
|
121214
|
-
var _params$
|
|
121235
|
+
var _params$30;
|
|
121215
121236
|
const errors = Array.from(validateParams(params, 1));
|
|
121216
121237
|
if (errors.length > 0) {
|
|
121217
121238
|
return new FunctionValidationErrorCollection(errors);
|
|
121218
121239
|
}
|
|
121219
|
-
const expr = (_params$
|
|
121240
|
+
const expr = (_params$30 = params[0]) === null || _params$30 === void 0 ? void 0 : _params$30.value;
|
|
121220
121241
|
if ((expr === null || expr === void 0 ? void 0 : expr.type) === "argument") {
|
|
121221
121242
|
const param = expr.select;
|
|
121222
121243
|
if (param == undefined) {
|
|
@@ -121230,12 +121251,12 @@ const countKCLangFunction = params => {
|
|
|
121230
121251
|
throw new Error("Invalid parameters!");
|
|
121231
121252
|
};
|
|
121232
121253
|
const instanceCountKCLangFunction = params => {
|
|
121233
|
-
var _params$
|
|
121254
|
+
var _params$31;
|
|
121234
121255
|
const errors = Array.from(validateParams(params, 1));
|
|
121235
121256
|
if (errors.length > 0) {
|
|
121236
121257
|
return new FunctionValidationErrorCollection(errors);
|
|
121237
121258
|
}
|
|
121238
|
-
const expr = (_params$
|
|
121259
|
+
const expr = (_params$31 = params[0]) === null || _params$31 === void 0 ? void 0 : _params$31.value;
|
|
121239
121260
|
if ((expr === null || expr === void 0 ? void 0 : expr.type) === "argument") {
|
|
121240
121261
|
const param = expr.select;
|
|
121241
121262
|
if (param == undefined) {
|
|
@@ -121249,12 +121270,12 @@ const instanceCountKCLangFunction = params => {
|
|
|
121249
121270
|
throw new Error("Invalid parameters!");
|
|
121250
121271
|
};
|
|
121251
121272
|
const isEqualToAutoCalculatedFunction = params => {
|
|
121252
|
-
var _params$
|
|
121273
|
+
var _params$32;
|
|
121253
121274
|
const errors = Array.from(validateParams(params, 1));
|
|
121254
121275
|
if (errors.length > 0) {
|
|
121255
121276
|
return new FunctionValidationErrorCollection(errors);
|
|
121256
121277
|
}
|
|
121257
|
-
const argumentExpr = (_params$
|
|
121278
|
+
const argumentExpr = (_params$32 = params[0]) === null || _params$32 === void 0 ? void 0 : _params$32.value;
|
|
121258
121279
|
const selectPath = (argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument" ? argumentExpr.select : (argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "cast" && argumentExpr.expression.type == "argument" ? argumentExpr.expression.select : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("isEqualToAutoCalculated argument must be plain path");
|
|
121259
121280
|
const targetType = (argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "cast" ? argumentExpr.targetType : "decimal";
|
|
121260
121281
|
return {
|
|
@@ -121264,12 +121285,12 @@ const isEqualToAutoCalculatedFunction = params => {
|
|
|
121264
121285
|
};
|
|
121265
121286
|
};
|
|
121266
121287
|
const sumKCLangFunction = params => {
|
|
121267
|
-
var _params$
|
|
121288
|
+
var _params$33;
|
|
121268
121289
|
const errors = Array.from(validateParams(params, 1));
|
|
121269
121290
|
if (errors.length > 0) {
|
|
121270
121291
|
return new FunctionValidationErrorCollection(errors);
|
|
121271
121292
|
}
|
|
121272
|
-
const argumentExpr = (_params$
|
|
121293
|
+
const argumentExpr = (_params$33 = params[0]) === null || _params$33 === void 0 ? void 0 : _params$33.value;
|
|
121273
121294
|
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
121274
121295
|
const param = argumentExpr.select;
|
|
121275
121296
|
if (param == undefined) {
|
|
@@ -121293,14 +121314,14 @@ const sumKCLangFunction = params => {
|
|
|
121293
121314
|
throw new Error("Invalid parameters!");
|
|
121294
121315
|
};
|
|
121295
121316
|
const substringKCLangFunction = params => {
|
|
121296
|
-
var _params$
|
|
121317
|
+
var _params$34, _params$35, _params$36;
|
|
121297
121318
|
const errors = Array.from(validateParams(params, 2, 1));
|
|
121298
121319
|
if (errors.length > 0) {
|
|
121299
121320
|
return new FunctionValidationErrorCollection(errors);
|
|
121300
121321
|
}
|
|
121301
|
-
const exprParam = (_params$
|
|
121302
|
-
const startParam = (_params$
|
|
121303
|
-
const lengthParam = (_params$
|
|
121322
|
+
const exprParam = (_params$34 = params[0]) === null || _params$34 === void 0 ? void 0 : _params$34.value;
|
|
121323
|
+
const startParam = (_params$35 = params[1]) === null || _params$35 === void 0 ? void 0 : _params$35.value;
|
|
121324
|
+
const lengthParam = (_params$36 = params[2]) === null || _params$36 === void 0 ? void 0 : _params$36.value;
|
|
121304
121325
|
if (exprParam == undefined) {
|
|
121305
121326
|
throw new Error("Unexpected error!");
|
|
121306
121327
|
}
|
|
@@ -121318,14 +121339,14 @@ const substringKCLangFunction = params => {
|
|
|
121318
121339
|
};
|
|
121319
121340
|
};
|
|
121320
121341
|
const groupSumKCLangFunction = params => {
|
|
121321
|
-
var _params$
|
|
121342
|
+
var _params$37, _params$38, _params$39;
|
|
121322
121343
|
const errors = Array.from(validateParams(params, 3));
|
|
121323
121344
|
if (errors.length > 0) {
|
|
121324
121345
|
return new FunctionValidationErrorCollection(errors);
|
|
121325
121346
|
}
|
|
121326
|
-
const targetKeysParam = (_params$
|
|
121327
|
-
const sourceKeyPathParam = (_params$
|
|
121328
|
-
const sourceValuePathParam = (_params$
|
|
121347
|
+
const targetKeysParam = (_params$37 = params[0]) === null || _params$37 === void 0 ? void 0 : _params$37.value;
|
|
121348
|
+
const sourceKeyPathParam = (_params$38 = params[1]) === null || _params$38 === void 0 ? void 0 : _params$38.value;
|
|
121349
|
+
const sourceValuePathParam = (_params$39 = params[2]) === null || _params$39 === void 0 ? void 0 : _params$39.value;
|
|
121329
121350
|
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || (sourceValuePathParam === null || sourceValuePathParam === void 0 ? void 0 : sourceValuePathParam.type) !== "argument") {
|
|
121330
121351
|
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeys, sourceKeyPath, sourceValuePath");
|
|
121331
121352
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -121342,13 +121363,13 @@ const groupSumKCLangFunction = params => {
|
|
|
121342
121363
|
};
|
|
121343
121364
|
};
|
|
121344
121365
|
const groupCountKCLangFunction = params => {
|
|
121345
|
-
var _params$
|
|
121366
|
+
var _params$40, _params$41;
|
|
121346
121367
|
const errors = Array.from(validateParams(params, 2));
|
|
121347
121368
|
if (errors.length > 0) {
|
|
121348
121369
|
return new FunctionValidationErrorCollection(errors);
|
|
121349
121370
|
}
|
|
121350
|
-
const targetKeysParam = (_params$
|
|
121351
|
-
const sourceKeyPathParam = (_params$
|
|
121371
|
+
const targetKeysParam = (_params$40 = params[0]) === null || _params$40 === void 0 ? void 0 : _params$40.value;
|
|
121372
|
+
const sourceKeyPathParam = (_params$41 = params[1]) === null || _params$41 === void 0 ? void 0 : _params$41.value;
|
|
121352
121373
|
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
|
|
121353
121374
|
const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
|
|
121354
121375
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -121392,12 +121413,12 @@ const dateNowKCLangFunction = params => {
|
|
|
121392
121413
|
};
|
|
121393
121414
|
};
|
|
121394
121415
|
const getDaysInMonthKCLangFunction = params => {
|
|
121395
|
-
var _params$
|
|
121416
|
+
var _params$42;
|
|
121396
121417
|
const errors = Array.from(validateParams(params, 1));
|
|
121397
121418
|
if (errors.length > 0) {
|
|
121398
121419
|
return new FunctionValidationErrorCollection(errors);
|
|
121399
121420
|
}
|
|
121400
|
-
const param = (_params$
|
|
121421
|
+
const param = (_params$42 = params[0]) === null || _params$42 === void 0 ? void 0 : _params$42.value;
|
|
121401
121422
|
if (param == undefined) {
|
|
121402
121423
|
throw new Error("Unexpected error!");
|
|
121403
121424
|
}
|
|
@@ -121407,12 +121428,12 @@ const getDaysInMonthKCLangFunction = params => {
|
|
|
121407
121428
|
};
|
|
121408
121429
|
};
|
|
121409
121430
|
const getDayKCLangFunction = params => {
|
|
121410
|
-
var _params$
|
|
121431
|
+
var _params$43;
|
|
121411
121432
|
const errors = Array.from(validateParams(params, 1));
|
|
121412
121433
|
if (errors.length > 0) {
|
|
121413
121434
|
return new FunctionValidationErrorCollection(errors);
|
|
121414
121435
|
}
|
|
121415
|
-
const param = (_params$
|
|
121436
|
+
const param = (_params$43 = params[0]) === null || _params$43 === void 0 ? void 0 : _params$43.value;
|
|
121416
121437
|
if (param == undefined) {
|
|
121417
121438
|
throw new Error("Unexpected error!");
|
|
121418
121439
|
}
|
|
@@ -121422,12 +121443,12 @@ const getDayKCLangFunction = params => {
|
|
|
121422
121443
|
};
|
|
121423
121444
|
};
|
|
121424
121445
|
const getMonthKCLangFunction = params => {
|
|
121425
|
-
var _params$
|
|
121446
|
+
var _params$44;
|
|
121426
121447
|
const errors = Array.from(validateParams(params, 1));
|
|
121427
121448
|
if (errors.length > 0) {
|
|
121428
121449
|
return new FunctionValidationErrorCollection(errors);
|
|
121429
121450
|
}
|
|
121430
|
-
const param = (_params$
|
|
121451
|
+
const param = (_params$44 = params[0]) === null || _params$44 === void 0 ? void 0 : _params$44.value;
|
|
121431
121452
|
if (param == undefined) {
|
|
121432
121453
|
throw new Error("Unexpected error!");
|
|
121433
121454
|
}
|
|
@@ -121437,12 +121458,12 @@ const getMonthKCLangFunction = params => {
|
|
|
121437
121458
|
};
|
|
121438
121459
|
};
|
|
121439
121460
|
const getYearKCLangFunction = params => {
|
|
121440
|
-
var _params$
|
|
121461
|
+
var _params$45;
|
|
121441
121462
|
const errors = Array.from(validateParams(params, 1));
|
|
121442
121463
|
if (errors.length > 0) {
|
|
121443
121464
|
return new FunctionValidationErrorCollection(errors);
|
|
121444
121465
|
}
|
|
121445
|
-
const param = (_params$
|
|
121466
|
+
const param = (_params$45 = params[0]) === null || _params$45 === void 0 ? void 0 : _params$45.value;
|
|
121446
121467
|
if (param == undefined) {
|
|
121447
121468
|
throw new Error("Unexpected error!");
|
|
121448
121469
|
}
|
|
@@ -121452,12 +121473,12 @@ const getYearKCLangFunction = params => {
|
|
|
121452
121473
|
};
|
|
121453
121474
|
};
|
|
121454
121475
|
const isDateInMonthKCLangFunction = params => {
|
|
121455
|
-
var _params$
|
|
121476
|
+
var _params$46;
|
|
121456
121477
|
const errors = Array.from(validateParams(params, 1));
|
|
121457
121478
|
if (errors.length > 0) {
|
|
121458
121479
|
return new FunctionValidationErrorCollection(errors);
|
|
121459
121480
|
}
|
|
121460
|
-
const param = (_params$
|
|
121481
|
+
const param = (_params$46 = params[0]) === null || _params$46 === void 0 ? void 0 : _params$46.value;
|
|
121461
121482
|
if (param == undefined) {
|
|
121462
121483
|
throw new Error("Unexpected error!");
|
|
121463
121484
|
}
|
|
@@ -121497,13 +121518,13 @@ const sumOfDayWeightsKCLangFunction = params => {
|
|
|
121497
121518
|
};
|
|
121498
121519
|
};
|
|
121499
121520
|
const addDaysKCLangFunction = params => {
|
|
121500
|
-
var _params$
|
|
121521
|
+
var _params$47, _params$48;
|
|
121501
121522
|
const errors = Array.from(validateParams(params, 2));
|
|
121502
121523
|
if (errors.length > 0) {
|
|
121503
121524
|
return new FunctionValidationErrorCollection(errors);
|
|
121504
121525
|
}
|
|
121505
|
-
const exprParam = (_params$
|
|
121506
|
-
const amountParam = (_params$
|
|
121526
|
+
const exprParam = (_params$47 = params[0]) === null || _params$47 === void 0 ? void 0 : _params$47.value;
|
|
121527
|
+
const amountParam = (_params$48 = params[1]) === null || _params$48 === void 0 ? void 0 : _params$48.value;
|
|
121507
121528
|
if (exprParam == undefined) {
|
|
121508
121529
|
throw new Error("Expected expression for addDays().");
|
|
121509
121530
|
}
|
|
@@ -121519,13 +121540,13 @@ const addDaysKCLangFunction = params => {
|
|
|
121519
121540
|
};
|
|
121520
121541
|
};
|
|
121521
121542
|
const addMonthsKCLangFunction = params => {
|
|
121522
|
-
var _params$
|
|
121543
|
+
var _params$49, _params$50;
|
|
121523
121544
|
const errors = Array.from(validateParams(params, 2));
|
|
121524
121545
|
if (errors.length > 0) {
|
|
121525
121546
|
return new FunctionValidationErrorCollection(errors);
|
|
121526
121547
|
}
|
|
121527
|
-
const exprParam = (_params$
|
|
121528
|
-
const amountParam = (_params$
|
|
121548
|
+
const exprParam = (_params$49 = params[0]) === null || _params$49 === void 0 ? void 0 : _params$49.value;
|
|
121549
|
+
const amountParam = (_params$50 = params[1]) === null || _params$50 === void 0 ? void 0 : _params$50.value;
|
|
121529
121550
|
if (exprParam == undefined) {
|
|
121530
121551
|
throw new Error("Expected expression for addMonths().");
|
|
121531
121552
|
}
|
|
@@ -121541,13 +121562,13 @@ const addMonthsKCLangFunction = params => {
|
|
|
121541
121562
|
};
|
|
121542
121563
|
};
|
|
121543
121564
|
const addYearsKCLangFunction = params => {
|
|
121544
|
-
var _params$
|
|
121565
|
+
var _params$51, _params$52;
|
|
121545
121566
|
const errors = Array.from(validateParams(params, 2));
|
|
121546
121567
|
if (errors.length > 0) {
|
|
121547
121568
|
return new FunctionValidationErrorCollection(errors);
|
|
121548
121569
|
}
|
|
121549
|
-
const exprParam = (_params$
|
|
121550
|
-
const amountParam = (_params$
|
|
121570
|
+
const exprParam = (_params$51 = params[0]) === null || _params$51 === void 0 ? void 0 : _params$51.value;
|
|
121571
|
+
const amountParam = (_params$52 = params[1]) === null || _params$52 === void 0 ? void 0 : _params$52.value;
|
|
121551
121572
|
if (exprParam == undefined) {
|
|
121552
121573
|
throw new Error("Expected expression for addYears().");
|
|
121553
121574
|
}
|
|
@@ -121563,13 +121584,13 @@ const addYearsKCLangFunction = params => {
|
|
|
121563
121584
|
};
|
|
121564
121585
|
};
|
|
121565
121586
|
const dateToStringKCLangFunction = params => {
|
|
121566
|
-
var _params$
|
|
121587
|
+
var _params$53, _params$54;
|
|
121567
121588
|
const errors = Array.from(validateParams(params, 1, 2));
|
|
121568
121589
|
if (errors.length > 0) {
|
|
121569
121590
|
return new FunctionValidationErrorCollection(errors);
|
|
121570
121591
|
}
|
|
121571
|
-
const exprParam = (_params$
|
|
121572
|
-
const formatParam = (_params$
|
|
121592
|
+
const exprParam = (_params$53 = params[0]) === null || _params$53 === void 0 ? void 0 : _params$53.value;
|
|
121593
|
+
const formatParam = (_params$54 = params[1]) === null || _params$54 === void 0 ? void 0 : _params$54.value;
|
|
121573
121594
|
if (exprParam == undefined) {
|
|
121574
121595
|
throw new Error("Expected expression for dateToString().");
|
|
121575
121596
|
}
|
|
@@ -121584,12 +121605,12 @@ const dateToStringKCLangFunction = params => {
|
|
|
121584
121605
|
};
|
|
121585
121606
|
};
|
|
121586
121607
|
const dateTimeKCLangFunction = params => {
|
|
121587
|
-
var _params$
|
|
121608
|
+
var _params$55;
|
|
121588
121609
|
const errors = Array.from(validateParams(params, 1));
|
|
121589
121610
|
if (errors.length > 0) {
|
|
121590
121611
|
return new FunctionValidationErrorCollection(errors);
|
|
121591
121612
|
}
|
|
121592
|
-
const param = (_params$
|
|
121613
|
+
const param = (_params$55 = params[0]) === null || _params$55 === void 0 ? void 0 : _params$55.value;
|
|
121593
121614
|
if (param == undefined) {
|
|
121594
121615
|
throw new Error("Unexpected error!");
|
|
121595
121616
|
}
|
|
@@ -121599,12 +121620,12 @@ const dateTimeKCLangFunction = params => {
|
|
|
121599
121620
|
};
|
|
121600
121621
|
};
|
|
121601
121622
|
const hasAutoFlagKCLangFunction = params => {
|
|
121602
|
-
var _params$
|
|
121623
|
+
var _params$56;
|
|
121603
121624
|
const errors = Array.from(validateParams(params, 1));
|
|
121604
121625
|
if (errors.length > 0) {
|
|
121605
121626
|
return new FunctionValidationErrorCollection(errors);
|
|
121606
121627
|
}
|
|
121607
|
-
const param = (_params$
|
|
121628
|
+
const param = (_params$56 = params[0]) === null || _params$56 === void 0 ? void 0 : _params$56.value;
|
|
121608
121629
|
if (param == undefined) {
|
|
121609
121630
|
throw new Error("Unexpected error!");
|
|
121610
121631
|
}
|
|
@@ -121614,13 +121635,13 @@ const hasAutoFlagKCLangFunction = params => {
|
|
|
121614
121635
|
};
|
|
121615
121636
|
};
|
|
121616
121637
|
const makeDictKCLangFunction = params => {
|
|
121617
|
-
var _params$
|
|
121638
|
+
var _params$57, _params$58;
|
|
121618
121639
|
const errors = Array.from(validateParams(params, 2));
|
|
121619
121640
|
if (errors.length > 0) {
|
|
121620
121641
|
return new FunctionValidationErrorCollection(errors);
|
|
121621
121642
|
}
|
|
121622
|
-
const sourceKeyPathParam = (_params$
|
|
121623
|
-
const sourceValuePathParam = (_params$
|
|
121643
|
+
const sourceKeyPathParam = (_params$57 = params[0]) === null || _params$57 === void 0 ? void 0 : _params$57.value;
|
|
121644
|
+
const sourceValuePathParam = (_params$58 = params[1]) === null || _params$58 === void 0 ? void 0 : _params$58.value;
|
|
121624
121645
|
if ((sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || sourceValuePathParam == undefined) {
|
|
121625
121646
|
const argumentsValidationError = new ArgumentValidationError("Invalid argument sourceKeyPath");
|
|
121626
121647
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -121632,13 +121653,13 @@ const makeDictKCLangFunction = params => {
|
|
|
121632
121653
|
};
|
|
121633
121654
|
};
|
|
121634
121655
|
const getSumByKeysKCLangFunction = params => {
|
|
121635
|
-
var _params$
|
|
121656
|
+
var _params$59, _params$60;
|
|
121636
121657
|
const errors = Array.from(validateParams(params, 2));
|
|
121637
121658
|
if (errors.length > 0) {
|
|
121638
121659
|
return new FunctionValidationErrorCollection(errors);
|
|
121639
121660
|
}
|
|
121640
|
-
const dictPathParam = (_params$
|
|
121641
|
-
const targetKeysParam = (_params$
|
|
121661
|
+
const dictPathParam = (_params$59 = params[0]) === null || _params$59 === void 0 ? void 0 : _params$59.value;
|
|
121662
|
+
const targetKeysParam = (_params$60 = params[1]) === null || _params$60 === void 0 ? void 0 : _params$60.value;
|
|
121642
121663
|
if (targetKeysParam == undefined || (dictPathParam === null || dictPathParam === void 0 ? void 0 : dictPathParam.type) !== "argument") {
|
|
121643
121664
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments dictPathParam, targetKeysParam");
|
|
121644
121665
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -121654,12 +121675,12 @@ const getSumByKeysKCLangFunction = params => {
|
|
|
121654
121675
|
};
|
|
121655
121676
|
};
|
|
121656
121677
|
const joinKCLangFunction = params => {
|
|
121657
|
-
var _params$
|
|
121678
|
+
var _params$61;
|
|
121658
121679
|
const errors = Array.from(validateParams(params, 1));
|
|
121659
121680
|
if (errors.length > 0) {
|
|
121660
121681
|
return new FunctionValidationErrorCollection(errors);
|
|
121661
121682
|
}
|
|
121662
|
-
const arrayParam = (_params$
|
|
121683
|
+
const arrayParam = (_params$61 = params[0]) === null || _params$61 === void 0 ? void 0 : _params$61.value;
|
|
121663
121684
|
if (arrayParam == undefined) {
|
|
121664
121685
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments arrayParam");
|
|
121665
121686
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -121670,12 +121691,12 @@ const joinKCLangFunction = params => {
|
|
|
121670
121691
|
};
|
|
121671
121692
|
};
|
|
121672
121693
|
const numeratorKCLangFunction = params => {
|
|
121673
|
-
var _params$
|
|
121694
|
+
var _params$62;
|
|
121674
121695
|
const errors = Array.from(validateParams(params, 1));
|
|
121675
121696
|
if (errors.length > 0) {
|
|
121676
121697
|
return new FunctionValidationErrorCollection(errors);
|
|
121677
121698
|
}
|
|
121678
|
-
const param = (_params$
|
|
121699
|
+
const param = (_params$62 = params[0]) === null || _params$62 === void 0 ? void 0 : _params$62.value;
|
|
121679
121700
|
if (param == undefined) {
|
|
121680
121701
|
throw new Error("Unexpected error!");
|
|
121681
121702
|
}
|
|
@@ -121685,12 +121706,12 @@ const numeratorKCLangFunction = params => {
|
|
|
121685
121706
|
};
|
|
121686
121707
|
};
|
|
121687
121708
|
const denominatorKCLangFunction = params => {
|
|
121688
|
-
var _params$
|
|
121709
|
+
var _params$63;
|
|
121689
121710
|
const errors = Array.from(validateParams(params, 1));
|
|
121690
121711
|
if (errors.length > 0) {
|
|
121691
121712
|
return new FunctionValidationErrorCollection(errors);
|
|
121692
121713
|
}
|
|
121693
|
-
const param = (_params$
|
|
121714
|
+
const param = (_params$63 = params[0]) === null || _params$63 === void 0 ? void 0 : _params$63.value;
|
|
121694
121715
|
if (param == undefined) {
|
|
121695
121716
|
throw new Error("Unexpected error!");
|
|
121696
121717
|
}
|
|
@@ -121700,12 +121721,12 @@ const denominatorKCLangFunction = params => {
|
|
|
121700
121721
|
};
|
|
121701
121722
|
};
|
|
121702
121723
|
const getDateTimeTicksKCLangFunction = params => {
|
|
121703
|
-
var _params$
|
|
121724
|
+
var _params$64;
|
|
121704
121725
|
const errors = Array.from(validateParams(params, 1));
|
|
121705
121726
|
if (errors.length > 0) {
|
|
121706
121727
|
return new FunctionValidationErrorCollection(errors);
|
|
121707
121728
|
}
|
|
121708
|
-
const expr = (_params$
|
|
121729
|
+
const expr = (_params$64 = params[0]) === null || _params$64 === void 0 ? void 0 : _params$64.value;
|
|
121709
121730
|
if (expr == undefined) {
|
|
121710
121731
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments expression");
|
|
121711
121732
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -121785,6 +121806,7 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
121785
121806
|
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.concatKCLangFunction],
|
|
121786
121807
|
newline: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.newlineKCLangFunction],
|
|
121787
121808
|
dateNow: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.dateNowKCLangFunction],
|
|
121809
|
+
getExternalInfo: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getExternalInfoKCLangFunction],
|
|
121788
121810
|
getDaysInMonth: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getDaysInMonthKCLangFunction],
|
|
121789
121811
|
getDay: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getDayKCLangFunction],
|
|
121790
121812
|
getMonth: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getMonthKCLangFunction],
|
|
@@ -122696,8 +122718,8 @@ const xabsKCLangFunction = params => {
|
|
|
122696
122718
|
return new _CodeDom_Functions_XabsFunctionCall__WEBPACK_IMPORTED_MODULE_3__.XabsFunctionCall(param);
|
|
122697
122719
|
};
|
|
122698
122720
|
const regexMatchKCLangFunction = params => {
|
|
122699
|
-
var _params$4, _params$5;
|
|
122700
|
-
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
122721
|
+
var _params$4, _params$5, _params$6, _params$7;
|
|
122722
|
+
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2, 1));
|
|
122701
122723
|
if (errors.length > 0) {
|
|
122702
122724
|
return errors;
|
|
122703
122725
|
}
|
|
@@ -122709,179 +122731,180 @@ const regexMatchKCLangFunction = params => {
|
|
|
122709
122731
|
if (pattern == undefined) {
|
|
122710
122732
|
return ["Invalid parameter type!"];
|
|
122711
122733
|
}
|
|
122712
|
-
|
|
122734
|
+
const flags = (_params$6 = params[2]) !== null && _params$6 !== void 0 && _params$6.argument ? (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$7 = params[2]) === null || _params$7 === void 0 ? void 0 : _params$7.argument) : undefined;
|
|
122735
|
+
return new _CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_4__.RegexMatchFunctionCall(param, pattern, flags);
|
|
122713
122736
|
};
|
|
122714
122737
|
const regexReplaceKCLangFunction = params => {
|
|
122715
|
-
var _params$
|
|
122738
|
+
var _params$8, _params$9, _params$10, _params$11, _params$12;
|
|
122716
122739
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 3));
|
|
122717
122740
|
if (errors.length > 0) {
|
|
122718
122741
|
return errors;
|
|
122719
122742
|
}
|
|
122720
|
-
const expr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122743
|
+
const expr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$8 = params[0]) === null || _params$8 === void 0 ? void 0 : _params$8.argument);
|
|
122721
122744
|
if (expr == undefined) {
|
|
122722
122745
|
return ["Invalid parameter type!"];
|
|
122723
122746
|
}
|
|
122724
|
-
const pattern = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122747
|
+
const pattern = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$9 = params[1]) === null || _params$9 === void 0 ? void 0 : _params$9.argument);
|
|
122725
122748
|
if (pattern == undefined) {
|
|
122726
122749
|
return ["Invalid parameter type!"];
|
|
122727
122750
|
}
|
|
122728
|
-
const replacement = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122751
|
+
const replacement = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$10 = params[2]) === null || _params$10 === void 0 ? void 0 : _params$10.argument);
|
|
122729
122752
|
if (replacement == undefined) {
|
|
122730
122753
|
return ["Invalid parameter type!"];
|
|
122731
122754
|
}
|
|
122732
|
-
const flags = (_params$
|
|
122755
|
+
const flags = (_params$11 = params[3]) !== null && _params$11 !== void 0 && _params$11.argument ? (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$12 = params[3]) === null || _params$12 === void 0 ? void 0 : _params$12.argument) : undefined;
|
|
122733
122756
|
return new _CodeDom_Functions_RegexReplaceFunctionCall__WEBPACK_IMPORTED_MODULE_58__.RegexReplaceFunctionCall(expr, pattern, replacement, flags);
|
|
122734
122757
|
};
|
|
122735
122758
|
const roundKCLangFunction = params => {
|
|
122736
|
-
var _params$
|
|
122759
|
+
var _params$13, _params$14;
|
|
122737
122760
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1, 1));
|
|
122738
122761
|
if (errors.length > 0) {
|
|
122739
122762
|
return errors;
|
|
122740
122763
|
}
|
|
122741
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122742
|
-
const fractional = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122764
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$13 = params[0]) === null || _params$13 === void 0 ? void 0 : _params$13.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122765
|
+
const fractional = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$14 = params[1]) === null || _params$14 === void 0 ? void 0 : _params$14.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122743
122766
|
if (argumentExpr == undefined) {
|
|
122744
122767
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122745
122768
|
}
|
|
122746
122769
|
return new _CodeDom_Functions_RoundFunctionCall__WEBPACK_IMPORTED_MODULE_18__.RoundFunctionCall(argumentExpr, fractional !== null && fractional !== void 0 ? fractional : new _CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_19__.DecimalConstExpression(0));
|
|
122747
122770
|
};
|
|
122748
122771
|
const floorKCLangFunction = params => {
|
|
122749
|
-
var _params$
|
|
122772
|
+
var _params$15;
|
|
122750
122773
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1, 1));
|
|
122751
122774
|
if (errors.length > 0) {
|
|
122752
122775
|
return errors;
|
|
122753
122776
|
}
|
|
122754
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122777
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$15 = params[0]) === null || _params$15 === void 0 ? void 0 : _params$15.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122755
122778
|
if (argumentExpr === undefined) {
|
|
122756
122779
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122757
122780
|
}
|
|
122758
122781
|
return new _CodeDom_Functions_FloorFunctionCall__WEBPACK_IMPORTED_MODULE_17__.FloorFunctionCall(argumentExpr);
|
|
122759
122782
|
};
|
|
122760
122783
|
const existsKCLangFunction = params => {
|
|
122761
|
-
var _params$
|
|
122784
|
+
var _params$16;
|
|
122762
122785
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122763
122786
|
if (errors.length > 0) {
|
|
122764
122787
|
return errors;
|
|
122765
122788
|
}
|
|
122766
|
-
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122789
|
+
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$16 = params[0]) === null || _params$16 === void 0 ? void 0 : _params$16.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
122767
122790
|
if (argumentExpr === undefined) {
|
|
122768
122791
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122769
122792
|
}
|
|
122770
122793
|
return new _CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_16__.ExistsFunctionCall(argumentExpr);
|
|
122771
122794
|
};
|
|
122772
122795
|
const isSnilsKCLangFunction = params => {
|
|
122773
|
-
var _params$
|
|
122796
|
+
var _params$17;
|
|
122774
122797
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122775
122798
|
if (errors.length > 0) {
|
|
122776
122799
|
return errors;
|
|
122777
122800
|
}
|
|
122778
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122801
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$17 = params[0]) === null || _params$17 === void 0 ? void 0 : _params$17.argument);
|
|
122779
122802
|
if (argumentExpr === undefined) {
|
|
122780
122803
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122781
122804
|
}
|
|
122782
122805
|
return new _CodeDom_Functions_IsSnilsFunctionCall__WEBPACK_IMPORTED_MODULE_15__.IsSnilsFunctionCall(argumentExpr);
|
|
122783
122806
|
};
|
|
122784
122807
|
const isInnKCLangFunction = params => {
|
|
122785
|
-
var _params$
|
|
122808
|
+
var _params$18;
|
|
122786
122809
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122787
122810
|
if (errors.length > 0) {
|
|
122788
122811
|
return errors;
|
|
122789
122812
|
}
|
|
122790
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122813
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$18 = params[0]) === null || _params$18 === void 0 ? void 0 : _params$18.argument);
|
|
122791
122814
|
if (argumentExpr === undefined) {
|
|
122792
122815
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122793
122816
|
}
|
|
122794
122817
|
return new _CodeDom_Functions_IsInnFunctionCall__WEBPACK_IMPORTED_MODULE_22__.IsInnFunctionCall(argumentExpr);
|
|
122795
122818
|
};
|
|
122796
122819
|
const isValidMirCardNumberKCLangFunction = params => {
|
|
122797
|
-
var _params$
|
|
122820
|
+
var _params$19;
|
|
122798
122821
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122799
122822
|
if (errors.length > 0) {
|
|
122800
122823
|
return errors;
|
|
122801
122824
|
}
|
|
122802
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122825
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$19 = params[0]) === null || _params$19 === void 0 ? void 0 : _params$19.argument);
|
|
122803
122826
|
if (argumentExpr == undefined) {
|
|
122804
122827
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122805
122828
|
}
|
|
122806
122829
|
return new _CodeDom_Functions_IsValidMirCardNumberFunctionCall__WEBPACK_IMPORTED_MODULE_14__.IsValidMirCardNumberFunctionCall(argumentExpr);
|
|
122807
122830
|
};
|
|
122808
122831
|
const isValidAccountNumberKCLangFunction = params => {
|
|
122809
|
-
var _params$
|
|
122832
|
+
var _params$20, _params$21;
|
|
122810
122833
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
122811
122834
|
if (errors.length > 0) {
|
|
122812
122835
|
return errors;
|
|
122813
122836
|
}
|
|
122814
|
-
const bik = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122815
|
-
const account = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122837
|
+
const bik = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$20 = params[0]) === null || _params$20 === void 0 ? void 0 : _params$20.argument);
|
|
122838
|
+
const account = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$21 = params[1]) === null || _params$21 === void 0 ? void 0 : _params$21.argument);
|
|
122816
122839
|
if (bik == undefined || account == undefined) {
|
|
122817
122840
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122818
122841
|
}
|
|
122819
122842
|
return new _CodeDom_Functions_IsValidAccountNumberFunctionCall__WEBPACK_IMPORTED_MODULE_13__.IsValidAccountNumberFunctionCall(bik, account);
|
|
122820
122843
|
};
|
|
122821
122844
|
const countKCLangFunction = params => {
|
|
122822
|
-
var _params$
|
|
122845
|
+
var _params$22;
|
|
122823
122846
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122824
122847
|
if (errors.length > 0) {
|
|
122825
122848
|
return errors;
|
|
122826
122849
|
}
|
|
122827
|
-
const expr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122850
|
+
const expr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$22 = params[0]) === null || _params$22 === void 0 ? void 0 : _params$22.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
122828
122851
|
if (expr == undefined) {
|
|
122829
122852
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122830
122853
|
}
|
|
122831
122854
|
return new _CodeDom_Functions_CountFunctionCall__WEBPACK_IMPORTED_MODULE_12__.CountFunctionCall(expr);
|
|
122832
122855
|
};
|
|
122833
122856
|
const sumKCLangFunction = params => {
|
|
122834
|
-
var _params$
|
|
122857
|
+
var _params$23;
|
|
122835
122858
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122836
122859
|
if (errors.length > 0) {
|
|
122837
122860
|
return errors;
|
|
122838
122861
|
}
|
|
122839
|
-
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122862
|
+
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$23 = params[0]) === null || _params$23 === void 0 ? void 0 : _params$23.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
122840
122863
|
if (argumentExpr == undefined) {
|
|
122841
122864
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122842
122865
|
}
|
|
122843
122866
|
return new _CodeDom_Functions_SumFunctionCall__WEBPACK_IMPORTED_MODULE_32__.SumFunctionCall(argumentExpr);
|
|
122844
122867
|
};
|
|
122845
122868
|
const substringKCLangFunction = params => {
|
|
122846
|
-
var _params$
|
|
122869
|
+
var _params$24, _params$25, _params$26, _params$27;
|
|
122847
122870
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2, 1));
|
|
122848
122871
|
if (errors.length > 0) {
|
|
122849
122872
|
return errors;
|
|
122850
122873
|
}
|
|
122851
|
-
const exprParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122852
|
-
const startParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122853
|
-
const lengthParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122874
|
+
const exprParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$24 = params[0]) === null || _params$24 === void 0 ? void 0 : _params$24.argument);
|
|
122875
|
+
const startParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$25 = params[1]) === null || _params$25 === void 0 ? void 0 : _params$25.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122876
|
+
const lengthParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$26 = params[2]) === null || _params$26 === void 0 ? void 0 : _params$26.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122854
122877
|
if (exprParam == undefined || startParam == undefined) {
|
|
122855
122878
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122856
122879
|
}
|
|
122857
|
-
if (lengthParam == undefined && ((_params$
|
|
122880
|
+
if (lengthParam == undefined && ((_params$27 = params[2]) === null || _params$27 === void 0 ? void 0 : _params$27.argument) != undefined) {
|
|
122858
122881
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122859
122882
|
}
|
|
122860
122883
|
const castedExprParam = exprParam instanceof _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression ? new _CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_57__.CastExpression(exprParam, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default) : exprParam;
|
|
122861
122884
|
return new _CodeDom_Functions_SubstringFunctionCall__WEBPACK_IMPORTED_MODULE_9__.SubstringFunctionCall(castedExprParam, startParam, lengthParam);
|
|
122862
122885
|
};
|
|
122863
122886
|
const groupSumKCLangFunction = params => {
|
|
122864
|
-
var _ref, _ref2, _safeCast, _params$
|
|
122887
|
+
var _ref, _ref2, _safeCast, _params$28, _params$29, _params$30, _params$31, _params$32, _params$33;
|
|
122865
122888
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 3));
|
|
122866
122889
|
if (errors.length > 0) {
|
|
122867
122890
|
return errors;
|
|
122868
122891
|
}
|
|
122869
|
-
const targetKeyPathParam = (_ref = (_ref2 = (_safeCast = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122870
|
-
const sourceKeyPathParam = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122871
|
-
const sourceValuePathParam = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122892
|
+
const targetKeyPathParam = (_ref = (_ref2 = (_safeCast = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$28 = params[0]) === null || _params$28 === void 0 ? void 0 : _params$28.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression)) !== null && _safeCast !== void 0 ? _safeCast : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$29 = params[0]) === null || _params$29 === void 0 ? void 0 : _params$29.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default)) !== null && _ref2 !== void 0 ? _ref2 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$30 = params[0]) === null || _params$30 === void 0 ? void 0 : _params$30.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default)) !== null && _ref !== void 0 ? _ref : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$31 = params[0]) === null || _params$31 === void 0 ? void 0 : _params$31.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122893
|
+
const sourceKeyPathParam = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$32 = params[1]) === null || _params$32 === void 0 ? void 0 : _params$32.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
122894
|
+
const sourceValuePathParam = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$33 = params[2]) === null || _params$33 === void 0 ? void 0 : _params$33.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
122872
122895
|
if (targetKeyPathParam == undefined || sourceKeyPathParam == undefined || sourceValuePathParam == undefined) {
|
|
122873
122896
|
return ["Expected 3 paths as arguments: targetKeyPath, sourceKeyPath, sourceValuePath"];
|
|
122874
122897
|
}
|
|
122875
122898
|
return new _CodeDom_Functions_GroupSumFunctionCall__WEBPACK_IMPORTED_MODULE_20__.GroupSumFunctionCall(targetKeyPathParam, sourceKeyPathParam, sourceValuePathParam);
|
|
122876
122899
|
};
|
|
122877
122900
|
const groupCountKCLangFunction = params => {
|
|
122878
|
-
var _ref3, _ref4, _safeCast2, _params$
|
|
122901
|
+
var _ref3, _ref4, _safeCast2, _params$34, _params$35, _params$36, _params$37, _params$38;
|
|
122879
122902
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
122880
122903
|
if (errors.length > 0) {
|
|
122881
122904
|
return errors;
|
|
122882
122905
|
}
|
|
122883
|
-
const targetKeyPathParam = (_ref3 = (_ref4 = (_safeCast2 = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122884
|
-
const sourceKeyPathParam = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
122906
|
+
const targetKeyPathParam = (_ref3 = (_ref4 = (_safeCast2 = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$34 = params[0]) === null || _params$34 === void 0 ? void 0 : _params$34.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression)) !== null && _safeCast2 !== void 0 ? _safeCast2 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$35 = params[0]) === null || _params$35 === void 0 ? void 0 : _params$35.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default)) !== null && _ref4 !== void 0 ? _ref4 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$36 = params[0]) === null || _params$36 === void 0 ? void 0 : _params$36.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default)) !== null && _ref3 !== void 0 ? _ref3 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$37 = params[0]) === null || _params$37 === void 0 ? void 0 : _params$37.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
122907
|
+
const sourceKeyPathParam = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$38 = params[1]) === null || _params$38 === void 0 ? void 0 : _params$38.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
122885
122908
|
if (targetKeyPathParam == undefined || sourceKeyPathParam == undefined) {
|
|
122886
122909
|
return ["Expected 2 paths as arguments: targetKeyPath, sourceKeyPath"];
|
|
122887
122910
|
}
|
|
@@ -122916,153 +122939,153 @@ const dateNowKCLangFunction = params => {
|
|
|
122916
122939
|
return new _CodeDom_Functions_DateNowFunctionCall__WEBPACK_IMPORTED_MODULE_5__.DateNowFunctionCall();
|
|
122917
122940
|
};
|
|
122918
122941
|
const isNullKCLangFunction = params => {
|
|
122919
|
-
var _ref5, _safeCastExprToTypeOr, _params$
|
|
122942
|
+
var _ref5, _safeCastExprToTypeOr, _params$39, _params$40;
|
|
122920
122943
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1, 0));
|
|
122921
122944
|
if (errors.length > 0) {
|
|
122922
122945
|
return errors;
|
|
122923
122946
|
}
|
|
122924
|
-
const exprParam = (_ref5 = (_safeCastExprToTypeOr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122947
|
+
const exprParam = (_ref5 = (_safeCastExprToTypeOr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$39 = params[0]) === null || _params$39 === void 0 ? void 0 : _params$39.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default)) !== null && _safeCastExprToTypeOr !== void 0 ? _safeCastExprToTypeOr : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$40 = params[0]) === null || _params$40 === void 0 ? void 0 : _params$40.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default)) !== null && _ref5 !== void 0 ? _ref5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)("Unsupported argument for isNull()");
|
|
122925
122948
|
return new _CodeDom_Functions_IsNullFunctionCall__WEBPACK_IMPORTED_MODULE_24__.IsNullFunctionCall(exprParam);
|
|
122926
122949
|
};
|
|
122927
122950
|
const getExternalInfoKCLangFunction = params => {
|
|
122928
|
-
var _safeCastExprToTypeOr2, _params$
|
|
122951
|
+
var _safeCastExprToTypeOr2, _params$41;
|
|
122929
122952
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1, 0));
|
|
122930
122953
|
if (errors.length > 0) {
|
|
122931
122954
|
return errors;
|
|
122932
122955
|
}
|
|
122933
|
-
const exprParam = (_safeCastExprToTypeOr2 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122956
|
+
const exprParam = (_safeCastExprToTypeOr2 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$41 = params[0]) === null || _params$41 === void 0 ? void 0 : _params$41.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default)) !== null && _safeCastExprToTypeOr2 !== void 0 ? _safeCastExprToTypeOr2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)("Unsupported argument for getExternalInfo()");
|
|
122934
122957
|
return new _CodeDom_Functions_GetExternalInfoFunctionalCall__WEBPACK_IMPORTED_MODULE_25__.GetExternalInfoFunctionalCall(exprParam);
|
|
122935
122958
|
};
|
|
122936
122959
|
const dateTimeKCLangFunction = params => {
|
|
122937
|
-
var _safeCastToStringFrom2, _params$
|
|
122960
|
+
var _safeCastToStringFrom2, _params$42, _params$43;
|
|
122938
122961
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122939
122962
|
if (errors.length > 0) {
|
|
122940
122963
|
return errors;
|
|
122941
122964
|
}
|
|
122942
|
-
const exprParam = (_safeCastToStringFrom2 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
122965
|
+
const exprParam = (_safeCastToStringFrom2 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$42 = params[0]) === null || _params$42 === void 0 ? void 0 : _params$42.argument)) !== null && _safeCastToStringFrom2 !== void 0 ? _safeCastToStringFrom2 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$43 = params[0]) === null || _params$43 === void 0 ? void 0 : _params$43.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
122943
122966
|
if (exprParam == undefined) {
|
|
122944
122967
|
return ["Invalid parameter type for dateTime()"];
|
|
122945
122968
|
}
|
|
122946
122969
|
return new _CodeDom_Functions_DateTimeFunctionCall__WEBPACK_IMPORTED_MODULE_26__.DateTimeFunctionCall(exprParam);
|
|
122947
122970
|
};
|
|
122948
122971
|
const getDateTimeTicksKCLangFunction = params => {
|
|
122949
|
-
var _params$
|
|
122972
|
+
var _params$44;
|
|
122950
122973
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122951
122974
|
if (errors.length > 0) {
|
|
122952
122975
|
return errors;
|
|
122953
122976
|
}
|
|
122954
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122977
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$44 = params[0]) === null || _params$44 === void 0 ? void 0 : _params$44.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
122955
122978
|
if (argumentExpr == undefined) {
|
|
122956
122979
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122957
122980
|
}
|
|
122958
122981
|
return new _CodeDom_Functions_GetDateTimeTicksFunctionCall__WEBPACK_IMPORTED_MODULE_27__.GetDateTimeTicksFunctionCall(argumentExpr);
|
|
122959
122982
|
};
|
|
122960
122983
|
const getPicklistValuesKCLangFunction = params => {
|
|
122961
|
-
var _params$
|
|
122984
|
+
var _params$45, _safeCastExprToTypeOr3, _params$46, _params$47, _safeCastExprToTypeOr4, _params$48, _params$49, _params$50;
|
|
122962
122985
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 4));
|
|
122963
122986
|
if (errors.length > 0) {
|
|
122964
122987
|
return errors;
|
|
122965
122988
|
}
|
|
122966
|
-
const gIdParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122967
|
-
const filterColumnsParam = (_safeCastExprToTypeOr3 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122968
|
-
const filterValuesParam = (_safeCastExprToTypeOr4 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122969
|
-
const resultColumnParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
122989
|
+
const gIdParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$45 = params[0]) === null || _params$45 === void 0 ? void 0 : _params$45.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default);
|
|
122990
|
+
const filterColumnsParam = (_safeCastExprToTypeOr3 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$46 = params[1]) === null || _params$46 === void 0 ? void 0 : _params$46.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default)) !== null && _safeCastExprToTypeOr3 !== void 0 ? _safeCastExprToTypeOr3 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastArrayAsStringArray)((_params$47 = params[1]) === null || _params$47 === void 0 ? void 0 : _params$47.argument);
|
|
122991
|
+
const filterValuesParam = (_safeCastExprToTypeOr4 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$48 = params[2]) === null || _params$48 === void 0 ? void 0 : _params$48.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default)) !== null && _safeCastExprToTypeOr4 !== void 0 ? _safeCastExprToTypeOr4 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastArrayAsStringArray)((_params$49 = params[2]) === null || _params$49 === void 0 ? void 0 : _params$49.argument);
|
|
122992
|
+
const resultColumnParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$50 = params[3]) === null || _params$50 === void 0 ? void 0 : _params$50.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default);
|
|
122970
122993
|
if (gIdParam == undefined || filterColumnsParam == undefined || filterValuesParam == undefined || resultColumnParam == undefined) {
|
|
122971
122994
|
return ["Invalid parameter types for getPicklistValues()"];
|
|
122972
122995
|
}
|
|
122973
122996
|
return new _CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_28__.GetPicklistValuesFunctionCall(gIdParam, filterColumnsParam, filterValuesParam, resultColumnParam);
|
|
122974
122997
|
};
|
|
122975
122998
|
const getPropertyKCLangFunction = params => {
|
|
122976
|
-
var _params$
|
|
122999
|
+
var _params$51;
|
|
122977
123000
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122978
123001
|
if (errors.length > 0) {
|
|
122979
123002
|
return errors;
|
|
122980
123003
|
}
|
|
122981
|
-
const propertyNameParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123004
|
+
const propertyNameParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$51 = params[0]) === null || _params$51 === void 0 ? void 0 : _params$51.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default);
|
|
122982
123005
|
if (propertyNameParam == undefined) {
|
|
122983
123006
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122984
123007
|
}
|
|
122985
123008
|
return new _CodeDom_Functions_GetPropertyFunctionCall__WEBPACK_IMPORTED_MODULE_29__.GetPropertyFunctionCall(propertyNameParam);
|
|
122986
123009
|
};
|
|
122987
123010
|
const isEqualToAutoCalculatedKCLangFunction = params => {
|
|
122988
|
-
var _safeCast3, _params$
|
|
123011
|
+
var _safeCast3, _params$52, _params$53;
|
|
122989
123012
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
122990
123013
|
if (errors.length > 0) {
|
|
122991
123014
|
return errors;
|
|
122992
123015
|
}
|
|
122993
|
-
const argumentExpr = (_safeCast3 = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
123016
|
+
const argumentExpr = (_safeCast3 = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$52 = params[0]) === null || _params$52 === void 0 ? void 0 : _params$52.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression)) !== null && _safeCast3 !== void 0 ? _safeCast3 : (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$53 = params[0]) === null || _params$53 === void 0 ? void 0 : _params$53.argument, _CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_57__.CastExpression);
|
|
122994
123017
|
if (argumentExpr == undefined) {
|
|
122995
123018
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
122996
123019
|
}
|
|
122997
123020
|
return new _CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_30__.IsEqualToAutoCalculatedFunctionCall(argumentExpr);
|
|
122998
123021
|
};
|
|
122999
123022
|
const joinKCLangFunction = params => {
|
|
123000
|
-
var _params$
|
|
123023
|
+
var _params$54;
|
|
123001
123024
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123002
123025
|
if (errors.length > 0) {
|
|
123003
123026
|
return errors;
|
|
123004
123027
|
}
|
|
123005
|
-
const arrayParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123028
|
+
const arrayParam = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$54 = params[0]) === null || _params$54 === void 0 ? void 0 : _params$54.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default);
|
|
123006
123029
|
if (arrayParam == undefined) {
|
|
123007
123030
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123008
123031
|
}
|
|
123009
123032
|
return new _CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_31__.JoinFunctionCall(arrayParam);
|
|
123010
123033
|
};
|
|
123011
123034
|
const isRegNumSfrKCLangFunction = params => {
|
|
123012
|
-
var _params$
|
|
123035
|
+
var _params$55;
|
|
123013
123036
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123014
123037
|
if (errors.length > 0) {
|
|
123015
123038
|
return errors;
|
|
123016
123039
|
}
|
|
123017
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
123040
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$55 = params[0]) === null || _params$55 === void 0 ? void 0 : _params$55.argument);
|
|
123018
123041
|
if (argumentExpr == undefined) {
|
|
123019
123042
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123020
123043
|
}
|
|
123021
123044
|
return new _CodeDom_Functions_IsRegNumSfrFunctionCall__WEBPACK_IMPORTED_MODULE_33__.IsRegNumSfrFunctionCall(argumentExpr);
|
|
123022
123045
|
};
|
|
123023
123046
|
const isOgrnKCLangFunction = params => {
|
|
123024
|
-
var _params$
|
|
123047
|
+
var _params$56;
|
|
123025
123048
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123026
123049
|
if (errors.length > 0) {
|
|
123027
123050
|
return errors;
|
|
123028
123051
|
}
|
|
123029
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
123052
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$56 = params[0]) === null || _params$56 === void 0 ? void 0 : _params$56.argument);
|
|
123030
123053
|
if (argumentExpr == undefined) {
|
|
123031
123054
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123032
123055
|
}
|
|
123033
123056
|
return new _CodeDom_Functions_IsOgrnFunctionCall__WEBPACK_IMPORTED_MODULE_34__.IsOgrnFunctionCall(argumentExpr);
|
|
123034
123057
|
};
|
|
123035
123058
|
const firstOrDefaultKCLangFunction = params => {
|
|
123036
|
-
var _params$
|
|
123059
|
+
var _params$57;
|
|
123037
123060
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123038
123061
|
if (errors.length > 0) {
|
|
123039
123062
|
return errors;
|
|
123040
123063
|
}
|
|
123041
|
-
const argumentExpr = (_params$
|
|
123064
|
+
const argumentExpr = (_params$57 = params[0]) === null || _params$57 === void 0 ? void 0 : _params$57.argument;
|
|
123042
123065
|
if (argumentExpr == undefined) {
|
|
123043
123066
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123044
123067
|
}
|
|
123045
123068
|
return new _CodeDom_Functions_FirstOrDefaultFunctionCall__WEBPACK_IMPORTED_MODULE_35__.FirstOrDefaultFunctionCall(argumentExpr);
|
|
123046
123069
|
};
|
|
123047
123070
|
const nodepsKCLangFunction = params => {
|
|
123048
|
-
var _params$
|
|
123071
|
+
var _params$58;
|
|
123049
123072
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123050
123073
|
if (errors.length > 0) {
|
|
123051
123074
|
return errors;
|
|
123052
123075
|
}
|
|
123053
|
-
const argumentExpr = (_params$
|
|
123076
|
+
const argumentExpr = (_params$58 = params[0]) === null || _params$58 === void 0 ? void 0 : _params$58.argument;
|
|
123054
123077
|
if (argumentExpr == undefined) {
|
|
123055
123078
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123056
123079
|
}
|
|
123057
123080
|
return new _CodeDom_Functions_NodepsFunctionCall__WEBPACK_IMPORTED_MODULE_36__.NodepsFunctionCall(argumentExpr);
|
|
123058
123081
|
};
|
|
123059
123082
|
const hashSetKCLangFunction = params => {
|
|
123060
|
-
var _ref6, _safeCastExprToTypeOr5, _params$
|
|
123083
|
+
var _ref6, _safeCastExprToTypeOr5, _params$59, _params$60, _params$61;
|
|
123061
123084
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123062
123085
|
if (errors.length > 0) {
|
|
123063
123086
|
return errors;
|
|
123064
123087
|
}
|
|
123065
|
-
const argumentExpr = (_ref6 = (_safeCastExprToTypeOr5 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123088
|
+
const argumentExpr = (_ref6 = (_safeCastExprToTypeOr5 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$59 = params[0]) === null || _params$59 === void 0 ? void 0 : _params$59.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default)) !== null && _safeCastExprToTypeOr5 !== void 0 ? _safeCastExprToTypeOr5 : (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$60 = params[0]) === null || _params$60 === void 0 ? void 0 : _params$60.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default)) !== null && _ref6 !== void 0 ? _ref6 : (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$61 = params[0]) === null || _params$61 === void 0 ? void 0 : _params$61.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123066
123089
|
if (argumentExpr == undefined) {
|
|
123067
123090
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123068
123091
|
}
|
|
@@ -123087,225 +123110,225 @@ const arrayKCLangFunction = params => {
|
|
|
123087
123110
|
return new _CodeDom_Functions_ArrayFunctionCall__WEBPACK_IMPORTED_MODULE_38__.ArrayFunctionCall(...expressions.filter(expr => expr != undefined));
|
|
123088
123111
|
};
|
|
123089
123112
|
const instanceCountKCLangFunction = params => {
|
|
123090
|
-
var _params$
|
|
123113
|
+
var _params$62;
|
|
123091
123114
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123092
123115
|
if (errors.length > 0) {
|
|
123093
123116
|
return errors;
|
|
123094
123117
|
}
|
|
123095
|
-
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
123118
|
+
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$62 = params[0]) === null || _params$62 === void 0 ? void 0 : _params$62.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123096
123119
|
if (argumentExpr == undefined) {
|
|
123097
123120
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123098
123121
|
}
|
|
123099
123122
|
return new _CodeDom_Functions_InstanceCountFunctionCall__WEBPACK_IMPORTED_MODULE_39__.InstanceCountFunctionCall(argumentExpr);
|
|
123100
123123
|
};
|
|
123101
123124
|
const getDaysInMonthKCLangFunction = params => {
|
|
123102
|
-
var _safeCastExprToTypeOr6, _params$
|
|
123125
|
+
var _safeCastExprToTypeOr6, _params$63, _params$64;
|
|
123103
123126
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123104
123127
|
if (errors.length > 0) {
|
|
123105
123128
|
return errors;
|
|
123106
123129
|
}
|
|
123107
|
-
const argumentExpr = (_safeCastExprToTypeOr6 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123130
|
+
const argumentExpr = (_safeCastExprToTypeOr6 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$63 = params[0]) === null || _params$63 === void 0 ? void 0 : _params$63.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default)) !== null && _safeCastExprToTypeOr6 !== void 0 ? _safeCastExprToTypeOr6 : (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$64 = params[0]) === null || _params$64 === void 0 ? void 0 : _params$64.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123108
123131
|
if (argumentExpr == undefined) {
|
|
123109
123132
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123110
123133
|
}
|
|
123111
123134
|
return new _CodeDom_Functions_GetDaysInMonthFunctionCall__WEBPACK_IMPORTED_MODULE_40__.GetDaysInMonthFunctionCall(argumentExpr);
|
|
123112
123135
|
};
|
|
123113
123136
|
const getDayKCLangFunction = params => {
|
|
123114
|
-
var _params$
|
|
123137
|
+
var _params$65;
|
|
123115
123138
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123116
123139
|
if (errors.length > 0) {
|
|
123117
123140
|
return errors;
|
|
123118
123141
|
}
|
|
123119
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123142
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$65 = params[0]) === null || _params$65 === void 0 ? void 0 : _params$65.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123120
123143
|
if (argumentExpr == undefined) {
|
|
123121
123144
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123122
123145
|
}
|
|
123123
123146
|
return new _CodeDom_Functions_GetDayFunctionCall__WEBPACK_IMPORTED_MODULE_41__.GetDayFunctionCall(argumentExpr);
|
|
123124
123147
|
};
|
|
123125
123148
|
const getMonthKCLangFunction = params => {
|
|
123126
|
-
var _params$
|
|
123149
|
+
var _params$66;
|
|
123127
123150
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123128
123151
|
if (errors.length > 0) {
|
|
123129
123152
|
return errors;
|
|
123130
123153
|
}
|
|
123131
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123154
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$66 = params[0]) === null || _params$66 === void 0 ? void 0 : _params$66.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123132
123155
|
if (argumentExpr == undefined) {
|
|
123133
123156
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123134
123157
|
}
|
|
123135
123158
|
return new _CodeDom_Functions_GetMonthFunctionCall__WEBPACK_IMPORTED_MODULE_42__.GetMonthFunctionCall(argumentExpr);
|
|
123136
123159
|
};
|
|
123137
123160
|
const getYearKCLangFunction = params => {
|
|
123138
|
-
var _params$
|
|
123161
|
+
var _params$67;
|
|
123139
123162
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123140
123163
|
if (errors.length > 0) {
|
|
123141
123164
|
return errors;
|
|
123142
123165
|
}
|
|
123143
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123166
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$67 = params[0]) === null || _params$67 === void 0 ? void 0 : _params$67.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123144
123167
|
if (argumentExpr == undefined) {
|
|
123145
123168
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123146
123169
|
}
|
|
123147
123170
|
return new _CodeDom_Functions_GetYearFunctionCall__WEBPACK_IMPORTED_MODULE_43__.GetYearFunctionCall(argumentExpr);
|
|
123148
123171
|
};
|
|
123149
123172
|
const isDateKCLangFunction = params => {
|
|
123150
|
-
var _params$
|
|
123173
|
+
var _params$68;
|
|
123151
123174
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123152
123175
|
if (errors.length > 0) {
|
|
123153
123176
|
return errors;
|
|
123154
123177
|
}
|
|
123155
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
123178
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$68 = params[0]) === null || _params$68 === void 0 ? void 0 : _params$68.argument);
|
|
123156
123179
|
if (argumentExpr == undefined) {
|
|
123157
123180
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123158
123181
|
}
|
|
123159
123182
|
return new _CodeDom_Functions_IsDateFunctionCall__WEBPACK_IMPORTED_MODULE_44__.IsDateFunctionCall(argumentExpr);
|
|
123160
123183
|
};
|
|
123161
123184
|
const differenceInMonthsKCLangFunction = params => {
|
|
123162
|
-
var _params$
|
|
123185
|
+
var _params$69, _params$70;
|
|
123163
123186
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123164
123187
|
if (errors.length > 0) {
|
|
123165
123188
|
return errors;
|
|
123166
123189
|
}
|
|
123167
|
-
const startDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123168
|
-
const endDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123190
|
+
const startDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$69 = params[0]) === null || _params$69 === void 0 ? void 0 : _params$69.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123191
|
+
const endDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$70 = params[1]) === null || _params$70 === void 0 ? void 0 : _params$70.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123169
123192
|
if (startDateExpr == undefined || endDateExpr == undefined) {
|
|
123170
123193
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123171
123194
|
}
|
|
123172
123195
|
return new _CodeDom_Functions_DifferenceInMonthsFunctionCall__WEBPACK_IMPORTED_MODULE_45__.DifferenceInMonthsFunctionCall(startDateExpr, endDateExpr);
|
|
123173
123196
|
};
|
|
123174
123197
|
const differenceInDaysKCLangFunction = params => {
|
|
123175
|
-
var _safeCastExprToTypeOr7, _params$
|
|
123198
|
+
var _safeCastExprToTypeOr7, _params$71, _params$72, _safeCastExprToTypeOr8, _params$73, _params$74;
|
|
123176
123199
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123177
123200
|
if (errors.length > 0) {
|
|
123178
123201
|
return errors;
|
|
123179
123202
|
}
|
|
123180
|
-
const startDateExpr = (_safeCastExprToTypeOr7 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123181
|
-
const endDateExpr = (_safeCastExprToTypeOr8 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123203
|
+
const startDateExpr = (_safeCastExprToTypeOr7 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$71 = params[0]) === null || _params$71 === void 0 ? void 0 : _params$71.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default)) !== null && _safeCastExprToTypeOr7 !== void 0 ? _safeCastExprToTypeOr7 : (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$72 = params[0]) === null || _params$72 === void 0 ? void 0 : _params$72.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123204
|
+
const endDateExpr = (_safeCastExprToTypeOr8 = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$73 = params[1]) === null || _params$73 === void 0 ? void 0 : _params$73.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default)) !== null && _safeCastExprToTypeOr8 !== void 0 ? _safeCastExprToTypeOr8 : (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$74 = params[1]) === null || _params$74 === void 0 ? void 0 : _params$74.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123182
123205
|
if (startDateExpr == undefined || endDateExpr == undefined) {
|
|
123183
123206
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123184
123207
|
}
|
|
123185
123208
|
return new _CodeDom_Functions_DifferenceInDaysFunctionCall__WEBPACK_IMPORTED_MODULE_46__.DifferenceInDaysFunctionCall(startDateExpr, endDateExpr);
|
|
123186
123209
|
};
|
|
123187
123210
|
const sumOfDayWeightsKCLangFunction = params => {
|
|
123188
|
-
var _params$
|
|
123211
|
+
var _params$75, _params$76;
|
|
123189
123212
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123190
123213
|
if (errors.length > 0) {
|
|
123191
123214
|
return errors;
|
|
123192
123215
|
}
|
|
123193
|
-
const startDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123194
|
-
const endDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123216
|
+
const startDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$75 = params[0]) === null || _params$75 === void 0 ? void 0 : _params$75.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123217
|
+
const endDateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$76 = params[1]) === null || _params$76 === void 0 ? void 0 : _params$76.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123195
123218
|
if (startDateExpr == undefined || endDateExpr == undefined) {
|
|
123196
123219
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123197
123220
|
}
|
|
123198
123221
|
return new _CodeDom_Functions_SumOfDayWeightsFunctionCall__WEBPACK_IMPORTED_MODULE_47__.SumOfDayWeightsFunctionCall(startDateExpr, endDateExpr);
|
|
123199
123222
|
};
|
|
123200
123223
|
const addDaysKCLangFunction = params => {
|
|
123201
|
-
var _params$
|
|
123224
|
+
var _params$77, _params$78;
|
|
123202
123225
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123203
123226
|
if (errors.length > 0) {
|
|
123204
123227
|
return errors;
|
|
123205
123228
|
}
|
|
123206
|
-
const dateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123207
|
-
const daysExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123229
|
+
const dateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$77 = params[0]) === null || _params$77 === void 0 ? void 0 : _params$77.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123230
|
+
const daysExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$78 = params[1]) === null || _params$78 === void 0 ? void 0 : _params$78.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
123208
123231
|
if (dateExpr == undefined || daysExpr == undefined) {
|
|
123209
123232
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123210
123233
|
}
|
|
123211
123234
|
return new _CodeDom_Functions_AddDaysFunctionCall__WEBPACK_IMPORTED_MODULE_48__.AddDaysFunctionCall(dateExpr, daysExpr);
|
|
123212
123235
|
};
|
|
123213
123236
|
const addMonthsKCLangFunction = params => {
|
|
123214
|
-
var _params$
|
|
123237
|
+
var _params$79, _params$80;
|
|
123215
123238
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123216
123239
|
if (errors.length > 0) {
|
|
123217
123240
|
return errors;
|
|
123218
123241
|
}
|
|
123219
|
-
const dateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123220
|
-
const monthsExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123242
|
+
const dateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$79 = params[0]) === null || _params$79 === void 0 ? void 0 : _params$79.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123243
|
+
const monthsExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$80 = params[1]) === null || _params$80 === void 0 ? void 0 : _params$80.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
123221
123244
|
if (dateExpr == undefined || monthsExpr == undefined) {
|
|
123222
123245
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123223
123246
|
}
|
|
123224
123247
|
return new _CodeDom_Functions_AddMonthsFunctionCall__WEBPACK_IMPORTED_MODULE_49__.AddMonthsFunctionCall(dateExpr, monthsExpr);
|
|
123225
123248
|
};
|
|
123226
123249
|
const addYearsKCLangFunction = params => {
|
|
123227
|
-
var _params$
|
|
123250
|
+
var _params$81, _params$82;
|
|
123228
123251
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123229
123252
|
if (errors.length > 0) {
|
|
123230
123253
|
return errors;
|
|
123231
123254
|
}
|
|
123232
|
-
const dateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123233
|
-
const yearsExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123255
|
+
const dateExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$81 = params[0]) === null || _params$81 === void 0 ? void 0 : _params$81.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123256
|
+
const yearsExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$82 = params[1]) === null || _params$82 === void 0 ? void 0 : _params$82.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
123234
123257
|
if (dateExpr == undefined || yearsExpr == undefined) {
|
|
123235
123258
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123236
123259
|
}
|
|
123237
123260
|
return new _CodeDom_Functions_AddYearsFunctionCall__WEBPACK_IMPORTED_MODULE_50__.AddYearsFunctionCall(dateExpr, yearsExpr);
|
|
123238
123261
|
};
|
|
123239
123262
|
const dateToStringKCLangFunction = params => {
|
|
123240
|
-
var _params$
|
|
123263
|
+
var _params$83, _params$84;
|
|
123241
123264
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1, 1));
|
|
123242
123265
|
if (errors.length > 0) {
|
|
123243
123266
|
return errors;
|
|
123244
123267
|
}
|
|
123245
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123246
|
-
const format = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123268
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$83 = params[0]) === null || _params$83 === void 0 ? void 0 : _params$83.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DateType.default);
|
|
123269
|
+
const format = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$84 = params[1]) === null || _params$84 === void 0 ? void 0 : _params$84.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringType.default);
|
|
123247
123270
|
if (argumentExpr == undefined) {
|
|
123248
123271
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123249
123272
|
}
|
|
123250
123273
|
return new _CodeDom_Functions_DateToStringFunctionCall__WEBPACK_IMPORTED_MODULE_51__.DateToStringFunctionCall(argumentExpr, format);
|
|
123251
123274
|
};
|
|
123252
123275
|
const hasAutoFlagKCLangFunction = params => {
|
|
123253
|
-
var _params$
|
|
123276
|
+
var _params$85;
|
|
123254
123277
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123255
123278
|
if (errors.length > 0) {
|
|
123256
123279
|
return errors;
|
|
123257
123280
|
}
|
|
123258
|
-
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
123281
|
+
const argumentExpr = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$85 = params[0]) === null || _params$85 === void 0 ? void 0 : _params$85.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123259
123282
|
if (argumentExpr == undefined) {
|
|
123260
123283
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123261
123284
|
}
|
|
123262
123285
|
return new _CodeDom_Functions_HasAutoFlagFunctionCall__WEBPACK_IMPORTED_MODULE_52__.HasAutoFlagFunctionCall(argumentExpr);
|
|
123263
123286
|
};
|
|
123264
123287
|
const makeDictKCLangFunction = params => {
|
|
123265
|
-
var _params$
|
|
123288
|
+
var _params$86, _params$87;
|
|
123266
123289
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123267
123290
|
if (errors.length > 0) {
|
|
123268
123291
|
return errors;
|
|
123269
123292
|
}
|
|
123270
|
-
const sourceKeyPath = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
123271
|
-
const sourceValuePath = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123293
|
+
const sourceKeyPath = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$86 = params[0]) === null || _params$86 === void 0 ? void 0 : _params$86.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123294
|
+
const sourceValuePath = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$87 = params[1]) === null || _params$87 === void 0 ? void 0 : _params$87.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.DecimalType.default);
|
|
123272
123295
|
if (sourceKeyPath == undefined || sourceValuePath == undefined) {
|
|
123273
123296
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123274
123297
|
}
|
|
123275
123298
|
return new _CodeDom_Functions_MakeDictFunctionCall__WEBPACK_IMPORTED_MODULE_53__.MakeDictFunctionCall(sourceKeyPath, sourceValuePath);
|
|
123276
123299
|
};
|
|
123277
123300
|
const getSumByKeysKCLangFunction = params => {
|
|
123278
|
-
var _params$
|
|
123301
|
+
var _params$88, _params$89;
|
|
123279
123302
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 2));
|
|
123280
123303
|
if (errors.length > 0) {
|
|
123281
123304
|
return errors;
|
|
123282
123305
|
}
|
|
123283
|
-
const dictPath = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$
|
|
123284
|
-
const targetKeys = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$
|
|
123306
|
+
const dictPath = (0,_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)((_params$88 = params[0]) === null || _params$88 === void 0 ? void 0 : _params$88.argument, _CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_11__.ValueReferenceExpression);
|
|
123307
|
+
const targetKeys = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastExprToTypeOrConvertValueRef)((_params$89 = params[1]) === null || _params$89 === void 0 ? void 0 : _params$89.argument, _CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_0__.StringArrayType.default);
|
|
123285
123308
|
if (dictPath == undefined || targetKeys == undefined) {
|
|
123286
123309
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123287
123310
|
}
|
|
123288
123311
|
return new _CodeDom_Functions_GetSumByKeysFunctionCall__WEBPACK_IMPORTED_MODULE_54__.GetSumByKeysFunctionCall(dictPath, targetKeys);
|
|
123289
123312
|
};
|
|
123290
123313
|
const numeratorKCLangFunction = params => {
|
|
123291
|
-
var _params$
|
|
123314
|
+
var _params$90;
|
|
123292
123315
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123293
123316
|
if (errors.length > 0) {
|
|
123294
123317
|
return errors;
|
|
123295
123318
|
}
|
|
123296
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
123319
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$90 = params[0]) === null || _params$90 === void 0 ? void 0 : _params$90.argument);
|
|
123297
123320
|
if (argumentExpr == undefined) {
|
|
123298
123321
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123299
123322
|
}
|
|
123300
123323
|
return new _CodeDom_Functions_NumeratorFunctionCall__WEBPACK_IMPORTED_MODULE_55__.NumeratorFunctionCall(argumentExpr);
|
|
123301
123324
|
};
|
|
123302
123325
|
const denominatorKCLangFunction = params => {
|
|
123303
|
-
var _params$
|
|
123326
|
+
var _params$91;
|
|
123304
123327
|
const errors = Array.from((0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.validateParams)(params, 1));
|
|
123305
123328
|
if (errors.length > 0) {
|
|
123306
123329
|
return errors;
|
|
123307
123330
|
}
|
|
123308
|
-
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$
|
|
123331
|
+
const argumentExpr = (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.safeCastToStringFromExprOrValueRef)((_params$91 = params[0]) === null || _params$91 === void 0 ? void 0 : _params$91.argument);
|
|
123309
123332
|
if (argumentExpr == undefined) {
|
|
123310
123333
|
return (0,_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_23__.defaultArgumentErrors)();
|
|
123311
123334
|
}
|
|
@@ -125927,12 +125950,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
125927
125950
|
|
|
125928
125951
|
|
|
125929
125952
|
class RegexMatchFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
125930
|
-
constructor(expr, pattern) {
|
|
125931
|
-
|
|
125953
|
+
constructor(expr, pattern, flags) {
|
|
125954
|
+
const params = flags ? [expr, pattern, flags] : [expr, pattern];
|
|
125955
|
+
super("regexMatch", params, _KCLangType__WEBPACK_IMPORTED_MODULE_1__.BoolType.default);
|
|
125932
125956
|
this.argument = void 0;
|
|
125933
125957
|
this.patternExpression = void 0;
|
|
125958
|
+
this.flags = void 0;
|
|
125934
125959
|
this.argument = expr;
|
|
125935
125960
|
this.patternExpression = pattern;
|
|
125961
|
+
this.flags = flags;
|
|
125936
125962
|
}
|
|
125937
125963
|
}
|
|
125938
125964
|
|
|
@@ -127624,6 +127650,10 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
127624
127650
|
case "property":
|
|
127625
127651
|
visitor.visitGetPropertyByNameNode(node);
|
|
127626
127652
|
break;
|
|
127653
|
+
case "getExternalInfo":
|
|
127654
|
+
traverseKCLangExpression(node.key, visitor);
|
|
127655
|
+
visitor.visitGetExternalInfoKCLangNode(node);
|
|
127656
|
+
break;
|
|
127627
127657
|
case "numerator":
|
|
127628
127658
|
visitor.visitNumeratorKCLangNode(node);
|
|
127629
127659
|
break;
|
|
@@ -127819,6 +127849,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
127819
127849
|
visitJoinKCLangNode(_node) {
|
|
127820
127850
|
// default empty implementation
|
|
127821
127851
|
}
|
|
127852
|
+
visitGetExternalInfoKCLangNode(_node) {
|
|
127853
|
+
// default empty implementation
|
|
127854
|
+
}
|
|
127822
127855
|
visitGetPropertyByNameNode(_node) {
|
|
127823
127856
|
// default empty implementation
|
|
127824
127857
|
}
|
|
@@ -128000,7 +128033,9 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
128000
128033
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
128001
128034
|
const regexpName = gn(x => x.regexMatch);
|
|
128002
128035
|
const pattern = expression.pattern.replace('"', '"');
|
|
128003
|
-
|
|
128036
|
+
const flags = expression.flags;
|
|
128037
|
+
const flagsArg = flags != null && flags !== "[undefined]" ? `, "${flags}"` : "";
|
|
128038
|
+
return `${utilsName}.${regexpName}("${pattern}", ${generateJsExpression(expression.expression)}${flagsArg})`;
|
|
128004
128039
|
}
|
|
128005
128040
|
case "regexReplace":
|
|
128006
128041
|
{
|
|
@@ -128186,6 +128221,7 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
128186
128221
|
case "getSumByKeys":
|
|
128187
128222
|
case "join":
|
|
128188
128223
|
case "getDateTimeTicks":
|
|
128224
|
+
case "getExternalInfo":
|
|
128189
128225
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
128190
128226
|
default:
|
|
128191
128227
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
@@ -128342,7 +128378,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
128342
128378
|
{
|
|
128343
128379
|
const escapedPattern = escapeHtmlCharacters(expression.pattern);
|
|
128344
128380
|
const pattern = escapedPattern.match(/[\^\$]/g) != undefined ? escapedPattern : `^(${escapedPattern})$`;
|
|
128345
|
-
|
|
128381
|
+
const flagsAttr = expression.flags ? ` flags="${expression.flags}"` : "";
|
|
128382
|
+
return [`<m:regexMatch pattern="${pattern}"${flagsAttr}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:regexMatch>`].join("\n");
|
|
128346
128383
|
}
|
|
128347
128384
|
case "regexReplace":
|
|
128348
128385
|
{
|
|
@@ -128373,6 +128410,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
128373
128410
|
return [`<m:join>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.array, prefixPath), 2), `</m:join>`].join("\n");
|
|
128374
128411
|
case "property":
|
|
128375
128412
|
return `<m:property name="${expression.name}" />`;
|
|
128413
|
+
case "getExternalInfo":
|
|
128414
|
+
return [`<m:getExternalInfo>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.key, prefixPath), 1), `</m:getExternalInfo>`].join("\n");
|
|
128376
128415
|
case "oneof":
|
|
128377
128416
|
{
|
|
128378
128417
|
const testExpr = generateKCXmlExpression(expression.testExpression, prefixPath);
|
|
@@ -133618,16 +133657,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
133618
133657
|
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
133619
133658
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../Common/Errors */ "./Common/Errors.ts");
|
|
133620
133659
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
133621
|
-
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
133622
|
-
|
|
133623
133660
|
|
|
133624
133661
|
|
|
133625
133662
|
|
|
133626
133663
|
|
|
133627
133664
|
|
|
133628
133665
|
class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.KCXmlGeneratorBase {
|
|
133629
|
-
constructor(schema, dataDeclarationHelper, extendedSchemaInfo) {
|
|
133630
|
-
super(schema, extendedSchemaInfo);
|
|
133666
|
+
constructor(schema, dataDeclarationHelper, extendedSchemaInfo, attachmentLegacyPaths = []) {
|
|
133667
|
+
super(schema, extendedSchemaInfo, attachmentLegacyPaths);
|
|
133631
133668
|
this.dataDeclarationHelper = void 0;
|
|
133632
133669
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
133633
133670
|
}
|
|
@@ -133654,7 +133691,7 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
|
|
|
133654
133691
|
}
|
|
133655
133692
|
compileFormula(formula, options) {
|
|
133656
133693
|
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(formula.match), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
|
|
133657
|
-
const target =
|
|
133694
|
+
const target = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(formula.target), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
133658
133695
|
const dependencies = [];
|
|
133659
133696
|
const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, formula.expression, dependencies);
|
|
133660
133697
|
if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_3__.NotSupportedError) {
|
|
@@ -134608,6 +134645,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134608
134645
|
/* harmony export */ FormulaGetDateTimeTicksExpression: () => (/* binding */ FormulaGetDateTimeTicksExpression),
|
|
134609
134646
|
/* harmony export */ FormulaGetDayExpression: () => (/* binding */ FormulaGetDayExpression),
|
|
134610
134647
|
/* harmony export */ FormulaGetDaysInMonthExpression: () => (/* binding */ FormulaGetDaysInMonthExpression),
|
|
134648
|
+
/* harmony export */ FormulaGetExternalInfoExpression: () => (/* binding */ FormulaGetExternalInfoExpression),
|
|
134611
134649
|
/* harmony export */ FormulaGetMonthExpression: () => (/* binding */ FormulaGetMonthExpression),
|
|
134612
134650
|
/* harmony export */ FormulaGetPicklistValuesExpression: () => (/* binding */ FormulaGetPicklistValuesExpression),
|
|
134613
134651
|
/* harmony export */ FormulaGetSumByKeysExpression: () => (/* binding */ FormulaGetSumByKeysExpression),
|
|
@@ -134669,7 +134707,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134669
134707
|
|
|
134670
134708
|
|
|
134671
134709
|
|
|
134672
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10,
|
|
134710
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _dec20, _class16, _class17, _descriptor9, _descriptor10, _descriptor11, _dec21, _dec22, _dec23, _dec24, _dec25, _class18, _class19, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _dec26, _dec27, _class20, _class21, _descriptor16, _dec28, _dec29, _class22, _class23, _descriptor17, _dec30, _dec31, _class24, _class25, _descriptor18, _dec32, _dec33, _class26, _class27, _descriptor19, _dec34, _dec35, _class28, _class29, _descriptor20, _dec36, _dec37, _class30, _class31, _descriptor21, _dec38, _dec39, _class32, _class33, _descriptor22, _dec40, _dec41, _class34, _class35, _descriptor23, _dec42, _dec43, _class36, _class37, _descriptor24, _dec44, _dec45, _dec46, _dec47, _class38, _class39, _descriptor25, _descriptor26, _descriptor27, _dec48, _dec49, _class40, _class41, _descriptor28, _dec50, _dec51, _class42, _class43, _descriptor29, _dec52, _dec53, _dec54, _class44, _class45, _descriptor30, _descriptor31, _dec55, _dec56, _class46, _class47, _descriptor32, _dec57, _dec58, _class48, _class49, _descriptor33, _dec59, _dec60, _class50, _class51, _descriptor34, _dec61, _dec62, _class52, _class53, _descriptor35, _dec63, _dec64, _dec65, _class54, _class55, _descriptor36, _descriptor37, _dec66, _dec67, _dec68, _dec69, _class56, _class57, _descriptor38, _descriptor39, _descriptor40, _dec70, _dec71, _dec72, _class58, _class59, _descriptor41, _descriptor42, _dec73, _class60, _dec74, _dec75, _class61, _class62, _descriptor43, _dec76, _dec77, _class63, _class64, _descriptor44, _dec78, _dec79, _class65, _class66, _descriptor45, _dec80, _dec81, _class67, _class68, _descriptor46, _dec82, _dec83, _class69, _class70, _descriptor47, _dec84, _dec85, _class71, _class72, _descriptor48, _dec86, _dec87, _class73, _class74, _descriptor49, _dec88, _dec89, _class75, _class76, _descriptor50, _dec90, _dec91, _dec92, _class77, _class78, _descriptor51, _descriptor52, _dec93, _dec94, _dec95, _class79, _class80, _descriptor53, _descriptor54, _dec96, _dec97, _dec98, _class81, _class82, _descriptor55, _descriptor56, _dec99, _dec100, _dec101, _class83, _class84, _descriptor57, _descriptor58, _dec102, _dec103, _class85, _class86, _descriptor59, _dec104, _dec105, _class87, _class88, _descriptor60, _dec106, _dec107, _class89, _class90, _descriptor61, _dec108, _dec109, _class91, _class92, _descriptor62, _dec110, _dec111, _class93, _class94, _descriptor63, _dec112, _dec113, _class95, _class96, _descriptor64, _dec114, _dec115, _class97, _class98, _descriptor65, _dec116, _dec117, _class99, _class100, _descriptor66, _dec118, _dec119, _class101, _class102, _descriptor67, _dec120, _dec121, _dec122, _class103, _class104, _descriptor68, _descriptor69, _dec123, _dec124, _dec125, _class105, _class106, _descriptor70, _descriptor71, _dec126, _dec127, _class107, _class108, _descriptor72, _dec128, _dec129, _class109, _class110, _descriptor73, _dec130, _dec131, _class111, _class112, _descriptor74, _dec132, _dec133, _dec134, _dec135, _dec136, _class113, _class114, _descriptor75, _descriptor76, _descriptor77, _descriptor78, _dec137, _dec138, _class115, _class116, _descriptor79, _dec139, _dec140, _class117, _class118, _descriptor80, _dec141, _dec142, _class119, _class120, _descriptor81, _dec143, _dec144, _class121, _class122, _descriptor82, _dec145, _dec146, _dec147, _class123, _class124, _descriptor83, _descriptor84, _dec148, _dec149, _class125, _class126, _descriptor85, _dec150, _dec151, _dec152, _class127, _class128, _descriptor86, _descriptor87, _dec153, _dec154, _class129, _class130, _descriptor88, _dec155, _dec156, _class131, _class132, _descriptor89, _dec157, _dec158, _class133, _class134, _descriptor90, _dec159, _dec160, _class135, _class136, _descriptor91, _dec161, _class137, _dec162, _dec163, _dec164, _dec165, _class138, _class139, _descriptor92, _descriptor93, _descriptor94, _dec166, _dec167, _class140, _class141, _descriptor95, _dec168, _dec169, _class142, _class143, _descriptor96, _dec170, _dec171, _dec172, _dec173, _dec174, _dec175, _class144, _class145, _descriptor97, _descriptor98, _descriptor99, _descriptor100, _descriptor101, _dec176, _dec177, _class146, _class147, _descriptor102, _dec178, _dec179, _dec180, _class148, _class149, _descriptor103, _descriptor104, _dec181, _dec182, _dec183, _class150, _class151, _descriptor105, _descriptor106, _dec184, _dec185, _dec186, _class152, _class153, _descriptor107, _descriptor108, _dec187, _dec188, _dec189, _dec190, _class154, _class155, _descriptor109, _descriptor110, _descriptor111, _dec191, _dec192, _dec193, _class156, _class157, _descriptor112, _descriptor113, _dec194, _dec195, _class158, _class159, _descriptor114, _dec196, _dec197, _class160, _class161, _descriptor115, _dec198, _dec199, _class162, _class163, _descriptor116, _dec200, _class164;
|
|
134673
134711
|
|
|
134674
134712
|
|
|
134675
134713
|
|
|
@@ -134786,11 +134824,12 @@ let FormulaOneOfExpression = (_dec14 = (0,_markupGenerator_Serializer_SugarSeria
|
|
|
134786
134824
|
writable: true,
|
|
134787
134825
|
initializer: null
|
|
134788
134826
|
}), _class15)) || _class14);
|
|
134789
|
-
let FormulaRegexMatchExpression = (_dec17 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("regexmatch",
|
|
134827
|
+
let FormulaRegexMatchExpression = (_dec17 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("regexmatch", `Соответствие строки паттерну`), _dec18 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec19 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("pattern", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `regExp`), _dec20 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("flags", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `regExp флаги`), _dec17(_class16 = (_class17 = class FormulaRegexMatchExpression extends FormulaExpression {
|
|
134790
134828
|
constructor(...args) {
|
|
134791
134829
|
super(...args);
|
|
134792
134830
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor9, this);
|
|
134793
134831
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pattern", _descriptor10, this);
|
|
134832
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "flags", _descriptor11, this);
|
|
134794
134833
|
}
|
|
134795
134834
|
getLegacyExpressionTypeForFunctionName() {
|
|
134796
134835
|
return "regexMatch";
|
|
@@ -134805,283 +134844,288 @@ let FormulaRegexMatchExpression = (_dec17 = (0,_markupGenerator_Serializer_Sugar
|
|
|
134805
134844
|
enumerable: true,
|
|
134806
134845
|
writable: true,
|
|
134807
134846
|
initializer: null
|
|
134847
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class17.prototype, "flags", [_dec20], {
|
|
134848
|
+
configurable: true,
|
|
134849
|
+
enumerable: true,
|
|
134850
|
+
writable: true,
|
|
134851
|
+
initializer: null
|
|
134808
134852
|
}), _class17)) || _class16);
|
|
134809
|
-
let FormulaRegexReplaceExpression = (
|
|
134853
|
+
let FormulaRegexReplaceExpression = (_dec21 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("regexreplace", `Заменить текст через regex`), _dec22 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec23 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("pattern", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `regExp`), _dec24 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("replacement", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `строка для замены`), _dec25 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("flags", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `regExp флаги`), _dec21(_class18 = (_class19 = class FormulaRegexReplaceExpression extends FormulaExpression {
|
|
134810
134854
|
constructor(...args) {
|
|
134811
134855
|
super(...args);
|
|
134812
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
134813
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pattern",
|
|
134814
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "replacement",
|
|
134815
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "flags",
|
|
134856
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor12, this);
|
|
134857
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pattern", _descriptor13, this);
|
|
134858
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "replacement", _descriptor14, this);
|
|
134859
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "flags", _descriptor15, this);
|
|
134816
134860
|
}
|
|
134817
|
-
},
|
|
134861
|
+
}, _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class19.prototype, "argument", [_dec22], {
|
|
134818
134862
|
configurable: true,
|
|
134819
134863
|
enumerable: true,
|
|
134820
134864
|
writable: true,
|
|
134821
134865
|
initializer: null
|
|
134822
|
-
}),
|
|
134866
|
+
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class19.prototype, "pattern", [_dec23], {
|
|
134823
134867
|
configurable: true,
|
|
134824
134868
|
enumerable: true,
|
|
134825
134869
|
writable: true,
|
|
134826
134870
|
initializer: null
|
|
134827
|
-
}),
|
|
134871
|
+
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class19.prototype, "replacement", [_dec24], {
|
|
134828
134872
|
configurable: true,
|
|
134829
134873
|
enumerable: true,
|
|
134830
134874
|
writable: true,
|
|
134831
134875
|
initializer: null
|
|
134832
|
-
}),
|
|
134876
|
+
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class19.prototype, "flags", [_dec25], {
|
|
134833
134877
|
configurable: true,
|
|
134834
134878
|
enumerable: true,
|
|
134835
134879
|
writable: true,
|
|
134836
134880
|
initializer: null
|
|
134837
134881
|
}), _class19)) || _class18);
|
|
134838
|
-
let FormulaLengthExpression = (
|
|
134882
|
+
let FormulaLengthExpression = (_dec26 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("length", `TODO`), _dec27 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec26(_class20 = (_class21 = class FormulaLengthExpression extends FormulaExpression {
|
|
134839
134883
|
constructor(...args) {
|
|
134840
134884
|
super(...args);
|
|
134841
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
134885
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor16, this);
|
|
134842
134886
|
}
|
|
134843
134887
|
getLegacyExpressionTypeForFunctionName() {
|
|
134844
134888
|
return "length";
|
|
134845
134889
|
}
|
|
134846
|
-
},
|
|
134890
|
+
}, _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class21.prototype, "argument", [_dec27], {
|
|
134847
134891
|
configurable: true,
|
|
134848
134892
|
enumerable: true,
|
|
134849
134893
|
writable: true,
|
|
134850
134894
|
initializer: null
|
|
134851
134895
|
}), _class21)) || _class20);
|
|
134852
|
-
let FormulaLtExpression = (
|
|
134896
|
+
let FormulaLtExpression = (_dec28 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("lt", `TODO`), _dec29 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec28(_class22 = (_class23 = class FormulaLtExpression extends FormulaExpression {
|
|
134853
134897
|
constructor(...args) {
|
|
134854
134898
|
super(...args);
|
|
134855
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
134899
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor17, this);
|
|
134856
134900
|
}
|
|
134857
134901
|
getLegacyExpressionTypeForFunctionName() {
|
|
134858
134902
|
return "lt";
|
|
134859
134903
|
}
|
|
134860
|
-
},
|
|
134904
|
+
}, _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class23.prototype, "arguments", [_dec29], {
|
|
134861
134905
|
configurable: true,
|
|
134862
134906
|
enumerable: true,
|
|
134863
134907
|
writable: true,
|
|
134864
134908
|
initializer: null
|
|
134865
134909
|
}), _class23)) || _class22);
|
|
134866
|
-
let FormulaGeExpression = (
|
|
134910
|
+
let FormulaGeExpression = (_dec30 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("ge", `TODO`), _dec31 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec30(_class24 = (_class25 = class FormulaGeExpression extends FormulaExpression {
|
|
134867
134911
|
constructor(...args) {
|
|
134868
134912
|
super(...args);
|
|
134869
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
134913
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor18, this);
|
|
134870
134914
|
}
|
|
134871
134915
|
getLegacyExpressionTypeForFunctionName() {
|
|
134872
134916
|
return "ge";
|
|
134873
134917
|
}
|
|
134874
|
-
},
|
|
134918
|
+
}, _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class25.prototype, "arguments", [_dec31], {
|
|
134875
134919
|
configurable: true,
|
|
134876
134920
|
enumerable: true,
|
|
134877
134921
|
writable: true,
|
|
134878
134922
|
initializer: null
|
|
134879
134923
|
}), _class25)) || _class24);
|
|
134880
|
-
let FormulaLeExpression = (
|
|
134924
|
+
let FormulaLeExpression = (_dec32 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("le", `TODO`), _dec33 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec32(_class26 = (_class27 = class FormulaLeExpression extends FormulaExpression {
|
|
134881
134925
|
constructor(...args) {
|
|
134882
134926
|
super(...args);
|
|
134883
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
134927
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor19, this);
|
|
134884
134928
|
}
|
|
134885
134929
|
getLegacyExpressionTypeForFunctionName() {
|
|
134886
134930
|
return "le";
|
|
134887
134931
|
}
|
|
134888
|
-
},
|
|
134932
|
+
}, _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class27.prototype, "arguments", [_dec33], {
|
|
134889
134933
|
configurable: true,
|
|
134890
134934
|
enumerable: true,
|
|
134891
134935
|
writable: true,
|
|
134892
134936
|
initializer: null
|
|
134893
134937
|
}), _class27)) || _class26);
|
|
134894
|
-
let FormulaNotExpression = (
|
|
134938
|
+
let FormulaNotExpression = (_dec34 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("not", `TODO`), _dec35 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec34(_class28 = (_class29 = class FormulaNotExpression extends FormulaExpression {
|
|
134895
134939
|
constructor(...args) {
|
|
134896
134940
|
super(...args);
|
|
134897
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument",
|
|
134941
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "argument", _descriptor20, this);
|
|
134898
134942
|
}
|
|
134899
134943
|
getLegacyExpressionTypeForFunctionName() {
|
|
134900
134944
|
return "not";
|
|
134901
134945
|
}
|
|
134902
|
-
},
|
|
134946
|
+
}, _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class29.prototype, "argument", [_dec35], {
|
|
134903
134947
|
configurable: true,
|
|
134904
134948
|
enumerable: true,
|
|
134905
134949
|
writable: true,
|
|
134906
134950
|
initializer: null
|
|
134907
134951
|
}), _class29)) || _class28);
|
|
134908
|
-
let FormulaEqExpression = (
|
|
134952
|
+
let FormulaEqExpression = (_dec36 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("eq", `TODO`), _dec37 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec36(_class30 = (_class31 = class FormulaEqExpression extends FormulaExpression {
|
|
134909
134953
|
constructor(...args) {
|
|
134910
134954
|
super(...args);
|
|
134911
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
134955
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor21, this);
|
|
134912
134956
|
}
|
|
134913
134957
|
getLegacyExpressionTypeForFunctionName() {
|
|
134914
134958
|
return "eq";
|
|
134915
134959
|
}
|
|
134916
|
-
},
|
|
134960
|
+
}, _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class31.prototype, "arguments", [_dec37], {
|
|
134917
134961
|
configurable: true,
|
|
134918
134962
|
enumerable: true,
|
|
134919
134963
|
writable: true,
|
|
134920
134964
|
initializer: null
|
|
134921
134965
|
}), _class31)) || _class30);
|
|
134922
|
-
let FormulaChooseIfExpression = (
|
|
134966
|
+
let FormulaChooseIfExpression = (_dec38 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("if", `TODO`), _dec39 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec38(_class32 = (_class33 = class FormulaChooseIfExpression extends FormulaExpression {
|
|
134923
134967
|
constructor(...args) {
|
|
134924
134968
|
super(...args);
|
|
134925
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition",
|
|
134969
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "condition", _descriptor22, this);
|
|
134926
134970
|
}
|
|
134927
134971
|
getLegacyExpressionTypeForFunctionName() {
|
|
134928
134972
|
return "if";
|
|
134929
134973
|
}
|
|
134930
|
-
},
|
|
134974
|
+
}, _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class33.prototype, "condition", [_dec39], {
|
|
134931
134975
|
configurable: true,
|
|
134932
134976
|
enumerable: true,
|
|
134933
134977
|
writable: true,
|
|
134934
134978
|
initializer: null
|
|
134935
134979
|
}), _class33)) || _class32);
|
|
134936
|
-
let FormulaChooseThenExpression = (
|
|
134980
|
+
let FormulaChooseThenExpression = (_dec40 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("then", `TODO`), _dec41 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec40(_class34 = (_class35 = class FormulaChooseThenExpression extends FormulaExpression {
|
|
134937
134981
|
constructor(...args) {
|
|
134938
134982
|
super(...args);
|
|
134939
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
134983
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor23, this);
|
|
134940
134984
|
}
|
|
134941
134985
|
getLegacyExpressionTypeForFunctionName() {
|
|
134942
134986
|
return "then";
|
|
134943
134987
|
}
|
|
134944
|
-
},
|
|
134988
|
+
}, _descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class35.prototype, "expression", [_dec41], {
|
|
134945
134989
|
configurable: true,
|
|
134946
134990
|
enumerable: true,
|
|
134947
134991
|
writable: true,
|
|
134948
134992
|
initializer: null
|
|
134949
134993
|
}), _class35)) || _class34);
|
|
134950
|
-
let FormulaChooseElseExpression = (
|
|
134994
|
+
let FormulaChooseElseExpression = (_dec42 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("else", `TODO`), _dec43 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec42(_class36 = (_class37 = class FormulaChooseElseExpression extends FormulaExpression {
|
|
134951
134995
|
constructor(...args) {
|
|
134952
134996
|
super(...args);
|
|
134953
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
134997
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor24, this);
|
|
134954
134998
|
}
|
|
134955
134999
|
getLegacyExpressionTypeForFunctionName() {
|
|
134956
135000
|
return "else";
|
|
134957
135001
|
}
|
|
134958
|
-
},
|
|
135002
|
+
}, _descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class37.prototype, "expression", [_dec43], {
|
|
134959
135003
|
configurable: true,
|
|
134960
135004
|
enumerable: true,
|
|
134961
135005
|
writable: true,
|
|
134962
135006
|
initializer: null
|
|
134963
135007
|
}), _class37)) || _class36);
|
|
134964
|
-
let FormulaChooseExpression = (
|
|
135008
|
+
let FormulaChooseExpression = (_dec44 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("choose", `TODO`), _dec45 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("if", [FormulaChooseIfExpression]), _dec46 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("then", [FormulaChooseThenExpression]), _dec47 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("else", [FormulaChooseElseExpression]), _dec44(_class38 = (_class39 = class FormulaChooseExpression extends FormulaExpression {
|
|
134965
135009
|
constructor(...args) {
|
|
134966
135010
|
super(...args);
|
|
134967
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "ifNode",
|
|
134968
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "thenNode",
|
|
134969
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "elseNode",
|
|
135011
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "ifNode", _descriptor25, this);
|
|
135012
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "thenNode", _descriptor26, this);
|
|
135013
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "elseNode", _descriptor27, this);
|
|
134970
135014
|
}
|
|
134971
135015
|
getLegacyExpressionTypeForFunctionName() {
|
|
134972
135016
|
return "choose";
|
|
134973
135017
|
}
|
|
134974
|
-
},
|
|
135018
|
+
}, _descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class39.prototype, "ifNode", [_dec45], {
|
|
134975
135019
|
configurable: true,
|
|
134976
135020
|
enumerable: true,
|
|
134977
135021
|
writable: true,
|
|
134978
135022
|
initializer: null
|
|
134979
|
-
}),
|
|
135023
|
+
}), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class39.prototype, "thenNode", [_dec46], {
|
|
134980
135024
|
configurable: true,
|
|
134981
135025
|
enumerable: true,
|
|
134982
135026
|
writable: true,
|
|
134983
135027
|
initializer: null
|
|
134984
|
-
}),
|
|
135028
|
+
}), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class39.prototype, "elseNode", [_dec47], {
|
|
134985
135029
|
configurable: true,
|
|
134986
135030
|
enumerable: true,
|
|
134987
135031
|
writable: true,
|
|
134988
135032
|
initializer: null
|
|
134989
135033
|
}), _class39)) || _class38);
|
|
134990
|
-
let FormulaDivisionExpression = (
|
|
135034
|
+
let FormulaDivisionExpression = (_dec48 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("division", `TODO`), _dec49 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec48(_class40 = (_class41 = class FormulaDivisionExpression extends FormulaExpression {
|
|
134991
135035
|
constructor(...args) {
|
|
134992
135036
|
super(...args);
|
|
134993
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
135037
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor28, this);
|
|
134994
135038
|
}
|
|
134995
|
-
},
|
|
135039
|
+
}, _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class41.prototype, "arguments", [_dec49], {
|
|
134996
135040
|
configurable: true,
|
|
134997
135041
|
enumerable: true,
|
|
134998
135042
|
writable: true,
|
|
134999
135043
|
initializer: null
|
|
135000
135044
|
}), _class41)) || _class40);
|
|
135001
|
-
let FormulaMultiplyExpression = (
|
|
135045
|
+
let FormulaMultiplyExpression = (_dec50 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multiply", `TODO`), _dec51 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec50(_class42 = (_class43 = class FormulaMultiplyExpression extends FormulaExpression {
|
|
135002
135046
|
constructor(...args) {
|
|
135003
135047
|
super(...args);
|
|
135004
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
135048
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor29, this);
|
|
135005
135049
|
}
|
|
135006
|
-
},
|
|
135050
|
+
}, _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class43.prototype, "arguments", [_dec51], {
|
|
135007
135051
|
configurable: true,
|
|
135008
135052
|
enumerable: true,
|
|
135009
135053
|
writable: true,
|
|
135010
135054
|
initializer: null
|
|
135011
135055
|
}), _class43)) || _class42);
|
|
135012
|
-
let FormulaRoundExpression = (
|
|
135056
|
+
let FormulaRoundExpression = (_dec52 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("round", `TODO`), _dec53 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec54 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("fractionalDigits", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `TODO`), _dec52(_class44 = (_class45 = class FormulaRoundExpression extends FormulaExpression {
|
|
135013
135057
|
constructor(...args) {
|
|
135014
135058
|
super(...args);
|
|
135015
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135016
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fractionalDigits",
|
|
135059
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor30, this);
|
|
135060
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fractionalDigits", _descriptor31, this);
|
|
135017
135061
|
}
|
|
135018
|
-
},
|
|
135062
|
+
}, _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class45.prototype, "expression", [_dec53], {
|
|
135019
135063
|
configurable: true,
|
|
135020
135064
|
enumerable: true,
|
|
135021
135065
|
writable: true,
|
|
135022
135066
|
initializer: null
|
|
135023
|
-
}),
|
|
135067
|
+
}), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class45.prototype, "fractionalDigits", [_dec54], {
|
|
135024
135068
|
configurable: true,
|
|
135025
135069
|
enumerable: true,
|
|
135026
135070
|
writable: true,
|
|
135027
135071
|
initializer: null
|
|
135028
135072
|
}), _class45)) || _class44);
|
|
135029
|
-
let FormulaFloorExpression = (
|
|
135073
|
+
let FormulaFloorExpression = (_dec55 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("floor", `Округление числа в меньшую сторону`), _dec56 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec55(_class46 = (_class47 = class FormulaFloorExpression extends FormulaExpression {
|
|
135030
135074
|
constructor(...args) {
|
|
135031
135075
|
super(...args);
|
|
135032
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135076
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor32, this);
|
|
135033
135077
|
}
|
|
135034
|
-
},
|
|
135078
|
+
}, _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class47.prototype, "expression", [_dec56], {
|
|
135035
135079
|
configurable: true,
|
|
135036
135080
|
enumerable: true,
|
|
135037
135081
|
writable: true,
|
|
135038
135082
|
initializer: null
|
|
135039
135083
|
}), _class47)) || _class46);
|
|
135040
|
-
let FormulaAbsExpression = (
|
|
135084
|
+
let FormulaAbsExpression = (_dec57 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("abs", `TODO`), _dec58 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec57(_class48 = (_class49 = class FormulaAbsExpression extends FormulaExpression {
|
|
135041
135085
|
constructor(...args) {
|
|
135042
135086
|
super(...args);
|
|
135043
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135087
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor33, this);
|
|
135044
135088
|
}
|
|
135045
|
-
},
|
|
135089
|
+
}, _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class49.prototype, "expression", [_dec58], {
|
|
135046
135090
|
configurable: true,
|
|
135047
135091
|
enumerable: true,
|
|
135048
135092
|
writable: true,
|
|
135049
135093
|
initializer: null
|
|
135050
135094
|
}), _class49)) || _class48);
|
|
135051
|
-
let FormulaXAbsExpression = (
|
|
135095
|
+
let FormulaXAbsExpression = (_dec59 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("xabs", `TODO`), _dec60 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec59(_class50 = (_class51 = class FormulaXAbsExpression extends FormulaExpression {
|
|
135052
135096
|
constructor(...args) {
|
|
135053
135097
|
super(...args);
|
|
135054
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135098
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor34, this);
|
|
135055
135099
|
}
|
|
135056
|
-
},
|
|
135100
|
+
}, _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class51.prototype, "expression", [_dec60], {
|
|
135057
135101
|
configurable: true,
|
|
135058
135102
|
enumerable: true,
|
|
135059
135103
|
writable: true,
|
|
135060
135104
|
initializer: null
|
|
135061
135105
|
}), _class51)) || _class50);
|
|
135062
|
-
let FormulaMinusExpression = (
|
|
135106
|
+
let FormulaMinusExpression = (_dec61 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("minus", `TODO`), _dec62 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec61(_class52 = (_class53 = class FormulaMinusExpression extends FormulaExpression {
|
|
135063
135107
|
constructor(...args) {
|
|
135064
135108
|
super(...args);
|
|
135065
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135109
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor35, this);
|
|
135066
135110
|
}
|
|
135067
|
-
},
|
|
135111
|
+
}, _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class53.prototype, "expression", [_dec62], {
|
|
135068
135112
|
configurable: true,
|
|
135069
135113
|
enumerable: true,
|
|
135070
135114
|
writable: true,
|
|
135071
135115
|
initializer: null
|
|
135072
135116
|
}), _class53)) || _class52);
|
|
135073
|
-
let FormulaConstExpression = (
|
|
135117
|
+
let FormulaConstExpression = (_dec63 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("const", `TODO`), _dec64 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("value", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec65 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип константы: string или decimal (по умолчанию)`), _dec63(_class54 = (_class55 = class FormulaConstExpression extends FormulaExpression {
|
|
135074
135118
|
constructor(...args) {
|
|
135075
135119
|
super(...args);
|
|
135076
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value",
|
|
135077
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
135120
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "value", _descriptor36, this);
|
|
135121
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor37, this);
|
|
135078
135122
|
}
|
|
135079
|
-
},
|
|
135123
|
+
}, _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class55.prototype, "value", [_dec64], {
|
|
135080
135124
|
configurable: true,
|
|
135081
135125
|
enumerable: true,
|
|
135082
135126
|
writable: true,
|
|
135083
135127
|
initializer: null
|
|
135084
|
-
}),
|
|
135128
|
+
}), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class55.prototype, "type", [_dec65], {
|
|
135085
135129
|
configurable: true,
|
|
135086
135130
|
enumerable: true,
|
|
135087
135131
|
writable: true,
|
|
@@ -135089,366 +135133,366 @@ let FormulaConstExpression = (_dec62 = (0,_markupGenerator_Serializer_SugarSeria
|
|
|
135089
135133
|
return "decimal";
|
|
135090
135134
|
}
|
|
135091
135135
|
}), _class55)) || _class54);
|
|
135092
|
-
let FormulaSubstringExpression = (
|
|
135136
|
+
let FormulaSubstringExpression = (_dec66 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("substring", `TODO`), _dec67 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec68 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("start", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `TODO`), _dec69 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("length", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `TODO`), _dec66(_class56 = (_class57 = class FormulaSubstringExpression extends FormulaExpression {
|
|
135093
135137
|
constructor(...args) {
|
|
135094
135138
|
super(...args);
|
|
135095
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135096
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "start",
|
|
135097
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "length",
|
|
135139
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor38, this);
|
|
135140
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "start", _descriptor39, this);
|
|
135141
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "length", _descriptor40, this);
|
|
135098
135142
|
}
|
|
135099
135143
|
getLegacyExpressionTypeForFunctionName() {
|
|
135100
135144
|
return "substring";
|
|
135101
135145
|
}
|
|
135102
|
-
},
|
|
135146
|
+
}, _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class57.prototype, "expression", [_dec67], {
|
|
135103
135147
|
configurable: true,
|
|
135104
135148
|
enumerable: true,
|
|
135105
135149
|
writable: true,
|
|
135106
135150
|
initializer: null
|
|
135107
|
-
}),
|
|
135151
|
+
}), _descriptor39 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class57.prototype, "start", [_dec68], {
|
|
135108
135152
|
configurable: true,
|
|
135109
135153
|
enumerable: true,
|
|
135110
135154
|
writable: true,
|
|
135111
135155
|
initializer: null
|
|
135112
|
-
}),
|
|
135156
|
+
}), _descriptor40 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class57.prototype, "length", [_dec69], {
|
|
135113
135157
|
configurable: true,
|
|
135114
135158
|
enumerable: true,
|
|
135115
135159
|
writable: true,
|
|
135116
135160
|
initializer: null
|
|
135117
135161
|
}), _class57)) || _class56);
|
|
135118
|
-
let FormulaCastExpression = (
|
|
135162
|
+
let FormulaCastExpression = (_dec70 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("cast", `TODO`), _dec71 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec72 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser.required, `TODO`), _dec70(_class58 = (_class59 = class FormulaCastExpression extends FormulaExpression {
|
|
135119
135163
|
constructor(...args) {
|
|
135120
135164
|
super(...args);
|
|
135121
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135122
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
135165
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor41, this);
|
|
135166
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor42, this);
|
|
135123
135167
|
}
|
|
135124
135168
|
getLegacyExpressionTypeForFunctionName() {
|
|
135125
135169
|
return "cast";
|
|
135126
135170
|
}
|
|
135127
|
-
},
|
|
135171
|
+
}, _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class59.prototype, "expression", [_dec71], {
|
|
135128
135172
|
configurable: true,
|
|
135129
135173
|
enumerable: true,
|
|
135130
135174
|
writable: true,
|
|
135131
135175
|
initializer: null
|
|
135132
|
-
}),
|
|
135176
|
+
}), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class59.prototype, "type", [_dec72], {
|
|
135133
135177
|
configurable: true,
|
|
135134
135178
|
enumerable: true,
|
|
135135
135179
|
writable: true,
|
|
135136
135180
|
initializer: null
|
|
135137
135181
|
}), _class59)) || _class58);
|
|
135138
|
-
let FormulaDateNowExpression = (
|
|
135139
|
-
let FormulaHasAutoFlagExpression = (
|
|
135182
|
+
let FormulaDateNowExpression = (_dec73 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datenow", `Дата в формате: {dd/mm/yyyy}`), _dec73(_class60 = class FormulaDateNowExpression extends FormulaDateHandlerExpression {}) || _class60);
|
|
135183
|
+
let FormulaHasAutoFlagExpression = (_dec74 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("hasautoflag", `Проверить наличие автофлага`), _dec75 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec74(_class61 = (_class62 = class FormulaHasAutoFlagExpression extends FormulaExpression {
|
|
135140
135184
|
constructor(...args) {
|
|
135141
135185
|
super(...args);
|
|
135142
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135186
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor43, this);
|
|
135143
135187
|
}
|
|
135144
|
-
},
|
|
135188
|
+
}, _descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class62.prototype, "expression", [_dec75], {
|
|
135145
135189
|
configurable: true,
|
|
135146
135190
|
enumerable: true,
|
|
135147
135191
|
writable: true,
|
|
135148
135192
|
initializer: null
|
|
135149
135193
|
}), _class62)) || _class61);
|
|
135150
|
-
let FormulaGetDaysInMonthExpression = (
|
|
135194
|
+
let FormulaGetDaysInMonthExpression = (_dec76 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getdaysinmonth", `Количество дней в месяце указанной даты`), _dec77 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec76(_class63 = (_class64 = class FormulaGetDaysInMonthExpression extends FormulaExpression {
|
|
135151
135195
|
constructor(...args) {
|
|
135152
135196
|
super(...args);
|
|
135153
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135197
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor44, this);
|
|
135154
135198
|
}
|
|
135155
|
-
},
|
|
135199
|
+
}, _descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class64.prototype, "expression", [_dec77], {
|
|
135156
135200
|
configurable: true,
|
|
135157
135201
|
enumerable: true,
|
|
135158
135202
|
writable: true,
|
|
135159
135203
|
initializer: null
|
|
135160
135204
|
}), _class64)) || _class63);
|
|
135161
|
-
let FormulaGetDayExpression = (
|
|
135205
|
+
let FormulaGetDayExpression = (_dec78 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getday", `День из указанной даты`), _dec79 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec78(_class65 = (_class66 = class FormulaGetDayExpression extends FormulaExpression {
|
|
135162
135206
|
constructor(...args) {
|
|
135163
135207
|
super(...args);
|
|
135164
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135208
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor45, this);
|
|
135165
135209
|
}
|
|
135166
|
-
},
|
|
135210
|
+
}, _descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class66.prototype, "expression", [_dec79], {
|
|
135167
135211
|
configurable: true,
|
|
135168
135212
|
enumerable: true,
|
|
135169
135213
|
writable: true,
|
|
135170
135214
|
initializer: null
|
|
135171
135215
|
}), _class66)) || _class65);
|
|
135172
|
-
let FormulaGetMonthExpression = (
|
|
135216
|
+
let FormulaGetMonthExpression = (_dec80 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getmonth", `Месяц из указанной даты`), _dec81 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec80(_class67 = (_class68 = class FormulaGetMonthExpression extends FormulaExpression {
|
|
135173
135217
|
constructor(...args) {
|
|
135174
135218
|
super(...args);
|
|
135175
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135219
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor46, this);
|
|
135176
135220
|
}
|
|
135177
|
-
},
|
|
135221
|
+
}, _descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class68.prototype, "expression", [_dec81], {
|
|
135178
135222
|
configurable: true,
|
|
135179
135223
|
enumerable: true,
|
|
135180
135224
|
writable: true,
|
|
135181
135225
|
initializer: null
|
|
135182
135226
|
}), _class68)) || _class67);
|
|
135183
|
-
let FormulaGetYearExpression = (
|
|
135227
|
+
let FormulaGetYearExpression = (_dec82 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getyear", `Год из указанной даты`), _dec83 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec82(_class69 = (_class70 = class FormulaGetYearExpression extends FormulaExpression {
|
|
135184
135228
|
constructor(...args) {
|
|
135185
135229
|
super(...args);
|
|
135186
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135230
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor47, this);
|
|
135187
135231
|
}
|
|
135188
|
-
},
|
|
135232
|
+
}, _descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class70.prototype, "expression", [_dec83], {
|
|
135189
135233
|
configurable: true,
|
|
135190
135234
|
enumerable: true,
|
|
135191
135235
|
writable: true,
|
|
135192
135236
|
initializer: null
|
|
135193
135237
|
}), _class70)) || _class69);
|
|
135194
|
-
let FormulaIsDateExpression = (
|
|
135238
|
+
let FormulaIsDateExpression = (_dec84 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isdate", `Проверка, является ли дата валидной`), _dec85 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec84(_class71 = (_class72 = class FormulaIsDateExpression extends FormulaExpression {
|
|
135195
135239
|
constructor(...args) {
|
|
135196
135240
|
super(...args);
|
|
135197
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135241
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor48, this);
|
|
135198
135242
|
}
|
|
135199
|
-
},
|
|
135243
|
+
}, _descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class72.prototype, "expression", [_dec85], {
|
|
135200
135244
|
configurable: true,
|
|
135201
135245
|
enumerable: true,
|
|
135202
135246
|
writable: true,
|
|
135203
135247
|
initializer: null
|
|
135204
135248
|
}), _class72)) || _class71);
|
|
135205
|
-
let FormulaDifferenceInMonthsExpression = (
|
|
135249
|
+
let FormulaDifferenceInMonthsExpression = (_dec86 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("differenceinmonths", `Количество полных месяцев между двумя датами`), _dec87 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec86(_class73 = (_class74 = class FormulaDifferenceInMonthsExpression extends FormulaExpression {
|
|
135206
135250
|
constructor(...args) {
|
|
135207
135251
|
super(...args);
|
|
135208
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
135252
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor49, this);
|
|
135209
135253
|
}
|
|
135210
|
-
},
|
|
135254
|
+
}, _descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class74.prototype, "arguments", [_dec87], {
|
|
135211
135255
|
configurable: true,
|
|
135212
135256
|
enumerable: true,
|
|
135213
135257
|
writable: true,
|
|
135214
135258
|
initializer: null
|
|
135215
135259
|
}), _class74)) || _class73);
|
|
135216
|
-
let FormulaDifferenceInDaysExpression = (
|
|
135260
|
+
let FormulaDifferenceInDaysExpression = (_dec88 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("differenceindays", `Разница в днях между двумя датами`), _dec89 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec88(_class75 = (_class76 = class FormulaDifferenceInDaysExpression extends FormulaExpression {
|
|
135217
135261
|
constructor(...args) {
|
|
135218
135262
|
super(...args);
|
|
135219
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
135263
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor50, this);
|
|
135220
135264
|
}
|
|
135221
|
-
},
|
|
135265
|
+
}, _descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class76.prototype, "arguments", [_dec89], {
|
|
135222
135266
|
configurable: true,
|
|
135223
135267
|
enumerable: true,
|
|
135224
135268
|
writable: true,
|
|
135225
135269
|
initializer: null
|
|
135226
135270
|
}), _class76)) || _class75);
|
|
135227
|
-
let FormulaAddDaysExpression = (
|
|
135271
|
+
let FormulaAddDaysExpression = (_dec90 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("adddays", `Добавить дни к дате`), _dec91 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec92 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("amount", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `Количество дней (можно указать отрицательное)`), _dec90(_class77 = (_class78 = class FormulaAddDaysExpression extends FormulaDateHandlerExpression {
|
|
135228
135272
|
constructor(...args) {
|
|
135229
135273
|
super(...args);
|
|
135230
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135231
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount",
|
|
135274
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor51, this);
|
|
135275
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount", _descriptor52, this);
|
|
135232
135276
|
}
|
|
135233
|
-
},
|
|
135277
|
+
}, _descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class78.prototype, "expression", [_dec91], {
|
|
135234
135278
|
configurable: true,
|
|
135235
135279
|
enumerable: true,
|
|
135236
135280
|
writable: true,
|
|
135237
135281
|
initializer: null
|
|
135238
|
-
}),
|
|
135282
|
+
}), _descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class78.prototype, "amount", [_dec92], {
|
|
135239
135283
|
configurable: true,
|
|
135240
135284
|
enumerable: true,
|
|
135241
135285
|
writable: true,
|
|
135242
135286
|
initializer: null
|
|
135243
135287
|
}), _class78)) || _class77);
|
|
135244
|
-
let FormulaAddMonthsExpression = (
|
|
135288
|
+
let FormulaAddMonthsExpression = (_dec93 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("addmonths", `Добавить месяцы к дате`), _dec94 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec95 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("amount", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `Количество месяцев (можно указать отрицательное)`), _dec93(_class79 = (_class80 = class FormulaAddMonthsExpression extends FormulaDateHandlerExpression {
|
|
135245
135289
|
constructor(...args) {
|
|
135246
135290
|
super(...args);
|
|
135247
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135248
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount",
|
|
135291
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor53, this);
|
|
135292
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount", _descriptor54, this);
|
|
135249
135293
|
}
|
|
135250
|
-
},
|
|
135294
|
+
}, _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class80.prototype, "expression", [_dec94], {
|
|
135251
135295
|
configurable: true,
|
|
135252
135296
|
enumerable: true,
|
|
135253
135297
|
writable: true,
|
|
135254
135298
|
initializer: null
|
|
135255
|
-
}),
|
|
135299
|
+
}), _descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class80.prototype, "amount", [_dec95], {
|
|
135256
135300
|
configurable: true,
|
|
135257
135301
|
enumerable: true,
|
|
135258
135302
|
writable: true,
|
|
135259
135303
|
initializer: null
|
|
135260
135304
|
}), _class80)) || _class79);
|
|
135261
|
-
let FormulaAddYearsExpression = (
|
|
135305
|
+
let FormulaAddYearsExpression = (_dec96 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("addyears", `Добавить годы к дате`), _dec97 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec98 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("amount", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number.required, `Количество лет (можно указать отрицательное)`), _dec96(_class81 = (_class82 = class FormulaAddYearsExpression extends FormulaDateHandlerExpression {
|
|
135262
135306
|
constructor(...args) {
|
|
135263
135307
|
super(...args);
|
|
135264
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135265
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount",
|
|
135308
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor55, this);
|
|
135309
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "amount", _descriptor56, this);
|
|
135266
135310
|
}
|
|
135267
|
-
},
|
|
135311
|
+
}, _descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class82.prototype, "expression", [_dec97], {
|
|
135268
135312
|
configurable: true,
|
|
135269
135313
|
enumerable: true,
|
|
135270
135314
|
writable: true,
|
|
135271
135315
|
initializer: null
|
|
135272
|
-
}),
|
|
135316
|
+
}), _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class82.prototype, "amount", [_dec98], {
|
|
135273
135317
|
configurable: true,
|
|
135274
135318
|
enumerable: true,
|
|
135275
135319
|
writable: true,
|
|
135276
135320
|
initializer: null
|
|
135277
135321
|
}), _class82)) || _class81);
|
|
135278
|
-
let FormulaDateToStringExpression = (
|
|
135322
|
+
let FormulaDateToStringExpression = (_dec99 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datetostring", `Преобразование даты в строку. Используется как обертка над методами, которые возвращают объект даты (addDays, dateNow и т.д.)`), _dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("format", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `
|
|
135279
135323
|
Формат даты.
|
|
135280
135324
|
- По дефолту (ничего не указано): dd.MM.yyyy
|
|
135281
135325
|
- Можно указать "fss" (будет yyyy-MM-dd)
|
|
135282
135326
|
- Можно указывать любые форматы с "yyyy", "MM", "dd", например US формат: MM/dd/yyyy
|
|
135283
|
-
`),
|
|
135327
|
+
`), _dec99(_class83 = (_class84 = class FormulaDateToStringExpression extends FormulaExpression {
|
|
135284
135328
|
constructor(...args) {
|
|
135285
135329
|
super(...args);
|
|
135286
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135287
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "format",
|
|
135330
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor57, this);
|
|
135331
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "format", _descriptor58, this);
|
|
135288
135332
|
}
|
|
135289
|
-
},
|
|
135333
|
+
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class84.prototype, "expression", [_dec100], {
|
|
135290
135334
|
configurable: true,
|
|
135291
135335
|
enumerable: true,
|
|
135292
135336
|
writable: true,
|
|
135293
135337
|
initializer: null
|
|
135294
|
-
}),
|
|
135338
|
+
}), _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class84.prototype, "format", [_dec101], {
|
|
135295
135339
|
configurable: true,
|
|
135296
135340
|
enumerable: true,
|
|
135297
135341
|
writable: true,
|
|
135298
135342
|
initializer: null
|
|
135299
135343
|
}), _class84)) || _class83);
|
|
135300
|
-
let FormulaDateTimeExpression = (
|
|
135344
|
+
let FormulaDateTimeExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("datetime", `Преобразование строки в дату`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec102(_class85 = (_class86 = class FormulaDateTimeExpression extends FormulaDateHandlerExpression {
|
|
135301
135345
|
constructor(...args) {
|
|
135302
135346
|
super(...args);
|
|
135303
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135347
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor59, this);
|
|
135304
135348
|
}
|
|
135305
|
-
},
|
|
135349
|
+
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class86.prototype, "expression", [_dec103], {
|
|
135306
135350
|
configurable: true,
|
|
135307
135351
|
enumerable: true,
|
|
135308
135352
|
writable: true,
|
|
135309
135353
|
initializer: null
|
|
135310
135354
|
}), _class86)) || _class85);
|
|
135311
|
-
let FormulaSumOfDayWeightsExpression = (
|
|
135355
|
+
let FormulaSumOfDayWeightsExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("sumofdayweights", `Сумма весов дней между датами (включительно)`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec104(_class87 = (_class88 = class FormulaSumOfDayWeightsExpression extends FormulaExpression {
|
|
135312
135356
|
constructor(...args) {
|
|
135313
135357
|
super(...args);
|
|
135314
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
135358
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor60, this);
|
|
135315
135359
|
}
|
|
135316
|
-
},
|
|
135360
|
+
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "arguments", [_dec105], {
|
|
135317
135361
|
configurable: true,
|
|
135318
135362
|
enumerable: true,
|
|
135319
135363
|
writable: true,
|
|
135320
135364
|
initializer: null
|
|
135321
135365
|
}), _class88)) || _class87);
|
|
135322
|
-
let FormulaIsSnilsExpression = (
|
|
135366
|
+
let FormulaIsSnilsExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec106(_class89 = (_class90 = class FormulaIsSnilsExpression extends FormulaExpression {
|
|
135323
135367
|
constructor(...args) {
|
|
135324
135368
|
super(...args);
|
|
135325
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135369
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor61, this);
|
|
135326
135370
|
}
|
|
135327
135371
|
getLegacyExpressionTypeForFunctionName() {
|
|
135328
135372
|
return "isSnils";
|
|
135329
135373
|
}
|
|
135330
|
-
},
|
|
135374
|
+
}, _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "expression", [_dec107], {
|
|
135331
135375
|
configurable: true,
|
|
135332
135376
|
enumerable: true,
|
|
135333
135377
|
writable: true,
|
|
135334
135378
|
initializer: null
|
|
135335
135379
|
}), _class90)) || _class89);
|
|
135336
|
-
let FormulaIsRegNumSfrExpression = (
|
|
135380
|
+
let FormulaIsRegNumSfrExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec108(_class91 = (_class92 = class FormulaIsRegNumSfrExpression extends FormulaExpression {
|
|
135337
135381
|
constructor(...args) {
|
|
135338
135382
|
super(...args);
|
|
135339
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135383
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor62, this);
|
|
135340
135384
|
}
|
|
135341
135385
|
getLegacyExpressionTypeForFunctionName() {
|
|
135342
135386
|
return "isRegNumSfr";
|
|
135343
135387
|
}
|
|
135344
|
-
},
|
|
135388
|
+
}, _descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "expression", [_dec109], {
|
|
135345
135389
|
configurable: true,
|
|
135346
135390
|
enumerable: true,
|
|
135347
135391
|
writable: true,
|
|
135348
135392
|
initializer: null
|
|
135349
135393
|
}), _class92)) || _class91);
|
|
135350
|
-
let FormulaIsInnExpression = (
|
|
135394
|
+
let FormulaIsInnExpression = (_dec110 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec111 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec110(_class93 = (_class94 = class FormulaIsInnExpression extends FormulaExpression {
|
|
135351
135395
|
constructor(...args) {
|
|
135352
135396
|
super(...args);
|
|
135353
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135397
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor63, this);
|
|
135354
135398
|
}
|
|
135355
135399
|
getLegacyExpressionTypeForFunctionName() {
|
|
135356
135400
|
return "isInn";
|
|
135357
135401
|
}
|
|
135358
|
-
},
|
|
135402
|
+
}, _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "expression", [_dec111], {
|
|
135359
135403
|
configurable: true,
|
|
135360
135404
|
enumerable: true,
|
|
135361
135405
|
writable: true,
|
|
135362
135406
|
initializer: null
|
|
135363
135407
|
}), _class94)) || _class93);
|
|
135364
|
-
let FormulaIsOgrnExpression = (
|
|
135408
|
+
let FormulaIsOgrnExpression = (_dec112 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isogrn", `Проверка на валидность ОГРН`), _dec113 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec112(_class95 = (_class96 = class FormulaIsOgrnExpression extends FormulaExpression {
|
|
135365
135409
|
constructor(...args) {
|
|
135366
135410
|
super(...args);
|
|
135367
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135411
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor64, this);
|
|
135368
135412
|
}
|
|
135369
135413
|
getLegacyExpressionTypeForFunctionName() {
|
|
135370
135414
|
return "isOgrn";
|
|
135371
135415
|
}
|
|
135372
|
-
},
|
|
135416
|
+
}, _descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "expression", [_dec113], {
|
|
135373
135417
|
configurable: true,
|
|
135374
135418
|
enumerable: true,
|
|
135375
135419
|
writable: true,
|
|
135376
135420
|
initializer: null
|
|
135377
135421
|
}), _class96)) || _class95);
|
|
135378
|
-
let FormulaIsValidMirCardNumberExpression = (
|
|
135422
|
+
let FormulaIsValidMirCardNumberExpression = (_dec114 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec115 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec114(_class97 = (_class98 = class FormulaIsValidMirCardNumberExpression extends FormulaExpression {
|
|
135379
135423
|
constructor(...args) {
|
|
135380
135424
|
super(...args);
|
|
135381
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135425
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor65, this);
|
|
135382
135426
|
}
|
|
135383
135427
|
getLegacyExpressionTypeForFunctionName() {
|
|
135384
135428
|
return "isValidMirCardNumber";
|
|
135385
135429
|
}
|
|
135386
|
-
},
|
|
135430
|
+
}, _descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "expression", [_dec115], {
|
|
135387
135431
|
configurable: true,
|
|
135388
135432
|
enumerable: true,
|
|
135389
135433
|
writable: true,
|
|
135390
135434
|
initializer: null
|
|
135391
135435
|
}), _class98)) || _class97);
|
|
135392
|
-
let FormulaIsValidAccountNumberBikExpression = (
|
|
135436
|
+
let FormulaIsValidAccountNumberBikExpression = (_dec116 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumberbik", `Проверка на валидность карты МИР`), _dec117 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec116(_class99 = (_class100 = class FormulaIsValidAccountNumberBikExpression extends FormulaExpression {
|
|
135393
135437
|
constructor(...args) {
|
|
135394
135438
|
super(...args);
|
|
135395
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik",
|
|
135439
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor66, this);
|
|
135396
135440
|
}
|
|
135397
135441
|
getLegacyExpressionTypeForFunctionName() {
|
|
135398
135442
|
return "isValidAccountNumberBik";
|
|
135399
135443
|
}
|
|
135400
|
-
},
|
|
135444
|
+
}, _descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "bik", [_dec117], {
|
|
135401
135445
|
configurable: true,
|
|
135402
135446
|
enumerable: true,
|
|
135403
135447
|
writable: true,
|
|
135404
135448
|
initializer: null
|
|
135405
135449
|
}), _class100)) || _class99);
|
|
135406
|
-
let FormulaIsValidAccountNumberAccountExpression = (
|
|
135450
|
+
let FormulaIsValidAccountNumberAccountExpression = (_dec118 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumberaccount", `Проверка на валидность карты МИР`), _dec119 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec118(_class101 = (_class102 = class FormulaIsValidAccountNumberAccountExpression extends FormulaExpression {
|
|
135407
135451
|
constructor(...args) {
|
|
135408
135452
|
super(...args);
|
|
135409
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account",
|
|
135453
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor67, this);
|
|
135410
135454
|
}
|
|
135411
135455
|
getLegacyExpressionTypeForFunctionName() {
|
|
135412
135456
|
return "isValidAccountNumberAccount";
|
|
135413
135457
|
}
|
|
135414
|
-
},
|
|
135458
|
+
}, _descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "account", [_dec119], {
|
|
135415
135459
|
configurable: true,
|
|
135416
135460
|
enumerable: true,
|
|
135417
135461
|
writable: true,
|
|
135418
135462
|
initializer: null
|
|
135419
135463
|
}), _class102)) || _class101);
|
|
135420
|
-
let FormulaIsValidAccountNumberExpression = (
|
|
135464
|
+
let FormulaIsValidAccountNumberExpression = (_dec120 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumber", `Проверка на валидность карты МИР`), _dec121 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("isvalidaccountnumberbik", [FormulaIsValidAccountNumberBikExpression]), _dec122 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("isvalidaccountnumberaccount", [FormulaIsValidAccountNumberAccountExpression]), _dec120(_class103 = (_class104 = class FormulaIsValidAccountNumberExpression extends FormulaExpression {
|
|
135421
135465
|
constructor(...args) {
|
|
135422
135466
|
super(...args);
|
|
135423
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik",
|
|
135424
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account",
|
|
135467
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor68, this);
|
|
135468
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor69, this);
|
|
135425
135469
|
}
|
|
135426
135470
|
getLegacyExpressionTypeForFunctionName() {
|
|
135427
135471
|
return "isValidAccountNumber";
|
|
135428
135472
|
}
|
|
135429
|
-
},
|
|
135473
|
+
}, _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "bik", [_dec121], {
|
|
135430
135474
|
configurable: true,
|
|
135431
135475
|
enumerable: true,
|
|
135432
135476
|
writable: true,
|
|
135433
135477
|
initializer: null
|
|
135434
|
-
}),
|
|
135478
|
+
}), _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "account", [_dec122], {
|
|
135435
135479
|
configurable: true,
|
|
135436
135480
|
enumerable: true,
|
|
135437
135481
|
writable: true,
|
|
135438
135482
|
initializer: null
|
|
135439
135483
|
}), _class104)) || _class103);
|
|
135440
|
-
let FormulaArgumentExpression = (
|
|
135484
|
+
let FormulaArgumentExpression = (_dec123 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("argument", `TODO`), _dec124 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec125 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип атрибута: string или decimal (по умолчанию)`), _dec123(_class105 = (_class106 = class FormulaArgumentExpression extends FormulaExpression {
|
|
135441
135485
|
constructor(...args) {
|
|
135442
135486
|
super(...args);
|
|
135443
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
135444
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
135487
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor70, this);
|
|
135488
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor71, this);
|
|
135445
135489
|
}
|
|
135446
|
-
},
|
|
135490
|
+
}, _descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "select", [_dec124], {
|
|
135447
135491
|
configurable: true,
|
|
135448
135492
|
enumerable: true,
|
|
135449
135493
|
writable: true,
|
|
135450
135494
|
initializer: null
|
|
135451
|
-
}),
|
|
135495
|
+
}), _descriptor71 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "type", [_dec125], {
|
|
135452
135496
|
configurable: true,
|
|
135453
135497
|
enumerable: true,
|
|
135454
135498
|
writable: true,
|
|
@@ -135456,417 +135500,428 @@ let FormulaArgumentExpression = (_dec122 = (0,_markupGenerator_Serializer_SugarS
|
|
|
135456
135500
|
return "decimal";
|
|
135457
135501
|
}
|
|
135458
135502
|
}), _class106)) || _class105);
|
|
135459
|
-
let FormulaArrayExpression = (
|
|
135503
|
+
let FormulaArrayExpression = (_dec126 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("array", `TODO`), _dec127 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec126(_class107 = (_class108 = class FormulaArrayExpression extends FormulaExpression {
|
|
135460
135504
|
constructor(...args) {
|
|
135461
135505
|
super(...args);
|
|
135462
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
135506
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor72, this);
|
|
135463
135507
|
}
|
|
135464
|
-
},
|
|
135508
|
+
}, _descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "items", [_dec127], {
|
|
135465
135509
|
configurable: true,
|
|
135466
135510
|
enumerable: true,
|
|
135467
135511
|
writable: true,
|
|
135468
135512
|
initializer: null
|
|
135469
135513
|
}), _class108)) || _class107);
|
|
135470
|
-
let FormulaFilterColumnExpression = (
|
|
135514
|
+
let FormulaFilterColumnExpression = (_dec128 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filtercolumn", `Получить значения пиклиста по фильру`), _dec129 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec128(_class109 = (_class110 = class FormulaFilterColumnExpression extends FormulaExpression {
|
|
135471
135515
|
constructor(...args) {
|
|
135472
135516
|
super(...args);
|
|
135473
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
135517
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor73, this);
|
|
135474
135518
|
}
|
|
135475
|
-
},
|
|
135519
|
+
}, _descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "filterColumn", [_dec129], {
|
|
135476
135520
|
configurable: true,
|
|
135477
135521
|
enumerable: true,
|
|
135478
135522
|
writable: true,
|
|
135479
135523
|
initializer: null
|
|
135480
135524
|
}), _class110)) || _class109);
|
|
135481
|
-
let FormulaFilterKeyExpression = (
|
|
135525
|
+
let FormulaFilterKeyExpression = (_dec130 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filterkey", `Получить значения пиклиста по фильру`), _dec131 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec130(_class111 = (_class112 = class FormulaFilterKeyExpression extends FormulaExpression {
|
|
135482
135526
|
constructor(...args) {
|
|
135483
135527
|
super(...args);
|
|
135484
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
135528
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor74, this);
|
|
135485
135529
|
}
|
|
135486
|
-
},
|
|
135530
|
+
}, _descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "filterKey", [_dec131], {
|
|
135487
135531
|
configurable: true,
|
|
135488
135532
|
enumerable: true,
|
|
135489
135533
|
writable: true,
|
|
135490
135534
|
initializer: null
|
|
135491
135535
|
}), _class112)) || _class111);
|
|
135492
|
-
let FormulaGetPicklistValuesExpression = (
|
|
135536
|
+
let FormulaGetPicklistValuesExpression = (_dec132 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getpicklistvalues", `Получить значения пиклиста по фильру. Используется только для генерации FLANG. В калькуляторе не работает`), _dec133 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec134 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filtercolumn", [FormulaFilterColumnExpression]), _dec135 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filterkey", [FormulaFilterKeyExpression]), _dec136 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("resultColumn", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec132(_class113 = (_class114 = class FormulaGetPicklistValuesExpression extends FormulaExpression {
|
|
135493
135537
|
constructor(...args) {
|
|
135494
135538
|
super(...args);
|
|
135495
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
135496
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
135497
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
135498
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn",
|
|
135539
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor75, this);
|
|
135540
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor76, this);
|
|
135541
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor77, this);
|
|
135542
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn", _descriptor78, this);
|
|
135499
135543
|
}
|
|
135500
135544
|
getLegacyExpressionTypeForFunctionName() {
|
|
135501
135545
|
return "getPicklistValues";
|
|
135502
135546
|
}
|
|
135503
|
-
},
|
|
135547
|
+
}, _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "gId", [_dec133], {
|
|
135504
135548
|
configurable: true,
|
|
135505
135549
|
enumerable: true,
|
|
135506
135550
|
writable: true,
|
|
135507
135551
|
initializer: null
|
|
135508
|
-
}),
|
|
135552
|
+
}), _descriptor76 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "filterColumn", [_dec134], {
|
|
135509
135553
|
configurable: true,
|
|
135510
135554
|
enumerable: true,
|
|
135511
135555
|
writable: true,
|
|
135512
135556
|
initializer: null
|
|
135513
|
-
}),
|
|
135557
|
+
}), _descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "filterKey", [_dec135], {
|
|
135514
135558
|
configurable: true,
|
|
135515
135559
|
enumerable: true,
|
|
135516
135560
|
writable: true,
|
|
135517
135561
|
initializer: null
|
|
135518
|
-
}),
|
|
135562
|
+
}), _descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "resultColumn", [_dec136], {
|
|
135519
135563
|
configurable: true,
|
|
135520
135564
|
enumerable: true,
|
|
135521
135565
|
writable: true,
|
|
135522
135566
|
initializer: null
|
|
135523
135567
|
}), _class114)) || _class113);
|
|
135524
|
-
let FormulaFirstOrDefaultExpression = (
|
|
135568
|
+
let FormulaFirstOrDefaultExpression = (_dec137 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("firstordefault", `Взять первый элемент массива. Используется только для генерации FLANG. В калькуляторе не работает`), _dec138 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec137(_class115 = (_class116 = class FormulaFirstOrDefaultExpression extends FormulaExpression {
|
|
135525
135569
|
constructor(...args) {
|
|
135526
135570
|
super(...args);
|
|
135527
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135571
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor79, this);
|
|
135528
135572
|
}
|
|
135529
|
-
},
|
|
135573
|
+
}, _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class116.prototype, "expression", [_dec138], {
|
|
135530
135574
|
configurable: true,
|
|
135531
135575
|
enumerable: true,
|
|
135532
135576
|
writable: true,
|
|
135533
135577
|
initializer: null
|
|
135534
135578
|
}), _class116)) || _class115);
|
|
135535
|
-
let FormulaHashSetExpression = (
|
|
135579
|
+
let FormulaHashSetExpression = (_dec139 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("hashset", `Оставить только уникальные значения в массиве. Используется только для генерации FLANG. В калькуляторе не работает`), _dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec139(_class117 = (_class118 = class FormulaHashSetExpression extends FormulaExpression {
|
|
135536
135580
|
constructor(...args) {
|
|
135537
135581
|
super(...args);
|
|
135538
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135582
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor80, this);
|
|
135539
135583
|
}
|
|
135540
|
-
},
|
|
135584
|
+
}, _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "expression", [_dec140], {
|
|
135541
135585
|
configurable: true,
|
|
135542
135586
|
enumerable: true,
|
|
135543
135587
|
writable: true,
|
|
135544
135588
|
initializer: null
|
|
135545
135589
|
}), _class118)) || _class117);
|
|
135546
|
-
let FormulaExistsExpression = (
|
|
135590
|
+
let FormulaExistsExpression = (_dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("exists", `TODO`), _dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec141(_class119 = (_class120 = class FormulaExistsExpression extends FormulaExpression {
|
|
135547
135591
|
constructor(...args) {
|
|
135548
135592
|
super(...args);
|
|
135549
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
135593
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor81, this);
|
|
135550
135594
|
}
|
|
135551
135595
|
getLegacyExpressionTypeForFunctionName() {
|
|
135552
135596
|
return "exists";
|
|
135553
135597
|
}
|
|
135554
|
-
},
|
|
135598
|
+
}, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class120.prototype, "select", [_dec142], {
|
|
135555
135599
|
configurable: true,
|
|
135556
135600
|
enumerable: true,
|
|
135557
135601
|
writable: true,
|
|
135558
135602
|
initializer: null
|
|
135559
135603
|
}), _class120)) || _class119);
|
|
135560
|
-
let FormulaMultySumExpression = (
|
|
135604
|
+
let FormulaMultySumExpression = (_dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multysum", `TODO`), _dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec143(_class121 = (_class122 = class FormulaMultySumExpression extends FormulaExpression {
|
|
135561
135605
|
constructor(...args) {
|
|
135562
135606
|
super(...args);
|
|
135563
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
135607
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor82, this);
|
|
135564
135608
|
}
|
|
135565
|
-
},
|
|
135609
|
+
}, _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "select", [_dec144], {
|
|
135566
135610
|
configurable: true,
|
|
135567
135611
|
enumerable: true,
|
|
135568
135612
|
writable: true,
|
|
135569
135613
|
initializer: null
|
|
135570
135614
|
}), _class122)) || _class121);
|
|
135571
|
-
let FormulaCountExpression = (
|
|
135615
|
+
let FormulaCountExpression = (_dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("count", `TODO`), _dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("withNullOrEmptyValues", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `брать в расчет незаполненные экземпляры`), _dec145(_class123 = (_class124 = class FormulaCountExpression extends FormulaExpression {
|
|
135572
135616
|
constructor(...args) {
|
|
135573
135617
|
super(...args);
|
|
135574
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
135575
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
135618
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor83, this);
|
|
135619
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor84, this);
|
|
135576
135620
|
}
|
|
135577
|
-
},
|
|
135621
|
+
}, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "select", [_dec146], {
|
|
135578
135622
|
configurable: true,
|
|
135579
135623
|
enumerable: true,
|
|
135580
135624
|
writable: true,
|
|
135581
135625
|
initializer: null
|
|
135582
|
-
}),
|
|
135626
|
+
}), _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "withNullOrEmptyValues", [_dec147], {
|
|
135583
135627
|
configurable: true,
|
|
135584
135628
|
enumerable: true,
|
|
135585
135629
|
writable: true,
|
|
135586
135630
|
initializer: null
|
|
135587
135631
|
}), _class124)) || _class123);
|
|
135588
|
-
let FormulaInstanceCountExpression = (
|
|
135632
|
+
let FormulaInstanceCountExpression = (_dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("instancecount", `TODO`), _dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec148(_class125 = (_class126 = class FormulaInstanceCountExpression extends FormulaExpression {
|
|
135589
135633
|
constructor(...args) {
|
|
135590
135634
|
super(...args);
|
|
135591
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
135635
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor85, this);
|
|
135592
135636
|
}
|
|
135593
|
-
},
|
|
135637
|
+
}, _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "select", [_dec149], {
|
|
135594
135638
|
configurable: true,
|
|
135595
135639
|
enumerable: true,
|
|
135596
135640
|
writable: true,
|
|
135597
135641
|
initializer: null
|
|
135598
135642
|
}), _class126)) || _class125);
|
|
135599
|
-
let FormulaIsEqualToAutoCalculatedExpression = (
|
|
135643
|
+
let FormulaIsEqualToAutoCalculatedExpression = (_dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isequaltoautocalculated", `TODO`), _dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("decimal", "string"), ``), _dec150(_class127 = (_class128 = class FormulaIsEqualToAutoCalculatedExpression extends FormulaExpression {
|
|
135600
135644
|
constructor(...args) {
|
|
135601
135645
|
super(...args);
|
|
135602
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
135603
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
135646
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor86, this);
|
|
135647
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor87, this);
|
|
135604
135648
|
}
|
|
135605
|
-
},
|
|
135649
|
+
}, _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "select", [_dec151], {
|
|
135606
135650
|
configurable: true,
|
|
135607
135651
|
enumerable: true,
|
|
135608
135652
|
writable: true,
|
|
135609
135653
|
initializer: null
|
|
135610
|
-
}),
|
|
135654
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "type", [_dec152], {
|
|
135611
135655
|
configurable: true,
|
|
135612
135656
|
enumerable: true,
|
|
135613
135657
|
writable: true,
|
|
135614
135658
|
initializer: null
|
|
135615
135659
|
}), _class128)) || _class127);
|
|
135616
|
-
let FormulaJoinExpression = (
|
|
135660
|
+
let FormulaJoinExpression = (_dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("join", `TODO`), _dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec153(_class129 = (_class130 = class FormulaJoinExpression extends FormulaExpression {
|
|
135617
135661
|
constructor(...args) {
|
|
135618
135662
|
super(...args);
|
|
135619
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array",
|
|
135663
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor88, this);
|
|
135620
135664
|
}
|
|
135621
|
-
},
|
|
135665
|
+
}, _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class130.prototype, "array", [_dec154], {
|
|
135622
135666
|
configurable: true,
|
|
135623
135667
|
enumerable: true,
|
|
135624
135668
|
writable: true,
|
|
135625
135669
|
initializer: null
|
|
135626
135670
|
}), _class130)) || _class129);
|
|
135627
|
-
let FormulaPropertyByNameExpression = (
|
|
135671
|
+
let FormulaPropertyByNameExpression = (_dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("property", `TODO`), _dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec155(_class131 = (_class132 = class FormulaPropertyByNameExpression extends FormulaExpression {
|
|
135628
135672
|
constructor(...args) {
|
|
135629
135673
|
super(...args);
|
|
135630
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
135674
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor89, this);
|
|
135631
135675
|
}
|
|
135632
|
-
},
|
|
135676
|
+
}, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class132.prototype, "name", [_dec156], {
|
|
135633
135677
|
configurable: true,
|
|
135634
135678
|
enumerable: true,
|
|
135635
135679
|
writable: true,
|
|
135636
135680
|
initializer: null
|
|
135637
135681
|
}), _class132)) || _class131);
|
|
135638
|
-
let
|
|
135682
|
+
let FormulaGetExternalInfoExpression = (_dec157 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getexternalinfo", `Получение внешней информации по ключу.`), _dec158 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec157(_class133 = (_class134 = class FormulaGetExternalInfoExpression extends FormulaExpression {
|
|
135639
135683
|
constructor(...args) {
|
|
135640
135684
|
super(...args);
|
|
135641
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
135685
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "key", _descriptor90, this);
|
|
135642
135686
|
}
|
|
135643
|
-
},
|
|
135687
|
+
}, _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class134.prototype, "key", [_dec158], {
|
|
135644
135688
|
configurable: true,
|
|
135645
135689
|
enumerable: true,
|
|
135646
135690
|
writable: true,
|
|
135647
135691
|
initializer: null
|
|
135648
135692
|
}), _class134)) || _class133);
|
|
135649
|
-
let
|
|
135650
|
-
let Formula = (_dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec159(_class136 = (_class137 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135693
|
+
let FormulaConcatExpression = (_dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec159(_class135 = (_class136 = class FormulaConcatExpression extends FormulaExpression {
|
|
135651
135694
|
constructor(...args) {
|
|
135652
135695
|
super(...args);
|
|
135653
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
135654
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor91, this);
|
|
135655
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor92, this);
|
|
135696
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor91, this);
|
|
135656
135697
|
}
|
|
135657
|
-
},
|
|
135698
|
+
}, _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class136.prototype, "arguments", [_dec160], {
|
|
135658
135699
|
configurable: true,
|
|
135659
135700
|
enumerable: true,
|
|
135660
135701
|
writable: true,
|
|
135661
135702
|
initializer: null
|
|
135662
|
-
}),
|
|
135703
|
+
}), _class136)) || _class135);
|
|
135704
|
+
let FormulaNewLineExpression = (_dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec161(_class137 = class FormulaNewLineExpression extends FormulaExpression {}) || _class137);
|
|
135705
|
+
let Formula = (_dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec163 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec164 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec165 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec162(_class138 = (_class139 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135706
|
+
constructor(...args) {
|
|
135707
|
+
super(...args);
|
|
135708
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor92, this);
|
|
135709
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor93, this);
|
|
135710
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor94, this);
|
|
135711
|
+
}
|
|
135712
|
+
}, _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "match", [_dec163], {
|
|
135663
135713
|
configurable: true,
|
|
135664
135714
|
enumerable: true,
|
|
135665
135715
|
writable: true,
|
|
135666
135716
|
initializer: null
|
|
135667
|
-
}),
|
|
135717
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "target", [_dec164], {
|
|
135668
135718
|
configurable: true,
|
|
135669
135719
|
enumerable: true,
|
|
135670
135720
|
writable: true,
|
|
135671
135721
|
initializer: null
|
|
135672
|
-
}),
|
|
135673
|
-
|
|
135722
|
+
}), _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "expression", [_dec165], {
|
|
135723
|
+
configurable: true,
|
|
135724
|
+
enumerable: true,
|
|
135725
|
+
writable: true,
|
|
135726
|
+
initializer: null
|
|
135727
|
+
}), _class139)) || _class138);
|
|
135728
|
+
let FormulaNoDepsNode = (_dec166 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec167 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec166(_class140 = (_class141 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135674
135729
|
constructor(...args) {
|
|
135675
135730
|
super(...args);
|
|
135676
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135731
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor95, this);
|
|
135677
135732
|
}
|
|
135678
|
-
},
|
|
135733
|
+
}, _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "expression", [_dec167], {
|
|
135679
135734
|
configurable: true,
|
|
135680
135735
|
enumerable: true,
|
|
135681
135736
|
writable: true,
|
|
135682
135737
|
initializer: null
|
|
135683
|
-
}),
|
|
135684
|
-
let Formulas = (
|
|
135738
|
+
}), _class141)) || _class140);
|
|
135739
|
+
let Formulas = (_dec168 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec169 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec168(_class142 = (_class143 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135685
135740
|
constructor(...args) {
|
|
135686
135741
|
super(...args);
|
|
135687
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
135742
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor96, this);
|
|
135688
135743
|
}
|
|
135689
|
-
},
|
|
135744
|
+
}, _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "items", [_dec169], {
|
|
135690
135745
|
configurable: true,
|
|
135691
135746
|
enumerable: true,
|
|
135692
135747
|
writable: true,
|
|
135693
135748
|
initializer: null
|
|
135694
|
-
}),
|
|
135695
|
-
let ConditionNode = (
|
|
135749
|
+
}), _class143)) || _class142);
|
|
135750
|
+
let ConditionNode = (_dec170 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec171 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec172 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec173 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec174 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec175 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec170(_class144 = (_class145 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135696
135751
|
constructor(...args) {
|
|
135697
135752
|
super(...args);
|
|
135698
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
135699
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
135700
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
135701
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
135702
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135753
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor97, this);
|
|
135754
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor98, this);
|
|
135755
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor99, this);
|
|
135756
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor100, this);
|
|
135757
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor101, this);
|
|
135703
135758
|
}
|
|
135704
|
-
},
|
|
135759
|
+
}, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "match", [_dec171], {
|
|
135705
135760
|
configurable: true,
|
|
135706
135761
|
enumerable: true,
|
|
135707
135762
|
writable: true,
|
|
135708
135763
|
initializer: null
|
|
135709
|
-
}),
|
|
135764
|
+
}), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "target", [_dec172], {
|
|
135710
135765
|
configurable: true,
|
|
135711
135766
|
enumerable: true,
|
|
135712
135767
|
writable: true,
|
|
135713
135768
|
initializer: null
|
|
135714
|
-
}),
|
|
135769
|
+
}), _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "description", [_dec173], {
|
|
135715
135770
|
configurable: true,
|
|
135716
135771
|
enumerable: true,
|
|
135717
135772
|
writable: true,
|
|
135718
135773
|
initializer: null
|
|
135719
|
-
}),
|
|
135774
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "errorLevel", [_dec174], {
|
|
135720
135775
|
configurable: true,
|
|
135721
135776
|
enumerable: true,
|
|
135722
135777
|
writable: true,
|
|
135723
135778
|
initializer: null
|
|
135724
|
-
}),
|
|
135779
|
+
}), _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "expression", [_dec175], {
|
|
135725
135780
|
configurable: true,
|
|
135726
135781
|
enumerable: true,
|
|
135727
135782
|
writable: true,
|
|
135728
135783
|
initializer: null
|
|
135729
|
-
}),
|
|
135730
|
-
let ConditionsNode = (
|
|
135784
|
+
}), _class145)) || _class144);
|
|
135785
|
+
let ConditionsNode = (_dec176 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec177 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec176(_class146 = (_class147 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135731
135786
|
constructor(...args) {
|
|
135732
135787
|
super(...args);
|
|
135733
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
135788
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor102, this);
|
|
135734
135789
|
}
|
|
135735
|
-
},
|
|
135790
|
+
}, _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "items", [_dec177], {
|
|
135736
135791
|
configurable: true,
|
|
135737
135792
|
enumerable: true,
|
|
135738
135793
|
writable: true,
|
|
135739
135794
|
initializer: null
|
|
135740
|
-
}),
|
|
135741
|
-
let MathContainer = (
|
|
135795
|
+
}), _class147)) || _class146);
|
|
135796
|
+
let MathContainer = (_dec178 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec179 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec180 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec178(_class148 = (_class149 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
135742
135797
|
constructor(...args) {
|
|
135743
135798
|
super(...args);
|
|
135744
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
135745
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
135799
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor103, this);
|
|
135800
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor104, this);
|
|
135746
135801
|
}
|
|
135747
|
-
},
|
|
135802
|
+
}, _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "formulas", [_dec179], {
|
|
135748
135803
|
configurable: true,
|
|
135749
135804
|
enumerable: true,
|
|
135750
135805
|
writable: true,
|
|
135751
135806
|
initializer: null
|
|
135752
|
-
}),
|
|
135807
|
+
}), _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "conditions", [_dec180], {
|
|
135753
135808
|
configurable: true,
|
|
135754
135809
|
enumerable: true,
|
|
135755
135810
|
writable: true,
|
|
135756
135811
|
initializer: null
|
|
135757
|
-
}),
|
|
135758
|
-
let FormulaMakeDictExpression = (
|
|
135812
|
+
}), _class149)) || _class148);
|
|
135813
|
+
let FormulaMakeDictExpression = (_dec181 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("makedict", `Получение словаря по ключу-значению из иннера`), _dec182 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ`), _dec183 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(undefined, [FormulaArgumentExpression, FormulaConstExpression, FormulaCastExpression], `Путь откуда брать значение или константа`), _dec181(_class150 = (_class151 = class FormulaMakeDictExpression extends FormulaExpression {
|
|
135759
135814
|
constructor(...args) {
|
|
135760
135815
|
super(...args);
|
|
135761
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
135762
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression",
|
|
135816
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor105, this);
|
|
135817
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor106, this);
|
|
135763
135818
|
}
|
|
135764
|
-
},
|
|
135819
|
+
}, _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "sourceKeyPath", [_dec182], {
|
|
135765
135820
|
configurable: true,
|
|
135766
135821
|
enumerable: true,
|
|
135767
135822
|
writable: true,
|
|
135768
135823
|
initializer: null
|
|
135769
|
-
}),
|
|
135824
|
+
}), _descriptor106 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "sourceValueExpression", [_dec183], {
|
|
135770
135825
|
configurable: true,
|
|
135771
135826
|
enumerable: true,
|
|
135772
135827
|
writable: true,
|
|
135773
135828
|
initializer: null
|
|
135774
|
-
}),
|
|
135775
|
-
let FormulaGetSumByKeysExpression = (
|
|
135829
|
+
}), _class151)) || _class150);
|
|
135830
|
+
let FormulaGetSumByKeysExpression = (_dec184 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getsumbykeys", `Вычисление суммы с группировкой в разных множественностях`), _dec185 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dictPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь к словарю`), _dec186 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec184(_class152 = (_class153 = class FormulaGetSumByKeysExpression extends FormulaExpression {
|
|
135776
135831
|
constructor(...args) {
|
|
135777
135832
|
super(...args);
|
|
135778
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
135779
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
135833
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor107, this);
|
|
135834
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor108, this);
|
|
135780
135835
|
}
|
|
135781
|
-
},
|
|
135836
|
+
}, _descriptor107 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class153.prototype, "dictPath", [_dec185], {
|
|
135782
135837
|
configurable: true,
|
|
135783
135838
|
enumerable: true,
|
|
135784
135839
|
writable: true,
|
|
135785
135840
|
initializer: null
|
|
135786
|
-
}),
|
|
135841
|
+
}), _descriptor108 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class153.prototype, "targetKeys", [_dec186], {
|
|
135787
135842
|
configurable: true,
|
|
135788
135843
|
enumerable: true,
|
|
135789
135844
|
writable: true,
|
|
135790
135845
|
initializer: null
|
|
135791
|
-
}),
|
|
135792
|
-
let FormulaGroupSumExpression = (
|
|
135846
|
+
}), _class153)) || _class152);
|
|
135847
|
+
let FormulaGroupSumExpression = (_dec187 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _dec188 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec189 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec190 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec187(_class154 = (_class155 = class FormulaGroupSumExpression extends FormulaExpression {
|
|
135793
135848
|
constructor(...args) {
|
|
135794
135849
|
super(...args);
|
|
135795
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
135796
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
135797
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath",
|
|
135850
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor109, this);
|
|
135851
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor110, this);
|
|
135852
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor111, this);
|
|
135798
135853
|
}
|
|
135799
|
-
},
|
|
135854
|
+
}, _descriptor109 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class155.prototype, "targetKeys", [_dec188], {
|
|
135800
135855
|
configurable: true,
|
|
135801
135856
|
enumerable: true,
|
|
135802
135857
|
writable: true,
|
|
135803
135858
|
initializer: null
|
|
135804
|
-
}),
|
|
135859
|
+
}), _descriptor110 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class155.prototype, "sourceKeyPath", [_dec189], {
|
|
135805
135860
|
configurable: true,
|
|
135806
135861
|
enumerable: true,
|
|
135807
135862
|
writable: true,
|
|
135808
135863
|
initializer: null
|
|
135809
|
-
}),
|
|
135864
|
+
}), _descriptor111 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class155.prototype, "sourceValuePath", [_dec190], {
|
|
135810
135865
|
configurable: true,
|
|
135811
135866
|
enumerable: true,
|
|
135812
135867
|
writable: true,
|
|
135813
135868
|
initializer: null
|
|
135814
|
-
}),
|
|
135815
|
-
let FormulaGroupCountExpression = (
|
|
135869
|
+
}), _class155)) || _class154);
|
|
135870
|
+
let FormulaGroupCountExpression = (_dec191 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec192 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec193 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec191(_class156 = (_class157 = class FormulaGroupCountExpression extends FormulaExpression {
|
|
135816
135871
|
constructor(...args) {
|
|
135817
135872
|
super(...args);
|
|
135818
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
135819
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
135873
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor112, this);
|
|
135874
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor113, this);
|
|
135820
135875
|
}
|
|
135821
|
-
},
|
|
135876
|
+
}, _descriptor112 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class157.prototype, "targetKeys", [_dec192], {
|
|
135822
135877
|
configurable: true,
|
|
135823
135878
|
enumerable: true,
|
|
135824
135879
|
writable: true,
|
|
135825
135880
|
initializer: null
|
|
135826
|
-
}),
|
|
135881
|
+
}), _descriptor113 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class157.prototype, "sourceKeyPath", [_dec193], {
|
|
135827
135882
|
configurable: true,
|
|
135828
135883
|
enumerable: true,
|
|
135829
135884
|
writable: true,
|
|
135830
135885
|
initializer: null
|
|
135831
|
-
}),
|
|
135832
|
-
let FormulaNumeratorExpression = (
|
|
135886
|
+
}), _class157)) || _class156);
|
|
135887
|
+
let FormulaNumeratorExpression = (_dec194 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("numerator", `Получение делимого из дроби A/B`), _dec195 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec194(_class158 = (_class159 = class FormulaNumeratorExpression extends FormulaExpression {
|
|
135833
135888
|
constructor(...args) {
|
|
135834
135889
|
super(...args);
|
|
135835
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135890
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor114, this);
|
|
135836
135891
|
}
|
|
135837
|
-
},
|
|
135892
|
+
}, _descriptor114 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class159.prototype, "expression", [_dec195], {
|
|
135838
135893
|
configurable: true,
|
|
135839
135894
|
enumerable: true,
|
|
135840
135895
|
writable: true,
|
|
135841
135896
|
initializer: null
|
|
135842
|
-
}),
|
|
135843
|
-
let FormulaDenominatorExpression = (
|
|
135897
|
+
}), _class159)) || _class158);
|
|
135898
|
+
let FormulaDenominatorExpression = (_dec196 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("denominator", `Получение делителя из дроби A/B`), _dec197 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec196(_class160 = (_class161 = class FormulaDenominatorExpression extends FormulaExpression {
|
|
135844
135899
|
constructor(...args) {
|
|
135845
135900
|
super(...args);
|
|
135846
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135901
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor115, this);
|
|
135847
135902
|
}
|
|
135848
|
-
},
|
|
135903
|
+
}, _descriptor115 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class161.prototype, "expression", [_dec197], {
|
|
135849
135904
|
configurable: true,
|
|
135850
135905
|
enumerable: true,
|
|
135851
135906
|
writable: true,
|
|
135852
135907
|
initializer: null
|
|
135853
|
-
}),
|
|
135854
|
-
let FormulaGetDateTimeTicksExpression = (
|
|
135908
|
+
}), _class161)) || _class160);
|
|
135909
|
+
let FormulaGetDateTimeTicksExpression = (_dec198 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getdatetimeticks", `Получить количество тиков от 01.01.0001`), _dec199 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec198(_class162 = (_class163 = class FormulaGetDateTimeTicksExpression extends FormulaExpression {
|
|
135855
135910
|
constructor(...args) {
|
|
135856
135911
|
super(...args);
|
|
135857
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
135912
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor116, this);
|
|
135858
135913
|
}
|
|
135859
135914
|
getLegacyExpressionTypeForFunctionName() {
|
|
135860
135915
|
return "getDateTimeTicks";
|
|
135861
135916
|
}
|
|
135862
|
-
},
|
|
135917
|
+
}, _descriptor116 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class163.prototype, "expression", [_dec199], {
|
|
135863
135918
|
configurable: true,
|
|
135864
135919
|
enumerable: true,
|
|
135865
135920
|
writable: true,
|
|
135866
135921
|
initializer: null
|
|
135867
|
-
}),
|
|
135868
|
-
let FormulaUUIDExpression = (
|
|
135869
|
-
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaRegexReplaceExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaIsEqualToAutoCalculatedExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsOgrnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression, FormulaNumeratorExpression, FormulaDenominatorExpression, FormulaGetDateTimeTicksExpression, FormulaUUIDExpression];
|
|
135922
|
+
}), _class163)) || _class162);
|
|
135923
|
+
let FormulaUUIDExpression = (_dec200 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("uuid", `Сгенерировать UUID`), _dec200(_class164 = class FormulaUUIDExpression extends FormulaExpression {}) || _class164);
|
|
135924
|
+
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaRegexReplaceExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaIsEqualToAutoCalculatedExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsOgrnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression, FormulaGetExternalInfoExpression, FormulaNumeratorExpression, FormulaDenominatorExpression, FormulaGetDateTimeTicksExpression, FormulaUUIDExpression];
|
|
135870
135925
|
|
|
135871
135926
|
/***/ }),
|
|
135872
135927
|
|
|
@@ -138384,7 +138439,11 @@ class KCLangExpressionToJsExpressionConverter extends _common_KCLang_CodeDom_KCL
|
|
|
138384
138439
|
return this.gcf(x => x.length, this.visit(expression.argument, context));
|
|
138385
138440
|
}
|
|
138386
138441
|
visitRegexMatchFunctionCall(expression, context) {
|
|
138387
|
-
|
|
138442
|
+
const expr = this.visit(expression.argument, context);
|
|
138443
|
+
const pattern = this.visit(expression.patternExpression, context);
|
|
138444
|
+
const flags = expression.flags && this.visit(expression.flags, context);
|
|
138445
|
+
const params = flags ? [expr, pattern, flags] : [expr, pattern];
|
|
138446
|
+
return this.gcf(x => x.regexMatch, ...params);
|
|
138388
138447
|
}
|
|
138389
138448
|
visitRegexReplaceFunctionCall(expression, context) {
|
|
138390
138449
|
const params = [this.visit(expression.argument, context), this.visit(expression.patternExpression, context), this.visit(expression.replacement, context)];
|
|
@@ -138554,9 +138613,12 @@ class KCLangExpressionToJsExpressionConverter extends _common_KCLang_CodeDom_KCL
|
|
|
138554
138613
|
}
|
|
138555
138614
|
visitGetExternalInfoFunctionalCall(expression, context) {
|
|
138556
138615
|
const keyAsStringConst = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_11__.safeCast)(expression.key, _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_9__.StringConstExpression);
|
|
138557
|
-
|
|
138558
|
-
|
|
138559
|
-
|
|
138616
|
+
if (keyAsStringConst != undefined) {
|
|
138617
|
+
const dependencyKey = keyAsStringConst.value;
|
|
138618
|
+
context.addDep(new _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_6__.ExternalInfoDependency(dependencyKey));
|
|
138619
|
+
return this.gcf(x => x.getProperty, `"${dependencyKey.replace(/^\@/, "")}"`, `() => undefined`);
|
|
138620
|
+
}
|
|
138621
|
+
return this.gcf(x => x.getExternalInfo, this.visit(expression.key, context));
|
|
138560
138622
|
}
|
|
138561
138623
|
visitGetSumByKeysFunctionCall(_expression, _context) {
|
|
138562
138624
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_4__.NotSupportedError("GetSumByKeysFunctionCall is not supported");
|
|
@@ -138700,7 +138762,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
138700
138762
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
138701
138763
|
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
138702
138764
|
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
138703
|
-
/* harmony import */ var
|
|
138765
|
+
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
138766
|
+
/* harmony import */ var _KCGeneratorUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KCGeneratorUtils */ "./Generator/src/generators/KCXmlGenerator/KCGeneratorUtils.ts");
|
|
138767
|
+
|
|
138704
138768
|
|
|
138705
138769
|
|
|
138706
138770
|
|
|
@@ -138754,11 +138818,46 @@ function isDependencyWithoutChecks(path) {
|
|
|
138754
138818
|
return path instanceof DependencyWithoutChecks;
|
|
138755
138819
|
}
|
|
138756
138820
|
class KCXmlGeneratorBase {
|
|
138757
|
-
constructor(schema, extendedSchemaInfo) {
|
|
138821
|
+
constructor(schema, extendedSchemaInfo, attachmentLegacyPaths = []) {
|
|
138758
138822
|
this.schema = void 0;
|
|
138759
138823
|
this.extendedSchemaInfo = void 0;
|
|
138824
|
+
this.attachmentLegacyPaths = void 0;
|
|
138825
|
+
this.attachmentPathsBySimpleKey = void 0;
|
|
138760
138826
|
this.schema = schema;
|
|
138761
138827
|
this.extendedSchemaInfo = extendedSchemaInfo;
|
|
138828
|
+
this.attachmentLegacyPaths = attachmentLegacyPaths;
|
|
138829
|
+
}
|
|
138830
|
+
|
|
138831
|
+
// Множественность пути по умолчанию выводится из RNG-схемы. Но для attachment-узлов
|
|
138832
|
+
// фактическая раскладка хранения следует node.single загрузчика (см.
|
|
138833
|
+
// FileLoaderConverter.getAttachmentPaths / addAttachmentPathDeclEntry), которая может
|
|
138834
|
+
// расходиться со схемой. Когда путь оканчивается на attachment, берём его множественность
|
|
138835
|
+
// из авторитетного списка attachment-путей (AttachmentPaths) — иначе валидация/расчёт
|
|
138836
|
+
// обращается к несуществующему пути id вложения и молча проходит.
|
|
138837
|
+
adjustPathMultiplicity(path) {
|
|
138838
|
+
const bySchema = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, path);
|
|
138839
|
+
return this.overrideAttachmentMultiplicity(path, bySchema);
|
|
138840
|
+
}
|
|
138841
|
+
overrideAttachmentMultiplicity(simplePath, bySchema) {
|
|
138842
|
+
const parts = simplePath.getPathPartsAsArray();
|
|
138843
|
+
if (parts[parts.length - 1] !== _Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.AttachmentInfoPath.toLegacyPath()) {
|
|
138844
|
+
return bySchema;
|
|
138845
|
+
}
|
|
138846
|
+
const authoritative = this.getAttachmentPathsBySimpleKey().get(simplePath.toLegacyPath());
|
|
138847
|
+
return authoritative !== null && authoritative !== void 0 ? authoritative : bySchema;
|
|
138848
|
+
}
|
|
138849
|
+
getAttachmentPathsBySimpleKey() {
|
|
138850
|
+
if (this.attachmentPathsBySimpleKey == undefined) {
|
|
138851
|
+
const map = new Map();
|
|
138852
|
+
for (const legacy of this.attachmentLegacyPaths) {
|
|
138853
|
+
// legacy хранит each как "*" (напр. Root/Field/*/attachment); ключуем по
|
|
138854
|
+
// упрощённому пути без множественности, значение — путь с PathTokens.each.
|
|
138855
|
+
const simpleKey = legacy.split("/").filter(segment => segment !== "*").join("/");
|
|
138856
|
+
map.set(simpleKey, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(legacy, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each));
|
|
138857
|
+
}
|
|
138858
|
+
this.attachmentPathsBySimpleKey = map;
|
|
138859
|
+
}
|
|
138860
|
+
return this.attachmentPathsBySimpleKey;
|
|
138762
138861
|
}
|
|
138763
138862
|
skipGetPicklistValues() {
|
|
138764
138863
|
return true;
|
|
@@ -138852,17 +138951,17 @@ class KCXmlGeneratorBase {
|
|
|
138852
138951
|
const gcf = (selector, ...args) => this.getCompiledFuncWithArgs(selector, args);
|
|
138853
138952
|
const agcf = (selector, ...args) => this.getCompiledAsyncFuncWithArgs(selector, args);
|
|
138854
138953
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArgumentExpression || expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultySumExpression) {
|
|
138855
|
-
const modelPath =
|
|
138954
|
+
const modelPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
138856
138955
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
138857
138956
|
deps.push(argumentDependency);
|
|
138858
138957
|
const finalPath = argumentDependency.asDependencyModelPath();
|
|
138859
|
-
return gcf(x => x.argument, `${
|
|
138958
|
+
return gcf(x => x.argument, `${_KCGeneratorUtils__WEBPACK_IMPORTED_MODULE_9__.KCGeneratorUtils.getModelPathVariableName(finalPath)}`);
|
|
138860
138959
|
}
|
|
138861
138960
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
|
|
138862
|
-
const modelPath =
|
|
138961
|
+
const modelPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
138863
138962
|
const existsDependency = new RegularDependency(modelPath);
|
|
138864
138963
|
deps.push(existsDependency);
|
|
138865
|
-
return gcf(x => x.exists, `${
|
|
138964
|
+
return gcf(x => x.exists, `${_KCGeneratorUtils__WEBPACK_IMPORTED_MODULE_9__.KCGeneratorUtils.getModelPathVariableName(modelPath)}`);
|
|
138866
138965
|
}
|
|
138867
138966
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
138868
138967
|
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
@@ -138891,7 +138990,7 @@ class KCXmlGeneratorBase {
|
|
|
138891
138990
|
}
|
|
138892
138991
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
138893
138992
|
var _expression$withNullO;
|
|
138894
|
-
const modelPath =
|
|
138993
|
+
const modelPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
138895
138994
|
let finalPath = modelPath;
|
|
138896
138995
|
if (targetFullPath.isContainIteration()) {
|
|
138897
138996
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
@@ -138900,16 +138999,16 @@ class KCXmlGeneratorBase {
|
|
|
138900
138999
|
} else {
|
|
138901
139000
|
deps.push(new RegularDependency(modelPath.trimLastStarIfLastToken()));
|
|
138902
139001
|
}
|
|
138903
|
-
return gcf(x => x.count, `${
|
|
139002
|
+
return gcf(x => x.count, `${_KCGeneratorUtils__WEBPACK_IMPORTED_MODULE_9__.KCGeneratorUtils.getModelPathVariableName(finalPath)}`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
138904
139003
|
}
|
|
138905
139004
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaInstanceCountExpression) {
|
|
138906
|
-
const modelPath =
|
|
139005
|
+
const modelPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
138907
139006
|
const finalPath = modelPath.trimLastStarIfLastToken();
|
|
138908
139007
|
deps.push(new DependencyWithoutChecks(finalPath));
|
|
138909
139008
|
return gcf(x => x.instanceCount, `"${finalPath.toLegacyPath()}"`);
|
|
138910
139009
|
}
|
|
138911
139010
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsEqualToAutoCalculatedExpression) {
|
|
138912
|
-
const modelPath =
|
|
139011
|
+
const modelPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
138913
139012
|
const finalPath = modelPath.trimLastStarIfLastToken();
|
|
138914
139013
|
deps.push(new DependencyWithoutChecks(finalPath));
|
|
138915
139014
|
return gcf(x => x.isValueEqlAutoValue, `"${finalPath.toLegacyPath()}"`);
|
|
@@ -138971,7 +139070,13 @@ class KCXmlGeneratorBase {
|
|
|
138971
139070
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRegexMatchExpression) {
|
|
138972
139071
|
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument, deps);
|
|
138973
139072
|
const preparedPattern = JSON.stringify(expression.pattern);
|
|
138974
|
-
|
|
139073
|
+
const selector = x => x.regexMatch;
|
|
139074
|
+
const params = [selector, compiledArgument, preparedPattern];
|
|
139075
|
+
if (expression.flags != undefined) {
|
|
139076
|
+
const flags = JSON.stringify(expression.flags);
|
|
139077
|
+
return gcf(...params, flags);
|
|
139078
|
+
}
|
|
139079
|
+
return gcf(...params);
|
|
138975
139080
|
}
|
|
138976
139081
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRegexReplaceExpression) {
|
|
138977
139082
|
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument, deps);
|
|
@@ -139136,6 +139241,10 @@ class KCXmlGeneratorBase {
|
|
|
139136
139241
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaPropertyByNameExpression) {
|
|
139137
139242
|
return gcf(x => x.getProperty, JSON.stringify(expression.name));
|
|
139138
139243
|
}
|
|
139244
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetExternalInfoExpression) {
|
|
139245
|
+
const compiledKey = this.compileExpression(prefix, targetFullPath, expression.key, deps);
|
|
139246
|
+
return gcf(x => x.getExternalInfo, compiledKey);
|
|
139247
|
+
}
|
|
139139
139248
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCastExpression) {
|
|
139140
139249
|
const compiledExpression = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
139141
139250
|
return compiledExpression;
|
|
@@ -139207,7 +139316,7 @@ class KCXmlGeneratorBase {
|
|
|
139207
139316
|
return path.replace(/\/\*/g, "");
|
|
139208
139317
|
}
|
|
139209
139318
|
getModelPath(prefix, path) {
|
|
139210
|
-
return
|
|
139319
|
+
return this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(path)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
139211
139320
|
}
|
|
139212
139321
|
modelPathInstance(target) {
|
|
139213
139322
|
return `ap([${[...target.getPathParts()].map(x => {
|
|
@@ -139225,10 +139334,10 @@ class KCXmlGeneratorBase {
|
|
|
139225
139334
|
}
|
|
139226
139335
|
compilePathVariables(compilations, indentLine) {
|
|
139227
139336
|
const paths = compilations.map(x => x.dependencies.filter(dep => isIDependency(dep)).map(dep => dep.asDependencyModelPath())).flat().map(path => {
|
|
139228
|
-
const nextPath =
|
|
139337
|
+
const nextPath = this.adjustPathMultiplicity((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(path.getPathPartsAsArray().filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken)));
|
|
139229
139338
|
return nextPath.isContainIteration() ? [path, nextPath] : [path];
|
|
139230
139339
|
}).flat();
|
|
139231
|
-
return
|
|
139340
|
+
return _KCGeneratorUtils__WEBPACK_IMPORTED_MODULE_9__.KCGeneratorUtils.compilePathVariablesDefinition(paths, indentLine);
|
|
139232
139341
|
}
|
|
139233
139342
|
}
|
|
139234
139343
|
|
|
@@ -139254,9 +139363,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
139254
139363
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
139255
139364
|
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
139256
139365
|
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
|
|
139257
|
-
/* harmony import */ var
|
|
139258
|
-
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
139259
|
-
|
|
139366
|
+
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
139260
139367
|
|
|
139261
139368
|
|
|
139262
139369
|
|
|
@@ -139269,7 +139376,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
139269
139376
|
const emptyResult = `
|
|
139270
139377
|
export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
|
|
139271
139378
|
`;
|
|
139272
|
-
class KCXmlValidationGenerator extends
|
|
139379
|
+
class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.KCXmlGeneratorBase {
|
|
139273
139380
|
generateConfigurationFunction(kcXmlConditions, options) {
|
|
139274
139381
|
var _this$generateCalcula;
|
|
139275
139382
|
const configuration = (_this$generateCalcula = this.generateCalculatorConfiguration(kcXmlConditions, options)) !== null && _this$generateCalcula !== void 0 ? _this$generateCalcula : "";
|
|
@@ -139304,7 +139411,7 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
139304
139411
|
compileCondition(condition, options) {
|
|
139305
139412
|
var _condition$descriptio, _condition$errorLevel;
|
|
139306
139413
|
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each).toAbsolute();
|
|
139307
|
-
const target =
|
|
139414
|
+
const target = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each)).normalize());
|
|
139308
139415
|
const deps = [];
|
|
139309
139416
|
const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, condition.expression, deps);
|
|
139310
139417
|
if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotSupportedError) {
|
|
@@ -139324,9 +139431,9 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
139324
139431
|
}
|
|
139325
139432
|
const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
|
|
139326
139433
|
const compiledTarget = this.modelPathInstance(target);
|
|
139327
|
-
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(deps.filter(x => (0,
|
|
139434
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(deps.filter(x => (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.isIDependency)(x)).map(x => ({
|
|
139328
139435
|
path: x.asDependencyModelPath(),
|
|
139329
|
-
isIgnoreForChecks: (0,
|
|
139436
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.isDependencyWithoutChecks)(x),
|
|
139330
139437
|
pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.current ? "!" : token)).toLegacyPath()
|
|
139331
139438
|
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
139332
139439
|
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
@@ -139782,11 +139889,11 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
139782
139889
|
const rngSchemaValidationConfigurator = validationGenerator.generateRngSchemaValidationConfigurator();
|
|
139783
139890
|
builder.addResource("rngSchemaValidationConfigurator.js", rngSchemaValidationConfigurator);
|
|
139784
139891
|
const formulasForCalculator2 = useCalculator2 ? formulas : [];
|
|
139785
|
-
const kcXmlAutoCalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_44__.AutoCalculationsCalculator2Generator(formSchemaRng, dataDeclarationHelper, extendedSchemaInfo);
|
|
139892
|
+
const kcXmlAutoCalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_44__.AutoCalculationsCalculator2Generator(formSchemaRng, dataDeclarationHelper, extendedSchemaInfo, attachmentPaths);
|
|
139786
139893
|
builder.addResource("kcXmlAutoCalculationConfigurator.js", kcXmlAutoCalcGenerator.generate(formulasForCalculator2, {
|
|
139787
139894
|
skipNotSupportedFunction: useServerCalculations
|
|
139788
139895
|
}));
|
|
139789
|
-
const kcXmlValidationGenerator = new _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_40__.KCXmlValidationGenerator(formSchemaRng, extendedSchemaInfo);
|
|
139896
|
+
const kcXmlValidationGenerator = new _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_40__.KCXmlValidationGenerator(formSchemaRng, extendedSchemaInfo, attachmentPaths);
|
|
139790
139897
|
const kcXmlConditionsForCalculator2 = kcXmlConditions;
|
|
139791
139898
|
const content = kcXmlValidationGenerator.generate(kcXmlConditionsForCalculator2, {
|
|
139792
139899
|
skipNotSupportedFunction: useServerCalculations
|
|
@@ -148584,7 +148691,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
148584
148691
|
/* harmony import */ var _common_KCLang_CodeDom_InBlock__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/InBlock */ "./Generator/src/common/KCLang/CodeDom/InBlock.ts");
|
|
148585
148692
|
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
148586
148693
|
/* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../../ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
|
|
148587
|
-
/* harmony import */ var
|
|
148694
|
+
/* harmony import */ var _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../AttachmentPaths/AttachmentPathsGenerator */ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts");
|
|
148695
|
+
/* harmony import */ var _UserPicklistNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./UserPicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts");
|
|
148696
|
+
|
|
148588
148697
|
|
|
148589
148698
|
|
|
148590
148699
|
|
|
@@ -148612,7 +148721,7 @@ function getUserPicklistComponentName(node) {
|
|
|
148612
148721
|
}
|
|
148613
148722
|
class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
|
|
148614
148723
|
static getAcceptNodeClass() {
|
|
148615
|
-
return
|
|
148724
|
+
return _UserPicklistNode__WEBPACK_IMPORTED_MODULE_22__.UserPicklistNode;
|
|
148616
148725
|
}
|
|
148617
148726
|
applyVisibilityPathProcessing() {
|
|
148618
148727
|
return false;
|
|
@@ -148628,7 +148737,7 @@ class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
148628
148737
|
}
|
|
148629
148738
|
doConvert(context) {
|
|
148630
148739
|
var _findSugarNodeBases$, _mathContainerFromSug, _mathContainerFromSug2;
|
|
148631
|
-
const node = this.getCurrentNodeAs(
|
|
148740
|
+
const node = this.getCurrentNodeAs(_UserPicklistNode__WEBPACK_IMPORTED_MODULE_22__.UserPicklistNode);
|
|
148632
148741
|
const userPicklistDeclarationBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_4__.componentMarkupBuilder)("UserPicklistDeclaration");
|
|
148633
148742
|
userPicklistDeclarationBuilder.prop(x => x.name).set(node.name);
|
|
148634
148743
|
userPicklistDeclarationBuilder.prop(x => x.columns).set(node.columns);
|
|
@@ -148654,7 +148763,8 @@ class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
148654
148763
|
const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_17__.DataDeclarationGenerationTimeHelper(dataDeclaration, formSchemaRng);
|
|
148655
148764
|
const extendedSchemaInfo = (0,_ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_20__.buildExtendedSchemaInfo)(dataDeclarationHelper);
|
|
148656
148765
|
const mathContainerFromSugar = _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_15__.KCLangToXmlTranspiler.transpileAsMathContainer(kcLangFromSugar);
|
|
148657
|
-
const
|
|
148766
|
+
const attachmentPaths = new _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_21__.AttachmentPathsGenerator(context).generate(sugarRoot);
|
|
148767
|
+
const kcXmlValidationGenerator = new _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_16__.KCXmlValidationGenerator(formSchemaRng, extendedSchemaInfo, attachmentPaths);
|
|
148658
148768
|
const kcXmlValidationConfiguratorFunction = kcXmlValidationGenerator.generateConfigurationFunction((_mathContainerFromSug = (_mathContainerFromSug2 = mathContainerFromSugar.conditions) === null || _mathContainerFromSug2 === void 0 ? void 0 : _mathContainerFromSug2.items) !== null && _mathContainerFromSug !== void 0 ? _mathContainerFromSug : [], {
|
|
148659
148769
|
skipNotSupportedFunction: true
|
|
148660
148770
|
});
|
|
@@ -162838,20 +162948,17 @@ class FileLoaderConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4
|
|
|
162838
162948
|
multiple: multipleNode
|
|
162839
162949
|
});
|
|
162840
162950
|
}
|
|
162841
|
-
|
|
162842
|
-
// eslint-disable-next-line no-warning-comments
|
|
162843
|
-
// TODO(2026-07-31): Исправить в рамках задачи https://yt.skbkontur.ru/issue/FS-9386
|
|
162844
|
-
*doBuildKCLangValidations_REMOVE_THIS_SUFFIX(buildContext, formSchemaRng, prefixPath) {
|
|
162951
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
162845
162952
|
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_11__.FileLoaderNode);
|
|
162846
162953
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
162847
|
-
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
162954
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
162848
162955
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
162849
162956
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
162850
162957
|
const ownPath = node.getOwnPathForKCLang();
|
|
162851
162958
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
162852
162959
|
return;
|
|
162853
162960
|
}
|
|
162854
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.validationInfo.emptydescription);
|
|
162961
|
+
yield* buildContext.buildBasicValidations(ownPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath), targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.validationInfo.emptydescription);
|
|
162855
162962
|
}
|
|
162856
162963
|
doBuildDataDeclaration(context) {
|
|
162857
162964
|
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_11__.FileLoaderNode);
|
|
@@ -168865,32 +168972,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
168865
168972
|
/* harmony import */ var _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts");
|
|
168866
168973
|
/* harmony import */ var _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/JoinFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts");
|
|
168867
168974
|
/* harmony import */ var _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/LengthFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/LengthFunctionCall.ts");
|
|
168868
|
-
/* harmony import */ var
|
|
168869
|
-
/* harmony import */ var
|
|
168870
|
-
/* harmony import */ var
|
|
168871
|
-
/* harmony import */ var
|
|
168872
|
-
/* harmony import */ var
|
|
168873
|
-
/* harmony import */ var
|
|
168874
|
-
/* harmony import */ var
|
|
168875
|
-
/* harmony import */ var
|
|
168876
|
-
/* harmony import */ var
|
|
168877
|
-
/* harmony import */ var
|
|
168878
|
-
/* harmony import */ var
|
|
168879
|
-
/* harmony import */ var
|
|
168880
|
-
/* harmony import */ var
|
|
168881
|
-
/* harmony import */ var
|
|
168882
|
-
/* harmony import */ var
|
|
168883
|
-
/* harmony import */ var
|
|
168884
|
-
/* harmony import */ var
|
|
168885
|
-
/* harmony import */ var
|
|
168886
|
-
/* harmony import */ var
|
|
168887
|
-
/* harmony import */ var
|
|
168888
|
-
/* harmony import */ var
|
|
168889
|
-
/* harmony import */ var
|
|
168890
|
-
/* harmony import */ var
|
|
168891
|
-
/* harmony import */ var
|
|
168892
|
-
/* harmony import */ var
|
|
168893
|
-
/* harmony import */ var
|
|
168975
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_ConcatFunctionCall__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/ConcatFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/ConcatFunctionCall.ts");
|
|
168976
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_GetExternalInfoFunctionalCall__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/GetExternalInfoFunctionalCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetExternalInfoFunctionalCall.ts");
|
|
168977
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/RegexMatchFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/RegexMatchFunctionCall.ts");
|
|
168978
|
+
/* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
|
|
168979
|
+
/* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
|
|
168980
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
168981
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
168982
|
+
/* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
|
|
168983
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
|
|
168984
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
|
|
168985
|
+
/* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
|
|
168986
|
+
/* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
|
|
168987
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
|
|
168988
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
|
|
168989
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
168990
|
+
/* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
|
|
168991
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
168992
|
+
/* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
168993
|
+
/* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
|
|
168994
|
+
/* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
168995
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
168996
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall.ts");
|
|
168997
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangRawStringExpression */ "./Generator/src/common/KCLang/CodeDom/KCLangRawStringExpression.ts");
|
|
168998
|
+
/* harmony import */ var _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GtExpression */ "./Generator/src/common/KCLang/CodeDom/GtExpression.ts");
|
|
168999
|
+
/* harmony import */ var _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LtExpression */ "./Generator/src/common/KCLang/CodeDom/LtExpression.ts");
|
|
169000
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
169001
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_IsDateFunctionCall__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/IsDateFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/IsDateFunctionCall.ts");
|
|
169002
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
169003
|
+
|
|
168894
169004
|
|
|
168895
169005
|
|
|
168896
169006
|
|
|
@@ -168931,6 +169041,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
168931
169041
|
|
|
168932
169042
|
|
|
168933
169043
|
|
|
169044
|
+
|
|
169045
|
+
const BYTES_PER_MB = 1024 * 1024;
|
|
168934
169046
|
class KCLangCalculationsBuildContext {
|
|
168935
169047
|
constructor(schemaRng, nodeTypeInfoHelper) {
|
|
168936
169048
|
this.schemaRng = void 0;
|
|
@@ -168949,7 +169061,7 @@ class KCLangCalculationsBuildContext {
|
|
|
168949
169061
|
const targetFullPathForKCLang = targetFullPath.getPathWithoutIterations();
|
|
168950
169062
|
const suffix = prefixPath.getSuffixPathFrom(targetFullPathForKCLang);
|
|
168951
169063
|
const amountLevelUpSteps = prefixPath.tokensCount() - (targetFullPathForKCLang.tokensCount() - suffix.tokensCount());
|
|
168952
|
-
const relativeFromTokens = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)([...[...
|
|
169064
|
+
const relativeFromTokens = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)([...[..._Common_IterableUtils__WEBPACK_IMPORTED_MODULE_39__.IterUtils.range(amountLevelUpSteps)].map(_ => ".."), ...suffix.getPathParts()]);
|
|
168953
169065
|
return relativeFromTokens;
|
|
168954
169066
|
};
|
|
168955
169067
|
const relativeTargetPath = targetPath.isAbsolute() ? getRelativePath() : targetPath;
|
|
@@ -168962,7 +169074,7 @@ class KCLangCalculationsBuildContext {
|
|
|
168962
169074
|
const baseDescription = (_typeNode$description = typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _typeNode$description !== void 0 ? _typeNode$description : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description;
|
|
168963
169075
|
const valueChecks = [];
|
|
168964
169076
|
if (baseName != undefined) {
|
|
168965
|
-
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,
|
|
169077
|
+
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__.omitLocalization)(baseDescription), node)).toArray());
|
|
168966
169078
|
}
|
|
168967
169079
|
valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
|
|
168968
169080
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
@@ -168970,13 +169082,13 @@ class KCLangCalculationsBuildContext {
|
|
|
168970
169082
|
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2;
|
|
168971
169083
|
const requiredDescription = (_ref = (_ref2 = (_ref3 = (_ref4 = highOrderDescription !== null && highOrderDescription !== void 0 ? highOrderDescription : typeNode === null || typeNode === void 0 ? void 0 : typeNode.requiredDescription) !== null && _ref4 !== void 0 ? _ref4 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.requiredDescription) !== null && _ref3 !== void 0 ? _ref3 : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref2 !== void 0 ? _ref2 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _ref !== void 0 ? _ref : "Поле должно быть заполнено";
|
|
168972
169084
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
168973
|
-
let allChildrenPaths = parentNode instanceof
|
|
168974
|
-
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) >
|
|
169085
|
+
let allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_30__.FormSchemaRngElement ? this.schemaRng.getAllChildValueNodes(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration()) : undefined;
|
|
169086
|
+
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) > _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_33__.maxOptionalChildrenLimit) {
|
|
168975
169087
|
allChildrenPaths = undefined;
|
|
168976
169088
|
}
|
|
168977
|
-
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new
|
|
169089
|
+
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_22__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("")))).reduce(combineByOrKCLangExpr, undefined);
|
|
168978
169090
|
let choiceChecks;
|
|
168979
|
-
const haveChoices = schemaNode instanceof
|
|
169091
|
+
const haveChoices = schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_30__.FormSchemaRngElement && schemaNode.choices.length > 0;
|
|
168980
169092
|
if (haveChoices) {
|
|
168981
169093
|
const choiceRules = [];
|
|
168982
169094
|
for (const schemaNodeChoice of schemaNode.choices) {
|
|
@@ -168984,30 +169096,30 @@ class KCLangCalculationsBuildContext {
|
|
|
168984
169096
|
continue;
|
|
168985
169097
|
}
|
|
168986
169098
|
const allChoicesPaths = schemaNodeChoice === null || schemaNodeChoice === void 0 ? void 0 : schemaNodeChoice.values().map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration());
|
|
168987
|
-
choiceChecks = allChoicesPaths === null || allChoicesPaths === void 0 ? void 0 : allChoicesPaths.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new
|
|
169099
|
+
choiceChecks = allChoicesPaths === null || allChoicesPaths === void 0 ? void 0 : allChoicesPaths.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_22__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("")))).reduce(combineByOrKCLangExpr, undefined);
|
|
168988
169100
|
if (choiceChecks) {
|
|
168989
|
-
choiceRules.push(new
|
|
169101
|
+
choiceRules.push(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_23__.NotExpression(choiceChecks));
|
|
168990
169102
|
}
|
|
168991
169103
|
}
|
|
168992
169104
|
choiceChecks = choiceRules.reduce(combineByOrKCLangExpr, undefined);
|
|
168993
169105
|
}
|
|
168994
|
-
const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new
|
|
169106
|
+
const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_22__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(""))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__.omitLocalization)(requiredDescription))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString()))]);
|
|
168995
169107
|
if (restChecks != undefined && choiceChecks != undefined) {
|
|
168996
|
-
yield new
|
|
169108
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(restChecks, choiceChecks), [checkRequiredStatement]);
|
|
168997
169109
|
} else if (choiceChecks != undefined) {
|
|
168998
|
-
yield new
|
|
169110
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(choiceChecks, [checkRequiredStatement]);
|
|
168999
169111
|
} else if (restChecks != undefined) {
|
|
169000
|
-
yield new
|
|
169112
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(restChecks, [checkRequiredStatement]);
|
|
169001
169113
|
} else {
|
|
169002
169114
|
yield checkRequiredStatement;
|
|
169003
169115
|
}
|
|
169004
169116
|
}
|
|
169005
|
-
yield new
|
|
169117
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_22__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(""))), valueChecks);
|
|
169006
169118
|
}
|
|
169007
169119
|
getFirstAcceptedParent(schemaNode) {
|
|
169008
169120
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
169009
169121
|
while (parentNode != undefined) {
|
|
169010
|
-
if (parentNode instanceof
|
|
169122
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_30__.FormSchemaRngElement) {
|
|
169011
169123
|
var _parentNode$multiple;
|
|
169012
169124
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
169013
169125
|
return parentNode;
|
|
@@ -169023,37 +169135,39 @@ class KCLangCalculationsBuildContext {
|
|
|
169023
169135
|
return undefined;
|
|
169024
169136
|
}
|
|
169025
169137
|
createCheck(targetPath, condition, message, checkType) {
|
|
169026
|
-
const withBlocks = [new
|
|
169138
|
+
const withBlocks = [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(message.replace(/\[/gi, "\\[").replace(/]/gi, "\\]"))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString()))];
|
|
169027
169139
|
if (checkType == "warning") {
|
|
169028
|
-
withBlocks.push(new
|
|
169140
|
+
withBlocks.push(new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("errorLevel", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText("Warning")));
|
|
169029
169141
|
}
|
|
169030
169142
|
return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(condition, withBlocks);
|
|
169031
169143
|
}
|
|
169032
169144
|
*createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId) {
|
|
169033
|
-
var _typeNode$checkType, _typeNode$children$fi, _typeNode$children, _schemaTypeNode$enume, _digest$gId, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMinExclusive, _typeNode$children7, _typeNodeMaxInclusive, _typeNode$children8, _typeNodeMaxExclusive, _typeNode$children9, _typeNodeTotalDigits$, _typeNode$children$fi2, _typeNode$children10, _typeNode$children11, _typeNode$children$fi3, _typeNode$children12, _schemaTypeNode$patte, _typeNode$children13, _typeNodeInteger$valu, _typeNode$children14, _typeNodeFractional$v, _ref10, _typeNode$children$fi4, _typeNode$children15, _typeNode$children16, _typeNode$base2;
|
|
169145
|
+
var _typeNode$flattenType, _typeNode$checkType, _typeNode$children$fi, _typeNode$children, _schemaTypeNode$enume, _digest$gId, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMinExclusive, _typeNode$children7, _typeNodeMaxInclusive, _typeNode$children8, _typeNodeMaxExclusive, _typeNode$children9, _typeNodeTotalDigits$, _typeNode$children$fi2, _typeNode$children10, _typeNode$children11, _typeNode$children$fi3, _typeNode$children12, _schemaTypeNode$patte, _typeNode$children13, _typeNodeInteger$valu, _typeNode$children14, _typeNodeFractional$v, _ref10, _typeNode$children$fi4, _typeNode$children15, _typeNode$children16, _typeNode$base2;
|
|
169146
|
+
const typeCheckNodes = (_typeNode$flattenType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.flattenTypeCheckNodes()) !== null && _typeNode$flattenType !== void 0 ? _typeNode$flattenType : [];
|
|
169147
|
+
const findCheck = cl => typeCheckNodes.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(cl));
|
|
169034
169148
|
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
169035
|
-
const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 || (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 || (_typeNode$children = _typeNode$children.filter(x => x instanceof
|
|
169149
|
+
const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 || (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 || (_typeNode$children = _typeNode$children.filter(x => x instanceof _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.EnumerationTypeCheckNode)) === null || _typeNode$children === void 0 ? void 0 : _typeNode$children.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
|
|
169036
169150
|
const enumerationItems = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(typeNodeEnumerations) ? typeNodeEnumerations : (_schemaTypeNode$enume = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.enumeration) !== null && _schemaTypeNode$enume !== void 0 ? _schemaTypeNode$enume : [];
|
|
169037
169151
|
const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
|
|
169038
169152
|
var _ref5, _ref6, _ref7, _omitLocalization;
|
|
169039
|
-
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,
|
|
169153
|
+
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref5 !== void 0 ? _ref5 : "Поле должно быть заполнено";
|
|
169040
169154
|
};
|
|
169041
|
-
const valueReferenceExpression = new
|
|
169042
|
-
const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression,
|
|
169155
|
+
const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true));
|
|
169156
|
+
const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default);
|
|
169043
169157
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(enumerationItems)) {
|
|
169044
|
-
yield this.createCheck(targetPath, new
|
|
169158
|
+
yield this.createCheck(targetPath, new _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_24__.OneOfExpression(stringValueReference, enumerationItems.map(item => new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(item))), makeMessage({
|
|
169045
169159
|
enumerationAllowedValues: enumerationItems
|
|
169046
169160
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169047
169161
|
}
|
|
169048
|
-
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(
|
|
169162
|
+
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.DigestcheckTypeCheckNode).find(x => x);
|
|
169049
169163
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
169050
169164
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(gId) && digest != undefined) {
|
|
169051
169165
|
var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
|
|
169052
169166
|
// const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
|
|
169053
|
-
const ruleBody = new
|
|
169054
|
-
yield this.createCheck(targetPath, ruleBody, (0,
|
|
169167
|
+
const ruleBody = new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_23__.NotExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(valueReferenceExpression)), new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_9__.EqExpression(stringValueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(""))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_22__.NotEqExpression(new _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_12__.JoinFunctionCall(new _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_11__.GetPicklistValuesFunctionCall(new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(gId), new _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringArrayConstExpression([new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression((_digest$keyColumnName = digest.keyColumnName) !== null && _digest$keyColumnName !== void 0 ? _digest$keyColumnName : "code")]), new _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringArrayConstExpression([stringValueReference]), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression((_digest$keyColumnName2 = digest.keyColumnName) !== null && _digest$keyColumnName2 !== void 0 ? _digest$keyColumnName2 : "code"))), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("")));
|
|
169168
|
+
yield this.createCheck(targetPath, ruleBody, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_41__.omitLocalization)((_ref8 = (_digest$description = digest.description) !== null && _digest$description !== void 0 ? _digest$description : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref8 !== void 0 ? _ref8 : "Поле заполнено не по справочнику"), (_ref9 = (_digest$checkType = digest.checkType) !== null && _digest$checkType !== void 0 ? _digest$checkType : typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _ref9 !== void 0 ? _ref9 : "error");
|
|
169055
169169
|
}
|
|
169056
|
-
const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,
|
|
169170
|
+
const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.LengthTypeCheckNode));
|
|
169057
169171
|
const lengthValue = (_typeNodeLength$value = typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.value) !== null && _typeNodeLength$value !== void 0 ? _typeNodeLength$value : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.length;
|
|
169058
169172
|
if (lengthValue != undefined) {
|
|
169059
169173
|
var _typeNodeLength$check;
|
|
@@ -169063,146 +169177,175 @@ class KCLangCalculationsBuildContext {
|
|
|
169063
169177
|
}
|
|
169064
169178
|
const valueReference = stringValueReference;
|
|
169065
169179
|
const decimalValueReference = valueReferenceExpression;
|
|
169066
|
-
const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,
|
|
169180
|
+
const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.MinlengthTypeCheckNode));
|
|
169067
169181
|
const minLengthValue = (_typeNodeMinLength$va = typeNodeMinLength === null || typeNodeMinLength === void 0 ? void 0 : typeNodeMinLength.value) !== null && _typeNodeMinLength$va !== void 0 ? _typeNodeMinLength$va : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minLength;
|
|
169068
|
-
const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,
|
|
169182
|
+
const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.MaxlengthTypeCheckNode));
|
|
169069
169183
|
const maxLengthValue = (_typeNodeMaxLength$va = typeNodeMaxLength === null || typeNodeMaxLength === void 0 ? void 0 : typeNodeMaxLength.value) !== null && _typeNodeMaxLength$va !== void 0 ? _typeNodeMaxLength$va : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxLength;
|
|
169070
169184
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
169071
169185
|
var _typeNodeMinLength$de;
|
|
169072
|
-
const lengthExprRuleBody = new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new
|
|
169186
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_17__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minLengthValue)), new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_21__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxLengthValue)));
|
|
169073
169187
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
169074
169188
|
minLength: minLengthValue,
|
|
169075
169189
|
maxLength: maxLengthValue
|
|
169076
169190
|
}, (_typeNodeMinLength$de = typeNodeMinLength === null || typeNodeMinLength === void 0 ? void 0 : typeNodeMinLength.description) !== null && _typeNodeMinLength$de !== void 0 ? _typeNodeMinLength$de : typeNodeMaxLength === null || typeNodeMaxLength === void 0 ? void 0 : typeNodeMaxLength.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169077
169191
|
} else if (minLengthValue != undefined) {
|
|
169078
|
-
const lengthExprRuleBody = new
|
|
169192
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_17__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minLengthValue));
|
|
169079
169193
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
169080
169194
|
minLength: minLengthValue
|
|
169081
169195
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169082
169196
|
} else if (maxLengthValue != undefined) {
|
|
169083
|
-
const lengthExprRuleBody = new
|
|
169197
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_21__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxLengthValue));
|
|
169084
169198
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
169085
169199
|
maxLength: maxLengthValue
|
|
169086
169200
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169087
169201
|
}
|
|
169088
|
-
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,
|
|
169202
|
+
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.MininclusiveTypeCheckNode));
|
|
169089
169203
|
const minInclusiveValue = (_typeNodeMinInclusive = typeNodeMinInclusive === null || typeNodeMinInclusive === void 0 ? void 0 : typeNodeMinInclusive.value) !== null && _typeNodeMinInclusive !== void 0 ? _typeNodeMinInclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minInclusive;
|
|
169090
169204
|
if (minInclusiveValue != undefined) {
|
|
169091
|
-
const minInclusiveRuleBody = new
|
|
169205
|
+
const minInclusiveRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_17__.GeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minInclusiveValue));
|
|
169092
169206
|
yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
|
|
169093
169207
|
minInclusive: minInclusiveValue
|
|
169094
169208
|
}, typeNodeMinInclusive === null || typeNodeMinInclusive === void 0 ? void 0 : typeNodeMinInclusive.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169095
169209
|
}
|
|
169096
|
-
const typeNodeMinExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,
|
|
169210
|
+
const typeNodeMinExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.MinExclusiveTypeCheckNode));
|
|
169097
169211
|
const minExclusiveValue = (_typeNodeMinExclusive = typeNodeMinExclusive === null || typeNodeMinExclusive === void 0 ? void 0 : typeNodeMinExclusive.value) !== null && _typeNodeMinExclusive !== void 0 ? _typeNodeMinExclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minExclusive;
|
|
169098
169212
|
if (minExclusiveValue != undefined) {
|
|
169099
|
-
const minExclusiveRuleBody = new
|
|
169213
|
+
const minExclusiveRuleBody = new _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_37__.GtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minExclusiveValue));
|
|
169100
169214
|
yield this.createCheck(targetPath, minExclusiveRuleBody, makeMessage({
|
|
169101
169215
|
minExclusive: minExclusiveValue
|
|
169102
169216
|
}, typeNodeMinExclusive === null || typeNodeMinExclusive === void 0 ? void 0 : typeNodeMinExclusive.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169103
169217
|
}
|
|
169104
|
-
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,
|
|
169218
|
+
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.MaxinclusiveTypeCheckNode));
|
|
169105
169219
|
const maxInclusiveValue = (_typeNodeMaxInclusive = typeNodeMaxInclusive === null || typeNodeMaxInclusive === void 0 ? void 0 : typeNodeMaxInclusive.value) !== null && _typeNodeMaxInclusive !== void 0 ? _typeNodeMaxInclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxInclusive;
|
|
169106
169220
|
if (maxInclusiveValue != undefined) {
|
|
169107
|
-
const maxInclusiveRuleBody = new
|
|
169221
|
+
const maxInclusiveRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_21__.LeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxInclusiveValue));
|
|
169108
169222
|
yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
|
|
169109
169223
|
maxInclusive: maxInclusiveValue
|
|
169110
169224
|
}, typeNodeMaxInclusive === null || typeNodeMaxInclusive === void 0 ? void 0 : typeNodeMaxInclusive.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169111
169225
|
}
|
|
169112
|
-
const typeNodeMaxExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.find((0,
|
|
169226
|
+
const typeNodeMaxExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.MaxExclusiveTypeCheckNode));
|
|
169113
169227
|
const maxExclusiveValue = (_typeNodeMaxExclusive = typeNodeMaxExclusive === null || typeNodeMaxExclusive === void 0 ? void 0 : typeNodeMaxExclusive.value) !== null && _typeNodeMaxExclusive !== void 0 ? _typeNodeMaxExclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxExclusive;
|
|
169114
169228
|
if (maxExclusiveValue != undefined) {
|
|
169115
|
-
const maxExclusiveRuleBody = new
|
|
169229
|
+
const maxExclusiveRuleBody = new _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_38__.LtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxExclusiveValue));
|
|
169116
169230
|
yield this.createCheck(targetPath, maxExclusiveRuleBody, makeMessage({
|
|
169117
169231
|
maxExclusive: maxExclusiveValue
|
|
169118
169232
|
}, typeNodeMaxExclusive === null || typeNodeMaxExclusive === void 0 ? void 0 : typeNodeMaxExclusive.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
169119
169233
|
}
|
|
169120
|
-
const isDecimalCondition = new
|
|
169121
|
-
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,
|
|
169234
|
+
const isDecimalCondition = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))"));
|
|
169235
|
+
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.TotaldigitsTypeCheckNode));
|
|
169122
169236
|
const totalDigitsValue = (_typeNodeTotalDigits$ = typeNodeTotalDigits === null || typeNodeTotalDigits === void 0 ? void 0 : typeNodeTotalDigits.value) !== null && _typeNodeTotalDigits$ !== void 0 ? _typeNodeTotalDigits$ : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.totalDigits;
|
|
169123
169237
|
if (totalDigitsValue != undefined) {
|
|
169124
|
-
const totalDigitsRuleBody = new
|
|
169125
|
-
yield new
|
|
169238
|
+
const totalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^-?(\\.?\\d){0," + totalDigitsValue.toString() + "}$"));
|
|
169239
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
|
|
169126
169240
|
totalDigitsMaxCount: totalDigitsValue
|
|
169127
169241
|
}, typeNodeTotalDigits === null || typeNodeTotalDigits === void 0 ? void 0 : typeNodeTotalDigits.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType)]);
|
|
169128
169242
|
}
|
|
169129
|
-
const typeNodePatterns = (_typeNode$children$fi2 = typeNode === null || typeNode === void 0 || (_typeNode$children10 = typeNode.children) === null || _typeNode$children10 === void 0 ? void 0 : _typeNode$children10.filter((0,
|
|
169130
|
-
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11.filter((0,
|
|
169131
|
-
const firstItemCheckType = (_typeNode$children$fi3 = typeNode === null || typeNode === void 0 || (_typeNode$children12 = typeNode.children) === null || _typeNode$children12 === void 0 || (_typeNode$children12 = _typeNode$children12.filter((0,
|
|
169243
|
+
const typeNodePatterns = (_typeNode$children$fi2 = typeNode === null || typeNode === void 0 || (_typeNode$children10 = typeNode.children) === null || _typeNode$children10 === void 0 ? void 0 : _typeNode$children10.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.PatternTypeCheckNode)).map(x => x.value).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined)) !== null && _typeNode$children$fi2 !== void 0 ? _typeNode$children$fi2 : [];
|
|
169244
|
+
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined)) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11[0]) === null || _typeNode$children11 === void 0 ? void 0 : _typeNode$children11.description;
|
|
169245
|
+
const firstItemCheckType = (_typeNode$children$fi3 = typeNode === null || typeNode === void 0 || (_typeNode$children12 = typeNode.children) === null || _typeNode$children12 === void 0 || (_typeNode$children12 = _typeNode$children12.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined)) === null || _typeNode$children12 === void 0 || (_typeNode$children12 = _typeNode$children12[0]) === null || _typeNode$children12 === void 0 ? void 0 : _typeNode$children12.checkType) !== null && _typeNode$children$fi3 !== void 0 ? _typeNode$children$fi3 : checkType;
|
|
169132
169246
|
const stringPatterns = ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(typeNodePatterns) ? typeNodePatterns : (_schemaTypeNode$patte = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.patterns) !== null && _schemaTypeNode$patte !== void 0 ? _schemaTypeNode$patte : []).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined);
|
|
169133
|
-
const patterns = stringPatterns.map(pattern => new
|
|
169247
|
+
const patterns = stringPatterns.map(pattern => new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(pattern))).reduce((acc, current) => acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(acc, current) : current, undefined);
|
|
169134
169248
|
if (patterns != undefined) {
|
|
169135
169249
|
const stringPatternsRuleBody = patterns;
|
|
169136
169250
|
yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
|
|
169137
169251
|
patterns: stringPatterns
|
|
169138
169252
|
}, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
|
|
169139
169253
|
}
|
|
169140
|
-
const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 ? void 0 : _typeNode$children13.find((0,
|
|
169254
|
+
const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 ? void 0 : _typeNode$children13.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.IntegerdigitsTypeCheckNode));
|
|
169141
169255
|
const integerDigits = (_typeNodeInteger$valu = typeNodeInteger === null || typeNodeInteger === void 0 ? void 0 : typeNodeInteger.value) !== null && _typeNodeInteger$valu !== void 0 ? _typeNodeInteger$valu : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.integerDigits;
|
|
169142
169256
|
if (integerDigits != undefined) {
|
|
169143
|
-
const integerDigitsRuleBody = new
|
|
169144
|
-
yield new
|
|
169257
|
+
const integerDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^-?\\d{0," + integerDigits.toString() + "}(([.]\\d+$)|($))"));
|
|
169258
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
|
|
169145
169259
|
integerDigitsMaxCount: integerDigits
|
|
169146
169260
|
}, typeNodeInteger === null || typeNodeInteger === void 0 ? void 0 : typeNodeInteger.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType)]);
|
|
169147
169261
|
}
|
|
169148
|
-
const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 ? void 0 : _typeNode$children14.find((0,
|
|
169262
|
+
const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 ? void 0 : _typeNode$children14.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.FractiondigitsTypeCheckNode));
|
|
169149
169263
|
const fractionalDigits = (_typeNodeFractional$v = typeNodeFractional === null || typeNodeFractional === void 0 ? void 0 : typeNodeFractional.value) !== null && _typeNodeFractional$v !== void 0 ? _typeNodeFractional$v : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.fractionDigits;
|
|
169150
169264
|
if (fractionalDigits != undefined) {
|
|
169151
|
-
const fractionalDigitsRuleBody = new
|
|
169152
|
-
yield new
|
|
169265
|
+
const fractionalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^-?\\d+(([.]\\d{0," + fractionalDigits.toString() + "}$)|($))"));
|
|
169266
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
|
|
169153
169267
|
fractionalDigitsMaxCount: fractionalDigits
|
|
169154
169268
|
}, typeNodeFractional === null || typeNodeFractional === void 0 ? void 0 : typeNodeFractional.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType)]);
|
|
169155
169269
|
}
|
|
169156
|
-
const valueEqlAutoValueErrorLevel = (_ref10 = (_typeNode$children$fi4 = typeNode === null || typeNode === void 0 || (_typeNode$children15 = typeNode.children) === null || _typeNode$children15 === void 0 || (_typeNode$children15 = _typeNode$children15.find((0,
|
|
169270
|
+
const valueEqlAutoValueErrorLevel = (_ref10 = (_typeNode$children$fi4 = typeNode === null || typeNode === void 0 || (_typeNode$children15 = typeNode.children) === null || _typeNode$children15 === void 0 || (_typeNode$children15 = _typeNode$children15.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_31__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children15 === void 0 ? void 0 : _typeNode$children15.level) !== null && _typeNode$children$fi4 !== void 0 ? _typeNode$children$fi4 : typeNode === null || typeNode === void 0 || (_typeNode$children16 = typeNode.children) === null || _typeNode$children16 === void 0 || (_typeNode$children16 = _typeNode$children16.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children16 === void 0 ? void 0 : _typeNode$children16.level) !== null && _ref10 !== void 0 ? _ref10 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.valueEqlAutoValue;
|
|
169157
169271
|
const baseName = (_typeNode$base2 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base2 !== void 0 ? _typeNode$base2 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.baseType;
|
|
169158
169272
|
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
169159
169273
|
var _typeNode$children$fi5, _typeNode$children17, _typeNode$children18, _typeNode$children$fi6, _typeNode$children19, _typeNode$children20;
|
|
169160
169274
|
const isDecimal = baseName == "decimal";
|
|
169161
169275
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
169162
|
-
(_typeNode$children$fi5 = typeNode === null || typeNode === void 0 || (_typeNode$children17 = typeNode.children) === null || _typeNode$children17 === void 0 || (_typeNode$children17 = _typeNode$children17.find((0,
|
|
169163
|
-
const validationCondition = (_typeNode$children$fi6 = typeNode === null || typeNode === void 0 || (_typeNode$children19 = typeNode.children) === null || _typeNode$children19 === void 0 || (_typeNode$children19 = _typeNode$children19.find((0,
|
|
169164
|
-
let result = this.createCheck(targetPath, new
|
|
169276
|
+
(_typeNode$children$fi5 = typeNode === null || typeNode === void 0 || (_typeNode$children17 = typeNode.children) === null || _typeNode$children17 === void 0 || (_typeNode$children17 = _typeNode$children17.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_31__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children17 === void 0 ? void 0 : _typeNode$children17.condition) !== null && _typeNode$children$fi5 !== void 0 ? _typeNode$children$fi5 : typeNode === null || typeNode === void 0 || (_typeNode$children18 = typeNode.children) === null || _typeNode$children18 === void 0 || (_typeNode$children18 = _typeNode$children18.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children18 === void 0 ? void 0 : _typeNode$children18.condition;
|
|
169277
|
+
const validationCondition = (_typeNode$children$fi6 = typeNode === null || typeNode === void 0 || (_typeNode$children19 = typeNode.children) === null || _typeNode$children19 === void 0 || (_typeNode$children19 = _typeNode$children19.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_31__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children19 === void 0 ? void 0 : _typeNode$children19.condition) !== null && _typeNode$children$fi6 !== void 0 ? _typeNode$children$fi6 : typeNode === null || typeNode === void 0 || (_typeNode$children20 = typeNode.children) === null || _typeNode$children20 === void 0 || (_typeNode$children20 = _typeNode$children20.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children20 === void 0 ? void 0 : _typeNode$children20.condition;
|
|
169278
|
+
let result = this.createCheck(targetPath, new _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_35__.IsEqualToAutoCalculatedFunctionCall(isDecimal ? new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.DecimalType.default) : new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default)), _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__.AutoValidationMessage, valueEqlAutoValueErrorLevel !== null && valueEqlAutoValueErrorLevel !== void 0 ? valueEqlAutoValueErrorLevel : checkType);
|
|
169165
169279
|
if (validationCondition != undefined) {
|
|
169166
|
-
result = new
|
|
169280
|
+
result = new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_18__.IfStatement(new _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_36__.KCLangRawStringExpression(validationCondition, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.BoolType.default), [result]);
|
|
169167
169281
|
}
|
|
169168
169282
|
yield result;
|
|
169169
169283
|
}
|
|
169284
|
+
const attachmentsCheck = findCheck(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_34__.AttachmentsTypeCheckNode);
|
|
169285
|
+
if (attachmentsCheck != undefined) {
|
|
169286
|
+
yield* this.createAttachmentsTypeValidations(targetPath, attachmentsCheck, checkType);
|
|
169287
|
+
}
|
|
169288
|
+
}
|
|
169289
|
+
*createAttachmentsTypeValidations(targetPath, attachmentsCheck, checkType) {
|
|
169290
|
+
const stringIdReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default);
|
|
169291
|
+
const attachmentMetaExpr = field => new _common_KCLang_CodeDom_Functions_GetExternalInfoFunctionalCall__WEBPACK_IMPORTED_MODULE_15__.GetExternalInfoFunctionalCall(new _common_KCLang_CodeDom_Functions_ConcatFunctionCall__WEBPACK_IMPORTED_MODULE_14__.ConcatFunctionCall(new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("@attachment/"), stringIdReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(`/${field}`)));
|
|
169292
|
+
const fileNameExpr = () => attachmentMetaExpr("fileName");
|
|
169293
|
+
const fileSizeExpr = () => new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(attachmentMetaExpr("fileSize"), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.DecimalType.default);
|
|
169294
|
+
const metaNotReady = () => new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_9__.EqExpression(fileNameExpr(), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(""));
|
|
169295
|
+
const emitCheck = (body, message) => {
|
|
169296
|
+
var _attachmentsCheck$che;
|
|
169297
|
+
return this.createCheck(targetPath, new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(metaNotReady(), body), message, (_attachmentsCheck$che = attachmentsCheck.checkType) !== null && _attachmentsCheck$che !== void 0 ? _attachmentsCheck$che : checkType);
|
|
169298
|
+
};
|
|
169299
|
+
const extentions = attachmentsCheck.extentions;
|
|
169300
|
+
if (extentions != undefined && extentions.length > 0) {
|
|
169301
|
+
const extensionPattern = `^.+\\.(?:${extentions.map(ext => ext.toLowerCase()).join("|")})$`;
|
|
169302
|
+
yield emitCheck(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(fileNameExpr(), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression(extensionPattern), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("i")), "Неправильный формат файла");
|
|
169303
|
+
}
|
|
169304
|
+
yield emitCheck(new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_17__.GeExpression(fileSizeExpr(), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(0)), "Не удалось получить размер файла");
|
|
169305
|
+
yield emitCheck(new _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_37__.GtExpression(fileSizeExpr(), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(0)), "Содержимое файла не может быть пустым");
|
|
169306
|
+
if (attachmentsCheck.maxSize != undefined) {
|
|
169307
|
+
var _attachmentsCheck$cou;
|
|
169308
|
+
const maxSizeMb = attachmentsCheck.maxSize;
|
|
169309
|
+
const maxSizeBytes = maxSizeMb * BYTES_PER_MB;
|
|
169310
|
+
const multiple = ((_attachmentsCheck$cou = attachmentsCheck.count) !== null && _attachmentsCheck$cou !== void 0 ? _attachmentsCheck$cou : 0) !== 1;
|
|
169311
|
+
const sizeMessage = multiple ? `Файл слишком большой, попробуйте отправить частями (максимальный размер ${maxSizeMb} Мб)` : `Файл слишком большой, попробуйте уменьшить размер до ${maxSizeMb} Мб и прикрепить заново`;
|
|
169312
|
+
yield emitCheck(new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_21__.LeExpression(fileSizeExpr(), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxSizeBytes)), sizeMessage);
|
|
169313
|
+
}
|
|
169170
169314
|
}
|
|
169171
169315
|
*createBaseTypeValidation(targetPath, baseType, baseDescription, node) {
|
|
169172
169316
|
const checkTargetValue = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString();
|
|
169173
|
-
const path =
|
|
169317
|
+
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath.fromModelPath(targetPath, true);
|
|
169174
169318
|
switch (baseType) {
|
|
169175
169319
|
case "string":
|
|
169176
169320
|
case "pattern":
|
|
169177
169321
|
case "boolean":
|
|
169178
169322
|
return;
|
|
169179
169323
|
case "integer":
|
|
169180
|
-
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new
|
|
169324
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^-?\\d+$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
169181
169325
|
break;
|
|
169182
169326
|
case "decimal":
|
|
169183
|
-
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new
|
|
169327
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
169184
169328
|
break;
|
|
169185
169329
|
case "date":
|
|
169186
169330
|
{
|
|
169187
169331
|
const dateNode = node;
|
|
169188
169332
|
const isFss = (dateNode === null || dateNode === void 0 ? void 0 : dateNode.dateFormat) === "fss";
|
|
169189
|
-
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new
|
|
169333
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_IsDateFunctionCall__WEBPACK_IMPORTED_MODULE_40__.IsDateFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default)), new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), isFss ? new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^(19|20)[0-9]{2}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$") : new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^(0[1-9]|[12][0-9]|3[01])\\.(0[1-9]|1[012])\\.(19|20)[0-9]{2}$"))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
169190
169334
|
break;
|
|
169191
169335
|
}
|
|
169192
169336
|
case "gYear":
|
|
169193
|
-
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new
|
|
169337
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^\\d{4}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
169194
169338
|
break;
|
|
169195
169339
|
case "gMonth":
|
|
169196
|
-
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new
|
|
169340
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_16__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_28__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_20__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_27__.StringConstExpression("^(--(0[1-9]|1[0-2]))$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_32__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_29__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
169197
169341
|
break;
|
|
169198
169342
|
default:
|
|
169199
169343
|
throw new Error(`Unknown base type name: '${baseType}'`);
|
|
169200
|
-
break;
|
|
169201
169344
|
}
|
|
169202
169345
|
}
|
|
169203
169346
|
}
|
|
169204
169347
|
function combineByOrKCLangExpr(acc, current) {
|
|
169205
|
-
return acc != undefined ? new
|
|
169348
|
+
return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(acc, current) : current;
|
|
169206
169349
|
}
|
|
169207
169350
|
function combineByAndKCLangExpr(acc, current) {
|
|
169208
169351
|
return acc != undefined ? new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(acc, current) : current;
|
|
@@ -172384,53 +172527,6 @@ function ofType(cl) {
|
|
|
172384
172527
|
|
|
172385
172528
|
/***/ }),
|
|
172386
172529
|
|
|
172387
|
-
/***/ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts":
|
|
172388
|
-
/*!*************************************************************************************************************************!*\
|
|
172389
|
-
!*** ./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts ***!
|
|
172390
|
-
\*************************************************************************************************************************/
|
|
172391
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
172392
|
-
|
|
172393
|
-
"use strict";
|
|
172394
|
-
__webpack_require__.r(__webpack_exports__);
|
|
172395
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
172396
|
-
/* harmony export */ AttachmentsValueValidatorGenerator: () => (/* binding */ AttachmentsValueValidatorGenerator)
|
|
172397
|
-
/* harmony export */ });
|
|
172398
|
-
/* harmony import */ var _common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/CodeGeneration/ClassInstanceBuilder */ "./Generator/src/common/CodeGeneration/ClassInstanceBuilder.ts");
|
|
172399
|
-
/* harmony import */ var _Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
172400
|
-
/* harmony import */ var _TypeBasedValidatorGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TypeBasedValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/TypeBasedValidatorGenerator.ts");
|
|
172401
|
-
|
|
172402
|
-
|
|
172403
|
-
|
|
172404
|
-
class AttachmentsValueValidatorGenerator extends _TypeBasedValidatorGenerator__WEBPACK_IMPORTED_MODULE_2__.TypeBasedValidatorGeneratorBase {
|
|
172405
|
-
static acceptNode(node) {
|
|
172406
|
-
return node instanceof _Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode;
|
|
172407
|
-
}
|
|
172408
|
-
static createFromNode() {
|
|
172409
|
-
return new AttachmentsValueValidatorGenerator();
|
|
172410
|
-
}
|
|
172411
|
-
acceptNodeForGroup(node) {
|
|
172412
|
-
return AttachmentsValueValidatorGenerator.acceptNode(node);
|
|
172413
|
-
}
|
|
172414
|
-
generatorValidator(typeNode) {
|
|
172415
|
-
var _attachmentNode$check;
|
|
172416
|
-
const attachmentNode = typeNode.getValidations(_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode).find(x => x);
|
|
172417
|
-
if (attachmentNode == undefined) {
|
|
172418
|
-
throw new Error("InvalidProgramState");
|
|
172419
|
-
}
|
|
172420
|
-
const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_0__.instanceBuilder)("Validators.AttachmentsValueValidator");
|
|
172421
|
-
result.set(0, {
|
|
172422
|
-
extentions: attachmentNode.extentions || [],
|
|
172423
|
-
maxSize: attachmentNode.maxSize || 0,
|
|
172424
|
-
multiple: attachmentNode.count !== 1
|
|
172425
|
-
});
|
|
172426
|
-
result.set(1, (_attachmentNode$check = attachmentNode.checkType) !== null && _attachmentNode$check !== void 0 ? _attachmentNode$check : "error");
|
|
172427
|
-
result.set(2, attachmentNode.description);
|
|
172428
|
-
return result;
|
|
172429
|
-
}
|
|
172430
|
-
}
|
|
172431
|
-
|
|
172432
|
-
/***/ }),
|
|
172433
|
-
|
|
172434
172530
|
/***/ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts":
|
|
172435
172531
|
/*!******************************************************************************************************************************!*\
|
|
172436
172532
|
!*** ./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts ***!
|
|
@@ -172594,10 +172690,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
172594
172690
|
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
172595
172691
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
172596
172692
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
172597
|
-
/* harmony import */ var
|
|
172598
|
-
/* harmony import */ var
|
|
172599
|
-
/* harmony import */ var _MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
172600
|
-
|
|
172693
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
|
|
172694
|
+
/* harmony import */ var _MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
172601
172695
|
|
|
172602
172696
|
|
|
172603
172697
|
|
|
@@ -172611,7 +172705,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
172611
172705
|
|
|
172612
172706
|
class ValidationGenerator {
|
|
172613
172707
|
constructor(sugarRoot, typesRegistry, markupBuilderContext, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = [], settings = undefined) {
|
|
172614
|
-
this.typeBasedValidatorGenerators = [
|
|
172708
|
+
this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.CustomValidationValueValidatorGenerator];
|
|
172615
172709
|
this.sugarRoot = void 0;
|
|
172616
172710
|
this.validationsContent = void 0;
|
|
172617
172711
|
this.customValidations = void 0;
|
|
@@ -172893,7 +172987,7 @@ class ValidationGenerator {
|
|
|
172893
172987
|
return generatorClass.createFromNode(node, this.settings);
|
|
172894
172988
|
}
|
|
172895
172989
|
}
|
|
172896
|
-
ValidationGenerator.MAX_OPTIONAL_CHILDREN_LIMIT =
|
|
172990
|
+
ValidationGenerator.MAX_OPTIONAL_CHILDREN_LIMIT = _MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_10__.maxOptionalChildrenLimit;
|
|
172897
172991
|
function absoluteModelPathGenerator(path) {
|
|
172898
172992
|
return `ap([${path.getPathPartsAsArray().map(x => x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.PathTokens.each ? "each" : x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.PathTokens.current ? "current" : JSON.stringify(x)).join(", ")}])`;
|
|
172899
172993
|
}
|