@kontur.candy/generator 4.243.0-nightly.6ecn3 → 4.243.0-visible-validation.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.
Files changed (2) hide show
  1. package/dist/index.js +379 -1156
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -112008,6 +112008,23 @@ class IterUtils {
112008
112008
  return true;
112009
112009
  }
112010
112010
 
112011
+ static groupBy(iterable, selectKey) {
112012
+ const result = new Map();
112013
+
112014
+ for (const item of iterable) {
112015
+ const key = selectKey(item);
112016
+ const keyList = result.get(key);
112017
+
112018
+ if (keyList == undefined) {
112019
+ result.set(key, [item]);
112020
+ } else {
112021
+ keyList.push(item);
112022
+ }
112023
+ }
112024
+
112025
+ return result;
112026
+ }
112027
+
112011
112028
  static sortBy(items, selector) {
112012
112029
  const result = [...items];
112013
112030
  result.sort((aItem, bItem) => {
@@ -122044,394 +122061,6 @@ class CompositionOperandContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPO
122044
122061
 
122045
122062
  /***/ }),
122046
122063
 
122047
- /***/ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts":
122048
- /*!*****************************************************************!*\
122049
- !*** ./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts ***!
122050
- \*****************************************************************/
122051
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
122052
-
122053
- "use strict";
122054
- __webpack_require__.r(__webpack_exports__);
122055
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122056
- /* harmony export */ "traverseKCLangExpression": () => (/* binding */ traverseKCLangExpression),
122057
- /* harmony export */ "DefaultKCLangExpressionVisitor": () => (/* binding */ DefaultKCLangExpressionVisitor)
122058
- /* harmony export */ });
122059
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
122060
- /* module decorator */ module = __webpack_require__.hmd(module);
122061
- (function () {
122062
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
122063
- enterModule && enterModule(module);
122064
- })();
122065
-
122066
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
122067
- return a;
122068
- };
122069
-
122070
-
122071
- // tslint:disable-next-line:cyclomatic-complexity
122072
- function traverseKCLangExpression(node, visitor) {
122073
- switch (node.type) {
122074
- case "cast":
122075
- traverseKCLangExpression(node.expression, visitor);
122076
- visitor.visitCastExpressionKCLangNode(node);
122077
- break;
122078
-
122079
- case "oneof":
122080
- traverseKCLangExpression(node.testExpression, visitor);
122081
- visitor.visitOneOfExpressionKCLangNode(node);
122082
- break;
122083
-
122084
- case "abs":
122085
- traverseKCLangExpression(node.expression, visitor);
122086
- visitor.visitAbsKCLangNode(node);
122087
- break;
122088
-
122089
- case "xabs":
122090
- traverseKCLangExpression(node.expression, visitor);
122091
- visitor.visitXAbsKCLangNode(node);
122092
- break;
122093
-
122094
- case "exists":
122095
- visitor.visitExistsKCLangNode(node);
122096
- break;
122097
-
122098
- case "length":
122099
- traverseKCLangExpression(node.expression, visitor);
122100
- visitor.visitLengthKCLangNode(node);
122101
- break;
122102
-
122103
- case "and":
122104
- for (const expression of node.expressions) {
122105
- traverseKCLangExpression(expression, visitor);
122106
- }
122107
-
122108
- visitor.visitAndKCLangNode(node);
122109
- break;
122110
-
122111
- case "sum":
122112
- visitor.visitSumKCLangNode(node);
122113
- break;
122114
-
122115
- case "gt":
122116
- case "ge":
122117
- case "lt":
122118
- case "le":
122119
- case "eq":
122120
- case "noteq":
122121
- for (const expression of node.expressions) {
122122
- traverseKCLangExpression(expression, visitor);
122123
- }
122124
-
122125
- visitor.visitComparisonKCLangNode(node);
122126
- break;
122127
-
122128
- case "division":
122129
- case "multiply":
122130
- for (const expression of node.expressions) {
122131
- traverseKCLangExpression(expression, visitor);
122132
- }
122133
-
122134
- visitor.visitMultiplyKCLangNode(node);
122135
- break;
122136
-
122137
- case "minus":
122138
- traverseKCLangExpression(node.expression, visitor);
122139
- visitor.visitMinusKCLangNode(node);
122140
- break;
122141
-
122142
- case "not":
122143
- traverseKCLangExpression(node.expression, visitor);
122144
- visitor.visitNotKCLangNode(node);
122145
- break;
122146
-
122147
- case "round":
122148
- traverseKCLangExpression(node.expression, visitor);
122149
- visitor.visitRoundKCLangNode(node);
122150
- break;
122151
-
122152
- case "choose":
122153
- traverseKCLangExpression(node.if, visitor);
122154
- traverseKCLangExpression(node.else, visitor);
122155
- traverseKCLangExpression(node.then, visitor);
122156
- visitor.visitChooseKCLangNode(node);
122157
- break;
122158
-
122159
- case "const":
122160
- visitor.visitConstKCLangNode(node);
122161
- break;
122162
-
122163
- case "argument":
122164
- visitor.visitArgumentKCLangNode(node);
122165
- break;
122166
-
122167
- case "or":
122168
- for (const expression of node.expressions) {
122169
- traverseKCLangExpression(expression, visitor);
122170
- }
122171
-
122172
- visitor.visitOrKCLangNode(node);
122173
- break;
122174
-
122175
- case "multySum":
122176
- visitor.visitMultySumKCLangNode(node);
122177
- break;
122178
-
122179
- case "substring":
122180
- traverseKCLangExpression(node.expression, visitor);
122181
- visitor.visitSubstringKCLangNode(node);
122182
- break;
122183
-
122184
- case "regexMatch":
122185
- traverseKCLangExpression(node.expression, visitor);
122186
- visitor.visitRegexMatchKCLangNode(node);
122187
- break;
122188
-
122189
- default:
122190
- (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
122191
- break;
122192
- }
122193
- }
122194
- class DefaultKCLangExpressionVisitor {
122195
- visitAbsKCLangNode(node) {// default empty implementation
122196
- }
122197
-
122198
- visitAndKCLangNode(node) {// default empty implementation
122199
- }
122200
-
122201
- visitArgumentKCLangNode(node) {// default empty implementation
122202
- }
122203
-
122204
- visitCastExpressionKCLangNode(node) {// default empty implementation
122205
- }
122206
-
122207
- visitChooseKCLangNode(node) {// default empty implementation
122208
- }
122209
-
122210
- visitComparisonKCLangNode(node) {// default empty implementation
122211
- }
122212
-
122213
- visitConstKCLangNode(node) {// default empty implementation
122214
- }
122215
-
122216
- visitExistsKCLangNode(node) {// default empty implementation
122217
- }
122218
-
122219
- visitLengthKCLangNode(node) {// default empty implementation
122220
- }
122221
-
122222
- visitMinusKCLangNode(node) {// default empty implementation
122223
- }
122224
-
122225
- visitMultiplyKCLangNode(node) {// default empty implementation
122226
- }
122227
-
122228
- visitMultySumKCLangNode(node) {// default empty implementation
122229
- }
122230
-
122231
- visitNotKCLangNode(node) {// default empty implementation
122232
- }
122233
-
122234
- visitOneOfExpressionKCLangNode(node) {// default empty implementation
122235
- }
122236
-
122237
- visitOrKCLangNode(node) {// default empty implementation
122238
- }
122239
-
122240
- visitRegexMatchKCLangNode(node) {// default empty implementation
122241
- }
122242
-
122243
- visitRoundKCLangNode(node) {// default empty implementation
122244
- }
122245
-
122246
- visitSubstringKCLangNode(node) {// default empty implementation
122247
- }
122248
-
122249
- visitSumKCLangNode(node) {// default empty implementation
122250
- }
122251
-
122252
- visitXAbsKCLangNode(node) {// default empty implementation
122253
- }
122254
-
122255
- // @ts-ignore
122256
- __reactstandin__regenerateByEval(key, code) {
122257
- // @ts-ignore
122258
- this[key] = eval(code);
122259
- }
122260
-
122261
- }
122262
- ;
122263
-
122264
- (function () {
122265
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
122266
-
122267
- if (!reactHotLoader) {
122268
- return;
122269
- }
122270
-
122271
- reactHotLoader.register(traverseKCLangExpression, "traverseKCLangExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\IKCLangExpressionVisitor.ts");
122272
- reactHotLoader.register(DefaultKCLangExpressionVisitor, "DefaultKCLangExpressionVisitor", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\IKCLangExpressionVisitor.ts");
122273
- })();
122274
-
122275
- ;
122276
-
122277
- (function () {
122278
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
122279
- leaveModule && leaveModule(module);
122280
- })();
122281
-
122282
- /***/ }),
122283
-
122284
- /***/ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts":
122285
- /*!*****************************************************************!*\
122286
- !*** ./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts ***!
122287
- \*****************************************************************/
122288
- /***/ ((module) => {
122289
-
122290
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
122291
- return a;
122292
- };
122293
-
122294
- // this file was prevaled
122295
-
122296
- /* eslint-disable */
122297
- // @ts-ignore
122298
- module.exports = "/*\n * Generated by PEG.js 0.10.0.\n *\n * http://pegjs.org/\n */\n(function() {\n \"use strict\";\n\n function peg$subclass(child, parent) {\n function ctor() { this.constructor = child; }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n }\n\n function peg$SyntaxError(message, expected, found, location) {\n this.message = message;\n this.expected = expected;\n this.found = found;\n this.location = location;\n this.name = \"SyntaxError\";\n\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(this, peg$SyntaxError);\n }\n }\n\n peg$subclass(peg$SyntaxError, Error);\n\n peg$SyntaxError.buildMessage = function(expected, found) {\n var DESCRIBE_EXPECTATION_FNS = {\n literal: function(expectation) {\n return \"\\\"\" + literalEscape(expectation.text) + \"\\\"\";\n },\n\n \"class\": function(expectation) {\n var escapedParts = \"\",\n i;\n\n for (i = 0; i < expectation.parts.length; i++) {\n escapedParts += expectation.parts[i] instanceof Array\n ? classEscape(expectation.parts[i][0]) + \"-\" + classEscape(expectation.parts[i][1])\n : classEscape(expectation.parts[i]);\n }\n\n return \"[\" + (expectation.inverted ? \"^\" : \"\") + escapedParts + \"]\";\n },\n\n any: function(expectation) {\n return \"any character\";\n },\n\n end: function(expectation) {\n return \"end of input\";\n },\n\n other: function(expectation) {\n return expectation.description;\n }\n };\n\n function hex(ch) {\n return ch.charCodeAt(0).toString(16).toUpperCase();\n }\n\n function literalEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\"/g, '\\\\\"')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function classEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\]/g, '\\\\]')\n .replace(/\\^/g, '\\\\^')\n .replace(/-/g, '\\\\-')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function describeExpectation(expectation) {\n return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);\n }\n\n function describeExpected(expected) {\n var descriptions = new Array(expected.length),\n i, j;\n\n for (i = 0; i < expected.length; i++) {\n descriptions[i] = describeExpectation(expected[i]);\n }\n\n descriptions.sort();\n\n if (descriptions.length > 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n\n function describeFound(found) {\n return found ? \"\\\"\" + literalEscape(found) + \"\\\"\" : \"end of input\";\n }\n\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n };\n\n function peg$parse(input, options) {\n options = options !== void 0 ? options : {};\n\n var peg$FAILED = {},\n\n peg$startRuleFunctions = { Text: peg$parseText },\n peg$startRuleFunction = peg$parseText,\n\n peg$c0 = function(items) {\r\n \treturn items.filter(x => x !== \"\");\r\n },\n peg$c1 = \"[\",\n peg$c2 = peg$literalExpectation(\"[\", false),\n peg$c3 = \"]\",\n peg$c4 = peg$literalExpectation(\"]\", false),\n peg$c5 = \"(\",\n peg$c6 = peg$literalExpectation(\"(\", false),\n peg$c7 = \")\",\n peg$c8 = peg$literalExpectation(\")\", false),\n peg$c9 = function(text, src) {\r\n return {\r\n \ttype: \"link\",\r\n text: text,\r\n src: src,\r\n }\r\n },\n peg$c10 = /^[^ \\]\\t\\n\\r]/,\n peg$c11 = peg$classExpectation([\" \", \"]\", \"\\t\", \"\\n\", \"\\r\"], true, false),\n peg$c12 = function(w) { return w.join(\"\") },\n peg$c13 = function(items) {\r\n return items.filter(x => x !== \"\");\r\n },\n peg$c14 = /^[^)]/,\n peg$c15 = peg$classExpectation([\")\"], true, false),\n peg$c16 = function(w) {\r\n \treturn w.join(\"\").trim()\r\n },\n peg$c17 = /^[\\n]/,\n peg$c18 = peg$classExpectation([\"\\n\"], false, false),\n peg$c19 = /^[ \\t\\n\\r]/,\n peg$c20 = peg$classExpectation([\" \", \"\\t\", \"\\n\", \"\\r\"], false, false),\n peg$c21 = function() {\r\n \treturn \"\\n\"\r\n },\n peg$c22 = /^[^ \\t\\n\\r]/,\n peg$c23 = peg$classExpectation([\" \", \"\\t\", \"\\n\", \"\\r\"], true, false),\n peg$c24 = function(w) {\r\n \treturn w.join(\"\");\r\n },\n peg$c25 = function() {\r\n \treturn \"\";\r\n },\n\n peg$currPos = 0,\n peg$savedPos = 0,\n peg$posDetailsCache = [{ line: 1, column: 1 }],\n peg$maxFailPos = 0,\n peg$maxFailExpected = [],\n peg$silentFails = 0,\n\n peg$result;\n\n if (\"startRule\" in options) {\n if (!(options.startRule in peg$startRuleFunctions)) {\n throw new Error(\"Can't start parsing from rule \\\"\" + options.startRule + \"\\\".\");\n }\n\n peg$startRuleFunction = peg$startRuleFunctions[options.startRule];\n }\n\n function text() {\n return input.substring(peg$savedPos, peg$currPos);\n }\n\n function location() {\n return peg$computeLocation(peg$savedPos, peg$currPos);\n }\n\n function expected(description, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildStructuredError(\n [peg$otherExpectation(description)],\n input.substring(peg$savedPos, peg$currPos),\n location\n );\n }\n\n function error(message, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildSimpleError(message, location);\n }\n\n function peg$literalExpectation(text, ignoreCase) {\n return { type: \"literal\", text: text, ignoreCase: ignoreCase };\n }\n\n function peg$classExpectation(parts, inverted, ignoreCase) {\n return { type: \"class\", parts: parts, inverted: inverted, ignoreCase: ignoreCase };\n }\n\n function peg$anyExpectation() {\n return { type: \"any\" };\n }\n\n function peg$endExpectation() {\n return { type: \"end\" };\n }\n\n function peg$otherExpectation(description) {\n return { type: \"other\", description: description };\n }\n\n function peg$computePosDetails(pos) {\n var details = peg$posDetailsCache[pos], p;\n\n if (details) {\n return details;\n } else {\n p = pos - 1;\n while (!peg$posDetailsCache[p]) {\n p--;\n }\n\n details = peg$posDetailsCache[p];\n details = {\n line: details.line,\n column: details.column\n };\n\n while (p < pos) {\n if (input.charCodeAt(p) === 10) {\n details.line++;\n details.column = 1;\n } else {\n details.column++;\n }\n\n p++;\n }\n\n peg$posDetailsCache[pos] = details;\n return details;\n }\n }\n\n function peg$computeLocation(startPos, endPos) {\n var startPosDetails = peg$computePosDetails(startPos),\n endPosDetails = peg$computePosDetails(endPos);\n\n return {\n start: {\n offset: startPos,\n line: startPosDetails.line,\n column: startPosDetails.column\n },\n end: {\n offset: endPos,\n line: endPosDetails.line,\n column: endPosDetails.column\n }\n };\n }\n\n function peg$fail(expected) {\n if (peg$currPos < peg$maxFailPos) { return; }\n\n if (peg$currPos > peg$maxFailPos) {\n peg$maxFailPos = peg$currPos;\n peg$maxFailExpected = [];\n }\n\n peg$maxFailExpected.push(expected);\n }\n\n function peg$buildSimpleError(message, location) {\n return new peg$SyntaxError(message, null, null, location);\n }\n\n function peg$buildStructuredError(expected, found, location) {\n return new peg$SyntaxError(\n peg$SyntaxError.buildMessage(expected, found),\n expected,\n found,\n location\n );\n }\n\n function peg$parseText() {\n var s0, s1, s2;\n\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$parseLink();\n if (s2 === peg$FAILED) {\n s2 = peg$parseWord();\n if (s2 === peg$FAILED) {\n s2 = peg$parseNewLine();\n if (s2 === peg$FAILED) {\n s2 = peg$parse_();\n }\n }\n }\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$parseLink();\n if (s2 === peg$FAILED) {\n s2 = peg$parseWord();\n if (s2 === peg$FAILED) {\n s2 = peg$parseNewLine();\n if (s2 === peg$FAILED) {\n s2 = peg$parse_();\n }\n }\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s1);\n }\n s0 = s1;\n\n return s0;\n }\n\n function peg$parseLink() {\n var s0, s1, s2, s3, s4, s5, s6;\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 91) {\n s1 = peg$c1;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c2); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseLinkText();\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 93) {\n s3 = peg$c3;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c4); }\n }\n if (s3 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 40) {\n s4 = peg$c5;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c6); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseLinkSrc();\n if (s5 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s6 = peg$c7;\n peg$currPos++;\n } else {\n s6 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c8); }\n }\n if (s6 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c9(s2, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n return s0;\n }\n\n function peg$parseLinkText() {\n var s0, s1, s2, s3, s4;\n\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$currPos;\n s3 = [];\n if (peg$c10.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c10.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s2;\n s3 = peg$c12(s3);\n }\n s2 = s3;\n if (s2 === peg$FAILED) {\n s2 = peg$parse_();\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$currPos;\n s3 = [];\n if (peg$c10.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c10.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s2;\n s3 = peg$c12(s3);\n }\n s2 = s3;\n if (s2 === peg$FAILED) {\n s2 = peg$parse_();\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c13(s1);\n }\n s0 = s1;\n\n return s0;\n }\n\n function peg$parseLinkSrc() {\n var s0, s1, s2;\n\n s0 = peg$currPos;\n s1 = [];\n if (peg$c14.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c15); }\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n if (peg$c14.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c15); }\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c16(s1);\n }\n s0 = s1;\n\n return s0;\n }\n\n function peg$parseNewLine() {\n var s0, s1, s2, s3, s4;\n\n s0 = peg$currPos;\n if (peg$c17.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s1 !== peg$FAILED) {\n if (peg$c17.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c19.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c20); }\n }\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c19.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c20); }\n }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c21();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n return s0;\n }\n\n function peg$parseWord() {\n var s0, s1, s2;\n\n s0 = peg$currPos;\n s1 = [];\n if (peg$c22.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n if (peg$c22.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c24(s1);\n }\n s0 = s1;\n\n return s0;\n }\n\n function peg$parse_() {\n var s0, s1, s2, s3, s4, s5, s6;\n\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$currPos;\n s3 = peg$currPos;\n peg$silentFails++;\n s4 = peg$currPos;\n if (peg$c17.test(input.charAt(peg$currPos))) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n if (peg$c17.test(input.charAt(peg$currPos))) {\n s6 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s6 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n peg$silentFails--;\n if (s4 === peg$FAILED) {\n s3 = void 0;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n if (peg$c19.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c20); }\n }\n if (s4 !== peg$FAILED) {\n s3 = [s3, s4];\n s2 = s3;\n } else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n } else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$currPos;\n s3 = peg$currPos;\n peg$silentFails++;\n s4 = peg$currPos;\n if (peg$c17.test(input.charAt(peg$currPos))) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n if (peg$c17.test(input.charAt(peg$currPos))) {\n s6 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s6 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n peg$silentFails--;\n if (s4 === peg$FAILED) {\n s3 = void 0;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n if (peg$c19.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c20); }\n }\n if (s4 !== peg$FAILED) {\n s3 = [s3, s4];\n s2 = s3;\n } else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n } else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c25();\n }\n s0 = s1;\n\n return s0;\n }\n\n peg$result = peg$startRuleFunction();\n\n if (peg$result !== peg$FAILED && peg$currPos === input.length) {\n return peg$result;\n } else {\n if (peg$result !== peg$FAILED && peg$currPos < input.length) {\n peg$fail(peg$endExpectation());\n }\n\n throw peg$buildStructuredError(\n peg$maxFailExpected,\n peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,\n peg$maxFailPos < input.length\n ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)\n : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)\n );\n }\n }\n\n return {\n SyntaxError: peg$SyntaxError,\n parse: peg$parse\n };\n})()";
122299
-
122300
- /***/ }),
122301
-
122302
- /***/ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts":
122303
- /*!****************************************************************!*\
122304
- !*** ./Generator/src/common/KCLang/KCLangDescriptionParser.ts ***!
122305
- \****************************************************************/
122306
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
122307
-
122308
- "use strict";
122309
- __webpack_require__.r(__webpack_exports__);
122310
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122311
- /* harmony export */ "KCLangDescriptionParser": () => (/* binding */ KCLangDescriptionParser)
122312
- /* harmony export */ });
122313
- /* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KCLangDescriptionGrammar */ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts");
122314
- /* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__);
122315
- /* module decorator */ module = __webpack_require__.hmd(module);
122316
- (function () {
122317
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
122318
- enterModule && enterModule(module);
122319
- })();
122320
-
122321
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
122322
- return a;
122323
- };
122324
-
122325
- // @ts-ignore
122326
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
122327
-
122328
- const evalParse = eval((_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default())).parse;
122329
- class KCLangDescriptionParser {
122330
- static getOrCreateParser() {
122331
- return evalParse;
122332
- }
122333
-
122334
- static parse(code) {
122335
- const parser = this.getOrCreateParser();
122336
- return parser(code);
122337
- }
122338
-
122339
- }
122340
- ;
122341
-
122342
- (function () {
122343
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
122344
-
122345
- if (!reactHotLoader) {
122346
- return;
122347
- }
122348
-
122349
- reactHotLoader.register(evalParse, "evalParse", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangDescriptionParser.ts");
122350
- reactHotLoader.register(KCLangDescriptionParser, "KCLangDescriptionParser", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangDescriptionParser.ts");
122351
- })();
122352
-
122353
- ;
122354
-
122355
- (function () {
122356
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
122357
- leaveModule && leaveModule(module);
122358
- })();
122359
-
122360
- /***/ }),
122361
-
122362
- /***/ "./Generator/src/common/KCLang/KCLangNodes.ts":
122363
- /*!****************************************************!*\
122364
- !*** ./Generator/src/common/KCLang/KCLangNodes.ts ***!
122365
- \****************************************************/
122366
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
122367
-
122368
- "use strict";
122369
- __webpack_require__.r(__webpack_exports__);
122370
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122371
- /* harmony export */ "isFormulaStatement": () => (/* binding */ isFormulaStatement),
122372
- /* harmony export */ "isBlockStatement": () => (/* binding */ isBlockStatement),
122373
- /* harmony export */ "isEnsureStatement": () => (/* binding */ isEnsureStatement),
122374
- /* harmony export */ "isConditionalStatement": () => (/* binding */ isConditionalStatement),
122375
- /* harmony export */ "isDescribeStatement": () => (/* binding */ isDescribeStatement),
122376
- /* harmony export */ "andKCLangNode": () => (/* binding */ andKCLangNode)
122377
- /* harmony export */ });
122378
- /* module decorator */ module = __webpack_require__.hmd(module);
122379
- (function () {
122380
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
122381
- enterModule && enterModule(module);
122382
- })();
122383
-
122384
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
122385
- return a;
122386
- };
122387
-
122388
- function isFormulaStatement(node) {
122389
- return node.type === "formula";
122390
- }
122391
- function isBlockStatement(node) {
122392
- return node.type === "block";
122393
- }
122394
- function isEnsureStatement(node) {
122395
- return node.type === "ensure";
122396
- }
122397
- function isConditionalStatement(node) {
122398
- return node.type === "if";
122399
- }
122400
- function isDescribeStatement(node) {
122401
- return node.type === "describe";
122402
- }
122403
- function andKCLangNode(...expressions) {
122404
- return {
122405
- type: "and",
122406
- expressions: expressions
122407
- };
122408
- }
122409
- ;
122410
-
122411
- (function () {
122412
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
122413
-
122414
- if (!reactHotLoader) {
122415
- return;
122416
- }
122417
-
122418
- reactHotLoader.register(isFormulaStatement, "isFormulaStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
122419
- reactHotLoader.register(isBlockStatement, "isBlockStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
122420
- reactHotLoader.register(isEnsureStatement, "isEnsureStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
122421
- reactHotLoader.register(isConditionalStatement, "isConditionalStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
122422
- reactHotLoader.register(isDescribeStatement, "isDescribeStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
122423
- reactHotLoader.register(andKCLangNode, "andKCLangNode", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
122424
- })();
122425
-
122426
- ;
122427
-
122428
- (function () {
122429
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
122430
- leaveModule && leaveModule(module);
122431
- })();
122432
-
122433
- /***/ }),
122434
-
122435
122064
  /***/ "./Generator/src/common/KCLang/KCLangToJsTranspiler.ts":
122436
122065
  /*!*************************************************************!*\
122437
122066
  !*** ./Generator/src/common/KCLang/KCLangToJsTranspiler.ts ***!
@@ -122760,421 +122389,6 @@ class KCLangToJsTranspiler {
122760
122389
 
122761
122390
  /***/ }),
122762
122391
 
122763
- /***/ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts":
122764
- /*!**************************************************************!*\
122765
- !*** ./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts ***!
122766
- \**************************************************************/
122767
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
122768
-
122769
- "use strict";
122770
- __webpack_require__.r(__webpack_exports__);
122771
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122772
- /* harmony export */ "KCLangToXmlTranspiler": () => (/* binding */ KCLangToXmlTranspiler),
122773
- /* harmony export */ "kclang": () => (/* binding */ kclang)
122774
- /* harmony export */ });
122775
- /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
122776
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
122777
- /* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
122778
- /* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
122779
- /* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
122780
- /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Utils */ "./Generator/src/common/KCLang/Utils.ts");
122781
- /* harmony import */ var _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Antlr/KCLangAntlrParser */ "./Generator/src/common/KCLang/Antlr/KCLangAntlrParser.ts");
122782
- /* module decorator */ module = __webpack_require__.hmd(module);
122783
- (function () {
122784
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
122785
- enterModule && enterModule(module);
122786
- })();
122787
-
122788
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
122789
- return a;
122790
- };
122791
-
122792
-
122793
-
122794
-
122795
-
122796
-
122797
-
122798
- // tslint:disable-next-line:cyclomatic-complexity
122799
-
122800
- function generateKCXmlExpression(expression) {
122801
- switch (expression.type) {
122802
- case "abs":
122803
- case "xabs":
122804
- case "length":
122805
- return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
122806
-
122807
- case "exists":
122808
- case "multySum":
122809
- return `<m:${expression.type} select="${expression.select}" />`;
122810
-
122811
- case "cast":
122812
- if (expression.expression.type === "argument") {
122813
- return `<m:argument select="${expression.expression.select}" type="${expression.targetType}" />`;
122814
- }
122815
-
122816
- throw new Error("Cast supports only for argument");
122817
-
122818
- case "and":
122819
- case "or":
122820
- return [`<m:${expression.type}>`, ...expression.expressions.map(generateKCXmlExpression).map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:${expression.type}>`].join("\n");
122821
-
122822
- case "sum":
122823
- return [`<m:sum>`, ...expression.operands.map(operand => {
122824
- if (operand.operator === "+") {
122825
- return generateKCXmlExpression(operand.expression);
122826
- }
122827
-
122828
- return [`<m:minus>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(operand.expression), 1), `</m:minus>`].join("\n");
122829
- }).map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:sum>`].join("\n");
122830
-
122831
- case "gt":
122832
- case "ge":
122833
- case "lt":
122834
- case "le":
122835
- case "eq":
122836
- case "multiply":
122837
- case "division":
122838
- return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[0]), 1), (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[1]), 1), `</m:${expression.type}>`].join("\n");
122839
-
122840
- case "noteq":
122841
- return [`<m:not>`, ` <m:eq>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[0]), 2), (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[1]), 2), ` </m:eq>`, `</m:not>`].join("\n");
122842
-
122843
- case "minus":
122844
- case "not":
122845
- return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
122846
- break;
122847
- break;
122848
-
122849
- case "round":
122850
- return [expression.fractionalDigits != undefined ? `<m:round fractionalDigits="${expression.fractionalDigits}">` : `<m:round>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:round>`].join("\n");
122851
-
122852
- case "substring":
122853
- return [expression.length != undefined ? `<m:substring start="${expression.start}" length="${expression.length}">` : `<m:substring start="${expression.start}">`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:substring>`].join("\n");
122854
-
122855
- case "regexMatch":
122856
- return [`<m:regexMatch pattern="${expression.pattern}">`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:regexMatch>`].join("\n");
122857
-
122858
- case "choose":
122859
- return [`<m:choose>`, ` <m:if>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.if), 2), ` </m:if>`, ` <m:then>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.then), 2), ` </m:then>`, ` <m:else>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.else), 2), ` </m:else>`, `</m:choose>`].join("\n");
122860
- break;
122861
-
122862
- case "const":
122863
- if (expression.value.type === "decimal") {
122864
- return `<m:const value="${expression.value.value}" type="decimal" />`;
122865
- }
122866
-
122867
- if (expression.value.type === "string") {
122868
- return `<m:const value="${expression.value.value}" type="string" />`;
122869
- }
122870
-
122871
- throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.NotImplementedError();
122872
-
122873
- case "argument":
122874
- return `<m:argument select="${expression.select}" />`;
122875
-
122876
- case "oneof":
122877
- {
122878
- const testExpr = generateKCXmlExpression(expression.testExpression);
122879
- return [`<m:or>`, ...expression.expressions.items.map(x => [`<m:eq>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(testExpr, 1), (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(x), 1), `</m:eq>`]).flat().map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:or>`].join("\n");
122880
- }
122881
-
122882
- default:
122883
- // @ts-ignore
122884
- throw new Error(`Expression of type '${expression.type}' is not supported`);
122885
- }
122886
- }
122887
-
122888
- function formatDescribeStatement(ast, matchPath, describe) {
122889
- return _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_3__.KCLangDescriptionParser.parse(describe.text).map(item => {
122890
- if (typeof item === "string") {
122891
- return item;
122892
- } else {
122893
- return `{{link ref=${item.src}}}${item.text.join(" ")}{{/link}}`;
122894
- }
122895
- }).join(" ");
122896
- }
122897
-
122898
- function generateKCXmlFormula(ast, matchPath, describe) {
122899
- const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
122900
- return `<m:formula match="${matchPath}" target="${ast.target}"${descriptionAttr}>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 1) + "\n" + `</m:formula>`;
122901
- }
122902
-
122903
- function removeTrailingSlash(inputStr) {
122904
- if (inputStr.endsWith("/")) {
122905
- return inputStr.substring(0, inputStr.length - 1);
122906
- }
122907
-
122908
- return inputStr;
122909
- }
122910
-
122911
- function joinPaths(paths) {
122912
- return paths.map(removeTrailingSlash).join("/");
122913
- }
122914
-
122915
- function generateBlockKCXmlFormulas(block, parents) {
122916
- const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path), block.path]);
122917
- const result = [];
122918
- let lastDescribeStatement;
122919
-
122920
- for (const statement of block.statements) {
122921
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isFormulaStatement)(statement)) {
122922
- result.push(generateKCXmlFormula(statement, matchPath, lastDescribeStatement));
122923
- lastDescribeStatement = undefined;
122924
- }
122925
-
122926
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(statement)) {
122927
- lastDescribeStatement = undefined;
122928
- }
122929
-
122930
- if (lastDescribeStatement != undefined) {
122931
- throw new Error("Describe should be placed before assign of ensure statements");
122932
- }
122933
-
122934
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(statement)) {
122935
- lastDescribeStatement = statement;
122936
- }
122937
-
122938
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(statement)) {
122939
- result.push(generateBlockKCXmlFormulas(statement, [...(parents !== null && parents !== void 0 ? parents : []), block]));
122940
- }
122941
- }
122942
-
122943
- return result.join("\n");
122944
- }
122945
-
122946
- function guessConditionTarget(condition) {
122947
- let result;
122948
-
122949
- class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__.DefaultKCLangExpressionVisitor {
122950
- visitExistsKCLangNode(node) {
122951
- if (result == undefined) {
122952
- result = node.select;
122953
- }
122954
- }
122955
-
122956
- visitArgumentKCLangNode(node) {
122957
- if (result == undefined) {
122958
- result = node.select;
122959
- }
122960
- }
122961
-
122962
- // @ts-ignore
122963
- __reactstandin__regenerateByEval(key, code) {
122964
- // @ts-ignore
122965
- this[key] = eval(code);
122966
- }
122967
-
122968
- }
122969
-
122970
- (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
122971
- return result;
122972
- }
122973
-
122974
- function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
122975
- const levelAttr = ast.level === "error" ? ` errorLevel="Error"` : "";
122976
- const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
122977
- const guessedTarget = guessConditionTarget(ast);
122978
- const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
122979
-
122980
- if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
122981
- var _parentConditions$map;
122982
-
122983
- const condition = parentConditions.length === 1 ? parentConditions[0].condition : (0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.andKCLangNode)(...((_parentConditions$map = parentConditions === null || parentConditions === void 0 ? void 0 : parentConditions.map(z => z.condition)) !== null && _parentConditions$map !== void 0 ? _parentConditions$map : []));
122984
- return `<m:condition match="${matchPath}"${descriptionAttr}${levelAttr}${targetAttr}>\n` + ` <m:when>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(condition), 2) + "\n" + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 2) + "\n" + ` </m:when>\n` + `</m:condition>`;
122985
- }
122986
-
122987
- return `<m:condition match="${matchPath}"${descriptionAttr}${levelAttr}${targetAttr}>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 1) + "\n" + `</m:condition>`;
122988
- }
122989
-
122990
- function generateBlockKCXmlConditions(block, parents, parentConditions) {
122991
- const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path), block.path]);
122992
- const result = [];
122993
- let lastDescribeStatement;
122994
-
122995
- for (const statement of block.statements) {
122996
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isFormulaStatement)(statement)) {
122997
- lastDescribeStatement = undefined;
122998
- }
122999
-
123000
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(statement)) {
123001
- result.push(generateKCXmlCondition(statement, matchPath, parentConditions, lastDescribeStatement));
123002
- lastDescribeStatement = undefined;
123003
- }
123004
-
123005
- if (lastDescribeStatement != undefined) {
123006
- throw new Error("Describe should be placed before assign of ensure statements");
123007
- }
123008
-
123009
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(statement)) {
123010
- lastDescribeStatement = statement;
123011
- }
123012
-
123013
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isConditionalStatement)(statement)) {
123014
- result.push(generateConditionalConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
123015
- }
123016
-
123017
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(statement)) {
123018
- result.push(generateBlockKCXmlConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
123019
- }
123020
- }
123021
-
123022
- return result.join("\n");
123023
- }
123024
-
123025
- function generateConditionalConditions(conditionalStatement, parents, parentConditions) {
123026
- const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path)]);
123027
- const result = [];
123028
- let lastDescribeStatement;
123029
-
123030
- for (const x of conditionalStatement.statements) {
123031
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(x)) {
123032
- result.push(generateKCXmlCondition(x, matchPath, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement], lastDescribeStatement));
123033
- lastDescribeStatement = undefined;
123034
- }
123035
-
123036
- if (lastDescribeStatement != undefined) {
123037
- throw new Error("Describe should be placed before assign of ensure statements");
123038
- }
123039
-
123040
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(x)) {
123041
- lastDescribeStatement = x;
123042
- }
123043
-
123044
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isConditionalStatement)(x)) {
123045
- result.push(generateConditionalConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
123046
- }
123047
-
123048
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(x)) {
123049
- result.push(generateBlockKCXmlConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
123050
- }
123051
- }
123052
-
123053
- return result.join("\n");
123054
- }
123055
-
123056
- function generateKCXmlFormulas(blocks) {
123057
- const formulas = Iterator.from(blocks).map(generateBlockKCXmlFormulas).toArray();
123058
-
123059
- if (formulas.filter(x => x !== "").length > 0) {
123060
- return `<m:formulas>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(formulas.join("\n"), 1) + "\n" + `</m:formulas>\n`;
123061
- } else {
123062
- return "";
123063
- }
123064
- }
123065
-
123066
- function generateKCXmlConditions(blocks) {
123067
- const conditions = Iterator.from(blocks).map(generateBlockKCXmlConditions).toArray();
123068
-
123069
- if (conditions.filter(x => x !== "").length > 0) {
123070
- return `<m:conditions>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(conditions.join("\n"), 1) + "\n" + `</m:conditions>\n`;
123071
- } else {
123072
- return "";
123073
- }
123074
- }
123075
-
123076
- function generateKCXml(blocks) {
123077
- return `<?xml version="1.0" encoding="utf-8"?>\n` + `<m:math xmlns:m="http://www.kontur-extern.ru/ФНС 4.0/math.xsd">\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlFormulas(blocks), 1) + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlConditions(blocks), 1) + `</m:math>`;
123078
- }
123079
-
123080
- class KCLangToXmlTranspiler {
123081
- static transpile(kcLang, customParser) {
123082
- const parser = customParser !== null && customParser !== void 0 ? customParser : _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__.KCLangAntlrParser.parse;
123083
- const kcxml = generateKCXml(parser(kcLang).blocks);
123084
- return kcxml;
123085
- }
123086
-
123087
- }
123088
- function kclang(str) {
123089
- return KCLangToXmlTranspiler.transpile(str.join(""));
123090
- }
123091
- ;
123092
-
123093
- (function () {
123094
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
123095
-
123096
- if (!reactHotLoader) {
123097
- return;
123098
- }
123099
-
123100
- reactHotLoader.register(generateKCXmlExpression, "generateKCXmlExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123101
- reactHotLoader.register(formatDescribeStatement, "formatDescribeStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123102
- reactHotLoader.register(generateKCXmlFormula, "generateKCXmlFormula", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123103
- reactHotLoader.register(removeTrailingSlash, "removeTrailingSlash", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123104
- reactHotLoader.register(joinPaths, "joinPaths", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123105
- reactHotLoader.register(generateBlockKCXmlFormulas, "generateBlockKCXmlFormulas", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123106
- reactHotLoader.register(guessConditionTarget, "guessConditionTarget", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123107
- reactHotLoader.register(generateKCXmlCondition, "generateKCXmlCondition", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123108
- reactHotLoader.register(generateBlockKCXmlConditions, "generateBlockKCXmlConditions", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123109
- reactHotLoader.register(generateConditionalConditions, "generateConditionalConditions", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123110
- reactHotLoader.register(generateKCXmlFormulas, "generateKCXmlFormulas", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123111
- reactHotLoader.register(generateKCXmlConditions, "generateKCXmlConditions", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123112
- reactHotLoader.register(generateKCXml, "generateKCXml", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123113
- reactHotLoader.register(KCLangToXmlTranspiler, "KCLangToXmlTranspiler", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123114
- reactHotLoader.register(kclang, "kclang", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
123115
- })();
123116
-
123117
- ;
123118
-
123119
- (function () {
123120
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
123121
- leaveModule && leaveModule(module);
123122
- })();
123123
-
123124
- /***/ }),
123125
-
123126
- /***/ "./Generator/src/common/KCLang/Utils.ts":
123127
- /*!**********************************************!*\
123128
- !*** ./Generator/src/common/KCLang/Utils.ts ***!
123129
- \**********************************************/
123130
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
123131
-
123132
- "use strict";
123133
- __webpack_require__.r(__webpack_exports__);
123134
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
123135
- /* harmony export */ "indent": () => (/* binding */ indent)
123136
- /* harmony export */ });
123137
- /* module decorator */ module = __webpack_require__.hmd(module);
123138
- (function () {
123139
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
123140
- enterModule && enterModule(module);
123141
- })();
123142
-
123143
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
123144
- return a;
123145
- };
123146
-
123147
- function indent(str, count) {
123148
- const indentStr = new Array(count * 2).fill(" ").join("");
123149
- return str.split("\n").map(x => {
123150
- if (x === "") {
123151
- return x;
123152
- }
123153
-
123154
- return indentStr + x;
123155
- }).join("\n");
123156
- }
123157
- ;
123158
-
123159
- (function () {
123160
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
123161
-
123162
- if (!reactHotLoader) {
123163
- return;
123164
- }
123165
-
123166
- reactHotLoader.register(indent, "indent", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\Utils.ts");
123167
- })();
123168
-
123169
- ;
123170
-
123171
- (function () {
123172
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
123173
- leaveModule && leaveModule(module);
123174
- })();
123175
-
123176
- /***/ }),
123177
-
123178
122392
  /***/ "./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts":
123179
122393
  /*!*********************************************************************************!*\
123180
122394
  !*** ./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts ***!
@@ -130223,7 +129437,8 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
130223
129437
 
130224
129438
 
130225
129439
  class FormulasAutoCalculationsGenerator {
130226
- generate(formulas, schemaRng, dataDeclarationHelper) {
129440
+ generate(formulaContainer, schemaRng, dataDeclarationHelper) {
129441
+ const formulas = formulaContainer.formulas == undefined || formulaContainer.formulas.items == undefined ? [] : formulaContainer.formulas.items;
130227
129442
  const formulaAutoCalculations = formulas.map(formula => this.buildFormulaAutoCalculation(formula, schemaRng, dataDeclarationHelper)).flat();
130228
129443
  return this.mergeFormulaAutoCalculations(formulaAutoCalculations);
130229
129444
  }
@@ -131233,8 +130448,7 @@ __webpack_require__.r(__webpack_exports__);
131233
130448
  /* harmony export */ });
131234
130449
  /* harmony import */ var _common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../common/XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
131235
130450
  /* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
131236
- /* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
131237
- /* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
130451
+ /* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
131238
130452
  /* module decorator */ module = __webpack_require__.hmd(module);
131239
130453
  (function () {
131240
130454
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -131248,68 +130462,31 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
131248
130462
 
131249
130463
 
131250
130464
 
131251
-
131252
130465
  class FormulaReader {
131253
- readFormulas(kcxmlSources, kclangSources) {
130466
+ readFormulas(kcxmlSource) {
131254
130467
  const serializer = this.createFormulaSerializer();
131255
- const result = [];
130468
+ const result = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
131256
130469
 
131257
- for (const kcxmlSource of kcxmlSources) {
131258
- const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
131259
-
131260
- if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
131261
- var _rootNode$formulas$it, _rootNode$formulas;
131262
-
131263
- result.push(...((_rootNode$formulas$it = (_rootNode$formulas = rootNode.formulas) === null || _rootNode$formulas === void 0 ? void 0 : _rootNode$formulas.items) !== null && _rootNode$formulas$it !== void 0 ? _rootNode$formulas$it : []));
131264
- }
131265
- }
131266
-
131267
- for (const kclangSource of kclangSources) {
131268
- const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToXmlTranspiler.transpile(kclangSource)));
131269
-
131270
- if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
131271
- var _rootNode$formulas$it2, _rootNode$formulas2;
131272
-
131273
- result.push(...((_rootNode$formulas$it2 = (_rootNode$formulas2 = rootNode.formulas) === null || _rootNode$formulas2 === void 0 ? void 0 : _rootNode$formulas2.items) !== null && _rootNode$formulas$it2 !== void 0 ? _rootNode$formulas$it2 : []));
131274
- }
130470
+ if (result instanceof _Formula__WEBPACK_IMPORTED_MODULE_2__.DummyContent) {
130471
+ return this.createEmptyMathContainer();
131275
130472
  }
131276
130473
 
131277
130474
  return result;
131278
130475
  }
131279
130476
 
131280
- readConditions(kcxmlSources, kclangSources) {
131281
- const serializer = this.createFormulaSerializer();
131282
- const result = [];
131283
-
131284
- for (const kcxmlSource of kcxmlSources) {
131285
- const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
131286
-
131287
- if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
131288
- var _rootNode$conditions$, _rootNode$conditions;
131289
-
131290
- result.push(...((_rootNode$conditions$ = (_rootNode$conditions = rootNode.conditions) === null || _rootNode$conditions === void 0 ? void 0 : _rootNode$conditions.items) !== null && _rootNode$conditions$ !== void 0 ? _rootNode$conditions$ : []));
131291
- }
131292
- }
131293
-
131294
- for (const kclangSource of kclangSources) {
131295
- const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToXmlTranspiler.transpile(kclangSource)));
131296
-
131297
- if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
131298
- var _rootNode$conditions$2, _rootNode$conditions2;
131299
-
131300
- result.push(...((_rootNode$conditions$2 = (_rootNode$conditions2 = rootNode.conditions) === null || _rootNode$conditions2 === void 0 ? void 0 : _rootNode$conditions2.items) !== null && _rootNode$conditions$2 !== void 0 ? _rootNode$conditions$2 : []));
131301
- }
131302
- }
131303
-
131304
- return result;
130477
+ createEmptyMathContainer() {
130478
+ const mathContainer = new _Formula__WEBPACK_IMPORTED_MODULE_2__.MathContainer();
130479
+ mathContainer.formulas = new _Formula__WEBPACK_IMPORTED_MODULE_2__.Formulas();
130480
+ mathContainer.formulas.items = [];
130481
+ return mathContainer;
131305
130482
  }
131306
130483
 
131307
130484
  createFormulaSerializer() {
131308
130485
  const result = new _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.SugarSerializer();
131309
- result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_3__.DummyContent);
131310
- result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer);
130486
+ result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_2__.DummyContent);
130487
+ result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_2__.MathContainer);
131311
130488
 
131312
- for (const formulaExpression of _Formula__WEBPACK_IMPORTED_MODULE_3__.formulaExpressions) {
130489
+ for (const formulaExpression of _Formula__WEBPACK_IMPORTED_MODULE_2__.formulaExpressions) {
131313
130490
  result.registerNode(formulaExpression);
131314
130491
  }
131315
130492
 
@@ -131757,7 +130934,6 @@ __webpack_require__.r(__webpack_exports__);
131757
130934
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
131758
130935
  /* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
131759
130936
  /* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
131760
- /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
131761
130937
  /* module decorator */ module = __webpack_require__.hmd(module);
131762
130938
  (function () {
131763
130939
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -131777,7 +130953,6 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
131777
130953
 
131778
130954
 
131779
130955
 
131780
-
131781
130956
  var RequisiteSectionMode;
131782
130957
 
131783
130958
  (function (RequisiteSectionMode) {
@@ -131788,10 +130963,8 @@ var RequisiteSectionMode;
131788
130963
 
131789
130964
  const emptyDataDeclarationCollection = {};
131790
130965
  class DataDeclarationGenerationContext {
131791
- constructor(initSequenceFactory, controlCustomizationContext, typesRegistry, formSchemaRng, schemeValidations) {
130966
+ constructor(initSequenceFactory, controlCustomizationContext, typesRegistry) {
131792
130967
  this.initSequenceFactory = void 0;
131793
- this.formSchemaRng = void 0;
131794
- this.schemeValidations = void 0;
131795
130968
  this.controlCustomizationContext = void 0;
131796
130969
  this.typesRegistry = void 0;
131797
130970
 
@@ -131821,29 +130994,11 @@ class DataDeclarationGenerationContext {
131821
130994
  return undefined;
131822
130995
  };
131823
130996
 
131824
- this.formSchemaRng = formSchemaRng;
131825
- this.schemeValidations = schemeValidations;
131826
130997
  this.initSequenceFactory = initSequenceFactory;
131827
130998
  this.controlCustomizationContext = controlCustomizationContext;
131828
130999
  this.typesRegistry = typesRegistry;
131829
131000
  }
131830
131001
 
131831
- isMultipleNodeOptionalFromScheme(path) {
131832
- if (!this.schemeValidations) {
131833
- return undefined;
131834
- }
131835
-
131836
- const schemaNode = this.formSchemaRng.getElementByPath(path);
131837
-
131838
- if (schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_9__.FormSchemaRngElement) {
131839
- var _schemaNode$optional;
131840
-
131841
- return (_schemaNode$optional = schemaNode.optional) !== null && _schemaNode$optional !== void 0 ? _schemaNode$optional : false;
131842
- }
131843
-
131844
- return undefined;
131845
- }
131846
-
131847
131002
  getTypeNode(node) {
131848
131003
  if (node.anonymousType != undefined) {
131849
131004
  return node.anonymousType;
@@ -132221,15 +131376,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
132221
131376
 
132222
131377
 
132223
131378
  class DataDeclarationGenerator {
132224
- constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry, formSchemaRng, schemeValidations) {
131379
+ constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry) {
132225
131380
  this.sugarRoot = void 0;
132226
131381
  this.initSequenceFactory = void 0;
132227
- this.formSchemaRng = void 0;
132228
- this.schemeValidations = void 0;
132229
131382
  this.controlCustomizationContext = void 0;
132230
131383
  this.typesRegistry = void 0;
132231
- this.formSchemaRng = formSchemaRng;
132232
- this.schemeValidations = schemeValidations;
132233
131384
  this.sugarRoot = sugarRoot;
132234
131385
  this.initSequenceFactory = initSequenceFactory;
132235
131386
  this.controlCustomizationContext = controlCustomizationContext;
@@ -132241,7 +131392,7 @@ class DataDeclarationGenerator {
132241
131392
 
132242
131393
  const converterClass = (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(this.sugarRoot))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
132243
131394
  const converter = new converterClass(this.sugarRoot);
132244
- const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry, this.formSchemaRng, this.schemeValidations);
131395
+ const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry);
132245
131396
  const dataDeclaration = converter.buildDataDeclaration(context);
132246
131397
  const orderedDataDeclaration = this.sortDataDeclarationKeys(dataDeclaration);
132247
131398
  const result = this.replaceHolder(`
@@ -132275,7 +131426,7 @@ class DataDeclarationGenerator {
132275
131426
 
132276
131427
  const converterClass = (_getConverterByNodeCl2 = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(this.sugarRoot))) !== null && _getConverterByNodeCl2 !== void 0 ? _getConverterByNodeCl2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
132277
131428
  const converter = new converterClass(this.sugarRoot);
132278
- const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry, this.formSchemaRng, this.schemeValidations);
131429
+ const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry);
132279
131430
  const dataDeclaration = converter.buildDataDeclaration(context);
132280
131431
  const orderedDataDeclaration = this.sortDataDeclarationKeys(dataDeclaration);
132281
131432
  return `
@@ -133535,9 +132686,11 @@ class KCXmlValidationGenerator {
133535
132686
  const conditionReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_2__.FormulaReader();
133536
132687
 
133537
132688
  for (const file of importedKcXmlValidations) {
133538
- const conditions = conditionReader.readConditions([file], []);
132689
+ const math = conditionReader.readFormulas(file);
132690
+
132691
+ for (const condition of (_math$conditions$item = math === null || math === void 0 ? void 0 : (_math$conditions = math.conditions) === null || _math$conditions === void 0 ? void 0 : _math$conditions.items) !== null && _math$conditions$item !== void 0 ? _math$conditions$item : []) {
132692
+ var _math$conditions$item, _math$conditions;
133539
132693
 
133540
- for (const condition of conditions) {
133541
132694
  compiledConditions.push(this.compileCondition(condition));
133542
132695
  }
133543
132696
  }
@@ -133752,12 +132905,12 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
133752
132905
 
133753
132906
  function processSugar(formSugarContent, additionalContent, generationOptions) {
133754
132907
  try {
133755
- var _generationOptions$in, _generationOptions$in2, _sugarRoot$schemaVali, _sugarRoot$schemaVali2, _sugarRoot$deepOption, _sugarRoot$schemaVali3, _generationOptions$re, _sugarRoot$schemaVali4, _additionalContent$fo, _additionalContent$fo2;
132908
+ var _generationOptions$in, _generationOptions$in2, _sugarRoot$schemaVali, _sugarRoot$deepOption, _sugarRoot$schemaVali2, _generationOptions$re, _sugarRoot$schemaVali3, _additionalContent$fo, _additionalContent$fo2;
133756
132909
 
133757
132910
  const sugarAst = (0,_common_SugarXmlParser_SugarParser__WEBPACK_IMPORTED_MODULE_4__.parseSugar)(formSugarContent, additionalContent.preprocessor || {});
133758
132911
  const serializer = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__.createDefaultSugarSerializer)();
133759
132912
  const sugarRoot = (0,_markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__.strictCastNode)(serializer.deserializeFromSugarXmlNode(sugarAst), _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__.FormNode);
133760
- const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent, additionalContent.kclangAutocaclulationsContent);
132913
+ const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent);
133761
132914
  const schemaRng = (0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_5__.parseXml)(additionalContent.schemaRngContent);
133762
132915
  const formSchemaRng = _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRng.createFromSchemaRng(additionalContent.schemaRngContent);
133763
132916
  const typeRegistry = (0,_validationGenerator_TypesRegistry__WEBPACK_IMPORTED_MODULE_14__.buildTypesRegistry)(sugarRoot);
@@ -133766,18 +132919,18 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
133766
132919
  const referencedFetchFunctions = additionalContent.fetchFunctionSources != undefined ? getReferencedFetchFunctions(additionalContent.fetchFunctionSources) : {};
133767
132920
  const fetchFunctions = new _common_FetchFunctions__WEBPACK_IMPORTED_MODULE_2__.FetchFunctions(referencedFetchFunctions); // tslint:disable-next-line no-unsafe-any
133768
132921
 
133769
- const additionalSettings = JSON.parse(additionalContent.additionalSettings || "{}");
133770
- const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_18__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_19__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry, formSchemaRng, (_sugarRoot$schemaVali = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali !== void 0 ? _sugarRoot$schemaVali : false);
132922
+ const additionalSettings = typeof additionalContent.additionalSettings === "string" ? JSON.parse(additionalContent.additionalSettings || "{}") : additionalContent.additionalSettings;
132923
+ const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_18__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_19__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry);
133771
132924
  const {
133772
132925
  dataDeclarationContent,
133773
132926
  dataDeclaration
133774
132927
  } = dataDeclarationGenerator.generate();
133775
132928
  const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_25__.DataDeclarationGenerationTimeHelper(dataDeclaration);
133776
- const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_15__.ValidationGenerator(sugarRoot, typeRegistry, controlCustomizationContext, formSchemaRng, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, (_sugarRoot$deepOption = sugarRoot.deepOptionalSchemaValidations) !== null && _sugarRoot$deepOption !== void 0 ? _sugarRoot$deepOption : false, additionalContent.validationsContent);
133777
- const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_24__.NormalizationRulesGenerator(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typeRegistry, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false, controlCustomizationContext);
132929
+ const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_15__.ValidationGenerator(sugarRoot, typeRegistry, controlCustomizationContext, formSchemaRng, (_sugarRoot$schemaVali = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali !== void 0 ? _sugarRoot$schemaVali : false, (_sugarRoot$deepOption = sugarRoot.deepOptionalSchemaValidations) !== null && _sugarRoot$deepOption !== void 0 ? _sugarRoot$deepOption : false, additionalContent.validationsContent);
132930
+ const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_24__.NormalizationRulesGenerator(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typeRegistry, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, controlCustomizationContext);
133778
132931
  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");
133779
132932
  const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_20__.FormSourcesBuilder(additionalContent.formSourcesPath);
133780
- const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$schemaVali4 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali4 !== void 0 ? _sugarRoot$schemaVali4 : false);
132933
+ const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
133781
132934
  markupGenerator.generate(sugarRoot, builder);
133782
132935
  builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_8__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings));
133783
132936
  builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_23__.getRequisiteList)(sugarRoot, fetchFunctions));
@@ -133910,17 +133063,19 @@ __webpack_require__.r(__webpack_exports__);
133910
133063
  /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
133911
133064
  /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ "path");
133912
133065
  /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
133913
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
133914
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_2__);
133915
- /* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/lib/index.js");
133916
- /* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(fs_extra__WEBPACK_IMPORTED_MODULE_3__);
133917
- /* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
133918
- /* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_4__);
133919
- /* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! md5-file */ "./node_modules/md5-file/index.js");
133920
- /* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(md5_file__WEBPACK_IMPORTED_MODULE_5__);
133921
- /* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recursive-readdir */ "./node_modules/recursive-readdir/index.js");
133922
- /* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(recursive_readdir__WEBPACK_IMPORTED_MODULE_6__);
133923
- /* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
133066
+ /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! util */ "util");
133067
+ /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_2__);
133068
+ /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
133069
+ /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_3__);
133070
+ /* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/lib/index.js");
133071
+ /* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(fs_extra__WEBPACK_IMPORTED_MODULE_4__);
133072
+ /* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
133073
+ /* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_5__);
133074
+ /* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! md5-file */ "./node_modules/md5-file/index.js");
133075
+ /* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(md5_file__WEBPACK_IMPORTED_MODULE_6__);
133076
+ /* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! recursive-readdir */ "./node_modules/recursive-readdir/index.js");
133077
+ /* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(recursive_readdir__WEBPACK_IMPORTED_MODULE_7__);
133078
+ /* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
133924
133079
  /* module decorator */ module = __webpack_require__.hmd(module);
133925
133080
  (function () {
133926
133081
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -133939,6 +133094,10 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
133939
133094
 
133940
133095
 
133941
133096
 
133097
+
133098
+ const statAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.stat);
133099
+ const readFileAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.readFile);
133100
+ const readdirAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.readdir);
133942
133101
  async function readFormSources(formSourcesPath, farmDirectory) {
133943
133102
  var _JSON$parse$settings;
133944
133103
 
@@ -133950,9 +133109,9 @@ async function readFormSources(formSourcesPath, farmDirectory) {
133950
133109
 
133951
133110
  if (sugarReferences.fetchFunctionFiles.length === 0) {
133952
133111
  // eslint-disable-next-line no-console
133953
- console.warn(chalk__WEBPACK_IMPORTED_MODULE_2___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
133112
+ console.warn(chalk__WEBPACK_IMPORTED_MODULE_3___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
133954
133113
  const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
133955
- sugarReferences.fetchFunctionFiles = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
133114
+ sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
133956
133115
  }
133957
133116
 
133958
133117
  const result = {
@@ -133962,12 +133121,11 @@ async function readFormSources(formSourcesPath, farmDirectory) {
133962
133121
  formSourcesPath: formSourcesPath,
133963
133122
  formJsonSettings: (_JSON$parse$settings = JSON.parse(await readFileSource(formSourcesPath, "form.json", "{}"))["settings"]) !== null && _JSON$parse$settings !== void 0 ? _JSON$parse$settings : {},
133964
133123
  additionalSettings: await readFileSource(formSourcesPath, "settings.json", "{}"),
133965
- autocalcsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.js$/),
133124
+ autocalcsContent: await readAutoCalcFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc")),
133966
133125
  helpersContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers")),
133967
133126
  validationsContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations")),
133968
133127
  schemaRngContent: await readSchemaRngFile(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"), formName),
133969
- kcJsXmlContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.(KC|КС|КC|KС|КС\.candy\.js).xml$/),
133970
- kclangAutocaclulationsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.kclang$/),
133128
+ kcJsXmlContent: (await readFileSource(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), `${formName}.КС.candy.js.xml`, "<dummy/>")) || "",
133971
133129
  tourSteps: await readFileSource(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "tour"), "tour.js", "{}"),
133972
133130
  hooksContent: await readHooksFile(formSourcesPath),
133973
133131
  customControlsContent: await readCustomControlsFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls")),
@@ -134011,7 +133169,7 @@ function evalModule(moduleCode) {
134011
133169
 
134012
133170
  async function isDirectoryExists(directoryPath) {
134013
133171
  try {
134014
- const dirStat = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.stat)(directoryPath);
133172
+ const dirStat = await statAsync(directoryPath);
134015
133173
  return dirStat.isDirectory();
134016
133174
  } catch (ignoreError) {
134017
133175
  return false;
@@ -134022,27 +133180,27 @@ async function readFiles(filePaths) {
134022
133180
  const result = [];
134023
133181
 
134024
133182
  for (const filePath of filePaths) {
134025
- result.push(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(filePath, "utf-8"));
133183
+ result.push(await readFileAsync(filePath, "utf-8"));
134026
133184
  }
134027
133185
 
134028
133186
  return result;
134029
133187
  }
134030
133188
 
134031
133189
  async function extractReferences(formSugarDirectoryPath) {
134032
- const indexContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8");
134033
- return (0,_common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__.extractSugarReferences)(indexContent, filePath => (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, filePath), "utf-8"));
133190
+ const indexContent = await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8");
133191
+ return (0,_common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_8__.extractSugarReferences)(indexContent, filePath => readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, filePath), "utf-8"));
134034
133192
  }
134035
133193
 
134036
133194
  async function getAllFilePathsInDirectory(directoryPath, _filelist) {
134037
- if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(directoryPath))) {
133195
+ if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_4__.pathExists)(directoryPath))) {
134038
133196
  return [];
134039
133197
  }
134040
133198
 
134041
- const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(directoryPath);
133199
+ const files = await readdirAsync(directoryPath);
134042
133200
  let filelist = _filelist || [];
134043
133201
 
134044
133202
  for (const file of files) {
134045
- if ((await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.stat)(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file))).isDirectory()) {
133203
+ if ((await statAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file))).isDirectory()) {
134046
133204
  filelist = await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file), filelist);
134047
133205
  } else {
134048
133206
  filelist.push(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file));
@@ -134053,7 +133211,7 @@ async function getAllFilePathsInDirectory(directoryPath, _filelist) {
134053
133211
  }
134054
133212
 
134055
133213
  async function checkFileExists(filePath) {
134056
- if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(filePath))) {
133214
+ if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_4__.pathExists)(filePath))) {
134057
133215
  return [];
134058
133216
  }
134059
133217
 
@@ -134066,7 +133224,7 @@ async function getAllDependencies(formSourcesPath, farmDirectory) {
134066
133224
 
134067
133225
  if (sugarReferences.fetchFunctionFiles.length === 0) {
134068
133226
  const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
134069
- sugarReferences.fetchFunctionFiles = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
133227
+ sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
134070
133228
  }
134071
133229
 
134072
133230
  return [path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), ...sugarReferences.fetchFunctionFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...sugarReferences.sugarFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x + ".sugar.xml")), ...sugarReferences.resourceFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "settings.json"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "hooks.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "tour", "tour.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "localization")))];
@@ -134079,23 +133237,23 @@ function normalizeLineEndings(content) {
134079
133237
  async function getAllDependenciesHash(formSourcesPath, farmDirectory) {
134080
133238
  const allDeps = await getAllDependencies(formSourcesPath, farmDirectory);
134081
133239
  const hashes = await Promise.all(allDeps.map(async depFilePath => {
134082
- if ([".js", ".kclang", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
134083
- let content = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(depFilePath, "utf-8");
133240
+ if ([".js", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
133241
+ let content = await readFileAsync(depFilePath, "utf-8");
134084
133242
  content = normalizeLineEndings(content);
134085
- return md5__WEBPACK_IMPORTED_MODULE_4___default()(content);
133243
+ return md5__WEBPACK_IMPORTED_MODULE_5___default()(content);
134086
133244
  }
134087
133245
 
134088
- return md5_file__WEBPACK_IMPORTED_MODULE_5___default()(depFilePath);
133246
+ return md5_file__WEBPACK_IMPORTED_MODULE_6___default()(depFilePath);
134089
133247
  }));
134090
- return md5__WEBPACK_IMPORTED_MODULE_4___default()(hashes.join(""));
133248
+ return md5__WEBPACK_IMPORTED_MODULE_5___default()(hashes.join(""));
134091
133249
  }
134092
133250
  async function readSugarFiles(formSugarDirectoryPath, references) {
134093
133251
  const result = {
134094
- "./index": await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8")
133252
+ "./index": await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8")
134095
133253
  };
134096
133254
 
134097
133255
  for (const sugarPath of references.sugarFiles) {
134098
- const sugarModuleContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, sugarPath + ".sugar.xml"), "utf-8");
133256
+ const sugarModuleContent = await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, sugarPath + ".sugar.xml"), "utf-8");
134099
133257
  result[sugarPath] = sugarModuleContent;
134100
133258
  }
134101
133259
 
@@ -134107,11 +133265,11 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
134107
133265
  return {};
134108
133266
  }
134109
133267
 
134110
- const fileNames = await recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default()(formSugarDirectoryPath);
133268
+ const fileNames = await recursive_readdir__WEBPACK_IMPORTED_MODULE_7___default()(formSugarDirectoryPath);
134111
133269
  const result = {};
134112
133270
 
134113
133271
  for (const fileName of fileNames) {
134114
- const sugarModuleContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(fileName, "utf-8");
133272
+ const sugarModuleContent = await readFileAsync(fileName, "utf-8");
134115
133273
  const relativeFileName = ("controls\\" + fileName.replace(formSugarDirectoryPath + "\\", "")).replace(/\\/g, "/");
134116
133274
  result[relativeFileName] = sugarModuleContent;
134117
133275
  }
@@ -134119,23 +133277,23 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
134119
133277
  return result;
134120
133278
  }
134121
133279
 
134122
- async function readFilesFromDir(directoryPath, fileNameTest) {
134123
- if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(directoryPath))) {
133280
+ async function readAutoCalcFiles(formAutoCalcPath) {
133281
+ try {
133282
+ const files = await readdirAsync(formAutoCalcPath);
133283
+ const jsFiles = files.filter(filename => /\.js$/.test(filename));
133284
+ return Promise.all(jsFiles.map(filename => readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formAutoCalcPath, filename), "utf-8")));
133285
+ } catch (ignoreError) {
134124
133286
  return [];
134125
133287
  }
134126
-
134127
- const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(directoryPath);
134128
- const jsFiles = files.filter(filename => fileNameTest.test(filename));
134129
- return Promise.all(jsFiles.map(filename => (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, filename), "utf-8")));
134130
133288
  }
134131
133289
 
134132
133290
  async function readImportedFiles(rootPath) {
134133
133291
  try {
134134
133292
  const result = {};
134135
- const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations"));
133293
+ const files = await readdirAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations"));
134136
133294
 
134137
133295
  for (const fileName of files) {
134138
- result["../validations/" + fileName] = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations", fileName), "utf-8");
133296
+ result["../validations/" + fileName] = await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations", fileName), "utf-8");
134139
133297
  }
134140
133298
 
134141
133299
  return result;
@@ -134146,11 +133304,11 @@ async function readImportedFiles(rootPath) {
134146
133304
 
134147
133305
  async function readJavaScriptFilesWithNames(formJavaScriptFilesPath) {
134148
133306
  try {
134149
- const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(formJavaScriptFilesPath);
133307
+ const files = await readdirAsync(formJavaScriptFilesPath);
134150
133308
  const jsFiles = files.filter(filename => /\.js$/.test(filename));
134151
133309
  return Promise.all(jsFiles.map(async filename => ({
134152
133310
  filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
134153
- content: await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8")
133311
+ content: await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8")
134154
133312
  })));
134155
133313
  } catch (ignoreError) {
134156
133314
  return [];
@@ -134161,7 +133319,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
134161
133319
  let jsFiles;
134162
133320
 
134163
133321
  try {
134164
- const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(formJavaScriptFilesPath);
133322
+ const files = await readdirAsync(formJavaScriptFilesPath);
134165
133323
  jsFiles = files.filter(filename => /\.js$/.test(filename));
134166
133324
  const result = [];
134167
133325
 
@@ -134169,7 +133327,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
134169
133327
  result.push({
134170
133328
  filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
134171
133329
  // tslint:disable-next-line no-unsafe-any
134172
- content: evalModule(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8"))
133330
+ content: evalModule(await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8"))
134173
133331
  });
134174
133332
  }
134175
133333
 
@@ -134180,16 +133338,16 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
134180
133338
  }
134181
133339
 
134182
133340
  function readSchemaRngFile(formSchemasPath, gfv) {
134183
- return (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSchemasPath, `${gfv}.rng.xml`), "utf-8");
133341
+ return readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSchemasPath, `${gfv}.rng.xml`), "utf-8");
134184
133342
  }
134185
133343
 
134186
133344
  function readHooksFile(formDirectoryPath) {
134187
- return (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formDirectoryPath, "hooks.js"), "utf-8").catch(() => "");
133345
+ return readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formDirectoryPath, "hooks.js"), "utf-8").catch(() => "");
134188
133346
  }
134189
133347
 
134190
133348
  async function readFileSource(filePath, filename, defaultValue) {
134191
133349
  try {
134192
- return await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(filePath, filename), "utf-8");
133350
+ return await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(filePath, filename), "utf-8");
134193
133351
  } catch (ingoreError) {
134194
133352
  return defaultValue;
134195
133353
  }
@@ -134204,6 +133362,9 @@ async function readFileSource(filePath, filename, defaultValue) {
134204
133362
  return;
134205
133363
  }
134206
133364
 
133365
+ reactHotLoader.register(statAsync, "statAsync", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
133366
+ reactHotLoader.register(readFileAsync, "readFileAsync", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
133367
+ reactHotLoader.register(readdirAsync, "readdirAsync", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134207
133368
  reactHotLoader.register(readFormSources, "readFormSources", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134208
133369
  reactHotLoader.register(evalModule, "evalModule", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134209
133370
  reactHotLoader.register(isDirectoryExists, "isDirectoryExists", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
@@ -134216,7 +133377,7 @@ async function readFileSource(filePath, filename, defaultValue) {
134216
133377
  reactHotLoader.register(getAllDependenciesHash, "getAllDependenciesHash", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134217
133378
  reactHotLoader.register(readSugarFiles, "readSugarFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134218
133379
  reactHotLoader.register(readCustomControlsFiles, "readCustomControlsFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134219
- reactHotLoader.register(readFilesFromDir, "readFilesFromDir", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
133380
+ reactHotLoader.register(readAutoCalcFiles, "readAutoCalcFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134220
133381
  reactHotLoader.register(readImportedFiles, "readImportedFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134221
133382
  reactHotLoader.register(readJavaScriptFilesWithNames, "readJavaScriptFilesWithNames", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
134222
133383
  reactHotLoader.register(connectJSFilesWithNames, "connectJSFilesWithNames", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
@@ -134245,10 +133406,12 @@ __webpack_require__.r(__webpack_exports__);
134245
133406
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
134246
133407
  /* harmony export */ "getRequisiteList": () => (/* binding */ getRequisiteList),
134247
133408
  /* harmony export */ "getRequisitesFromEvaluablePropValue": () => (/* binding */ getRequisitesFromEvaluablePropValue),
133409
+ /* harmony export */ "getPathsFromEvaluablePropValue": () => (/* binding */ getPathsFromEvaluablePropValue),
134248
133410
  /* harmony export */ "getRequisitesFromEvaluableProps": () => (/* binding */ getRequisitesFromEvaluableProps)
134249
133411
  /* harmony export */ });
134250
133412
  /* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
134251
133413
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
133414
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
134252
133415
  /* module decorator */ module = __webpack_require__.hmd(module);
134253
133416
  (function () {
134254
133417
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -134261,6 +133424,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
134261
133424
 
134262
133425
 
134263
133426
 
133427
+
134264
133428
  function getRequisiteList(sugarAst, fetchFunctions) {
134265
133429
  const requisiteList = getSugarRequisites(sugarAst, fetchFunctions);
134266
133430
  return `export default [
@@ -134287,6 +133451,21 @@ function getRequisitesFromEvaluablePropValue(filter) {
134287
133451
 
134288
133452
  return (_filter$match$map$fil = (_filter$match = filter.match(/path([^)]+)/g)) === null || _filter$match === void 0 ? void 0 : _filter$match.map(path => path.slice(6, -1)).filter(path => path.startsWith("@clientInfo") || path.startsWith("@formsClientInfo")).map(path => `${path}.value`)) !== null && _filter$match$map$fil !== void 0 ? _filter$match$map$fil : [];
134289
133453
  }
133454
+ function getPathsFromEvaluablePropValue(evaluableProp) {
133455
+ const result = [];
133456
+ const pathRegex = /(?<=path\((?:'|")).*?(?=(?:'|"))/g;
133457
+ const pathList = [...evaluableProp.matchAll(pathRegex)];
133458
+
133459
+ if (pathList.length > 0) {
133460
+ result.push(...pathList.map(x => {
133461
+ var _x$;
133462
+
133463
+ return _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.ModelPath.createFromString((_x$ = x[0]) !== null && _x$ !== void 0 ? _x$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)("Path regexp parse error - unexpected undefined"), "auto");
133464
+ }));
133465
+ }
133466
+
133467
+ return result;
133468
+ }
134290
133469
  function getRequisitesFromEvaluableProps(...evaluablePropValues) {
134291
133470
  return evaluablePropValues.filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).flatMap(getRequisitesFromEvaluablePropValue);
134292
133471
  }
@@ -134302,6 +133481,7 @@ function getRequisitesFromEvaluableProps(...evaluablePropValues) {
134302
133481
  reactHotLoader.register(getRequisiteList, "getRequisiteList", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\RequisiteLIst\\requisiteList.ts");
134303
133482
  reactHotLoader.register(getSugarRequisites, "getSugarRequisites", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\RequisiteLIst\\requisiteList.ts");
134304
133483
  reactHotLoader.register(getRequisitesFromEvaluablePropValue, "getRequisitesFromEvaluablePropValue", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\RequisiteLIst\\requisiteList.ts");
133484
+ reactHotLoader.register(getPathsFromEvaluablePropValue, "getPathsFromEvaluablePropValue", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\RequisiteLIst\\requisiteList.ts");
134305
133485
  reactHotLoader.register(getRequisitesFromEvaluableProps, "getRequisitesFromEvaluableProps", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\RequisiteLIst\\requisiteList.ts");
134306
133486
  })();
134307
133487
 
@@ -135043,18 +134223,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
135043
134223
 
135044
134224
 
135045
134225
  class NormalizationRulesGenerator {
135046
- constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typesRegistry, useSchemaValidations, controlCustomizationContext) {
134226
+ constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, mathContainer, typesRegistry, useSchemaValidations, controlCustomizationContext) {
135047
134227
  this.sugarRoot = void 0;
135048
134228
  this.dataDeclarationHelper = void 0;
135049
134229
  this.formSchemaRng = void 0;
135050
- this.formulas = void 0;
134230
+ this.mathContainer = void 0;
135051
134231
  this.typesRegistry = void 0;
135052
134232
  this.controlCustomizationContext = void 0;
135053
134233
  this.useSchemaValidations = void 0;
135054
134234
  this.sugarRoot = sugarRoot;
135055
134235
  this.dataDeclarationHelper = dataDeclarationHelper;
135056
134236
  this.formSchemaRng = formSchemaRng;
135057
- this.formulas = formulas;
134237
+ this.mathContainer = mathContainer;
135058
134238
  this.typesRegistry = typesRegistry;
135059
134239
  this.useSchemaValidations = useSchemaValidations;
135060
134240
  this.controlCustomizationContext = controlCustomizationContext;
@@ -135084,7 +134264,9 @@ class NormalizationRulesGenerator {
135084
134264
  }
135085
134265
 
135086
134266
  *buildFormulaFLangRules() {
135087
- for (const formula of this.formulas) {
134267
+ for (const formula of (_this$mathContainer$f = (_this$mathContainer = this.mathContainer) === null || _this$mathContainer === void 0 ? void 0 : (_this$mathContainer$f2 = _this$mathContainer.formulas) === null || _this$mathContainer$f2 === void 0 ? void 0 : _this$mathContainer$f2.items) !== null && _this$mathContainer$f !== void 0 ? _this$mathContainer$f : []) {
134268
+ var _this$mathContainer$f, _this$mathContainer, _this$mathContainer$f2;
134269
+
135088
134270
  yield* this.buildFormulaFlashRule(formula);
135089
134271
  }
135090
134272
  }
@@ -135974,7 +135156,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
135974
135156
  let convertersFromNodeClassMap;
135975
135157
 
135976
135158
  function buildConvertersFromNodeClassMap() {
135977
- const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_12__.BlockConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_14__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_15__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_17__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_18__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_19__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_84__.TableCellConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_20__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_21__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_22__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_95__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_23__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_24__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_25__.DiadocSuggestComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_26__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_27__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_28__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_29__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_30__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_31__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_32__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_33__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_35__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_36__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_37__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_38__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_39__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_40__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_41__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_42__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_43__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_44__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_45__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_46__.IconConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_47__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_48__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_49__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_50__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_51__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_52__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_53__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_54__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_55__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_56__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_57__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_61__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_62__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_64__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_65__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_66__.PicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_67__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_68__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_69__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_70__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_71__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_72__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_73__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_74__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_75__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_76__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_85__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_86__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_94__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_90__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_91__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_92__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_9__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_63__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_93__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_89__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_88__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_13__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_34__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_16__.ButtonConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_87__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_77__.SwitchConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_77__.SwitchCaseConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_77__.SwitchDefaultConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_82__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_78__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_80__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_79__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_81__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_83__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_4__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_3__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_7__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_99__.DropdownButtonConverter, _ElementProcessors_ValueEditors_FiasMvd_FiasMvdConverter__WEBPACK_IMPORTED_MODULE_2__.FiasMvdConverter, _ElementProcessors_ValueEditors_FiasFns_FiasFnsConverter__WEBPACK_IMPORTED_MODULE_0__.FiasFnsConverter, _ElementProcessors_ValueEditors_FiasFss_FiasFssConverter__WEBPACK_IMPORTED_MODULE_1__.FiasFssConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_5__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_6__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_98__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_97__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_6__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_6__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_101__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_100__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_102__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_103__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_104__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_105__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_106__.TaxRebateConverter];
135159
+ const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_12__.BlockConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_14__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_15__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_17__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_18__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_19__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_84__.TableCellConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_20__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_21__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_22__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_95__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_23__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_24__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_25__.DiadocSuggestComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_26__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_27__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_28__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_29__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_30__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_31__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_32__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_33__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_35__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_36__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_37__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_38__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_39__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_40__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_41__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_42__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_43__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_44__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_45__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_46__.IconConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_47__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_48__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_49__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_50__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_51__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_52__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_53__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_54__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_55__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_56__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_57__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_61__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_62__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_64__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_65__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_66__.PicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_67__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_68__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_69__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_70__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_71__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_72__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_73__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_74__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_75__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_76__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_85__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_86__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_94__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_90__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_91__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_92__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_9__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_63__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_93__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_89__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_88__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_13__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_34__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_16__.ButtonConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_87__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_77__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_82__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_78__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_80__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_79__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_81__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_83__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_4__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_3__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_7__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_99__.DropdownButtonConverter, _ElementProcessors_ValueEditors_FiasMvd_FiasMvdConverter__WEBPACK_IMPORTED_MODULE_2__.FiasMvdConverter, _ElementProcessors_ValueEditors_FiasFns_FiasFnsConverter__WEBPACK_IMPORTED_MODULE_0__.FiasFnsConverter, _ElementProcessors_ValueEditors_FiasFss_FiasFssConverter__WEBPACK_IMPORTED_MODULE_1__.FiasFssConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_5__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_6__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_98__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_97__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_6__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_6__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_101__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_100__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_102__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_103__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_104__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_105__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_106__.TaxRebateConverter];
135978
135160
  return new Map(converters.map(converterClass => [converterClass.getAcceptNodeClass(), converterClass]));
135979
135161
  }
135980
135162
 
@@ -138943,9 +138125,10 @@ __webpack_require__.r(__webpack_exports__);
138943
138125
  /* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
138944
138126
  /* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
138945
138127
  /* harmony import */ var _RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../RequisiteLIst/requisiteList */ "./Generator/src/generators/RequisiteLIst/requisiteList.ts");
138946
- /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
138947
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
138948
- /* harmony import */ var _IfNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./IfNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/If/IfNode.ts");
138128
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
138129
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
138130
+ /* harmony import */ var _ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
138131
+ /* harmony import */ var _IfNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./IfNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/If/IfNode.ts");
138949
138132
  /* module decorator */ module = __webpack_require__.hmd(module);
138950
138133
  (function () {
138951
138134
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -138966,28 +138149,79 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
138966
138149
 
138967
138150
 
138968
138151
 
138152
+
138969
138153
  class IfConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
138970
138154
  static getAcceptNodeClass() {
138971
- return _IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode;
138155
+ return _IfNode__WEBPACK_IMPORTED_MODULE_10__.IfNode;
138972
138156
  }
138973
138157
 
138974
138158
  doGetRequisites() {
138975
- const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode);
138159
+ const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_10__.IfNode);
138976
138160
  return (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__.getRequisitesFromEvaluableProps)(node.condition);
138977
138161
  }
138978
138162
 
138163
+ getDepsWithResolvedPath(condition, evaluatorsContextPathExpression) {
138164
+ const deps = (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__.getPathsFromEvaluablePropValue)(condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.reject)());
138165
+ return deps.filter(p => !p.toLegacyPath().startsWith("@")).map(x => evaluatorsContextPathExpression.toCurrentIteration().joinWith(x));
138166
+ }
138167
+
138168
+ buildChildrenValidations(validationGenerator) {
138169
+ const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_10__.IfNode);
138170
+
138171
+ if (node.then != undefined) {
138172
+ const evaluatorsContextPathExpression = this.getEvaluatorsContextPathExpression();
138173
+ const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_4__.convertConditionToJsOrFailWithFriendlySugarError)(this.getCondition(node), "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__.KCLangRuntimeUtils.kcLangUtilsName, node, (0,_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_9__.extractPath)(x => x.condition));
138174
+ const condition = conditionWithDependencies.condition;
138175
+ const deps = this.getDepsWithResolvedPath(condition, evaluatorsContextPathExpression);
138176
+ validationGenerator.pushVisibilityCondition([condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.reject)(), evaluatorsContextPathExpression, deps]);
138177
+
138178
+ try {
138179
+ super.buildChildrenValidations(validationGenerator, Iterator.from(node.then.children));
138180
+ } finally {
138181
+ validationGenerator.popVisibilityCondition();
138182
+ }
138183
+
138184
+ if (node.else != undefined) {
138185
+ validationGenerator.pushVisibilityCondition(["!(" + (condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.reject)()) + ")", evaluatorsContextPathExpression, this.getDepsWithResolvedPath(condition, evaluatorsContextPathExpression)]);
138186
+
138187
+ try {
138188
+ super.buildChildrenValidations(validationGenerator, Iterator.from(node.else.children));
138189
+ } finally {
138190
+ validationGenerator.popVisibilityCondition();
138191
+ }
138192
+ }
138193
+ } else {
138194
+ const evaluatorsContextPathExpression = this.getEvaluatorsContextPathExpression();
138195
+ const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_4__.convertConditionToJsOrFailWithFriendlySugarError)(this.getCondition(node), "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__.KCLangRuntimeUtils.kcLangUtilsName, node, (0,_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_9__.extractPath)(x => x.condition));
138196
+ const condition = conditionWithDependencies.condition;
138197
+ validationGenerator.pushVisibilityCondition([condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.reject)(), evaluatorsContextPathExpression, this.getDepsWithResolvedPath(condition, evaluatorsContextPathExpression)]);
138198
+
138199
+ try {
138200
+ super.buildChildrenValidations(validationGenerator);
138201
+ } finally {
138202
+ validationGenerator.popVisibilityCondition();
138203
+ }
138204
+ }
138205
+ }
138206
+
138207
+ getCondition(node) {
138208
+ var _node$condition;
138209
+
138210
+ return node.isIndividual === undefined ? (_node$condition = node.condition) !== null && _node$condition !== void 0 ? _node$condition : "" : `path("@settings/isIndividual") === ${node.isIndividual}`;
138211
+ }
138212
+
138979
138213
  doBuildDataDeclaration(context) {
138980
138214
  return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
138981
138215
  }
138982
138216
 
138983
138217
  buildChildrenDataDeclaration(context) {
138984
- const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode);
138218
+ const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_10__.IfNode);
138985
138219
  return context.processChildrenDataDeclaration(node.children, x => {
138986
- if (x instanceof _IfNode__WEBPACK_IMPORTED_MODULE_9__.ThenNode) {
138220
+ if (x instanceof _IfNode__WEBPACK_IMPORTED_MODULE_10__.ThenNode) {
138987
138221
  return context.processChildrenDataDeclaration(x.children);
138988
138222
  }
138989
138223
 
138990
- if (x instanceof _IfNode__WEBPACK_IMPORTED_MODULE_9__.ElseNode) {
138224
+ if (x instanceof _IfNode__WEBPACK_IMPORTED_MODULE_10__.ElseNode) {
138991
138225
  return context.processChildrenDataDeclaration(x.children);
138992
138226
  }
138993
138227
 
@@ -138996,12 +138230,12 @@ class IfConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sugar
138996
138230
  }
138997
138231
 
138998
138232
  *doTraverseChildren() {
138999
- const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode);
138233
+ const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_10__.IfNode);
139000
138234
 
139001
138235
  for (const child of node.children) {
139002
- if (child instanceof _IfNode__WEBPACK_IMPORTED_MODULE_9__.ThenNode) {
138236
+ if (child instanceof _IfNode__WEBPACK_IMPORTED_MODULE_10__.ThenNode) {
139003
138237
  yield* child.children;
139004
- } else if (child instanceof _IfNode__WEBPACK_IMPORTED_MODULE_9__.ElseNode) {
138238
+ } else if (child instanceof _IfNode__WEBPACK_IMPORTED_MODULE_10__.ElseNode) {
139005
138239
  yield* child.children;
139006
138240
  } else {
139007
138241
  yield child;
@@ -139012,10 +138246,10 @@ class IfConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sugar
139012
138246
  doConvert(context) {
139013
138247
  var _node$then, _node$else;
139014
138248
 
139015
- const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode);
138249
+ const node = this.getCurrentNodeAs(_IfNode__WEBPACK_IMPORTED_MODULE_10__.IfNode);
139016
138250
  const builder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("If");
139017
138251
 
139018
- if (node.isIndividual == undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.isNullOrWhiteSpace)(node.condition)) {
138252
+ if (node.isIndividual == undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.isNullOrWhiteSpace)(node.condition)) {
139019
138253
  throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError(`ifnode должна иметь свойство condition или isIndividual`, node, "condition");
139020
138254
  }
139021
138255
 
@@ -139023,19 +138257,19 @@ class IfConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sugar
139023
138257
  throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError(`Выберите или condition или isIndividual`, node, "condition");
139024
138258
  }
139025
138259
 
139026
- const condition = node.isIndividual !== undefined ? `path("@settings/isIndividual") === '${node.isIndividual}'` : node.condition;
139027
- const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_4__.convertConditionToJsOrFailWithFriendlySugarError)(condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__.KCLangRuntimeUtils.kcLangUtilsName, node, "condition");
138260
+ const condition = node.isIndividual === undefined ? node.condition : `path("@settings/isIndividual") === '${node.isIndividual}'`;
138261
+ const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_4__.convertConditionToJsOrFailWithFriendlySugarError)(condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.reject)(), "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__.KCLangRuntimeUtils.kcLangUtilsName, node, "condition");
139028
138262
  const thenBuilder = builder.createChild("Then");
139029
138263
  thenBuilder.appendChild(context.convertChildNodes(((_node$then = node.then) !== null && _node$then !== void 0 ? _node$then : node).children));
139030
138264
  thenBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
139031
- thenBuilder.prop(x => x.positiveCondition).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
138265
+ thenBuilder.prop(x => x.positiveCondition).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_8__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
139032
138266
 
139033
138267
  if (((_node$else = node.else) === null || _node$else === void 0 ? void 0 : _node$else.children) !== undefined) {
139034
138268
  var _node$else2;
139035
138269
 
139036
138270
  const elseBuilder = builder.createChild("Else");
139037
138271
  elseBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
139038
- elseBuilder.prop(x => x.positiveCondition).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
138272
+ elseBuilder.prop(x => x.positiveCondition).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_8__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
139039
138273
  elseBuilder.appendChild(context.convertChildNodes((_node$else2 = node.else) === null || _node$else2 === void 0 ? void 0 : _node$else2.children));
139040
138274
  }
139041
138275
 
@@ -139374,8 +138608,6 @@ let OtherwiseNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
139374
138608
  "use strict";
139375
138609
  __webpack_require__.r(__webpack_exports__);
139376
138610
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
139377
- /* harmony export */ "SwitchDefaultConverter": () => (/* binding */ SwitchDefaultConverter),
139378
- /* harmony export */ "SwitchCaseConverter": () => (/* binding */ SwitchCaseConverter),
139379
138611
  /* harmony export */ "SwitchConverter": () => (/* binding */ SwitchConverter)
139380
138612
  /* harmony export */ });
139381
138613
  /* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
@@ -139385,8 +138617,9 @@ __webpack_require__.r(__webpack_exports__);
139385
138617
  /* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
139386
138618
  /* harmony import */ var _ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
139387
138619
  /* harmony import */ var _RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../RequisiteLIst/requisiteList */ "./Generator/src/generators/RequisiteLIst/requisiteList.ts");
139388
- /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
139389
- /* harmony import */ var _SwitchNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SwitchNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/Switch/SwitchNode.ts");
138620
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
138621
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
138622
+ /* harmony import */ var _SwitchNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SwitchNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/Switch/SwitchNode.ts");
139390
138623
  /* module decorator */ module = __webpack_require__.hmd(module);
139391
138624
  (function () {
139392
138625
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -139406,87 +138639,14 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
139406
138639
 
139407
138640
 
139408
138641
 
139409
- class SwitchDefaultConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
139410
- static getAcceptNodeClass() {
139411
- return _SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchDefaultNode;
139412
- }
139413
-
139414
- doBuildDataDeclaration(context) {
139415
- return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
139416
- }
139417
-
139418
- buildChildrenDataDeclaration(context) {
139419
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchDefaultNode);
139420
- return context.processChildrenDataDeclaration(node.children);
139421
- }
139422
-
139423
- *doTraverseChildren() {
139424
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchDefaultNode);
139425
- yield* node.children;
139426
- }
139427
-
139428
- doConvert(context) {
139429
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchDefaultNode);
139430
- const builder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SwitchDefault");
139431
- builder.appendChild(context.convertChildNodes(node.children));
139432
- return builder.buildConverterResult();
139433
- }
139434
-
139435
- // @ts-ignore
139436
- __reactstandin__regenerateByEval(key, code) {
139437
- // @ts-ignore
139438
- this[key] = eval(code);
139439
- }
139440
-
139441
- }
139442
- class SwitchCaseConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
139443
- static getAcceptNodeClass() {
139444
- return _SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchCaseNode;
139445
- }
139446
138642
 
139447
- doBuildDataDeclaration(context) {
139448
- return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
139449
- }
139450
-
139451
- buildChildrenDataDeclaration(context) {
139452
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchCaseNode);
139453
- return context.processChildrenDataDeclaration(node.children);
139454
- }
139455
-
139456
- doGetRequisites() {
139457
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchCaseNode);
139458
- return (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__.getRequisitesFromEvaluableProps)(node.condition);
139459
- }
139460
-
139461
- *doTraverseChildren() {
139462
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchCaseNode);
139463
- yield* node.children;
139464
- }
139465
-
139466
- doConvert(context) {
139467
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchCaseNode);
139468
- const builder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SwitchCase");
139469
- const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__.convertConditionToJsOrFailWithFriendlySugarError)(node.condition, "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_4__.KCLangRuntimeUtils.kcLangUtilsName, node, (0,_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_5__.extractPath)(x => x.condition));
139470
- builder.prop(x => x.condition).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
139471
- builder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
139472
- builder.appendChild(context.convertChildNodes(node.children));
139473
- return builder.buildConverterResult();
139474
- }
139475
-
139476
- // @ts-ignore
139477
- __reactstandin__regenerateByEval(key, code) {
139478
- // @ts-ignore
139479
- this[key] = eval(code);
139480
- }
139481
-
139482
- }
139483
138643
  class SwitchConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
139484
138644
  static getAcceptNodeClass() {
139485
- return _SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchNode;
138645
+ return _SwitchNode__WEBPACK_IMPORTED_MODULE_9__.SwitchNode;
139486
138646
  }
139487
138647
 
139488
138648
  doGetRequisites() {
139489
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchNode);
138649
+ const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_9__.SwitchNode);
139490
138650
  return node.cases.flatMap(x => (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__.getRequisitesFromEvaluableProps)(x.condition));
139491
138651
  }
139492
138652
 
@@ -139497,12 +138657,12 @@ class SwitchConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.S
139497
138657
  buildChildrenDataDeclaration(context) {
139498
138658
  var _node$default, _node$default2;
139499
138659
 
139500
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchNode);
138660
+ const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_9__.SwitchNode);
139501
138661
  return context.mergeDataDeclaration(...node.cases.map(x => context.processChildrenDataDeclaration(x.children)).flat(), ((_node$default = node.default) === null || _node$default === void 0 ? void 0 : _node$default.children) && context.processChildrenDataDeclaration((_node$default2 = node.default) === null || _node$default2 === void 0 ? void 0 : _node$default2.children));
139502
138662
  }
139503
138663
 
139504
138664
  *doTraverseChildren() {
139505
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchNode);
138665
+ const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_9__.SwitchNode);
139506
138666
  yield* node.cases;
139507
138667
 
139508
138668
  if (node.default != undefined) {
@@ -139510,8 +138670,46 @@ class SwitchConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.S
139510
138670
  }
139511
138671
  }
139512
138672
 
138673
+ getDepsWithResolvedPath(condition, evaluatorsContextPathExpression) {
138674
+ const deps = (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_6__.getPathsFromEvaluablePropValue)(condition !== null && condition !== void 0 ? condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_7__.reject)());
138675
+ return deps.filter(p => !p.toLegacyPath().startsWith("@")).map(x => evaluatorsContextPathExpression.toCurrentIteration().joinWith(x));
138676
+ }
138677
+
138678
+ buildChildrenValidations(validationGenerator) {
138679
+ const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_9__.SwitchNode);
138680
+ const evaluatorsContextPathExpression = this.getEvaluatorsContextPathExpression();
138681
+ const prevConditions = [];
138682
+
138683
+ for (const caseNode of node.cases) {
138684
+ const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__.convertConditionToJsOrFailWithFriendlySugarError)(caseNode.condition, "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_4__.KCLangRuntimeUtils.kcLangUtilsName, node, (0,_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_5__.extractPath)(x => x.condition));
138685
+ const condition = conditionWithDependencies.condition;
138686
+ const currentCaseCondition = prevConditions.length ? prevConditions.map(x => `!(${x})`).join(" && ") + " && " + condition : condition;
138687
+ const deps = this.getDepsWithResolvedPath(currentCaseCondition, evaluatorsContextPathExpression);
138688
+ prevConditions.push(currentCaseCondition);
138689
+ validationGenerator.pushVisibilityCondition([currentCaseCondition, evaluatorsContextPathExpression, deps]);
138690
+
138691
+ try {
138692
+ super.buildChildrenValidations(validationGenerator, Iterator.from(caseNode.children));
138693
+ } finally {
138694
+ validationGenerator.popVisibilityCondition();
138695
+ }
138696
+ }
138697
+
138698
+ if (node.default != undefined) {
138699
+ const defaultCondition = prevConditions.map(x => `!(${x})`).join(" && ");
138700
+ const deps = this.getDepsWithResolvedPath(defaultCondition, evaluatorsContextPathExpression);
138701
+ validationGenerator.pushVisibilityCondition([defaultCondition, evaluatorsContextPathExpression, deps]);
138702
+
138703
+ try {
138704
+ super.buildChildrenValidations(validationGenerator, Iterator.from(node.default.children));
138705
+ } finally {
138706
+ validationGenerator.popVisibilityCondition();
138707
+ }
138708
+ }
138709
+ }
138710
+
139513
138711
  doConvert(context) {
139514
- const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_8__.SwitchNode);
138712
+ const node = this.getCurrentNodeAs(_SwitchNode__WEBPACK_IMPORTED_MODULE_9__.SwitchNode);
139515
138713
  const builder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("Switch");
139516
138714
  const prevConditions = [];
139517
138715
 
@@ -139519,7 +138717,7 @@ class SwitchConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.S
139519
138717
  const caseBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SwitchCase");
139520
138718
  caseBuilder.prop(x => x.prevCaseConditions).set([...prevConditions]);
139521
138719
  const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__.convertConditionToJsOrFailWithFriendlySugarError)(caseNode.condition, "path", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_4__.KCLangRuntimeUtils.kcLangUtilsName, node, (0,_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_5__.extractPath)(x => x.condition));
139522
- const currentCaseCondition = (0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies);
138720
+ const currentCaseCondition = (0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_8__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies);
139523
138721
  caseBuilder.prop(x => x.condition).set(currentCaseCondition);
139524
138722
  prevConditions.push(currentCaseCondition);
139525
138723
  caseBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
@@ -139554,8 +138752,6 @@ class SwitchConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.S
139554
138752
  return;
139555
138753
  }
139556
138754
 
139557
- reactHotLoader.register(SwitchDefaultConverter, "SwitchDefaultConverter", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\markupGenerator\\ElementProcessors\\ControlFlow\\Switch\\SwitchConverter.ts");
139558
- reactHotLoader.register(SwitchCaseConverter, "SwitchCaseConverter", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\markupGenerator\\ElementProcessors\\ControlFlow\\Switch\\SwitchConverter.ts");
139559
138755
  reactHotLoader.register(SwitchConverter, "SwitchConverter", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\markupGenerator\\ElementProcessors\\ControlFlow\\Switch\\SwitchConverter.ts");
139560
138756
  })();
139561
138757
 
@@ -143567,7 +142763,7 @@ class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
143567
142763
  type: "Expression",
143568
142764
  expression: validationGenerator.generateValidationsFactory()
143569
142765
  });
143570
- const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationGenerator((_findSugarNodeBases$2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.editor)[0]) !== null && _findSugarNodeBases$2 !== void 0 ? _findSugarNodeBases$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory(_common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__.FetchFunctions.empty()), context.controlCustomizationContext, context.typesRegistry, _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_7__.FormSchemaRng.createEmpty(), false);
142766
+ const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationGenerator((_findSugarNodeBases$2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.editor)[0]) !== null && _findSugarNodeBases$2 !== void 0 ? _findSugarNodeBases$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory(_common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__.FetchFunctions.empty()), context.controlCustomizationContext, context.typesRegistry);
143571
142767
  userPicklistDeclarationBuilder.prop(x => x.editorDataDeclaration).set({
143572
142768
  type: "Expression",
143573
142769
  expression: dataDeclarationGenerator.generateDataDeclarationFactory()
@@ -150527,10 +149723,10 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
150527
149723
  }
150528
149724
 
150529
149725
  if (rowNode instanceof _CrossfitTableNode__WEBPACK_IMPORTED_MODULE_11__.MultilineNode) {
150530
- var _ref, _rowNode$optional2;
149726
+ var _rowNode$optional2;
150531
149727
 
150532
149728
  this.ensurePathExists(rowNode, rowNode.dataScope.path);
150533
- return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_ref = (_rowNode$optional2 = rowNode.optional) !== null && _rowNode$optional2 !== void 0 ? _rowNode$optional2 : context.isMultipleNodeOptionalFromScheme(rowNode.getFullPath())) !== null && _ref !== void 0 ? _ref : false, rowNode.defaultChildren)]]), context.addSpecialFieldsEntry(rowNode, {
149729
+ return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_rowNode$optional2 = rowNode.optional) !== null && _rowNode$optional2 !== void 0 ? _rowNode$optional2 : false, rowNode.defaultChildren)]]), context.addSpecialFieldsEntry(rowNode, {
150534
149730
  optional: rowNode.optional
150535
149731
  }), context.addPathSectionDeclarationEntry(rowNode), context.addVisibilityPathDeclEntryNew(rowNode), context.processChildrenDataDeclaration(rowNode.rows, rowNode2 => {
150536
149732
  if (rowNode2 instanceof _CrossfitTableNode__WEBPACK_IMPORTED_MODULE_11__.CrossfitTableRowNode) {
@@ -152938,10 +152134,10 @@ class MultilineFieldConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
152938
152134
  }
152939
152135
 
152940
152136
  doBuildDataDeclaration(context) {
152941
- var _ref, _node$optional;
152137
+ var _node$optional;
152942
152138
 
152943
152139
  const node = this.getCurrentNodeAs(_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_3__.MultilineFieldNode);
152944
- return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref !== void 0 ? _ref : false)]]), context.addSpecialFieldsEntry(node, {
152140
+ return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false)]]), context.addSpecialFieldsEntry(node, {
152945
152141
  optional: node.optional
152946
152142
  }), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
152947
152143
  }
@@ -153171,10 +152367,10 @@ class MultipleConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__
153171
152367
  }
153172
152368
 
153173
152369
  doBuildDataDeclaration(context) {
153174
- var _ref, _node$optional;
152370
+ var _node$optional;
153175
152371
 
153176
152372
  const node = this.getCurrentNodeAs(_MultipleNode__WEBPACK_IMPORTED_MODULE_3__.MultipleNode);
153177
- return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref !== void 0 ? _ref : false)]]), context.addSpecialFieldsEntry(node, {
152373
+ return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false)]]), context.addSpecialFieldsEntry(node, {
153178
152374
  optional: node.optional
153179
152375
  }), context.addPathSectionDeclarationEntry(node));
153180
152376
  }
@@ -154669,9 +153865,9 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
154669
153865
 
154670
153866
  processMultilineNode(context, rowNode) {
154671
153867
  if (rowNode instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_14__.StickyTableMultilineNode) {
154672
- var _ref, _rowNode$optional;
153868
+ var _rowNode$optional;
154673
153869
 
154674
- return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_ref = (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : context.isMultipleNodeOptionalFromScheme(rowNode.getFullPath())) !== null && _ref !== void 0 ? _ref : false, rowNode.defaultChildren)]]), context.addSpecialFieldsEntry(rowNode, {
153870
+ return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : false, rowNode.defaultChildren)]]), context.addSpecialFieldsEntry(rowNode, {
154675
153871
  optional: rowNode.optional
154676
153872
  }), context.addPathSectionDeclarationEntry(rowNode), context.addVisibilityPathDeclEntryNew(rowNode), context.processChildrenDataDeclaration(rowNode.rows, rowNode2 => this.processMultilineRowNode(context, rowNode2)));
154677
153873
  }
@@ -154744,11 +153940,11 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
154744
153940
  const sideSize = (_node$side2 = node.side) !== null && _node$side2 !== void 0 ? _node$side2 : 0;
154745
153941
 
154746
153942
  if (this.isSimpleForm()) {
154747
- var _ref2, _node$deprecatedDiado;
153943
+ var _ref, _node$deprecatedDiado;
154748
153944
 
154749
153945
  mb.prop(x => x.maxWidth).set(orientation === "landscape" ? maxWidth : undefined);
154750
153946
  mb.prop(x => x.sideSize).set(this.hasActionButton(node) && sideSize !== 0 ? sideSize + 1 : sideSize);
154751
- const width = (_ref2 = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref2 !== void 0 ? _ref2 : maxWidthSimpleForm;
153947
+ const width = (_ref = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref !== void 0 ? _ref : maxWidthSimpleForm;
154752
153948
  mb.prop(x => x.width).set(width);
154753
153949
  mb.prop(x => x.footerHeight).set(160);
154754
153950
  } else {
@@ -155031,10 +154227,10 @@ BindingPath: ${errorPath}`));
155031
154227
  if (this.isSimpleForm()) {
155032
154228
  mb.prop(x => x.buttonType).set(undefined);
155033
154229
  } else {
155034
- var _multiline$rowmenu, _ref3, _tableNode$removeButt;
154230
+ var _multiline$rowmenu, _ref2, _tableNode$removeButt;
155035
154231
 
155036
154232
  const rowMenu = (_multiline$rowmenu = multiline.rowmenu) !== null && _multiline$rowmenu !== void 0 ? _multiline$rowmenu : false;
155037
- const removebutton = (_ref3 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref3 !== void 0 ? _ref3 : true;
154233
+ const removebutton = (_ref2 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref2 !== void 0 ? _ref2 : true;
155038
154234
  mb.prop(x => x.buttonType).set(rowMenu ? "RowMenu" : removebutton ? "RemoveRowButton" : undefined);
155039
154235
  }
155040
154236
 
@@ -155047,7 +154243,7 @@ BindingPath: ${errorPath}`));
155047
154243
  }
155048
154244
 
155049
154245
  getMultiline(context, node, multiline, start, end = Infinity) {
155050
- var _ref4, _node$removeButton, _multiline$rowmenu2, _ref5, _node$removeButton2, _context$popPathsCont2;
154246
+ var _ref3, _node$removeButton, _multiline$rowmenu2, _ref4, _node$removeButton2, _context$popPathsCont2;
155051
154247
 
155052
154248
  const overrideInfo = multiline.override ? context.controlCustomizationContext.getControlCustomizationInfo("multiline", multiline.override) : undefined;
155053
154249
  const mb = overrideInfo == undefined ? (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("MultiLine") : (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)(overrideInfo.dependencies, overrideInfo.controlName);
@@ -155060,7 +154256,7 @@ BindingPath: ${errorPath}`));
155060
154256
  mb.prop(x => x.isList).set(multiline.usepager === false ? true : undefined);
155061
154257
  mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_13__.getNewBindingPathExpression)(multiline));
155062
154258
  mb.prop(x => x.showRowBorder).set(multiline.showRowBorder);
155063
- const hasRemoveButton = ((_ref4 = (_node$removeButton = node.removeButton) !== null && _node$removeButton !== void 0 ? _node$removeButton : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true) || ((_multiline$rowmenu2 = multiline.rowmenu) !== null && _multiline$rowmenu2 !== void 0 ? _multiline$rowmenu2 : false);
154259
+ const hasRemoveButton = ((_ref3 = (_node$removeButton = node.removeButton) !== null && _node$removeButton !== void 0 ? _node$removeButton : multiline.removebutton) !== null && _ref3 !== void 0 ? _ref3 : true) || ((_multiline$rowmenu2 = multiline.rowmenu) !== null && _multiline$rowmenu2 !== void 0 ? _multiline$rowmenu2 : false);
155064
154260
  const needAddButton = multiline.addbutton !== "false";
155065
154261
 
155066
154262
  if (this.isSimpleForm()) {
@@ -155073,7 +154269,7 @@ BindingPath: ${errorPath}`));
155073
154269
  mb.prop(x => x.removeButtonPosition).set(undefined);
155074
154270
  }
155075
154271
 
155076
- mb.prop(x => x.disableScroll).set(needAddButton || ((_ref5 = (_node$removeButton2 = node.removeButton) !== null && _node$removeButton2 !== void 0 ? _node$removeButton2 : multiline.removebutton) !== null && _ref5 !== void 0 ? _ref5 : true) ? undefined : true);
154272
+ mb.prop(x => x.disableScroll).set(needAddButton || ((_ref4 = (_node$removeButton2 = node.removeButton) !== null && _node$removeButton2 !== void 0 ? _node$removeButton2 : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true) ? undefined : true);
155077
154273
  context.pushPathsContext();
155078
154274
 
155079
154275
  if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayHasLength)(multiline.rows, 1)) {
@@ -155099,9 +154295,9 @@ BindingPath: ${errorPath}`));
155099
154295
  hasActionButton(node) {
155100
154296
  const multilines = node.rows.map(child => (0,_StickyTableNode__WEBPACK_IMPORTED_MODULE_14__.isMultilineNode)(child) ? child : child.columns.find(_StickyTableNode__WEBPACK_IMPORTED_MODULE_14__.isMultilineNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined);
155101
154297
  return multilines.some(multiline => {
155102
- var _ref6, _node$removeButton3;
154298
+ var _ref5, _node$removeButton3;
155103
154299
 
155104
- return ((_ref6 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref6 !== void 0 ? _ref6 : true) || multiline.rowmenu;
154300
+ return ((_ref5 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref5 !== void 0 ? _ref5 : true) || multiline.rowmenu;
155105
154301
  });
155106
154302
  }
155107
154303
 
@@ -155415,10 +154611,10 @@ class Table2MultirowConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
155415
154611
  }
155416
154612
 
155417
154613
  doBuildDataDeclaration(context) {
155418
- var _ref, _node$optional;
154614
+ var _node$optional;
155419
154615
 
155420
154616
  const node = this.getCurrentNodeAs(_Table2Node__WEBPACK_IMPORTED_MODULE_3__.Table2MultirowNode);
155421
- return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref !== void 0 ? _ref : false)]]), context.addPathSectionDeclarationEntry(node));
154617
+ return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false)]]), context.addPathSectionDeclarationEntry(node));
155422
154618
  }
155423
154619
 
155424
154620
  buildChildrenDataDeclaration(context) {
@@ -156578,10 +155774,10 @@ class TabsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
156578
155774
  }
156579
155775
 
156580
155776
  doBuildDataDeclaration(context) {
156581
- var _ref, _node$optional;
155777
+ var _node$optional;
156582
155778
 
156583
155779
  const node = this.getCurrentNodeAs(_TabsNode__WEBPACK_IMPORTED_MODULE_4__.TabsNode);
156584
- return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref !== void 0 ? _ref : false)]]), context.addPathSectionDeclarationEntry(node));
155780
+ return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false)]]), context.addPathSectionDeclarationEntry(node));
156585
155781
  }
156586
155782
 
156587
155783
  buildChildrenDataDeclaration(context) {
@@ -158633,7 +157829,7 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
158633
157829
 
158634
157830
  doBuildNodeValidations(validationGenerator) {
158635
157831
  const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
158636
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
157832
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
158637
157833
  }
158638
157834
 
158639
157835
  doBuildDataDeclaration(context) {
@@ -158908,7 +158104,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
158908
158104
 
158909
158105
  doBuildNodeValidations(validationGenerator) {
158910
158106
  const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_6__.ComboBoxNode);
158911
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription);
158107
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
158912
158108
  }
158913
158109
 
158914
158110
  doGetRequisites() {
@@ -159483,7 +158679,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
159483
158679
 
159484
158680
  doBuildNodeValidations(validationGenerator) {
159485
158681
  const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
159486
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
158682
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
159487
158683
  }
159488
158684
 
159489
158685
  get nodePaths() {
@@ -159771,7 +158967,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
159771
158967
 
159772
158968
  doBuildNodeValidations(validationGenerator) {
159773
158969
  const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_5__.DiadocSuggestComboBoxNode);
159774
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
158970
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
159775
158971
  }
159776
158972
 
159777
158973
  get nodePaths() {
@@ -160018,7 +159214,7 @@ class ExpertNoteConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
160018
159214
 
160019
159215
  doBuildNodeValidations(validationGenerator) {
160020
159216
  const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_3__.ExpertNoteNode);
160021
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
159217
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
160022
159218
  }
160023
159219
 
160024
159220
  doBuildDataDeclaration(context) {
@@ -161690,7 +160886,7 @@ class INNConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Suga
161690
160886
 
161691
160887
  doBuildNodeValidations(validationGenerator) {
161692
160888
  const node = this.getCurrentNodeAs(_INNNode__WEBPACK_IMPORTED_MODULE_3__.INNNode);
161693
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
160889
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
161694
160890
  }
161695
160891
 
161696
160892
  doBuildDataDeclaration(context) {
@@ -161912,7 +161108,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
161912
161108
 
161913
161109
  doBuildNodeValidations(validationGenerator) {
161914
161110
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
161915
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
161111
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
161916
161112
  }
161917
161113
 
161918
161114
  doBuildDataDeclaration(context) {
@@ -161985,7 +161181,6 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
161985
161181
  markupBuilder.prop(x => x.formatChars).set(node.formatChars);
161986
161182
  markupBuilder.prop(x => x.width).set((_node$width = node.width) !== null && _node$width !== void 0 ? _node$width : "100%");
161987
161183
  (0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_8__.setCurrencyProps)(markupBuilder, context, node);
161988
- markupBuilder.prop(x => x.useMaskExtender).set(node.useMaskExtender);
161989
161184
  (0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
161990
161185
  const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_6__.getInputLimitations)(typeNode, schemaTypeInfo);
161991
161186
 
@@ -162274,7 +161469,7 @@ __webpack_require__.r(__webpack_exports__);
162274
161469
  /* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
162275
161470
  /* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
162276
161471
  /* module decorator */ module = __webpack_require__.hmd(module);
162277
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39;
161472
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38;
162278
161473
 
162279
161474
  (function () {
162280
161475
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -162299,7 +161494,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
162299
161494
 
162300
161495
 
162301
161496
 
162302
- let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("input", `Текстовое поле ввода. Используется только для редактирование текстовых и числовых значений.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_7__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("className", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("line", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("resize", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("caption", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("gId", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.UntypedUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("dataType", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("useincorrectvalue", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("inputLimit", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("textOverflow", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("editable", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("autoResize", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rows", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("sendMetrics", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ""), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("defaultValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Значение по умолчанию"), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Всплывающая подсказка по наведению"), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("auto", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Подключен авторассчет"), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("mask", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ""), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maskChar", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ""), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("formatChars", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.object, ""), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("settings", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "'true': всегда первой будет применяться указанная fetchfn, а если она вернет undefined то тогда будет брать из модели - из фуфа/draftinfo (то, что придет с сервера). В противном случае fetchfn сработает только в том случае, когда бекенд ничего не прислал"), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("deprecated-disabled-for-rpn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Ширина поля"), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного скрытия контрола`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("left", "right"), "Выравнивание текста внутри поля ввода (`left` | `right`, default: `left`)"), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Всплывающая подсказка по авторасчету"), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("suffix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Текст или верстка отображаемая в правой части input-а`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Текст или верстка отображаемая в левой части input-а`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: с двумя знаками после запятой и пробелами между тысячами.`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("use-mask-extender", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("ignoreMaskChar"), "Дополнительные возможности использования маски. ('ignoreMaskChar') - при выгрузке в ФУФ игнорируются символы: пробел, (, ), +, -"), _dec(_class = (_class2 = class InputNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
161497
+ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("input", `Текстовое поле ввода. Используется только для редактирование текстовых и числовых значений.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_7__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("className", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("line", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("resize", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("caption", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("gId", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.UntypedUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("dataType", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("useincorrectvalue", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("inputLimit", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("textOverflow", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("editable", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("autoResize", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rows", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("sendMetrics", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ""), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("defaultValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Значение по умолчанию"), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Всплывающая подсказка по наведению"), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("auto", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Подключен авторассчет"), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("mask", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ""), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maskChar", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ""), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("formatChars", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.object, ""), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("settings", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "'true': всегда первой будет применяться указанная fetchfn, а если она вернет undefined то тогда будет брать из модели - из фуфа/draftinfo (то, что придет с сервера). В противном случае fetchfn сработает только в том случае, когда бекенд ничего не прислал"), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("deprecated-disabled-for-rpn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Ширина поля"), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного скрытия контрола`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("left", "right"), "Выравнивание текста внутри поля ввода (`left` | `right`, default: `left`)"), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Всплывающая подсказка по авторасчету"), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("suffix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Текст или верстка отображаемая в правой части input-а`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.markupAttr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Текст или верстка отображаемая в левой части input-а`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: с двумя знаками после запятой и пробелами между тысячами.`), _dec(_class = (_class2 = class InputNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
162303
161498
  constructor(...args) {
162304
161499
  super(...args);
162305
161500
 
@@ -162378,8 +161573,6 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
162378
161573
  _initializerDefineProperty(this, "helpNodes", _descriptor37, this);
162379
161574
 
162380
161575
  _initializerDefineProperty(this, "currency", _descriptor38, this);
162381
-
162382
- _initializerDefineProperty(this, "useMaskExtender", _descriptor39, this);
162383
161576
  }
162384
161577
 
162385
161578
  getOwnPath() {
@@ -162586,11 +161779,6 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
162586
161779
  enumerable: true,
162587
161780
  writable: true,
162588
161781
  initializer: null
162589
- }), _descriptor39 = _applyDecoratedDescriptor(_class2.prototype, "useMaskExtender", [_dec40], {
162590
- configurable: true,
162591
- enumerable: true,
162592
- writable: true,
162593
- initializer: null
162594
161782
  })), _class2)) || _class);
162595
161783
  ;
162596
161784
 
@@ -162639,15 +161827,15 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
162639
161827
 
162640
161828
 
162641
161829
  function setCurrencyProps(markupBuilder, context, node) {
162642
- var _typeNode$base, _node$currency;
162643
-
162644
161830
  const typeNode = context.getTypeNode(node.validationInfo);
162645
161831
  const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
162646
- const baseTypeName = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
162647
- const currency = (_node$currency = node.currency) !== null && _node$currency !== void 0 ? _node$currency : baseTypeName === "integer" || baseTypeName === "decimal";
162648
- markupBuilder.prop(x => x.currency).set(currency);
161832
+ markupBuilder.prop(x => x.currency).set(node.currency);
161833
+
161834
+ if (node.currency) {
161835
+ var _typeNode$base;
161836
+
161837
+ const baseTypeName = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
162649
161838
 
162650
- if (currency) {
162651
161839
  if (baseTypeName === "decimal") {
162652
161840
  var _typeNode$flattenType, _typeNode$flattenType2, _ref, _ref2, _ref3, _ref4, _typeNode$flattenType3, _typeNode$flattenType4, _typeNode$flattenType5, _typeNode$flattenType6, _typeNode$flattenType7, _typeNode$flattenType8, _typeNode$flattenType9, _typeNode$flattenType10;
162653
161841
 
@@ -162673,14 +161861,11 @@ function setCurrencyProps(markupBuilder, context, node) {
162673
161861
  } else if (maxLength == undefined && fractionDigits == undefined && integerDigits == undefined) {
162674
161862
  markupBuilder.prop(x => x.currencyIntegerDigits).set(undefined);
162675
161863
  markupBuilder.prop(x => x.currencyFractionDigits).set(2);
162676
- } else if (maxLength != undefined && fractionDigits != undefined && integerDigits != undefined) {
162677
- markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
162678
- markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
162679
161864
  } else if (totalDigits != undefined && fractionDigits == undefined && integerDigits == undefined) {
162680
161865
  markupBuilder.prop(x => x.currencyIntegerDigits).set(totalDigits);
162681
161866
  markupBuilder.prop(x => x.currencyFractionDigits).set(0);
162682
161867
  } else {
162683
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__.SugarAttributeReadError(`Unable to use currency editor with decimal type with length, maxLength or totaldigits constraints (path: ${node.getFullPath().toString()})`, node, "currency");
161868
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__.SugarAttributeReadError("Unable to use currency editor with decimal type with length, maxLength or totaldigits constraints", node, "currency");
162684
161869
  }
162685
161870
  } else if (baseTypeName === "integer") {
162686
161871
  var _ref5, _typeNode$flattenType11, _typeNode$flattenType12, _ref6, _typeNode$flattenType13, _typeNode$flattenType14, _ref7, _typeNode$flattenType15, _typeNode$flattenType16;
@@ -162767,7 +161952,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
162767
161952
 
162768
161953
  doBuildNodeValidations(validationGenerator) {
162769
161954
  const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_7__.KladrNode);
162770
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
161955
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
162771
161956
  }
162772
161957
 
162773
161958
  buildSugarAutoCalculations() {
@@ -163159,7 +162344,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
163159
162344
 
163160
162345
  doBuildNodeValidations(validationGenerator) {
163161
162346
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
163162
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription);
162347
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
163163
162348
  }
163164
162349
 
163165
162350
  *doBuildNormalizeRules(builder) {
@@ -163679,7 +162864,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
163679
162864
 
163680
162865
  doBuildNodeValidations(validationGenerator) {
163681
162866
  const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_4__.RadioGroupNode);
163682
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
162867
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
163683
162868
  }
163684
162869
 
163685
162870
  doBuildNormalizeRules(builder) {
@@ -164202,7 +163387,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
164202
163387
 
164203
163388
  doBuildNodeValidations(validationGenerator) {
164204
163389
  const node = this.getCurrentNodeAs(_SelectNode__WEBPACK_IMPORTED_MODULE_6__.SelectNode);
164205
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription);
163390
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
164206
163391
  }
164207
163392
 
164208
163393
  doBuildDataDeclaration(context) {
@@ -164669,7 +163854,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
164669
163854
 
164670
163855
  doBuildNodeValidations(validationGenerator) {
164671
163856
  const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
164672
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
163857
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
164673
163858
  }
164674
163859
 
164675
163860
  doBuildDataDeclaration(context) {
@@ -164935,7 +164120,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
164935
164120
 
164936
164121
  doBuildNodeValidations(validationGenerator) {
164937
164122
  const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
164938
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
164123
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
164939
164124
  }
164940
164125
 
164941
164126
  doBuildDataDeclaration(context) {
@@ -165268,7 +164453,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
165268
164453
 
165269
164454
  doBuildNodeValidations(validationGenerator) {
165270
164455
  const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_6__.PopupTextAreaNode);
165271
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
164456
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
165272
164457
  }
165273
164458
 
165274
164459
  doBuildDataDeclaration(context) {
@@ -165826,9 +165011,9 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
165826
165011
  const node1 = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TypeNode();
165827
165012
  node1.children = [m1, m2];
165828
165013
  node1.base = "string";
165829
- validationGenerator.processValidations((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Фамилия"), false, node1, undefined, node.emptydescription);
165830
- validationGenerator.processValidations((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Имя"), false, node1, undefined, node.emptydescription);
165831
- validationGenerator.processValidations((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Отчество"), true, node1, undefined, node.emptydescription);
165014
+ validationGenerator.processValidations((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Фамилия"), false, node1, undefined, node.emptydescription, undefined);
165015
+ validationGenerator.processValidations((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Имя"), false, node1, undefined, node.emptydescription, undefined);
165016
+ validationGenerator.processValidations((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Отчество"), true, node1, undefined, node.emptydescription, undefined);
165832
165017
  }
165833
165018
 
165834
165019
  doBuildDataDeclaration(context) {
@@ -166362,7 +165547,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
166362
165547
 
166363
165548
  doBuildNodeValidations(validationGenerator) {
166364
165549
  const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
166365
- validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
165550
+ validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
166366
165551
  }
166367
165552
 
166368
165553
  doBuildNormalizeRules() {
@@ -170349,8 +169534,8 @@ class SugarNodeConverterBase {
170349
169534
  return SugarNodeConverterBase.deserializeNodeAs(nodeClass, sourceXmlNode !== null && sourceXmlNode !== void 0 ? sourceXmlNode : this.node);
170350
169535
  }
170351
169536
 
170352
- buildChildrenValidations(validationGenerator) {
170353
- for (const child of this.doTraverseChildren()) {
169537
+ buildChildrenValidations(validationGenerator, children) {
169538
+ for (const child of children !== null && children !== void 0 ? children : this.doTraverseChildren()) {
170354
169539
  const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
170355
169540
 
170356
169541
  if (controlConverterClass == undefined) {
@@ -170363,7 +169548,7 @@ class SugarNodeConverterBase {
170363
169548
 
170364
169549
  if (customControl != undefined) {
170365
169550
  const childNode = child.sourceXmlNode;
170366
- validationGenerator.processValidations(this.getResolvedBindingPath(child), childNode.boolAttr("optional"), validationGenerator.getTypeNodeLegacy(childNode), undefined, undefined);
169551
+ validationGenerator.processValidations(this.getResolvedBindingPath(child), childNode.boolAttr("optional"), validationGenerator.getTypeNodeLegacy(childNode), undefined, undefined, undefined);
170367
169552
  }
170368
169553
  }
170369
169554
 
@@ -173208,23 +172393,24 @@ __webpack_require__.r(__webpack_exports__);
173208
172393
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
173209
172394
  /* harmony export */ "ValidationGenerator": () => (/* binding */ ValidationGenerator)
173210
172395
  /* harmony export */ });
173211
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
173212
- /* harmony import */ var _common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../common/CodeGeneration/ClassInstanceBuilder */ "./Generator/src/common/CodeGeneration/ClassInstanceBuilder.ts");
173213
- /* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
173214
- /* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
173215
- /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
173216
- /* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
173217
- /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
173218
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
173219
- /* harmony import */ var _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts");
173220
- /* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
173221
- /* harmony import */ var _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator.ts");
173222
- /* harmony import */ var _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator.ts");
173223
- /* harmony import */ var _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/EnumerationValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/EnumerationValidatorGenerator.ts");
173224
- /* harmony import */ var _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator.ts");
173225
- /* harmony import */ var _TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator.ts");
173226
- /* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
173227
- /* harmony import */ var _TypeBasedValidatorGenerators_DigestConditionValidatorGenerator__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestConditionValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestConditionValidatorGenerator.ts");
172396
+ /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
172397
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
172398
+ /* harmony import */ var _common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/CodeGeneration/ClassInstanceBuilder */ "./Generator/src/common/CodeGeneration/ClassInstanceBuilder.ts");
172399
+ /* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
172400
+ /* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
172401
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
172402
+ /* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
172403
+ /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
172404
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
172405
+ /* harmony import */ var _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts");
172406
+ /* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
172407
+ /* harmony import */ var _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator.ts");
172408
+ /* harmony import */ var _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator.ts");
172409
+ /* harmony import */ var _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/EnumerationValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/EnumerationValidatorGenerator.ts");
172410
+ /* harmony import */ var _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator.ts");
172411
+ /* harmony import */ var _TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator.ts");
172412
+ /* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
172413
+ /* harmony import */ var _TypeBasedValidatorGenerators_DigestConditionValidatorGenerator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestConditionValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestConditionValidatorGenerator.ts");
173228
172414
  /* module decorator */ module = __webpack_require__.hmd(module);
173229
172415
  (function () {
173230
172416
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -173252,9 +172438,10 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
173252
172438
 
173253
172439
 
173254
172440
 
172441
+
173255
172442
  class ValidationGenerator {
173256
172443
  constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, useDeepOptionalSchemaValidations, validationsContent = []) {
173257
- this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestConditionValidatorGenerator__WEBPACK_IMPORTED_MODULE_16__.DigestConditionValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.CustomValidationValueValidatorGenerator];
172444
+ this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_16__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestConditionValidatorGenerator__WEBPACK_IMPORTED_MODULE_17__.DigestConditionValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.CustomValidationValueValidatorGenerator];
173258
172445
  this.sugarRoot = void 0;
173259
172446
  this.validationsContent = void 0;
173260
172447
  this.customValidations = void 0;
@@ -173265,6 +172452,7 @@ class ValidationGenerator {
173265
172452
  this.useSchemaValidations = void 0;
173266
172453
  this.useDeepOptionalSchemaValidations = void 0;
173267
172454
  this.criterionOfExistenceFromSchemaRng = [];
172455
+ this.visibilityConditionsStack = [];
173268
172456
  this.sugarRoot = sugarRoot;
173269
172457
  this.typesRegistry = typesRegistry;
173270
172458
  this.validationsContent = validationsContent;
@@ -173292,6 +172480,14 @@ class ValidationGenerator {
173292
172480
  this.validations = {};
173293
172481
  }
173294
172482
 
172483
+ pushVisibilityCondition(data) {
172484
+ this.visibilityConditionsStack.push(data);
172485
+ }
172486
+
172487
+ popVisibilityCondition() {
172488
+ this.visibilityConditionsStack.pop();
172489
+ }
172490
+
173295
172491
  getTypeNodeLegacy(childNode) {
173296
172492
  return this.typesRegistry.getTypeNodeLegacy(childNode);
173297
172493
  }
@@ -173305,7 +172501,7 @@ class ValidationGenerator {
173305
172501
  const result = this.typesRegistry.getByName(node.type);
173306
172502
 
173307
172503
  if (result == undefined) {
173308
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__.SugarAttributeReadError(`Type with name '${node.type}' not found`, node, "type");
172504
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError(`Type with name '${node.type}' not found`, node, "type");
173309
172505
  }
173310
172506
 
173311
172507
  return result;
@@ -173323,13 +172519,14 @@ class ValidationGenerator {
173323
172519
  var _getConverterByNodeCl;
173324
172520
 
173325
172521
  const sugarNode = this.sugarRoot;
173326
- const converterType = (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(sugarNode))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(`Converter for root node must be defined`);
172522
+ const converterType = (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.getNodeClass)(sugarNode))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(`Converter for root node must be defined`);
173327
172523
  const converter = new converterType(sugarNode);
173328
172524
  converter.buildValidations(this);
173329
- let result = `function validationFunctions({ Engine: { ValidationHelper, Validators } }) {
172525
+ let result = `
172526
+ function validationFunctions({ Engine: { ValidationHelper, Validators }, ap, current, each, kcLangUtils }) {
173330
172527
  const t = str => x => x.translate(str);
173331
172528
  return {
173332
- ${Object.keys(this.validations).map(x => `["${x}"]: ${this.generateValidation(this.validations[x])}`).join(",")}
172529
+ ${Object.keys(this.validations).map(x => `["${x}"]: ${this.generateValidation(this.validations[x])}`).join(",")}
173333
172530
  };
173334
172531
  }`; // '\u0424' -> 'Ф'
173335
172532
 
@@ -173340,11 +172537,11 @@ class ValidationGenerator {
173340
172537
 
173341
172538
  modelPathInstance(target) {
173342
172539
  return `new AbsoluteModelPath([${[...target.getPathParts()].map(x => {
173343
- if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each) {
172540
+ if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.PathTokens.each) {
173344
172541
  return "PathTokens.each";
173345
172542
  }
173346
172543
 
173347
- if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.current) {
172544
+ if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.PathTokens.current) {
173348
172545
  return "PathTokens.current";
173349
172546
  }
173350
172547
 
@@ -173398,7 +172595,7 @@ class ValidationGenerator {
173398
172595
  const checkNodes = sugarTypeNode.flattenTypeCheckNodes().filter(x => !processedNodeTypes.has(x.name));
173399
172596
  let typeCheckNodes = [...checkNodes];
173400
172597
 
173401
- while ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isLengthGreaterThenOrEqual)(typeCheckNodes, 1)) {
172598
+ while ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isLengthGreaterThenOrEqual)(typeCheckNodes, 1)) {
173402
172599
  const currentNode = typeCheckNodes[0];
173403
172600
  const generator = this.getGeneratorByNode(currentNode);
173404
172601
  const acceptNodes = typeCheckNodes.filter(x => generator.acceptNodeForGroup(x));
@@ -173432,20 +172629,40 @@ class ValidationGenerator {
173432
172629
  }
173433
172630
 
173434
172631
  generateValidation(validationInfos) {
172632
+ const groupedValidationInfos = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.groupBy(validationInfos !== null && validationInfos !== void 0 ? validationInfos : [], x => x.conditions.map(z => z[0]).join(""));
172633
+ return "[" + [...groupedValidationInfos.values()].map(validationInfoGroup => {
172634
+ var _validationInfoGroup$, _validationInfoGroup$2;
172635
+
172636
+ const conditions = (_validationInfoGroup$ = (_validationInfoGroup$2 = validationInfoGroup[0]) === null || _validationInfoGroup$2 === void 0 ? void 0 : _validationInfoGroup$2.conditions) !== null && _validationInfoGroup$ !== void 0 ? _validationInfoGroup$ : [];
172637
+ const validator = this.generateCompositeValidation(validationInfoGroup);
172638
+ const generatedConditions = "[" + conditions.map(x => {
172639
+ const condition = x[0];
172640
+ const context = x[1];
172641
+ const deps = x[2];
172642
+ return `[path => ${condition}, ${absoluteModelPathGenerator(context)}, [${deps.map(absoluteModelPathGenerator).join(", ")}]]`;
172643
+ }).join(",") + "]";
172644
+ return `[
172645
+ ${generatedConditions},
172646
+ ${validator}
172647
+ ]`;
172648
+ }).join(", ") + "]";
172649
+ }
172650
+
172651
+ generateCompositeValidation(validationInfos) {
173435
172652
  var _validationInfos$find, _validationInfos$find2, _ref, _ref2, _ref3, _ref4, _sugarNodeWithBase$ba;
173436
172653
 
173437
172654
  if (validationInfos == undefined) {
173438
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__.SugarReadingError("Couldn't generate from empty validation!");
172655
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarReadingError("Couldn't generate from empty validation!");
173439
172656
  }
173440
172657
 
173441
- const rootValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.CompositeValueValidatorWithForcedValidators");
172658
+ const rootValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.CompositeValueValidatorWithForcedValidators");
173442
172659
  const firstItem = validationInfos[0];
173443
172660
 
173444
172661
  if (firstItem == undefined) {
173445
- throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_6__.InvalidProgramStateError();
172662
+ throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
173446
172663
  }
173447
172664
 
173448
- const bindingPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.convertToAbsolutModelPath)(firstItem.bindingPath);
172665
+ const bindingPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.convertToAbsolutModelPath)(firstItem.bindingPath);
173449
172666
  const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
173450
172667
  const sugarOptional = (_validationInfos$find = validationInfos.find(x => x.sugarOptional != undefined)) === null || _validationInfos$find === void 0 ? void 0 : _validationInfos$find.sugarOptional;
173451
172668
  const [isOptional, requiredDependencies] = this.getOptionalWithDependencies(bindingPath, sugarOptional);
@@ -173481,11 +172698,10 @@ class ValidationGenerator {
173481
172698
  rootValidator.set(1, validators);
173482
172699
  rootValidator.set(2, sugarNodeTypeAllValidators.forcedValidators);
173483
172700
  return rootValidator.build();
173484
- } // tslint:disable-next-line:cyclomatic-complexity
173485
-
172701
+ }
173486
172702
 
173487
172703
  processValidations(bindingPath, sugarOptional, sugarNodeType, gId, highOrderDescription, fileLoaderOptions) {
173488
- const rngSchemaNodeType = this.getRngSchemaTypeInfo((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.convertToAbsolutModelPath)(bindingPath));
172704
+ const rngSchemaNodeType = this.getRngSchemaTypeInfo((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.convertToAbsolutModelPath)(bindingPath));
173489
172705
 
173490
172706
  if (bindingPath && (sugarNodeType != undefined || rngSchemaNodeType != undefined || this.useDeepOptionalSchemaValidations)) {
173491
172707
  var _this$validations$val;
@@ -173493,7 +172709,7 @@ class ValidationGenerator {
173493
172709
  let validationBindingPath = bindingPath;
173494
172710
 
173495
172711
  if (fileLoaderOptions !== undefined) {
173496
- validationBindingPath = fileLoaderOptions.multiple ? `${bindingPath}/*/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.AttachmentInfoPath.toLegacyPath()}` : `${bindingPath}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.AttachmentInfoPath.toLegacyPath()}`;
172712
+ validationBindingPath = fileLoaderOptions.multiple ? `${bindingPath}/*/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__.AttachmentInfoPath.toLegacyPath()}` : `${bindingPath}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__.AttachmentInfoPath.toLegacyPath()}`;
173497
172713
  }
173498
172714
 
173499
172715
  const currentItem = {
@@ -173501,7 +172717,8 @@ class ValidationGenerator {
173501
172717
  sugarOptional: sugarOptional,
173502
172718
  sugarNodeType: sugarNodeType,
173503
172719
  gId: gId,
173504
- highOrderDescription: highOrderDescription
172720
+ highOrderDescription: highOrderDescription,
172721
+ conditions: [...this.visibilityConditionsStack]
173505
172722
  };
173506
172723
  const validations = (_this$validations$val = this.validations[validationBindingPath]) !== null && _this$validations$val !== void 0 ? _this$validations$val : [];
173507
172724
  this.validations[validationBindingPath] = [currentItem, ...validations];
@@ -173557,14 +172774,14 @@ class ValidationGenerator {
173557
172774
  const generatorClass = this.typeBasedValidatorGenerators.find(x => x.acceptNode(node));
173558
172775
 
173559
172776
  if (generatorClass == undefined) {
173560
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__.SugarAttributeReadError("Cannot find validation generator for node", node, "");
172777
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError("Cannot find validation generator for node", node, "");
173561
172778
  }
173562
172779
 
173563
172780
  return generatorClass.createFromNode(node);
173564
172781
  }
173565
172782
 
173566
172783
  buildRequiredValidator(description) {
173567
- const requiredValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.RequiredValueValidator");
172784
+ const requiredValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.RequiredValueValidator");
173568
172785
  requiredValidator.set(0, "error");
173569
172786
  requiredValidator.set(1, description);
173570
172787
  return requiredValidator;
@@ -173578,42 +172795,42 @@ class ValidationGenerator {
173578
172795
 
173579
172796
  case "integer":
173580
172797
  {
173581
- const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.IsIntegerValueValidator");
172798
+ const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.IsIntegerValueValidator");
173582
172799
  result.set(0, description);
173583
172800
  return result;
173584
172801
  }
173585
172802
 
173586
172803
  case "decimal":
173587
172804
  {
173588
- const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.IsDecimalValueValidator");
172805
+ const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.IsDecimalValueValidator");
173589
172806
  result.set(0, description);
173590
172807
  return result;
173591
172808
  }
173592
172809
 
173593
172810
  case "date":
173594
172811
  {
173595
- const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.IsDateValueValidator");
172812
+ const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.IsDateValueValidator");
173596
172813
  result.set(0, description);
173597
172814
  return result;
173598
172815
  }
173599
172816
 
173600
172817
  case "gYear":
173601
172818
  {
173602
- const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.IsYearValueValidator");
172819
+ const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.IsYearValueValidator");
173603
172820
  result.set(0, description);
173604
172821
  return result;
173605
172822
  }
173606
172823
 
173607
172824
  case "gMonth":
173608
172825
  {
173609
- const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.IsMonthValueValidator");
172826
+ const result = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_2__.instanceBuilder)("Validators.IsMonthValueValidator");
173610
172827
  result.set(0, description);
173611
172828
  return result;
173612
172829
  }
173613
172830
 
173614
172831
  default:
173615
172832
  if (typeNode != undefined) {
173616
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__.SugarAttributeReadError("Unknown base type name", typeNode, "base");
172833
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError("Unknown base type name", typeNode, "base");
173617
172834
  } else {
173618
172835
  throw new Error(`Unknown base type name: '${baseName}'`);
173619
172836
  }
@@ -173628,6 +172845,11 @@ class ValidationGenerator {
173628
172845
  }
173629
172846
 
173630
172847
  }
172848
+
172849
+ function absoluteModelPathGenerator(path) {
172850
+ return `ap([${path.getPathPartsAsArray().map(x => x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.PathTokens.each ? "each" : x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_8__.PathTokens.current ? "current" : JSON.stringify(x)).join(", ")}])`;
172851
+ }
172852
+
173631
172853
  ;
173632
172854
 
173633
172855
  (function () {
@@ -173638,6 +172860,7 @@ class ValidationGenerator {
173638
172860
  }
173639
172861
 
173640
172862
  reactHotLoader.register(ValidationGenerator, "ValidationGenerator", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\validationGenerator\\ValidationGenerator.ts");
172863
+ reactHotLoader.register(absoluteModelPathGenerator, "absoluteModelPathGenerator", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\validationGenerator\\ValidationGenerator.ts");
173641
172864
  })();
173642
172865
 
173643
172866
  ;