@kontur.candy/generator 4.241.0-lazy-loading.4 → 4.241.0-server-norm.9

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 +89 -287
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113078,7 +113078,7 @@ class ModelPath {
113078
113078
  }
113079
113079
 
113080
113080
  let instanceCounter = 0;
113081
- const result = ModelPath.builder(true);
113081
+ const result = ModelPath.builder();
113082
113082
 
113083
113083
  for (const token of this.getPathParts()) {
113084
113084
  if (PathTokens.isMultiToken(token) && instanceCounter < instances.length) {
@@ -122357,24 +122357,6 @@ 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
-
122378
122360
  /***/ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts":
122379
122361
  /*!****************************************************************!*\
122380
122362
  !*** ./Generator/src/common/KCLang/KCLangDescriptionParser.ts ***!
@@ -122386,8 +122368,6 @@ __webpack_require__.r(__webpack_exports__);
122386
122368
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122387
122369
  /* harmony export */ "KCLangDescriptionParser": () => (/* binding */ KCLangDescriptionParser)
122388
122370
  /* 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__);
122391
122371
  /* module decorator */ module = __webpack_require__.hmd(module);
122392
122372
  (function () {
122393
122373
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -122399,9 +122379,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
122399
122379
  };
122400
122380
 
122401
122381
  // @ts-ignore
122402
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
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 => [""];
122403
122386
 
122404
- const evalParse = eval((_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default())).parse;
122405
122387
  class KCLangDescriptionParser {
122406
122388
  static getOrCreateParser() {
122407
122389
  return evalParse;
@@ -123358,11 +123340,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
123358
123340
 
123359
123341
 
123360
123342
  class FormSchemaRngAttribute {
123361
- constructor(name, description, type, optional, parent, lazyLoadMode, lazyLoadAggregations) {
123343
+ constructor(name, description, type, optional, parent, deferredLoad, forceLoad) {
123362
123344
  this.name = void 0;
123363
123345
  this.optional = void 0;
123364
- this.lazyLoadMode = void 0;
123365
- this.lazyLoadAggregations = void 0;
123346
+ this.deferredLoad = void 0;
123347
+ this.forceLoad = void 0;
123366
123348
  this.type = void 0;
123367
123349
  this.description = void 0;
123368
123350
  this.parent = void 0;
@@ -123371,8 +123353,8 @@ class FormSchemaRngAttribute {
123371
123353
  this.type = type;
123372
123354
  this.name = name;
123373
123355
  this.parent = parent;
123374
- this.lazyLoadMode = lazyLoadMode;
123375
- this.lazyLoadAggregations = lazyLoadAggregations;
123356
+ this.deferredLoad = deferredLoad;
123357
+ this.forceLoad = forceLoad;
123376
123358
  }
123377
123359
 
123378
123360
  // @ts-ignore
@@ -123384,12 +123366,12 @@ class FormSchemaRngAttribute {
123384
123366
  }
123385
123367
  const RootParent = Symbol.for("__ROOT_ELEMENT_PARENT__");
123386
123368
  class FormSchemaRngElement {
123387
- constructor(name, parent, optional, multiple, lazyLoadMode, lazyLoadAggregations) {
123369
+ constructor(name, parent, optional, multiple, deferredLoad, forceLoad) {
123388
123370
  this.name = void 0;
123389
123371
  this.optional = void 0;
123390
123372
  this.multiple = void 0;
123391
- this.lazyLoadMode = void 0;
123392
- this.lazyLoadAggregations = void 0;
123373
+ this.deferredLoad = void 0;
123374
+ this.forceLoad = void 0;
123393
123375
  this.innerTextType = void 0;
123394
123376
  this.children = new Map();
123395
123377
  this.attributes = new Map();
@@ -123398,8 +123380,8 @@ class FormSchemaRngElement {
123398
123380
  this.parent = parent;
123399
123381
  this.multiple = multiple;
123400
123382
  this.optional = optional;
123401
- this.lazyLoadMode = lazyLoadMode;
123402
- this.lazyLoadAggregations = lazyLoadAggregations;
123383
+ this.deferredLoad = deferredLoad;
123384
+ this.forceLoad = forceLoad;
123403
123385
  }
123404
123386
 
123405
123387
  addElement(element) {
@@ -123452,7 +123434,7 @@ class FormSchemaRng {
123452
123434
  }
123453
123435
 
123454
123436
  static convertSchemaRngElement(schemaRngElement, parent) {
123455
- const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple, schemaRngElement.lazyLoadMode, schemaRngElement.lazyLoadAggregations);
123437
+ const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple, schemaRngElement.deferredLoad, schemaRngElement.forceLoad);
123456
123438
 
123457
123439
  if (schemaRngElement.innerText != undefined) {
123458
123440
  if (schemaRngElement.innerText.type != undefined) {
@@ -123531,7 +123513,7 @@ class FormSchemaRng {
123531
123513
  }
123532
123514
 
123533
123515
  static convertSchemaRngAttribute(attribute, parent) {
123534
- return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, parent, attribute.lazyLoadMode, attribute.lazyLoadAggregations);
123516
+ return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, parent, attribute.deferredLoad, attribute.forceLoad);
123535
123517
  }
123536
123518
 
123537
123519
  adjustPathMultiplicity(path) {
@@ -123923,7 +123905,7 @@ __webpack_require__.r(__webpack_exports__);
123923
123905
  /* harmony export */ });
123924
123906
  /* harmony import */ var _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../generators/markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
123925
123907
  /* module decorator */ module = __webpack_require__.hmd(module);
123926
- 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, _class34, _class35, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _dec33, _dec34, _class37, _class38, _descriptor21, _dec35, _dec36, _class40, _class41, _descriptor22, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _class43, _class44, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32;
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;
123927
123909
 
123928
123910
  (function () {
123929
123911
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -124172,7 +124154,7 @@ let SchemaRngType = (_dec21 = (0,_generators_markupGenerator_Serializer_SugarSer
124172
124154
  writable: true,
124173
124155
  initializer: null
124174
124156
  })), _class32)) || _class31);
124175
- 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)("lazyLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec32 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("lazyLoadMode", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType["enum"]("deferred", "initial", "request"), ``), _dec26(_class34 = (_class35 = class SchemaRngAttribute extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
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 {
124176
124158
  constructor(...args) {
124177
124159
  super(...args);
124178
124160
 
@@ -124184,9 +124166,11 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
124184
124166
 
124185
124167
  _initializerDefineProperty(this, "description", _descriptor18, this);
124186
124168
 
124187
- _initializerDefineProperty(this, "lazyLoadAggregations", _descriptor19, this);
124169
+ _initializerDefineProperty(this, "deferredLoad", _descriptor19, this);
124170
+
124171
+ _initializerDefineProperty(this, "forceLoad", _descriptor20, this);
124188
124172
 
124189
- _initializerDefineProperty(this, "lazyLoadMode", _descriptor20, this);
124173
+ _initializerDefineProperty(this, "forceLoadAggregations", _descriptor21, this);
124190
124174
  }
124191
124175
 
124192
124176
  // @ts-ignore
@@ -124215,22 +124199,27 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
124215
124199
  enumerable: true,
124216
124200
  writable: true,
124217
124201
  initializer: null
124218
- }), _descriptor19 = _applyDecoratedDescriptor(_class35.prototype, "lazyLoadAggregations", [_dec31], {
124202
+ }), _descriptor19 = _applyDecoratedDescriptor(_class35.prototype, "deferredLoad", [_dec31], {
124219
124203
  configurable: true,
124220
124204
  enumerable: true,
124221
124205
  writable: true,
124222
124206
  initializer: null
124223
- }), _descriptor20 = _applyDecoratedDescriptor(_class35.prototype, "lazyLoadMode", [_dec32], {
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], {
124224
124213
  configurable: true,
124225
124214
  enumerable: true,
124226
124215
  writable: true,
124227
124216
  initializer: null
124228
124217
  })), _class35)) || _class34);
124229
- let SchemaRngInnerText = (_dec33 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("innertext", ``), _dec34 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("type", [SchemaRngType]), _dec33(_class37 = (_class38 = class SchemaRngInnerText extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
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 {
124230
124219
  constructor(...args) {
124231
124220
  super(...args);
124232
124221
 
124233
- _initializerDefineProperty(this, "type", _descriptor21, this);
124222
+ _initializerDefineProperty(this, "type", _descriptor22, this);
124234
124223
  }
124235
124224
 
124236
124225
  // @ts-ignore
@@ -124239,17 +124228,17 @@ let SchemaRngInnerText = (_dec33 = (0,_generators_markupGenerator_Serializer_Sug
124239
124228
  this[key] = eval(code);
124240
124229
  }
124241
124230
 
124242
- }, (_descriptor21 = _applyDecoratedDescriptor(_class38.prototype, "type", [_dec34], {
124231
+ }, (_descriptor22 = _applyDecoratedDescriptor(_class38.prototype, "type", [_dec35], {
124243
124232
  configurable: true,
124244
124233
  enumerable: true,
124245
124234
  writable: true,
124246
124235
  initializer: null
124247
124236
  })), _class38)) || _class37);
124248
- let SchemaRngElementChoiceElement = (_dec35 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("choice", ``), _dec36 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("element"), _dec35(_class40 = (_class41 = class SchemaRngElementChoiceElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
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 {
124249
124238
  constructor(...args) {
124250
124239
  super(...args);
124251
124240
 
124252
- _initializerDefineProperty(this, "children", _descriptor22, this);
124241
+ _initializerDefineProperty(this, "children", _descriptor23, this);
124253
124242
  }
124254
124243
 
124255
124244
  // @ts-ignore
@@ -124258,35 +124247,37 @@ let SchemaRngElementChoiceElement = (_dec35 = (0,_generators_markupGenerator_Ser
124258
124247
  this[key] = eval(code);
124259
124248
  }
124260
124249
 
124261
- }, (_descriptor22 = _applyDecoratedDescriptor(_class41.prototype, "children", [_dec36], {
124250
+ }, (_descriptor23 = _applyDecoratedDescriptor(_class41.prototype, "children", [_dec37], {
124262
124251
  configurable: true,
124263
124252
  enumerable: true,
124264
124253
  writable: true,
124265
124254
  initializer: null
124266
124255
  })), _class41)) || _class40);
124267
- let SchemaRngElement = (_dec37 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("element", ``), _dec38 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string.required, ``), _dec39 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec40 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec41 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("multiple", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec42 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("attribute", [SchemaRngAttribute]), _dec43 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("element"), _dec44 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.children)("choice"), _dec45 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.singleChild)("innertext", [SchemaRngInnerText]), _dec46 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("lazyLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, ``), _dec47 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("lazyLoadMode", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType["enum"]("deferred", "initial", "request"), ``), _dec37(_class43 = (_class44 = class SchemaRngElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
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 {
124268
124257
  constructor(...args) {
124269
124258
  super(...args);
124270
124259
 
124271
- _initializerDefineProperty(this, "name", _descriptor23, this);
124260
+ _initializerDefineProperty(this, "name", _descriptor24, this);
124272
124261
 
124273
- _initializerDefineProperty(this, "description", _descriptor24, this);
124262
+ _initializerDefineProperty(this, "description", _descriptor25, this);
124274
124263
 
124275
- _initializerDefineProperty(this, "optional", _descriptor25, this);
124264
+ _initializerDefineProperty(this, "optional", _descriptor26, this);
124265
+
124266
+ _initializerDefineProperty(this, "multiple", _descriptor27, this);
124276
124267
 
124277
- _initializerDefineProperty(this, "multiple", _descriptor26, this);
124268
+ _initializerDefineProperty(this, "deferredLoad", _descriptor28, this);
124278
124269
 
124279
- _initializerDefineProperty(this, "attributes", _descriptor27, this);
124270
+ _initializerDefineProperty(this, "forceLoad", _descriptor29, this);
124280
124271
 
124281
- _initializerDefineProperty(this, "children", _descriptor28, this);
124272
+ _initializerDefineProperty(this, "forceLoadAggregations", _descriptor30, this);
124282
124273
 
124283
- _initializerDefineProperty(this, "choices", _descriptor29, this);
124274
+ _initializerDefineProperty(this, "attributes", _descriptor31, this);
124284
124275
 
124285
- _initializerDefineProperty(this, "innerText", _descriptor30, this);
124276
+ _initializerDefineProperty(this, "children", _descriptor32, this);
124286
124277
 
124287
- _initializerDefineProperty(this, "lazyLoadAggregations", _descriptor31, this);
124278
+ _initializerDefineProperty(this, "choices", _descriptor33, this);
124288
124279
 
124289
- _initializerDefineProperty(this, "lazyLoadMode", _descriptor32, this);
124280
+ _initializerDefineProperty(this, "innerText", _descriptor34, this);
124290
124281
  }
124291
124282
 
124292
124283
  // @ts-ignore
@@ -124295,52 +124286,57 @@ let SchemaRngElement = (_dec37 = (0,_generators_markupGenerator_Serializer_Sugar
124295
124286
  this[key] = eval(code);
124296
124287
  }
124297
124288
 
124298
- }, (_descriptor23 = _applyDecoratedDescriptor(_class44.prototype, "name", [_dec38], {
124289
+ }, (_descriptor24 = _applyDecoratedDescriptor(_class44.prototype, "name", [_dec39], {
124299
124290
  configurable: true,
124300
124291
  enumerable: true,
124301
124292
  writable: true,
124302
124293
  initializer: null
124303
- }), _descriptor24 = _applyDecoratedDescriptor(_class44.prototype, "description", [_dec39], {
124294
+ }), _descriptor25 = _applyDecoratedDescriptor(_class44.prototype, "description", [_dec40], {
124304
124295
  configurable: true,
124305
124296
  enumerable: true,
124306
124297
  writable: true,
124307
124298
  initializer: null
124308
- }), _descriptor25 = _applyDecoratedDescriptor(_class44.prototype, "optional", [_dec40], {
124299
+ }), _descriptor26 = _applyDecoratedDescriptor(_class44.prototype, "optional", [_dec41], {
124309
124300
  configurable: true,
124310
124301
  enumerable: true,
124311
124302
  writable: true,
124312
124303
  initializer: null
124313
- }), _descriptor26 = _applyDecoratedDescriptor(_class44.prototype, "multiple", [_dec41], {
124304
+ }), _descriptor27 = _applyDecoratedDescriptor(_class44.prototype, "multiple", [_dec42], {
124314
124305
  configurable: true,
124315
124306
  enumerable: true,
124316
124307
  writable: true,
124317
124308
  initializer: null
124318
- }), _descriptor27 = _applyDecoratedDescriptor(_class44.prototype, "attributes", [_dec42], {
124309
+ }), _descriptor28 = _applyDecoratedDescriptor(_class44.prototype, "deferredLoad", [_dec43], {
124319
124310
  configurable: true,
124320
124311
  enumerable: true,
124321
124312
  writable: true,
124322
124313
  initializer: null
124323
- }), _descriptor28 = _applyDecoratedDescriptor(_class44.prototype, "children", [_dec43], {
124314
+ }), _descriptor29 = _applyDecoratedDescriptor(_class44.prototype, "forceLoad", [_dec44], {
124324
124315
  configurable: true,
124325
124316
  enumerable: true,
124326
124317
  writable: true,
124327
124318
  initializer: null
124328
- }), _descriptor29 = _applyDecoratedDescriptor(_class44.prototype, "choices", [_dec44], {
124319
+ }), _descriptor30 = _applyDecoratedDescriptor(_class44.prototype, "forceLoadAggregations", [_dec45], {
124329
124320
  configurable: true,
124330
124321
  enumerable: true,
124331
124322
  writable: true,
124332
124323
  initializer: null
124333
- }), _descriptor30 = _applyDecoratedDescriptor(_class44.prototype, "innerText", [_dec45], {
124324
+ }), _descriptor31 = _applyDecoratedDescriptor(_class44.prototype, "attributes", [_dec46], {
124334
124325
  configurable: true,
124335
124326
  enumerable: true,
124336
124327
  writable: true,
124337
124328
  initializer: null
124338
- }), _descriptor31 = _applyDecoratedDescriptor(_class44.prototype, "lazyLoadAggregations", [_dec46], {
124329
+ }), _descriptor32 = _applyDecoratedDescriptor(_class44.prototype, "children", [_dec47], {
124339
124330
  configurable: true,
124340
124331
  enumerable: true,
124341
124332
  writable: true,
124342
124333
  initializer: null
124343
- }), _descriptor32 = _applyDecoratedDescriptor(_class44.prototype, "lazyLoadMode", [_dec47], {
124334
+ }), _descriptor33 = _applyDecoratedDescriptor(_class44.prototype, "choices", [_dec48], {
124335
+ configurable: true,
124336
+ enumerable: true,
124337
+ writable: true,
124338
+ initializer: null
124339
+ }), _descriptor34 = _applyDecoratedDescriptor(_class44.prototype, "innerText", [_dec49], {
124344
124340
  configurable: true,
124345
124341
  enumerable: true,
124346
124342
  writable: true,
@@ -130584,11 +130580,7 @@ class AutoCalculationsGenerator {
130584
130580
  configFile: false,
130585
130581
  babelrc: false,
130586
130582
  // tslint:disable-next-line no-require-imports no-unsafe-any
130587
- presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
130588
- targets: {
130589
- browsers: "> 0%"
130590
- }
130591
- }]]
130583
+ presets: [__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js")]
130592
130584
  })).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).map(_AdditionalAutoCalculationParser__WEBPACK_IMPORTED_MODULE_4__.additionalAutoCalculationToModule);
130593
130585
  }
130594
130586
 
@@ -130617,15 +130609,12 @@ class AutoCalculationsGenerator {
130617
130609
  }
130618
130610
 
130619
130611
  generateCodeFromAst(ast) {
130612
+ // NOTE babel-plugin-module-resolver crash when filename is undefined
130613
+ // babel-plugin-module-resolver/lib/normalizeOptions.js:148
130620
130614
  const transformResult = (0,_babel_core__WEBPACK_IMPORTED_MODULE_0__.transformFromAstSync)(ast, undefined, {
130621
130615
  configFile: false,
130622
130616
  filename: "",
130623
- sourceType: "module",
130624
- presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
130625
- targets: {
130626
- browsers: "> 0%"
130627
- }
130628
- }]]
130617
+ sourceType: "module"
130629
130618
  });
130630
130619
 
130631
130620
  if (transformResult == undefined || transformResult.code == undefined) {
@@ -131366,7 +131355,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
131366
131355
 
131367
131356
 
131368
131357
  class DataDeclarationGenerator {
131369
- constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry) {
131358
+ constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry, formSchemaRng) {
131370
131359
  this.sugarRoot = void 0;
131371
131360
  this.initSequenceFactory = void 0;
131372
131361
  this.controlCustomizationContext = void 0;
@@ -132392,8 +132381,7 @@ function getWebEntry(gfv, resourcesHash) {
132392
132381
  localizationDictionary,
132393
132382
  autocalculationConfigurators,
132394
132383
  kcXmlValidationConfigurator,
132395
- kcXmlAutoCalculationConfigurator,
132396
- lazyLoadDeclaration
132384
+ kcXmlAutoCalculationConfigurator
132397
132385
  } from './resources'
132398
132386
  import { Form } from './components'
132399
132387
 
@@ -132404,7 +132392,6 @@ window.CF.entryPoint = window.CF.entryPoint || {};
132404
132392
  window.CF.entryPoint[gfv] = function(container, { renderForm, ...settings }) {
132405
132393
  const resources = {
132406
132394
  dataDeclaration: dataDeclaration,
132407
- lazyLoadDeclaration: lazyLoadDeclaration,
132408
132395
  calculationFunctions: calculationFunctions,
132409
132396
  validationFunctions: validationFunctions,
132410
132397
  requisiteList: requisiteList,
@@ -132769,7 +132756,7 @@ class KCXmlGeneratorBase {
132769
132756
  const gcf = (selector, ...args) => this.getCompiledFuncWithArgs(selector, args);
132770
132757
 
132771
132758
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArgumentExpression || expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultySumExpression) {
132772
- const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeMultiplicity(this.removeAttributePrefix(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132759
+ const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(expression.select), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132773
132760
  const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
132774
132761
  deps.push(argumentDependency);
132775
132762
  const finalPath = argumentDependency instanceof _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath ? argumentDependency : argumentDependency.modelPath;
@@ -132777,13 +132764,13 @@ class KCXmlGeneratorBase {
132777
132764
  }
132778
132765
 
132779
132766
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
132780
- const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132767
+ const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(expression.select), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132781
132768
  deps.push(modelPath);
132782
132769
  return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
132783
132770
  }
132784
132771
 
132785
132772
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
132786
- const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132773
+ const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(expression.select), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132787
132774
  const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
132788
132775
  deps.push(argumentDependency);
132789
132776
  const finalPath = argumentDependency instanceof _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath ? argumentDependency : argumentDependency.modelPath;
@@ -132907,10 +132894,6 @@ class KCXmlGeneratorBase {
132907
132894
  return pathPart.replace(/\@/g, "");
132908
132895
  }
132909
132896
 
132910
- removeMultiplicity(path) {
132911
- return path.replace(/\/\*/g, "");
132912
- }
132913
-
132914
132897
  modelPathInstance(target) {
132915
132898
  return `new ModelPath([${[...target.getPathParts()].map(x => {
132916
132899
  if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
@@ -133001,8 +132984,8 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
133001
132984
  compileCondition(condition) {
133002
132985
  var _condition$descriptio, _condition$errorLevel;
133003
132986
 
133004
- const prefix = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeMultiplicity(this.removeAttributePrefix(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
133005
- const target = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132987
+ const prefix = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(condition.match), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
132988
+ const target = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(condition.target), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
133006
132989
  const deps = [];
133007
132990
  const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
133008
132991
  const compiledTarget = this.modelPathInstance(target);
@@ -133041,154 +133024,6 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
133041
133024
 
133042
133025
  /***/ }),
133043
133026
 
133044
- /***/ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts":
133045
- /*!***********************************************************************************************!*\
133046
- !*** ./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts ***!
133047
- \***********************************************************************************************/
133048
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
133049
-
133050
- "use strict";
133051
- __webpack_require__.r(__webpack_exports__);
133052
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
133053
- /* harmony export */ "LazyLoadDeclarationGenerator": () => (/* binding */ LazyLoadDeclarationGenerator)
133054
- /* harmony export */ });
133055
- /* harmony import */ var serialize_javascript__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! serialize-javascript */ "./node_modules/serialize-javascript/index.js");
133056
- /* harmony import */ var serialize_javascript__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(serialize_javascript__WEBPACK_IMPORTED_MODULE_0__);
133057
- /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
133058
- /* harmony import */ var _DataDeclarationGenerator_placeholders__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../DataDeclarationGenerator/placeholders */ "./Generator/src/generators/DataDeclarationGenerator/placeholders.js");
133059
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
133060
- /* module decorator */ module = __webpack_require__.hmd(module);
133061
- (function () {
133062
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
133063
- enterModule && enterModule(module);
133064
- })();
133065
-
133066
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
133067
- return a;
133068
- };
133069
-
133070
-
133071
-
133072
-
133073
-
133074
- class LazyLoadDeclarationGenerator {
133075
- constructor(formSchemaRng) {
133076
- this.formSchemaRng = void 0;
133077
- this.formSchemaRng = formSchemaRng;
133078
- }
133079
-
133080
- *processElement(path, element) {
133081
- if (element.lazyLoadMode != undefined) {
133082
- const currentPath = element.multiple ? path.joinWith(element.name) : path.joinWith(element.name + ".value");
133083
- yield {
133084
- path: this.formSchemaRng.adjustPathMultiplicity(currentPath),
133085
- lazyLoadMode: element.lazyLoadMode
133086
- };
133087
-
133088
- if (element.multiple) {
133089
- const childrenPath = path.joinWith(element.name + ".children");
133090
- yield {
133091
- path: this.formSchemaRng.adjustPathMultiplicity(childrenPath),
133092
- lazyLoadMode: "initial"
133093
- };
133094
- }
133095
- }
133096
-
133097
- for (const attr of element.attributes.values()) {
133098
- if (attr.lazyLoadMode != undefined) {
133099
- const currentPath = path.joinWith(element.name, attr.name + ".value");
133100
- yield {
133101
- path: this.formSchemaRng.adjustPathMultiplicity(currentPath),
133102
- lazyLoadMode: attr.lazyLoadMode
133103
- };
133104
- }
133105
-
133106
- if (attr.lazyLoadMode != undefined && attr.lazyLoadAggregations) {
133107
- const baseAggregationPath = this.formSchemaRng.adjustPathMultiplicity(path.joinWith(element.name)).trimLastStarIfLastToken().joinWith(attr.name);
133108
- const sumPath = baseAggregationPath.joinWith("Sum.value");
133109
- yield {
133110
- path: sumPath,
133111
- lazyLoadMode: "initial"
133112
- };
133113
- const countPath = baseAggregationPath.joinWith("Count.value");
133114
- yield {
133115
- path: countPath,
133116
- lazyLoadMode: "initial"
133117
- };
133118
- }
133119
- }
133120
-
133121
- const nextPath = path.joinWith(element.name);
133122
-
133123
- for (const child of element.children.values()) {
133124
- yield* this.processElement(nextPath, child);
133125
- }
133126
- }
133127
-
133128
- generate() {
133129
- const desclaration = {};
133130
- const resultItems = this.processElement(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.ModelPath.empty(), this.formSchemaRng.getRootElement());
133131
-
133132
- for (const lazyLoadingNodeDeclaration of resultItems) {
133133
- desclaration[lazyLoadingNodeDeclaration.path.toLegacyPath()] = {
133134
- lazyLoadMode: lazyLoadingNodeDeclaration.lazyLoadMode
133135
- };
133136
- }
133137
-
133138
- const result = this.replaceHolder(`
133139
- export default function lazyLoadDeclaration() {
133140
- return ${serialize_javascript__WEBPACK_IMPORTED_MODULE_0___default()(desclaration, {
133141
- space: " "
133142
- })};
133143
- };`);
133144
- return unescape(result.replace(/(\\)(u[\dA-Fa-f]{4})/g, "%$2"));
133145
- }
133146
-
133147
- replaceHolder(decl) {
133148
- let replacedDecl = decl;
133149
-
133150
- for (const [placeholderName, placeHoldersFunction] of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateEntries)(_DataDeclarationGenerator_placeholders__WEBPACK_IMPORTED_MODULE_2__.placeHolders)) {
133151
- const checkName = `"#(${placeholderName})(\\('[\\w]*'\\))?#"`;
133152
- const include = new RegExp(checkName, "i");
133153
-
133154
- if (include.test(replacedDecl)) {
133155
- const regex = new RegExp(checkName, "g");
133156
- replacedDecl = replacedDecl.replace(regex, "$1$2");
133157
- replacedDecl = replacedDecl + placeHoldersFunction.toString();
133158
- }
133159
- }
133160
-
133161
- return replacedDecl;
133162
- }
133163
-
133164
- // @ts-ignore
133165
- __reactstandin__regenerateByEval(key, code) {
133166
- // @ts-ignore
133167
- this[key] = eval(code);
133168
- }
133169
-
133170
- }
133171
- ;
133172
-
133173
- (function () {
133174
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
133175
-
133176
- if (!reactHotLoader) {
133177
- return;
133178
- }
133179
-
133180
- reactHotLoader.register(LazyLoadDeclarationGenerator, "LazyLoadDeclarationGenerator", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\LazyLoadDeclarationGenerator\\LazyLoadDeclarationGenerator.ts");
133181
- })();
133182
-
133183
- ;
133184
-
133185
- (function () {
133186
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
133187
- leaveModule && leaveModule(module);
133188
- })();
133189
-
133190
- /***/ }),
133191
-
133192
133027
  /***/ "./Generator/src/generators/ProcessFormSources.ts":
133193
133028
  /*!********************************************************!*\
133194
133029
  !*** ./Generator/src/generators/ProcessFormSources.ts ***!
@@ -133229,7 +133064,6 @@ __webpack_require__.r(__webpack_exports__);
133229
133064
  /* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationGenerationTimeHelper */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationTimeHelper.ts");
133230
133065
  /* harmony import */ var _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./AttachmentPaths/AttachmentPathsGenerator */ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts");
133231
133066
  /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./AutoCalculationsGenerator/AutoCalculationsFromFormulas/Calculator2/AutoCalculationsCalculator2Generator */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/Calculator2/AutoCalculationsCalculator2Generator.ts");
133232
- /* harmony import */ var _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator */ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts");
133233
133067
  /* module decorator */ module = __webpack_require__.hmd(module);
133234
133068
  (function () {
133235
133069
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
@@ -133267,7 +133101,6 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
133267
133101
 
133268
133102
 
133269
133103
 
133270
-
133271
133104
 
133272
133105
 
133273
133106
  function processSugar(formSugarContent, additionalContent, generationOptions) {
@@ -133296,7 +133129,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
133296
133129
  const fetchFunctions = new _common_FetchFunctions__WEBPACK_IMPORTED_MODULE_2__.FetchFunctions(referencedFetchFunctions); // tslint:disable-next-line no-unsafe-any
133297
133130
 
133298
133131
  const additionalSettings = JSON.parse(additionalContent.additionalSettings || "{}");
133299
- const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_19__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_20__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry);
133132
+ const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_19__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_20__.DataDeclarationInitSourceSequenceFactory(fetchFunctions), controlCustomizationContext, typeRegistry, formSchemaRng);
133300
133133
  const {
133301
133134
  dataDeclarationContent,
133302
133135
  dataDeclaration
@@ -133310,8 +133143,6 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
133310
133143
  markupGenerator.generate(sugarRoot, builder);
133311
133144
  builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_9__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings));
133312
133145
  builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_24__.getRequisiteList)(sugarRoot, fetchFunctions));
133313
- const lazyLoadGenerator = new _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_29__.LazyLoadDeclarationGenerator(formSchemaRng);
133314
- builder.addResource("lazyLoadDeclaration.js", lazyLoadGenerator.generate());
133315
133146
  const autocalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsGenerator__WEBPACK_IMPORTED_MODULE_18__.AutoCalculationsGenerator(dataDeclarationHelper, schemaRng);
133316
133147
  builder.addResource("calculationFunctions.js", autocalcGenerator.generate(sugarRoot, formulas, additionalContent.autocalcsContent));
133317
133148
  builder.addResource("dataDeclaration.js", dataDeclarationContent);
@@ -133911,7 +133742,7 @@ class FLangValidationBuildContext {
133911
133742
  }
133912
133743
 
133913
133744
  buildBasicValidations(targetPath, typeNode, schemaTypeNode, optional) {
133914
- var _typeNode$base, _typeNode$checkType;
133745
+ var _typeNode$base;
133915
133746
 
133916
133747
  const validations = [];
133917
133748
  const valueReference = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(targetPath.toCurrentIteration(), "value");
@@ -133945,15 +133776,14 @@ class FLangValidationBuildContext {
133945
133776
  errorExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.IsEqualsBinaryExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.IsEqualsBinaryExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(""))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NullLiteralExpression(), errorExpression);
133946
133777
  }
133947
133778
 
133948
- const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
133949
133779
  return [{
133950
- statement: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(targetPath, checkType), errorExpression),
133951
- checkType: checkType
133780
+ statement: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(targetPath, "error"), errorExpression),
133781
+ checkType: "error"
133952
133782
  }];
133953
133783
  }
133954
133784
 
133955
133785
  *createTypeValidations(valueReference, typeNode, schemaTypeNode) {
133956
- var _typeNode$children$fi, _typeNode$children, _typeNode$children$fi2, _schemaTypeNode$enume, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMaxInclusive, _typeNode$children7, _typeNodeTotalDigits$, _typeNode$children8, _typeNodePattern$valu, _schemaTypeNode$patte, _typeNode$children9, _typeNodeFractional$v;
133786
+ var _typeNode$children$fi, _typeNode$children, _typeNode$children$fi2, _schemaTypeNode$enume, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMaxInclusive, _typeNode$children7, _typeNodeTotalDigits$, _typeNode$children8, _typeNodePattern$valu, _schemaTypeNode$patte;
133957
133787
 
133958
133788
  //const baseCheckType = typeNode?.checkType;
133959
133789
  const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 ? void 0 : (_typeNode$children$fi2 = _typeNode$children.filter(x => x instanceof _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.EnumerationTypeCheckNode)) === null || _typeNode$children$fi2 === void 0 ? void 0 : _typeNode$children$fi2.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
@@ -134026,7 +133856,7 @@ class FLangValidationBuildContext {
134026
133856
 
134027
133857
  if (totalDigitsValue != undefined) {
134028
133858
  const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.LenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.DecimalLiteralExpression(totalDigitsValue)));
134029
- yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Число не может содержать более ${totalDigitsValue} знаков"]`)];
133859
+ yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле должно быть заполнено"]`)];
134030
133860
  }
134031
133861
 
134032
133862
  const typeNodePattern = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.PatternTypeCheckNode));
@@ -134036,14 +133866,6 @@ class FLangValidationBuildContext {
134036
133866
  const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.CallExpression("regexMatch", [valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(pattern)]));
134037
133867
  yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле должно быть заполнено"]`)];
134038
133868
  }
134039
-
134040
- const typeNodeFractional = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.FractiondigitsTypeCheckNode));
134041
- const fractionalDigits = (_typeNodeFractional$v = typeNodeFractional === null || typeNodeFractional === void 0 ? void 0 : typeNodeFractional.value) !== null && _typeNodeFractional$v !== void 0 ? _typeNodeFractional$v : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.fractionDigits;
134042
-
134043
- if (fractionalDigits != undefined) {
134044
- const fractionalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.FractionalLenExpression(this.castOperandToDecimalIfNeed(valueReference)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.DecimalLiteralExpression(fractionalDigits)));
134045
- yield [fractionalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Число не может содержать более ${fractionalDigits} знаков в дробной части"]`)];
134046
- }
134047
133869
  }
134048
133870
 
134049
133871
  createBaseTypeValidation(valueReference, baseType) {
@@ -134185,7 +134007,6 @@ __webpack_require__.r(__webpack_exports__);
134185
134007
  /* harmony export */ "BoolLiteralExpression": () => (/* binding */ BoolLiteralExpression),
134186
134008
  /* harmony export */ "AbsExpression": () => (/* binding */ AbsExpression),
134187
134009
  /* harmony export */ "LenExpression": () => (/* binding */ LenExpression),
134188
- /* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
134189
134010
  /* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
134190
134011
  /* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
134191
134012
  /* harmony export */ "NullLiteralExpression": () => (/* binding */ NullLiteralExpression),
@@ -134744,24 +134565,6 @@ class LenExpression extends FLangExpression {
134744
134565
  this[key] = eval(code);
134745
134566
  }
134746
134567
 
134747
- }
134748
- class FractionalLenExpression extends FLangExpression {
134749
- constructor(expression) {
134750
- super();
134751
- this.expression = void 0;
134752
- this.expression = expression;
134753
- }
134754
-
134755
- convertToString() {
134756
- return `fractionalLen(${this.expression.convertToString()})`;
134757
- }
134758
-
134759
- // @ts-ignore
134760
- __reactstandin__regenerateByEval(key, code) {
134761
- // @ts-ignore
134762
- this[key] = eval(code);
134763
- }
134764
-
134765
134568
  }
134766
134569
  class RoundExpression extends ConstExpression {
134767
134570
  constructor(expression, fractionalDigits) {
@@ -134909,7 +134712,6 @@ class SetStatement extends FLangStatement {
134909
134712
  reactHotLoader.register(BoolLiteralExpression, "BoolLiteralExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
134910
134713
  reactHotLoader.register(AbsExpression, "AbsExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
134911
134714
  reactHotLoader.register(LenExpression, "LenExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
134912
- reactHotLoader.register(FractionalLenExpression, "FractionalLenExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
134913
134715
  reactHotLoader.register(RoundExpression, "RoundExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
134914
134716
  reactHotLoader.register(IntegerLiteralExpression, "IntegerLiteralExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
134915
134717
  reactHotLoader.register(NullLiteralExpression, "NullLiteralExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
@@ -158816,14 +158618,6 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
158816
158618
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
158817
158619
  }
158818
158620
 
158819
- doBuildNormalizeRules(builder) {
158820
- const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
158821
- return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
158822
- optional: node.dataBinding.optional,
158823
- disabled: false
158824
- })];
158825
- }
158826
-
158827
158621
  getDefaultValue(node) {
158828
158622
  var _node$dataBinding$def;
158829
158623
 
@@ -158844,6 +158638,14 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
158844
158638
  return defaultValue;
158845
158639
  }
158846
158640
 
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
+
158847
158649
  buildChildrenDataDeclaration(context) {
158848
158650
  const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
158849
158651
  return context.processChildrenDataDeclaration(node.children);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.241.0-lazy-loading.4",
3
+ "version": "4.241.0-server-norm.9",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,