@kontur.candy/generator 5.102.0 → 5.103.0-remove-kclang-target-infer.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +451 -469
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50670,80 +50670,52 @@ const existsKCLangFunction = params => {
|
|
|
50670
50670
|
throw new Error("Invalid parameters!");
|
|
50671
50671
|
};
|
|
50672
50672
|
const isSnilsKCLangFunction = params => {
|
|
50673
|
-
var _params$10;
|
|
50673
|
+
var _params$0$value, _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$10 = params[0]) === null || _params$10 === void 0 ? void 0 : _params$10.value;
|
|
50679
|
-
|
|
50680
|
-
|
|
50681
|
-
|
|
50682
|
-
|
|
50683
|
-
}
|
|
50684
|
-
return {
|
|
50685
|
-
type: "isSnils",
|
|
50686
|
-
select: param
|
|
50687
|
-
};
|
|
50688
|
-
}
|
|
50689
|
-
throw new Error("Invalid parameters!");
|
|
50678
|
+
const argumentExpr = (_params$0$value = (_params$10 = params[0]) === null || _params$10 === void 0 ? void 0 : _params$10.value) !== null && _params$0$value !== void 0 ? _params$0$value : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50679
|
+
return {
|
|
50680
|
+
type: "isSnils",
|
|
50681
|
+
expression: argumentExpr
|
|
50682
|
+
};
|
|
50690
50683
|
};
|
|
50691
50684
|
const isRegNumSfrKCLangFunction = params => {
|
|
50692
|
-
var _params$11;
|
|
50685
|
+
var _params$0$value2, _params$11;
|
|
50693
50686
|
const errors = Array.from(validateParams(params, 1));
|
|
50694
50687
|
if (errors.length > 0) {
|
|
50695
50688
|
return new FunctionValidationErrorCollection(errors);
|
|
50696
50689
|
}
|
|
50697
|
-
const argumentExpr = (_params$11 = params[0]) === null || _params$11 === void 0 ? void 0 : _params$11.value;
|
|
50698
|
-
|
|
50699
|
-
|
|
50700
|
-
|
|
50701
|
-
|
|
50702
|
-
}
|
|
50703
|
-
return {
|
|
50704
|
-
type: "isRegNumSfr",
|
|
50705
|
-
select: param
|
|
50706
|
-
};
|
|
50707
|
-
}
|
|
50708
|
-
throw new Error("Invalid parameters!");
|
|
50690
|
+
const argumentExpr = (_params$0$value2 = (_params$11 = params[0]) === null || _params$11 === void 0 ? void 0 : _params$11.value) !== null && _params$0$value2 !== void 0 ? _params$0$value2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50691
|
+
return {
|
|
50692
|
+
type: "isRegNumSfr",
|
|
50693
|
+
expression: argumentExpr
|
|
50694
|
+
};
|
|
50709
50695
|
};
|
|
50710
50696
|
const isInnKCLangFunction = params => {
|
|
50711
|
-
var _params$12;
|
|
50697
|
+
var _params$0$value3, _params$12;
|
|
50712
50698
|
const errors = Array.from(validateParams(params, 1));
|
|
50713
50699
|
if (errors.length > 0) {
|
|
50714
50700
|
return new FunctionValidationErrorCollection(errors);
|
|
50715
50701
|
}
|
|
50716
|
-
const argumentExpr = (_params$12 = params[0]) === null || _params$12 === void 0 ? void 0 : _params$12.value;
|
|
50717
|
-
|
|
50718
|
-
|
|
50719
|
-
|
|
50720
|
-
|
|
50721
|
-
}
|
|
50722
|
-
return {
|
|
50723
|
-
type: "isInn",
|
|
50724
|
-
select: param
|
|
50725
|
-
};
|
|
50726
|
-
}
|
|
50727
|
-
throw new Error("Invalid parameters!");
|
|
50702
|
+
const argumentExpr = (_params$0$value3 = (_params$12 = params[0]) === null || _params$12 === void 0 ? void 0 : _params$12.value) !== null && _params$0$value3 !== void 0 ? _params$0$value3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50703
|
+
return {
|
|
50704
|
+
type: "isInn",
|
|
50705
|
+
expression: argumentExpr
|
|
50706
|
+
};
|
|
50728
50707
|
};
|
|
50729
50708
|
const isOgrnKCLangFunction = params => {
|
|
50730
|
-
var _params$13;
|
|
50709
|
+
var _params$0$value4, _params$13;
|
|
50731
50710
|
const errors = Array.from(validateParams(params, 1));
|
|
50732
50711
|
if (errors.length > 0) {
|
|
50733
50712
|
return new FunctionValidationErrorCollection(errors);
|
|
50734
50713
|
}
|
|
50735
|
-
const argumentExpr = (_params$13 = params[0]) === null || _params$13 === void 0 ? void 0 : _params$13.value;
|
|
50736
|
-
|
|
50737
|
-
|
|
50738
|
-
|
|
50739
|
-
|
|
50740
|
-
}
|
|
50741
|
-
return {
|
|
50742
|
-
type: "isOgrn",
|
|
50743
|
-
select: param
|
|
50744
|
-
};
|
|
50745
|
-
}
|
|
50746
|
-
throw new Error("Invalid parameters!");
|
|
50714
|
+
const argumentExpr = (_params$0$value4 = (_params$13 = params[0]) === null || _params$13 === void 0 ? void 0 : _params$13.value) !== null && _params$0$value4 !== void 0 ? _params$0$value4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50715
|
+
return {
|
|
50716
|
+
type: "isOgrn",
|
|
50717
|
+
expression: argumentExpr
|
|
50718
|
+
};
|
|
50747
50719
|
};
|
|
50748
50720
|
const arrayKCLangFunction = params => {
|
|
50749
50721
|
const errors = Array.from(validateParams(params, 0, Infinity));
|
|
@@ -50831,45 +50803,30 @@ const getPicklistValuesKCLangFunction = params => {
|
|
|
50831
50803
|
};
|
|
50832
50804
|
};
|
|
50833
50805
|
const isValidMirCardNumberKCLangFunction = params => {
|
|
50834
|
-
var _params$21;
|
|
50806
|
+
var _params$0$value5, _params$21;
|
|
50835
50807
|
const errors = Array.from(validateParams(params, 1));
|
|
50836
50808
|
if (errors.length > 0) {
|
|
50837
50809
|
return new FunctionValidationErrorCollection(errors);
|
|
50838
50810
|
}
|
|
50839
|
-
const argumentExpr = (_params$21 = params[0]) === null || _params$21 === void 0 ? void 0 : _params$21.value;
|
|
50840
|
-
|
|
50841
|
-
|
|
50842
|
-
|
|
50843
|
-
|
|
50844
|
-
}
|
|
50845
|
-
return {
|
|
50846
|
-
type: "isValidMirCardNumber",
|
|
50847
|
-
select: param
|
|
50848
|
-
};
|
|
50849
|
-
}
|
|
50850
|
-
throw new Error("Invalid parameters!");
|
|
50811
|
+
const argumentExpr = (_params$0$value5 = (_params$21 = params[0]) === null || _params$21 === void 0 ? void 0 : _params$21.value) !== null && _params$0$value5 !== void 0 ? _params$0$value5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50812
|
+
return {
|
|
50813
|
+
type: "isValidMirCardNumber",
|
|
50814
|
+
expression: argumentExpr
|
|
50815
|
+
};
|
|
50851
50816
|
};
|
|
50852
50817
|
const isValidAccountNumberKCLangFunction = params => {
|
|
50853
|
-
var _params$22, _params$23;
|
|
50818
|
+
var _params$0$value6, _params$22, _params$1$value, _params$23;
|
|
50854
50819
|
const errors = Array.from(validateParams(params, 2));
|
|
50855
50820
|
if (errors.length > 0) {
|
|
50856
50821
|
return new FunctionValidationErrorCollection(errors);
|
|
50857
50822
|
}
|
|
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
|
-
|
|
50861
|
-
|
|
50862
|
-
|
|
50863
|
-
|
|
50864
|
-
|
|
50865
|
-
}
|
|
50866
|
-
return {
|
|
50867
|
-
type: "isValidAccountNumber",
|
|
50868
|
-
bik: bikValue,
|
|
50869
|
-
account: accountValue
|
|
50870
|
-
};
|
|
50871
|
-
}
|
|
50872
|
-
throw new Error("Invalid parameters!");
|
|
50823
|
+
const bik = (_params$0$value6 = (_params$22 = params[0]) === null || _params$22 === void 0 ? void 0 : _params$22.value) !== null && _params$0$value6 !== void 0 ? _params$0$value6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50824
|
+
const account = (_params$1$value = (_params$23 = params[1]) === null || _params$23 === void 0 ? void 0 : _params$23.value) !== null && _params$1$value !== void 0 ? _params$1$value : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
50825
|
+
return {
|
|
50826
|
+
type: "isValidAccountNumber",
|
|
50827
|
+
bik: bik,
|
|
50828
|
+
account: account
|
|
50829
|
+
};
|
|
50873
50830
|
};
|
|
50874
50831
|
const countKCLangFunction = params => {
|
|
50875
50832
|
var _params$24;
|
|
@@ -61681,37 +61638,37 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
61681
61638
|
{
|
|
61682
61639
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61683
61640
|
const isSnilsFnName = gn(x => x.isSnils);
|
|
61684
|
-
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${expression.
|
|
61641
|
+
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61685
61642
|
}
|
|
61686
61643
|
case "isRegNumSfr":
|
|
61687
61644
|
{
|
|
61688
61645
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61689
61646
|
const isValidRegNumSfrFnName = gn(x => x.isRegNumSfr);
|
|
61690
|
-
return `${utilsName}.${isValidRegNumSfrFnName}(${pathFnName}, "${expression.
|
|
61647
|
+
return `${utilsName}.${isValidRegNumSfrFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61691
61648
|
}
|
|
61692
61649
|
case "isInn":
|
|
61693
61650
|
{
|
|
61694
61651
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61695
61652
|
const isInnFnName = gn(x => x.isInn);
|
|
61696
|
-
return `${utilsName}.${isInnFnName}(${pathFnName}, "${expression.
|
|
61653
|
+
return `${utilsName}.${isInnFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61697
61654
|
}
|
|
61698
61655
|
case "isOgrn":
|
|
61699
61656
|
{
|
|
61700
61657
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61701
61658
|
const isOgrnFnName = gn(x => x.isOgrn);
|
|
61702
|
-
return `${utilsName}.${isOgrnFnName}(${pathFnName}, "${expression.
|
|
61659
|
+
return `${utilsName}.${isOgrnFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61703
61660
|
}
|
|
61704
61661
|
case "isValidMirCardNumber":
|
|
61705
61662
|
{
|
|
61706
61663
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61707
61664
|
const isValidMirCardNumberFnName = gn(x => x.isValidMirCardNumber);
|
|
61708
|
-
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${expression.
|
|
61665
|
+
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61709
61666
|
}
|
|
61710
61667
|
case "isValidAccountNumber":
|
|
61711
61668
|
{
|
|
61712
61669
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61713
61670
|
const isValidAccountNumberFnName = gn(x => x.isValidAccountNumber);
|
|
61714
|
-
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${expression.bik}", "${expression.account}")`;
|
|
61671
|
+
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${generateJsExpression(expression.bik)}", "${generateJsExpression(expression.account)}")`;
|
|
61715
61672
|
}
|
|
61716
61673
|
case "const":
|
|
61717
61674
|
{
|
|
@@ -61892,16 +61849,17 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
61892
61849
|
case "hashSet":
|
|
61893
61850
|
case "length":
|
|
61894
61851
|
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":
|
|
61896
61852
|
case "isSnils":
|
|
61897
61853
|
case "isInn":
|
|
61898
61854
|
case "isOgrn":
|
|
61899
61855
|
case "isRegNumSfr":
|
|
61900
61856
|
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":
|
|
61901
61859
|
case "multySum":
|
|
61902
61860
|
return `<m:${expression.type} select="${expression.select}" />`;
|
|
61903
61861
|
case "isValidAccountNumber":
|
|
61904
|
-
return `<m:${expression.type}
|
|
61862
|
+
return [`<m:${expression.type}>`, `<m:isvalidaccountnumberbik>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.bik, prefixPath), 1), `</m:isvalidaccountnumberbik>`, `<m:isvalidaccountnumberaccount>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.account, prefixPath), 1), `</m:isvalidaccountnumberaccount>`, `</m:${expression.type}>`].join("\n");
|
|
61905
61863
|
case "makeDict":
|
|
61906
61864
|
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");
|
|
61907
61865
|
case "getSumByKeys":
|
|
@@ -62079,6 +62037,15 @@ function generateBlockKCXmlFormulas(block, parents) {
|
|
|
62079
62037
|
}
|
|
62080
62038
|
return result.join("\n");
|
|
62081
62039
|
}
|
|
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
|
+
}
|
|
62082
62049
|
function guessConditionTarget(condition) {
|
|
62083
62050
|
let result;
|
|
62084
62051
|
class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.DefaultKCLangExpressionVisitor {
|
|
@@ -62089,32 +62056,32 @@ function guessConditionTarget(condition) {
|
|
|
62089
62056
|
}
|
|
62090
62057
|
visitIsSnilsKCLangNode(node) {
|
|
62091
62058
|
if (result == undefined) {
|
|
62092
|
-
result = node.
|
|
62059
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62093
62060
|
}
|
|
62094
62061
|
}
|
|
62095
62062
|
visitIsRegNumSfrKCLangNode(node) {
|
|
62096
62063
|
if (result == undefined) {
|
|
62097
|
-
result = node.
|
|
62064
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62098
62065
|
}
|
|
62099
62066
|
}
|
|
62100
62067
|
visitIsInnKCLangNode(node) {
|
|
62101
62068
|
if (result == undefined) {
|
|
62102
|
-
result = node.
|
|
62069
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62103
62070
|
}
|
|
62104
62071
|
}
|
|
62105
62072
|
visitIsOgrnKCLangNode(node) {
|
|
62106
62073
|
if (result == undefined) {
|
|
62107
|
-
result = node.
|
|
62074
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62108
62075
|
}
|
|
62109
62076
|
}
|
|
62110
62077
|
visitIsValidMirCardNumberNode(node) {
|
|
62111
62078
|
if (result == undefined) {
|
|
62112
|
-
result = node.
|
|
62079
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62113
62080
|
}
|
|
62114
62081
|
}
|
|
62115
62082
|
visitIsValidAccountNumberNode(node) {
|
|
62116
62083
|
if (result == undefined) {
|
|
62117
|
-
result = node.account;
|
|
62084
|
+
result = extractSelectPathOrUndefined(node.account);
|
|
62118
62085
|
}
|
|
62119
62086
|
}
|
|
62120
62087
|
visitArgumentKCLangNode(node) {
|
|
@@ -62141,82 +62108,12 @@ function guessConditionTarget(condition) {
|
|
|
62141
62108
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
62142
62109
|
return result;
|
|
62143
62110
|
}
|
|
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
|
-
}
|
|
62214
62111
|
function generateKCXmlCondition(ast, parentContexts, describe) {
|
|
62215
|
-
var
|
|
62112
|
+
var _ast$target;
|
|
62216
62113
|
const matchPath = joinPaths([...parentContexts.filter(isPathPrefix).map(x => x.path)]);
|
|
62217
62114
|
const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
|
|
62218
62115
|
const descriptionAttr = describe != undefined ? ` description="${escapeHtmlCharacters(formatDescribeStatement(describe))}"` : "";
|
|
62219
|
-
const guessedTarget = (
|
|
62116
|
+
const guessedTarget = (_ast$target = ast.target) !== null && _ast$target !== void 0 ? _ast$target : guessConditionTarget(ast);
|
|
62220
62117
|
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
62221
62118
|
const conditions = [];
|
|
62222
62119
|
const pathPrefixContexts = [];
|
|
@@ -67846,7 +67743,8 @@ class FormulaProcessor {
|
|
|
67846
67743
|
if (this.isStringExpression(leftExpression) && this.isStringExpression(rightExpression)) {
|
|
67847
67744
|
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.binaryExpression("===", leftExpression, rightExpression));
|
|
67848
67745
|
} else {
|
|
67849
|
-
|
|
67746
|
+
const rightArgument = _babel_types__WEBPACK_IMPORTED_MODULE_0__.isStringLiteral(rightExpression) ? _babel_types__WEBPACK_IMPORTED_MODULE_0__.callExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier("wrapDecimalOperand"), [rightExpression]) : rightExpression;
|
|
67747
|
+
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.callExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.memberExpression(leftExpression, _babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier("eq")), [rightArgument]));
|
|
67850
67748
|
}
|
|
67851
67749
|
}
|
|
67852
67750
|
beforeChooseExpression() {
|
|
@@ -68234,6 +68132,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68234
68132
|
/* harmony export */ FormulaIsOgrnExpression: () => (/* binding */ FormulaIsOgrnExpression),
|
|
68235
68133
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
68236
68134
|
/* harmony export */ FormulaIsSnilsExpression: () => (/* binding */ FormulaIsSnilsExpression),
|
|
68135
|
+
/* harmony export */ FormulaIsValidAccountNumberAccountExpression: () => (/* binding */ FormulaIsValidAccountNumberAccountExpression),
|
|
68136
|
+
/* harmony export */ FormulaIsValidAccountNumberBikExpression: () => (/* binding */ FormulaIsValidAccountNumberBikExpression),
|
|
68237
68137
|
/* harmony export */ FormulaIsValidAccountNumberExpression: () => (/* binding */ FormulaIsValidAccountNumberExpression),
|
|
68238
68138
|
/* harmony export */ FormulaIsValidMirCardNumberExpression: () => (/* binding */ FormulaIsValidMirCardNumberExpression),
|
|
68239
68139
|
/* harmony export */ FormulaJoinExpression: () => (/* binding */ FormulaJoinExpression),
|
|
@@ -68274,7 +68174,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68274
68174
|
|
|
68275
68175
|
|
|
68276
68176
|
|
|
68277
|
-
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,
|
|
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, _dec112, _dec113, _class99, _class100, _descriptor62, _dec114, _dec115, _dec116, _class101, _class102, _descriptor63, _descriptor64, _dec117, _dec118, _dec119, _class103, _class104, _descriptor65, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _class107, _class108, _descriptor68, _dec124, _dec125, _class109, _class110, _descriptor69, _dec126, _dec127, _dec128, _dec129, _dec130, _class111, _class112, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _class117, _class118, _descriptor76, _dec137, _dec138, _class119, _class120, _descriptor77, _dec139, _dec140, _dec141, _class121, _class122, _descriptor78, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _dec145, _dec146, _class125, _class126, _descriptor81, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _dec150, _class129, _class130, _descriptor84, _dec151, _dec152, _class131, _class132, _descriptor85, _dec153, _class133, _dec154, _dec155, _dec156, _dec157, _class134, _class135, _descriptor86, _descriptor87, _descriptor88, _dec158, _dec159, _class136, _class137, _descriptor89, _dec160, _dec161, _class138, _class139, _descriptor90, _dec162, _dec163, _dec164, _dec165, _dec166, _dec167, _class140, _class141, _descriptor91, _descriptor92, _descriptor93, _descriptor94, _descriptor95, _dec168, _dec169, _class142, _class143, _descriptor96, _dec170, _dec171, _dec172, _class144, _class145, _descriptor97, _descriptor98, _dec173, _dec174, _dec175, _class146, _class147, _descriptor99, _descriptor100, _dec176, _dec177, _dec178, _class148, _class149, _descriptor101, _descriptor102, _dec179, _dec180, _dec181, _dec182, _class150, _class151, _descriptor103, _descriptor104, _descriptor105, _dec183, _dec184, _dec185, _class152, _class153, _descriptor106, _descriptor107;
|
|
68278
68178
|
|
|
68279
68179
|
|
|
68280
68180
|
|
|
@@ -68895,488 +68795,516 @@ let FormulaSumOfDayWeightsExpression = (_dec98 = (0,_markupGenerator_Serializer_
|
|
|
68895
68795
|
writable: true,
|
|
68896
68796
|
initializer: null
|
|
68897
68797
|
}), _class86)) || _class85);
|
|
68898
|
-
let FormulaIsSnilsExpression = (_dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68798
|
+
let FormulaIsSnilsExpression = (_dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec100(_class87 = (_class88 = class FormulaIsSnilsExpression extends FormulaExpression {
|
|
68899
68799
|
constructor(...args) {
|
|
68900
68800
|
super(...args);
|
|
68901
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68801
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor56, this);
|
|
68902
68802
|
}
|
|
68903
68803
|
getLegacyExpressionTypeForFunctionName() {
|
|
68904
68804
|
return "isSnils";
|
|
68905
68805
|
}
|
|
68906
|
-
}, _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "
|
|
68806
|
+
}, _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "expression", [_dec101], {
|
|
68907
68807
|
configurable: true,
|
|
68908
68808
|
enumerable: true,
|
|
68909
68809
|
writable: true,
|
|
68910
68810
|
initializer: null
|
|
68911
68811
|
}), _class88)) || _class87);
|
|
68912
|
-
let FormulaIsRegNumSfrExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68812
|
+
let FormulaIsRegNumSfrExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec102(_class89 = (_class90 = class FormulaIsRegNumSfrExpression extends FormulaExpression {
|
|
68913
68813
|
constructor(...args) {
|
|
68914
68814
|
super(...args);
|
|
68915
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68815
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor57, this);
|
|
68916
68816
|
}
|
|
68917
68817
|
getLegacyExpressionTypeForFunctionName() {
|
|
68918
68818
|
return "isRegNumSfr";
|
|
68919
68819
|
}
|
|
68920
|
-
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "
|
|
68820
|
+
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "expression", [_dec103], {
|
|
68921
68821
|
configurable: true,
|
|
68922
68822
|
enumerable: true,
|
|
68923
68823
|
writable: true,
|
|
68924
68824
|
initializer: null
|
|
68925
68825
|
}), _class90)) || _class89);
|
|
68926
|
-
let FormulaIsInnExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68826
|
+
let FormulaIsInnExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec104(_class91 = (_class92 = class FormulaIsInnExpression extends FormulaExpression {
|
|
68927
68827
|
constructor(...args) {
|
|
68928
68828
|
super(...args);
|
|
68929
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68829
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor58, this);
|
|
68930
68830
|
}
|
|
68931
68831
|
getLegacyExpressionTypeForFunctionName() {
|
|
68932
68832
|
return "isInn";
|
|
68933
68833
|
}
|
|
68934
|
-
}, _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "
|
|
68834
|
+
}, _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "expression", [_dec105], {
|
|
68935
68835
|
configurable: true,
|
|
68936
68836
|
enumerable: true,
|
|
68937
68837
|
writable: true,
|
|
68938
68838
|
initializer: null
|
|
68939
68839
|
}), _class92)) || _class91);
|
|
68940
|
-
let FormulaIsOgrnExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isogrn", `Проверка на валидность ОГРН`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68840
|
+
let FormulaIsOgrnExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isogrn", `Проверка на валидность ОГРН`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec106(_class93 = (_class94 = class FormulaIsOgrnExpression extends FormulaExpression {
|
|
68941
68841
|
constructor(...args) {
|
|
68942
68842
|
super(...args);
|
|
68943
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68843
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor59, this);
|
|
68944
68844
|
}
|
|
68945
68845
|
getLegacyExpressionTypeForFunctionName() {
|
|
68946
68846
|
return "isOgrn";
|
|
68947
68847
|
}
|
|
68948
|
-
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "
|
|
68848
|
+
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "expression", [_dec107], {
|
|
68949
68849
|
configurable: true,
|
|
68950
68850
|
enumerable: true,
|
|
68951
68851
|
writable: true,
|
|
68952
68852
|
initializer: null
|
|
68953
68853
|
}), _class94)) || _class93);
|
|
68954
|
-
let FormulaIsValidMirCardNumberExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68854
|
+
let FormulaIsValidMirCardNumberExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec108(_class95 = (_class96 = class FormulaIsValidMirCardNumberExpression extends FormulaExpression {
|
|
68955
68855
|
constructor(...args) {
|
|
68956
68856
|
super(...args);
|
|
68957
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68857
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor60, this);
|
|
68958
68858
|
}
|
|
68959
68859
|
getLegacyExpressionTypeForFunctionName() {
|
|
68960
68860
|
return "isValidMirCardNumber";
|
|
68961
68861
|
}
|
|
68962
|
-
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "
|
|
68862
|
+
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "expression", [_dec109], {
|
|
68963
68863
|
configurable: true,
|
|
68964
68864
|
enumerable: true,
|
|
68965
68865
|
writable: true,
|
|
68966
68866
|
initializer: null
|
|
68967
68867
|
}), _class96)) || _class95);
|
|
68968
|
-
let
|
|
68868
|
+
let FormulaIsValidAccountNumberBikExpression = (_dec110 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumberbik", `Проверка на валидность карты МИР`), _dec111 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec110(_class97 = (_class98 = class FormulaIsValidAccountNumberBikExpression extends FormulaExpression {
|
|
68969
68869
|
constructor(...args) {
|
|
68970
68870
|
super(...args);
|
|
68971
68871
|
_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);
|
|
68972
68885
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor62, this);
|
|
68973
68886
|
}
|
|
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
|
+
}
|
|
68974
68902
|
getLegacyExpressionTypeForFunctionName() {
|
|
68975
68903
|
return "isValidAccountNumber";
|
|
68976
68904
|
}
|
|
68977
|
-
},
|
|
68905
|
+
}, _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "bik", [_dec115], {
|
|
68978
68906
|
configurable: true,
|
|
68979
68907
|
enumerable: true,
|
|
68980
68908
|
writable: true,
|
|
68981
68909
|
initializer: null
|
|
68982
|
-
}),
|
|
68910
|
+
}), _descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "account", [_dec116], {
|
|
68983
68911
|
configurable: true,
|
|
68984
68912
|
enumerable: true,
|
|
68985
68913
|
writable: true,
|
|
68986
68914
|
initializer: null
|
|
68987
|
-
}),
|
|
68988
|
-
let FormulaArgumentExpression = (
|
|
68915
|
+
}), _class102)) || _class101);
|
|
68916
|
+
let FormulaArgumentExpression = (_dec117 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("argument", `TODO`), _dec118 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec119 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип атрибута: string или decimal (по умолчанию)`), _dec117(_class103 = (_class104 = class FormulaArgumentExpression extends FormulaExpression {
|
|
68989
68917
|
constructor(...args) {
|
|
68990
68918
|
super(...args);
|
|
68991
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
68992
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
68919
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor65, this);
|
|
68920
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor66, this);
|
|
68993
68921
|
}
|
|
68994
|
-
},
|
|
68922
|
+
}, _descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "select", [_dec118], {
|
|
68995
68923
|
configurable: true,
|
|
68996
68924
|
enumerable: true,
|
|
68997
68925
|
writable: true,
|
|
68998
68926
|
initializer: null
|
|
68999
|
-
}),
|
|
68927
|
+
}), _descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "type", [_dec119], {
|
|
69000
68928
|
configurable: true,
|
|
69001
68929
|
enumerable: true,
|
|
69002
68930
|
writable: true,
|
|
69003
68931
|
initializer: function () {
|
|
69004
68932
|
return "decimal";
|
|
69005
68933
|
}
|
|
69006
|
-
}),
|
|
69007
|
-
let FormulaArrayExpression = (
|
|
68934
|
+
}), _class104)) || _class103);
|
|
68935
|
+
let FormulaArrayExpression = (_dec120 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("array", `TODO`), _dec121 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec120(_class105 = (_class106 = class FormulaArrayExpression extends FormulaExpression {
|
|
69008
68936
|
constructor(...args) {
|
|
69009
68937
|
super(...args);
|
|
69010
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
68938
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor67, this);
|
|
69011
68939
|
}
|
|
69012
|
-
},
|
|
68940
|
+
}, _descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "items", [_dec121], {
|
|
69013
68941
|
configurable: true,
|
|
69014
68942
|
enumerable: true,
|
|
69015
68943
|
writable: true,
|
|
69016
68944
|
initializer: null
|
|
69017
|
-
}),
|
|
69018
|
-
let FormulaFilterColumnExpression = (
|
|
68945
|
+
}), _class106)) || _class105);
|
|
68946
|
+
let FormulaFilterColumnExpression = (_dec122 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filtercolumn", `Получить значения пиклиста по фильру`), _dec123 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec122(_class107 = (_class108 = class FormulaFilterColumnExpression extends FormulaExpression {
|
|
69019
68947
|
constructor(...args) {
|
|
69020
68948
|
super(...args);
|
|
69021
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
68949
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor68, this);
|
|
69022
68950
|
}
|
|
69023
|
-
},
|
|
68951
|
+
}, _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "filterColumn", [_dec123], {
|
|
69024
68952
|
configurable: true,
|
|
69025
68953
|
enumerable: true,
|
|
69026
68954
|
writable: true,
|
|
69027
68955
|
initializer: null
|
|
69028
|
-
}),
|
|
69029
|
-
let FormulaFilterKeyExpression = (
|
|
68956
|
+
}), _class108)) || _class107);
|
|
68957
|
+
let FormulaFilterKeyExpression = (_dec124 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filterkey", `Получить значения пиклиста по фильру`), _dec125 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec124(_class109 = (_class110 = class FormulaFilterKeyExpression extends FormulaExpression {
|
|
69030
68958
|
constructor(...args) {
|
|
69031
68959
|
super(...args);
|
|
69032
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
68960
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor69, this);
|
|
69033
68961
|
}
|
|
69034
|
-
},
|
|
68962
|
+
}, _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "filterKey", [_dec125], {
|
|
69035
68963
|
configurable: true,
|
|
69036
68964
|
enumerable: true,
|
|
69037
68965
|
writable: true,
|
|
69038
68966
|
initializer: null
|
|
69039
|
-
}),
|
|
69040
|
-
let FormulaGetPicklistValuesExpression = (
|
|
68967
|
+
}), _class110)) || _class109);
|
|
68968
|
+
let FormulaGetPicklistValuesExpression = (_dec126 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getpicklistvalues", `Получить значения пиклиста по фильру. Используется только для генерации FLANG. В калькуляторе не работает`), _dec127 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec128 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filtercolumn", [FormulaFilterColumnExpression]), _dec129 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filterkey", [FormulaFilterKeyExpression]), _dec130 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("resultColumn", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec126(_class111 = (_class112 = class FormulaGetPicklistValuesExpression extends FormulaExpression {
|
|
69041
68969
|
constructor(...args) {
|
|
69042
68970
|
super(...args);
|
|
69043
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
69044
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
69045
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
69046
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn",
|
|
68971
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor70, this);
|
|
68972
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor71, this);
|
|
68973
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor72, this);
|
|
68974
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn", _descriptor73, this);
|
|
69047
68975
|
}
|
|
69048
68976
|
getLegacyExpressionTypeForFunctionName() {
|
|
69049
68977
|
return "getPicklistValues";
|
|
69050
68978
|
}
|
|
69051
|
-
},
|
|
68979
|
+
}, _descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "gId", [_dec127], {
|
|
69052
68980
|
configurable: true,
|
|
69053
68981
|
enumerable: true,
|
|
69054
68982
|
writable: true,
|
|
69055
68983
|
initializer: null
|
|
69056
|
-
}),
|
|
68984
|
+
}), _descriptor71 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "filterColumn", [_dec128], {
|
|
69057
68985
|
configurable: true,
|
|
69058
68986
|
enumerable: true,
|
|
69059
68987
|
writable: true,
|
|
69060
68988
|
initializer: null
|
|
69061
|
-
}),
|
|
68989
|
+
}), _descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "filterKey", [_dec129], {
|
|
69062
68990
|
configurable: true,
|
|
69063
68991
|
enumerable: true,
|
|
69064
68992
|
writable: true,
|
|
69065
68993
|
initializer: null
|
|
69066
|
-
}),
|
|
68994
|
+
}), _descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "resultColumn", [_dec130], {
|
|
69067
68995
|
configurable: true,
|
|
69068
68996
|
enumerable: true,
|
|
69069
68997
|
writable: true,
|
|
69070
68998
|
initializer: null
|
|
69071
|
-
}),
|
|
69072
|
-
let FormulaFirstOrDefaultExpression = (
|
|
68999
|
+
}), _class112)) || _class111);
|
|
69000
|
+
let FormulaFirstOrDefaultExpression = (_dec131 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("firstordefault", `Взять первый элемент массива. Используется только для генерации FLANG. В калькуляторе не работает`), _dec132 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec131(_class113 = (_class114 = class FormulaFirstOrDefaultExpression extends FormulaExpression {
|
|
69073
69001
|
constructor(...args) {
|
|
69074
69002
|
super(...args);
|
|
69075
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69003
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor74, this);
|
|
69076
69004
|
}
|
|
69077
|
-
},
|
|
69005
|
+
}, _descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "expression", [_dec132], {
|
|
69078
69006
|
configurable: true,
|
|
69079
69007
|
enumerable: true,
|
|
69080
69008
|
writable: true,
|
|
69081
69009
|
initializer: null
|
|
69082
|
-
}),
|
|
69083
|
-
let FormulaHashSetExpression = (
|
|
69010
|
+
}), _class114)) || _class113);
|
|
69011
|
+
let FormulaHashSetExpression = (_dec133 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("hashset", `Оставить только уникальные значения в массиве. Используется только для генерации FLANG. В калькуляторе не работает`), _dec134 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec133(_class115 = (_class116 = class FormulaHashSetExpression extends FormulaExpression {
|
|
69084
69012
|
constructor(...args) {
|
|
69085
69013
|
super(...args);
|
|
69086
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69014
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor75, this);
|
|
69087
69015
|
}
|
|
69088
|
-
},
|
|
69016
|
+
}, _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class116.prototype, "expression", [_dec134], {
|
|
69089
69017
|
configurable: true,
|
|
69090
69018
|
enumerable: true,
|
|
69091
69019
|
writable: true,
|
|
69092
69020
|
initializer: null
|
|
69093
|
-
}),
|
|
69094
|
-
let FormulaExistsExpression = (
|
|
69021
|
+
}), _class116)) || _class115);
|
|
69022
|
+
let FormulaExistsExpression = (_dec135 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("exists", `TODO`), _dec136 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec135(_class117 = (_class118 = class FormulaExistsExpression extends FormulaExpression {
|
|
69095
69023
|
constructor(...args) {
|
|
69096
69024
|
super(...args);
|
|
69097
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69025
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor76, this);
|
|
69098
69026
|
}
|
|
69099
69027
|
getLegacyExpressionTypeForFunctionName() {
|
|
69100
69028
|
return "exists";
|
|
69101
69029
|
}
|
|
69102
|
-
},
|
|
69030
|
+
}, _descriptor76 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "select", [_dec136], {
|
|
69103
69031
|
configurable: true,
|
|
69104
69032
|
enumerable: true,
|
|
69105
69033
|
writable: true,
|
|
69106
69034
|
initializer: null
|
|
69107
|
-
}),
|
|
69108
|
-
let FormulaMultySumExpression = (
|
|
69035
|
+
}), _class118)) || _class117);
|
|
69036
|
+
let FormulaMultySumExpression = (_dec137 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multysum", `TODO`), _dec138 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec137(_class119 = (_class120 = class FormulaMultySumExpression extends FormulaExpression {
|
|
69109
69037
|
constructor(...args) {
|
|
69110
69038
|
super(...args);
|
|
69111
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69039
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor77, this);
|
|
69112
69040
|
}
|
|
69113
|
-
},
|
|
69041
|
+
}, _descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class120.prototype, "select", [_dec138], {
|
|
69114
69042
|
configurable: true,
|
|
69115
69043
|
enumerable: true,
|
|
69116
69044
|
writable: true,
|
|
69117
69045
|
initializer: null
|
|
69118
|
-
}),
|
|
69119
|
-
let FormulaCountExpression = (
|
|
69046
|
+
}), _class120)) || _class119);
|
|
69047
|
+
let FormulaCountExpression = (_dec139 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("count", `TODO`), _dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("withNullOrEmptyValues", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `брать в расчет незаполненные экземпляры`), _dec139(_class121 = (_class122 = class FormulaCountExpression extends FormulaExpression {
|
|
69120
69048
|
constructor(...args) {
|
|
69121
69049
|
super(...args);
|
|
69122
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69123
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
69050
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor78, this);
|
|
69051
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor79, this);
|
|
69124
69052
|
}
|
|
69125
|
-
},
|
|
69053
|
+
}, _descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "select", [_dec140], {
|
|
69126
69054
|
configurable: true,
|
|
69127
69055
|
enumerable: true,
|
|
69128
69056
|
writable: true,
|
|
69129
69057
|
initializer: null
|
|
69130
|
-
}),
|
|
69058
|
+
}), _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "withNullOrEmptyValues", [_dec141], {
|
|
69131
69059
|
configurable: true,
|
|
69132
69060
|
enumerable: true,
|
|
69133
69061
|
writable: true,
|
|
69134
69062
|
initializer: null
|
|
69135
|
-
}),
|
|
69136
|
-
let FormulaInstanceCountExpression = (
|
|
69063
|
+
}), _class122)) || _class121);
|
|
69064
|
+
let FormulaInstanceCountExpression = (_dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("instancecount", `TODO`), _dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec142(_class123 = (_class124 = class FormulaInstanceCountExpression extends FormulaExpression {
|
|
69137
69065
|
constructor(...args) {
|
|
69138
69066
|
super(...args);
|
|
69139
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69067
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor80, this);
|
|
69140
69068
|
}
|
|
69141
|
-
},
|
|
69069
|
+
}, _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "select", [_dec143], {
|
|
69142
69070
|
configurable: true,
|
|
69143
69071
|
enumerable: true,
|
|
69144
69072
|
writable: true,
|
|
69145
69073
|
initializer: null
|
|
69146
|
-
}),
|
|
69147
|
-
let FormulaIsEqualToAutoCalculatedExpression = (
|
|
69074
|
+
}), _class124)) || _class123);
|
|
69075
|
+
let FormulaIsEqualToAutoCalculatedExpression = (_dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isequaltoautocalculated", `TODO`), _dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("decimal", "string"), ``), _dec144(_class125 = (_class126 = class FormulaIsEqualToAutoCalculatedExpression extends FormulaExpression {
|
|
69148
69076
|
constructor(...args) {
|
|
69149
69077
|
super(...args);
|
|
69150
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69151
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
69078
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor81, this);
|
|
69079
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor82, this);
|
|
69152
69080
|
}
|
|
69153
|
-
},
|
|
69081
|
+
}, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "select", [_dec145], {
|
|
69154
69082
|
configurable: true,
|
|
69155
69083
|
enumerable: true,
|
|
69156
69084
|
writable: true,
|
|
69157
69085
|
initializer: null
|
|
69158
|
-
}),
|
|
69086
|
+
}), _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "type", [_dec146], {
|
|
69159
69087
|
configurable: true,
|
|
69160
69088
|
enumerable: true,
|
|
69161
69089
|
writable: true,
|
|
69162
69090
|
initializer: null
|
|
69163
|
-
}),
|
|
69164
|
-
let FormulaJoinExpression = (
|
|
69091
|
+
}), _class126)) || _class125);
|
|
69092
|
+
let FormulaJoinExpression = (_dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("join", `TODO`), _dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec147(_class127 = (_class128 = class FormulaJoinExpression extends FormulaExpression {
|
|
69165
69093
|
constructor(...args) {
|
|
69166
69094
|
super(...args);
|
|
69167
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array",
|
|
69095
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor83, this);
|
|
69168
69096
|
}
|
|
69169
|
-
},
|
|
69097
|
+
}, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "array", [_dec148], {
|
|
69170
69098
|
configurable: true,
|
|
69171
69099
|
enumerable: true,
|
|
69172
69100
|
writable: true,
|
|
69173
69101
|
initializer: null
|
|
69174
|
-
}),
|
|
69175
|
-
let FormulaPropertyByNameExpression = (
|
|
69102
|
+
}), _class128)) || _class127);
|
|
69103
|
+
let FormulaPropertyByNameExpression = (_dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("property", `TODO`), _dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec149(_class129 = (_class130 = class FormulaPropertyByNameExpression extends FormulaExpression {
|
|
69176
69104
|
constructor(...args) {
|
|
69177
69105
|
super(...args);
|
|
69178
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
69106
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor84, this);
|
|
69179
69107
|
}
|
|
69180
|
-
},
|
|
69108
|
+
}, _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class130.prototype, "name", [_dec150], {
|
|
69181
69109
|
configurable: true,
|
|
69182
69110
|
enumerable: true,
|
|
69183
69111
|
writable: true,
|
|
69184
69112
|
initializer: null
|
|
69185
|
-
}),
|
|
69186
|
-
let FormulaConcatExpression = (
|
|
69113
|
+
}), _class130)) || _class129);
|
|
69114
|
+
let FormulaConcatExpression = (_dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec151(_class131 = (_class132 = class FormulaConcatExpression extends FormulaExpression {
|
|
69187
69115
|
constructor(...args) {
|
|
69188
69116
|
super(...args);
|
|
69189
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
69117
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor85, this);
|
|
69190
69118
|
}
|
|
69191
|
-
},
|
|
69119
|
+
}, _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class132.prototype, "arguments", [_dec152], {
|
|
69192
69120
|
configurable: true,
|
|
69193
69121
|
enumerable: true,
|
|
69194
69122
|
writable: true,
|
|
69195
69123
|
initializer: null
|
|
69196
|
-
}),
|
|
69197
|
-
let FormulaNewLineExpression = (
|
|
69198
|
-
let Formula = (
|
|
69124
|
+
}), _class132)) || _class131);
|
|
69125
|
+
let FormulaNewLineExpression = (_dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec153(_class133 = class FormulaNewLineExpression extends FormulaExpression {}) || _class133);
|
|
69126
|
+
let Formula = (_dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec157 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec154(_class134 = (_class135 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69199
69127
|
constructor(...args) {
|
|
69200
69128
|
super(...args);
|
|
69201
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
69202
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
69203
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69129
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor86, this);
|
|
69130
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor87, this);
|
|
69131
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor88, this);
|
|
69204
69132
|
}
|
|
69205
|
-
},
|
|
69133
|
+
}, _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "match", [_dec155], {
|
|
69206
69134
|
configurable: true,
|
|
69207
69135
|
enumerable: true,
|
|
69208
69136
|
writable: true,
|
|
69209
69137
|
initializer: null
|
|
69210
|
-
}),
|
|
69138
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "target", [_dec156], {
|
|
69211
69139
|
configurable: true,
|
|
69212
69140
|
enumerable: true,
|
|
69213
69141
|
writable: true,
|
|
69214
69142
|
initializer: null
|
|
69215
|
-
}),
|
|
69143
|
+
}), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "expression", [_dec157], {
|
|
69216
69144
|
configurable: true,
|
|
69217
69145
|
enumerable: true,
|
|
69218
69146
|
writable: true,
|
|
69219
69147
|
initializer: null
|
|
69220
|
-
}),
|
|
69221
|
-
let FormulaNoDepsNode = (
|
|
69148
|
+
}), _class135)) || _class134);
|
|
69149
|
+
let FormulaNoDepsNode = (_dec158 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec158(_class136 = (_class137 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69222
69150
|
constructor(...args) {
|
|
69223
69151
|
super(...args);
|
|
69224
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69152
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor89, this);
|
|
69225
69153
|
}
|
|
69226
|
-
},
|
|
69154
|
+
}, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "expression", [_dec159], {
|
|
69227
69155
|
configurable: true,
|
|
69228
69156
|
enumerable: true,
|
|
69229
69157
|
writable: true,
|
|
69230
69158
|
initializer: null
|
|
69231
|
-
}),
|
|
69232
|
-
let Formulas = (
|
|
69159
|
+
}), _class137)) || _class136);
|
|
69160
|
+
let Formulas = (_dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec160(_class138 = (_class139 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69233
69161
|
constructor(...args) {
|
|
69234
69162
|
super(...args);
|
|
69235
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69163
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor90, this);
|
|
69236
69164
|
}
|
|
69237
|
-
},
|
|
69165
|
+
}, _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "items", [_dec161], {
|
|
69238
69166
|
configurable: true,
|
|
69239
69167
|
enumerable: true,
|
|
69240
69168
|
writable: true,
|
|
69241
69169
|
initializer: null
|
|
69242
|
-
}),
|
|
69243
|
-
let ConditionNode = (
|
|
69170
|
+
}), _class139)) || _class138);
|
|
69171
|
+
let ConditionNode = (_dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec163 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec164 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec165 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec166 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec167 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec162(_class140 = (_class141 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69244
69172
|
constructor(...args) {
|
|
69245
69173
|
super(...args);
|
|
69246
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
69247
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
69248
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
69249
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
69250
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69174
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor91, this);
|
|
69175
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor92, this);
|
|
69176
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor93, this);
|
|
69177
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor94, this);
|
|
69178
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor95, this);
|
|
69251
69179
|
}
|
|
69252
|
-
},
|
|
69180
|
+
}, _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "match", [_dec163], {
|
|
69253
69181
|
configurable: true,
|
|
69254
69182
|
enumerable: true,
|
|
69255
69183
|
writable: true,
|
|
69256
69184
|
initializer: null
|
|
69257
|
-
}),
|
|
69185
|
+
}), _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "target", [_dec164], {
|
|
69258
69186
|
configurable: true,
|
|
69259
69187
|
enumerable: true,
|
|
69260
69188
|
writable: true,
|
|
69261
69189
|
initializer: null
|
|
69262
|
-
}),
|
|
69190
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "description", [_dec165], {
|
|
69263
69191
|
configurable: true,
|
|
69264
69192
|
enumerable: true,
|
|
69265
69193
|
writable: true,
|
|
69266
69194
|
initializer: null
|
|
69267
|
-
}),
|
|
69195
|
+
}), _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "errorLevel", [_dec166], {
|
|
69268
69196
|
configurable: true,
|
|
69269
69197
|
enumerable: true,
|
|
69270
69198
|
writable: true,
|
|
69271
69199
|
initializer: null
|
|
69272
|
-
}),
|
|
69200
|
+
}), _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "expression", [_dec167], {
|
|
69273
69201
|
configurable: true,
|
|
69274
69202
|
enumerable: true,
|
|
69275
69203
|
writable: true,
|
|
69276
69204
|
initializer: null
|
|
69277
|
-
}),
|
|
69278
|
-
let ConditionsNode = (
|
|
69205
|
+
}), _class141)) || _class140);
|
|
69206
|
+
let ConditionsNode = (_dec168 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec169 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec168(_class142 = (_class143 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69279
69207
|
constructor(...args) {
|
|
69280
69208
|
super(...args);
|
|
69281
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69209
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor96, this);
|
|
69282
69210
|
}
|
|
69283
|
-
},
|
|
69211
|
+
}, _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "items", [_dec169], {
|
|
69284
69212
|
configurable: true,
|
|
69285
69213
|
enumerable: true,
|
|
69286
69214
|
writable: true,
|
|
69287
69215
|
initializer: null
|
|
69288
|
-
}),
|
|
69289
|
-
let MathContainer = (
|
|
69216
|
+
}), _class143)) || _class142);
|
|
69217
|
+
let MathContainer = (_dec170 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec171 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec172 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec170(_class144 = (_class145 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
69290
69218
|
constructor(...args) {
|
|
69291
69219
|
super(...args);
|
|
69292
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
69293
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
69220
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor97, this);
|
|
69221
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor98, this);
|
|
69294
69222
|
}
|
|
69295
|
-
},
|
|
69223
|
+
}, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "formulas", [_dec171], {
|
|
69296
69224
|
configurable: true,
|
|
69297
69225
|
enumerable: true,
|
|
69298
69226
|
writable: true,
|
|
69299
69227
|
initializer: null
|
|
69300
|
-
}),
|
|
69228
|
+
}), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "conditions", [_dec172], {
|
|
69301
69229
|
configurable: true,
|
|
69302
69230
|
enumerable: true,
|
|
69303
69231
|
writable: true,
|
|
69304
69232
|
initializer: null
|
|
69305
|
-
}),
|
|
69306
|
-
let FormulaMakeDictExpression = (
|
|
69233
|
+
}), _class145)) || _class144);
|
|
69234
|
+
let FormulaMakeDictExpression = (_dec173 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("makedict", `Получение словаря по ключу-значению из иннера`), _dec174 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ`), _dec175 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(undefined, [FormulaArgumentExpression, FormulaConstExpression, FormulaCastExpression], `Путь откуда брать значение или константа`), _dec173(_class146 = (_class147 = class FormulaMakeDictExpression extends FormulaExpression {
|
|
69307
69235
|
constructor(...args) {
|
|
69308
69236
|
super(...args);
|
|
69309
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69310
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression",
|
|
69237
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor99, this);
|
|
69238
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor100, this);
|
|
69311
69239
|
}
|
|
69312
|
-
},
|
|
69240
|
+
}, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec174], {
|
|
69313
69241
|
configurable: true,
|
|
69314
69242
|
enumerable: true,
|
|
69315
69243
|
writable: true,
|
|
69316
69244
|
initializer: null
|
|
69317
|
-
}),
|
|
69245
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceValueExpression", [_dec175], {
|
|
69318
69246
|
configurable: true,
|
|
69319
69247
|
enumerable: true,
|
|
69320
69248
|
writable: true,
|
|
69321
69249
|
initializer: null
|
|
69322
|
-
}),
|
|
69323
|
-
let FormulaGetSumByKeysExpression = (
|
|
69250
|
+
}), _class147)) || _class146);
|
|
69251
|
+
let FormulaGetSumByKeysExpression = (_dec176 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getsumbykeys", `Вычисление суммы с группировкой в разных множественностях`), _dec177 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dictPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь к словарю`), _dec178 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec176(_class148 = (_class149 = class FormulaGetSumByKeysExpression extends FormulaExpression {
|
|
69324
69252
|
constructor(...args) {
|
|
69325
69253
|
super(...args);
|
|
69326
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
69327
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69254
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor101, this);
|
|
69255
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor102, this);
|
|
69328
69256
|
}
|
|
69329
|
-
},
|
|
69257
|
+
}, _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "dictPath", [_dec177], {
|
|
69330
69258
|
configurable: true,
|
|
69331
69259
|
enumerable: true,
|
|
69332
69260
|
writable: true,
|
|
69333
69261
|
initializer: null
|
|
69334
|
-
}),
|
|
69262
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "targetKeys", [_dec178], {
|
|
69335
69263
|
configurable: true,
|
|
69336
69264
|
enumerable: true,
|
|
69337
69265
|
writable: true,
|
|
69338
69266
|
initializer: null
|
|
69339
|
-
}),
|
|
69340
|
-
let FormulaGroupSumExpression = (
|
|
69267
|
+
}), _class149)) || _class148);
|
|
69268
|
+
let FormulaGroupSumExpression = (_dec179 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _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, `Путь откуда брать ключ группы в суммируемой множественности`), _dec182 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec179(_class150 = (_class151 = class FormulaGroupSumExpression extends FormulaExpression {
|
|
69341
69269
|
constructor(...args) {
|
|
69342
69270
|
super(...args);
|
|
69343
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69344
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69345
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath",
|
|
69271
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor103, this);
|
|
69272
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor104, this);
|
|
69273
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor105, this);
|
|
69346
69274
|
}
|
|
69347
|
-
},
|
|
69275
|
+
}, _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "targetKeys", [_dec180], {
|
|
69348
69276
|
configurable: true,
|
|
69349
69277
|
enumerable: true,
|
|
69350
69278
|
writable: true,
|
|
69351
69279
|
initializer: null
|
|
69352
|
-
}),
|
|
69280
|
+
}), _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "sourceKeyPath", [_dec181], {
|
|
69353
69281
|
configurable: true,
|
|
69354
69282
|
enumerable: true,
|
|
69355
69283
|
writable: true,
|
|
69356
69284
|
initializer: null
|
|
69357
|
-
}),
|
|
69285
|
+
}), _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "sourceValuePath", [_dec182], {
|
|
69358
69286
|
configurable: true,
|
|
69359
69287
|
enumerable: true,
|
|
69360
69288
|
writable: true,
|
|
69361
69289
|
initializer: null
|
|
69362
|
-
}),
|
|
69363
|
-
let FormulaGroupCountExpression = (
|
|
69290
|
+
}), _class151)) || _class150);
|
|
69291
|
+
let FormulaGroupCountExpression = (_dec183 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec184 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec185 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec183(_class152 = (_class153 = class FormulaGroupCountExpression extends FormulaExpression {
|
|
69364
69292
|
constructor(...args) {
|
|
69365
69293
|
super(...args);
|
|
69366
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69367
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69294
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor106, this);
|
|
69295
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor107, this);
|
|
69368
69296
|
}
|
|
69369
|
-
},
|
|
69297
|
+
}, _descriptor106 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class153.prototype, "targetKeys", [_dec184], {
|
|
69370
69298
|
configurable: true,
|
|
69371
69299
|
enumerable: true,
|
|
69372
69300
|
writable: true,
|
|
69373
69301
|
initializer: null
|
|
69374
|
-
}),
|
|
69302
|
+
}), _descriptor107 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class153.prototype, "sourceKeyPath", [_dec185], {
|
|
69375
69303
|
configurable: true,
|
|
69376
69304
|
enumerable: true,
|
|
69377
69305
|
writable: true,
|
|
69378
69306
|
initializer: null
|
|
69379
|
-
}),
|
|
69307
|
+
}), _class153)) || _class152);
|
|
69380
69308
|
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];
|
|
69381
69309
|
|
|
69382
69310
|
/***/ }),
|
|
@@ -71797,36 +71725,29 @@ class KCXmlGeneratorBase {
|
|
|
71797
71725
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
71798
71726
|
}
|
|
71799
71727
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
71800
|
-
const
|
|
71801
|
-
|
|
71802
|
-
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
71728
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71729
|
+
return gcf(x => x.isSnils, value);
|
|
71803
71730
|
}
|
|
71804
71731
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsRegNumSfrExpression) {
|
|
71805
|
-
const
|
|
71806
|
-
|
|
71807
|
-
return gcf(x => x.isRegNumSfr, `"${modelPath.toLegacyPath()}"`);
|
|
71732
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71733
|
+
return gcf(x => x.isRegNumSfr, value);
|
|
71808
71734
|
}
|
|
71809
71735
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
71810
|
-
const
|
|
71811
|
-
|
|
71812
|
-
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
71736
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71737
|
+
return gcf(x => x.isInn, value);
|
|
71813
71738
|
}
|
|
71814
71739
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsOgrnExpression) {
|
|
71815
|
-
const
|
|
71816
|
-
|
|
71817
|
-
return gcf(x => x.isOgrn, `"${modelPath.toLegacyPath()}"`);
|
|
71740
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71741
|
+
return gcf(x => x.isOgrn, value);
|
|
71818
71742
|
}
|
|
71819
71743
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
71820
|
-
const
|
|
71821
|
-
|
|
71822
|
-
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
71744
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71745
|
+
return gcf(x => x.isValidMirCardNumber, value);
|
|
71823
71746
|
}
|
|
71824
71747
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
71825
|
-
const
|
|
71826
|
-
const
|
|
71827
|
-
|
|
71828
|
-
deps.push(new RegularDependency(accountPath));
|
|
71829
|
-
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
71748
|
+
const bikValue = this.compileExpression(prefix, targetFullPath, expression.bik.bik, deps);
|
|
71749
|
+
const accountValue = this.compileExpression(prefix, targetFullPath, expression.account.account, deps);
|
|
71750
|
+
return gcf(x => x.isValidAccountNumber, bikValue, accountValue);
|
|
71830
71751
|
}
|
|
71831
71752
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
71832
71753
|
var _expression$withNullO;
|
|
@@ -72065,6 +71986,10 @@ class KCXmlGeneratorBase {
|
|
|
72065
71986
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaPropertyByNameExpression) {
|
|
72066
71987
|
return gcf(x => x.getProperty, JSON.stringify(expression.name));
|
|
72067
71988
|
}
|
|
71989
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCastExpression) {
|
|
71990
|
+
const compiledExpression = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71991
|
+
return compiledExpression;
|
|
71992
|
+
}
|
|
72068
71993
|
// -- не работает в рантайм калькуляторе
|
|
72069
71994
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaFirstOrDefaultExpression) {
|
|
72070
71995
|
return "null";
|
|
@@ -72830,12 +72755,17 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
72830
72755
|
const legacyfetchfunctionsDirectory = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_12__.pathExists)(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions"))) ? path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions") : path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "candy.farm", "legacyfetchfunctions");
|
|
72831
72756
|
sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
72832
72757
|
}
|
|
72758
|
+
const additionalNormalizers = await readAdditionalNormalizersFiles(formSourcesPath);
|
|
72759
|
+
const formJsonSettings = (_JSON$parse$settings = JSON.parse(await readFileSource(formSourcesPath, "form.json", "{}"))["settings"]) !== null && _JSON$parse$settings !== void 0 ? _JSON$parse$settings : {};
|
|
72760
|
+
if (additionalNormalizers.length > 0 && !formJsonSettings.useServerSideFLangNormalization) {
|
|
72761
|
+
throw new Error("[ERROR] Не проставлен флаг useServerSideFLangNormalization, но папка normalizers не пустая");
|
|
72762
|
+
}
|
|
72833
72763
|
const result = {
|
|
72834
72764
|
sugarContent: sugarContent,
|
|
72835
72765
|
resources: {
|
|
72836
72766
|
gfv: gfv,
|
|
72837
72767
|
formSourcesPath: formSourcesPath,
|
|
72838
|
-
formJsonSettings:
|
|
72768
|
+
formJsonSettings: formJsonSettings,
|
|
72839
72769
|
additionalSettings: await readFileSource(formSourcesPath, "settings.json", "{}"),
|
|
72840
72770
|
autocalcsContent: await readAutoCalcFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc")),
|
|
72841
72771
|
helpersContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers")),
|
|
@@ -72850,7 +72780,7 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
72850
72780
|
fetchFunctionSources: await readFiles(sugarReferences.fetchFunctionFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x))),
|
|
72851
72781
|
localization: await connectJSFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "localization")),
|
|
72852
72782
|
importedFiles: await readImportedFiles(formSourcesPath),
|
|
72853
|
-
additionalNormalizers:
|
|
72783
|
+
additionalNormalizers: additionalNormalizers
|
|
72854
72784
|
}
|
|
72855
72785
|
};
|
|
72856
72786
|
if (gfv.startsWith("4")) {
|
|
@@ -73326,9 +73256,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73326
73256
|
/* harmony export */ });
|
|
73327
73257
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
73328
73258
|
/* harmony import */ var _Common_hashUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Common/hashUtils */ "./Common/hashUtils.ts");
|
|
73259
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
73329
73260
|
var _BuildInTypeExpression;
|
|
73330
73261
|
|
|
73331
73262
|
|
|
73263
|
+
|
|
73332
73264
|
class FLangNode {
|
|
73333
73265
|
toString() {
|
|
73334
73266
|
return this.convertToString();
|
|
@@ -73606,6 +73538,33 @@ class BuildInTypeExpression extends TypeReferenceExpression {
|
|
|
73606
73538
|
convertToString() {
|
|
73607
73539
|
return this.buildInTypeName;
|
|
73608
73540
|
}
|
|
73541
|
+
static getByName(typeName) {
|
|
73542
|
+
switch (typeName) {
|
|
73543
|
+
case "string":
|
|
73544
|
+
return BuildInTypeExpression.string;
|
|
73545
|
+
case "decimal":
|
|
73546
|
+
return BuildInTypeExpression.decimal;
|
|
73547
|
+
case "dict":
|
|
73548
|
+
return BuildInTypeExpression.dict;
|
|
73549
|
+
case "bool":
|
|
73550
|
+
return BuildInTypeExpression.bool;
|
|
73551
|
+
case "null":
|
|
73552
|
+
return BuildInTypeExpression.null;
|
|
73553
|
+
case "dateTime":
|
|
73554
|
+
return BuildInTypeExpression.dateTime;
|
|
73555
|
+
case "int":
|
|
73556
|
+
return BuildInTypeExpression.int;
|
|
73557
|
+
case "array":
|
|
73558
|
+
return BuildInTypeExpression.array;
|
|
73559
|
+
case "hashSet":
|
|
73560
|
+
return BuildInTypeExpression.hashSet;
|
|
73561
|
+
case "object":
|
|
73562
|
+
return BuildInTypeExpression.object;
|
|
73563
|
+
default:
|
|
73564
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureNever)(typeName);
|
|
73565
|
+
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)();
|
|
73566
|
+
}
|
|
73567
|
+
}
|
|
73609
73568
|
}
|
|
73610
73569
|
_BuildInTypeExpression = BuildInTypeExpression;
|
|
73611
73570
|
BuildInTypeExpression.object = new _BuildInTypeExpression("object");
|
|
@@ -74734,7 +74693,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74734
74693
|
/* harmony export */ dictFieldNameSuffix: () => (/* binding */ dictFieldNameSuffix),
|
|
74735
74694
|
/* harmony export */ ensureCorrectFieldNameByExpressionType: () => (/* binding */ ensureCorrectFieldNameByExpressionType),
|
|
74736
74695
|
/* harmony export */ ensureOperandsOfTypeOrNull: () => (/* binding */ ensureOperandsOfTypeOrNull),
|
|
74696
|
+
/* harmony export */ extractOriginalStringValueOrCastToStringIfNeeded: () => (/* binding */ extractOriginalStringValueOrCastToStringIfNeeded),
|
|
74737
74697
|
/* harmony export */ extractValueReferenceFromCast: () => (/* binding */ extractValueReferenceFromCast),
|
|
74698
|
+
/* harmony export */ extractValueReferenceFromCastSafe: () => (/* binding */ extractValueReferenceFromCastSafe),
|
|
74738
74699
|
/* harmony export */ getAllExpressionChildren: () => (/* binding */ getAllExpressionChildren),
|
|
74739
74700
|
/* harmony export */ getSelectorIdFromRule: () => (/* binding */ getSelectorIdFromRule),
|
|
74740
74701
|
/* harmony export */ hashSetFieldNameSuffix: () => (/* binding */ hashSetFieldNameSuffix),
|
|
@@ -74945,6 +74906,26 @@ function extractValueReferenceFromCast(expression) {
|
|
|
74945
74906
|
}
|
|
74946
74907
|
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(`Cannot extract ValueReferenceExpression! ${(0,util__WEBPACK_IMPORTED_MODULE_0__.inspect)(expression)}`);
|
|
74947
74908
|
}
|
|
74909
|
+
function extractValueReferenceFromCastSafe(expression) {
|
|
74910
|
+
if (expression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression) {
|
|
74911
|
+
return [true, expression];
|
|
74912
|
+
}
|
|
74913
|
+
if (expression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.CastExpression && expression.targetExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression) {
|
|
74914
|
+
return [true, expression.targetExpression];
|
|
74915
|
+
}
|
|
74916
|
+
if (expression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.CastExpression && expression.targetExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NoDepsExpression && expression.targetExpression.expression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression) {
|
|
74917
|
+
return [true, expression.targetExpression.expression];
|
|
74918
|
+
}
|
|
74919
|
+
return [false];
|
|
74920
|
+
}
|
|
74921
|
+
function extractOriginalStringValueOrCastToStringIfNeeded(expression) {
|
|
74922
|
+
if (expression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.DecimalLiteralExpression) {
|
|
74923
|
+
return new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(expression.value.toString());
|
|
74924
|
+
}
|
|
74925
|
+
const [success, extractedExpr] = extractValueReferenceFromCastSafe(expression);
|
|
74926
|
+
const exprToCast = success ? extractedExpr : expression;
|
|
74927
|
+
return castOperandToStringIfNeed(exprToCast);
|
|
74928
|
+
}
|
|
74948
74929
|
function ensureCorrectFieldNameByExpressionType(statement) {
|
|
74949
74930
|
if (statement instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement) {
|
|
74950
74931
|
const lastPart = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(statement.left.modePath.getPathParts());
|
|
@@ -75375,24 +75356,24 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75375
75356
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.SumOfDayWeightsExpression(expressions);
|
|
75376
75357
|
}
|
|
75377
75358
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
75378
|
-
const arg = this.
|
|
75379
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75359
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75360
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75380
75361
|
}
|
|
75381
75362
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsRegNumSfrExpression) {
|
|
75382
|
-
const arg = this.
|
|
75383
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsRegNumSfrExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75363
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75364
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsRegNumSfrExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75384
75365
|
}
|
|
75385
75366
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsInnExpression) {
|
|
75386
|
-
const arg = this.
|
|
75387
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75367
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75368
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75388
75369
|
}
|
|
75389
75370
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsOgrnExpression) {
|
|
75390
|
-
const arg = this.
|
|
75391
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsOgrnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75371
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75372
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsOgrnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75392
75373
|
}
|
|
75393
75374
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidMirCardNumberExpression) {
|
|
75394
|
-
const arg = this.
|
|
75395
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75375
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75376
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75396
75377
|
}
|
|
75397
75378
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArrayExpression) {
|
|
75398
75379
|
const items = expression.items.map(arg => this.compileEnumerationItem(arg, prefix, target, addPrecalculationRule));
|
|
@@ -75414,9 +75395,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75414
75395
|
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));
|
|
75415
75396
|
}
|
|
75416
75397
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidAccountNumberExpression) {
|
|
75417
|
-
const bik = this.
|
|
75418
|
-
const account = this.
|
|
75419
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidAccountNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75398
|
+
const bik = this.compileExpressionToFlangExpressionInternal(expression.bik, prefix, target, addPrecalculationRule);
|
|
75399
|
+
const account = this.compileExpressionToFlangExpressionInternal(expression.account, prefix, target, addPrecalculationRule);
|
|
75400
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidAccountNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(bik), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(account));
|
|
75420
75401
|
}
|
|
75421
75402
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGroupSumExpression) {
|
|
75422
75403
|
return this.compileGroupSumExpression(prefix, target, expression, addPrecalculationRule);
|
|
@@ -75431,8 +75412,8 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75431
75412
|
return this.compileGetSumByKeysExpression(prefix, target, expression, addPrecalculationRule);
|
|
75432
75413
|
}
|
|
75433
75414
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaOneOfExpression) {
|
|
75434
|
-
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75435
|
-
const items = expression.items.expressions.map(item => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75415
|
+
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(this.compileExpressionToFlangExpressionInternal(expression.argument, prefix, target, addPrecalculationRule));
|
|
75416
|
+
const items = expression.items.expressions.map(item => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(this.compileExpressionToFlangExpressionInternal(item, prefix, target, addPrecalculationRule)));
|
|
75436
75417
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.OneOfExpression(arg, items);
|
|
75437
75418
|
}
|
|
75438
75419
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaHasAutoFlagExpression) {
|
|
@@ -75468,6 +75449,11 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75468
75449
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaPropertyByNameExpression) {
|
|
75469
75450
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.StringLiteralExpression("");
|
|
75470
75451
|
}
|
|
75452
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaCastExpression) {
|
|
75453
|
+
const targetType = _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.BuildInTypeExpression.getByName(expression.type);
|
|
75454
|
+
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule));
|
|
75455
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandIfNeed)(arg, targetType);
|
|
75456
|
+
}
|
|
75471
75457
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}, ${expression.sourceXmlNode.name}`);
|
|
75472
75458
|
}
|
|
75473
75459
|
castOperandForComparisonExpression(formulaExpression, flangExpression) {
|
|
@@ -104593,45 +104579,43 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104593
104579
|
/* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
|
|
104594
104580
|
/* harmony export */ });
|
|
104595
104581
|
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
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
|
|
104619
|
-
/* harmony import */ var
|
|
104620
|
-
/* harmony import */ var
|
|
104621
|
-
/* harmony import */ var
|
|
104622
|
-
/* harmony import */ var
|
|
104623
|
-
/* harmony import */ var
|
|
104624
|
-
/* harmony import */ var
|
|
104625
|
-
/* harmony import */ var
|
|
104626
|
-
/* harmony import */ var
|
|
104627
|
-
/* harmony import */ var
|
|
104628
|
-
/* harmony import */ var
|
|
104629
|
-
/* harmony import */ var
|
|
104630
|
-
/* harmony import */ var
|
|
104631
|
-
/* harmony import */ var
|
|
104632
|
-
/* harmony import */ var
|
|
104633
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
104634
|
-
|
|
104582
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
104583
|
+
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
104584
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
104585
|
+
/* harmony import */ var _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/AndExpression */ "./Generator/src/common/KCLang/CodeDom/AndExpression.ts");
|
|
104586
|
+
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
104587
|
+
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
104588
|
+
/* harmony import */ var _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DecimalConstExpression */ "./Generator/src/common/KCLang/CodeDom/DecimalConstExpression.ts");
|
|
104589
|
+
/* harmony import */ var _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DescriptionText */ "./Generator/src/common/KCLang/CodeDom/DescriptionText.ts");
|
|
104590
|
+
/* harmony import */ var _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/EqExpression */ "./Generator/src/common/KCLang/CodeDom/EqExpression.ts");
|
|
104591
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/ExistsFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts");
|
|
104592
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts");
|
|
104593
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/JoinFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts");
|
|
104594
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/LengthFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/LengthFunctionCall.ts");
|
|
104595
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/RegexMatchFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/RegexMatchFunctionCall.ts");
|
|
104596
|
+
/* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
|
|
104597
|
+
/* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
|
|
104598
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
104599
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
104600
|
+
/* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
|
|
104601
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
|
|
104602
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
|
|
104603
|
+
/* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
|
|
104604
|
+
/* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
|
|
104605
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
|
|
104606
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
|
|
104607
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
104608
|
+
/* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
|
|
104609
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
104610
|
+
/* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
104611
|
+
/* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
|
|
104612
|
+
/* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
104613
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
104614
|
+
/* harmony import */ var _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall.ts");
|
|
104615
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangRawStringExpression */ "./Generator/src/common/KCLang/CodeDom/KCLangRawStringExpression.ts");
|
|
104616
|
+
/* harmony import */ var _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GtExpression */ "./Generator/src/common/KCLang/CodeDom/GtExpression.ts");
|
|
104617
|
+
/* harmony import */ var _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LtExpression */ "./Generator/src/common/KCLang/CodeDom/LtExpression.ts");
|
|
104618
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
104635
104619
|
|
|
104636
104620
|
|
|
104637
104621
|
|
|
@@ -104689,32 +104673,32 @@ class KCLangCalculationsBuildContext {
|
|
|
104689
104673
|
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;
|
|
104690
104674
|
const valueChecks = [];
|
|
104691
104675
|
if (baseName != undefined) {
|
|
104692
|
-
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,
|
|
104676
|
+
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__.omitLocalization)(baseDescription))).toArray());
|
|
104693
104677
|
}
|
|
104694
104678
|
valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
|
|
104695
104679
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
104696
104680
|
if (!optional) {
|
|
104697
|
-
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2
|
|
104681
|
+
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2;
|
|
104698
104682
|
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 : "Поле должно быть заполнено";
|
|
104699
104683
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
104700
|
-
let allChildrenPaths = parentNode instanceof
|
|
104701
|
-
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) >
|
|
104684
|
+
let allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement ? this.schemaRng.getAllChildValueNodes(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration()) : undefined;
|
|
104685
|
+
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_31__.maxOptionalChildrenLimit) {
|
|
104702
104686
|
allChildrenPaths = undefined;
|
|
104703
104687
|
}
|
|
104704
|
-
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new
|
|
104705
|
-
const checkRequiredStatement = new
|
|
104688
|
+
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("")))).reduce(combineByAndKCLangExpr, undefined);
|
|
104689
|
+
const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression(""))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__.omitLocalization)(requiredDescription))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString()))]);
|
|
104706
104690
|
if (restChecks != undefined) {
|
|
104707
|
-
yield new
|
|
104691
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(restChecks, [checkRequiredStatement]);
|
|
104708
104692
|
} else {
|
|
104709
104693
|
yield checkRequiredStatement;
|
|
104710
104694
|
}
|
|
104711
104695
|
}
|
|
104712
|
-
yield new
|
|
104696
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression(""))), valueChecks);
|
|
104713
104697
|
}
|
|
104714
104698
|
getFirstAcceptedParent(schemaNode) {
|
|
104715
104699
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
104716
104700
|
while (parentNode != undefined) {
|
|
104717
|
-
if (parentNode instanceof
|
|
104701
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement) {
|
|
104718
104702
|
var _parentNode$multiple;
|
|
104719
104703
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
104720
104704
|
return parentNode;
|
|
@@ -104730,175 +104714,173 @@ class KCLangCalculationsBuildContext {
|
|
|
104730
104714
|
return undefined;
|
|
104731
104715
|
}
|
|
104732
104716
|
createCheck(targetPath, condition, message, checkType) {
|
|
104733
|
-
|
|
104734
|
-
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)()))];
|
|
104717
|
+
const withBlocks = [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(message.replace(/\[/gi, "\\[").replace(/]/gi, "\\]"))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString()))];
|
|
104735
104718
|
if (checkType == "warning") {
|
|
104736
|
-
withBlocks.push(new
|
|
104719
|
+
withBlocks.push(new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("errorLevel", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText("Warning")));
|
|
104737
104720
|
}
|
|
104738
|
-
return new
|
|
104721
|
+
return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(condition, withBlocks);
|
|
104739
104722
|
}
|
|
104740
104723
|
*createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId) {
|
|
104741
104724
|
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;
|
|
104742
104725
|
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
104743
|
-
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
|
|
104744
|
-
const enumerationItems = (0,
|
|
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 _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.EnumerationTypeCheckNode)) === null || _typeNode$children === void 0 ? void 0 : _typeNode$children.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
|
|
104727
|
+
const enumerationItems = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(typeNodeEnumerations) ? typeNodeEnumerations : (_schemaTypeNode$enume = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.enumeration) !== null && _schemaTypeNode$enume !== void 0 ? _schemaTypeNode$enume : [];
|
|
104745
104728
|
const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
|
|
104746
104729
|
var _ref5, _ref6, _ref7, _omitLocalization;
|
|
104747
|
-
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,
|
|
104730
|
+
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref5 !== void 0 ? _ref5 : "Поле должно быть заполнено";
|
|
104748
104731
|
};
|
|
104749
|
-
const valueReferenceExpression = new
|
|
104750
|
-
const stringValueReference = new
|
|
104751
|
-
if ((0,
|
|
104752
|
-
yield this.createCheck(targetPath, new
|
|
104732
|
+
const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true));
|
|
104733
|
+
const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default);
|
|
104734
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(enumerationItems)) {
|
|
104735
|
+
yield this.createCheck(targetPath, new _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_22__.OneOfExpression(stringValueReference, enumerationItems.map(item => new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression(item))), makeMessage({
|
|
104753
104736
|
enumerationAllowedValues: enumerationItems
|
|
104754
104737
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104755
104738
|
}
|
|
104756
|
-
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(
|
|
104739
|
+
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.DigestcheckTypeCheckNode).find(x => x);
|
|
104757
104740
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
104758
|
-
if ((0,
|
|
104741
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(gId) && digest != undefined) {
|
|
104759
104742
|
var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
|
|
104760
104743
|
// const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
|
|
104761
|
-
const ruleBody = new
|
|
104762
|
-
yield this.createCheck(targetPath, ruleBody, (0,
|
|
104744
|
+
const ruleBody = new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_21__.NotExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(valueReferenceExpression)), new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_9__.EqExpression(stringValueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression(""))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_12__.JoinFunctionCall(new _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_11__.GetPicklistValuesFunctionCall(gId, [(_digest$keyColumnName = digest.keyColumnName) !== null && _digest$keyColumnName !== void 0 ? _digest$keyColumnName : "code"], new _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_24__.StringArrayConstExpression([stringValueReference]), (_digest$keyColumnName2 = digest.keyColumnName) !== null && _digest$keyColumnName2 !== void 0 ? _digest$keyColumnName2 : "code")), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("")));
|
|
104745
|
+
yield this.createCheck(targetPath, ruleBody, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_37__.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");
|
|
104763
104746
|
}
|
|
104764
|
-
const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,
|
|
104747
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.LengthTypeCheckNode));
|
|
104765
104748
|
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;
|
|
104766
104749
|
if (lengthValue != undefined) {
|
|
104767
104750
|
var _typeNodeLength$check;
|
|
104768
|
-
yield this.createCheck(targetPath, new
|
|
104751
|
+
yield this.createCheck(targetPath, new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_9__.EqExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(stringValueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(lengthValue)), makeMessage({
|
|
104769
104752
|
length: lengthValue
|
|
104770
104753
|
}, 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);
|
|
104771
104754
|
}
|
|
104772
104755
|
const valueReference = stringValueReference;
|
|
104773
104756
|
const decimalValueReference = valueReferenceExpression;
|
|
104774
|
-
const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,
|
|
104757
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.MinlengthTypeCheckNode));
|
|
104775
104758
|
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;
|
|
104776
|
-
const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,
|
|
104759
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.MaxlengthTypeCheckNode));
|
|
104777
104760
|
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;
|
|
104778
104761
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
104779
104762
|
var _typeNodeMinLength$de;
|
|
104780
|
-
const lengthExprRuleBody = new
|
|
104763
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_15__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minLengthValue)), new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_19__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxLengthValue)));
|
|
104781
104764
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104782
104765
|
minLength: minLengthValue,
|
|
104783
104766
|
maxLength: maxLengthValue
|
|
104784
104767
|
}, (_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);
|
|
104785
104768
|
} else if (minLengthValue != undefined) {
|
|
104786
|
-
const lengthExprRuleBody = new
|
|
104769
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_15__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minLengthValue));
|
|
104787
104770
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104788
104771
|
minLength: minLengthValue
|
|
104789
104772
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104790
104773
|
} else if (maxLengthValue != undefined) {
|
|
104791
|
-
const lengthExprRuleBody = new
|
|
104774
|
+
const lengthExprRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_19__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_13__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxLengthValue));
|
|
104792
104775
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104793
104776
|
maxLength: maxLengthValue
|
|
104794
104777
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104795
104778
|
}
|
|
104796
|
-
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,
|
|
104779
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.MininclusiveTypeCheckNode));
|
|
104797
104780
|
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;
|
|
104798
104781
|
if (minInclusiveValue != undefined) {
|
|
104799
|
-
const minInclusiveRuleBody = new
|
|
104782
|
+
const minInclusiveRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_15__.GeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minInclusiveValue));
|
|
104800
104783
|
yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
|
|
104801
104784
|
minInclusive: minInclusiveValue
|
|
104802
104785
|
}, 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);
|
|
104803
104786
|
}
|
|
104804
|
-
const typeNodeMinExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,
|
|
104787
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.MinExclusiveTypeCheckNode));
|
|
104805
104788
|
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;
|
|
104806
104789
|
if (minExclusiveValue != undefined) {
|
|
104807
|
-
const minExclusiveRuleBody = new
|
|
104790
|
+
const minExclusiveRuleBody = new _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_35__.GtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minExclusiveValue));
|
|
104808
104791
|
yield this.createCheck(targetPath, minExclusiveRuleBody, makeMessage({
|
|
104809
104792
|
minExclusive: minExclusiveValue
|
|
104810
104793
|
}, 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);
|
|
104811
104794
|
}
|
|
104812
|
-
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,
|
|
104795
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.MaxinclusiveTypeCheckNode));
|
|
104813
104796
|
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;
|
|
104814
104797
|
if (maxInclusiveValue != undefined) {
|
|
104815
|
-
const maxInclusiveRuleBody = new
|
|
104798
|
+
const maxInclusiveRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_19__.LeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxInclusiveValue));
|
|
104816
104799
|
yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
|
|
104817
104800
|
maxInclusive: maxInclusiveValue
|
|
104818
104801
|
}, 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);
|
|
104819
104802
|
}
|
|
104820
|
-
const typeNodeMaxExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.find((0,
|
|
104803
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.MaxExclusiveTypeCheckNode));
|
|
104821
104804
|
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;
|
|
104822
104805
|
if (maxExclusiveValue != undefined) {
|
|
104823
|
-
const maxExclusiveRuleBody = new
|
|
104806
|
+
const maxExclusiveRuleBody = new _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_36__.LtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxExclusiveValue));
|
|
104824
104807
|
yield this.createCheck(targetPath, maxExclusiveRuleBody, makeMessage({
|
|
104825
104808
|
maxExclusive: maxExclusiveValue
|
|
104826
104809
|
}, 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);
|
|
104827
104810
|
}
|
|
104828
|
-
const isDecimalCondition = new
|
|
104829
|
-
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,
|
|
104811
|
+
const isDecimalCondition = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))"));
|
|
104812
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.TotaldigitsTypeCheckNode));
|
|
104830
104813
|
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;
|
|
104831
104814
|
if (totalDigitsValue != undefined) {
|
|
104832
|
-
const totalDigitsRuleBody = new
|
|
104833
|
-
yield new
|
|
104815
|
+
const totalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^-?(\\.?\\d){0," + totalDigitsValue.toString() + "}$"));
|
|
104816
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
|
|
104834
104817
|
totalDigitsMaxCount: totalDigitsValue
|
|
104835
104818
|
}, 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)]);
|
|
104836
104819
|
}
|
|
104837
|
-
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,
|
|
104838
|
-
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11.filter((0,
|
|
104839
|
-
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,
|
|
104840
|
-
const stringPatterns = ((0,
|
|
104841
|
-
const patterns = stringPatterns.map(pattern => new
|
|
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,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.PatternTypeCheckNode)).map(x => x.value).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined)) !== null && _typeNode$children$fi2 !== void 0 ? _typeNode$children$fi2 : [];
|
|
104821
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined)) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11[0]) === null || _typeNode$children11 === void 0 ? void 0 : _typeNode$children11.description;
|
|
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,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined)) === null || _typeNode$children12 === void 0 || (_typeNode$children12 = _typeNode$children12[0]) === null || _typeNode$children12 === void 0 ? void 0 : _typeNode$children12.checkType) !== null && _typeNode$children$fi3 !== void 0 ? _typeNode$children$fi3 : checkType;
|
|
104823
|
+
const stringPatterns = ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(typeNodePatterns) ? typeNodePatterns : (_schemaTypeNode$patte = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.patterns) !== null && _schemaTypeNode$patte !== void 0 ? _schemaTypeNode$patte : []).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined);
|
|
104824
|
+
const patterns = stringPatterns.map(pattern => new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression(pattern))).reduce((acc, current) => acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(acc, current) : current, undefined);
|
|
104842
104825
|
if (patterns != undefined) {
|
|
104843
104826
|
const stringPatternsRuleBody = patterns;
|
|
104844
104827
|
yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
|
|
104845
104828
|
patterns: stringPatterns
|
|
104846
104829
|
}, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
|
|
104847
104830
|
}
|
|
104848
|
-
const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 ? void 0 : _typeNode$children13.find((0,
|
|
104831
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.IntegerdigitsTypeCheckNode));
|
|
104849
104832
|
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;
|
|
104850
104833
|
if (integerDigits != undefined) {
|
|
104851
|
-
const integerDigitsRuleBody = new
|
|
104852
|
-
yield new
|
|
104834
|
+
const integerDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^-?\\d{0," + integerDigits.toString() + "}(([.]\\d+$)|($))"));
|
|
104835
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
|
|
104853
104836
|
integerDigitsMaxCount: integerDigits
|
|
104854
104837
|
}, 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)]);
|
|
104855
104838
|
}
|
|
104856
|
-
const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 ? void 0 : _typeNode$children14.find((0,
|
|
104839
|
+
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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.FractiondigitsTypeCheckNode));
|
|
104857
104840
|
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;
|
|
104858
104841
|
if (fractionalDigits != undefined) {
|
|
104859
|
-
const fractionalDigitsRuleBody = new
|
|
104860
|
-
yield new
|
|
104842
|
+
const fractionalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^-?\\d+(([.]\\d{0," + fractionalDigits.toString() + "}$)|($))"));
|
|
104843
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
|
|
104861
104844
|
fractionalDigitsMaxCount: fractionalDigits
|
|
104862
104845
|
}, 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)]);
|
|
104863
104846
|
}
|
|
104864
|
-
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,
|
|
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,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_29__.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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.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;
|
|
104865
104848
|
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;
|
|
104866
104849
|
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
104867
104850
|
var _typeNode$children$fi5, _typeNode$children17, _typeNode$children18, _typeNode$children$fi6, _typeNode$children19, _typeNode$children20;
|
|
104868
104851
|
const isDecimal = baseName == "decimal";
|
|
104869
104852
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
104870
|
-
(_typeNode$children$fi5 = typeNode === null || typeNode === void 0 || (_typeNode$children17 = typeNode.children) === null || _typeNode$children17 === void 0 || (_typeNode$children17 = _typeNode$children17.find((0,
|
|
104871
|
-
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,
|
|
104872
|
-
let result = this.createCheck(targetPath, new
|
|
104853
|
+
(_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_32__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_29__.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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children18 === void 0 ? void 0 : _typeNode$children18.condition;
|
|
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,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_29__.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_32__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children20 === void 0 ? void 0 : _typeNode$children20.condition;
|
|
104855
|
+
let result = this.createCheck(targetPath, new _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_33__.IsEqualToAutoCalculatedFunctionCall(isDecimal ? new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.DecimalType.default) : new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default)), _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__.AutoValidationMessage, valueEqlAutoValueErrorLevel !== null && valueEqlAutoValueErrorLevel !== void 0 ? valueEqlAutoValueErrorLevel : checkType);
|
|
104873
104856
|
if (validationCondition != undefined) {
|
|
104874
|
-
result = new
|
|
104857
|
+
result = new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(new _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_34__.KCLangRawStringExpression(validationCondition, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.BoolType.default), [result]);
|
|
104875
104858
|
}
|
|
104876
104859
|
yield result;
|
|
104877
104860
|
}
|
|
104878
104861
|
}
|
|
104879
104862
|
*createBaseTypeValidation(targetPath, baseType, baseDescription) {
|
|
104880
|
-
|
|
104881
|
-
const
|
|
104882
|
-
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true);
|
|
104863
|
+
const checkTargetValue = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString();
|
|
104864
|
+
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true);
|
|
104883
104865
|
switch (baseType) {
|
|
104884
104866
|
case "string":
|
|
104885
104867
|
case "pattern":
|
|
104886
104868
|
case "boolean":
|
|
104887
104869
|
return;
|
|
104888
104870
|
case "integer":
|
|
104889
|
-
yield new
|
|
104871
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^-?\\d+$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
104890
104872
|
break;
|
|
104891
104873
|
case "decimal":
|
|
104892
|
-
yield new
|
|
104874
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
104893
104875
|
break;
|
|
104894
104876
|
case "date":
|
|
104895
|
-
yield new
|
|
104877
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.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_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
104896
104878
|
break;
|
|
104897
104879
|
case "gYear":
|
|
104898
|
-
yield new
|
|
104880
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^\\d{4}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
104899
104881
|
break;
|
|
104900
104882
|
case "gMonth":
|
|
104901
|
-
yield new
|
|
104883
|
+
yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_14__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("^(--(0[1-9]|1[0-2]))$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText(checkTargetValue))]);
|
|
104902
104884
|
break;
|
|
104903
104885
|
default:
|
|
104904
104886
|
throw new Error(`Unknown base type name: '${baseType}'`);
|
|
@@ -104907,7 +104889,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104907
104889
|
}
|
|
104908
104890
|
}
|
|
104909
104891
|
function combineByAndKCLangExpr(acc, current) {
|
|
104910
|
-
return acc != undefined ? new
|
|
104892
|
+
return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(acc, current) : current;
|
|
104911
104893
|
}
|
|
104912
104894
|
|
|
104913
104895
|
/***/ }),
|