@kontur.candy/generator 5.105.0 → 5.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +533 -584
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47142,6 +47142,9 @@ class ModelPathImpl {
|
|
|
47142
47142
|
const firstIndex = this.tokens.find(PathTokens.isInstanceToken);
|
|
47143
47143
|
return firstIndex ? Number(firstIndex) : -1;
|
|
47144
47144
|
}
|
|
47145
|
+
tokensCount() {
|
|
47146
|
+
return this.tokens.length;
|
|
47147
|
+
}
|
|
47145
47148
|
isResolved() {
|
|
47146
47149
|
return isAllTokensResolved(this.tokens);
|
|
47147
47150
|
}
|
|
@@ -47185,6 +47188,13 @@ class ModelPathImpl {
|
|
|
47185
47188
|
const tokensWithoutLastIteration = this.tokens.slice(0, lastIterationIndex);
|
|
47186
47189
|
return new ModelPathImpl(tokensWithoutLastIteration, this.absolute);
|
|
47187
47190
|
}
|
|
47191
|
+
getPathWithoutIterations() {
|
|
47192
|
+
if (!this.isContainCurrentOrEachIteration()) {
|
|
47193
|
+
return this;
|
|
47194
|
+
}
|
|
47195
|
+
const tokens = this.tokens.filter(x => !PathTokens.isMultiToken(x));
|
|
47196
|
+
return new ModelPathImpl(tokens, this.absolute);
|
|
47197
|
+
}
|
|
47188
47198
|
getLastIndexOfCurrentOrEachIteration() {
|
|
47189
47199
|
if (!this.isContainCurrentOrEachIteration()) {
|
|
47190
47200
|
return -1;
|
|
@@ -47826,6 +47836,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47826
47836
|
/* harmony export */ ensureArrayHasLength: () => (/* binding */ ensureArrayHasLength),
|
|
47827
47837
|
/* harmony export */ ensureArrayIsNotEmpty: () => (/* binding */ ensureArrayIsNotEmpty),
|
|
47828
47838
|
/* harmony export */ ensureArrayLengthGreaterThenOrEqual: () => (/* binding */ ensureArrayLengthGreaterThenOrEqual),
|
|
47839
|
+
/* harmony export */ ensureHasFunctionType: () => (/* binding */ ensureHasFunctionType),
|
|
47829
47840
|
/* harmony export */ ensureIsArray: () => (/* binding */ ensureIsArray),
|
|
47830
47841
|
/* harmony export */ ensureNever: () => (/* binding */ ensureNever),
|
|
47831
47842
|
/* harmony export */ ensureNotNullOrUndefined: () => (/* binding */ ensureNotNullOrUndefined),
|
|
@@ -47853,9 +47864,14 @@ function stringifyUnknownError(error) {
|
|
|
47853
47864
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
47854
47865
|
return typeof error === "object" && (error === null || error === void 0 ? void 0 : error["message"]);
|
|
47855
47866
|
}
|
|
47856
|
-
function ensureNotNullOrUndefined(input) {
|
|
47867
|
+
function ensureNotNullOrUndefined(input, message) {
|
|
47857
47868
|
if (!isNotNullOrUndefined(input)) {
|
|
47858
|
-
throw new Error(`Value must be defined`);
|
|
47869
|
+
throw new Error(message !== null && message !== void 0 ? message : `Value must be defined`);
|
|
47870
|
+
}
|
|
47871
|
+
}
|
|
47872
|
+
function ensureHasFunctionType(input, message) {
|
|
47873
|
+
if (typeof input !== "function") {
|
|
47874
|
+
throw new Error(message !== null && message !== void 0 ? message : `Value must be defined`);
|
|
47859
47875
|
}
|
|
47860
47876
|
}
|
|
47861
47877
|
function noop() {
|
|
@@ -50672,80 +50688,52 @@ const existsKCLangFunction = params => {
|
|
|
50672
50688
|
throw new Error("Invalid parameters!");
|
|
50673
50689
|
};
|
|
50674
50690
|
const isSnilsKCLangFunction = params => {
|
|
50675
|
-
var _params$10;
|
|
50691
|
+
var _params$0$value, _params$10;
|
|
50676
50692
|
const errors = Array.from(validateParams(params, 1));
|
|
50677
50693
|
if (errors.length > 0) {
|
|
50678
50694
|
return new FunctionValidationErrorCollection(errors);
|
|
50679
50695
|
}
|
|
50680
|
-
const argumentExpr = (_params$10 = params[0]) === null || _params$10 === void 0 ? void 0 : _params$10.value;
|
|
50681
|
-
|
|
50682
|
-
|
|
50683
|
-
|
|
50684
|
-
|
|
50685
|
-
}
|
|
50686
|
-
return {
|
|
50687
|
-
type: "isSnils",
|
|
50688
|
-
select: param
|
|
50689
|
-
};
|
|
50690
|
-
}
|
|
50691
|
-
throw new Error("Invalid parameters!");
|
|
50696
|
+
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)();
|
|
50697
|
+
return {
|
|
50698
|
+
type: "isSnils",
|
|
50699
|
+
expression: argumentExpr
|
|
50700
|
+
};
|
|
50692
50701
|
};
|
|
50693
50702
|
const isRegNumSfrKCLangFunction = params => {
|
|
50694
|
-
var _params$11;
|
|
50703
|
+
var _params$0$value2, _params$11;
|
|
50695
50704
|
const errors = Array.from(validateParams(params, 1));
|
|
50696
50705
|
if (errors.length > 0) {
|
|
50697
50706
|
return new FunctionValidationErrorCollection(errors);
|
|
50698
50707
|
}
|
|
50699
|
-
const argumentExpr = (_params$11 = params[0]) === null || _params$11 === void 0 ? void 0 : _params$11.value;
|
|
50700
|
-
|
|
50701
|
-
|
|
50702
|
-
|
|
50703
|
-
|
|
50704
|
-
}
|
|
50705
|
-
return {
|
|
50706
|
-
type: "isRegNumSfr",
|
|
50707
|
-
select: param
|
|
50708
|
-
};
|
|
50709
|
-
}
|
|
50710
|
-
throw new Error("Invalid parameters!");
|
|
50708
|
+
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)();
|
|
50709
|
+
return {
|
|
50710
|
+
type: "isRegNumSfr",
|
|
50711
|
+
expression: argumentExpr
|
|
50712
|
+
};
|
|
50711
50713
|
};
|
|
50712
50714
|
const isInnKCLangFunction = params => {
|
|
50713
|
-
var _params$12;
|
|
50715
|
+
var _params$0$value3, _params$12;
|
|
50714
50716
|
const errors = Array.from(validateParams(params, 1));
|
|
50715
50717
|
if (errors.length > 0) {
|
|
50716
50718
|
return new FunctionValidationErrorCollection(errors);
|
|
50717
50719
|
}
|
|
50718
|
-
const argumentExpr = (_params$12 = params[0]) === null || _params$12 === void 0 ? void 0 : _params$12.value;
|
|
50719
|
-
|
|
50720
|
-
|
|
50721
|
-
|
|
50722
|
-
|
|
50723
|
-
}
|
|
50724
|
-
return {
|
|
50725
|
-
type: "isInn",
|
|
50726
|
-
select: param
|
|
50727
|
-
};
|
|
50728
|
-
}
|
|
50729
|
-
throw new Error("Invalid parameters!");
|
|
50720
|
+
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)();
|
|
50721
|
+
return {
|
|
50722
|
+
type: "isInn",
|
|
50723
|
+
expression: argumentExpr
|
|
50724
|
+
};
|
|
50730
50725
|
};
|
|
50731
50726
|
const isOgrnKCLangFunction = params => {
|
|
50732
|
-
var _params$13;
|
|
50727
|
+
var _params$0$value4, _params$13;
|
|
50733
50728
|
const errors = Array.from(validateParams(params, 1));
|
|
50734
50729
|
if (errors.length > 0) {
|
|
50735
50730
|
return new FunctionValidationErrorCollection(errors);
|
|
50736
50731
|
}
|
|
50737
|
-
const argumentExpr = (_params$13 = params[0]) === null || _params$13 === void 0 ? void 0 : _params$13.value;
|
|
50738
|
-
|
|
50739
|
-
|
|
50740
|
-
|
|
50741
|
-
|
|
50742
|
-
}
|
|
50743
|
-
return {
|
|
50744
|
-
type: "isOgrn",
|
|
50745
|
-
select: param
|
|
50746
|
-
};
|
|
50747
|
-
}
|
|
50748
|
-
throw new Error("Invalid parameters!");
|
|
50732
|
+
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)();
|
|
50733
|
+
return {
|
|
50734
|
+
type: "isOgrn",
|
|
50735
|
+
expression: argumentExpr
|
|
50736
|
+
};
|
|
50749
50737
|
};
|
|
50750
50738
|
const arrayKCLangFunction = params => {
|
|
50751
50739
|
const errors = Array.from(validateParams(params, 0, Infinity));
|
|
@@ -50833,45 +50821,30 @@ const getPicklistValuesKCLangFunction = params => {
|
|
|
50833
50821
|
};
|
|
50834
50822
|
};
|
|
50835
50823
|
const isValidMirCardNumberKCLangFunction = params => {
|
|
50836
|
-
var _params$21;
|
|
50824
|
+
var _params$0$value5, _params$21;
|
|
50837
50825
|
const errors = Array.from(validateParams(params, 1));
|
|
50838
50826
|
if (errors.length > 0) {
|
|
50839
50827
|
return new FunctionValidationErrorCollection(errors);
|
|
50840
50828
|
}
|
|
50841
|
-
const argumentExpr = (_params$21 = params[0]) === null || _params$21 === void 0 ? void 0 : _params$21.value;
|
|
50842
|
-
|
|
50843
|
-
|
|
50844
|
-
|
|
50845
|
-
|
|
50846
|
-
}
|
|
50847
|
-
return {
|
|
50848
|
-
type: "isValidMirCardNumber",
|
|
50849
|
-
select: param
|
|
50850
|
-
};
|
|
50851
|
-
}
|
|
50852
|
-
throw new Error("Invalid parameters!");
|
|
50829
|
+
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)();
|
|
50830
|
+
return {
|
|
50831
|
+
type: "isValidMirCardNumber",
|
|
50832
|
+
expression: argumentExpr
|
|
50833
|
+
};
|
|
50853
50834
|
};
|
|
50854
50835
|
const isValidAccountNumberKCLangFunction = params => {
|
|
50855
|
-
var _params$22, _params$23;
|
|
50836
|
+
var _params$0$value6, _params$22, _params$1$value, _params$23;
|
|
50856
50837
|
const errors = Array.from(validateParams(params, 2));
|
|
50857
50838
|
if (errors.length > 0) {
|
|
50858
50839
|
return new FunctionValidationErrorCollection(errors);
|
|
50859
50840
|
}
|
|
50860
|
-
const bik = (_params$22 = params[0]) === null || _params$22 === void 0 ? void 0 : _params$22.value;
|
|
50861
|
-
const account = (_params$23 = params[1]) === null || _params$23 === void 0 ? void 0 : _params$23.value;
|
|
50862
|
-
|
|
50863
|
-
|
|
50864
|
-
|
|
50865
|
-
|
|
50866
|
-
|
|
50867
|
-
}
|
|
50868
|
-
return {
|
|
50869
|
-
type: "isValidAccountNumber",
|
|
50870
|
-
bik: bikValue,
|
|
50871
|
-
account: accountValue
|
|
50872
|
-
};
|
|
50873
|
-
}
|
|
50874
|
-
throw new Error("Invalid parameters!");
|
|
50841
|
+
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)();
|
|
50842
|
+
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)();
|
|
50843
|
+
return {
|
|
50844
|
+
type: "isValidAccountNumber",
|
|
50845
|
+
bik: bik,
|
|
50846
|
+
account: account
|
|
50847
|
+
};
|
|
50875
50848
|
};
|
|
50876
50849
|
const countKCLangFunction = params => {
|
|
50877
50850
|
var _params$24;
|
|
@@ -61683,37 +61656,37 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
61683
61656
|
{
|
|
61684
61657
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61685
61658
|
const isSnilsFnName = gn(x => x.isSnils);
|
|
61686
|
-
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${expression.
|
|
61659
|
+
return `${utilsName}.${isSnilsFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61687
61660
|
}
|
|
61688
61661
|
case "isRegNumSfr":
|
|
61689
61662
|
{
|
|
61690
61663
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61691
61664
|
const isValidRegNumSfrFnName = gn(x => x.isRegNumSfr);
|
|
61692
|
-
return `${utilsName}.${isValidRegNumSfrFnName}(${pathFnName}, "${expression.
|
|
61665
|
+
return `${utilsName}.${isValidRegNumSfrFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61693
61666
|
}
|
|
61694
61667
|
case "isInn":
|
|
61695
61668
|
{
|
|
61696
61669
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61697
61670
|
const isInnFnName = gn(x => x.isInn);
|
|
61698
|
-
return `${utilsName}.${isInnFnName}(${pathFnName}, "${expression.
|
|
61671
|
+
return `${utilsName}.${isInnFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61699
61672
|
}
|
|
61700
61673
|
case "isOgrn":
|
|
61701
61674
|
{
|
|
61702
61675
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61703
61676
|
const isOgrnFnName = gn(x => x.isOgrn);
|
|
61704
|
-
return `${utilsName}.${isOgrnFnName}(${pathFnName}, "${expression.
|
|
61677
|
+
return `${utilsName}.${isOgrnFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61705
61678
|
}
|
|
61706
61679
|
case "isValidMirCardNumber":
|
|
61707
61680
|
{
|
|
61708
61681
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61709
61682
|
const isValidMirCardNumberFnName = gn(x => x.isValidMirCardNumber);
|
|
61710
|
-
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${expression.
|
|
61683
|
+
return `${utilsName}.${isValidMirCardNumberFnName}(${pathFnName}, "${generateJsExpression(expression.expression)}")`;
|
|
61711
61684
|
}
|
|
61712
61685
|
case "isValidAccountNumber":
|
|
61713
61686
|
{
|
|
61714
61687
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
61715
61688
|
const isValidAccountNumberFnName = gn(x => x.isValidAccountNumber);
|
|
61716
|
-
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${expression.bik}", "${expression.account}")`;
|
|
61689
|
+
return `${utilsName}.${isValidAccountNumberFnName}(${pathFnName}, "${generateJsExpression(expression.bik)}", "${generateJsExpression(expression.account)}")`;
|
|
61717
61690
|
}
|
|
61718
61691
|
case "const":
|
|
61719
61692
|
{
|
|
@@ -61894,16 +61867,17 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
61894
61867
|
case "hashSet":
|
|
61895
61868
|
case "length":
|
|
61896
61869
|
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
61897
|
-
case "exists":
|
|
61898
61870
|
case "isSnils":
|
|
61899
61871
|
case "isInn":
|
|
61900
61872
|
case "isOgrn":
|
|
61901
61873
|
case "isRegNumSfr":
|
|
61902
61874
|
case "isValidMirCardNumber":
|
|
61875
|
+
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
61876
|
+
case "exists":
|
|
61903
61877
|
case "multySum":
|
|
61904
61878
|
return `<m:${expression.type} select="${expression.select}" />`;
|
|
61905
61879
|
case "isValidAccountNumber":
|
|
61906
|
-
return `<m:${expression.type}
|
|
61880
|
+
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");
|
|
61907
61881
|
case "makeDict":
|
|
61908
61882
|
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");
|
|
61909
61883
|
case "getSumByKeys":
|
|
@@ -62081,6 +62055,15 @@ function generateBlockKCXmlFormulas(block, parents) {
|
|
|
62081
62055
|
}
|
|
62082
62056
|
return result.join("\n");
|
|
62083
62057
|
}
|
|
62058
|
+
function extractSelectPathOrUndefined(expression) {
|
|
62059
|
+
if (expression.type == "argument") {
|
|
62060
|
+
return expression.select;
|
|
62061
|
+
}
|
|
62062
|
+
if (expression.type == "cast" && expression.expression.type == "argument") {
|
|
62063
|
+
return expression.expression.select;
|
|
62064
|
+
}
|
|
62065
|
+
return undefined;
|
|
62066
|
+
}
|
|
62084
62067
|
function guessConditionTarget(condition) {
|
|
62085
62068
|
let result;
|
|
62086
62069
|
class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.DefaultKCLangExpressionVisitor {
|
|
@@ -62091,32 +62074,32 @@ function guessConditionTarget(condition) {
|
|
|
62091
62074
|
}
|
|
62092
62075
|
visitIsSnilsKCLangNode(node) {
|
|
62093
62076
|
if (result == undefined) {
|
|
62094
|
-
result = node.
|
|
62077
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62095
62078
|
}
|
|
62096
62079
|
}
|
|
62097
62080
|
visitIsRegNumSfrKCLangNode(node) {
|
|
62098
62081
|
if (result == undefined) {
|
|
62099
|
-
result = node.
|
|
62082
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62100
62083
|
}
|
|
62101
62084
|
}
|
|
62102
62085
|
visitIsInnKCLangNode(node) {
|
|
62103
62086
|
if (result == undefined) {
|
|
62104
|
-
result = node.
|
|
62087
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62105
62088
|
}
|
|
62106
62089
|
}
|
|
62107
62090
|
visitIsOgrnKCLangNode(node) {
|
|
62108
62091
|
if (result == undefined) {
|
|
62109
|
-
result = node.
|
|
62092
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62110
62093
|
}
|
|
62111
62094
|
}
|
|
62112
62095
|
visitIsValidMirCardNumberNode(node) {
|
|
62113
62096
|
if (result == undefined) {
|
|
62114
|
-
result = node.
|
|
62097
|
+
result = extractSelectPathOrUndefined(node.expression);
|
|
62115
62098
|
}
|
|
62116
62099
|
}
|
|
62117
62100
|
visitIsValidAccountNumberNode(node) {
|
|
62118
62101
|
if (result == undefined) {
|
|
62119
|
-
result = node.account;
|
|
62102
|
+
result = extractSelectPathOrUndefined(node.account);
|
|
62120
62103
|
}
|
|
62121
62104
|
}
|
|
62122
62105
|
visitArgumentKCLangNode(node) {
|
|
@@ -62143,82 +62126,12 @@ function guessConditionTarget(condition) {
|
|
|
62143
62126
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
62144
62127
|
return result;
|
|
62145
62128
|
}
|
|
62146
|
-
function inferConditionTarget(condition, targetValue) {
|
|
62147
|
-
let result;
|
|
62148
|
-
if (targetValue == undefined) {
|
|
62149
|
-
return undefined;
|
|
62150
|
-
}
|
|
62151
|
-
class InferConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.DefaultKCLangExpressionVisitor {
|
|
62152
|
-
constructor(path) {
|
|
62153
|
-
super();
|
|
62154
|
-
this.path = void 0;
|
|
62155
|
-
this.path = path;
|
|
62156
|
-
}
|
|
62157
|
-
visitExistsKCLangNode(node) {
|
|
62158
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62159
|
-
result = node.select;
|
|
62160
|
-
}
|
|
62161
|
-
}
|
|
62162
|
-
visitIsSnilsKCLangNode(node) {
|
|
62163
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62164
|
-
result = node.select;
|
|
62165
|
-
}
|
|
62166
|
-
}
|
|
62167
|
-
visitIsRegNumSfrKCLangNode(node) {
|
|
62168
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62169
|
-
result = node.select;
|
|
62170
|
-
}
|
|
62171
|
-
}
|
|
62172
|
-
visitIsInnKCLangNode(node) {
|
|
62173
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62174
|
-
result = node.select;
|
|
62175
|
-
}
|
|
62176
|
-
}
|
|
62177
|
-
visitIsOgrnKCLangNode(node) {
|
|
62178
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62179
|
-
result = node.select;
|
|
62180
|
-
}
|
|
62181
|
-
}
|
|
62182
|
-
visitIsValidMirCardNumberNode(node) {
|
|
62183
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62184
|
-
result = node.select;
|
|
62185
|
-
}
|
|
62186
|
-
}
|
|
62187
|
-
visitIsValidAccountNumberNode(node) {
|
|
62188
|
-
if (result == undefined && node.account.endsWith(this.path)) {
|
|
62189
|
-
result = node.account;
|
|
62190
|
-
}
|
|
62191
|
-
}
|
|
62192
|
-
visitArgumentKCLangNode(node) {
|
|
62193
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62194
|
-
result = node.select;
|
|
62195
|
-
}
|
|
62196
|
-
}
|
|
62197
|
-
visitCountKCLangNode(node) {
|
|
62198
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62199
|
-
result = node.select;
|
|
62200
|
-
}
|
|
62201
|
-
}
|
|
62202
|
-
visitInstanceCountKCLangNode(node) {
|
|
62203
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62204
|
-
result = node.select;
|
|
62205
|
-
}
|
|
62206
|
-
}
|
|
62207
|
-
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
62208
|
-
if (result == undefined && node.select.endsWith(this.path)) {
|
|
62209
|
-
result = node.select;
|
|
62210
|
-
}
|
|
62211
|
-
}
|
|
62212
|
-
}
|
|
62213
|
-
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
62214
|
-
return result;
|
|
62215
|
-
}
|
|
62216
62129
|
function generateKCXmlCondition(ast, parentContexts, describe) {
|
|
62217
|
-
var
|
|
62130
|
+
var _ast$target;
|
|
62218
62131
|
const matchPath = joinPaths([...parentContexts.filter(isPathPrefix).map(x => x.path)]);
|
|
62219
62132
|
const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
|
|
62220
62133
|
const descriptionAttr = describe != undefined ? ` description="${escapeHtmlCharacters(formatDescribeStatement(describe))}"` : "";
|
|
62221
|
-
const guessedTarget = (
|
|
62134
|
+
const guessedTarget = (_ast$target = ast.target) !== null && _ast$target !== void 0 ? _ast$target : guessConditionTarget(ast);
|
|
62222
62135
|
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
62223
62136
|
const conditions = [];
|
|
62224
62137
|
const pathPrefixContexts = [];
|
|
@@ -68237,6 +68150,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68237
68150
|
/* harmony export */ FormulaIsOgrnExpression: () => (/* binding */ FormulaIsOgrnExpression),
|
|
68238
68151
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
68239
68152
|
/* harmony export */ FormulaIsSnilsExpression: () => (/* binding */ FormulaIsSnilsExpression),
|
|
68153
|
+
/* harmony export */ FormulaIsValidAccountNumberAccountExpression: () => (/* binding */ FormulaIsValidAccountNumberAccountExpression),
|
|
68154
|
+
/* harmony export */ FormulaIsValidAccountNumberBikExpression: () => (/* binding */ FormulaIsValidAccountNumberBikExpression),
|
|
68240
68155
|
/* harmony export */ FormulaIsValidAccountNumberExpression: () => (/* binding */ FormulaIsValidAccountNumberExpression),
|
|
68241
68156
|
/* harmony export */ FormulaIsValidMirCardNumberExpression: () => (/* binding */ FormulaIsValidMirCardNumberExpression),
|
|
68242
68157
|
/* harmony export */ FormulaJoinExpression: () => (/* binding */ FormulaJoinExpression),
|
|
@@ -68277,7 +68192,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68277
68192
|
|
|
68278
68193
|
|
|
68279
68194
|
|
|
68280
|
-
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,
|
|
68195
|
+
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;
|
|
68281
68196
|
|
|
68282
68197
|
|
|
68283
68198
|
|
|
@@ -68898,488 +68813,516 @@ let FormulaSumOfDayWeightsExpression = (_dec98 = (0,_markupGenerator_Serializer_
|
|
|
68898
68813
|
writable: true,
|
|
68899
68814
|
initializer: null
|
|
68900
68815
|
}), _class86)) || _class85);
|
|
68901
|
-
let FormulaIsSnilsExpression = (_dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68816
|
+
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 {
|
|
68902
68817
|
constructor(...args) {
|
|
68903
68818
|
super(...args);
|
|
68904
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68819
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor56, this);
|
|
68905
68820
|
}
|
|
68906
68821
|
getLegacyExpressionTypeForFunctionName() {
|
|
68907
68822
|
return "isSnils";
|
|
68908
68823
|
}
|
|
68909
|
-
}, _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "
|
|
68824
|
+
}, _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "expression", [_dec101], {
|
|
68910
68825
|
configurable: true,
|
|
68911
68826
|
enumerable: true,
|
|
68912
68827
|
writable: true,
|
|
68913
68828
|
initializer: null
|
|
68914
68829
|
}), _class88)) || _class87);
|
|
68915
|
-
let FormulaIsRegNumSfrExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68830
|
+
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 {
|
|
68916
68831
|
constructor(...args) {
|
|
68917
68832
|
super(...args);
|
|
68918
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68833
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor57, this);
|
|
68919
68834
|
}
|
|
68920
68835
|
getLegacyExpressionTypeForFunctionName() {
|
|
68921
68836
|
return "isRegNumSfr";
|
|
68922
68837
|
}
|
|
68923
|
-
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "
|
|
68838
|
+
}, _descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "expression", [_dec103], {
|
|
68924
68839
|
configurable: true,
|
|
68925
68840
|
enumerable: true,
|
|
68926
68841
|
writable: true,
|
|
68927
68842
|
initializer: null
|
|
68928
68843
|
}), _class90)) || _class89);
|
|
68929
|
-
let FormulaIsInnExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68844
|
+
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 {
|
|
68930
68845
|
constructor(...args) {
|
|
68931
68846
|
super(...args);
|
|
68932
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68847
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor58, this);
|
|
68933
68848
|
}
|
|
68934
68849
|
getLegacyExpressionTypeForFunctionName() {
|
|
68935
68850
|
return "isInn";
|
|
68936
68851
|
}
|
|
68937
|
-
}, _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "
|
|
68852
|
+
}, _descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "expression", [_dec105], {
|
|
68938
68853
|
configurable: true,
|
|
68939
68854
|
enumerable: true,
|
|
68940
68855
|
writable: true,
|
|
68941
68856
|
initializer: null
|
|
68942
68857
|
}), _class92)) || _class91);
|
|
68943
|
-
let FormulaIsOgrnExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isogrn", `Проверка на валидность ОГРН`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68858
|
+
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 {
|
|
68944
68859
|
constructor(...args) {
|
|
68945
68860
|
super(...args);
|
|
68946
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68861
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor59, this);
|
|
68947
68862
|
}
|
|
68948
68863
|
getLegacyExpressionTypeForFunctionName() {
|
|
68949
68864
|
return "isOgrn";
|
|
68950
68865
|
}
|
|
68951
|
-
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "
|
|
68866
|
+
}, _descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "expression", [_dec107], {
|
|
68952
68867
|
configurable: true,
|
|
68953
68868
|
enumerable: true,
|
|
68954
68869
|
writable: true,
|
|
68955
68870
|
initializer: null
|
|
68956
68871
|
}), _class94)) || _class93);
|
|
68957
|
-
let FormulaIsValidMirCardNumberExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.
|
|
68872
|
+
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 {
|
|
68958
68873
|
constructor(...args) {
|
|
68959
68874
|
super(...args);
|
|
68960
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68875
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor60, this);
|
|
68961
68876
|
}
|
|
68962
68877
|
getLegacyExpressionTypeForFunctionName() {
|
|
68963
68878
|
return "isValidMirCardNumber";
|
|
68964
68879
|
}
|
|
68965
|
-
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "
|
|
68880
|
+
}, _descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "expression", [_dec109], {
|
|
68966
68881
|
configurable: true,
|
|
68967
68882
|
enumerable: true,
|
|
68968
68883
|
writable: true,
|
|
68969
68884
|
initializer: null
|
|
68970
68885
|
}), _class96)) || _class95);
|
|
68971
|
-
let
|
|
68886
|
+
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 {
|
|
68972
68887
|
constructor(...args) {
|
|
68973
68888
|
super(...args);
|
|
68974
68889
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor61, this);
|
|
68890
|
+
}
|
|
68891
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
68892
|
+
return "isValidAccountNumberBik";
|
|
68893
|
+
}
|
|
68894
|
+
}, _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "bik", [_dec111], {
|
|
68895
|
+
configurable: true,
|
|
68896
|
+
enumerable: true,
|
|
68897
|
+
writable: true,
|
|
68898
|
+
initializer: null
|
|
68899
|
+
}), _class98)) || _class97);
|
|
68900
|
+
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 {
|
|
68901
|
+
constructor(...args) {
|
|
68902
|
+
super(...args);
|
|
68975
68903
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor62, this);
|
|
68976
68904
|
}
|
|
68905
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
68906
|
+
return "isValidAccountNumberAccount";
|
|
68907
|
+
}
|
|
68908
|
+
}, _descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "account", [_dec113], {
|
|
68909
|
+
configurable: true,
|
|
68910
|
+
enumerable: true,
|
|
68911
|
+
writable: true,
|
|
68912
|
+
initializer: null
|
|
68913
|
+
}), _class100)) || _class99);
|
|
68914
|
+
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 {
|
|
68915
|
+
constructor(...args) {
|
|
68916
|
+
super(...args);
|
|
68917
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor63, this);
|
|
68918
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor64, this);
|
|
68919
|
+
}
|
|
68977
68920
|
getLegacyExpressionTypeForFunctionName() {
|
|
68978
68921
|
return "isValidAccountNumber";
|
|
68979
68922
|
}
|
|
68980
|
-
},
|
|
68923
|
+
}, _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "bik", [_dec115], {
|
|
68981
68924
|
configurable: true,
|
|
68982
68925
|
enumerable: true,
|
|
68983
68926
|
writable: true,
|
|
68984
68927
|
initializer: null
|
|
68985
|
-
}),
|
|
68928
|
+
}), _descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "account", [_dec116], {
|
|
68986
68929
|
configurable: true,
|
|
68987
68930
|
enumerable: true,
|
|
68988
68931
|
writable: true,
|
|
68989
68932
|
initializer: null
|
|
68990
|
-
}),
|
|
68991
|
-
let FormulaArgumentExpression = (
|
|
68933
|
+
}), _class102)) || _class101);
|
|
68934
|
+
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 {
|
|
68992
68935
|
constructor(...args) {
|
|
68993
68936
|
super(...args);
|
|
68994
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
68995
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
68937
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor65, this);
|
|
68938
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor66, this);
|
|
68996
68939
|
}
|
|
68997
|
-
},
|
|
68940
|
+
}, _descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "select", [_dec118], {
|
|
68998
68941
|
configurable: true,
|
|
68999
68942
|
enumerable: true,
|
|
69000
68943
|
writable: true,
|
|
69001
68944
|
initializer: null
|
|
69002
|
-
}),
|
|
68945
|
+
}), _descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "type", [_dec119], {
|
|
69003
68946
|
configurable: true,
|
|
69004
68947
|
enumerable: true,
|
|
69005
68948
|
writable: true,
|
|
69006
68949
|
initializer: function () {
|
|
69007
68950
|
return "decimal";
|
|
69008
68951
|
}
|
|
69009
|
-
}),
|
|
69010
|
-
let FormulaArrayExpression = (
|
|
68952
|
+
}), _class104)) || _class103);
|
|
68953
|
+
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 {
|
|
69011
68954
|
constructor(...args) {
|
|
69012
68955
|
super(...args);
|
|
69013
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
68956
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor67, this);
|
|
69014
68957
|
}
|
|
69015
|
-
},
|
|
68958
|
+
}, _descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "items", [_dec121], {
|
|
69016
68959
|
configurable: true,
|
|
69017
68960
|
enumerable: true,
|
|
69018
68961
|
writable: true,
|
|
69019
68962
|
initializer: null
|
|
69020
|
-
}),
|
|
69021
|
-
let FormulaFilterColumnExpression = (
|
|
68963
|
+
}), _class106)) || _class105);
|
|
68964
|
+
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 {
|
|
69022
68965
|
constructor(...args) {
|
|
69023
68966
|
super(...args);
|
|
69024
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
68967
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor68, this);
|
|
69025
68968
|
}
|
|
69026
|
-
},
|
|
68969
|
+
}, _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class108.prototype, "filterColumn", [_dec123], {
|
|
69027
68970
|
configurable: true,
|
|
69028
68971
|
enumerable: true,
|
|
69029
68972
|
writable: true,
|
|
69030
68973
|
initializer: null
|
|
69031
|
-
}),
|
|
69032
|
-
let FormulaFilterKeyExpression = (
|
|
68974
|
+
}), _class108)) || _class107);
|
|
68975
|
+
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 {
|
|
69033
68976
|
constructor(...args) {
|
|
69034
68977
|
super(...args);
|
|
69035
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
68978
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor69, this);
|
|
69036
68979
|
}
|
|
69037
|
-
},
|
|
68980
|
+
}, _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "filterKey", [_dec125], {
|
|
69038
68981
|
configurable: true,
|
|
69039
68982
|
enumerable: true,
|
|
69040
68983
|
writable: true,
|
|
69041
68984
|
initializer: null
|
|
69042
|
-
}),
|
|
69043
|
-
let FormulaGetPicklistValuesExpression = (
|
|
68985
|
+
}), _class110)) || _class109);
|
|
68986
|
+
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 {
|
|
69044
68987
|
constructor(...args) {
|
|
69045
68988
|
super(...args);
|
|
69046
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
69047
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
69048
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
69049
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn",
|
|
68989
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor70, this);
|
|
68990
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor71, this);
|
|
68991
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor72, this);
|
|
68992
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn", _descriptor73, this);
|
|
69050
68993
|
}
|
|
69051
68994
|
getLegacyExpressionTypeForFunctionName() {
|
|
69052
68995
|
return "getPicklistValues";
|
|
69053
68996
|
}
|
|
69054
|
-
},
|
|
68997
|
+
}, _descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "gId", [_dec127], {
|
|
69055
68998
|
configurable: true,
|
|
69056
68999
|
enumerable: true,
|
|
69057
69000
|
writable: true,
|
|
69058
69001
|
initializer: null
|
|
69059
|
-
}),
|
|
69002
|
+
}), _descriptor71 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "filterColumn", [_dec128], {
|
|
69060
69003
|
configurable: true,
|
|
69061
69004
|
enumerable: true,
|
|
69062
69005
|
writable: true,
|
|
69063
69006
|
initializer: null
|
|
69064
|
-
}),
|
|
69007
|
+
}), _descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "filterKey", [_dec129], {
|
|
69065
69008
|
configurable: true,
|
|
69066
69009
|
enumerable: true,
|
|
69067
69010
|
writable: true,
|
|
69068
69011
|
initializer: null
|
|
69069
|
-
}),
|
|
69012
|
+
}), _descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "resultColumn", [_dec130], {
|
|
69070
69013
|
configurable: true,
|
|
69071
69014
|
enumerable: true,
|
|
69072
69015
|
writable: true,
|
|
69073
69016
|
initializer: null
|
|
69074
|
-
}),
|
|
69075
|
-
let FormulaFirstOrDefaultExpression = (
|
|
69017
|
+
}), _class112)) || _class111);
|
|
69018
|
+
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 {
|
|
69076
69019
|
constructor(...args) {
|
|
69077
69020
|
super(...args);
|
|
69078
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69021
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor74, this);
|
|
69079
69022
|
}
|
|
69080
|
-
},
|
|
69023
|
+
}, _descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "expression", [_dec132], {
|
|
69081
69024
|
configurable: true,
|
|
69082
69025
|
enumerable: true,
|
|
69083
69026
|
writable: true,
|
|
69084
69027
|
initializer: null
|
|
69085
|
-
}),
|
|
69086
|
-
let FormulaHashSetExpression = (
|
|
69028
|
+
}), _class114)) || _class113);
|
|
69029
|
+
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 {
|
|
69087
69030
|
constructor(...args) {
|
|
69088
69031
|
super(...args);
|
|
69089
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69032
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor75, this);
|
|
69090
69033
|
}
|
|
69091
|
-
},
|
|
69034
|
+
}, _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class116.prototype, "expression", [_dec134], {
|
|
69092
69035
|
configurable: true,
|
|
69093
69036
|
enumerable: true,
|
|
69094
69037
|
writable: true,
|
|
69095
69038
|
initializer: null
|
|
69096
|
-
}),
|
|
69097
|
-
let FormulaExistsExpression = (
|
|
69039
|
+
}), _class116)) || _class115);
|
|
69040
|
+
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 {
|
|
69098
69041
|
constructor(...args) {
|
|
69099
69042
|
super(...args);
|
|
69100
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69043
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor76, this);
|
|
69101
69044
|
}
|
|
69102
69045
|
getLegacyExpressionTypeForFunctionName() {
|
|
69103
69046
|
return "exists";
|
|
69104
69047
|
}
|
|
69105
|
-
},
|
|
69048
|
+
}, _descriptor76 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "select", [_dec136], {
|
|
69106
69049
|
configurable: true,
|
|
69107
69050
|
enumerable: true,
|
|
69108
69051
|
writable: true,
|
|
69109
69052
|
initializer: null
|
|
69110
|
-
}),
|
|
69111
|
-
let FormulaMultySumExpression = (
|
|
69053
|
+
}), _class118)) || _class117);
|
|
69054
|
+
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 {
|
|
69112
69055
|
constructor(...args) {
|
|
69113
69056
|
super(...args);
|
|
69114
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69057
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor77, this);
|
|
69115
69058
|
}
|
|
69116
|
-
},
|
|
69059
|
+
}, _descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class120.prototype, "select", [_dec138], {
|
|
69117
69060
|
configurable: true,
|
|
69118
69061
|
enumerable: true,
|
|
69119
69062
|
writable: true,
|
|
69120
69063
|
initializer: null
|
|
69121
|
-
}),
|
|
69122
|
-
let FormulaCountExpression = (
|
|
69064
|
+
}), _class120)) || _class119);
|
|
69065
|
+
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 {
|
|
69123
69066
|
constructor(...args) {
|
|
69124
69067
|
super(...args);
|
|
69125
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69126
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues",
|
|
69068
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor78, this);
|
|
69069
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor79, this);
|
|
69127
69070
|
}
|
|
69128
|
-
},
|
|
69071
|
+
}, _descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "select", [_dec140], {
|
|
69129
69072
|
configurable: true,
|
|
69130
69073
|
enumerable: true,
|
|
69131
69074
|
writable: true,
|
|
69132
69075
|
initializer: null
|
|
69133
|
-
}),
|
|
69076
|
+
}), _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "withNullOrEmptyValues", [_dec141], {
|
|
69134
69077
|
configurable: true,
|
|
69135
69078
|
enumerable: true,
|
|
69136
69079
|
writable: true,
|
|
69137
69080
|
initializer: null
|
|
69138
|
-
}),
|
|
69139
|
-
let FormulaInstanceCountExpression = (
|
|
69081
|
+
}), _class122)) || _class121);
|
|
69082
|
+
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 {
|
|
69140
69083
|
constructor(...args) {
|
|
69141
69084
|
super(...args);
|
|
69142
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69085
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor80, this);
|
|
69143
69086
|
}
|
|
69144
|
-
},
|
|
69087
|
+
}, _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "select", [_dec143], {
|
|
69145
69088
|
configurable: true,
|
|
69146
69089
|
enumerable: true,
|
|
69147
69090
|
writable: true,
|
|
69148
69091
|
initializer: null
|
|
69149
|
-
}),
|
|
69150
|
-
let FormulaIsEqualToAutoCalculatedExpression = (
|
|
69092
|
+
}), _class124)) || _class123);
|
|
69093
|
+
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 {
|
|
69151
69094
|
constructor(...args) {
|
|
69152
69095
|
super(...args);
|
|
69153
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
69154
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
69096
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor81, this);
|
|
69097
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor82, this);
|
|
69155
69098
|
}
|
|
69156
|
-
},
|
|
69099
|
+
}, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "select", [_dec145], {
|
|
69157
69100
|
configurable: true,
|
|
69158
69101
|
enumerable: true,
|
|
69159
69102
|
writable: true,
|
|
69160
69103
|
initializer: null
|
|
69161
|
-
}),
|
|
69104
|
+
}), _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "type", [_dec146], {
|
|
69162
69105
|
configurable: true,
|
|
69163
69106
|
enumerable: true,
|
|
69164
69107
|
writable: true,
|
|
69165
69108
|
initializer: null
|
|
69166
|
-
}),
|
|
69167
|
-
let FormulaJoinExpression = (
|
|
69109
|
+
}), _class126)) || _class125);
|
|
69110
|
+
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 {
|
|
69168
69111
|
constructor(...args) {
|
|
69169
69112
|
super(...args);
|
|
69170
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array",
|
|
69113
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor83, this);
|
|
69171
69114
|
}
|
|
69172
|
-
},
|
|
69115
|
+
}, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "array", [_dec148], {
|
|
69173
69116
|
configurable: true,
|
|
69174
69117
|
enumerable: true,
|
|
69175
69118
|
writable: true,
|
|
69176
69119
|
initializer: null
|
|
69177
|
-
}),
|
|
69178
|
-
let FormulaPropertyByNameExpression = (
|
|
69120
|
+
}), _class128)) || _class127);
|
|
69121
|
+
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 {
|
|
69179
69122
|
constructor(...args) {
|
|
69180
69123
|
super(...args);
|
|
69181
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name",
|
|
69124
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor84, this);
|
|
69182
69125
|
}
|
|
69183
|
-
},
|
|
69126
|
+
}, _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class130.prototype, "name", [_dec150], {
|
|
69184
69127
|
configurable: true,
|
|
69185
69128
|
enumerable: true,
|
|
69186
69129
|
writable: true,
|
|
69187
69130
|
initializer: null
|
|
69188
|
-
}),
|
|
69189
|
-
let FormulaConcatExpression = (
|
|
69131
|
+
}), _class130)) || _class129);
|
|
69132
|
+
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 {
|
|
69190
69133
|
constructor(...args) {
|
|
69191
69134
|
super(...args);
|
|
69192
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments",
|
|
69135
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor85, this);
|
|
69193
69136
|
}
|
|
69194
|
-
},
|
|
69137
|
+
}, _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class132.prototype, "arguments", [_dec152], {
|
|
69195
69138
|
configurable: true,
|
|
69196
69139
|
enumerable: true,
|
|
69197
69140
|
writable: true,
|
|
69198
69141
|
initializer: null
|
|
69199
|
-
}),
|
|
69200
|
-
let FormulaNewLineExpression = (
|
|
69201
|
-
let Formula = (
|
|
69142
|
+
}), _class132)) || _class131);
|
|
69143
|
+
let FormulaNewLineExpression = (_dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec153(_class133 = class FormulaNewLineExpression extends FormulaExpression {}) || _class133);
|
|
69144
|
+
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 {
|
|
69202
69145
|
constructor(...args) {
|
|
69203
69146
|
super(...args);
|
|
69204
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
69205
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
69206
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69147
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor86, this);
|
|
69148
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor87, this);
|
|
69149
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor88, this);
|
|
69207
69150
|
}
|
|
69208
|
-
},
|
|
69151
|
+
}, _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "match", [_dec155], {
|
|
69209
69152
|
configurable: true,
|
|
69210
69153
|
enumerable: true,
|
|
69211
69154
|
writable: true,
|
|
69212
69155
|
initializer: null
|
|
69213
|
-
}),
|
|
69156
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "target", [_dec156], {
|
|
69214
69157
|
configurable: true,
|
|
69215
69158
|
enumerable: true,
|
|
69216
69159
|
writable: true,
|
|
69217
69160
|
initializer: null
|
|
69218
|
-
}),
|
|
69161
|
+
}), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "expression", [_dec157], {
|
|
69219
69162
|
configurable: true,
|
|
69220
69163
|
enumerable: true,
|
|
69221
69164
|
writable: true,
|
|
69222
69165
|
initializer: null
|
|
69223
|
-
}),
|
|
69224
|
-
let FormulaNoDepsNode = (
|
|
69166
|
+
}), _class135)) || _class134);
|
|
69167
|
+
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 {
|
|
69225
69168
|
constructor(...args) {
|
|
69226
69169
|
super(...args);
|
|
69227
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69170
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor89, this);
|
|
69228
69171
|
}
|
|
69229
|
-
},
|
|
69172
|
+
}, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "expression", [_dec159], {
|
|
69230
69173
|
configurable: true,
|
|
69231
69174
|
enumerable: true,
|
|
69232
69175
|
writable: true,
|
|
69233
69176
|
initializer: null
|
|
69234
|
-
}),
|
|
69235
|
-
let Formulas = (
|
|
69177
|
+
}), _class137)) || _class136);
|
|
69178
|
+
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 {
|
|
69236
69179
|
constructor(...args) {
|
|
69237
69180
|
super(...args);
|
|
69238
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69181
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor90, this);
|
|
69239
69182
|
}
|
|
69240
|
-
},
|
|
69183
|
+
}, _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "items", [_dec161], {
|
|
69241
69184
|
configurable: true,
|
|
69242
69185
|
enumerable: true,
|
|
69243
69186
|
writable: true,
|
|
69244
69187
|
initializer: null
|
|
69245
|
-
}),
|
|
69246
|
-
let ConditionNode = (
|
|
69188
|
+
}), _class139)) || _class138);
|
|
69189
|
+
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 {
|
|
69247
69190
|
constructor(...args) {
|
|
69248
69191
|
super(...args);
|
|
69249
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
69250
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
69251
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
69252
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
69253
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
69192
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor91, this);
|
|
69193
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor92, this);
|
|
69194
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor93, this);
|
|
69195
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor94, this);
|
|
69196
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor95, this);
|
|
69254
69197
|
}
|
|
69255
|
-
},
|
|
69198
|
+
}, _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "match", [_dec163], {
|
|
69256
69199
|
configurable: true,
|
|
69257
69200
|
enumerable: true,
|
|
69258
69201
|
writable: true,
|
|
69259
69202
|
initializer: null
|
|
69260
|
-
}),
|
|
69203
|
+
}), _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "target", [_dec164], {
|
|
69261
69204
|
configurable: true,
|
|
69262
69205
|
enumerable: true,
|
|
69263
69206
|
writable: true,
|
|
69264
69207
|
initializer: null
|
|
69265
|
-
}),
|
|
69208
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "description", [_dec165], {
|
|
69266
69209
|
configurable: true,
|
|
69267
69210
|
enumerable: true,
|
|
69268
69211
|
writable: true,
|
|
69269
69212
|
initializer: null
|
|
69270
|
-
}),
|
|
69213
|
+
}), _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "errorLevel", [_dec166], {
|
|
69271
69214
|
configurable: true,
|
|
69272
69215
|
enumerable: true,
|
|
69273
69216
|
writable: true,
|
|
69274
69217
|
initializer: null
|
|
69275
|
-
}),
|
|
69218
|
+
}), _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "expression", [_dec167], {
|
|
69276
69219
|
configurable: true,
|
|
69277
69220
|
enumerable: true,
|
|
69278
69221
|
writable: true,
|
|
69279
69222
|
initializer: null
|
|
69280
|
-
}),
|
|
69281
|
-
let ConditionsNode = (
|
|
69223
|
+
}), _class141)) || _class140);
|
|
69224
|
+
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 {
|
|
69282
69225
|
constructor(...args) {
|
|
69283
69226
|
super(...args);
|
|
69284
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
69227
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor96, this);
|
|
69285
69228
|
}
|
|
69286
|
-
},
|
|
69229
|
+
}, _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "items", [_dec169], {
|
|
69287
69230
|
configurable: true,
|
|
69288
69231
|
enumerable: true,
|
|
69289
69232
|
writable: true,
|
|
69290
69233
|
initializer: null
|
|
69291
|
-
}),
|
|
69292
|
-
let MathContainer = (
|
|
69234
|
+
}), _class143)) || _class142);
|
|
69235
|
+
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 {
|
|
69293
69236
|
constructor(...args) {
|
|
69294
69237
|
super(...args);
|
|
69295
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
69296
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
69238
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor97, this);
|
|
69239
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor98, this);
|
|
69297
69240
|
}
|
|
69298
|
-
},
|
|
69241
|
+
}, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "formulas", [_dec171], {
|
|
69299
69242
|
configurable: true,
|
|
69300
69243
|
enumerable: true,
|
|
69301
69244
|
writable: true,
|
|
69302
69245
|
initializer: null
|
|
69303
|
-
}),
|
|
69246
|
+
}), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "conditions", [_dec172], {
|
|
69304
69247
|
configurable: true,
|
|
69305
69248
|
enumerable: true,
|
|
69306
69249
|
writable: true,
|
|
69307
69250
|
initializer: null
|
|
69308
|
-
}),
|
|
69309
|
-
let FormulaMakeDictExpression = (
|
|
69251
|
+
}), _class145)) || _class144);
|
|
69252
|
+
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 {
|
|
69310
69253
|
constructor(...args) {
|
|
69311
69254
|
super(...args);
|
|
69312
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69313
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression",
|
|
69255
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor99, this);
|
|
69256
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor100, this);
|
|
69314
69257
|
}
|
|
69315
|
-
},
|
|
69258
|
+
}, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec174], {
|
|
69316
69259
|
configurable: true,
|
|
69317
69260
|
enumerable: true,
|
|
69318
69261
|
writable: true,
|
|
69319
69262
|
initializer: null
|
|
69320
|
-
}),
|
|
69263
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceValueExpression", [_dec175], {
|
|
69321
69264
|
configurable: true,
|
|
69322
69265
|
enumerable: true,
|
|
69323
69266
|
writable: true,
|
|
69324
69267
|
initializer: null
|
|
69325
|
-
}),
|
|
69326
|
-
let FormulaGetSumByKeysExpression = (
|
|
69268
|
+
}), _class147)) || _class146);
|
|
69269
|
+
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 {
|
|
69327
69270
|
constructor(...args) {
|
|
69328
69271
|
super(...args);
|
|
69329
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
69330
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69272
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor101, this);
|
|
69273
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor102, this);
|
|
69331
69274
|
}
|
|
69332
|
-
},
|
|
69275
|
+
}, _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "dictPath", [_dec177], {
|
|
69333
69276
|
configurable: true,
|
|
69334
69277
|
enumerable: true,
|
|
69335
69278
|
writable: true,
|
|
69336
69279
|
initializer: null
|
|
69337
|
-
}),
|
|
69280
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "targetKeys", [_dec178], {
|
|
69338
69281
|
configurable: true,
|
|
69339
69282
|
enumerable: true,
|
|
69340
69283
|
writable: true,
|
|
69341
69284
|
initializer: null
|
|
69342
|
-
}),
|
|
69343
|
-
let FormulaGroupSumExpression = (
|
|
69285
|
+
}), _class149)) || _class148);
|
|
69286
|
+
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 {
|
|
69344
69287
|
constructor(...args) {
|
|
69345
69288
|
super(...args);
|
|
69346
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69347
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69348
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath",
|
|
69289
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor103, this);
|
|
69290
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor104, this);
|
|
69291
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor105, this);
|
|
69349
69292
|
}
|
|
69350
|
-
},
|
|
69293
|
+
}, _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "targetKeys", [_dec180], {
|
|
69351
69294
|
configurable: true,
|
|
69352
69295
|
enumerable: true,
|
|
69353
69296
|
writable: true,
|
|
69354
69297
|
initializer: null
|
|
69355
|
-
}),
|
|
69298
|
+
}), _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "sourceKeyPath", [_dec181], {
|
|
69356
69299
|
configurable: true,
|
|
69357
69300
|
enumerable: true,
|
|
69358
69301
|
writable: true,
|
|
69359
69302
|
initializer: null
|
|
69360
|
-
}),
|
|
69303
|
+
}), _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class151.prototype, "sourceValuePath", [_dec182], {
|
|
69361
69304
|
configurable: true,
|
|
69362
69305
|
enumerable: true,
|
|
69363
69306
|
writable: true,
|
|
69364
69307
|
initializer: null
|
|
69365
|
-
}),
|
|
69366
|
-
let FormulaGroupCountExpression = (
|
|
69308
|
+
}), _class151)) || _class150);
|
|
69309
|
+
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 {
|
|
69367
69310
|
constructor(...args) {
|
|
69368
69311
|
super(...args);
|
|
69369
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
69370
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69312
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor106, this);
|
|
69313
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor107, this);
|
|
69371
69314
|
}
|
|
69372
|
-
},
|
|
69315
|
+
}, _descriptor106 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class153.prototype, "targetKeys", [_dec184], {
|
|
69373
69316
|
configurable: true,
|
|
69374
69317
|
enumerable: true,
|
|
69375
69318
|
writable: true,
|
|
69376
69319
|
initializer: null
|
|
69377
|
-
}),
|
|
69320
|
+
}), _descriptor107 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class153.prototype, "sourceKeyPath", [_dec185], {
|
|
69378
69321
|
configurable: true,
|
|
69379
69322
|
enumerable: true,
|
|
69380
69323
|
writable: true,
|
|
69381
69324
|
initializer: null
|
|
69382
|
-
}),
|
|
69325
|
+
}), _class153)) || _class152);
|
|
69383
69326
|
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];
|
|
69384
69327
|
|
|
69385
69328
|
/***/ }),
|
|
@@ -71800,36 +71743,29 @@ class KCXmlGeneratorBase {
|
|
|
71800
71743
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
71801
71744
|
}
|
|
71802
71745
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
71803
|
-
const
|
|
71804
|
-
|
|
71805
|
-
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
71746
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71747
|
+
return gcf(x => x.isSnils, value);
|
|
71806
71748
|
}
|
|
71807
71749
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsRegNumSfrExpression) {
|
|
71808
|
-
const
|
|
71809
|
-
|
|
71810
|
-
return gcf(x => x.isRegNumSfr, `"${modelPath.toLegacyPath()}"`);
|
|
71750
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71751
|
+
return gcf(x => x.isRegNumSfr, value);
|
|
71811
71752
|
}
|
|
71812
71753
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
71813
|
-
const
|
|
71814
|
-
|
|
71815
|
-
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
71754
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71755
|
+
return gcf(x => x.isInn, value);
|
|
71816
71756
|
}
|
|
71817
71757
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsOgrnExpression) {
|
|
71818
|
-
const
|
|
71819
|
-
|
|
71820
|
-
return gcf(x => x.isOgrn, `"${modelPath.toLegacyPath()}"`);
|
|
71758
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71759
|
+
return gcf(x => x.isOgrn, value);
|
|
71821
71760
|
}
|
|
71822
71761
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
71823
|
-
const
|
|
71824
|
-
|
|
71825
|
-
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
71762
|
+
const value = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
71763
|
+
return gcf(x => x.isValidMirCardNumber, value);
|
|
71826
71764
|
}
|
|
71827
71765
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
71828
|
-
const
|
|
71829
|
-
const
|
|
71830
|
-
|
|
71831
|
-
deps.push(new RegularDependency(accountPath));
|
|
71832
|
-
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
71766
|
+
const bikValue = this.compileExpression(prefix, targetFullPath, expression.bik.bik, deps);
|
|
71767
|
+
const accountValue = this.compileExpression(prefix, targetFullPath, expression.account.account, deps);
|
|
71768
|
+
return gcf(x => x.isValidAccountNumber, bikValue, accountValue);
|
|
71833
71769
|
}
|
|
71834
71770
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
71835
71771
|
var _expression$withNullO;
|
|
@@ -72439,52 +72375,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72439
72375
|
/* harmony import */ var _common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
72440
72376
|
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
72441
72377
|
/* harmony import */ var _Common_SerializationUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../Common/SerializationUtils */ "./Common/SerializationUtils.ts");
|
|
72442
|
-
/* harmony import */ var
|
|
72443
|
-
/* harmony import */ var
|
|
72444
|
-
/* harmony import */ var
|
|
72445
|
-
/* harmony import */ var
|
|
72446
|
-
/* harmony import */ var
|
|
72447
|
-
/* harmony import */ var
|
|
72448
|
-
/* harmony import */ var
|
|
72449
|
-
/* harmony import */ var
|
|
72450
|
-
/* harmony import */ var
|
|
72451
|
-
/* harmony import */ var
|
|
72452
|
-
/* harmony import */ var
|
|
72453
|
-
/* harmony import */ var
|
|
72454
|
-
/* harmony import */ var
|
|
72455
|
-
/* harmony import */ var
|
|
72456
|
-
/* harmony import */ var
|
|
72457
|
-
/* harmony import */ var
|
|
72458
|
-
/* harmony import */ var
|
|
72459
|
-
/* harmony import */ var
|
|
72460
|
-
/* harmony import */ var
|
|
72461
|
-
/* harmony import */ var
|
|
72462
|
-
/* harmony import */ var
|
|
72463
|
-
/* harmony import */ var
|
|
72464
|
-
/* harmony import */ var
|
|
72465
|
-
/* harmony import */ var
|
|
72466
|
-
/* harmony import */ var
|
|
72467
|
-
/* harmony import */ var
|
|
72468
|
-
/* harmony import */ var
|
|
72469
|
-
/* harmony import */ var
|
|
72470
|
-
/* harmony import */ var
|
|
72471
|
-
/* harmony import */ var
|
|
72472
|
-
/* harmony import */ var
|
|
72473
|
-
/* harmony import */ var
|
|
72474
|
-
/* harmony import */ var
|
|
72475
|
-
/* harmony import */ var
|
|
72476
|
-
/* harmony import */ var
|
|
72477
|
-
/* harmony import */ var
|
|
72478
|
-
/* harmony import */ var
|
|
72479
|
-
/* harmony import */ var
|
|
72480
|
-
/* harmony import */ var
|
|
72481
|
-
/* harmony import */ var
|
|
72482
|
-
/* harmony import */ var
|
|
72483
|
-
/* harmony import */ var
|
|
72484
|
-
/* harmony import */ var
|
|
72485
|
-
/* harmony import */ var
|
|
72486
|
-
/* harmony import */ var
|
|
72487
|
-
/* harmony import */ var
|
|
72378
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
72379
|
+
/* harmony import */ var _localization_localization__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./localization/localization */ "./Generator/src/generators/localization/localization.ts");
|
|
72380
|
+
/* harmony import */ var _markupGenerator_controlCustomization_ControlCustomizationContextBuilder__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./markupGenerator/controlCustomization/ControlCustomizationContextBuilder */ "./Generator/src/generators/markupGenerator/controlCustomization/ControlCustomizationContextBuilder.ts");
|
|
72381
|
+
/* harmony import */ var _markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./markupGenerator/getSettings */ "./Generator/src/generators/markupGenerator/getSettings.ts");
|
|
72382
|
+
/* harmony import */ var _markupGenerator_IFarmFileSystem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./markupGenerator/IFarmFileSystem */ "./Generator/src/generators/markupGenerator/IFarmFileSystem.ts");
|
|
72383
|
+
/* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./markupGenerator/ElementProcessors/FormParts/Form/FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
|
|
72384
|
+
/* harmony import */ var _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./markupGenerator/MarkupGenerator */ "./Generator/src/generators/markupGenerator/MarkupGenerator.ts");
|
|
72385
|
+
/* harmony import */ var _markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./markupGenerator/SugarNodes/DefaultSugarSerializer */ "./Generator/src/generators/markupGenerator/SugarNodes/DefaultSugarSerializer.ts");
|
|
72386
|
+
/* harmony import */ var _markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./markupGenerator/SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
72387
|
+
/* harmony import */ var _validationGenerator_TypesRegistry__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./validationGenerator/TypesRegistry */ "./Generator/src/generators/validationGenerator/TypesRegistry.ts");
|
|
72388
|
+
/* harmony import */ var _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./validationGenerator/ValidationGenerator */ "./Generator/src/generators/validationGenerator/ValidationGenerator.ts");
|
|
72389
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader.ts");
|
|
72390
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsGenerator__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./AutoCalculationsGenerator/AutoCalculationsGenerator */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsGenerator.ts");
|
|
72391
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationGenerator */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerator.ts");
|
|
72392
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
|
|
72393
|
+
/* harmony import */ var _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./FormSourcesBuilder/FormSourcesBuilder */ "./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts");
|
|
72394
|
+
/* harmony import */ var _HelperFunctionsGenerator_HelperFunctionsGenerator__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./HelperFunctionsGenerator/HelperFunctionsGenerator */ "./Generator/src/generators/HelperFunctionsGenerator/HelperFunctionsGenerator.ts");
|
|
72395
|
+
/* harmony import */ var _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./KCXmlValidationGenerator/KCXmlValidationGenerator */ "./Generator/src/generators/KCXmlValidationGenerator/KCXmlValidationGenerator.ts");
|
|
72396
|
+
/* harmony import */ var _RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./RequisiteLIst/requisiteList */ "./Generator/src/generators/RequisiteLIst/requisiteList.ts");
|
|
72397
|
+
/* harmony import */ var _ServerSideFLangNormalization_Normalizers_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ServerSideFLangNormalization/Normalizers/NormalizationRulesGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/Normalizers/NormalizationRulesGenerator.ts");
|
|
72398
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationGenerationTimeHelper */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationTimeHelper.ts");
|
|
72399
|
+
/* harmony import */ var _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./AttachmentPaths/AttachmentPathsGenerator */ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts");
|
|
72400
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./AutoCalculationsGenerator/AutoCalculationsFromFormulas/Calculator2/AutoCalculationsCalculator2Generator */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/Calculator2/AutoCalculationsCalculator2Generator.ts");
|
|
72401
|
+
/* harmony import */ var _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator */ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts");
|
|
72402
|
+
/* harmony import */ var _ServerSideFLangNormalization_Normalizers_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./ServerSideFLangNormalization/Normalizers/FormulaOnlyNormalizationRuleGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/Normalizers/FormulaOnlyNormalizationRuleGenerator.ts");
|
|
72403
|
+
/* harmony import */ var _HelperFunctionsGenerator_CommonHelperFunctionsGenerator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./HelperFunctionsGenerator/CommonHelperFunctionsGenerator */ "./Generator/src/generators/HelperFunctionsGenerator/CommonHelperFunctionsGenerator.ts");
|
|
72404
|
+
/* harmony import */ var _ServerSideFLangNormalization_AdditionalNormalizerFile__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./ServerSideFLangNormalization/AdditionalNormalizerFile */ "./Generator/src/generators/ServerSideFLangNormalization/AdditionalNormalizerFile.ts");
|
|
72405
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalSectionRulesBuilder__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalSectionRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalSectionRulesBuilder.ts");
|
|
72406
|
+
/* harmony import */ var _ServerSideFLangNormalization_FormulaExpressionToFlangExpressionConverter__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ServerSideFLangNormalization/FormulaExpressionToFlangExpressionConverter */ "./Generator/src/generators/ServerSideFLangNormalization/FormulaExpressionToFlangExpressionConverter.ts");
|
|
72407
|
+
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
72408
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_FormulaRulesBuilder__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/FormulaRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/FormulaRulesBuilder.ts");
|
|
72409
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_InitializationRulesBuilder__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/InitializationRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/InitializationRulesBuilder.ts");
|
|
72410
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_LazyLoadingRulesBuilder__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/LazyLoadingRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/LazyLoadingRulesBuilder.ts");
|
|
72411
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_SugarRulesBuilder__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/SugarRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/SugarRulesBuilder.ts");
|
|
72412
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_ValidationRulesBuilder__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/ValidationRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/ValidationRulesBuilder.ts");
|
|
72413
|
+
/* harmony import */ var _ServerSideFLangNormalization_Normalizers_FormulaAndInitOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ServerSideFLangNormalization/Normalizers/FormulaAndInitOnlyNormalizationRuleGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/Normalizers/FormulaAndInitOnlyNormalizationRuleGenerator.ts");
|
|
72414
|
+
/* harmony import */ var _ServerSideFLangNormalization_CustomKCLangToFlangRuleGenerator__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./ServerSideFLangNormalization/CustomKCLangToFlangRuleGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/CustomKCLangToFlangRuleGenerator.ts");
|
|
72415
|
+
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
72416
|
+
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
72417
|
+
/* harmony import */ var _ServerSideFLangNormalization_Normalizers_AutoValueForValueByDefaultNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./ServerSideFLangNormalization/Normalizers/AutoValueForValueByDefaultNormalizationRuleGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/Normalizers/AutoValueForValueByDefaultNormalizationRuleGenerator.ts");
|
|
72418
|
+
/* harmony import */ var _markupGenerator_KCLangCalculationsBuildContext__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./markupGenerator/KCLangCalculationsBuildContext */ "./Generator/src/generators/markupGenerator/KCLangCalculationsBuildContext.ts");
|
|
72419
|
+
/* harmony import */ var _ServerSideFLangNormalization_NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ServerSideFLangNormalization/NodeTypeInfoHelper */ "./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts");
|
|
72420
|
+
/* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
|
|
72421
|
+
/* harmony import */ var _markupGenerator_ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./markupGenerator/ElementProcessors/Commons/NodePathsContext */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/NodePathsContext.ts");
|
|
72422
|
+
/* harmony import */ var _markupGenerator_IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./markupGenerator/IMarkupBuildingContext */ "./Generator/src/generators/markupGenerator/IMarkupBuildingContext.ts");
|
|
72423
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalElementsRulesBuilder__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts");
|
|
72424
|
+
/* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalBlocksRulesBuilder__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts");
|
|
72425
|
+
|
|
72488
72426
|
|
|
72489
72427
|
|
|
72490
72428
|
|
|
@@ -72543,16 +72481,16 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
72543
72481
|
try {
|
|
72544
72482
|
var _sugarRoot$schemaVali, _kxXmlMathContainer$f, _kxXmlMathContainer$f2, _kcLangMathContainer$, _kcLangMathContainer$2, _mathContainerFromSug, _mathContainerFromSug2, _additionalContent$fo, _additionalContent$fo2, _additionalContent$fo3, _additionalContent$fo4, _Iterator$from$map$fl, _mathContainerFromSug3, _mathContainerFromSug4, _generationOptions$in, _generationOptions$in2, _generationOptions$re, _additionalContent$fo5, _additionalContent$fo6, _additionalContent$fo7, _additionalContent$fo8, _additionalContent$fo9, _additionalContent$fo10, _additionalContent$fo11, _additionalContent$fo12;
|
|
72545
72483
|
const sugarAst = (0,_common_SugarXmlParser_SugarParser__WEBPACK_IMPORTED_MODULE_4__.parseSugar)(formSugarContent, additionalContent.preprocessor || {});
|
|
72546
|
-
const serializer = (0,
|
|
72547
|
-
const sugarRoot = (0,
|
|
72484
|
+
const serializer = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_15__.createDefaultSugarSerializer)();
|
|
72485
|
+
const sugarRoot = (0,_markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_16__.strictCastNode)(serializer.deserializeFromSugarXmlNode(sugarAst), _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_13__.FormNode);
|
|
72548
72486
|
const formSchemaRng = _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRng.createFromSchemaRng(additionalContent.schemaRngContent);
|
|
72549
|
-
const typeRegistry = (0,
|
|
72487
|
+
const typeRegistry = (0,_validationGenerator_TypesRegistry__WEBPACK_IMPORTED_MODULE_17__.buildTypesRegistry)(sugarRoot);
|
|
72550
72488
|
const useSchemaValidations = (_sugarRoot$schemaVali = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali !== void 0 ? _sugarRoot$schemaVali : true;
|
|
72551
|
-
const formulaReader = new
|
|
72489
|
+
const formulaReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_19__.FormulaReader();
|
|
72552
72490
|
const kcLangMathContainer = formulaReader.readFormulas(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_6__.KCLangToXmlTranspiler.transpile(additionalContent.kcLangContent));
|
|
72553
|
-
const kxXmlMathContainer = new
|
|
72554
|
-
const kcLangFromSugar = extractKCLangFromSugar(sugarRoot, formSchemaRng, new
|
|
72555
|
-
const builder = new
|
|
72491
|
+
const kxXmlMathContainer = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_19__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent);
|
|
72492
|
+
const kcLangFromSugar = extractKCLangFromSugar(sugarRoot, formSchemaRng, new _ServerSideFLangNormalization_NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_49__.NodeTypeInfoHelper(formSchemaRng, typeRegistry, useSchemaValidations)).map(x => x.toString()).join("\n");
|
|
72493
|
+
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_23__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
72556
72494
|
builder.addBuildOutput("Sugar.generated.kclang", kcLangFromSugar);
|
|
72557
72495
|
const kclangValidatios = Iterator.from(getImportedKclangValidations(sugarRoot, additionalContent)).toArray().join("\n");
|
|
72558
72496
|
const fullKcLangContent = ["// KCLang User Formulas\n\n", additionalContent.kcLangContent, "// KCLang User Validations\n\n", kclangValidatios, "// KCLang Generated Sugar Rules\n\n", kcLangFromSugar].join("\n");
|
|
@@ -72568,47 +72506,47 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
72568
72506
|
return (_container$conditions = (_container$conditions2 = container.conditions) === null || _container$conditions2 === void 0 ? void 0 : _container$conditions2.items) !== null && _container$conditions !== void 0 ? _container$conditions : [];
|
|
72569
72507
|
}).flatMap(x => x).toArray()) !== null && _Iterator$from$map$fl !== void 0 ? _Iterator$from$map$fl : []).concat((_mathContainerFromSug3 = (_mathContainerFromSug4 = mathContainerFromSugar.conditions) === null || _mathContainerFromSug4 === void 0 ? void 0 : _mathContainerFromSug4.items) !== null && _mathContainerFromSug3 !== void 0 ? _mathContainerFromSug3 : []);
|
|
72570
72508
|
const schemaRng = (0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_5__.parseXml)(additionalContent.schemaRngContent);
|
|
72571
|
-
const farmFileSystem = (_generationOptions$in = generationOptions === null || generationOptions === void 0 || (_generationOptions$in2 = generationOptions.internalOptions) === null || _generationOptions$in2 === void 0 ? void 0 : _generationOptions$in2.fileSystem) !== null && _generationOptions$in !== void 0 ? _generationOptions$in : new
|
|
72572
|
-
const controlCustomizationContext = (0,
|
|
72509
|
+
const farmFileSystem = (_generationOptions$in = generationOptions === null || generationOptions === void 0 || (_generationOptions$in2 = generationOptions.internalOptions) === null || _generationOptions$in2 === void 0 ? void 0 : _generationOptions$in2.fileSystem) !== null && _generationOptions$in !== void 0 ? _generationOptions$in : new _markupGenerator_IFarmFileSystem__WEBPACK_IMPORTED_MODULE_12__.NativeFarmFileSystem();
|
|
72510
|
+
const controlCustomizationContext = (0,_markupGenerator_controlCustomization_ControlCustomizationContextBuilder__WEBPACK_IMPORTED_MODULE_10__.buildControlCustomizationContext)(sugarRoot, additionalContent.formSourcesPath, farmFileSystem);
|
|
72573
72511
|
const referencedFetchFunctions = additionalContent.fetchFunctionSources != undefined ? getReferencedFetchFunctions(additionalContent.fetchFunctionSources) : {};
|
|
72574
72512
|
const fetchFunctions = new _common_FetchFunctions__WEBPACK_IMPORTED_MODULE_2__.FetchFunctions(referencedFetchFunctions);
|
|
72575
72513
|
const additionalSettings = typeof additionalContent.additionalSettings === "string" ? JSON.parse(additionalContent.additionalSettings || "{}") : additionalContent.additionalSettings;
|
|
72576
|
-
const dataDeclarationGenerator = new
|
|
72514
|
+
const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_21__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_22__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry, formSchemaRng, useSchemaValidations);
|
|
72577
72515
|
const {
|
|
72578
72516
|
dataDeclarationContent,
|
|
72579
72517
|
dataDeclaration
|
|
72580
72518
|
} = dataDeclarationGenerator.generate();
|
|
72581
|
-
const dataDeclarationHelper = new
|
|
72582
|
-
const extendedSchemaInfo = (0,
|
|
72583
|
-
const markupBuilderContext = new
|
|
72584
|
-
const validationGenerator = new
|
|
72585
|
-
const lazyLoadGenerator = new
|
|
72519
|
+
const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_28__.DataDeclarationGenerationTimeHelper(dataDeclaration, formSchemaRng);
|
|
72520
|
+
const extendedSchemaInfo = (0,_ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_50__.buildExtendedSchemaInfo)(dataDeclarationHelper);
|
|
72521
|
+
const markupBuilderContext = new _markupGenerator_IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_52__.MarkupBuildingContext(new _markupGenerator_ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_51__.NodePathsContext(), additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, useSchemaValidations);
|
|
72522
|
+
const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_18__.ValidationGenerator(sugarRoot, typeRegistry, markupBuilderContext, controlCustomizationContext, formSchemaRng, useSchemaValidations, additionalContent.validationsContent, additionalContent.formJsonSettings);
|
|
72523
|
+
const lazyLoadGenerator = new _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_31__.LazyLoadDeclarationGenerator(sugarRoot, formSchemaRng);
|
|
72586
72524
|
const lazyLoadGeneratorResult = lazyLoadGenerator.generate();
|
|
72587
72525
|
const resourcesHash = (_generationOptions$re = generationOptions === null || generationOptions === void 0 ? void 0 : generationOptions.resourcesHash) !== null && _generationOptions$re !== void 0 ? _generationOptions$re : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("Current generator version requires resources hash");
|
|
72588
|
-
const formulaExprConverter = new
|
|
72526
|
+
const formulaExprConverter = new _ServerSideFLangNormalization_FormulaExpressionToFlangExpressionConverter__WEBPACK_IMPORTED_MODULE_36__.FormulaExpressionToFlangExpressionConverter(path => (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_37__.adjustPathMultiplicityComplex)(path, dataDeclarationHelper), {
|
|
72589
72527
|
enableGroupSumAutoConversion: (_additionalContent$fo5 = (_additionalContent$fo6 = additionalContent.formJsonSettings) === null || _additionalContent$fo6 === void 0 ? void 0 : _additionalContent$fo6.enableTypedFlang) !== null && _additionalContent$fo5 !== void 0 ? _additionalContent$fo5 : false
|
|
72590
72528
|
});
|
|
72591
|
-
const formulaRulesBuilder = new
|
|
72529
|
+
const formulaRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_FormulaRulesBuilder__WEBPACK_IMPORTED_MODULE_38__.FormulaRulesBuilder(formSchemaRng, formulas, dataDeclarationHelper, formulaExprConverter, {
|
|
72592
72530
|
enableTypedFlang: (_additionalContent$fo7 = (_additionalContent$fo8 = additionalContent.formJsonSettings) === null || _additionalContent$fo8 === void 0 ? void 0 : _additionalContent$fo8.enableTypedFlang) !== null && _additionalContent$fo7 !== void 0 ? _additionalContent$fo7 : false
|
|
72593
72531
|
});
|
|
72594
|
-
const initializationRulesBuilder = new
|
|
72595
|
-
const lazyLoadingRulesBuilder = new
|
|
72596
|
-
const sugarRulesBuilder = new
|
|
72597
|
-
const validationRulesBuilder = new
|
|
72598
|
-
const optionalSectionRuleBuilder = new
|
|
72599
|
-
const optionalElementsRulesBuilder = new
|
|
72600
|
-
const optionalBlocksRulesBuilder = new
|
|
72601
|
-
const normalizationRulesGenerator = new
|
|
72602
|
-
const formulaOnlyNormalizationRulesGenerator = new
|
|
72532
|
+
const initializationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_InitializationRulesBuilder__WEBPACK_IMPORTED_MODULE_39__.InitializationRulesBuilder(sugarRoot, resourcesHash);
|
|
72533
|
+
const lazyLoadingRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_LazyLoadingRulesBuilder__WEBPACK_IMPORTED_MODULE_40__.LazyLoadingRulesBuilder(sugarRoot, lazyLoadGeneratorResult.declaration);
|
|
72534
|
+
const sugarRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_SugarRulesBuilder__WEBPACK_IMPORTED_MODULE_41__.SugarRulesBuilder(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions, dataDeclarationHelper, typeRegistry, useSchemaValidations);
|
|
72535
|
+
const validationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_ValidationRulesBuilder__WEBPACK_IMPORTED_MODULE_42__.ValidationRulesBuilder(dataDeclarationHelper, formulaExprConverter, kcXmlConditions);
|
|
72536
|
+
const optionalSectionRuleBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalSectionRulesBuilder__WEBPACK_IMPORTED_MODULE_35__.OptionalSectionRulesBuilder(sugarRoot, dataDeclarationHelper);
|
|
72537
|
+
const optionalElementsRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalElementsRulesBuilder__WEBPACK_IMPORTED_MODULE_53__.OptionalElementsRulesBuilder(formSchemaRng, dataDeclarationHelper);
|
|
72538
|
+
const optionalBlocksRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalBlocksRulesBuilder__WEBPACK_IMPORTED_MODULE_54__.OptionalBlocksRulesBuilder(dataDeclarationHelper);
|
|
72539
|
+
const normalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_27__.NormalizationRulesGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, false);
|
|
72540
|
+
const formulaOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_32__.FormulaOnlyNormalizationRuleGenerator(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, {
|
|
72603
72541
|
enableTypedFlang: (_additionalContent$fo9 = (_additionalContent$fo10 = additionalContent.formJsonSettings) === null || _additionalContent$fo10 === void 0 ? void 0 : _additionalContent$fo10.enableTypedFlang) !== null && _additionalContent$fo9 !== void 0 ? _additionalContent$fo9 : false
|
|
72604
72542
|
});
|
|
72605
|
-
const formulaAndInitOnlyNormalizationRulesGenerator = new
|
|
72606
|
-
const autoValueForValueByDefaultNormalizationRuleGenerator = new
|
|
72607
|
-
const markupGenerator = new
|
|
72543
|
+
const formulaAndInitOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaAndInitOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_43__.FormulaAndInitOnlyNormalizationRuleGenerator(sugarRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalSectionRuleBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder);
|
|
72544
|
+
const autoValueForValueByDefaultNormalizationRuleGenerator = new _ServerSideFLangNormalization_Normalizers_AutoValueForValueByDefaultNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_47__.AutoValueForValueByDefaultNormalizationRuleGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, dataDeclarationHelper);
|
|
72545
|
+
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_14__.MarkupGenerator(markupBuilderContext);
|
|
72608
72546
|
markupGenerator.generate(sugarRoot, builder);
|
|
72609
|
-
builder.addResource("settings.js", (0,
|
|
72610
|
-
builder.addResource("requisiteList.js", (0,
|
|
72611
|
-
const autocalcGenerator = new
|
|
72547
|
+
builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_11__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings, additionalContent.formJsonSettings));
|
|
72548
|
+
builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_26__.getRequisiteList)(sugarRoot, fetchFunctions));
|
|
72549
|
+
const autocalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsGenerator__WEBPACK_IMPORTED_MODULE_20__.AutoCalculationsGenerator(dataDeclarationHelper, schemaRng);
|
|
72612
72550
|
const formulasForCalculator = useOldCalculator ? formulas : [];
|
|
72613
72551
|
builder.addResource("calculationFunctions.js", autocalcGenerator.generate(sugarRoot, additionalContent.autocalcsContent, formulasForCalculator));
|
|
72614
72552
|
builder.addResource("dataDeclaration.js", dataDeclarationContent);
|
|
@@ -72630,17 +72568,17 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
72630
72568
|
}].filter(x => (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNotNullOrEmpty)(x.content));
|
|
72631
72569
|
const additionalNormalizationRules = additionalContent.additionalNormalizers ? additionalContent.additionalNormalizers.map(additionalNormalizer => {
|
|
72632
72570
|
switch (additionalNormalizer.extension) {
|
|
72633
|
-
case
|
|
72571
|
+
case _ServerSideFLangNormalization_AdditionalNormalizerFile__WEBPACK_IMPORTED_MODULE_34__.NormalizerFileExtension.FLANG:
|
|
72634
72572
|
{
|
|
72635
|
-
const isDefault = additionalNormalizer.filename.toLowerCase() ===
|
|
72573
|
+
const isDefault = additionalNormalizer.filename.toLowerCase() === _ServerSideFLangNormalization_AdditionalNormalizerFile__WEBPACK_IMPORTED_MODULE_34__.defaultNormalizerFilename.toLowerCase();
|
|
72636
72574
|
return {
|
|
72637
72575
|
content: additionalNormalizer.content,
|
|
72638
72576
|
normalizerId: isDefault ? undefined : additionalNormalizer.filename
|
|
72639
72577
|
};
|
|
72640
72578
|
}
|
|
72641
|
-
case
|
|
72579
|
+
case _ServerSideFLangNormalization_AdditionalNormalizerFile__WEBPACK_IMPORTED_MODULE_34__.NormalizerFileExtension.KCLANG:
|
|
72642
72580
|
{
|
|
72643
|
-
const customNormalizationRules = new
|
|
72581
|
+
const customNormalizationRules = new _ServerSideFLangNormalization_CustomKCLangToFlangRuleGenerator__WEBPACK_IMPORTED_MODULE_44__.CustomKCLangToFlangRuleGenerator(additionalNormalizer.content, formulaReader, dataDeclarationHelper, formSchemaRng, formulaExprConverter);
|
|
72644
72582
|
return {
|
|
72645
72583
|
content: customNormalizationRules.generateRules(),
|
|
72646
72584
|
normalizerId: additionalNormalizer.filename
|
|
@@ -72653,8 +72591,8 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
72653
72591
|
const resultRules = combineFlangRules(defaultNormalizationRules.content, ...additionalNormalizationRules, ...customNormalizers);
|
|
72654
72592
|
builder.addServerSideResource("ServerSide.normalize", resultRules);
|
|
72655
72593
|
}
|
|
72656
|
-
builder.addResource("lazyLoadDeclaration.js",
|
|
72657
|
-
const attachmentPathsGenerator = new
|
|
72594
|
+
builder.addResource("lazyLoadDeclaration.js", _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_31__.LazyLoadDeclarationGenerator.convertDeclarationToContent(finalLazyLoadDeclaration));
|
|
72595
|
+
const attachmentPathsGenerator = new _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_29__.AttachmentPathsGenerator(markupBuilderContext);
|
|
72658
72596
|
const attachmentPaths = attachmentPathsGenerator.generate(sugarRoot);
|
|
72659
72597
|
builder.addServerSideResource(`AttachmentPaths.json`, JSON.stringify(attachmentPaths));
|
|
72660
72598
|
const attachmentPathsWithGfvs = attachmentPathsGenerator.generateWithGfvs(sugarRoot);
|
|
@@ -72666,11 +72604,11 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
72666
72604
|
const rngSchemaValidationConfigurator = validationGenerator.generateRngSchemaValidationConfigurator();
|
|
72667
72605
|
builder.addResource("rngSchemaValidationConfigurator.js", rngSchemaValidationConfigurator);
|
|
72668
72606
|
const formulasForCalculator2 = useCalculator2 ? formulas : [];
|
|
72669
|
-
const kcXmlAutoCalcGenerator = new
|
|
72607
|
+
const kcXmlAutoCalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_30__.AutoCalculationsCalculator2Generator(formSchemaRng, dataDeclarationHelper, extendedSchemaInfo);
|
|
72670
72608
|
builder.addResource("kcXmlAutoCalculationConfigurator.js", kcXmlAutoCalcGenerator.generate(formulasForCalculator2, {
|
|
72671
72609
|
skipNotSupportedFunction: useServerCalculations
|
|
72672
72610
|
}));
|
|
72673
|
-
const kcXmlValidationGenerator = new
|
|
72611
|
+
const kcXmlValidationGenerator = new _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_25__.KCXmlValidationGenerator(formSchemaRng, extendedSchemaInfo);
|
|
72674
72612
|
const kcXmlConditionsForCalculator2 = kcXmlConditions;
|
|
72675
72613
|
const content = kcXmlValidationGenerator.generate(kcXmlConditionsForCalculator2, {
|
|
72676
72614
|
skipNotSupportedFunction: useServerCalculations
|
|
@@ -72679,14 +72617,14 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
72679
72617
|
// const importedAutoCalculations = getImportedAutoCalculations(sugarRoot);
|
|
72680
72618
|
builder.addResource("autocalculationConfigurators.js", `export default []`);
|
|
72681
72619
|
builder.addResource("FakeStyles.less", `// empty styles to enforce style files`);
|
|
72682
|
-
const localizationResources = (0,
|
|
72620
|
+
const localizationResources = (0,_localization_localization__WEBPACK_IMPORTED_MODULE_9__.generateLocalizationResources)(additionalContent.localization);
|
|
72683
72621
|
if (localizationResources) {
|
|
72684
72622
|
builder.addResource("localizationDictionary.js", localizationResources);
|
|
72685
72623
|
}
|
|
72686
|
-
const helperFunctionsContent = new
|
|
72624
|
+
const helperFunctionsContent = new _HelperFunctionsGenerator_HelperFunctionsGenerator__WEBPACK_IMPORTED_MODULE_24__.HelperFunctionsGenerator().generate(additionalContent.helpersContent);
|
|
72687
72625
|
if (helperFunctionsContent) {
|
|
72688
72626
|
builder.addResource("helperFunctions.js", helperFunctionsContent);
|
|
72689
|
-
const commonHelperFunctionsContent = new
|
|
72627
|
+
const commonHelperFunctionsContent = new _HelperFunctionsGenerator_CommonHelperFunctionsGenerator__WEBPACK_IMPORTED_MODULE_33__.CommonHelperFunctionsGenerator().generate(additionalContent.commonHelpersContent);
|
|
72690
72628
|
if (commonHelperFunctionsContent) {
|
|
72691
72629
|
builder.addResource("commonHelperFunctions.js", commonHelperFunctionsContent);
|
|
72692
72630
|
}
|
|
@@ -72759,10 +72697,10 @@ function* getImportedKclangValidations(formNode, additionalContent) {
|
|
|
72759
72697
|
}
|
|
72760
72698
|
}
|
|
72761
72699
|
function extractKCLangFromSugar(sugarRoot, formSchemaRng, nodeTypeInfoHelper) {
|
|
72762
|
-
const controlConverterClass = (0,
|
|
72700
|
+
const controlConverterClass = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_46__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_45__.getNodeClass)(sugarRoot));
|
|
72763
72701
|
if (controlConverterClass != undefined) {
|
|
72764
72702
|
const converter = new controlConverterClass(sugarRoot);
|
|
72765
|
-
const result = converter.buildSugarKCLangCalculations(new
|
|
72703
|
+
const result = converter.buildSugarKCLangCalculations(new _markupGenerator_KCLangCalculationsBuildContext__WEBPACK_IMPORTED_MODULE_48__.KCLangCalculationsBuildContext(formSchemaRng, nodeTypeInfoHelper), formSchemaRng, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.emptyAbsoluteModelPath)());
|
|
72766
72704
|
return Iterator.from(result).toArray();
|
|
72767
72705
|
}
|
|
72768
72706
|
return [];
|
|
@@ -75438,24 +75376,24 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75438
75376
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.SumOfDayWeightsExpression(expressions);
|
|
75439
75377
|
}
|
|
75440
75378
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
75441
|
-
const arg = this.
|
|
75442
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75379
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75380
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75443
75381
|
}
|
|
75444
75382
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsRegNumSfrExpression) {
|
|
75445
|
-
const arg = this.
|
|
75446
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsRegNumSfrExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75383
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75384
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsRegNumSfrExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75447
75385
|
}
|
|
75448
75386
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsInnExpression) {
|
|
75449
|
-
const arg = this.
|
|
75450
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75387
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75388
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsInnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75451
75389
|
}
|
|
75452
75390
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsOgrnExpression) {
|
|
75453
|
-
const arg = this.
|
|
75454
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsOgrnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75391
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75392
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsOgrnExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75455
75393
|
}
|
|
75456
75394
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidMirCardNumberExpression) {
|
|
75457
|
-
const arg = this.
|
|
75458
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75395
|
+
const arg = this.compileExpressionToFlangExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
75396
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidMirCardNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.extractOriginalStringValueOrCastToStringIfNeeded)(arg));
|
|
75459
75397
|
}
|
|
75460
75398
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArrayExpression) {
|
|
75461
75399
|
const items = expression.items.map(arg => this.compileEnumerationItem(arg, prefix, target, addPrecalculationRule));
|
|
@@ -75477,9 +75415,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75477
75415
|
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));
|
|
75478
75416
|
}
|
|
75479
75417
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsValidAccountNumberExpression) {
|
|
75480
|
-
const bik = this.
|
|
75481
|
-
const account = this.
|
|
75482
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsValidAccountNumberExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.
|
|
75418
|
+
const bik = this.compileExpressionToFlangExpressionInternal(expression.bik.bik, prefix, target, addPrecalculationRule);
|
|
75419
|
+
const account = this.compileExpressionToFlangExpressionInternal(expression.account.account, prefix, target, addPrecalculationRule);
|
|
75420
|
+
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));
|
|
75483
75421
|
}
|
|
75484
75422
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGroupSumExpression) {
|
|
75485
75423
|
return this.compileGroupSumExpression(prefix, target, expression, addPrecalculationRule);
|
|
@@ -96789,7 +96727,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
96789
96727
|
disabled: node.disabled
|
|
96790
96728
|
})];
|
|
96791
96729
|
}
|
|
96792
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
96730
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
96793
96731
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
96794
96732
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
96795
96733
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
@@ -96799,7 +96737,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
96799
96737
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
96800
96738
|
return;
|
|
96801
96739
|
}
|
|
96802
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId, node.validationInfo.emptydescription);
|
|
96740
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId, node.validationInfo.emptydescription);
|
|
96803
96741
|
}
|
|
96804
96742
|
buildChildrenDataDeclaration(context) {
|
|
96805
96743
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
@@ -97299,7 +97237,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
97299
97237
|
static getAcceptNodeClass() {
|
|
97300
97238
|
return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
|
|
97301
97239
|
}
|
|
97302
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
97240
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
97303
97241
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
97304
97242
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97305
97243
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
|
|
@@ -97309,7 +97247,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
97309
97247
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
97310
97248
|
return;
|
|
97311
97249
|
}
|
|
97312
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
97250
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
97313
97251
|
}
|
|
97314
97252
|
doBuildNodeValidations(validationGenerator) {
|
|
97315
97253
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
@@ -97561,7 +97499,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
97561
97499
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
97562
97500
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
97563
97501
|
}
|
|
97564
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
97502
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
97565
97503
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
97566
97504
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97567
97505
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -97571,7 +97509,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
97571
97509
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
97572
97510
|
return;
|
|
97573
97511
|
}
|
|
97574
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
97512
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
97575
97513
|
}
|
|
97576
97514
|
get nodePaths() {
|
|
97577
97515
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
@@ -99093,7 +99031,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
99093
99031
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99094
99032
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
|
|
99095
99033
|
}
|
|
99096
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
99034
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
99097
99035
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99098
99036
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
99099
99037
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -99103,7 +99041,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
99103
99041
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
99104
99042
|
return;
|
|
99105
99043
|
}
|
|
99106
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
99044
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
99107
99045
|
}
|
|
99108
99046
|
doBuildNodeValidations(validationGenerator) {
|
|
99109
99047
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
@@ -99866,7 +99804,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
|
|
|
99866
99804
|
static getAcceptNodeClass() {
|
|
99867
99805
|
return _KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode;
|
|
99868
99806
|
}
|
|
99869
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
99807
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
99870
99808
|
const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode);
|
|
99871
99809
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
99872
99810
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each);
|
|
@@ -99876,7 +99814,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
|
|
|
99876
99814
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
99877
99815
|
return;
|
|
99878
99816
|
}
|
|
99879
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
99817
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
99880
99818
|
}
|
|
99881
99819
|
doBuildNodeValidations(validationGenerator) {
|
|
99882
99820
|
const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode);
|
|
@@ -100172,7 +100110,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100172
100110
|
static getAcceptNodeClass() {
|
|
100173
100111
|
return _PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode;
|
|
100174
100112
|
}
|
|
100175
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
100113
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
100176
100114
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100177
100115
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100178
100116
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -100183,7 +100121,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100183
100121
|
return;
|
|
100184
100122
|
}
|
|
100185
100123
|
const ownPathFixed = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createRelativeFromTokens)([...ownPath.getPathParts()].filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isSimpleToken));
|
|
100186
|
-
yield* buildContext.buildBasicValidations(ownPathFixed, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId);
|
|
100124
|
+
yield* buildContext.buildBasicValidations(ownPathFixed, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId);
|
|
100187
100125
|
}
|
|
100188
100126
|
doBuildNodeValidations(validationGenerator) {
|
|
100189
100127
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
@@ -100650,7 +100588,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
100650
100588
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
100651
100589
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
100652
100590
|
}
|
|
100653
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
100591
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
100654
100592
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
100655
100593
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100656
100594
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -100660,7 +100598,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
100660
100598
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
100661
100599
|
return;
|
|
100662
100600
|
}
|
|
100663
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
100601
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
100664
100602
|
}
|
|
100665
100603
|
doBuildNormalizeRules(builder) {
|
|
100666
100604
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
@@ -101169,7 +101107,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
|
|
|
101169
101107
|
disabled: node.disabled
|
|
101170
101108
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
101171
101109
|
}
|
|
101172
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
101110
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
101173
101111
|
const node = this.getCurrentNodeAs(_SelectNode__WEBPACK_IMPORTED_MODULE_6__.SelectNode);
|
|
101174
101112
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101175
101113
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -101179,7 +101117,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
|
|
|
101179
101117
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
101180
101118
|
return;
|
|
101181
101119
|
}
|
|
101182
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
101120
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
101183
101121
|
}
|
|
101184
101122
|
doBuildNormalizeRules(builder) {
|
|
101185
101123
|
const node = this.getCurrentNodeAs(_SelectNode__WEBPACK_IMPORTED_MODULE_6__.SelectNode);
|
|
@@ -101909,7 +101847,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
101909
101847
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
101910
101848
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
|
|
101911
101849
|
}
|
|
101912
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
101850
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
101913
101851
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
101914
101852
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101915
101853
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -101919,7 +101857,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
101919
101857
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
101920
101858
|
return;
|
|
101921
101859
|
}
|
|
101922
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
101860
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
101923
101861
|
}
|
|
101924
101862
|
doBuildNodeValidations(validationGenerator) {
|
|
101925
101863
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
@@ -102166,7 +102104,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
102166
102104
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102167
102105
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
102168
102106
|
}
|
|
102169
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
102107
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
102170
102108
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102171
102109
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102172
102110
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -102176,7 +102114,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
102176
102114
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
102177
102115
|
return;
|
|
102178
102116
|
}
|
|
102179
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
102117
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
102180
102118
|
}
|
|
102181
102119
|
doBuildNormalizeRules(builder) {
|
|
102182
102120
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
@@ -102881,7 +102819,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
102881
102819
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
102882
102820
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
102883
102821
|
}
|
|
102884
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
102822
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
102885
102823
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
102886
102824
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102887
102825
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -102891,7 +102829,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
102891
102829
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
102892
102830
|
return;
|
|
102893
102831
|
}
|
|
102894
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
102832
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
102895
102833
|
}
|
|
102896
102834
|
doBuildDataDeclaration(context) {
|
|
102897
102835
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
@@ -103446,7 +103384,7 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
|
|
|
103446
103384
|
pathSuffix: "Отчество"
|
|
103447
103385
|
})];
|
|
103448
103386
|
}
|
|
103449
|
-
doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
103387
|
+
doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
103450
103388
|
var _node$getOwnPathForKC;
|
|
103451
103389
|
const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
|
|
103452
103390
|
const minlengthTypeCheckNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode();
|
|
@@ -103458,7 +103396,7 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
|
|
|
103458
103396
|
typeNode.base = "string";
|
|
103459
103397
|
const ownPath = ((_node$getOwnPathForKC = node.getOwnPathForKCLang()) !== null && _node$getOwnPathForKC !== void 0 ? _node$getOwnPathForKC : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createRelativeFromTokens)([])).normalize();
|
|
103460
103398
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).normalize();
|
|
103461
|
-
return _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_5__.IterUtils.concat(buildContext.buildBasicValidations(ownPath.joinWith("Имя"), targetPath.joinWith("Имя"), typeNode, formSchemaRng.getTypeNodeByPath(targetPath.joinWith("Имя")), false, undefined, node.emptydescription), buildContext.buildBasicValidations(ownPath.joinWith("Фамилия"), targetPath.joinWith("Фамилия"), typeNode, formSchemaRng.getTypeNodeByPath(targetPath.joinWith("Фамилия")), false, undefined, node.emptydescription), buildContext.buildBasicValidations(ownPath.joinWith("Отчество"), targetPath.joinWith("Отчество"), typeNode, formSchemaRng.getTypeNodeByPath(targetPath.joinWith("Отчество")), true, undefined, node.emptydescription));
|
|
103399
|
+
return _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_5__.IterUtils.concat(buildContext.buildBasicValidations(ownPath.joinWith("Имя"), targetPath.joinWith("Имя"), prefixPath, typeNode, formSchemaRng.getTypeNodeByPath(targetPath.joinWith("Имя")), false, undefined, node.emptydescription), buildContext.buildBasicValidations(ownPath.joinWith("Фамилия"), targetPath.joinWith("Фамилия"), prefixPath, typeNode, formSchemaRng.getTypeNodeByPath(targetPath.joinWith("Фамилия")), false, undefined, node.emptydescription), buildContext.buildBasicValidations(ownPath.joinWith("Отчество"), targetPath.joinWith("Отчество"), prefixPath, typeNode, formSchemaRng.getTypeNodeByPath(targetPath.joinWith("Отчество")), true, undefined, node.emptydescription));
|
|
103462
103400
|
}
|
|
103463
103401
|
buildChildrenDataDeclaration(context) {
|
|
103464
103402
|
const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
|
|
@@ -103785,7 +103723,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
103785
103723
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
103786
103724
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
103787
103725
|
}
|
|
103788
|
-
*doBuildKCLangValidations(buildContext, formSchemaRng) {
|
|
103726
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
103789
103727
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
103790
103728
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103791
103729
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
@@ -103795,7 +103733,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
103795
103733
|
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
103796
103734
|
return;
|
|
103797
103735
|
}
|
|
103798
|
-
yield* buildContext.buildBasicValidations(ownPath, targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.validationInfo.emptydescription);
|
|
103736
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.validationInfo.emptydescription);
|
|
103799
103737
|
}
|
|
103800
103738
|
doBuildNormalizeRules(builder) {
|
|
103801
103739
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
@@ -104661,43 +104599,43 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104661
104599
|
/* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
|
|
104662
104600
|
/* harmony export */ });
|
|
104663
104601
|
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
104664
|
-
/* harmony import */ var
|
|
104665
|
-
/* harmony import */ var
|
|
104666
|
-
/* harmony import */ var
|
|
104667
|
-
/* harmony import */ var
|
|
104668
|
-
/* harmony import */ var
|
|
104669
|
-
/* harmony import */ var
|
|
104670
|
-
/* harmony import */ var
|
|
104671
|
-
/* harmony import */ var
|
|
104672
|
-
/* harmony import */ var
|
|
104673
|
-
/* harmony import */ var
|
|
104674
|
-
/* harmony import */ var
|
|
104675
|
-
/* harmony import */ var
|
|
104676
|
-
/* harmony import */ var
|
|
104677
|
-
/* harmony import */ var
|
|
104678
|
-
/* harmony import */ var
|
|
104679
|
-
/* harmony import */ var
|
|
104680
|
-
/* harmony import */ var
|
|
104681
|
-
/* harmony import */ var
|
|
104682
|
-
/* harmony import */ var
|
|
104683
|
-
/* harmony import */ var
|
|
104684
|
-
/* harmony import */ var
|
|
104685
|
-
/* harmony import */ var
|
|
104686
|
-
/* harmony import */ var
|
|
104687
|
-
/* harmony import */ var
|
|
104688
|
-
/* harmony import */ var
|
|
104689
|
-
/* harmony import */ var
|
|
104690
|
-
/* harmony import */ var
|
|
104691
|
-
/* harmony import */ var
|
|
104692
|
-
/* harmony import */ var
|
|
104693
|
-
/* harmony import */ var
|
|
104694
|
-
/* harmony import */ var
|
|
104695
|
-
/* harmony import */ var
|
|
104696
|
-
/* harmony import */ var
|
|
104697
|
-
/* harmony import */ var
|
|
104698
|
-
/* harmony import */ var
|
|
104699
|
-
/* harmony import */ var
|
|
104700
|
-
/* harmony import */ var
|
|
104602
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
104603
|
+
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
104604
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
104605
|
+
/* harmony import */ var _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/AndExpression */ "./Generator/src/common/KCLang/CodeDom/AndExpression.ts");
|
|
104606
|
+
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
104607
|
+
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
104608
|
+
/* harmony import */ var _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DecimalConstExpression */ "./Generator/src/common/KCLang/CodeDom/DecimalConstExpression.ts");
|
|
104609
|
+
/* harmony import */ var _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DescriptionText */ "./Generator/src/common/KCLang/CodeDom/DescriptionText.ts");
|
|
104610
|
+
/* harmony import */ var _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/EqExpression */ "./Generator/src/common/KCLang/CodeDom/EqExpression.ts");
|
|
104611
|
+
/* 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");
|
|
104612
|
+
/* 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");
|
|
104613
|
+
/* 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");
|
|
104614
|
+
/* 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");
|
|
104615
|
+
/* 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");
|
|
104616
|
+
/* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
|
|
104617
|
+
/* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
|
|
104618
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
104619
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
104620
|
+
/* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
|
|
104621
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
|
|
104622
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
|
|
104623
|
+
/* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
|
|
104624
|
+
/* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
|
|
104625
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
|
|
104626
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
|
|
104627
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
104628
|
+
/* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
|
|
104629
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
104630
|
+
/* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
104631
|
+
/* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
|
|
104632
|
+
/* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
104633
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
104634
|
+
/* 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");
|
|
104635
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangRawStringExpression */ "./Generator/src/common/KCLang/CodeDom/KCLangRawStringExpression.ts");
|
|
104636
|
+
/* harmony import */ var _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GtExpression */ "./Generator/src/common/KCLang/CodeDom/GtExpression.ts");
|
|
104637
|
+
/* harmony import */ var _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LtExpression */ "./Generator/src/common/KCLang/CodeDom/LtExpression.ts");
|
|
104638
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
104701
104639
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
104702
104640
|
|
|
104703
104641
|
|
|
@@ -104751,7 +104689,19 @@ class KCLangCalculationsBuildContext {
|
|
|
104751
104689
|
getSchemaTypeInfo(targetPath) {
|
|
104752
104690
|
return this.nodeTypeInfoHelper.getSchemaTypeInfo(targetPath);
|
|
104753
104691
|
}
|
|
104754
|
-
|
|
104692
|
+
buildBasicValidations(targetPath, targetFullPath, prefixPath, typeNode, schemaTypeNode, optional, nodeGId, highOrderDescription) {
|
|
104693
|
+
const getRelativePath = () => {
|
|
104694
|
+
const targetFullPathForKCLang = targetFullPath.getPathWithoutIterations();
|
|
104695
|
+
const suffix = prefixPath.getSuffixPathFrom(targetFullPathForKCLang);
|
|
104696
|
+
const amountLevelUpSteps = prefixPath.tokensCount() - (targetFullPathForKCLang.tokensCount() - suffix.tokensCount());
|
|
104697
|
+
const relativeFromTokens = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)([...[..._Common_IterableUtils__WEBPACK_IMPORTED_MODULE_37__.IterUtils.range(amountLevelUpSteps)].map(_ => ".."), ...suffix.getPathParts()]);
|
|
104698
|
+
return relativeFromTokens;
|
|
104699
|
+
};
|
|
104700
|
+
const relativeTargetPath = targetPath.isAbsolute() ? getRelativePath() : targetPath;
|
|
104701
|
+
const checks = [...this.buildBasicValidationsInternal(relativeTargetPath, targetFullPath, typeNode, schemaTypeNode, optional, nodeGId, highOrderDescription)];
|
|
104702
|
+
return checks;
|
|
104703
|
+
}
|
|
104704
|
+
*buildBasicValidationsInternal(targetPath, targetFullPath, typeNode, schemaTypeNode, optional, nodeGId, highOrderDescription) {
|
|
104755
104705
|
var _typeNode$base, _typeNode$description;
|
|
104756
104706
|
const baseName = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.baseType;
|
|
104757
104707
|
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;
|
|
@@ -104762,27 +104712,27 @@ class KCLangCalculationsBuildContext {
|
|
|
104762
104712
|
valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
|
|
104763
104713
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
104764
104714
|
if (!optional) {
|
|
104765
|
-
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2
|
|
104715
|
+
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2;
|
|
104766
104716
|
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 : "Поле должно быть заполнено";
|
|
104767
104717
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
104768
|
-
let allChildrenPaths = parentNode instanceof
|
|
104769
|
-
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) >
|
|
104718
|
+
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;
|
|
104719
|
+
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) {
|
|
104770
104720
|
allChildrenPaths = undefined;
|
|
104771
104721
|
}
|
|
104772
|
-
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new
|
|
104773
|
-
const checkRequiredStatement = new
|
|
104722
|
+
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);
|
|
104723
|
+
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_38__.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()))]);
|
|
104774
104724
|
if (restChecks != undefined) {
|
|
104775
|
-
yield new
|
|
104725
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(restChecks, [checkRequiredStatement]);
|
|
104776
104726
|
} else {
|
|
104777
104727
|
yield checkRequiredStatement;
|
|
104778
104728
|
}
|
|
104779
104729
|
}
|
|
104780
|
-
yield new
|
|
104730
|
+
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);
|
|
104781
104731
|
}
|
|
104782
104732
|
getFirstAcceptedParent(schemaNode) {
|
|
104783
104733
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
104784
104734
|
while (parentNode != undefined) {
|
|
104785
|
-
if (parentNode instanceof
|
|
104735
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement) {
|
|
104786
104736
|
var _parentNode$multiple;
|
|
104787
104737
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
104788
104738
|
return parentNode;
|
|
@@ -104798,175 +104748,173 @@ class KCLangCalculationsBuildContext {
|
|
|
104798
104748
|
return undefined;
|
|
104799
104749
|
}
|
|
104800
104750
|
createCheck(targetPath, condition, message, checkType) {
|
|
104801
|
-
|
|
104802
|
-
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)()))];
|
|
104751
|
+
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()))];
|
|
104803
104752
|
if (checkType == "warning") {
|
|
104804
|
-
withBlocks.push(new
|
|
104753
|
+
withBlocks.push(new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("errorLevel", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText("Warning")));
|
|
104805
104754
|
}
|
|
104806
|
-
return new
|
|
104755
|
+
return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(condition, withBlocks);
|
|
104807
104756
|
}
|
|
104808
104757
|
*createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId) {
|
|
104809
104758
|
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;
|
|
104810
104759
|
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
104811
|
-
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
|
|
104812
|
-
const enumerationItems = (0,
|
|
104760
|
+
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 : [];
|
|
104761
|
+
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 : [];
|
|
104813
104762
|
const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
|
|
104814
104763
|
var _ref5, _ref6, _ref7, _omitLocalization;
|
|
104815
|
-
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 :
|
|
104764
|
+
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_30__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref5 !== void 0 ? _ref5 : "Поле должно быть заполнено";
|
|
104816
104765
|
};
|
|
104817
|
-
const valueReferenceExpression = new
|
|
104818
|
-
const stringValueReference = new
|
|
104819
|
-
if ((0,
|
|
104820
|
-
yield this.createCheck(targetPath, new
|
|
104766
|
+
const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true));
|
|
104767
|
+
const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default);
|
|
104768
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayIsNotEmpty)(enumerationItems)) {
|
|
104769
|
+
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({
|
|
104821
104770
|
enumerationAllowedValues: enumerationItems
|
|
104822
104771
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104823
104772
|
}
|
|
104824
|
-
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(
|
|
104773
|
+
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_32__.DigestcheckTypeCheckNode).find(x => x);
|
|
104825
104774
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
104826
|
-
if ((0,
|
|
104775
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(gId) && digest != undefined) {
|
|
104827
104776
|
var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
|
|
104828
104777
|
// const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
|
|
104829
|
-
const ruleBody = new
|
|
104778
|
+
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("")));
|
|
104830
104779
|
yield this.createCheck(targetPath, ruleBody, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)((_ref8 = (_digest$description = digest.description) !== null && _digest$description !== void 0 ? _digest$description : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref8 !== void 0 ? _ref8 : "Поле заполнено не по справочнику"), (_ref9 = (_digest$checkType = digest.checkType) !== null && _digest$checkType !== void 0 ? _digest$checkType : typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _ref9 !== void 0 ? _ref9 : "error");
|
|
104831
104780
|
}
|
|
104832
|
-
const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,
|
|
104781
|
+
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));
|
|
104833
104782
|
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;
|
|
104834
104783
|
if (lengthValue != undefined) {
|
|
104835
104784
|
var _typeNodeLength$check;
|
|
104836
|
-
yield this.createCheck(targetPath, new
|
|
104785
|
+
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({
|
|
104837
104786
|
length: lengthValue
|
|
104838
104787
|
}, 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);
|
|
104839
104788
|
}
|
|
104840
104789
|
const valueReference = stringValueReference;
|
|
104841
104790
|
const decimalValueReference = valueReferenceExpression;
|
|
104842
|
-
const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,
|
|
104791
|
+
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));
|
|
104843
104792
|
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;
|
|
104844
|
-
const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,
|
|
104793
|
+
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));
|
|
104845
104794
|
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;
|
|
104846
104795
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
104847
104796
|
var _typeNodeMinLength$de;
|
|
104848
|
-
const lengthExprRuleBody = new
|
|
104797
|
+
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)));
|
|
104849
104798
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104850
104799
|
minLength: minLengthValue,
|
|
104851
104800
|
maxLength: maxLengthValue
|
|
104852
104801
|
}, (_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);
|
|
104853
104802
|
} else if (minLengthValue != undefined) {
|
|
104854
|
-
const lengthExprRuleBody = new
|
|
104803
|
+
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));
|
|
104855
104804
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104856
104805
|
minLength: minLengthValue
|
|
104857
104806
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104858
104807
|
} else if (maxLengthValue != undefined) {
|
|
104859
|
-
const lengthExprRuleBody = new
|
|
104808
|
+
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));
|
|
104860
104809
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
104861
104810
|
maxLength: maxLengthValue
|
|
104862
104811
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
104863
104812
|
}
|
|
104864
|
-
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,
|
|
104813
|
+
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));
|
|
104865
104814
|
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;
|
|
104866
104815
|
if (minInclusiveValue != undefined) {
|
|
104867
|
-
const minInclusiveRuleBody = new
|
|
104816
|
+
const minInclusiveRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_15__.GeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minInclusiveValue));
|
|
104868
104817
|
yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
|
|
104869
104818
|
minInclusive: minInclusiveValue
|
|
104870
104819
|
}, 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);
|
|
104871
104820
|
}
|
|
104872
|
-
const typeNodeMinExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,
|
|
104821
|
+
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));
|
|
104873
104822
|
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;
|
|
104874
104823
|
if (minExclusiveValue != undefined) {
|
|
104875
|
-
const minExclusiveRuleBody = new
|
|
104824
|
+
const minExclusiveRuleBody = new _common_KCLang_CodeDom_GtExpression__WEBPACK_IMPORTED_MODULE_35__.GtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(minExclusiveValue));
|
|
104876
104825
|
yield this.createCheck(targetPath, minExclusiveRuleBody, makeMessage({
|
|
104877
104826
|
minExclusive: minExclusiveValue
|
|
104878
104827
|
}, 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);
|
|
104879
104828
|
}
|
|
104880
|
-
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,
|
|
104829
|
+
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));
|
|
104881
104830
|
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;
|
|
104882
104831
|
if (maxInclusiveValue != undefined) {
|
|
104883
|
-
const maxInclusiveRuleBody = new
|
|
104832
|
+
const maxInclusiveRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_19__.LeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxInclusiveValue));
|
|
104884
104833
|
yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
|
|
104885
104834
|
maxInclusive: maxInclusiveValue
|
|
104886
104835
|
}, 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);
|
|
104887
104836
|
}
|
|
104888
|
-
const typeNodeMaxExclusive = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.find((0,
|
|
104837
|
+
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));
|
|
104889
104838
|
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;
|
|
104890
104839
|
if (maxExclusiveValue != undefined) {
|
|
104891
|
-
const maxExclusiveRuleBody = new
|
|
104840
|
+
const maxExclusiveRuleBody = new _common_KCLang_CodeDom_LtExpression__WEBPACK_IMPORTED_MODULE_36__.LtExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_7__.DecimalConstExpression(maxExclusiveValue));
|
|
104892
104841
|
yield this.createCheck(targetPath, maxExclusiveRuleBody, makeMessage({
|
|
104893
104842
|
maxExclusive: maxExclusiveValue
|
|
104894
104843
|
}, 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);
|
|
104895
104844
|
}
|
|
104896
|
-
const isDecimalCondition = new
|
|
104897
|
-
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,
|
|
104845
|
+
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+$)|($))"));
|
|
104846
|
+
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));
|
|
104898
104847
|
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;
|
|
104899
104848
|
if (totalDigitsValue != undefined) {
|
|
104900
|
-
const totalDigitsRuleBody = new
|
|
104901
|
-
yield new
|
|
104849
|
+
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() + "}$"));
|
|
104850
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
|
|
104902
104851
|
totalDigitsMaxCount: totalDigitsValue
|
|
104903
104852
|
}, 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)]);
|
|
104904
104853
|
}
|
|
104905
|
-
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,
|
|
104906
|
-
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 || (_typeNode$children11 = _typeNode$children11.filter((0,
|
|
104907
|
-
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,
|
|
104908
|
-
const stringPatterns = ((0,
|
|
104909
|
-
const patterns = stringPatterns.map(pattern => new
|
|
104854
|
+
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 : [];
|
|
104855
|
+
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;
|
|
104856
|
+
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;
|
|
104857
|
+
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);
|
|
104858
|
+
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);
|
|
104910
104859
|
if (patterns != undefined) {
|
|
104911
104860
|
const stringPatternsRuleBody = patterns;
|
|
104912
104861
|
yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
|
|
104913
104862
|
patterns: stringPatterns
|
|
104914
104863
|
}, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
|
|
104915
104864
|
}
|
|
104916
|
-
const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 ? void 0 : _typeNode$children13.find((0,
|
|
104865
|
+
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));
|
|
104917
104866
|
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;
|
|
104918
104867
|
if (integerDigits != undefined) {
|
|
104919
|
-
const integerDigitsRuleBody = new
|
|
104920
|
-
yield new
|
|
104868
|
+
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+$)|($))"));
|
|
104869
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
|
|
104921
104870
|
integerDigitsMaxCount: integerDigits
|
|
104922
104871
|
}, 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)]);
|
|
104923
104872
|
}
|
|
104924
|
-
const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 ? void 0 : _typeNode$children14.find((0,
|
|
104873
|
+
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));
|
|
104925
104874
|
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;
|
|
104926
104875
|
if (fractionalDigits != undefined) {
|
|
104927
|
-
const fractionalDigitsRuleBody = new
|
|
104928
|
-
yield new
|
|
104876
|
+
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() + "}$)|($))"));
|
|
104877
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
|
|
104929
104878
|
fractionalDigitsMaxCount: fractionalDigits
|
|
104930
104879
|
}, 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)]);
|
|
104931
104880
|
}
|
|
104932
|
-
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,
|
|
104881
|
+
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;
|
|
104933
104882
|
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;
|
|
104934
104883
|
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
104935
104884
|
var _typeNode$children$fi5, _typeNode$children17, _typeNode$children18, _typeNode$children$fi6, _typeNode$children19, _typeNode$children20;
|
|
104936
104885
|
const isDecimal = baseName == "decimal";
|
|
104937
104886
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
104938
|
-
(_typeNode$children$fi5 = typeNode === null || typeNode === void 0 || (_typeNode$children17 = typeNode.children) === null || _typeNode$children17 === void 0 || (_typeNode$children17 = _typeNode$children17.find((0,
|
|
104939
|
-
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,
|
|
104940
|
-
let result = this.createCheck(targetPath, new
|
|
104887
|
+
(_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;
|
|
104888
|
+
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;
|
|
104889
|
+
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);
|
|
104941
104890
|
if (validationCondition != undefined) {
|
|
104942
|
-
result = new
|
|
104891
|
+
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]);
|
|
104943
104892
|
}
|
|
104944
104893
|
yield result;
|
|
104945
104894
|
}
|
|
104946
104895
|
}
|
|
104947
104896
|
*createBaseTypeValidation(targetPath, baseType, baseDescription) {
|
|
104948
|
-
|
|
104949
|
-
const
|
|
104950
|
-
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath, true);
|
|
104897
|
+
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();
|
|
104898
|
+
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true);
|
|
104951
104899
|
switch (baseType) {
|
|
104952
104900
|
case "string":
|
|
104953
104901
|
case "pattern":
|
|
104954
104902
|
case "boolean":
|
|
104955
104903
|
return;
|
|
104956
104904
|
case "integer":
|
|
104957
|
-
yield new
|
|
104905
|
+
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))]);
|
|
104958
104906
|
break;
|
|
104959
104907
|
case "decimal":
|
|
104960
|
-
yield new
|
|
104908
|
+
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))]);
|
|
104961
104909
|
break;
|
|
104962
104910
|
case "date":
|
|
104963
|
-
yield new
|
|
104911
|
+
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))]);
|
|
104964
104912
|
break;
|
|
104965
104913
|
case "gYear":
|
|
104966
|
-
yield new
|
|
104914
|
+
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))]);
|
|
104967
104915
|
break;
|
|
104968
104916
|
case "gMonth":
|
|
104969
|
-
yield new
|
|
104917
|
+
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))]);
|
|
104970
104918
|
break;
|
|
104971
104919
|
default:
|
|
104972
104920
|
throw new Error(`Unknown base type name: '${baseType}'`);
|
|
@@ -104975,7 +104923,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104975
104923
|
}
|
|
104976
104924
|
}
|
|
104977
104925
|
function combineByAndKCLangExpr(acc, current) {
|
|
104978
|
-
return acc != undefined ? new
|
|
104926
|
+
return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(acc, current) : current;
|
|
104979
104927
|
}
|
|
104980
104928
|
|
|
104981
104929
|
/***/ }),
|
|
@@ -106608,9 +106556,9 @@ class SugarNodeConverterBase {
|
|
|
106608
106556
|
*getAttachmentPathsWithGfvs() {
|
|
106609
106557
|
// no paths by default
|
|
106610
106558
|
}
|
|
106611
|
-
buildSugarKCLangCalculations(buildContext, formSchemaRng) {
|
|
106559
|
+
buildSugarKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
106612
106560
|
const result = [];
|
|
106613
|
-
result.push(...this.doBuildKCLangValidations(buildContext, formSchemaRng));
|
|
106561
|
+
result.push(...this.doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath));
|
|
106614
106562
|
const children = this.buildChildrenKCLangValidations(buildContext, formSchemaRng);
|
|
106615
106563
|
const childrenArray = Iterator.from(children).toArray();
|
|
106616
106564
|
const ownPath = this.node.getOwnPathForKCLang();
|
|
@@ -106727,7 +106675,8 @@ class SugarNodeConverterBase {
|
|
|
106727
106675
|
continue;
|
|
106728
106676
|
}
|
|
106729
106677
|
const converter = new controlConverterClass(child);
|
|
106730
|
-
const
|
|
106678
|
+
const fullParentPath = this.node.getFullPath().getPathWithoutIterations();
|
|
106679
|
+
const childResults = Iterator.from(converter.buildSugarKCLangCalculations(buildContext, formSchemaRng, fullParentPath)).toArray();
|
|
106731
106680
|
if (childResults.length > 0) {
|
|
106732
106681
|
const pathToParent = getPathToParent(child, this.node);
|
|
106733
106682
|
if (pathToParent == undefined) {
|
|
@@ -106745,7 +106694,7 @@ class SugarNodeConverterBase {
|
|
|
106745
106694
|
processFocusManagementAttributes(converterResult) {
|
|
106746
106695
|
return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_11__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
|
|
106747
106696
|
}
|
|
106748
|
-
doBuildKCLangValidations(_buildContext, _formSchemaRng) {
|
|
106697
|
+
doBuildKCLangValidations(_buildContext, _formSchemaRng, _prefixPath) {
|
|
106749
106698
|
return [];
|
|
106750
106699
|
}
|
|
106751
106700
|
}
|