@kontur.candy/generator 5.103.0-remove-kclang-target-infer.2 → 5.104.0-get-properties-nds-v2.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 +464 -380
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50670,52 +50670,80 @@ const existsKCLangFunction = params => {
|
|
|
50670
50670
|
throw new Error("Invalid parameters!");
|
|
50671
50671
|
};
|
|
50672
50672
|
const isSnilsKCLangFunction = params => {
|
|
50673
|
-
var _params$
|
|
50673
|
+
var _params$10;
|
|
50674
50674
|
const errors = Array.from(validateParams(params, 1));
|
|
50675
50675
|
if (errors.length > 0) {
|
|
50676
50676
|
return new FunctionValidationErrorCollection(errors);
|
|
50677
50677
|
}
|
|
50678
|
-
const argumentExpr = (_params$
|
|
50679
|
-
|
|
50680
|
-
|
|
50681
|
-
|
|
50682
|
-
|
|
50678
|
+
const argumentExpr = (_params$10 = params[0]) === null || _params$10 === void 0 ? void 0 : _params$10.value;
|
|
50679
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
50680
|
+
const param = argumentExpr.select;
|
|
50681
|
+
if (param == undefined) {
|
|
50682
|
+
throw new Error("Unexpected error!");
|
|
50683
|
+
}
|
|
50684
|
+
return {
|
|
50685
|
+
type: "isSnils",
|
|
50686
|
+
select: param
|
|
50687
|
+
};
|
|
50688
|
+
}
|
|
50689
|
+
throw new Error("Invalid parameters!");
|
|
50683
50690
|
};
|
|
50684
50691
|
const isRegNumSfrKCLangFunction = params => {
|
|
50685
|
-
var _params$
|
|
50692
|
+
var _params$11;
|
|
50686
50693
|
const errors = Array.from(validateParams(params, 1));
|
|
50687
50694
|
if (errors.length > 0) {
|
|
50688
50695
|
return new FunctionValidationErrorCollection(errors);
|
|
50689
50696
|
}
|
|
50690
|
-
const argumentExpr = (_params$
|
|
50691
|
-
|
|
50692
|
-
|
|
50693
|
-
|
|
50694
|
-
|
|
50697
|
+
const argumentExpr = (_params$11 = params[0]) === null || _params$11 === void 0 ? void 0 : _params$11.value;
|
|
50698
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
50699
|
+
const param = argumentExpr.select;
|
|
50700
|
+
if (param == undefined) {
|
|
50701
|
+
throw new Error("Unexpected error!");
|
|
50702
|
+
}
|
|
50703
|
+
return {
|
|
50704
|
+
type: "isRegNumSfr",
|
|
50705
|
+
select: param
|
|
50706
|
+
};
|
|
50707
|
+
}
|
|
50708
|
+
throw new Error("Invalid parameters!");
|
|
50695
50709
|
};
|
|
50696
50710
|
const isInnKCLangFunction = params => {
|
|
50697
|
-
var _params$
|
|
50711
|
+
var _params$12;
|
|
50698
50712
|
const errors = Array.from(validateParams(params, 1));
|
|
50699
50713
|
if (errors.length > 0) {
|
|
50700
50714
|
return new FunctionValidationErrorCollection(errors);
|
|
50701
50715
|
}
|
|
50702
|
-
const argumentExpr = (_params$
|
|
50703
|
-
|
|
50704
|
-
|
|
50705
|
-
|
|
50706
|
-
|
|
50716
|
+
const argumentExpr = (_params$12 = params[0]) === null || _params$12 === void 0 ? void 0 : _params$12.value;
|
|
50717
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
50718
|
+
const param = argumentExpr.select;
|
|
50719
|
+
if (param == undefined) {
|
|
50720
|
+
throw new Error("Unexpected error!");
|
|
50721
|
+
}
|
|
50722
|
+
return {
|
|
50723
|
+
type: "isInn",
|
|
50724
|
+
select: param
|
|
50725
|
+
};
|
|
50726
|
+
}
|
|
50727
|
+
throw new Error("Invalid parameters!");
|
|
50707
50728
|
};
|
|
50708
50729
|
const isOgrnKCLangFunction = params => {
|
|
50709
|
-
var _params$
|
|
50730
|
+
var _params$13;
|
|
50710
50731
|
const errors = Array.from(validateParams(params, 1));
|
|
50711
50732
|
if (errors.length > 0) {
|
|
50712
50733
|
return new FunctionValidationErrorCollection(errors);
|
|
50713
50734
|
}
|
|
50714
|
-
const argumentExpr = (_params$
|
|
50715
|
-
|
|
50716
|
-
|
|
50717
|
-
|
|
50718
|
-
|
|
50735
|
+
const argumentExpr = (_params$13 = params[0]) === null || _params$13 === void 0 ? void 0 : _params$13.value;
|
|
50736
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
50737
|
+
const param = argumentExpr.select;
|
|
50738
|
+
if (param == undefined) {
|
|
50739
|
+
throw new Error("Unexpected error!");
|
|
50740
|
+
}
|
|
50741
|
+
return {
|
|
50742
|
+
type: "isOgrn",
|
|
50743
|
+
select: param
|
|
50744
|
+
};
|
|
50745
|
+
}
|
|
50746
|
+
throw new Error("Invalid parameters!");
|
|
50719
50747
|
};
|
|
50720
50748
|
const arrayKCLangFunction = params => {
|
|
50721
50749
|
const errors = Array.from(validateParams(params, 0, Infinity));
|
|
@@ -50803,30 +50831,45 @@ const getPicklistValuesKCLangFunction = params => {
|
|
|
50803
50831
|
};
|
|
50804
50832
|
};
|
|
50805
50833
|
const isValidMirCardNumberKCLangFunction = params => {
|
|
50806
|
-
var _params$
|
|
50834
|
+
var _params$21;
|
|
50807
50835
|
const errors = Array.from(validateParams(params, 1));
|
|
50808
50836
|
if (errors.length > 0) {
|
|
50809
50837
|
return new FunctionValidationErrorCollection(errors);
|
|
50810
50838
|
}
|
|
50811
|
-
const argumentExpr = (_params$
|
|
50812
|
-
|
|
50813
|
-
|
|
50814
|
-
|
|
50815
|
-
|
|
50839
|
+
const argumentExpr = (_params$21 = params[0]) === null || _params$21 === void 0 ? void 0 : _params$21.value;
|
|
50840
|
+
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
50841
|
+
const param = argumentExpr.select;
|
|
50842
|
+
if (param == undefined) {
|
|
50843
|
+
throw new Error("Unexpected error!");
|
|
50844
|
+
}
|
|
50845
|
+
return {
|
|
50846
|
+
type: "isValidMirCardNumber",
|
|
50847
|
+
select: param
|
|
50848
|
+
};
|
|
50849
|
+
}
|
|
50850
|
+
throw new Error("Invalid parameters!");
|
|
50816
50851
|
};
|
|
50817
50852
|
const isValidAccountNumberKCLangFunction = params => {
|
|
50818
|
-
var _params$
|
|
50853
|
+
var _params$22, _params$23;
|
|
50819
50854
|
const errors = Array.from(validateParams(params, 2));
|
|
50820
50855
|
if (errors.length > 0) {
|
|
50821
50856
|
return new FunctionValidationErrorCollection(errors);
|
|
50822
50857
|
}
|
|
50823
|
-
const bik = (_params$
|
|
50824
|
-
const account = (_params$
|
|
50825
|
-
|
|
50826
|
-
|
|
50827
|
-
|
|
50828
|
-
|
|
50829
|
-
|
|
50858
|
+
const bik = (_params$22 = params[0]) === null || _params$22 === void 0 ? void 0 : _params$22.value;
|
|
50859
|
+
const account = (_params$23 = params[1]) === null || _params$23 === void 0 ? void 0 : _params$23.value;
|
|
50860
|
+
if ((bik === null || bik === void 0 ? void 0 : bik.type) === "argument" && (account === null || account === void 0 ? void 0 : account.type) === "argument") {
|
|
50861
|
+
const bikValue = bik.select;
|
|
50862
|
+
const accountValue = account.select;
|
|
50863
|
+
if (accountValue == undefined || bikValue == undefined) {
|
|
50864
|
+
throw new Error("Unexpected error!");
|
|
50865
|
+
}
|
|
50866
|
+
return {
|
|
50867
|
+
type: "isValidAccountNumber",
|
|
50868
|
+
bik: bikValue,
|
|
50869
|
+
account: accountValue
|
|
50870
|
+
};
|
|
50871
|
+
}
|
|
50872
|
+
throw new Error("Invalid parameters!");
|
|
50830
50873
|
};
|
|
50831
50874
|
const countKCLangFunction = params => {
|
|
50832
50875
|
var _params$24;
|
|
@@ -61638,37 +61681,37 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
61638
61681
|
{
|
|
61639
61682
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61640
61683
|
const isSnilsFnName = gn(x => x.isSnils);
|
|
61641
|
-
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${
|
|
61684
|
+
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${expression.select}")`;
|
|
61642
61685
|
}
|
|
61643
61686
|
case "isRegNumSfr":
|
|
61644
61687
|
{
|
|
61645
61688
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61646
61689
|
const isValidRegNumSfrFnName = gn(x => x.isRegNumSfr);
|
|
61647
|
-
return `${utilsName}.${isValidRegNumSfrFnName}(${pathFnName}, "${
|
|
61690
|
+
return `${utilsName}.${isValidRegNumSfrFnName}(${pathFnName}, "${expression.select}")`;
|
|
61648
61691
|
}
|
|
61649
61692
|
case "isInn":
|
|
61650
61693
|
{
|
|
61651
61694
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61652
61695
|
const isInnFnName = gn(x => x.isInn);
|
|
61653
|
-
return `${utilsName}.${isInnFnName}(${pathFnName}, "${
|
|
61696
|
+
return `${utilsName}.${isInnFnName}(${pathFnName}, "${expression.select}")`;
|
|
61654
61697
|
}
|
|
61655
61698
|
case "isOgrn":
|
|
61656
61699
|
{
|
|
61657
61700
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61658
61701
|
const isOgrnFnName = gn(x => x.isOgrn);
|
|
61659
|
-
return `${utilsName}.${isOgrnFnName}(${pathFnName}, "${
|
|
61702
|
+
return `${utilsName}.${isOgrnFnName}(${pathFnName}, "${expression.select}")`;
|
|
61660
61703
|
}
|
|
61661
61704
|
case "isValidMirCardNumber":
|
|
61662
61705
|
{
|
|
61663
61706
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61664
61707
|
const isValidMirCardNumberFnName = gn(x => x.isValidMirCardNumber);
|
|
61665
|
-
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${
|
|
61708
|
+
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${expression.select}")`;
|
|
61666
61709
|
}
|
|
61667
61710
|
case "isValidAccountNumber":
|
|
61668
61711
|
{
|
|
61669
61712
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61670
61713
|
const isValidAccountNumberFnName = gn(x => x.isValidAccountNumber);
|
|
61671
|
-
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${
|
|
61714
|
+
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${expression.bik}", "${expression.account}")`;
|
|
61672
61715
|
}
|
|
61673
61716
|
case "const":
|
|
61674
61717
|
{
|
|
@@ -61849,17 +61892,16 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
61849
61892
|
case "hashSet":
|
|
61850
61893
|
case "length":
|
|
61851
61894
|
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
61895
|
+
case "exists":
|
|
61852
61896
|
case "isSnils":
|
|
61853
61897
|
case "isInn":
|
|
61854
61898
|
case "isOgrn":
|
|
61855
61899
|
case "isRegNumSfr":
|
|
61856
61900
|
case "isValidMirCardNumber":
|
|
61857
|
-
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
61858
|
-
case "exists":
|
|
61859
61901
|
case "multySum":
|
|
61860
61902
|
return `<m:${expression.type} select="${expression.select}" />`;
|
|
61861
61903
|
case "isValidAccountNumber":
|
|
61862
|
-
return
|
|
61904
|
+
return `<m:${expression.type} bik="${expression.bik}" account="${expression.account}" />`;
|
|
61863
61905
|
case "makeDict":
|
|
61864
61906
|
return [`<m:${expression.type} sourceKeyPath="${expression.sourceKeyPath}">`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.sourceValueExpression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
61865
61907
|
case "getSumByKeys":
|
|
@@ -62037,15 +62079,6 @@ function generateBlockKCXmlFormulas(block, parents) {
|
|
|
62037
62079
|
}
|
|
62038
62080
|
return result.join("\n");
|
|
62039
62081
|
}
|
|
62040
|
-
function extractSelectPathOrUndefined(expression) {
|
|
62041
|
-
if (expression.type == "argument") {
|
|
62042
|
-
return expression.select;
|
|
62043
|
-
}
|
|
62044
|
-
if (expression.type == "cast" && expression.expression.type == "argument") {
|
|
62045
|
-
return expression.expression.select;
|
|
62046
|
-
}
|
|
62047
|
-
return undefined;
|
|
62048
|
-
}
|
|
62049
62082
|
function guessConditionTarget(condition) {
|
|
62050
62083
|
let result;
|
|
62051
62084
|
class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.DefaultKCLangExpressionVisitor {
|
|
@@ -62056,32 +62089,32 @@ function guessConditionTarget(condition) {
|
|
|
62056
62089
|
}
|
|
62057
62090
|
visitIsSnilsKCLangNode(node) {
|
|
62058
62091
|
if (result == undefined) {
|
|
62059
|
-
result =
|
|
62092
|
+
result = node.select;
|
|
62060
62093
|
}
|
|
62061
62094
|
}
|
|
62062
62095
|
visitIsRegNumSfrKCLangNode(node) {
|
|
62063
62096
|
if (result == undefined) {
|
|
62064
|
-
result =
|
|
62097
|
+
result = node.select;
|
|
62065
62098
|
}
|
|
62066
62099
|
}
|
|
62067
62100
|
visitIsInnKCLangNode(node) {
|
|
62068
62101
|
if (result == undefined) {
|
|
62069
|
-
result =
|
|
62102
|
+
result = node.select;
|
|
62070
62103
|
}
|
|
62071
62104
|
}
|
|
62072
62105
|
visitIsOgrnKCLangNode(node) {
|
|
62073
62106
|
if (result == undefined) {
|
|
62074
|
-
result =
|
|
62107
|
+
result = node.select;
|
|
62075
62108
|
}
|
|
62076
62109
|
}
|
|
62077
62110
|
visitIsValidMirCardNumberNode(node) {
|
|
62078
62111
|
if (result == undefined) {
|
|
62079
|
-
result =
|
|
62112
|
+
result = node.select;
|
|
62080
62113
|
}
|
|
62081
62114
|
}
|
|
62082
62115
|
visitIsValidAccountNumberNode(node) {
|
|
62083
62116
|
if (result == undefined) {
|
|
62084
|
-
result =
|
|
62117
|
+
result = node.account;
|
|
62085
62118
|
}
|
|
62086
62119
|
}
|
|
62087
62120
|
visitArgumentKCLangNode(node) {
|
|
@@ -62108,12 +62141,82 @@ function guessConditionTarget(condition) {
|
|
|
62108
62141
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
62109
62142
|
return result;
|
|
62110
62143
|
}
|
|
62144
|
+
function inferConditionTarget(condition, targetValue) {
|
|
62145
|
+
let result;
|
|
62146
|
+
if (targetValue == undefined) {
|
|
62147
|
+
return undefined;
|
|
62148
|
+
}
|
|
62149
|
+
class InferConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.DefaultKCLangExpressionVisitor {
|
|
62150
|
+
constructor(path) {
|
|
62151
|
+
super();
|
|
62152
|
+
this.path = void 0;
|
|
62153
|
+
this.path = path;
|
|
62154
|
+
}
|
|
62155
|
+
visitExistsKCLangNode(node) {
|
|
62156
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62157
|
+
result = node.select;
|
|
62158
|
+
}
|
|
62159
|
+
}
|
|
62160
|
+
visitIsSnilsKCLangNode(node) {
|
|
62161
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62162
|
+
result = node.select;
|
|
62163
|
+
}
|
|
62164
|
+
}
|
|
62165
|
+
visitIsRegNumSfrKCLangNode(node) {
|
|
62166
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62167
|
+
result = node.select;
|
|
62168
|
+
}
|
|
62169
|
+
}
|
|
62170
|
+
visitIsInnKCLangNode(node) {
|
|
62171
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62172
|
+
result = node.select;
|
|
62173
|
+
}
|
|
62174
|
+
}
|
|
62175
|
+
visitIsOgrnKCLangNode(node) {
|
|
62176
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62177
|
+
result = node.select;
|
|
62178
|
+
}
|
|
62179
|
+
}
|
|
62180
|
+
visitIsValidMirCardNumberNode(node) {
|
|
62181
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62182
|
+
result = node.select;
|
|
62183
|
+
}
|
|
62184
|
+
}
|
|
62185
|
+
visitIsValidAccountNumberNode(node) {
|
|
62186
|
+
if (result == undefined && node.account.endsWith(this.path)) {
|
|
62187
|
+
result = node.account;
|
|
62188
|
+
}
|
|
62189
|
+
}
|
|
62190
|
+
visitArgumentKCLangNode(node) {
|
|
62191
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62192
|
+
result = node.select;
|
|
62193
|
+
}
|
|
62194
|
+
}
|
|
62195
|
+
visitCountKCLangNode(node) {
|
|
62196
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62197
|
+
result = node.select;
|
|
62198
|
+
}
|
|
62199
|
+
}
|
|
62200
|
+
visitInstanceCountKCLangNode(node) {
|
|
62201
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62202
|
+
result = node.select;
|
|
62203
|
+
}
|
|
62204
|
+
}
|
|
62205
|
+
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
62206
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62207
|
+
result = node.select;
|
|
62208
|
+
}
|
|
62209
|
+
}
|
|
62210
|
+
}
|
|
62211
|
+
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
62212
|
+
return result;
|
|
62213
|
+
}
|
|
62111
62214
|
function generateKCXmlCondition(ast, parentContexts, describe) {
|
|
62112
|
-
var
|
|
62215
|
+
var _ref, _inferConditionTarget;
|
|
62113
62216
|
const matchPath = joinPaths([...parentContexts.filter(isPathPrefix).map(x => x.path)]);
|
|
62114
62217
|
const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
|
|
62115
62218
|
const descriptionAttr = describe != undefined ? ` description="${escapeHtmlCharacters(formatDescribeStatement(describe))}"` : "";
|
|
62116
|
-
const guessedTarget = (
|
|
62219
|
+
const guessedTarget = (_ref = (_inferConditionTarget = inferConditionTarget(ast, ast.target)) !== null && _inferConditionTarget !== void 0 ? _inferConditionTarget : ast.target) !== null && _ref !== void 0 ? _ref : guessConditionTarget(ast);
|
|
62117
62220
|
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
62118
62221
|
const conditions = [];
|
|
62119
62222
|
const pathPrefixContexts = [];
|
|
@@ -68132,8 +68235,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68132
68235
|
/* harmony export */ FormulaIsOgrnExpression: () => (/* binding */ FormulaIsOgrnExpression),
|
|
68133
68236
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
68134
68237
|
/* harmony export */ FormulaIsSnilsExpression: () => (/* binding */ FormulaIsSnilsExpression),
|
|
68135
|
-
/* harmony export */ FormulaIsValidAccountNumberAccountExpression: () => (/* binding */ FormulaIsValidAccountNumberAccountExpression),
|
|
68136
|
-
/* harmony export */ FormulaIsValidAccountNumberBikExpression: () => (/* binding */ FormulaIsValidAccountNumberBikExpression),
|
|
68137
68238
|
/* harmony export */ FormulaIsValidAccountNumberExpression: () => (/* binding */ FormulaIsValidAccountNumberExpression),
|
|
68138
68239
|
/* harmony export */ FormulaIsValidMirCardNumberExpression: () => (/* binding */ FormulaIsValidMirCardNumberExpression),
|
|
68139
68240
|
/* harmony export */ FormulaJoinExpression: () => (/* binding */ FormulaJoinExpression),
|
|
@@ -68174,7 +68275,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68174
68275
|
|
|
68175
68276
|
|
|
68176
68277
|
|
|
68177
|
-
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, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _class95, _class96, _descriptor60, _dec110, _dec111, _class97, _class98, _descriptor61,
|
|
68278
|
+
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, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _class95, _class96, _descriptor60, _dec110, _dec111, _dec112, _class97, _class98, _descriptor61, _descriptor62, _dec113, _dec114, _dec115, _class99, _class100, _descriptor63, _descriptor64, _dec116, _dec117, _class101, _class102, _descriptor65, _dec118, _dec119, _class103, _class104, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _dec124, _dec125, _dec126, _class107, _class108, _descriptor68, _descriptor69, _descriptor70, _descriptor71, _dec127, _dec128, _class109, _class110, _descriptor72, _dec129, _dec130, _class111, _class112, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _dec137, _class117, _class118, _descriptor76, _descriptor77, _dec138, _dec139, _class119, _class120, _descriptor78, _dec140, _dec141, _dec142, _class121, _class122, _descriptor79, _descriptor80, _dec143, _dec144, _class123, _class124, _descriptor81, _dec145, _dec146, _class125, _class126, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _class129, _dec150, _dec151, _dec152, _dec153, _class130, _class131, _descriptor84, _descriptor85, _descriptor86, _dec154, _dec155, _class132, _class133, _descriptor87, _dec156, _dec157, _class134, _class135, _descriptor88, _dec158, _dec159, _dec160, _dec161, _dec162, _dec163, _class136, _class137, _descriptor89, _descriptor90, _descriptor91, _descriptor92, _descriptor93, _dec164, _dec165, _class138, _class139, _descriptor94, _dec166, _dec167, _dec168, _class140, _class141, _descriptor95, _descriptor96, _dec169, _dec170, _dec171, _class142, _class143, _descriptor97, _descriptor98, _dec172, _dec173, _dec174, _class144, _class145, _descriptor99, _descriptor100, _dec175, _dec176, _dec177, _dec178, _class146, _class147, _descriptor101, _descriptor102, _descriptor103, _dec179, _dec180, _dec181, _class148, _class149, _descriptor104, _descriptor105;
|
|
68178
68279
|
|
|
68179
68280
|
|
|
68180
68281
|
|
|
@@ -68795,516 +68896,488 @@ let FormulaSumOfDayWeightsExpression = (_dec98 = (0,_markupGenerator_Serializer_
|
|
|
68795
68896
|
writable: true,
|
|
68796
68897
|
initializer: null
|
|
68797
68898
|
}), _class86)) || _class85);
|
|
68798
|
-
let FormulaIsSnilsExpression = (_dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68899
|
+
let FormulaIsSnilsExpression = (_dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec100(_class87 = (_class88 = class FormulaIsSnilsExpression extends FormulaExpression {
|
|
68799
68900
|
constructor(...args) {
|
|
68800
68901
|
super(...args);
|
|
68801
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68902
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor56, this);
|
|
68802
68903
|
}
|
|
68803
68904
|
getLegacyExpressionTypeForFunctionName() {
|
|
68804
68905
|
return "isSnils";
|
|
68805
68906
|
}
|
|
68806
|
-
}, _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "
|
|
68907
|
+
}, _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "select", [_dec101], {
|
|
68807
68908
|
configurable: true,
|
|
68808
68909
|
enumerable: true,
|
|
68809
68910
|
writable: true,
|
|
68810
68911
|
initializer: null
|
|
68811
68912
|
}), _class88)) || _class87);
|
|
68812
|
-
let FormulaIsRegNumSfrExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68913
|
+
let FormulaIsRegNumSfrExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec102(_class89 = (_class90 = class FormulaIsRegNumSfrExpression extends FormulaExpression {
|
|
68813
68914
|
constructor(...args) {
|
|
68814
68915
|
super(...args);
|
|
68815
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68916
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor57, this);
|
|
68816
68917
|
}
|
|
68817
68918
|
getLegacyExpressionTypeForFunctionName() {
|
|
68818
68919
|
return "isRegNumSfr";
|
|
68819
68920
|
}
|
|
68820
|
-
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "
|
|
68921
|
+
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "select", [_dec103], {
|
|
68821
68922
|
configurable: true,
|
|
68822
68923
|
enumerable: true,
|
|
68823
68924
|
writable: true,
|
|
68824
68925
|
initializer: null
|
|
68825
68926
|
}), _class90)) || _class89);
|
|
68826
|
-
let FormulaIsInnExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68927
|
+
let FormulaIsInnExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec104(_class91 = (_class92 = class FormulaIsInnExpression extends FormulaExpression {
|
|
68827
68928
|
constructor(...args) {
|
|
68828
68929
|
super(...args);
|
|
68829
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68930
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor58, this);
|
|
68830
68931
|
}
|
|
68831
68932
|
getLegacyExpressionTypeForFunctionName() {
|
|
68832
68933
|
return "isInn";
|
|
68833
68934
|
}
|
|
68834
|
-
}, _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "
|
|
68935
|
+
}, _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "select", [_dec105], {
|
|
68835
68936
|
configurable: true,
|
|
68836
68937
|
enumerable: true,
|
|
68837
68938
|
writable: true,
|
|
68838
68939
|
initializer: null
|
|
68839
68940
|
}), _class92)) || _class91);
|
|
68840
|
-
let FormulaIsOgrnExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isogrn", `Проверка на валидность ОГРН`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68941
|
+
let FormulaIsOgrnExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isogrn", `Проверка на валидность ОГРН`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec106(_class93 = (_class94 = class FormulaIsOgrnExpression extends FormulaExpression {
|
|
68841
68942
|
constructor(...args) {
|
|
68842
68943
|
super(...args);
|
|
68843
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68944
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor59, this);
|
|
68844
68945
|
}
|
|
68845
68946
|
getLegacyExpressionTypeForFunctionName() {
|
|
68846
68947
|
return "isOgrn";
|
|
68847
68948
|
}
|
|
68848
|
-
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "
|
|
68949
|
+
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "select", [_dec107], {
|
|
68849
68950
|
configurable: true,
|
|
68850
68951
|
enumerable: true,
|
|
68851
68952
|
writable: true,
|
|
68852
68953
|
initializer: null
|
|
68853
68954
|
}), _class94)) || _class93);
|
|
68854
|
-
let FormulaIsValidMirCardNumberExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68955
|
+
let FormulaIsValidMirCardNumberExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec108(_class95 = (_class96 = class FormulaIsValidMirCardNumberExpression extends FormulaExpression {
|
|
68855
68956
|
constructor(...args) {
|
|
68856
68957
|
super(...args);
|
|
68857
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68958
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor60, this);
|
|
68858
68959
|
}
|
|
68859
68960
|
getLegacyExpressionTypeForFunctionName() {
|
|
68860
68961
|
return "isValidMirCardNumber";
|
|
68861
68962
|
}
|
|
68862
|
-
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "
|
|
68963
|
+
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "select", [_dec109], {
|
|
68863
68964
|
configurable: true,
|
|
68864
68965
|
enumerable: true,
|
|
68865
68966
|
writable: true,
|
|
68866
68967
|
initializer: null
|
|
68867
68968
|
}), _class96)) || _class95);
|
|
68868
|
-
let
|
|
68969
|
+
let FormulaIsValidAccountNumberExpression = (_dec110 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumber", `Проверка на валидность карты МИР`), _dec111 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("bik", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec112 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("account", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec110(_class97 = (_class98 = class FormulaIsValidAccountNumberExpression extends FormulaExpression {
|
|
68869
68970
|
constructor(...args) {
|
|
68870
68971
|
super(...args);
|
|
68871
68972
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor61, this);
|
|
68872
|
-
}
|
|
68873
|
-
getLegacyExpressionTypeForFunctionName() {
|
|
68874
|
-
return "isValidAccountNumberBik";
|
|
68875
|
-
}
|
|
68876
|
-
}, _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "bik", [_dec111], {
|
|
68877
|
-
configurable: true,
|
|
68878
|
-
enumerable: true,
|
|
68879
|
-
writable: true,
|
|
68880
|
-
initializer: null
|
|
68881
|
-
}), _class98)) || _class97);
|
|
68882
|
-
let FormulaIsValidAccountNumberAccountExpression = (_dec112 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumberaccount", `Проверка на валидность карты МИР`), _dec113 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec112(_class99 = (_class100 = class FormulaIsValidAccountNumberAccountExpression extends FormulaExpression {
|
|
68883
|
-
constructor(...args) {
|
|
68884
|
-
super(...args);
|
|
68885
68973
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor62, this);
|
|
68886
68974
|
}
|
|
68887
|
-
getLegacyExpressionTypeForFunctionName() {
|
|
68888
|
-
return "isValidAccountNumberAccount";
|
|
68889
|
-
}
|
|
68890
|
-
}, _descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "account", [_dec113], {
|
|
68891
|
-
configurable: true,
|
|
68892
|
-
enumerable: true,
|
|
68893
|
-
writable: true,
|
|
68894
|
-
initializer: null
|
|
68895
|
-
}), _class100)) || _class99);
|
|
68896
|
-
let FormulaIsValidAccountNumberExpression = (_dec114 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumber", `Проверка на валидность карты МИР`), _dec115 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("isvalidaccountnumberbik", [FormulaIsValidAccountNumberBikExpression]), _dec116 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("isvalidaccountnumberaccount", [FormulaIsValidAccountNumberAccountExpression]), _dec114(_class101 = (_class102 = class FormulaIsValidAccountNumberExpression extends FormulaExpression {
|
|
68897
|
-
constructor(...args) {
|
|
68898
|
-
super(...args);
|
|
68899
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor63, this);
|
|
68900
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor64, this);
|
|
68901
|
-
}
|
|
68902
68975
|
getLegacyExpressionTypeForFunctionName() {
|
|
68903
68976
|
return "isValidAccountNumber";
|
|
68904
68977
|
}
|
|
68905
|
-
},
|
|
68978
|
+
}, _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "bik", [_dec111], {
|
|
68906
68979
|
configurable: true,
|
|
68907
68980
|
enumerable: true,
|
|
68908
68981
|
writable: true,
|
|
68909
68982
|
initializer: null
|
|
68910
|
-
}),
|
|
68983
|
+
}), _descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "account", [_dec112], {
|
|
68911
68984
|
configurable: true,
|
|
68912
68985
|
enumerable: true,
|
|
68913
68986
|
writable: true,
|
|
68914
68987
|
initializer: null
|
|
68915
|
-
}),
|
|
68916
|
-
let FormulaArgumentExpression = (
|
|
68988
|
+
}), _class98)) || _class97);
|
|
68989
|
+
let FormulaArgumentExpression = (_dec113 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("argument", `TODO`), _dec114 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec115 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип атрибута: string или decimal (по умолчанию)`), _dec113(_class99 = (_class100 = class FormulaArgumentExpression extends FormulaExpression {
|
|
68917
68990
|
constructor(...args) {
|
|
68918
68991
|
super(...args);
|
|
68919
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
68920
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
68992
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor63, this);
|
|
68993
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor64, this);
|
|
68921
68994
|
}
|
|
68922
|
-
},
|
|
68995
|
+
}, _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "select", [_dec114], {
|
|
68923
68996
|
configurable: true,
|
|
68924
68997
|
enumerable: true,
|
|
68925
68998
|
writable: true,
|
|
68926
68999
|
initializer: null
|
|
68927
|
-
}),
|
|
69000
|
+
}), _descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "type", [_dec115], {
|
|
68928
69001
|
configurable: true,
|
|
68929
69002
|
enumerable: true,
|
|
68930
69003
|
writable: true,
|
|
68931
69004
|
initializer: function () {
|
|
68932
69005
|
return "decimal";
|
|
68933
69006
|
}
|
|
68934
|
-
}),
|
|
68935
|
-
let FormulaArrayExpression = (
|
|
69007
|
+
}), _class100)) || _class99);
|
|
69008
|
+
let FormulaArrayExpression = (_dec116 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("array", `TODO`), _dec117 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec116(_class101 = (_class102 = class FormulaArrayExpression extends FormulaExpression {
|
|
68936
69009
|
constructor(...args) {
|
|
68937
69010
|
super(...args);
|
|
68938
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69011
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor65, this);
|
|
68939
69012
|
}
|
|
68940
|
-
},
|
|
69013
|
+
}, _descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "items", [_dec117], {
|
|
68941
69014
|
configurable: true,
|
|
68942
69015
|
enumerable: true,
|
|
68943
69016
|
writable: true,
|
|
68944
69017
|
initializer: null
|
|
68945
|
-
}),
|
|
68946
|
-
let FormulaFilterColumnExpression = (
|
|
69018
|
+
}), _class102)) || _class101);
|
|
69019
|
+
let FormulaFilterColumnExpression = (_dec118 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filtercolumn", `Получить значения пиклиста по фильру`), _dec119 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec118(_class103 = (_class104 = class FormulaFilterColumnExpression extends FormulaExpression {
|
|
68947
69020
|
constructor(...args) {
|
|
68948
69021
|
super(...args);
|
|
68949
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
69022
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor66, this);
|
|
68950
69023
|
}
|
|
68951
|
-
},
|
|
69024
|
+
}, _descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "filterColumn", [_dec119], {
|
|
68952
69025
|
configurable: true,
|
|
68953
69026
|
enumerable: true,
|
|
68954
69027
|
writable: true,
|
|
68955
69028
|
initializer: null
|
|
68956
|
-
}),
|
|
68957
|
-
let FormulaFilterKeyExpression = (
|
|
69029
|
+
}), _class104)) || _class103);
|
|
69030
|
+
let FormulaFilterKeyExpression = (_dec120 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filterkey", `Получить значения пиклиста по фильру`), _dec121 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec120(_class105 = (_class106 = class FormulaFilterKeyExpression extends FormulaExpression {
|
|
68958
69031
|
constructor(...args) {
|
|
68959
69032
|
super(...args);
|
|
68960
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
69033
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor67, this);
|
|
68961
69034
|
}
|
|
68962
|
-
},
|
|
69035
|
+
}, _descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterKey", [_dec121], {
|
|
68963
69036
|
configurable: true,
|
|
68964
69037
|
enumerable: true,
|
|
68965
69038
|
writable: true,
|
|
68966
69039
|
initializer: null
|
|
68967
|
-
}),
|
|
68968
|
-
let FormulaGetPicklistValuesExpression = (
|
|
69040
|
+
}), _class106)) || _class105);
|
|
69041
|
+
let FormulaGetPicklistValuesExpression = (_dec122 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getpicklistvalues", `Получить значения пиклиста по фильру. Используется только для генерации FLANG. В калькуляторе не работает`), _dec123 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec124 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filtercolumn", [FormulaFilterColumnExpression]), _dec125 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filterkey", [FormulaFilterKeyExpression]), _dec126 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("resultColumn", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec122(_class107 = (_class108 = class FormulaGetPicklistValuesExpression extends FormulaExpression {
|
|
68969
69042
|
constructor(...args) {
|
|
68970
69043
|
super(...args);
|
|
68971
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
68972
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
68973
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
68974
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn",
|
|
69044
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor68, this);
|
|
69045
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor69, this);
|
|
69046
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor70, this);
|
|
69047
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn", _descriptor71, this);
|
|
68975
69048
|
}
|
|
68976
69049
|
getLegacyExpressionTypeForFunctionName() {
|
|
68977
69050
|
return "getPicklistValues";
|
|
68978
69051
|
}
|
|
68979
|
-
},
|
|
69052
|
+
}, _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "gId", [_dec123], {
|
|
68980
69053
|
configurable: true,
|
|
68981
69054
|
enumerable: true,
|
|
68982
69055
|
writable: true,
|
|
68983
69056
|
initializer: null
|
|
68984
|
-
}),
|
|
69057
|
+
}), _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "filterColumn", [_dec124], {
|
|
68985
69058
|
configurable: true,
|
|
68986
69059
|
enumerable: true,
|
|
68987
69060
|
writable: true,
|
|
68988
69061
|
initializer: null
|
|
68989
|
-
}),
|
|
69062
|
+
}), _descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "filterKey", [_dec125], {
|
|
68990
69063
|
configurable: true,
|
|
68991
69064
|
enumerable: true,
|
|
68992
69065
|
writable: true,
|
|
68993
69066
|
initializer: null
|
|
68994
|
-
}),
|
|
69067
|
+
}), _descriptor71 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "resultColumn", [_dec126], {
|
|
68995
69068
|
configurable: true,
|
|
68996
69069
|
enumerable: true,
|
|
68997
69070
|
writable: true,
|
|
68998
69071
|
initializer: null
|
|
68999
|
-
}),
|
|
69000
|
-
let FormulaFirstOrDefaultExpression = (
|
|
69072
|
+
}), _class108)) || _class107);
|
|
69073
|
+
let FormulaFirstOrDefaultExpression = (_dec127 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("firstordefault", `Взять первый элемент массива. Используется только для генерации FLANG. В калькуляторе не работает`), _dec128 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec127(_class109 = (_class110 = class FormulaFirstOrDefaultExpression extends FormulaExpression {
|
|
69001
69074
|
constructor(...args) {
|
|
69002
69075
|
super(...args);
|
|
69003
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69076
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor72, this);
|
|
69004
69077
|
}
|
|
69005
|
-
},
|
|
69078
|
+
}, _descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "expression", [_dec128], {
|
|
69006
69079
|
configurable: true,
|
|
69007
69080
|
enumerable: true,
|
|
69008
69081
|
writable: true,
|
|
69009
69082
|
initializer: null
|
|
69010
|
-
}),
|
|
69011
|
-
let FormulaHashSetExpression = (
|
|
69083
|
+
}), _class110)) || _class109);
|
|
69084
|
+
let FormulaHashSetExpression = (_dec129 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("hashset", `Оставить только уникальные значения в массиве. Используется только для генерации FLANG. В калькуляторе не работает`), _dec130 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec129(_class111 = (_class112 = class FormulaHashSetExpression extends FormulaExpression {
|
|
69012
69085
|
constructor(...args) {
|
|
69013
69086
|
super(...args);
|
|
69014
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69087
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor73, this);
|
|
69015
69088
|
}
|
|
69016
|
-
},
|
|
69089
|
+
}, _descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "expression", [_dec130], {
|
|
69017
69090
|
configurable: true,
|
|
69018
69091
|
enumerable: true,
|
|
69019
69092
|
writable: true,
|
|
69020
69093
|
initializer: null
|
|
69021
|
-
}),
|
|
69022
|
-
let FormulaExistsExpression = (
|
|
69094
|
+
}), _class112)) || _class111);
|
|
69095
|
+
let FormulaExistsExpression = (_dec131 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("exists", `TODO`), _dec132 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec131(_class113 = (_class114 = class FormulaExistsExpression extends FormulaExpression {
|
|
69023
69096
|
constructor(...args) {
|
|
69024
69097
|
super(...args);
|
|
69025
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69098
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor74, this);
|
|
69026
69099
|
}
|
|
69027
69100
|
getLegacyExpressionTypeForFunctionName() {
|
|
69028
69101
|
return "exists";
|
|
69029
69102
|
}
|
|
69030
|
-
},
|
|
69103
|
+
}, _descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "select", [_dec132], {
|
|
69031
69104
|
configurable: true,
|
|
69032
69105
|
enumerable: true,
|
|
69033
69106
|
writable: true,
|
|
69034
69107
|
initializer: null
|
|
69035
|
-
}),
|
|
69036
|
-
let FormulaMultySumExpression = (
|
|
69108
|
+
}), _class114)) || _class113);
|
|
69109
|
+
let FormulaMultySumExpression = (_dec133 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multysum", `TODO`), _dec134 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec133(_class115 = (_class116 = class FormulaMultySumExpression extends FormulaExpression {
|
|
69037
69110
|
constructor(...args) {
|
|
69038
69111
|
super(...args);
|
|
69039
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69112
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor75, this);
|
|
69040
69113
|
}
|
|
69041
|
-
},
|
|
69114
|
+
}, _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class116.prototype, "select", [_dec134], {
|
|
69042
69115
|
configurable: true,
|
|
69043
69116
|
enumerable: true,
|
|
69044
69117
|
writable: true,
|
|
69045
69118
|
initializer: null
|
|
69046
|
-
}),
|
|
69047
|
-
let FormulaCountExpression = (
|
|
69119
|
+
}), _class116)) || _class115);
|
|
69120
|
+
let FormulaCountExpression = (_dec135 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("count", `TODO`), _dec136 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec137 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("withNullOrEmptyValues", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `брать в расчет незаполненные экземпляры`), _dec135(_class117 = (_class118 = class FormulaCountExpression extends FormulaExpression {
|
|
69048
69121
|
constructor(...args) {
|
|
69049
69122
|
super(...args);
|
|
69050
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69051
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
69123
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor76, this);
|
|
69124
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor77, this);
|
|
69052
69125
|
}
|
|
69053
|
-
},
|
|
69126
|
+
}, _descriptor76 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "select", [_dec136], {
|
|
69054
69127
|
configurable: true,
|
|
69055
69128
|
enumerable: true,
|
|
69056
69129
|
writable: true,
|
|
69057
69130
|
initializer: null
|
|
69058
|
-
}),
|
|
69131
|
+
}), _descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "withNullOrEmptyValues", [_dec137], {
|
|
69059
69132
|
configurable: true,
|
|
69060
69133
|
enumerable: true,
|
|
69061
69134
|
writable: true,
|
|
69062
69135
|
initializer: null
|
|
69063
|
-
}),
|
|
69064
|
-
let FormulaInstanceCountExpression = (
|
|
69136
|
+
}), _class118)) || _class117);
|
|
69137
|
+
let FormulaInstanceCountExpression = (_dec138 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("instancecount", `TODO`), _dec139 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec138(_class119 = (_class120 = class FormulaInstanceCountExpression extends FormulaExpression {
|
|
69065
69138
|
constructor(...args) {
|
|
69066
69139
|
super(...args);
|
|
69067
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69140
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor78, this);
|
|
69068
69141
|
}
|
|
69069
|
-
},
|
|
69142
|
+
}, _descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class120.prototype, "select", [_dec139], {
|
|
69070
69143
|
configurable: true,
|
|
69071
69144
|
enumerable: true,
|
|
69072
69145
|
writable: true,
|
|
69073
69146
|
initializer: null
|
|
69074
|
-
}),
|
|
69075
|
-
let FormulaIsEqualToAutoCalculatedExpression = (
|
|
69147
|
+
}), _class120)) || _class119);
|
|
69148
|
+
let FormulaIsEqualToAutoCalculatedExpression = (_dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isequaltoautocalculated", `TODO`), _dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("decimal", "string"), ``), _dec140(_class121 = (_class122 = class FormulaIsEqualToAutoCalculatedExpression extends FormulaExpression {
|
|
69076
69149
|
constructor(...args) {
|
|
69077
69150
|
super(...args);
|
|
69078
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69079
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
69151
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor79, this);
|
|
69152
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor80, this);
|
|
69080
69153
|
}
|
|
69081
|
-
},
|
|
69154
|
+
}, _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "select", [_dec141], {
|
|
69082
69155
|
configurable: true,
|
|
69083
69156
|
enumerable: true,
|
|
69084
69157
|
writable: true,
|
|
69085
69158
|
initializer: null
|
|
69086
|
-
}),
|
|
69159
|
+
}), _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "type", [_dec142], {
|
|
69087
69160
|
configurable: true,
|
|
69088
69161
|
enumerable: true,
|
|
69089
69162
|
writable: true,
|
|
69090
69163
|
initializer: null
|
|
69091
|
-
}),
|
|
69092
|
-
let FormulaJoinExpression = (
|
|
69164
|
+
}), _class122)) || _class121);
|
|
69165
|
+
let FormulaJoinExpression = (_dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("join", `TODO`), _dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec143(_class123 = (_class124 = class FormulaJoinExpression extends FormulaExpression {
|
|
69093
69166
|
constructor(...args) {
|
|
69094
69167
|
super(...args);
|
|
69095
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array",
|
|
69168
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor81, this);
|
|
69096
69169
|
}
|
|
69097
|
-
},
|
|
69170
|
+
}, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "array", [_dec144], {
|
|
69098
69171
|
configurable: true,
|
|
69099
69172
|
enumerable: true,
|
|
69100
69173
|
writable: true,
|
|
69101
69174
|
initializer: null
|
|
69102
|
-
}),
|
|
69103
|
-
let FormulaPropertyByNameExpression = (
|
|
69175
|
+
}), _class124)) || _class123);
|
|
69176
|
+
let FormulaPropertyByNameExpression = (_dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("property", `TODO`), _dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec145(_class125 = (_class126 = class FormulaPropertyByNameExpression extends FormulaExpression {
|
|
69104
69177
|
constructor(...args) {
|
|
69105
69178
|
super(...args);
|
|
69106
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
69179
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor82, this);
|
|
69107
69180
|
}
|
|
69108
|
-
},
|
|
69181
|
+
}, _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "name", [_dec146], {
|
|
69109
69182
|
configurable: true,
|
|
69110
69183
|
enumerable: true,
|
|
69111
69184
|
writable: true,
|
|
69112
69185
|
initializer: null
|
|
69113
|
-
}),
|
|
69114
|
-
let FormulaConcatExpression = (
|
|
69186
|
+
}), _class126)) || _class125);
|
|
69187
|
+
let FormulaConcatExpression = (_dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec147(_class127 = (_class128 = class FormulaConcatExpression extends FormulaExpression {
|
|
69115
69188
|
constructor(...args) {
|
|
69116
69189
|
super(...args);
|
|
69117
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
69190
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor83, this);
|
|
69118
69191
|
}
|
|
69119
|
-
},
|
|
69192
|
+
}, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "arguments", [_dec148], {
|
|
69120
69193
|
configurable: true,
|
|
69121
69194
|
enumerable: true,
|
|
69122
69195
|
writable: true,
|
|
69123
69196
|
initializer: null
|
|
69124
|
-
}),
|
|
69125
|
-
let FormulaNewLineExpression = (
|
|
69126
|
-
let Formula = (
|
|
69197
|
+
}), _class128)) || _class127);
|
|
69198
|
+
let FormulaNewLineExpression = (_dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec149(_class129 = class FormulaNewLineExpression extends FormulaExpression {}) || _class129);
|
|
69199
|
+
let Formula = (_dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec150(_class130 = (_class131 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69127
69200
|
constructor(...args) {
|
|
69128
69201
|
super(...args);
|
|
69129
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
69130
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
69131
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69202
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor84, this);
|
|
69203
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor85, this);
|
|
69204
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor86, this);
|
|
69132
69205
|
}
|
|
69133
|
-
},
|
|
69206
|
+
}, _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "match", [_dec151], {
|
|
69134
69207
|
configurable: true,
|
|
69135
69208
|
enumerable: true,
|
|
69136
69209
|
writable: true,
|
|
69137
69210
|
initializer: null
|
|
69138
|
-
}),
|
|
69211
|
+
}), _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "target", [_dec152], {
|
|
69139
69212
|
configurable: true,
|
|
69140
69213
|
enumerable: true,
|
|
69141
69214
|
writable: true,
|
|
69142
69215
|
initializer: null
|
|
69143
|
-
}),
|
|
69216
|
+
}), _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "expression", [_dec153], {
|
|
69144
69217
|
configurable: true,
|
|
69145
69218
|
enumerable: true,
|
|
69146
69219
|
writable: true,
|
|
69147
69220
|
initializer: null
|
|
69148
|
-
}),
|
|
69149
|
-
let FormulaNoDepsNode = (
|
|
69221
|
+
}), _class131)) || _class130);
|
|
69222
|
+
let FormulaNoDepsNode = (_dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec154(_class132 = (_class133 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69150
69223
|
constructor(...args) {
|
|
69151
69224
|
super(...args);
|
|
69152
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69225
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor87, this);
|
|
69153
69226
|
}
|
|
69154
|
-
},
|
|
69227
|
+
}, _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec155], {
|
|
69155
69228
|
configurable: true,
|
|
69156
69229
|
enumerable: true,
|
|
69157
69230
|
writable: true,
|
|
69158
69231
|
initializer: null
|
|
69159
|
-
}),
|
|
69160
|
-
let Formulas = (
|
|
69232
|
+
}), _class133)) || _class132);
|
|
69233
|
+
let Formulas = (_dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec157 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec156(_class134 = (_class135 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69161
69234
|
constructor(...args) {
|
|
69162
69235
|
super(...args);
|
|
69163
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69236
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor88, this);
|
|
69164
69237
|
}
|
|
69165
|
-
},
|
|
69238
|
+
}, _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec157], {
|
|
69166
69239
|
configurable: true,
|
|
69167
69240
|
enumerable: true,
|
|
69168
69241
|
writable: true,
|
|
69169
69242
|
initializer: null
|
|
69170
|
-
}),
|
|
69171
|
-
let ConditionNode = (
|
|
69243
|
+
}), _class135)) || _class134);
|
|
69244
|
+
let ConditionNode = (_dec158 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec163 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec158(_class136 = (_class137 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69172
69245
|
constructor(...args) {
|
|
69173
69246
|
super(...args);
|
|
69174
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
69175
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
69176
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
69177
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
69178
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69247
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor89, this);
|
|
69248
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor90, this);
|
|
69249
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor91, this);
|
|
69250
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor92, this);
|
|
69251
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor93, this);
|
|
69179
69252
|
}
|
|
69180
|
-
},
|
|
69253
|
+
}, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "match", [_dec159], {
|
|
69181
69254
|
configurable: true,
|
|
69182
69255
|
enumerable: true,
|
|
69183
69256
|
writable: true,
|
|
69184
69257
|
initializer: null
|
|
69185
|
-
}),
|
|
69258
|
+
}), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "target", [_dec160], {
|
|
69186
69259
|
configurable: true,
|
|
69187
69260
|
enumerable: true,
|
|
69188
69261
|
writable: true,
|
|
69189
69262
|
initializer: null
|
|
69190
|
-
}),
|
|
69263
|
+
}), _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "description", [_dec161], {
|
|
69191
69264
|
configurable: true,
|
|
69192
69265
|
enumerable: true,
|
|
69193
69266
|
writable: true,
|
|
69194
69267
|
initializer: null
|
|
69195
|
-
}),
|
|
69268
|
+
}), _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "errorLevel", [_dec162], {
|
|
69196
69269
|
configurable: true,
|
|
69197
69270
|
enumerable: true,
|
|
69198
69271
|
writable: true,
|
|
69199
69272
|
initializer: null
|
|
69200
|
-
}),
|
|
69273
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "expression", [_dec163], {
|
|
69201
69274
|
configurable: true,
|
|
69202
69275
|
enumerable: true,
|
|
69203
69276
|
writable: true,
|
|
69204
69277
|
initializer: null
|
|
69205
|
-
}),
|
|
69206
|
-
let ConditionsNode = (
|
|
69278
|
+
}), _class137)) || _class136);
|
|
69279
|
+
let ConditionsNode = (_dec164 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec165 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec164(_class138 = (_class139 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69207
69280
|
constructor(...args) {
|
|
69208
69281
|
super(...args);
|
|
69209
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69282
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor94, this);
|
|
69210
69283
|
}
|
|
69211
|
-
},
|
|
69284
|
+
}, _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "items", [_dec165], {
|
|
69212
69285
|
configurable: true,
|
|
69213
69286
|
enumerable: true,
|
|
69214
69287
|
writable: true,
|
|
69215
69288
|
initializer: null
|
|
69216
|
-
}),
|
|
69217
|
-
let MathContainer = (
|
|
69289
|
+
}), _class139)) || _class138);
|
|
69290
|
+
let MathContainer = (_dec166 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec167 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec168 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec166(_class140 = (_class141 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69218
69291
|
constructor(...args) {
|
|
69219
69292
|
super(...args);
|
|
69220
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
69221
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
69293
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor95, this);
|
|
69294
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor96, this);
|
|
69222
69295
|
}
|
|
69223
|
-
},
|
|
69296
|
+
}, _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "formulas", [_dec167], {
|
|
69224
69297
|
configurable: true,
|
|
69225
69298
|
enumerable: true,
|
|
69226
69299
|
writable: true,
|
|
69227
69300
|
initializer: null
|
|
69228
|
-
}),
|
|
69301
|
+
}), _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "conditions", [_dec168], {
|
|
69229
69302
|
configurable: true,
|
|
69230
69303
|
enumerable: true,
|
|
69231
69304
|
writable: true,
|
|
69232
69305
|
initializer: null
|
|
69233
|
-
}),
|
|
69234
|
-
let FormulaMakeDictExpression = (
|
|
69306
|
+
}), _class141)) || _class140);
|
|
69307
|
+
let FormulaMakeDictExpression = (_dec169 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("makedict", `Получение словаря по ключу-значению из иннера`), _dec170 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ`), _dec171 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(undefined, [FormulaArgumentExpression, FormulaConstExpression, FormulaCastExpression], `Путь откуда брать значение или константа`), _dec169(_class142 = (_class143 = class FormulaMakeDictExpression extends FormulaExpression {
|
|
69235
69308
|
constructor(...args) {
|
|
69236
69309
|
super(...args);
|
|
69237
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69238
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression",
|
|
69310
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor97, this);
|
|
69311
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor98, this);
|
|
69239
69312
|
}
|
|
69240
|
-
},
|
|
69313
|
+
}, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec170], {
|
|
69241
69314
|
configurable: true,
|
|
69242
69315
|
enumerable: true,
|
|
69243
69316
|
writable: true,
|
|
69244
69317
|
initializer: null
|
|
69245
|
-
}),
|
|
69318
|
+
}), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValueExpression", [_dec171], {
|
|
69246
69319
|
configurable: true,
|
|
69247
69320
|
enumerable: true,
|
|
69248
69321
|
writable: true,
|
|
69249
69322
|
initializer: null
|
|
69250
|
-
}),
|
|
69251
|
-
let FormulaGetSumByKeysExpression = (
|
|
69323
|
+
}), _class143)) || _class142);
|
|
69324
|
+
let FormulaGetSumByKeysExpression = (_dec172 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getsumbykeys", `Вычисление суммы с группировкой в разных множественностях`), _dec173 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dictPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь к словарю`), _dec174 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec172(_class144 = (_class145 = class FormulaGetSumByKeysExpression extends FormulaExpression {
|
|
69252
69325
|
constructor(...args) {
|
|
69253
69326
|
super(...args);
|
|
69254
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
69255
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69327
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor99, this);
|
|
69328
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor100, this);
|
|
69256
69329
|
}
|
|
69257
|
-
},
|
|
69330
|
+
}, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "dictPath", [_dec173], {
|
|
69258
69331
|
configurable: true,
|
|
69259
69332
|
enumerable: true,
|
|
69260
69333
|
writable: true,
|
|
69261
69334
|
initializer: null
|
|
69262
|
-
}),
|
|
69335
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec174], {
|
|
69263
69336
|
configurable: true,
|
|
69264
69337
|
enumerable: true,
|
|
69265
69338
|
writable: true,
|
|
69266
69339
|
initializer: null
|
|
69267
|
-
}),
|
|
69268
|
-
let FormulaGroupSumExpression = (
|
|
69340
|
+
}), _class145)) || _class144);
|
|
69341
|
+
let FormulaGroupSumExpression = (_dec175 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _dec176 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec177 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec178 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec175(_class146 = (_class147 = class FormulaGroupSumExpression extends FormulaExpression {
|
|
69269
69342
|
constructor(...args) {
|
|
69270
69343
|
super(...args);
|
|
69271
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69272
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69273
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath",
|
|
69344
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor101, this);
|
|
69345
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor102, this);
|
|
69346
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor103, this);
|
|
69274
69347
|
}
|
|
69275
|
-
},
|
|
69348
|
+
}, _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "targetKeys", [_dec176], {
|
|
69276
69349
|
configurable: true,
|
|
69277
69350
|
enumerable: true,
|
|
69278
69351
|
writable: true,
|
|
69279
69352
|
initializer: null
|
|
69280
|
-
}),
|
|
69353
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec177], {
|
|
69281
69354
|
configurable: true,
|
|
69282
69355
|
enumerable: true,
|
|
69283
69356
|
writable: true,
|
|
69284
69357
|
initializer: null
|
|
69285
|
-
}),
|
|
69358
|
+
}), _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceValuePath", [_dec178], {
|
|
69286
69359
|
configurable: true,
|
|
69287
69360
|
enumerable: true,
|
|
69288
69361
|
writable: true,
|
|
69289
69362
|
initializer: null
|
|
69290
|
-
}),
|
|
69291
|
-
let FormulaGroupCountExpression = (
|
|
69363
|
+
}), _class147)) || _class146);
|
|
69364
|
+
let FormulaGroupCountExpression = (_dec179 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec180 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec181 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec179(_class148 = (_class149 = class FormulaGroupCountExpression extends FormulaExpression {
|
|
69292
69365
|
constructor(...args) {
|
|
69293
69366
|
super(...args);
|
|
69294
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69295
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69367
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor104, this);
|
|
69368
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor105, this);
|
|
69296
69369
|
}
|
|
69297
|
-
},
|
|
69370
|
+
}, _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "targetKeys", [_dec180], {
|
|
69298
69371
|
configurable: true,
|
|
69299
69372
|
enumerable: true,
|
|
69300
69373
|
writable: true,
|
|
69301
69374
|
initializer: null
|
|
69302
|
-
}),
|
|
69375
|
+
}), _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "sourceKeyPath", [_dec181], {
|
|
69303
69376
|
configurable: true,
|
|
69304
69377
|
enumerable: true,
|
|
69305
69378
|
writable: true,
|
|
69306
69379
|
initializer: null
|
|
69307
|
-
}),
|
|
69380
|
+
}), _class149)) || _class148);
|
|
69308
69381
|
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, 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];
|
|
69309
69382
|
|
|
69310
69383
|
/***/ }),
|
|
@@ -71725,29 +71798,36 @@ class KCXmlGeneratorBase {
|
|
|
71725
71798
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
71726
71799
|
}
|
|
71727
71800
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
71728
|
-
const
|
|
71729
|
-
|
|
71801
|
+
const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, 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());
|
|
71802
|
+
deps.push(new RegularDependency(modelPath));
|
|
71803
|
+
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
71730
71804
|
}
|
|
71731
71805
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsRegNumSfrExpression) {
|
|
71732
|
-
const
|
|
71733
|
-
|
|
71806
|
+
const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, 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());
|
|
71807
|
+
deps.push(new RegularDependency(modelPath));
|
|
71808
|
+
return gcf(x => x.isRegNumSfr, `"${modelPath.toLegacyPath()}"`);
|
|
71734
71809
|
}
|
|
71735
71810
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
71736
|
-
const
|
|
71737
|
-
|
|
71811
|
+
const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, 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());
|
|
71812
|
+
deps.push(new RegularDependency(modelPath));
|
|
71813
|
+
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
71738
71814
|
}
|
|
71739
71815
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsOgrnExpression) {
|
|
71740
|
-
const
|
|
71741
|
-
|
|
71816
|
+
const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, 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());
|
|
71817
|
+
deps.push(new RegularDependency(modelPath));
|
|
71818
|
+
return gcf(x => x.isOgrn, `"${modelPath.toLegacyPath()}"`);
|
|
71742
71819
|
}
|
|
71743
71820
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
71744
|
-
const
|
|
71745
|
-
|
|
71821
|
+
const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, 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());
|
|
71822
|
+
deps.push(new RegularDependency(modelPath));
|
|
71823
|
+
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
71746
71824
|
}
|
|
71747
71825
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
71748
|
-
const
|
|
71749
|
-
const
|
|
71750
|
-
|
|
71826
|
+
const bikPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.bik)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
71827
|
+
const accountPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.account)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
71828
|
+
deps.push(new RegularDependency(bikPath));
|
|
71829
|
+
deps.push(new RegularDependency(accountPath));
|
|
71830
|
+
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
71751
71831
|
}
|
|
71752
71832
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
71753
71833
|
var _expression$withNullO;
|
|
@@ -75356,24 +75436,24 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75356
75436
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.SumOfDayWeightsExpression(expressions);
|
|
75357
75437
|
}
|
|
75358
75438
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
75359
|
-
const arg = this.
|
|
75360
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75439
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
75440
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
75361
75441
|
}
|
|
75362
75442
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsRegNumSfrExpression) {
|
|
75363
|
-
const arg = this.
|
|
75364
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsRegNumSfrExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75443
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
75444
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsRegNumSfrExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
75365
75445
|
}
|
|
75366
75446
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsInnExpression) {
|
|
75367
|
-
const arg = this.
|
|
75368
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75447
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
75448
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
75369
75449
|
}
|
|
75370
75450
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsOgrnExpression) {
|
|
75371
|
-
const arg = this.
|
|
75372
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsOgrnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75451
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
75452
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsOgrnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
75373
75453
|
}
|
|
75374
75454
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidMirCardNumberExpression) {
|
|
75375
|
-
const arg = this.
|
|
75376
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75455
|
+
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
75456
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
75377
75457
|
}
|
|
75378
75458
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArrayExpression) {
|
|
75379
75459
|
const items = expression.items.map(arg => this.compileEnumerationItem(arg, prefix, target, addPrecalculationRule));
|
|
@@ -75395,9 +75475,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75395
75475
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.GetPicklistValuesExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.StringLiteralExpression(expression.gId), filterColumn, filterKey, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.StringLiteralExpression(expression.resultColumn));
|
|
75396
75476
|
}
|
|
75397
75477
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidAccountNumberExpression) {
|
|
75398
|
-
const bik = this.
|
|
75399
|
-
const account = this.
|
|
75400
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidAccountNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75478
|
+
const bik = this.compiledArgumentExpression(prefix, target, expression.bik, "string", addPrecalculationRule);
|
|
75479
|
+
const account = this.compiledArgumentExpression(prefix, target, expression.account, "string", addPrecalculationRule);
|
|
75480
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidAccountNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(bik), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(account));
|
|
75401
75481
|
}
|
|
75402
75482
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGroupSumExpression) {
|
|
75403
75483
|
return this.compileGroupSumExpression(prefix, target, expression, addPrecalculationRule);
|
|
@@ -104579,43 +104659,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104579
104659
|
/* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
|
|
104580
104660
|
/* harmony export */ });
|
|
104581
104661
|
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
104582
|
-
/* harmony import */ var
|
|
104583
|
-
/* harmony import */ var
|
|
104584
|
-
/* harmony import */ var
|
|
104585
|
-
/* harmony import */ var
|
|
104586
|
-
/* harmony import */ var
|
|
104587
|
-
/* harmony import */ var
|
|
104588
|
-
/* harmony import */ var
|
|
104589
|
-
/* harmony import */ var
|
|
104590
|
-
/* harmony import */ var
|
|
104591
|
-
/* harmony import */ var
|
|
104592
|
-
/* harmony import */ var
|
|
104593
|
-
/* harmony import */ var
|
|
104594
|
-
/* harmony import */ var
|
|
104595
|
-
/* harmony import */ var
|
|
104596
|
-
/* harmony import */ var
|
|
104597
|
-
/* harmony import */ var
|
|
104598
|
-
/* harmony import */ var
|
|
104599
|
-
/* harmony import */ var
|
|
104600
|
-
/* harmony import */ var
|
|
104601
|
-
/* harmony import */ var
|
|
104602
|
-
/* harmony import */ var
|
|
104603
|
-
/* harmony import */ var
|
|
104604
|
-
/* harmony import */ var
|
|
104605
|
-
/* harmony import */ var
|
|
104606
|
-
/* harmony import */ var
|
|
104607
|
-
/* harmony import */ var
|
|
104608
|
-
/* harmony import */ var
|
|
104609
|
-
/* harmony import */ var
|
|
104610
|
-
/* harmony import */ var
|
|
104611
|
-
/* harmony import */ var
|
|
104612
|
-
/* harmony import */ var
|
|
104613
|
-
/* harmony import */ var
|
|
104614
|
-
/* harmony import */ var
|
|
104615
|
-
/* harmony import */ var
|
|
104616
|
-
/* harmony import */ var
|
|
104617
|
-
/* harmony import */ var
|
|
104618
|
-
/* harmony import */ var
|
|
104662
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
104663
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
104664
|
+
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
104665
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
104666
|
+
/* harmony import */ var _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/AndExpression */ "./Generator/src/common/KCLang/CodeDom/AndExpression.ts");
|
|
104667
|
+
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
104668
|
+
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
104669
|
+
/* harmony import */ var _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DecimalConstExpression */ "./Generator/src/common/KCLang/CodeDom/DecimalConstExpression.ts");
|
|
104670
|
+
/* harmony import */ var _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DescriptionText */ "./Generator/src/common/KCLang/CodeDom/DescriptionText.ts");
|
|
104671
|
+
/* harmony import */ var _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/EqExpression */ "./Generator/src/common/KCLang/CodeDom/EqExpression.ts");
|
|
104672
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/ExistsFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts");
|
|
104673
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts");
|
|
104674
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/JoinFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts");
|
|
104675
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/LengthFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/LengthFunctionCall.ts");
|
|
104676
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/RegexMatchFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/RegexMatchFunctionCall.ts");
|
|
104677
|
+
/* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
|
|
104678
|
+
/* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
|
|
104679
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
104680
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
104681
|
+
/* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
|
|
104682
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
|
|
104683
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
|
|
104684
|
+
/* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
|
|
104685
|
+
/* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
|
|
104686
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
|
|
104687
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
|
|
104688
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
104689
|
+
/* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
|
|
104690
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
104691
|
+
/* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
104692
|
+
/* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
|
|
104693
|
+
/* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
104694
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
104695
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall.ts");
|
|
104696
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangRawStringExpression */ "./Generator/src/common/KCLang/CodeDom/KCLangRawStringExpression.ts");
|
|
104697
|
+
/* harmony import */ var _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GtExpression */ "./Generator/src/common/KCLang/CodeDom/GtExpression.ts");
|
|
104698
|
+
/* harmony import */ var _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LtExpression */ "./Generator/src/common/KCLang/CodeDom/LtExpression.ts");
|
|
104699
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
104700
|
+
|
|
104619
104701
|
|
|
104620
104702
|
|
|
104621
104703
|
|
|
@@ -104673,32 +104755,32 @@ class KCLangCalculationsBuildContext {
|
|
|
104673
104755
|
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;
|
|
104674
104756
|
const valueChecks = [];
|
|
104675
104757
|
if (baseName != undefined) {
|
|
104676
|
-
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,
|
|
104758
|
+
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(baseDescription))).toArray());
|
|
104677
104759
|
}
|
|
104678
104760
|
valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
|
|
104679
104761
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
104680
104762
|
if (!optional) {
|
|
104681
|
-
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2;
|
|
104763
|
+
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2, _IterUtils$last;
|
|
104682
104764
|
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 : "Поле должно быть заполнено";
|
|
104683
104765
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
104684
|
-
let allChildrenPaths = parentNode instanceof
|
|
104685
|
-
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) >
|
|
104766
|
+
let allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement ? this.schemaRng.getAllChildValueNodes(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_3__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration()) : undefined;
|
|
104767
|
+
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_32__.maxOptionalChildrenLimit) {
|
|
104686
104768
|
allChildrenPaths = undefined;
|
|
104687
104769
|
}
|
|
104688
|
-
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new
|
|
104689
|
-
const checkRequiredStatement = new
|
|
104770
|
+
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("")))).reduce(combineByAndKCLangExpr, undefined);
|
|
104771
|
+
const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(""))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(requiredDescription))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken))) !== null && _IterUtils$last !== void 0 ? _IterUtils$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
|
|
104690
104772
|
if (restChecks != undefined) {
|
|
104691
|
-
yield new
|
|
104773
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(restChecks, [checkRequiredStatement]);
|
|
104692
104774
|
} else {
|
|
104693
104775
|
yield checkRequiredStatement;
|
|
104694
104776
|
}
|
|
104695
104777
|
}
|
|
104696
|
-
yield new
|
|
104778
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(""))), valueChecks);
|
|
104697
104779
|
}
|
|
104698
104780
|
getFirstAcceptedParent(schemaNode) {
|
|
104699
104781
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
104700
104782
|
while (parentNode != undefined) {
|
|
104701
|
-
if (parentNode instanceof
|
|
104783
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement) {
|
|
104702
104784
|
var _parentNode$multiple;
|
|
104703
104785
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
104704
104786
|
return parentNode;
|
|
@@ -104714,173 +104796,175 @@ class KCLangCalculationsBuildContext {
|
|
|
104714
104796
|
return undefined;
|
|
104715
104797
|
}
|
|
104716
104798
|
createCheck(targetPath, condition, message, checkType) {
|
|
104717
|
-
|
|
104799
|
+
var _IterUtils$last2;
|
|
104800
|
+
const withBlocks = [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(message.replace(/\[/gi, "\\[").replace(/]/gi, "\\]"))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last2 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(Iterator.from(targetPath.getPathParts()).filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken(x) && !_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isInstanceToken(x)))) !== null && _IterUtils$last2 !== void 0 ? _IterUtils$last2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))];
|
|
104718
104801
|
if (checkType == "warning") {
|
|
104719
|
-
withBlocks.push(new
|
|
104802
|
+
withBlocks.push(new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("errorLevel", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText("Warning")));
|
|
104720
104803
|
}
|
|
104721
|
-
return new
|
|
104804
|
+
return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(condition, withBlocks);
|
|
104722
104805
|
}
|
|
104723
104806
|
*createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId) {
|
|
104724
104807
|
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;
|
|
104725
104808
|
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
104726
|
-
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
|
|
104727
|
-
const enumerationItems = (0,
|
|
104809
|
+
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_33__.EnumerationTypeCheckNode)) === null || _typeNode$children === void 0 ? void 0 : _typeNode$children.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
|
|
104810
|
+
const enumerationItems = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(typeNodeEnumerations) ? typeNodeEnumerations : (_schemaTypeNode$enume = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.enumeration) !== null && _schemaTypeNode$enume !== void 0 ? _schemaTypeNode$enume : [];
|
|
104728
104811
|
const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
|
|
104729
104812
|
var _ref5, _ref6, _ref7, _omitLocalization;
|
|
104730
|
-
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,
|
|
104813
|
+
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref5 !== void 0 ? _ref5 : "Поле должно быть заполнено";
|
|
104731
104814
|
};
|
|
104732
|
-
const valueReferenceExpression = new
|
|
104733
|
-
const stringValueReference = new
|
|
104734
|
-
if ((0,
|
|
104735
|
-
yield this.createCheck(targetPath, new
|
|
104815
|
+
const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true));
|
|
104816
|
+
const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default);
|
|
104817
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(enumerationItems)) {
|
|
104818
|
+
yield this.createCheck(targetPath, new _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_23__.OneOfExpression(stringValueReference, enumerationItems.map(item => new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(item))), makeMessage({
|
|
104736
104819
|
enumerationAllowedValues: enumerationItems
|
|
104737
104820
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104738
104821
|
}
|
|
104739
|
-
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(
|
|
104822
|
+
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.DigestcheckTypeCheckNode).find(x => x);
|
|
104740
104823
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
104741
|
-
if ((0,
|
|
104824
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrEmpty)(gId) && digest != undefined) {
|
|
104742
104825
|
var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
|
|
104743
104826
|
// const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
|
|
104744
|
-
const ruleBody = new
|
|
104745
|
-
yield this.createCheck(targetPath, ruleBody, (0,
|
|
104827
|
+
const ruleBody = new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_22__.NotExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(valueReferenceExpression)), new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__.EqExpression(stringValueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(""))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_13__.JoinFunctionCall(new _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_12__.GetPicklistValuesFunctionCall(gId, [(_digest$keyColumnName = digest.keyColumnName) !== null && _digest$keyColumnName !== void 0 ? _digest$keyColumnName : "code"], new _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringArrayConstExpression([stringValueReference]), (_digest$keyColumnName2 = digest.keyColumnName) !== null && _digest$keyColumnName2 !== void 0 ? _digest$keyColumnName2 : "code")), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("")));
|
|
104828
|
+
yield this.createCheck(targetPath, ruleBody, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.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");
|
|
104746
104829
|
}
|
|
104747
|
-
const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,
|
|
104830
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.LengthTypeCheckNode));
|
|
104748
104831
|
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;
|
|
104749
104832
|
if (lengthValue != undefined) {
|
|
104750
104833
|
var _typeNodeLength$check;
|
|
104751
|
-
yield this.createCheck(targetPath, new
|
|
104834
|
+
yield this.createCheck(targetPath, new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__.EqExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(stringValueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(lengthValue)), makeMessage({
|
|
104752
104835
|
length: lengthValue
|
|
104753
104836
|
}, typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), (_typeNodeLength$check = typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.checkType) !== null && _typeNodeLength$check !== void 0 ? _typeNodeLength$check : checkType);
|
|
104754
104837
|
}
|
|
104755
104838
|
const valueReference = stringValueReference;
|
|
104756
104839
|
const decimalValueReference = valueReferenceExpression;
|
|
104757
|
-
const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,
|
|
104840
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MinlengthTypeCheckNode));
|
|
104758
104841
|
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;
|
|
104759
|
-
const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,
|
|
104842
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MaxlengthTypeCheckNode));
|
|
104760
104843
|
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;
|
|
104761
104844
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
104762
104845
|
var _typeNodeMinLength$de;
|
|
104763
|
-
const lengthExprRuleBody = new
|
|
104846
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minLengthValue)), new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxLengthValue)));
|
|
104764
104847
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104765
104848
|
minLength: minLengthValue,
|
|
104766
104849
|
maxLength: maxLengthValue
|
|
104767
104850
|
}, (_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);
|
|
104768
104851
|
} else if (minLengthValue != undefined) {
|
|
104769
|
-
const lengthExprRuleBody = new
|
|
104852
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minLengthValue));
|
|
104770
104853
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104771
104854
|
minLength: minLengthValue
|
|
104772
104855
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104773
104856
|
} else if (maxLengthValue != undefined) {
|
|
104774
|
-
const lengthExprRuleBody = new
|
|
104857
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxLengthValue));
|
|
104775
104858
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104776
104859
|
maxLength: maxLengthValue
|
|
104777
104860
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104778
104861
|
}
|
|
104779
|
-
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,
|
|
104862
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MininclusiveTypeCheckNode));
|
|
104780
104863
|
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;
|
|
104781
104864
|
if (minInclusiveValue != undefined) {
|
|
104782
|
-
const minInclusiveRuleBody = new
|
|
104865
|
+
const minInclusiveRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__.GeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minInclusiveValue));
|
|
104783
104866
|
yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
|
|
104784
104867
|
minInclusive: minInclusiveValue
|
|
104785
104868
|
}, 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);
|
|
104786
104869
|
}
|
|
104787
|
-
const typeNodeMinExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,
|
|
104870
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MinExclusiveTypeCheckNode));
|
|
104788
104871
|
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;
|
|
104789
104872
|
if (minExclusiveValue != undefined) {
|
|
104790
|
-
const minExclusiveRuleBody = new
|
|
104873
|
+
const minExclusiveRuleBody = new _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_36__.GtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minExclusiveValue));
|
|
104791
104874
|
yield this.createCheck(targetPath, minExclusiveRuleBody, makeMessage({
|
|
104792
104875
|
minExclusive: minExclusiveValue
|
|
104793
104876
|
}, 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);
|
|
104794
104877
|
}
|
|
104795
|
-
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,
|
|
104878
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MaxinclusiveTypeCheckNode));
|
|
104796
104879
|
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;
|
|
104797
104880
|
if (maxInclusiveValue != undefined) {
|
|
104798
|
-
const maxInclusiveRuleBody = new
|
|
104881
|
+
const maxInclusiveRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__.LeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxInclusiveValue));
|
|
104799
104882
|
yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
|
|
104800
104883
|
maxInclusive: maxInclusiveValue
|
|
104801
104884
|
}, 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);
|
|
104802
104885
|
}
|
|
104803
|
-
const typeNodeMaxExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.find((0,
|
|
104886
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MaxExclusiveTypeCheckNode));
|
|
104804
104887
|
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;
|
|
104805
104888
|
if (maxExclusiveValue != undefined) {
|
|
104806
|
-
const maxExclusiveRuleBody = new
|
|
104889
|
+
const maxExclusiveRuleBody = new _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_37__.LtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxExclusiveValue));
|
|
104807
104890
|
yield this.createCheck(targetPath, maxExclusiveRuleBody, makeMessage({
|
|
104808
104891
|
maxExclusive: maxExclusiveValue
|
|
104809
104892
|
}, 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);
|
|
104810
104893
|
}
|
|
104811
|
-
const isDecimalCondition = new
|
|
104812
|
-
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,
|
|
104894
|
+
const isDecimalCondition = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))"));
|
|
104895
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.TotaldigitsTypeCheckNode));
|
|
104813
104896
|
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;
|
|
104814
104897
|
if (totalDigitsValue != undefined) {
|
|
104815
|
-
const totalDigitsRuleBody = new
|
|
104816
|
-
yield new
|
|
104898
|
+
const totalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?(\\.?\\d){0," + totalDigitsValue.toString() + "}$"));
|
|
104899
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
|
|
104817
104900
|
totalDigitsMaxCount: totalDigitsValue
|
|
104818
104901
|
}, 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)]);
|
|
104819
104902
|
}
|
|
104820
|
-
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,
|
|
104821
|
-
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11.filter((0,
|
|
104822
|
-
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,
|
|
104823
|
-
const stringPatterns = ((0,
|
|
104824
|
-
const patterns = stringPatterns.map(pattern => new
|
|
104903
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.PatternTypeCheckNode)).map(x => x.value).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) !== null && _typeNode$children$fi2 !== void 0 ? _typeNode$children$fi2 : [];
|
|
104904
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11[0]) === null || _typeNode$children11 === void 0 ? void 0 : _typeNode$children11.description;
|
|
104905
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.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;
|
|
104906
|
+
const stringPatterns = ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.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_4__.isNotNullOrUndefined);
|
|
104907
|
+
const patterns = stringPatterns.map(pattern => new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(pattern))).reduce((acc, current) => acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(acc, current) : current, undefined);
|
|
104825
104908
|
if (patterns != undefined) {
|
|
104826
104909
|
const stringPatternsRuleBody = patterns;
|
|
104827
104910
|
yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
|
|
104828
104911
|
patterns: stringPatterns
|
|
104829
104912
|
}, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
|
|
104830
104913
|
}
|
|
104831
|
-
const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 ? void 0 : _typeNode$children13.find((0,
|
|
104914
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.IntegerdigitsTypeCheckNode));
|
|
104832
104915
|
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;
|
|
104833
104916
|
if (integerDigits != undefined) {
|
|
104834
|
-
const integerDigitsRuleBody = new
|
|
104835
|
-
yield new
|
|
104917
|
+
const integerDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d{0," + integerDigits.toString() + "}(([.]\\d+$)|($))"));
|
|
104918
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
|
|
104836
104919
|
integerDigitsMaxCount: integerDigits
|
|
104837
104920
|
}, 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)]);
|
|
104838
104921
|
}
|
|
104839
|
-
const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 ? void 0 : _typeNode$children14.find((0,
|
|
104922
|
+
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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.FractiondigitsTypeCheckNode));
|
|
104840
104923
|
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;
|
|
104841
104924
|
if (fractionalDigits != undefined) {
|
|
104842
|
-
const fractionalDigitsRuleBody = new
|
|
104843
|
-
yield new
|
|
104925
|
+
const fractionalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+(([.]\\d{0," + fractionalDigits.toString() + "}$)|($))"));
|
|
104926
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
|
|
104844
104927
|
fractionalDigitsMaxCount: fractionalDigits
|
|
104845
104928
|
}, 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)]);
|
|
104846
104929
|
}
|
|
104847
|
-
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,
|
|
104930
|
+
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_33__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__.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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.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;
|
|
104848
104931
|
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;
|
|
104849
104932
|
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
104850
104933
|
var _typeNode$children$fi5, _typeNode$children17, _typeNode$children18, _typeNode$children$fi6, _typeNode$children19, _typeNode$children20;
|
|
104851
104934
|
const isDecimal = baseName == "decimal";
|
|
104852
104935
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
104853
|
-
(_typeNode$children$fi5 = typeNode === null || typeNode === void 0 || (_typeNode$children17 = typeNode.children) === null || _typeNode$children17 === void 0 || (_typeNode$children17 = _typeNode$children17.find((0,
|
|
104854
|
-
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,
|
|
104855
|
-
let result = this.createCheck(targetPath, new
|
|
104936
|
+
(_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_33__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__.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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children18 === void 0 ? void 0 : _typeNode$children18.condition;
|
|
104937
|
+
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_33__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__.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_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children20 === void 0 ? void 0 : _typeNode$children20.condition;
|
|
104938
|
+
let result = this.createCheck(targetPath, new _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_34__.IsEqualToAutoCalculatedFunctionCall(isDecimal ? new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.DecimalType.default) : new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default)), _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__.AutoValidationMessage, valueEqlAutoValueErrorLevel !== null && valueEqlAutoValueErrorLevel !== void 0 ? valueEqlAutoValueErrorLevel : checkType);
|
|
104856
104939
|
if (validationCondition != undefined) {
|
|
104857
|
-
result = new
|
|
104940
|
+
result = new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(new _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_35__.KCLangRawStringExpression(validationCondition, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.BoolType.default), [result]);
|
|
104858
104941
|
}
|
|
104859
104942
|
yield result;
|
|
104860
104943
|
}
|
|
104861
104944
|
}
|
|
104862
104945
|
*createBaseTypeValidation(targetPath, baseType, baseDescription) {
|
|
104863
|
-
|
|
104864
|
-
const
|
|
104946
|
+
var _IterUtils$last3, _IterUtils$last4, _IterUtils$last5, _IterUtils$last6, _IterUtils$last7;
|
|
104947
|
+
const targetAttributeName = Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken);
|
|
104948
|
+
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true);
|
|
104865
104949
|
switch (baseType) {
|
|
104866
104950
|
case "string":
|
|
104867
104951
|
case "pattern":
|
|
104868
104952
|
case "boolean":
|
|
104869
104953
|
return;
|
|
104870
104954
|
case "integer":
|
|
104871
|
-
yield new
|
|
104955
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last3 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last3 !== void 0 ? _IterUtils$last3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
|
|
104872
104956
|
break;
|
|
104873
104957
|
case "decimal":
|
|
104874
|
-
yield new
|
|
104958
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last4 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last4 !== void 0 ? _IterUtils$last4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
|
|
104875
104959
|
break;
|
|
104876
104960
|
case "date":
|
|
104877
|
-
yield new
|
|
104961
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.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_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last5 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last5 !== void 0 ? _IterUtils$last5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
|
|
104878
104962
|
break;
|
|
104879
104963
|
case "gYear":
|
|
104880
|
-
yield new
|
|
104964
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^\\d{4}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last6 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last6 !== void 0 ? _IterUtils$last6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
|
|
104881
104965
|
break;
|
|
104882
104966
|
case "gMonth":
|
|
104883
|
-
yield new
|
|
104967
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^(--(0[1-9]|1[0-2]))$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last7 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last7 !== void 0 ? _IterUtils$last7 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
|
|
104884
104968
|
break;
|
|
104885
104969
|
default:
|
|
104886
104970
|
throw new Error(`Unknown base type name: '${baseType}'`);
|
|
@@ -104889,7 +104973,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104889
104973
|
}
|
|
104890
104974
|
}
|
|
104891
104975
|
function combineByAndKCLangExpr(acc, current) {
|
|
104892
|
-
return acc != undefined ? new
|
|
104976
|
+
return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(acc, current) : current;
|
|
104893
104977
|
}
|
|
104894
104978
|
|
|
104895
104979
|
/***/ }),
|