@kontur.candy/generator 4.241.0-server-norm.9 → 4.241.0-server-norm.10

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 +65 -111
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -122357,6 +122357,24 @@ class DefaultKCLangExpressionVisitor {
122357
122357
 
122358
122358
  /***/ }),
122359
122359
 
122360
+ /***/ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts":
122361
+ /*!*****************************************************************!*\
122362
+ !*** ./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts ***!
122363
+ \*****************************************************************/
122364
+ /***/ ((module) => {
122365
+
122366
+ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
122367
+ return a;
122368
+ };
122369
+
122370
+ // this file was prevaled
122371
+
122372
+ /* eslint-disable */
122373
+ // @ts-ignore
122374
+ 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})()";
122375
+
122376
+ /***/ }),
122377
+
122360
122378
  /***/ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts":
122361
122379
  /*!****************************************************************!*\
122362
122380
  !*** ./Generator/src/common/KCLang/KCLangDescriptionParser.ts ***!
@@ -122368,6 +122386,8 @@ __webpack_require__.r(__webpack_exports__);
122368
122386
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122369
122387
  /* harmony export */ "KCLangDescriptionParser": () => (/* binding */ KCLangDescriptionParser)
122370
122388
  /* harmony export */ });
122389
+ /* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KCLangDescriptionGrammar */ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts");
122390
+ /* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__);
122371
122391
  /* module decorator */ module = __webpack_require__.hmd(module);
122372
122392
  (function () {
122373
122393
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -122379,11 +122399,9 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
122379
122399
  };
122380
122400
 
122381
122401
  // @ts-ignore
122382
- //import KCLangDescriptionGrammar from "./KCLangDescriptionGrammar";
122383
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
122384
- //const evalParse: (code: string) => string[] = eval(KCLangDescriptionGrammar).parse;
122385
- const evalParse = code => [""];
122402
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
122386
122403
 
122404
+ const evalParse = eval((_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default())).parse;
122387
122405
  class KCLangDescriptionParser {
122388
122406
  static getOrCreateParser() {
122389
122407
  return evalParse;
@@ -123340,11 +123358,9 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
123340
123358
 
123341
123359
 
123342
123360
  class FormSchemaRngAttribute {
123343
- constructor(name, description, type, optional, parent, deferredLoad, forceLoad) {
123361
+ constructor(name, description, type, optional, parent) {
123344
123362
  this.name = void 0;
123345
123363
  this.optional = void 0;
123346
- this.deferredLoad = void 0;
123347
- this.forceLoad = void 0;
123348
123364
  this.type = void 0;
123349
123365
  this.description = void 0;
123350
123366
  this.parent = void 0;
@@ -123353,8 +123369,6 @@ class FormSchemaRngAttribute {
123353
123369
  this.type = type;
123354
123370
  this.name = name;
123355
123371
  this.parent = parent;
123356
- this.deferredLoad = deferredLoad;
123357
- this.forceLoad = forceLoad;
123358
123372
  }
123359
123373
 
123360
123374
  // @ts-ignore
@@ -123366,12 +123380,10 @@ class FormSchemaRngAttribute {
123366
123380
  }
123367
123381
  const RootParent = Symbol.for("__ROOT_ELEMENT_PARENT__");
123368
123382
  class FormSchemaRngElement {
123369
- constructor(name, parent, optional, multiple, deferredLoad, forceLoad) {
123383
+ constructor(name, parent, optional, multiple) {
123370
123384
  this.name = void 0;
123371
123385
  this.optional = void 0;
123372
123386
  this.multiple = void 0;
123373
- this.deferredLoad = void 0;
123374
- this.forceLoad = void 0;
123375
123387
  this.innerTextType = void 0;
123376
123388
  this.children = new Map();
123377
123389
  this.attributes = new Map();
@@ -123380,8 +123392,6 @@ class FormSchemaRngElement {
123380
123392
  this.parent = parent;
123381
123393
  this.multiple = multiple;
123382
123394
  this.optional = optional;
123383
- this.deferredLoad = deferredLoad;
123384
- this.forceLoad = forceLoad;
123385
123395
  }
123386
123396
 
123387
123397
  addElement(element) {
@@ -123402,14 +123412,6 @@ class FormSchemaRngElement {
123402
123412
  return (_this$children$get = this.children.get(name)) !== null && _this$children$get !== void 0 ? _this$children$get : this.attributes.get(name);
123403
123413
  }
123404
123414
 
123405
- getChildren() {
123406
- return this.children;
123407
- }
123408
-
123409
- getAttributes() {
123410
- return this.attributes;
123411
- }
123412
-
123413
123415
  // @ts-ignore
123414
123416
  __reactstandin__regenerateByEval(key, code) {
123415
123417
  // @ts-ignore
@@ -123434,7 +123436,7 @@ class FormSchemaRng {
123434
123436
  }
123435
123437
 
123436
123438
  static convertSchemaRngElement(schemaRngElement, parent) {
123437
- const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple, schemaRngElement.deferredLoad, schemaRngElement.forceLoad);
123439
+ const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple);
123438
123440
 
123439
123441
  if (schemaRngElement.innerText != undefined) {
123440
123442
  if (schemaRngElement.innerText.type != undefined) {
@@ -123513,7 +123515,7 @@ class FormSchemaRng {
123513
123515
  }
123514
123516
 
123515
123517
  static convertSchemaRngAttribute(attribute, parent) {
123516
- return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, parent, attribute.deferredLoad, attribute.forceLoad);
123518
+ return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, parent);
123517
123519
  }
123518
123520
 
123519
123521
  adjustPathMultiplicity(path) {
@@ -123545,10 +123547,6 @@ class FormSchemaRng {
123545
123547
  return result.toPath().toAbsolute();
123546
123548
  }
123547
123549
 
123548
- getRootElement() {
123549
- return this.rootElement;
123550
- }
123551
-
123552
123550
  getElementByPath(path) {
123553
123551
  let expectMultipleElement = false;
123554
123552
  let currentElement;
@@ -123905,7 +123903,7 @@ __webpack_require__.r(__webpack_exports__);
123905
123903
  /* harmony export */ });
123906
123904
  /* harmony import */ var _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../generators/markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
123907
123905
  /* module decorator */ module = __webpack_require__.hmd(module);
123908
- var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _class4, _class5, _descriptor2, _dec5, _dec6, _class7, _class8, _descriptor3, _dec7, _dec8, _class10, _class11, _descriptor4, _dec9, _dec10, _class13, _class14, _descriptor5, _dec11, _dec12, _class16, _class17, _descriptor6, _dec13, _dec14, _class19, _class20, _descriptor7, _dec15, _dec16, _class22, _class23, _descriptor8, _dec17, _dec18, _class25, _class26, _descriptor9, _dec19, _dec20, _class28, _class29, _descriptor10, _dec21, _dec22, _dec23, _dec24, _dec25, _class31, _class32, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _class34, _class35, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _dec34, _dec35, _class37, _class38, _descriptor22, _dec36, _dec37, _class40, _class41, _descriptor23, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _class43, _class44, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34;
123906
+ var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _class4, _class5, _descriptor2, _dec5, _dec6, _class7, _class8, _descriptor3, _dec7, _dec8, _class10, _class11, _descriptor4, _dec9, _dec10, _class13, _class14, _descriptor5, _dec11, _dec12, _class16, _class17, _descriptor6, _dec13, _dec14, _class19, _class20, _descriptor7, _dec15, _dec16, _class22, _class23, _descriptor8, _dec17, _dec18, _class25, _class26, _descriptor9, _dec19, _dec20, _class28, _class29, _descriptor10, _dec21, _dec22, _dec23, _dec24, _dec25, _class31, _class32, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _dec26, _dec27, _dec28, _dec29, _dec30, _class34, _class35, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _dec31, _dec32, _class37, _class38, _descriptor19, _dec33, _dec34, _class40, _class41, _descriptor20, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _class43, _class44, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;
123909
123907
 
123910
123908
  (function () {
123911
123909
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -124154,7 +124152,7 @@ let SchemaRngType = (_dec21 = (0,_generators_markupGenerator_Serializer_SugarSer
124154
124152
  writable: true,
124155
124153
  initializer: null
124156
124154
  })), _class32)) || _class31);
124157
- let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("attribute", ``), _dec27 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec28 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("type", [SchemaRngType]), _dec29 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec30 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec31 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("deferredLoad", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec32 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("forceLoad", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec33 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("forceLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec26(_class34 = (_class35 = class SchemaRngAttribute extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124155
+ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("attribute", ``), _dec27 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec28 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("type", [SchemaRngType]), _dec29 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec30 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec26(_class34 = (_class35 = class SchemaRngAttribute extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124158
124156
  constructor(...args) {
124159
124157
  super(...args);
124160
124158
 
@@ -124165,12 +124163,6 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
124165
124163
  _initializerDefineProperty(this, "optional", _descriptor17, this);
124166
124164
 
124167
124165
  _initializerDefineProperty(this, "description", _descriptor18, this);
124168
-
124169
- _initializerDefineProperty(this, "deferredLoad", _descriptor19, this);
124170
-
124171
- _initializerDefineProperty(this, "forceLoad", _descriptor20, this);
124172
-
124173
- _initializerDefineProperty(this, "forceLoadAggregations", _descriptor21, this);
124174
124166
  }
124175
124167
 
124176
124168
  // @ts-ignore
@@ -124199,27 +124191,12 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
124199
124191
  enumerable: true,
124200
124192
  writable: true,
124201
124193
  initializer: null
124202
- }), _descriptor19 = _applyDecoratedDescriptor(_class35.prototype, "deferredLoad", [_dec31], {
124203
- configurable: true,
124204
- enumerable: true,
124205
- writable: true,
124206
- initializer: null
124207
- }), _descriptor20 = _applyDecoratedDescriptor(_class35.prototype, "forceLoad", [_dec32], {
124208
- configurable: true,
124209
- enumerable: true,
124210
- writable: true,
124211
- initializer: null
124212
- }), _descriptor21 = _applyDecoratedDescriptor(_class35.prototype, "forceLoadAggregations", [_dec33], {
124213
- configurable: true,
124214
- enumerable: true,
124215
- writable: true,
124216
- initializer: null
124217
124194
  })), _class35)) || _class34);
124218
- let SchemaRngInnerText = (_dec34 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("innertext", ``), _dec35 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("type", [SchemaRngType]), _dec34(_class37 = (_class38 = class SchemaRngInnerText extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124195
+ let SchemaRngInnerText = (_dec31 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("innertext", ``), _dec32 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("type", [SchemaRngType]), _dec31(_class37 = (_class38 = class SchemaRngInnerText extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124219
124196
  constructor(...args) {
124220
124197
  super(...args);
124221
124198
 
124222
- _initializerDefineProperty(this, "type", _descriptor22, this);
124199
+ _initializerDefineProperty(this, "type", _descriptor19, this);
124223
124200
  }
124224
124201
 
124225
124202
  // @ts-ignore
@@ -124228,17 +124205,17 @@ let SchemaRngInnerText = (_dec34 = (0,_generators_markupGenerator_Serializer_Sug
124228
124205
  this[key] = eval(code);
124229
124206
  }
124230
124207
 
124231
- }, (_descriptor22 = _applyDecoratedDescriptor(_class38.prototype, "type", [_dec35], {
124208
+ }, (_descriptor19 = _applyDecoratedDescriptor(_class38.prototype, "type", [_dec32], {
124232
124209
  configurable: true,
124233
124210
  enumerable: true,
124234
124211
  writable: true,
124235
124212
  initializer: null
124236
124213
  })), _class38)) || _class37);
124237
- let SchemaRngElementChoiceElement = (_dec36 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("choice", ``), _dec37 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("element"), _dec36(_class40 = (_class41 = class SchemaRngElementChoiceElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124214
+ let SchemaRngElementChoiceElement = (_dec33 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("choice", ``), _dec34 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("element"), _dec33(_class40 = (_class41 = class SchemaRngElementChoiceElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124238
124215
  constructor(...args) {
124239
124216
  super(...args);
124240
124217
 
124241
- _initializerDefineProperty(this, "children", _descriptor23, this);
124218
+ _initializerDefineProperty(this, "children", _descriptor20, this);
124242
124219
  }
124243
124220
 
124244
124221
  // @ts-ignore
@@ -124247,37 +124224,31 @@ let SchemaRngElementChoiceElement = (_dec36 = (0,_generators_markupGenerator_Ser
124247
124224
  this[key] = eval(code);
124248
124225
  }
124249
124226
 
124250
- }, (_descriptor23 = _applyDecoratedDescriptor(_class41.prototype, "children", [_dec37], {
124227
+ }, (_descriptor20 = _applyDecoratedDescriptor(_class41.prototype, "children", [_dec34], {
124251
124228
  configurable: true,
124252
124229
  enumerable: true,
124253
124230
  writable: true,
124254
124231
  initializer: null
124255
124232
  })), _class41)) || _class40);
124256
- let SchemaRngElement = (_dec38 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("element", ``), _dec39 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string.required, ``), _dec40 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec41 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec42 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("multiple", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec43 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("deferredLoad", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec44 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("forceLoad", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec45 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("forceLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec46 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("attribute", [SchemaRngAttribute]), _dec47 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("element"), _dec48 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("choice"), _dec49 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("innertext", [SchemaRngInnerText]), _dec38(_class43 = (_class44 = class SchemaRngElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124233
+ let SchemaRngElement = (_dec35 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("element", ``), _dec36 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string.required, ``), _dec37 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec38 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec39 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("multiple", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec40 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("attribute", [SchemaRngAttribute]), _dec41 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("element"), _dec42 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("choice"), _dec43 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("innertext", [SchemaRngInnerText]), _dec35(_class43 = (_class44 = class SchemaRngElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
124257
124234
  constructor(...args) {
124258
124235
  super(...args);
124259
124236
 
124260
- _initializerDefineProperty(this, "name", _descriptor24, this);
124261
-
124262
- _initializerDefineProperty(this, "description", _descriptor25, this);
124237
+ _initializerDefineProperty(this, "name", _descriptor21, this);
124263
124238
 
124264
- _initializerDefineProperty(this, "optional", _descriptor26, this);
124239
+ _initializerDefineProperty(this, "description", _descriptor22, this);
124265
124240
 
124266
- _initializerDefineProperty(this, "multiple", _descriptor27, this);
124241
+ _initializerDefineProperty(this, "optional", _descriptor23, this);
124267
124242
 
124268
- _initializerDefineProperty(this, "deferredLoad", _descriptor28, this);
124243
+ _initializerDefineProperty(this, "multiple", _descriptor24, this);
124269
124244
 
124270
- _initializerDefineProperty(this, "forceLoad", _descriptor29, this);
124245
+ _initializerDefineProperty(this, "attributes", _descriptor25, this);
124271
124246
 
124272
- _initializerDefineProperty(this, "forceLoadAggregations", _descriptor30, this);
124273
-
124274
- _initializerDefineProperty(this, "attributes", _descriptor31, this);
124275
-
124276
- _initializerDefineProperty(this, "children", _descriptor32, this);
124247
+ _initializerDefineProperty(this, "children", _descriptor26, this);
124277
124248
 
124278
- _initializerDefineProperty(this, "choices", _descriptor33, this);
124249
+ _initializerDefineProperty(this, "choices", _descriptor27, this);
124279
124250
 
124280
- _initializerDefineProperty(this, "innerText", _descriptor34, this);
124251
+ _initializerDefineProperty(this, "innerText", _descriptor28, this);
124281
124252
  }
124282
124253
 
124283
124254
  // @ts-ignore
@@ -124286,57 +124257,42 @@ let SchemaRngElement = (_dec38 = (0,_generators_markupGenerator_Serializer_Sugar
124286
124257
  this[key] = eval(code);
124287
124258
  }
124288
124259
 
124289
- }, (_descriptor24 = _applyDecoratedDescriptor(_class44.prototype, "name", [_dec39], {
124290
- configurable: true,
124291
- enumerable: true,
124292
- writable: true,
124293
- initializer: null
124294
- }), _descriptor25 = _applyDecoratedDescriptor(_class44.prototype, "description", [_dec40], {
124295
- configurable: true,
124296
- enumerable: true,
124297
- writable: true,
124298
- initializer: null
124299
- }), _descriptor26 = _applyDecoratedDescriptor(_class44.prototype, "optional", [_dec41], {
124300
- configurable: true,
124301
- enumerable: true,
124302
- writable: true,
124303
- initializer: null
124304
- }), _descriptor27 = _applyDecoratedDescriptor(_class44.prototype, "multiple", [_dec42], {
124260
+ }, (_descriptor21 = _applyDecoratedDescriptor(_class44.prototype, "name", [_dec36], {
124305
124261
  configurable: true,
124306
124262
  enumerable: true,
124307
124263
  writable: true,
124308
124264
  initializer: null
124309
- }), _descriptor28 = _applyDecoratedDescriptor(_class44.prototype, "deferredLoad", [_dec43], {
124265
+ }), _descriptor22 = _applyDecoratedDescriptor(_class44.prototype, "description", [_dec37], {
124310
124266
  configurable: true,
124311
124267
  enumerable: true,
124312
124268
  writable: true,
124313
124269
  initializer: null
124314
- }), _descriptor29 = _applyDecoratedDescriptor(_class44.prototype, "forceLoad", [_dec44], {
124270
+ }), _descriptor23 = _applyDecoratedDescriptor(_class44.prototype, "optional", [_dec38], {
124315
124271
  configurable: true,
124316
124272
  enumerable: true,
124317
124273
  writable: true,
124318
124274
  initializer: null
124319
- }), _descriptor30 = _applyDecoratedDescriptor(_class44.prototype, "forceLoadAggregations", [_dec45], {
124275
+ }), _descriptor24 = _applyDecoratedDescriptor(_class44.prototype, "multiple", [_dec39], {
124320
124276
  configurable: true,
124321
124277
  enumerable: true,
124322
124278
  writable: true,
124323
124279
  initializer: null
124324
- }), _descriptor31 = _applyDecoratedDescriptor(_class44.prototype, "attributes", [_dec46], {
124280
+ }), _descriptor25 = _applyDecoratedDescriptor(_class44.prototype, "attributes", [_dec40], {
124325
124281
  configurable: true,
124326
124282
  enumerable: true,
124327
124283
  writable: true,
124328
124284
  initializer: null
124329
- }), _descriptor32 = _applyDecoratedDescriptor(_class44.prototype, "children", [_dec47], {
124285
+ }), _descriptor26 = _applyDecoratedDescriptor(_class44.prototype, "children", [_dec41], {
124330
124286
  configurable: true,
124331
124287
  enumerable: true,
124332
124288
  writable: true,
124333
124289
  initializer: null
124334
- }), _descriptor33 = _applyDecoratedDescriptor(_class44.prototype, "choices", [_dec48], {
124290
+ }), _descriptor27 = _applyDecoratedDescriptor(_class44.prototype, "choices", [_dec42], {
124335
124291
  configurable: true,
124336
124292
  enumerable: true,
124337
124293
  writable: true,
124338
124294
  initializer: null
124339
- }), _descriptor34 = _applyDecoratedDescriptor(_class44.prototype, "innerText", [_dec49], {
124295
+ }), _descriptor28 = _applyDecoratedDescriptor(_class44.prototype, "innerText", [_dec43], {
124340
124296
  configurable: true,
124341
124297
  enumerable: true,
124342
124298
  writable: true,
@@ -130580,7 +130536,11 @@ class AutoCalculationsGenerator {
130580
130536
  configFile: false,
130581
130537
  babelrc: false,
130582
130538
  // tslint:disable-next-line no-require-imports no-unsafe-any
130583
- presets: [__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js")]
130539
+ presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
130540
+ targets: {
130541
+ browsers: "> 0%"
130542
+ }
130543
+ }]]
130584
130544
  })).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).map(_AdditionalAutoCalculationParser__WEBPACK_IMPORTED_MODULE_4__.additionalAutoCalculationToModule);
130585
130545
  }
130586
130546
 
@@ -130609,12 +130569,15 @@ class AutoCalculationsGenerator {
130609
130569
  }
130610
130570
 
130611
130571
  generateCodeFromAst(ast) {
130612
- // NOTE babel-plugin-module-resolver crash when filename is undefined
130613
- // babel-plugin-module-resolver/lib/normalizeOptions.js:148
130614
130572
  const transformResult = (0,_babel_core__WEBPACK_IMPORTED_MODULE_0__.transformFromAstSync)(ast, undefined, {
130615
130573
  configFile: false,
130616
130574
  filename: "",
130617
- sourceType: "module"
130575
+ sourceType: "module",
130576
+ presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
130577
+ targets: {
130578
+ browsers: "> 0%"
130579
+ }
130580
+ }]]
130618
130581
  });
130619
130582
 
130620
130583
  if (transformResult == undefined || transformResult.code == undefined) {
@@ -131355,7 +131318,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
131355
131318
 
131356
131319
 
131357
131320
  class DataDeclarationGenerator {
131358
- constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry, formSchemaRng) {
131321
+ constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry) {
131359
131322
  this.sugarRoot = void 0;
131360
131323
  this.initSequenceFactory = void 0;
131361
131324
  this.controlCustomizationContext = void 0;
@@ -133129,7 +133092,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
133129
133092
  const fetchFunctions = new _common_FetchFunctions__WEBPACK_IMPORTED_MODULE_2__.FetchFunctions(referencedFetchFunctions); // tslint:disable-next-line no-unsafe-any
133130
133093
 
133131
133094
  const additionalSettings = JSON.parse(additionalContent.additionalSettings || "{}");
133132
- const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_19__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_20__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry, formSchemaRng);
133095
+ const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_19__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_20__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry);
133133
133096
  const {
133134
133097
  dataDeclarationContent,
133135
133098
  dataDeclaration
@@ -158638,14 +158601,6 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
158638
158601
  return defaultValue;
158639
158602
  }
158640
158603
 
158641
- doBuildNormalizeRules(builder) {
158642
- const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
158643
- return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
158644
- optional: node.dataBinding.optional,
158645
- disabled: false
158646
- })];
158647
- }
158648
-
158649
158604
  buildChildrenDataDeclaration(context) {
158650
158605
  const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
158651
158606
  return context.processChildrenDataDeclaration(node.children);
@@ -166877,15 +166832,14 @@ class FLangNormalizationRulesBuilder {
166877
166832
  var _dataBinding$defaultV;
166878
166833
 
166879
166834
  const targetPathReference = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getResolvedBindingPath)(node), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
166880
- const currentValueReference = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference.toCurrentIteration(), "value");
166881
166835
  const defaultValue = (_dataBinding$defaultV = dataBinding.defaultValue) !== null && _dataBinding$defaultV !== void 0 ? _dataBinding$defaultV : "";
166882
166836
 
166883
166837
  if (dataBinding.fetchfn !== undefined) {
166884
166838
  // eslint-disable-next-line no-console
166885
166839
  console.warn("Атрибут fetchfn не поддержиается в режиме серверной нормализации");
166886
- return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), currentValueReference);
166887
166840
  }
166888
166841
 
166842
+ const currentValueReference = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference.toCurrentIteration(), "value");
166889
166843
  let valueExpression = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue);
166890
166844
 
166891
166845
  if (dataBinding.settings) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.241.0-server-norm.9",
3
+ "version": "4.241.0-server-norm.10",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,