@kontur.candy/generator 4.241.0-lazy-loading.7 → 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.
- package/dist/index.js +110 -428
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112701,14 +112701,6 @@ class AbsoluteModelFieldPath {
|
|
|
112701
112701
|
return new AbsoluteModelFieldPath(AbsoluteModelPath.createAbsoluteFromMask(pathWithFieldName.replace(".$warningCount", ""), multiplicitySymbol), "$warningCount");
|
|
112702
112702
|
}
|
|
112703
112703
|
|
|
112704
|
-
if (pathWithFieldName.endsWith(".errorsCount")) {
|
|
112705
|
-
return new AbsoluteModelFieldPath(AbsoluteModelPath.createAbsoluteFromMask(pathWithFieldName.replace(".errorsCount", ""), multiplicitySymbol), "errorsCount");
|
|
112706
|
-
}
|
|
112707
|
-
|
|
112708
|
-
if (pathWithFieldName.endsWith(".warningsCount")) {
|
|
112709
|
-
return new AbsoluteModelFieldPath(AbsoluteModelPath.createAbsoluteFromMask(pathWithFieldName.replace(".warningsCount", ""), multiplicitySymbol), "warningsCount");
|
|
112710
|
-
}
|
|
112711
|
-
|
|
112712
112704
|
return new AbsoluteModelFieldPath(AbsoluteModelPath.createAbsoluteFromMask(pathWithFieldName, multiplicitySymbol), "value");
|
|
112713
112705
|
}
|
|
112714
112706
|
|
|
@@ -113086,7 +113078,7 @@ class ModelPath {
|
|
|
113086
113078
|
}
|
|
113087
113079
|
|
|
113088
113080
|
let instanceCounter = 0;
|
|
113089
|
-
const result = ModelPath.builder(
|
|
113081
|
+
const result = ModelPath.builder();
|
|
113090
113082
|
|
|
113091
113083
|
for (const token of this.getPathParts()) {
|
|
113092
113084
|
if (PathTokens.isMultiToken(token) && instanceCounter < instances.length) {
|
|
@@ -122365,24 +122357,6 @@ class DefaultKCLangExpressionVisitor {
|
|
|
122365
122357
|
|
|
122366
122358
|
/***/ }),
|
|
122367
122359
|
|
|
122368
|
-
/***/ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts":
|
|
122369
|
-
/*!*****************************************************************!*\
|
|
122370
|
-
!*** ./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts ***!
|
|
122371
|
-
\*****************************************************************/
|
|
122372
|
-
/***/ ((module) => {
|
|
122373
|
-
|
|
122374
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
122375
|
-
return a;
|
|
122376
|
-
};
|
|
122377
|
-
|
|
122378
|
-
// this file was prevaled
|
|
122379
|
-
|
|
122380
|
-
/* eslint-disable */
|
|
122381
|
-
// @ts-ignore
|
|
122382
|
-
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})()";
|
|
122383
|
-
|
|
122384
|
-
/***/ }),
|
|
122385
|
-
|
|
122386
122360
|
/***/ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts":
|
|
122387
122361
|
/*!****************************************************************!*\
|
|
122388
122362
|
!*** ./Generator/src/common/KCLang/KCLangDescriptionParser.ts ***!
|
|
@@ -122394,8 +122368,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
122394
122368
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122395
122369
|
/* harmony export */ "KCLangDescriptionParser": () => (/* binding */ KCLangDescriptionParser)
|
|
122396
122370
|
/* harmony export */ });
|
|
122397
|
-
/* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KCLangDescriptionGrammar */ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts");
|
|
122398
|
-
/* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__);
|
|
122399
122371
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
122400
122372
|
(function () {
|
|
122401
122373
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -122407,9 +122379,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
122407
122379
|
};
|
|
122408
122380
|
|
|
122409
122381
|
// @ts-ignore
|
|
122410
|
-
|
|
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 => [""];
|
|
122411
122386
|
|
|
122412
|
-
const evalParse = eval((_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default())).parse;
|
|
122413
122387
|
class KCLangDescriptionParser {
|
|
122414
122388
|
static getOrCreateParser() {
|
|
122415
122389
|
return evalParse;
|
|
@@ -123366,11 +123340,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
123366
123340
|
|
|
123367
123341
|
|
|
123368
123342
|
class FormSchemaRngAttribute {
|
|
123369
|
-
constructor(name, description, type, optional, parent,
|
|
123343
|
+
constructor(name, description, type, optional, parent, deferredLoad, forceLoad) {
|
|
123370
123344
|
this.name = void 0;
|
|
123371
123345
|
this.optional = void 0;
|
|
123372
|
-
this.
|
|
123373
|
-
this.
|
|
123346
|
+
this.deferredLoad = void 0;
|
|
123347
|
+
this.forceLoad = void 0;
|
|
123374
123348
|
this.type = void 0;
|
|
123375
123349
|
this.description = void 0;
|
|
123376
123350
|
this.parent = void 0;
|
|
@@ -123379,8 +123353,8 @@ class FormSchemaRngAttribute {
|
|
|
123379
123353
|
this.type = type;
|
|
123380
123354
|
this.name = name;
|
|
123381
123355
|
this.parent = parent;
|
|
123382
|
-
this.
|
|
123383
|
-
this.
|
|
123356
|
+
this.deferredLoad = deferredLoad;
|
|
123357
|
+
this.forceLoad = forceLoad;
|
|
123384
123358
|
}
|
|
123385
123359
|
|
|
123386
123360
|
// @ts-ignore
|
|
@@ -123392,14 +123366,12 @@ class FormSchemaRngAttribute {
|
|
|
123392
123366
|
}
|
|
123393
123367
|
const RootParent = Symbol.for("__ROOT_ELEMENT_PARENT__");
|
|
123394
123368
|
class FormSchemaRngElement {
|
|
123395
|
-
constructor(name, parent, optional, multiple,
|
|
123369
|
+
constructor(name, parent, optional, multiple, deferredLoad, forceLoad) {
|
|
123396
123370
|
this.name = void 0;
|
|
123397
123371
|
this.optional = void 0;
|
|
123398
123372
|
this.multiple = void 0;
|
|
123399
|
-
this.
|
|
123400
|
-
this.
|
|
123401
|
-
this.errorAndWarningCountRequired = void 0;
|
|
123402
|
-
this.lazyLoadingThreshold = void 0;
|
|
123373
|
+
this.deferredLoad = void 0;
|
|
123374
|
+
this.forceLoad = void 0;
|
|
123403
123375
|
this.innerTextType = void 0;
|
|
123404
123376
|
this.children = new Map();
|
|
123405
123377
|
this.attributes = new Map();
|
|
@@ -123408,10 +123380,8 @@ class FormSchemaRngElement {
|
|
|
123408
123380
|
this.parent = parent;
|
|
123409
123381
|
this.multiple = multiple;
|
|
123410
123382
|
this.optional = optional;
|
|
123411
|
-
this.
|
|
123412
|
-
this.
|
|
123413
|
-
this.errorAndWarningCountRequired = errorAndWarningCountRequired;
|
|
123414
|
-
this.lazyLoadingThreshold = lazyLoadingThreshold;
|
|
123383
|
+
this.deferredLoad = deferredLoad;
|
|
123384
|
+
this.forceLoad = forceLoad;
|
|
123415
123385
|
}
|
|
123416
123386
|
|
|
123417
123387
|
addElement(element) {
|
|
@@ -123464,7 +123434,7 @@ class FormSchemaRng {
|
|
|
123464
123434
|
}
|
|
123465
123435
|
|
|
123466
123436
|
static convertSchemaRngElement(schemaRngElement, parent) {
|
|
123467
|
-
const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple, schemaRngElement.
|
|
123437
|
+
const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple, schemaRngElement.deferredLoad, schemaRngElement.forceLoad);
|
|
123468
123438
|
|
|
123469
123439
|
if (schemaRngElement.innerText != undefined) {
|
|
123470
123440
|
if (schemaRngElement.innerText.type != undefined) {
|
|
@@ -123543,7 +123513,7 @@ class FormSchemaRng {
|
|
|
123543
123513
|
}
|
|
123544
123514
|
|
|
123545
123515
|
static convertSchemaRngAttribute(attribute, parent) {
|
|
123546
|
-
return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, parent, attribute.
|
|
123516
|
+
return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, parent, attribute.deferredLoad, attribute.forceLoad);
|
|
123547
123517
|
}
|
|
123548
123518
|
|
|
123549
123519
|
adjustPathMultiplicity(path) {
|
|
@@ -123935,7 +123905,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
123935
123905
|
/* harmony export */ });
|
|
123936
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");
|
|
123937
123907
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
123938
|
-
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,
|
|
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;
|
|
123939
123909
|
|
|
123940
123910
|
(function () {
|
|
123941
123911
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -124184,7 +124154,7 @@ let SchemaRngType = (_dec21 = (0,_generators_markupGenerator_Serializer_SugarSer
|
|
|
124184
124154
|
writable: true,
|
|
124185
124155
|
initializer: null
|
|
124186
124156
|
})), _class32)) || _class31);
|
|
124187
|
-
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)("
|
|
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 {
|
|
124188
124158
|
constructor(...args) {
|
|
124189
124159
|
super(...args);
|
|
124190
124160
|
|
|
@@ -124196,9 +124166,11 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
|
|
|
124196
124166
|
|
|
124197
124167
|
_initializerDefineProperty(this, "description", _descriptor18, this);
|
|
124198
124168
|
|
|
124199
|
-
_initializerDefineProperty(this, "
|
|
124169
|
+
_initializerDefineProperty(this, "deferredLoad", _descriptor19, this);
|
|
124170
|
+
|
|
124171
|
+
_initializerDefineProperty(this, "forceLoad", _descriptor20, this);
|
|
124200
124172
|
|
|
124201
|
-
_initializerDefineProperty(this, "
|
|
124173
|
+
_initializerDefineProperty(this, "forceLoadAggregations", _descriptor21, this);
|
|
124202
124174
|
}
|
|
124203
124175
|
|
|
124204
124176
|
// @ts-ignore
|
|
@@ -124227,22 +124199,27 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
|
|
|
124227
124199
|
enumerable: true,
|
|
124228
124200
|
writable: true,
|
|
124229
124201
|
initializer: null
|
|
124230
|
-
}), _descriptor19 = _applyDecoratedDescriptor(_class35.prototype, "
|
|
124202
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class35.prototype, "deferredLoad", [_dec31], {
|
|
124231
124203
|
configurable: true,
|
|
124232
124204
|
enumerable: true,
|
|
124233
124205
|
writable: true,
|
|
124234
124206
|
initializer: null
|
|
124235
|
-
}), _descriptor20 = _applyDecoratedDescriptor(_class35.prototype, "
|
|
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], {
|
|
124236
124213
|
configurable: true,
|
|
124237
124214
|
enumerable: true,
|
|
124238
124215
|
writable: true,
|
|
124239
124216
|
initializer: null
|
|
124240
124217
|
})), _class35)) || _class34);
|
|
124241
|
-
let SchemaRngInnerText = (
|
|
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 {
|
|
124242
124219
|
constructor(...args) {
|
|
124243
124220
|
super(...args);
|
|
124244
124221
|
|
|
124245
|
-
_initializerDefineProperty(this, "type",
|
|
124222
|
+
_initializerDefineProperty(this, "type", _descriptor22, this);
|
|
124246
124223
|
}
|
|
124247
124224
|
|
|
124248
124225
|
// @ts-ignore
|
|
@@ -124251,17 +124228,17 @@ let SchemaRngInnerText = (_dec33 = (0,_generators_markupGenerator_Serializer_Sug
|
|
|
124251
124228
|
this[key] = eval(code);
|
|
124252
124229
|
}
|
|
124253
124230
|
|
|
124254
|
-
}, (
|
|
124231
|
+
}, (_descriptor22 = _applyDecoratedDescriptor(_class38.prototype, "type", [_dec35], {
|
|
124255
124232
|
configurable: true,
|
|
124256
124233
|
enumerable: true,
|
|
124257
124234
|
writable: true,
|
|
124258
124235
|
initializer: null
|
|
124259
124236
|
})), _class38)) || _class37);
|
|
124260
|
-
let SchemaRngElementChoiceElement = (
|
|
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 {
|
|
124261
124238
|
constructor(...args) {
|
|
124262
124239
|
super(...args);
|
|
124263
124240
|
|
|
124264
|
-
_initializerDefineProperty(this, "children",
|
|
124241
|
+
_initializerDefineProperty(this, "children", _descriptor23, this);
|
|
124265
124242
|
}
|
|
124266
124243
|
|
|
124267
124244
|
// @ts-ignore
|
|
@@ -124270,39 +124247,37 @@ let SchemaRngElementChoiceElement = (_dec35 = (0,_generators_markupGenerator_Ser
|
|
|
124270
124247
|
this[key] = eval(code);
|
|
124271
124248
|
}
|
|
124272
124249
|
|
|
124273
|
-
}, (
|
|
124250
|
+
}, (_descriptor23 = _applyDecoratedDescriptor(_class41.prototype, "children", [_dec37], {
|
|
124274
124251
|
configurable: true,
|
|
124275
124252
|
enumerable: true,
|
|
124276
124253
|
writable: true,
|
|
124277
124254
|
initializer: null
|
|
124278
124255
|
})), _class41)) || _class40);
|
|
124279
|
-
let SchemaRngElement = (
|
|
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 {
|
|
124280
124257
|
constructor(...args) {
|
|
124281
124258
|
super(...args);
|
|
124282
124259
|
|
|
124283
|
-
_initializerDefineProperty(this, "name",
|
|
124284
|
-
|
|
124285
|
-
_initializerDefineProperty(this, "description", _descriptor24, this);
|
|
124260
|
+
_initializerDefineProperty(this, "name", _descriptor24, this);
|
|
124286
124261
|
|
|
124287
|
-
_initializerDefineProperty(this, "
|
|
124262
|
+
_initializerDefineProperty(this, "description", _descriptor25, this);
|
|
124288
124263
|
|
|
124289
|
-
_initializerDefineProperty(this, "
|
|
124264
|
+
_initializerDefineProperty(this, "optional", _descriptor26, this);
|
|
124290
124265
|
|
|
124291
|
-
_initializerDefineProperty(this, "
|
|
124266
|
+
_initializerDefineProperty(this, "multiple", _descriptor27, this);
|
|
124292
124267
|
|
|
124293
|
-
_initializerDefineProperty(this, "
|
|
124268
|
+
_initializerDefineProperty(this, "deferredLoad", _descriptor28, this);
|
|
124294
124269
|
|
|
124295
|
-
_initializerDefineProperty(this, "
|
|
124270
|
+
_initializerDefineProperty(this, "forceLoad", _descriptor29, this);
|
|
124296
124271
|
|
|
124297
|
-
_initializerDefineProperty(this, "
|
|
124272
|
+
_initializerDefineProperty(this, "forceLoadAggregations", _descriptor30, this);
|
|
124298
124273
|
|
|
124299
|
-
_initializerDefineProperty(this, "
|
|
124274
|
+
_initializerDefineProperty(this, "attributes", _descriptor31, this);
|
|
124300
124275
|
|
|
124301
|
-
_initializerDefineProperty(this, "
|
|
124276
|
+
_initializerDefineProperty(this, "children", _descriptor32, this);
|
|
124302
124277
|
|
|
124303
|
-
_initializerDefineProperty(this, "
|
|
124278
|
+
_initializerDefineProperty(this, "choices", _descriptor33, this);
|
|
124304
124279
|
|
|
124305
|
-
_initializerDefineProperty(this, "
|
|
124280
|
+
_initializerDefineProperty(this, "innerText", _descriptor34, this);
|
|
124306
124281
|
}
|
|
124307
124282
|
|
|
124308
124283
|
// @ts-ignore
|
|
@@ -124311,62 +124286,57 @@ let SchemaRngElement = (_dec37 = (0,_generators_markupGenerator_Serializer_Sugar
|
|
|
124311
124286
|
this[key] = eval(code);
|
|
124312
124287
|
}
|
|
124313
124288
|
|
|
124314
|
-
}, (
|
|
124289
|
+
}, (_descriptor24 = _applyDecoratedDescriptor(_class44.prototype, "name", [_dec39], {
|
|
124315
124290
|
configurable: true,
|
|
124316
124291
|
enumerable: true,
|
|
124317
124292
|
writable: true,
|
|
124318
124293
|
initializer: null
|
|
124319
|
-
}),
|
|
124294
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class44.prototype, "description", [_dec40], {
|
|
124320
124295
|
configurable: true,
|
|
124321
124296
|
enumerable: true,
|
|
124322
124297
|
writable: true,
|
|
124323
124298
|
initializer: null
|
|
124324
|
-
}),
|
|
124299
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class44.prototype, "optional", [_dec41], {
|
|
124325
124300
|
configurable: true,
|
|
124326
124301
|
enumerable: true,
|
|
124327
124302
|
writable: true,
|
|
124328
124303
|
initializer: null
|
|
124329
|
-
}),
|
|
124304
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class44.prototype, "multiple", [_dec42], {
|
|
124330
124305
|
configurable: true,
|
|
124331
124306
|
enumerable: true,
|
|
124332
124307
|
writable: true,
|
|
124333
124308
|
initializer: null
|
|
124334
|
-
}),
|
|
124309
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class44.prototype, "deferredLoad", [_dec43], {
|
|
124335
124310
|
configurable: true,
|
|
124336
124311
|
enumerable: true,
|
|
124337
124312
|
writable: true,
|
|
124338
124313
|
initializer: null
|
|
124339
|
-
}),
|
|
124314
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class44.prototype, "forceLoad", [_dec44], {
|
|
124340
124315
|
configurable: true,
|
|
124341
124316
|
enumerable: true,
|
|
124342
124317
|
writable: true,
|
|
124343
124318
|
initializer: null
|
|
124344
|
-
}),
|
|
124319
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class44.prototype, "forceLoadAggregations", [_dec45], {
|
|
124345
124320
|
configurable: true,
|
|
124346
124321
|
enumerable: true,
|
|
124347
124322
|
writable: true,
|
|
124348
124323
|
initializer: null
|
|
124349
|
-
}),
|
|
124324
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class44.prototype, "attributes", [_dec46], {
|
|
124350
124325
|
configurable: true,
|
|
124351
124326
|
enumerable: true,
|
|
124352
124327
|
writable: true,
|
|
124353
124328
|
initializer: null
|
|
124354
|
-
}),
|
|
124329
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class44.prototype, "children", [_dec47], {
|
|
124355
124330
|
configurable: true,
|
|
124356
124331
|
enumerable: true,
|
|
124357
124332
|
writable: true,
|
|
124358
124333
|
initializer: null
|
|
124359
|
-
}),
|
|
124334
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class44.prototype, "choices", [_dec48], {
|
|
124360
124335
|
configurable: true,
|
|
124361
124336
|
enumerable: true,
|
|
124362
124337
|
writable: true,
|
|
124363
124338
|
initializer: null
|
|
124364
|
-
}),
|
|
124365
|
-
configurable: true,
|
|
124366
|
-
enumerable: true,
|
|
124367
|
-
writable: true,
|
|
124368
|
-
initializer: null
|
|
124369
|
-
}), _descriptor34 = _applyDecoratedDescriptor(_class44.prototype, "lazyLoadingThreshold", [_dec49], {
|
|
124339
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class44.prototype, "innerText", [_dec49], {
|
|
124370
124340
|
configurable: true,
|
|
124371
124341
|
enumerable: true,
|
|
124372
124342
|
writable: true,
|
|
@@ -130610,11 +130580,7 @@ class AutoCalculationsGenerator {
|
|
|
130610
130580
|
configFile: false,
|
|
130611
130581
|
babelrc: false,
|
|
130612
130582
|
// tslint:disable-next-line no-require-imports no-unsafe-any
|
|
130613
|
-
presets: [
|
|
130614
|
-
targets: {
|
|
130615
|
-
browsers: "> 0%"
|
|
130616
|
-
}
|
|
130617
|
-
}]]
|
|
130583
|
+
presets: [__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js")]
|
|
130618
130584
|
})).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).map(_AdditionalAutoCalculationParser__WEBPACK_IMPORTED_MODULE_4__.additionalAutoCalculationToModule);
|
|
130619
130585
|
}
|
|
130620
130586
|
|
|
@@ -130643,15 +130609,12 @@ class AutoCalculationsGenerator {
|
|
|
130643
130609
|
}
|
|
130644
130610
|
|
|
130645
130611
|
generateCodeFromAst(ast) {
|
|
130612
|
+
// NOTE babel-plugin-module-resolver crash when filename is undefined
|
|
130613
|
+
// babel-plugin-module-resolver/lib/normalizeOptions.js:148
|
|
130646
130614
|
const transformResult = (0,_babel_core__WEBPACK_IMPORTED_MODULE_0__.transformFromAstSync)(ast, undefined, {
|
|
130647
130615
|
configFile: false,
|
|
130648
130616
|
filename: "",
|
|
130649
|
-
sourceType: "module"
|
|
130650
|
-
presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
|
|
130651
|
-
targets: {
|
|
130652
|
-
browsers: "> 0%"
|
|
130653
|
-
}
|
|
130654
|
-
}]]
|
|
130617
|
+
sourceType: "module"
|
|
130655
130618
|
});
|
|
130656
130619
|
|
|
130657
130620
|
if (transformResult == undefined || transformResult.code == undefined) {
|
|
@@ -131287,20 +131250,14 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
131287
131250
|
this.dataDeclaration = dataDeclaration;
|
|
131288
131251
|
}
|
|
131289
131252
|
|
|
131290
|
-
isErrorsAndWarningsCountRequired(targetPath) {
|
|
131291
|
-
var _this$getDataDeclarat, _this$getDataDeclarat2, _this$getDataDeclarat3;
|
|
131292
|
-
|
|
131293
|
-
return (_this$getDataDeclarat = (_this$getDataDeclarat2 = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat2 === void 0 ? void 0 : (_this$getDataDeclarat3 = _this$getDataDeclarat2.errorAndWarningCountRequired) === null || _this$getDataDeclarat3 === void 0 ? void 0 : _this$getDataDeclarat3[0]) !== null && _this$getDataDeclarat !== void 0 ? _this$getDataDeclarat : false;
|
|
131294
|
-
}
|
|
131295
|
-
|
|
131296
131253
|
hasMask(targetPath) {
|
|
131297
131254
|
return this.getDataDeclarationEntry(targetPath) != undefined;
|
|
131298
131255
|
}
|
|
131299
131256
|
|
|
131300
131257
|
isNodeHasChildrenEntry(targetPath) {
|
|
131301
|
-
var _this$
|
|
131258
|
+
var _this$getDataDeclarat;
|
|
131302
131259
|
|
|
131303
|
-
return ((_this$
|
|
131260
|
+
return ((_this$getDataDeclarat = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat === void 0 ? void 0 : _this$getDataDeclarat.children) != undefined;
|
|
131304
131261
|
}
|
|
131305
131262
|
|
|
131306
131263
|
isNodeHasAutoFlagEntry(targetPath) {
|
|
@@ -131321,9 +131278,9 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
131321
131278
|
}
|
|
131322
131279
|
|
|
131323
131280
|
isNodeOptional(targetPath) {
|
|
131324
|
-
var _this$
|
|
131281
|
+
var _this$getDataDeclarat2, _optionalValue$;
|
|
131325
131282
|
|
|
131326
|
-
const optionalValue = (_this$
|
|
131283
|
+
const optionalValue = (_this$getDataDeclarat2 = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat2 === void 0 ? void 0 : _this$getDataDeclarat2.optional;
|
|
131327
131284
|
return (_optionalValue$ = optionalValue === null || optionalValue === void 0 ? void 0 : optionalValue[0]) !== null && _optionalValue$ !== void 0 ? _optionalValue$ : false;
|
|
131328
131285
|
}
|
|
131329
131286
|
|
|
@@ -131377,9 +131334,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131377
131334
|
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
131378
131335
|
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
131379
131336
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
131380
|
-
/* harmony import */ var
|
|
131381
|
-
/* harmony import */ var
|
|
131382
|
-
/* harmony import */ var _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
131337
|
+
/* harmony import */ var _placeholders__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./placeholders */ "./Generator/src/generators/DataDeclarationGenerator/placeholders.js");
|
|
131338
|
+
/* harmony import */ var _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
131383
131339
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
131384
131340
|
(function () {
|
|
131385
131341
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -131398,15 +131354,12 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
131398
131354
|
|
|
131399
131355
|
|
|
131400
131356
|
|
|
131401
|
-
|
|
131402
131357
|
class DataDeclarationGenerator {
|
|
131403
131358
|
constructor(sugarRoot, initSequenceFactory, controlCustomizationContext, typesRegistry, formSchemaRng) {
|
|
131404
131359
|
this.sugarRoot = void 0;
|
|
131405
131360
|
this.initSequenceFactory = void 0;
|
|
131406
|
-
this.formSchemaRng = void 0;
|
|
131407
131361
|
this.controlCustomizationContext = void 0;
|
|
131408
131362
|
this.typesRegistry = void 0;
|
|
131409
|
-
this.formSchemaRng = formSchemaRng;
|
|
131410
131363
|
this.sugarRoot = sugarRoot;
|
|
131411
131364
|
this.initSequenceFactory = initSequenceFactory;
|
|
131412
131365
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
@@ -131418,9 +131371,8 @@ class DataDeclarationGenerator {
|
|
|
131418
131371
|
|
|
131419
131372
|
const converterClass = (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(this.sugarRoot))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
131420
131373
|
const converter = new converterClass(this.sugarRoot);
|
|
131421
|
-
const context = new
|
|
131374
|
+
const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry);
|
|
131422
131375
|
const dataDeclaration = converter.buildDataDeclaration(context);
|
|
131423
|
-
this.enrichWithSchemaRng(dataDeclaration);
|
|
131424
131376
|
const orderedDataDeclaration = this.sortDataDeclarationKeys(dataDeclaration);
|
|
131425
131377
|
const result = this.replaceHolder(`
|
|
131426
131378
|
export default function dataDeclaration({
|
|
@@ -131448,27 +131400,12 @@ class DataDeclarationGenerator {
|
|
|
131448
131400
|
};
|
|
131449
131401
|
}
|
|
131450
131402
|
|
|
131451
|
-
enrichWithSchemaRng(dataDeclaration) {
|
|
131452
|
-
const elementEntries = this.formSchemaRng.getAllChildren(this.formSchemaRng.getRootElement()).filter(x => x instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_6__.FormSchemaRngElement && x.errorAndWarningCountRequired).map(x => ({
|
|
131453
|
-
element: x,
|
|
131454
|
-
path: this.formSchemaRng.getPath(x)
|
|
131455
|
-
}));
|
|
131456
|
-
|
|
131457
|
-
for (const elementEntry of elementEntries) {
|
|
131458
|
-
var _dataDeclaration$lega, _elementEntry$element;
|
|
131459
|
-
|
|
131460
|
-
const legacyPath = elementEntry.path.trimLastStarIfLastToken().toLegacyPath();
|
|
131461
|
-
const declarationEntry = (_dataDeclaration$lega = dataDeclaration[legacyPath]) !== null && _dataDeclaration$lega !== void 0 ? _dataDeclaration$lega : {};
|
|
131462
|
-
declarationEntry.errorAndWarningCountRequired = [(_elementEntry$element = elementEntry.element.errorAndWarningCountRequired) !== null && _elementEntry$element !== void 0 ? _elementEntry$element : false];
|
|
131463
|
-
}
|
|
131464
|
-
}
|
|
131465
|
-
|
|
131466
131403
|
generateDataDeclarationFactory() {
|
|
131467
131404
|
var _getConverterByNodeCl2;
|
|
131468
131405
|
|
|
131469
131406
|
const converterClass = (_getConverterByNodeCl2 = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(this.sugarRoot))) !== null && _getConverterByNodeCl2 !== void 0 ? _getConverterByNodeCl2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
131470
131407
|
const converter = new converterClass(this.sugarRoot);
|
|
131471
|
-
const context = new
|
|
131408
|
+
const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry);
|
|
131472
131409
|
const dataDeclaration = converter.buildDataDeclaration(context);
|
|
131473
131410
|
const orderedDataDeclaration = this.sortDataDeclarationKeys(dataDeclaration);
|
|
131474
131411
|
return `
|
|
@@ -131507,7 +131444,7 @@ class DataDeclarationGenerator {
|
|
|
131507
131444
|
replaceHolder(decl) {
|
|
131508
131445
|
let replacedDecl = decl;
|
|
131509
131446
|
|
|
131510
|
-
for (const [placeholderName, placeHoldersFunction] of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateEntries)(
|
|
131447
|
+
for (const [placeholderName, placeHoldersFunction] of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateEntries)(_placeholders__WEBPACK_IMPORTED_MODULE_6__.placeHolders)) {
|
|
131511
131448
|
const checkName = `"#(${placeholderName})(\\('[\\w]*'\\))?#"`;
|
|
131512
131449
|
const include = new RegExp(checkName, "i");
|
|
131513
131450
|
|
|
@@ -132444,8 +132381,7 @@ function getWebEntry(gfv, resourcesHash) {
|
|
|
132444
132381
|
localizationDictionary,
|
|
132445
132382
|
autocalculationConfigurators,
|
|
132446
132383
|
kcXmlValidationConfigurator,
|
|
132447
|
-
kcXmlAutoCalculationConfigurator
|
|
132448
|
-
lazyLoadDeclaration
|
|
132384
|
+
kcXmlAutoCalculationConfigurator
|
|
132449
132385
|
} from './resources'
|
|
132450
132386
|
import { Form } from './components'
|
|
132451
132387
|
|
|
@@ -132456,7 +132392,6 @@ window.CF.entryPoint = window.CF.entryPoint || {};
|
|
|
132456
132392
|
window.CF.entryPoint[gfv] = function(container, { renderForm, ...settings }) {
|
|
132457
132393
|
const resources = {
|
|
132458
132394
|
dataDeclaration: dataDeclaration,
|
|
132459
|
-
lazyLoadDeclaration: lazyLoadDeclaration,
|
|
132460
132395
|
calculationFunctions: calculationFunctions,
|
|
132461
132396
|
validationFunctions: validationFunctions,
|
|
132462
132397
|
requisiteList: requisiteList,
|
|
@@ -132821,7 +132756,7 @@ class KCXmlGeneratorBase {
|
|
|
132821
132756
|
const gcf = (selector, ...args) => this.getCompiledFuncWithArgs(selector, args);
|
|
132822
132757
|
|
|
132823
132758
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArgumentExpression || expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultySumExpression) {
|
|
132824
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.
|
|
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());
|
|
132825
132760
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
132826
132761
|
deps.push(argumentDependency);
|
|
132827
132762
|
const finalPath = argumentDependency instanceof _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath ? argumentDependency : argumentDependency.modelPath;
|
|
@@ -132829,13 +132764,13 @@ class KCXmlGeneratorBase {
|
|
|
132829
132764
|
}
|
|
132830
132765
|
|
|
132831
132766
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
|
|
132832
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(
|
|
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());
|
|
132833
132768
|
deps.push(modelPath);
|
|
132834
132769
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
132835
132770
|
}
|
|
132836
132771
|
|
|
132837
132772
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
132838
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(
|
|
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());
|
|
132839
132774
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
132840
132775
|
deps.push(argumentDependency);
|
|
132841
132776
|
const finalPath = argumentDependency instanceof _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath ? argumentDependency : argumentDependency.modelPath;
|
|
@@ -132959,10 +132894,6 @@ class KCXmlGeneratorBase {
|
|
|
132959
132894
|
return pathPart.replace(/\@/g, "");
|
|
132960
132895
|
}
|
|
132961
132896
|
|
|
132962
|
-
removeMultiplicity(path) {
|
|
132963
|
-
return path.replace(/\/\*/g, "");
|
|
132964
|
-
}
|
|
132965
|
-
|
|
132966
132897
|
modelPathInstance(target) {
|
|
132967
132898
|
return `new ModelPath([${[...target.getPathParts()].map(x => {
|
|
132968
132899
|
if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
|
|
@@ -133053,8 +132984,8 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
133053
132984
|
compileCondition(condition) {
|
|
133054
132985
|
var _condition$descriptio, _condition$errorLevel;
|
|
133055
132986
|
|
|
133056
|
-
const prefix = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.
|
|
133057
|
-
const target = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.
|
|
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());
|
|
133058
132989
|
const deps = [];
|
|
133059
132990
|
const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
|
|
133060
132991
|
const compiledTarget = this.modelPathInstance(target);
|
|
@@ -133093,180 +133024,6 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
133093
133024
|
|
|
133094
133025
|
/***/ }),
|
|
133095
133026
|
|
|
133096
|
-
/***/ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts":
|
|
133097
|
-
/*!***********************************************************************************************!*\
|
|
133098
|
-
!*** ./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts ***!
|
|
133099
|
-
\***********************************************************************************************/
|
|
133100
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
133101
|
-
|
|
133102
|
-
"use strict";
|
|
133103
|
-
__webpack_require__.r(__webpack_exports__);
|
|
133104
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
133105
|
-
/* harmony export */ "LazyLoadDeclarationGenerator": () => (/* binding */ LazyLoadDeclarationGenerator)
|
|
133106
|
-
/* harmony export */ });
|
|
133107
|
-
/* harmony import */ var serialize_javascript__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! serialize-javascript */ "./node_modules/serialize-javascript/index.js");
|
|
133108
|
-
/* harmony import */ var serialize_javascript__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(serialize_javascript__WEBPACK_IMPORTED_MODULE_0__);
|
|
133109
|
-
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
133110
|
-
/* harmony import */ var _DataDeclarationGenerator_placeholders__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../DataDeclarationGenerator/placeholders */ "./Generator/src/generators/DataDeclarationGenerator/placeholders.js");
|
|
133111
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
133112
|
-
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
133113
|
-
(function () {
|
|
133114
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
133115
|
-
enterModule && enterModule(module);
|
|
133116
|
-
})();
|
|
133117
|
-
|
|
133118
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
133119
|
-
return a;
|
|
133120
|
-
};
|
|
133121
|
-
|
|
133122
|
-
|
|
133123
|
-
|
|
133124
|
-
|
|
133125
|
-
|
|
133126
|
-
class LazyLoadDeclarationGenerator {
|
|
133127
|
-
constructor(formSchemaRng) {
|
|
133128
|
-
this.formSchemaRng = void 0;
|
|
133129
|
-
this.formSchemaRng = formSchemaRng;
|
|
133130
|
-
}
|
|
133131
|
-
|
|
133132
|
-
*processElement(path, element) {
|
|
133133
|
-
if (element.lazyLoadMode != undefined) {
|
|
133134
|
-
const currentPath = element.multiple ? path.joinWith(element.name) : path.joinWith(element.name + ".value");
|
|
133135
|
-
const item = {
|
|
133136
|
-
path: this.formSchemaRng.adjustPathMultiplicity(currentPath),
|
|
133137
|
-
lazyLoadMode: element.lazyLoadMode
|
|
133138
|
-
};
|
|
133139
|
-
yield element.lazyLoadingThreshold != undefined ? { ...item,
|
|
133140
|
-
thresholdValue: element.lazyLoadingThreshold
|
|
133141
|
-
} : item;
|
|
133142
|
-
|
|
133143
|
-
if (element.multiple) {
|
|
133144
|
-
const additionalFields = ["children", "errorsCount", "warningsCount"];
|
|
133145
|
-
const additionalItems = additionalFields.map(field => ({
|
|
133146
|
-
path: this.formSchemaRng.adjustPathMultiplicity(path.joinWith(`${element.name}.${field}`)),
|
|
133147
|
-
lazyLoadMode: "initial"
|
|
133148
|
-
}));
|
|
133149
|
-
yield* additionalItems;
|
|
133150
|
-
yield {
|
|
133151
|
-
path: this.formSchemaRng.adjustPathMultiplicity(path.joinWith(element.name).joinWith(".errorsCount")),
|
|
133152
|
-
lazyLoadMode: "initial"
|
|
133153
|
-
};
|
|
133154
|
-
yield {
|
|
133155
|
-
path: this.formSchemaRng.adjustPathMultiplicity(path.joinWith(element.name).joinWith(".warningsCount")),
|
|
133156
|
-
lazyLoadMode: "initial"
|
|
133157
|
-
};
|
|
133158
|
-
} else {
|
|
133159
|
-
yield {
|
|
133160
|
-
path: this.formSchemaRng.adjustPathMultiplicity(path.joinWith(element.name + ".errorsCount")),
|
|
133161
|
-
lazyLoadMode: "initial"
|
|
133162
|
-
};
|
|
133163
|
-
yield {
|
|
133164
|
-
path: this.formSchemaRng.adjustPathMultiplicity(path.joinWith(element.name + ".warningsCount")),
|
|
133165
|
-
lazyLoadMode: "initial"
|
|
133166
|
-
};
|
|
133167
|
-
}
|
|
133168
|
-
}
|
|
133169
|
-
|
|
133170
|
-
for (const attr of element.attributes.values()) {
|
|
133171
|
-
if (attr.lazyLoadMode != undefined) {
|
|
133172
|
-
const currentPath = path.joinWith(element.name, attr.name + ".value");
|
|
133173
|
-
yield {
|
|
133174
|
-
path: this.formSchemaRng.adjustPathMultiplicity(currentPath),
|
|
133175
|
-
lazyLoadMode: attr.lazyLoadMode
|
|
133176
|
-
};
|
|
133177
|
-
}
|
|
133178
|
-
|
|
133179
|
-
if (attr.lazyLoadMode != undefined && attr.lazyLoadAggregations) {
|
|
133180
|
-
const baseAggregationPath = this.formSchemaRng.adjustPathMultiplicity(path.joinWith(element.name)).trimLastStarIfLastToken().joinWith(attr.name);
|
|
133181
|
-
const sumPath = baseAggregationPath.joinWith("Sum.value");
|
|
133182
|
-
yield {
|
|
133183
|
-
path: sumPath,
|
|
133184
|
-
lazyLoadMode: "initial"
|
|
133185
|
-
};
|
|
133186
|
-
const countPath = baseAggregationPath.joinWith("Count.value");
|
|
133187
|
-
yield {
|
|
133188
|
-
path: countPath,
|
|
133189
|
-
lazyLoadMode: "initial"
|
|
133190
|
-
};
|
|
133191
|
-
}
|
|
133192
|
-
}
|
|
133193
|
-
|
|
133194
|
-
const nextPath = path.joinWith(element.name);
|
|
133195
|
-
|
|
133196
|
-
for (const child of element.children.values()) {
|
|
133197
|
-
yield* this.processElement(nextPath, child);
|
|
133198
|
-
}
|
|
133199
|
-
}
|
|
133200
|
-
|
|
133201
|
-
generate() {
|
|
133202
|
-
const declaration = {};
|
|
133203
|
-
const resultItems = this.processElement(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.ModelPath.empty(), this.formSchemaRng.getRootElement());
|
|
133204
|
-
|
|
133205
|
-
for (const lazyLoadingNodeDeclaration of resultItems) {
|
|
133206
|
-
declaration[lazyLoadingNodeDeclaration.path.toLegacyPath()] = {
|
|
133207
|
-
lazyLoadMode: lazyLoadingNodeDeclaration.lazyLoadMode,
|
|
133208
|
-
thresholdValue: lazyLoadingNodeDeclaration.thresholdValue
|
|
133209
|
-
};
|
|
133210
|
-
}
|
|
133211
|
-
|
|
133212
|
-
const result = this.replaceHolder(`
|
|
133213
|
-
export default function lazyLoadDeclaration() {
|
|
133214
|
-
return ${serialize_javascript__WEBPACK_IMPORTED_MODULE_0___default()(declaration, {
|
|
133215
|
-
space: " "
|
|
133216
|
-
})};
|
|
133217
|
-
};`);
|
|
133218
|
-
const content = unescape(result.replace(/(\\)(u[\dA-Fa-f]{4})/g, "%$2"));
|
|
133219
|
-
return {
|
|
133220
|
-
content: content,
|
|
133221
|
-
declaration: declaration
|
|
133222
|
-
};
|
|
133223
|
-
}
|
|
133224
|
-
|
|
133225
|
-
replaceHolder(decl) {
|
|
133226
|
-
let replacedDecl = decl;
|
|
133227
|
-
|
|
133228
|
-
for (const [placeholderName, placeHoldersFunction] of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateEntries)(_DataDeclarationGenerator_placeholders__WEBPACK_IMPORTED_MODULE_2__.placeHolders)) {
|
|
133229
|
-
const checkName = `"#(${placeholderName})(\\('[\\w]*'\\))?#"`;
|
|
133230
|
-
const include = new RegExp(checkName, "i");
|
|
133231
|
-
|
|
133232
|
-
if (include.test(replacedDecl)) {
|
|
133233
|
-
const regex = new RegExp(checkName, "g");
|
|
133234
|
-
replacedDecl = replacedDecl.replace(regex, "$1$2");
|
|
133235
|
-
replacedDecl = replacedDecl + placeHoldersFunction.toString();
|
|
133236
|
-
}
|
|
133237
|
-
}
|
|
133238
|
-
|
|
133239
|
-
return replacedDecl;
|
|
133240
|
-
}
|
|
133241
|
-
|
|
133242
|
-
// @ts-ignore
|
|
133243
|
-
__reactstandin__regenerateByEval(key, code) {
|
|
133244
|
-
// @ts-ignore
|
|
133245
|
-
this[key] = eval(code);
|
|
133246
|
-
}
|
|
133247
|
-
|
|
133248
|
-
}
|
|
133249
|
-
;
|
|
133250
|
-
|
|
133251
|
-
(function () {
|
|
133252
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
133253
|
-
|
|
133254
|
-
if (!reactHotLoader) {
|
|
133255
|
-
return;
|
|
133256
|
-
}
|
|
133257
|
-
|
|
133258
|
-
reactHotLoader.register(LazyLoadDeclarationGenerator, "LazyLoadDeclarationGenerator", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\LazyLoadDeclarationGenerator\\LazyLoadDeclarationGenerator.ts");
|
|
133259
|
-
})();
|
|
133260
|
-
|
|
133261
|
-
;
|
|
133262
|
-
|
|
133263
|
-
(function () {
|
|
133264
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
133265
|
-
leaveModule && leaveModule(module);
|
|
133266
|
-
})();
|
|
133267
|
-
|
|
133268
|
-
/***/ }),
|
|
133269
|
-
|
|
133270
133027
|
/***/ "./Generator/src/generators/ProcessFormSources.ts":
|
|
133271
133028
|
/*!********************************************************!*\
|
|
133272
133029
|
!*** ./Generator/src/generators/ProcessFormSources.ts ***!
|
|
@@ -133307,7 +133064,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
133307
133064
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationGenerationTimeHelper */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationTimeHelper.ts");
|
|
133308
133065
|
/* harmony import */ var _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./AttachmentPaths/AttachmentPathsGenerator */ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts");
|
|
133309
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");
|
|
133310
|
-
/* harmony import */ var _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator */ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts");
|
|
133311
133067
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
133312
133068
|
(function () {
|
|
133313
133069
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -133345,7 +133101,6 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
133345
133101
|
|
|
133346
133102
|
|
|
133347
133103
|
|
|
133348
|
-
|
|
133349
133104
|
|
|
133350
133105
|
|
|
133351
133106
|
function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
@@ -133381,16 +133136,13 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
133381
133136
|
} = dataDeclarationGenerator.generate();
|
|
133382
133137
|
const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_26__.DataDeclarationGenerationTimeHelper(dataDeclaration);
|
|
133383
133138
|
const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_16__.ValidationGenerator(sugarRoot, typeRegistry, controlCustomizationContext, formSchemaRng, (_sugarRoot$schemaVali = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali !== void 0 ? _sugarRoot$schemaVali : false, (_sugarRoot$deepOption = sugarRoot.deepOptionalSchemaValidations) !== null && _sugarRoot$deepOption !== void 0 ? _sugarRoot$deepOption : false, additionalContent.validationsContent);
|
|
133384
|
-
const
|
|
133385
|
-
const lazyLoadGeneratorResult = lazyLoadGenerator.generate();
|
|
133386
|
-
const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_25__.NormalizationRulesGenerator(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, kcXmlConditions, typeRegistry, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, controlCustomizationContext, lazyLoadGeneratorResult.declaration);
|
|
133139
|
+
const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_25__.NormalizationRulesGenerator(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, kcXmlConditions, typeRegistry, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, controlCustomizationContext);
|
|
133387
133140
|
const resourcesHash = (_generationOptions$re = generationOptions === null || generationOptions === void 0 ? void 0 : generationOptions.resourcesHash) !== null && _generationOptions$re !== void 0 ? _generationOptions$re : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("Current generator version requires resources hash");
|
|
133388
133141
|
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_21__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
133389
133142
|
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_12__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
|
|
133390
133143
|
markupGenerator.generate(sugarRoot, builder);
|
|
133391
133144
|
builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_9__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings));
|
|
133392
133145
|
builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_24__.getRequisiteList)(sugarRoot, fetchFunctions));
|
|
133393
|
-
builder.addResource("lazyLoadDeclaration.js", lazyLoadGeneratorResult.content);
|
|
133394
133146
|
const autocalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsGenerator__WEBPACK_IMPORTED_MODULE_18__.AutoCalculationsGenerator(dataDeclarationHelper, schemaRng);
|
|
133395
133147
|
builder.addResource("calculationFunctions.js", autocalcGenerator.generate(sugarRoot, formulas, additionalContent.autocalcsContent));
|
|
133396
133148
|
builder.addResource("dataDeclaration.js", dataDeclarationContent);
|
|
@@ -133990,7 +133742,7 @@ class FLangValidationBuildContext {
|
|
|
133990
133742
|
}
|
|
133991
133743
|
|
|
133992
133744
|
buildBasicValidations(targetPath, typeNode, schemaTypeNode, optional) {
|
|
133993
|
-
var _typeNode$base
|
|
133745
|
+
var _typeNode$base;
|
|
133994
133746
|
|
|
133995
133747
|
const validations = [];
|
|
133996
133748
|
const valueReference = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(targetPath.toCurrentIteration(), "value");
|
|
@@ -134024,15 +133776,14 @@ class FLangValidationBuildContext {
|
|
|
134024
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);
|
|
134025
133777
|
}
|
|
134026
133778
|
|
|
134027
|
-
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
134028
133779
|
return [{
|
|
134029
|
-
statement: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(targetPath,
|
|
134030
|
-
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"
|
|
134031
133782
|
}];
|
|
134032
133783
|
}
|
|
134033
133784
|
|
|
134034
133785
|
*createTypeValidations(valueReference, typeNode, schemaTypeNode) {
|
|
134035
|
-
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
|
|
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;
|
|
134036
133787
|
|
|
134037
133788
|
//const baseCheckType = typeNode?.checkType;
|
|
134038
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 : [];
|
|
@@ -134105,7 +133856,7 @@ class FLangValidationBuildContext {
|
|
|
134105
133856
|
|
|
134106
133857
|
if (totalDigitsValue != undefined) {
|
|
134107
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)));
|
|
134108
|
-
yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["
|
|
133859
|
+
yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле должно быть заполнено"]`)];
|
|
134109
133860
|
}
|
|
134110
133861
|
|
|
134111
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));
|
|
@@ -134115,14 +133866,6 @@ class FLangValidationBuildContext {
|
|
|
134115
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)]));
|
|
134116
133867
|
yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле должно быть заполнено"]`)];
|
|
134117
133868
|
}
|
|
134118
|
-
|
|
134119
|
-
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));
|
|
134120
|
-
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;
|
|
134121
|
-
|
|
134122
|
-
if (fractionalDigits != undefined) {
|
|
134123
|
-
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)));
|
|
134124
|
-
yield [fractionalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Число не может содержать более ${fractionalDigits} знаков в дробной части"]`)];
|
|
134125
|
-
}
|
|
134126
133869
|
}
|
|
134127
133870
|
|
|
134128
133871
|
createBaseTypeValidation(valueReference, baseType) {
|
|
@@ -134264,7 +134007,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134264
134007
|
/* harmony export */ "BoolLiteralExpression": () => (/* binding */ BoolLiteralExpression),
|
|
134265
134008
|
/* harmony export */ "AbsExpression": () => (/* binding */ AbsExpression),
|
|
134266
134009
|
/* harmony export */ "LenExpression": () => (/* binding */ LenExpression),
|
|
134267
|
-
/* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
|
|
134268
134010
|
/* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
|
|
134269
134011
|
/* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
|
|
134270
134012
|
/* harmony export */ "NullLiteralExpression": () => (/* binding */ NullLiteralExpression),
|
|
@@ -134823,24 +134565,6 @@ class LenExpression extends FLangExpression {
|
|
|
134823
134565
|
this[key] = eval(code);
|
|
134824
134566
|
}
|
|
134825
134567
|
|
|
134826
|
-
}
|
|
134827
|
-
class FractionalLenExpression extends FLangExpression {
|
|
134828
|
-
constructor(expression) {
|
|
134829
|
-
super();
|
|
134830
|
-
this.expression = void 0;
|
|
134831
|
-
this.expression = expression;
|
|
134832
|
-
}
|
|
134833
|
-
|
|
134834
|
-
convertToString() {
|
|
134835
|
-
return `fractionalLen(${this.expression.convertToString()})`;
|
|
134836
|
-
}
|
|
134837
|
-
|
|
134838
|
-
// @ts-ignore
|
|
134839
|
-
__reactstandin__regenerateByEval(key, code) {
|
|
134840
|
-
// @ts-ignore
|
|
134841
|
-
this[key] = eval(code);
|
|
134842
|
-
}
|
|
134843
|
-
|
|
134844
134568
|
}
|
|
134845
134569
|
class RoundExpression extends ConstExpression {
|
|
134846
134570
|
constructor(expression, fractionalDigits) {
|
|
@@ -134988,7 +134712,6 @@ class SetStatement extends FLangStatement {
|
|
|
134988
134712
|
reactHotLoader.register(BoolLiteralExpression, "BoolLiteralExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
134989
134713
|
reactHotLoader.register(AbsExpression, "AbsExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
134990
134714
|
reactHotLoader.register(LenExpression, "LenExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
134991
|
-
reactHotLoader.register(FractionalLenExpression, "FractionalLenExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
134992
134715
|
reactHotLoader.register(RoundExpression, "RoundExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
134993
134716
|
reactHotLoader.register(IntegerLiteralExpression, "IntegerLiteralExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
134994
134717
|
reactHotLoader.register(NullLiteralExpression, "NullLiteralExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ServerSideFLangNormalization\\FLang\\FLangCodeDom.ts");
|
|
@@ -135058,7 +134781,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
135058
134781
|
|
|
135059
134782
|
|
|
135060
134783
|
class NormalizationRulesGenerator {
|
|
135061
|
-
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, conditions, typesRegistry, useSchemaValidations, controlCustomizationContext
|
|
134784
|
+
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, conditions, typesRegistry, useSchemaValidations, controlCustomizationContext) {
|
|
135062
134785
|
this.sugarRoot = void 0;
|
|
135063
134786
|
this.dataDeclarationHelper = void 0;
|
|
135064
134787
|
this.formSchemaRng = void 0;
|
|
@@ -135067,8 +134790,6 @@ class NormalizationRulesGenerator {
|
|
|
135067
134790
|
this.typesRegistry = void 0;
|
|
135068
134791
|
this.controlCustomizationContext = void 0;
|
|
135069
134792
|
this.useSchemaValidations = void 0;
|
|
135070
|
-
this.lazyLoadingDeclaration = void 0;
|
|
135071
|
-
this.lazyLoadingDeclaration = lazyLoadingDeclaration;
|
|
135072
134793
|
this.sugarRoot = sugarRoot;
|
|
135073
134794
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
135074
134795
|
this.formSchemaRng = formSchemaRng;
|
|
@@ -135125,20 +134846,7 @@ class NormalizationRulesGenerator {
|
|
|
135125
134846
|
}
|
|
135126
134847
|
|
|
135127
134848
|
buildInitializeRules(formRoot, resourcesHash) {
|
|
135128
|
-
|
|
135129
|
-
const thresholdEntry = Object.entries(this.lazyLoadingDeclaration).find(x => x[1].thresholdValue != undefined);
|
|
135130
|
-
|
|
135131
|
-
if (thresholdEntry != undefined) {
|
|
135132
|
-
var _thresholdEntry$1$thr, _thresholdEntry$;
|
|
135133
|
-
|
|
135134
|
-
const thresholdEntryPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(`/${thresholdEntry[0]}`, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
135135
|
-
const thresholdValue = (_thresholdEntry$1$thr = (_thresholdEntry$ = thresholdEntry[1]) === null || _thresholdEntry$ === void 0 ? void 0 : _thresholdEntry$.thresholdValue) !== null && _thresholdEntry$1$thr !== void 0 ? _thresholdEntry$1$thr : 0;
|
|
135136
|
-
const lazyLoadingEnabledRef = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.AbsoluteModelPath.createAbsolute(formRoot).joinWith("LazyLoadingEnabled"), "value");
|
|
135137
|
-
const statement = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(lazyLoadingEnabledRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.GeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ReduceCallExpression(thresholdEntryPath.trimLastStarIfLastToken().toCurrentIteration(), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.decimal, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.decimal)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(1))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(thresholdValue)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("true"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("false")));
|
|
135138
|
-
return mandatoryRules.concat([statement]);
|
|
135139
|
-
}
|
|
135140
|
-
|
|
135141
|
-
return mandatoryRules;
|
|
134849
|
+
return [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.AbsoluteModelPath.createAbsolute(formRoot), "resourcesHash"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression(resourcesHash)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.AbsoluteModelPath.createAbsolute(formRoot), "normalizationSource"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("server"))];
|
|
135142
134850
|
}
|
|
135143
134851
|
|
|
135144
134852
|
buildSugarFLangRules() {
|
|
@@ -135419,69 +135127,43 @@ class NormalizationRulesGenerator {
|
|
|
135419
135127
|
yield rule;
|
|
135420
135128
|
}
|
|
135421
135129
|
|
|
135422
|
-
|
|
135423
|
-
yield* this.buildErrorWarningCountRules(targetPaths, "error");
|
|
135424
|
-
yield* this.buildErrorWarningCountRules(targetPaths, "warning");
|
|
135425
|
-
}
|
|
135426
|
-
|
|
135427
|
-
*splitModelPathIfErrorCountRequired(modelPath) {
|
|
135428
|
-
const tokens = modelPath.getPathPartsAsArray();
|
|
135429
|
-
|
|
135430
|
-
for (let i = 0; i < tokens.length; i++) {
|
|
135431
|
-
const currentModelPath = new _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath(tokens.slice(0, i), modelPath.isAbsolute());
|
|
135432
|
-
|
|
135433
|
-
if (tokens[i] === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each || this.dataDeclarationHelper.isErrorsAndWarningsCountRequired(currentModelPath)) {
|
|
135434
|
-
yield currentModelPath;
|
|
135435
|
-
}
|
|
135436
|
-
}
|
|
135130
|
+
yield* this.buildErrorCountRule(context.getAllPathsWithValidations());
|
|
135437
135131
|
}
|
|
135438
135132
|
|
|
135439
|
-
*
|
|
135440
|
-
const countFieldName = `${fieldName}sCount`;
|
|
135133
|
+
*buildErrorCountRule(allPathsWithValidations) {
|
|
135441
135134
|
const zeroExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0);
|
|
135442
135135
|
const totalErrorCountExpressions = new _Common_ModelPath_ModelPathMap__WEBPACK_IMPORTED_MODULE_10__.ModelPathMap(_Common_ModelPath_EachCurrentCollision__WEBPACK_IMPORTED_MODULE_5__.EachCurrentCollision.AreDifferent);
|
|
135443
135136
|
const errorCountByTarget = new _Common_ModelPath_ModelPathMap__WEBPACK_IMPORTED_MODULE_10__.ModelPathMap(_Common_ModelPath_EachCurrentCollision__WEBPACK_IMPORTED_MODULE_5__.EachCurrentCollision.AreDifferent);
|
|
135444
135137
|
|
|
135445
135138
|
for (const path of allPathsWithValidations) {
|
|
135446
|
-
var _IterUtils$last;
|
|
135447
|
-
|
|
135448
|
-
const iterationSequence = [...(0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)([...this.splitModelPathIfErrorCountRequired(path)])];
|
|
135449
|
-
let resultCountExpression = this.getErrorWarningCountExpression(path.toCurrentIteration(), fieldName);
|
|
135139
|
+
var _IterUtils$last$itera, _IterUtils$last;
|
|
135450
135140
|
|
|
135451
|
-
|
|
135452
|
-
|
|
135453
|
-
const multipleTarget = iterationPath.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
135454
|
-
errorCountByTarget.getOrSet(multipleTarget, []).push(resultCountExpression);
|
|
135455
|
-
resultCountExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(multipleTarget.toCurrentIteration(), countFieldName), "decimal", new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0));
|
|
135456
|
-
}
|
|
135141
|
+
const iterationSequence = [...(0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)((0,_Common_ModelPath_BuildIterationSequence__WEBPACK_IMPORTED_MODULE_11__.buildIterationSequence)(path))];
|
|
135142
|
+
let resultCountExpression = this.getErrorCountExpression(path.toCurrentIteration());
|
|
135457
135143
|
|
|
135458
|
-
|
|
135459
|
-
|
|
135144
|
+
for (const iterationEntry of iterationSequence) {
|
|
135145
|
+
errorCountByTarget.getOrSet(iterationEntry.iterable, []).push(resultCountExpression);
|
|
135146
|
+
resultCountExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(iterationEntry.iterable.toCurrentIteration(), "errorsCount"), "decimal", new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0));
|
|
135460
135147
|
}
|
|
135461
135148
|
|
|
135462
|
-
totalErrorCountExpressions.set((_IterUtils$last = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.last(iterationSequence)) !== null && _IterUtils$last !== void 0 ? _IterUtils$last : path, resultCountExpression);
|
|
135149
|
+
totalErrorCountExpressions.set((_IterUtils$last$itera = (_IterUtils$last = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.last(iterationSequence)) === null || _IterUtils$last === void 0 ? void 0 : _IterUtils$last.iterable) !== null && _IterUtils$last$itera !== void 0 ? _IterUtils$last$itera : path, resultCountExpression);
|
|
135463
135150
|
}
|
|
135464
135151
|
|
|
135465
135152
|
for (const entry of errorCountByTarget.entries()) {
|
|
135466
135153
|
const iterable = entry[0];
|
|
135467
|
-
const items =
|
|
135154
|
+
const items = entry[1];
|
|
135468
135155
|
const firstEmptyExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression();
|
|
135469
135156
|
const allItemsSumExpression = items.reduce((x, y) => x == firstEmptyExpression ? y : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(x, y), firstEmptyExpression);
|
|
135470
|
-
const nextErrorCountPrecalculation = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(iterable,
|
|
135471
|
-
|
|
135472
|
-
if (_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.last(iterable.getPathParts()) === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each || !this.dataDeclarationHelper.isNodeHasChildrenEntry(iterable)) {
|
|
135473
|
-
yield new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(nextErrorCountPrecalculation, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(allItemsSumExpression, "string", new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("G29")));
|
|
135474
|
-
} else {
|
|
135475
|
-
yield new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(nextErrorCountPrecalculation, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ReduceCallExpression(iterable.toCurrentIteration(), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.decimal, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.decimal)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentReferenceExpression("result"), allItemsSumExpression)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0)), "string", new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("G29")));
|
|
135476
|
-
}
|
|
135157
|
+
const nextErrorCountPrecalculation = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(iterable, "errorsCount");
|
|
135158
|
+
yield new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(nextErrorCountPrecalculation, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ReduceCallExpression(iterable.toCurrentIteration(), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.decimal, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.decimal)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentReferenceExpression("result"), allItemsSumExpression)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0)), "string", new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("G29")));
|
|
135477
135159
|
}
|
|
135478
135160
|
|
|
135479
135161
|
const allRules = Iterator.from(totalErrorCountExpressions.values()).reduce((result, expression) => result === zeroExpression ? expression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(result, expression), zeroExpression);
|
|
135480
|
-
yield new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.AbsoluteModelPath.createAbsolute((0,_markupGenerator_getRootPath__WEBPACK_IMPORTED_MODULE_4__.getRootPath)(this.sugarRoot)),
|
|
135162
|
+
yield new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.AbsoluteModelPath.createAbsolute((0,_markupGenerator_getRootPath__WEBPACK_IMPORTED_MODULE_4__.getRootPath)(this.sugarRoot)), "errorsCount"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(allRules, "string", new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("G29")));
|
|
135481
135163
|
}
|
|
135482
135164
|
|
|
135483
|
-
|
|
135484
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(path,
|
|
135165
|
+
getErrorCountExpression(path) {
|
|
135166
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(path, "error"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression(`[]`)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(path, "error"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression())), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(1));
|
|
135485
135167
|
}
|
|
135486
135168
|
|
|
135487
135169
|
// @ts-ignore
|
|
@@ -143846,7 +143528,7 @@ class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
143846
143528
|
type: "Expression",
|
|
143847
143529
|
expression: validationGenerator.generateValidationsFactory()
|
|
143848
143530
|
});
|
|
143849
|
-
const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationGenerator((_findSugarNodeBases$2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.editor)[0]) !== null && _findSugarNodeBases$2 !== void 0 ? _findSugarNodeBases$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory(_common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__.FetchFunctions.empty()), context.controlCustomizationContext, context.typesRegistry
|
|
143531
|
+
const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationGenerator((_findSugarNodeBases$2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.editor)[0]) !== null && _findSugarNodeBases$2 !== void 0 ? _findSugarNodeBases$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory(_common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__.FetchFunctions.empty()), context.controlCustomizationContext, context.typesRegistry);
|
|
143850
143532
|
userPicklistDeclarationBuilder.prop(x => x.editorDataDeclaration).set({
|
|
143851
143533
|
type: "Expression",
|
|
143852
143534
|
expression: dataDeclarationGenerator.generateDataDeclarationFactory()
|
|
@@ -158936,14 +158618,6 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
158936
158618
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
158937
158619
|
}
|
|
158938
158620
|
|
|
158939
|
-
doBuildNormalizeRules(builder) {
|
|
158940
|
-
const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
|
|
158941
|
-
return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
|
|
158942
|
-
optional: node.dataBinding.optional,
|
|
158943
|
-
disabled: false
|
|
158944
|
-
})];
|
|
158945
|
-
}
|
|
158946
|
-
|
|
158947
158621
|
getDefaultValue(node) {
|
|
158948
158622
|
var _node$dataBinding$def;
|
|
158949
158623
|
|
|
@@ -158964,6 +158638,14 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
158964
158638
|
return defaultValue;
|
|
158965
158639
|
}
|
|
158966
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
|
+
|
|
158967
158649
|
buildChildrenDataDeclaration(context) {
|
|
158968
158650
|
const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
|
|
158969
158651
|
return context.processChildrenDataDeclaration(node.children);
|