@kontur.candy/generator 4.239.0-extended-errorlog.5 → 4.239.0-nightly.67f29
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 +1098 -203
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -122026,6 +122026,394 @@ class CompositionOperandContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPO
|
|
|
122026
122026
|
|
|
122027
122027
|
/***/ }),
|
|
122028
122028
|
|
|
122029
|
+
/***/ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts":
|
|
122030
|
+
/*!*****************************************************************!*\
|
|
122031
|
+
!*** ./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts ***!
|
|
122032
|
+
\*****************************************************************/
|
|
122033
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
122034
|
+
|
|
122035
|
+
"use strict";
|
|
122036
|
+
__webpack_require__.r(__webpack_exports__);
|
|
122037
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122038
|
+
/* harmony export */ "traverseKCLangExpression": () => (/* binding */ traverseKCLangExpression),
|
|
122039
|
+
/* harmony export */ "DefaultKCLangExpressionVisitor": () => (/* binding */ DefaultKCLangExpressionVisitor)
|
|
122040
|
+
/* harmony export */ });
|
|
122041
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
122042
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
122043
|
+
(function () {
|
|
122044
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
122045
|
+
enterModule && enterModule(module);
|
|
122046
|
+
})();
|
|
122047
|
+
|
|
122048
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
122049
|
+
return a;
|
|
122050
|
+
};
|
|
122051
|
+
|
|
122052
|
+
|
|
122053
|
+
// tslint:disable-next-line:cyclomatic-complexity
|
|
122054
|
+
function traverseKCLangExpression(node, visitor) {
|
|
122055
|
+
switch (node.type) {
|
|
122056
|
+
case "cast":
|
|
122057
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122058
|
+
visitor.visitCastExpressionKCLangNode(node);
|
|
122059
|
+
break;
|
|
122060
|
+
|
|
122061
|
+
case "oneof":
|
|
122062
|
+
traverseKCLangExpression(node.testExpression, visitor);
|
|
122063
|
+
visitor.visitOneOfExpressionKCLangNode(node);
|
|
122064
|
+
break;
|
|
122065
|
+
|
|
122066
|
+
case "abs":
|
|
122067
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122068
|
+
visitor.visitAbsKCLangNode(node);
|
|
122069
|
+
break;
|
|
122070
|
+
|
|
122071
|
+
case "xabs":
|
|
122072
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122073
|
+
visitor.visitXAbsKCLangNode(node);
|
|
122074
|
+
break;
|
|
122075
|
+
|
|
122076
|
+
case "exists":
|
|
122077
|
+
visitor.visitExistsKCLangNode(node);
|
|
122078
|
+
break;
|
|
122079
|
+
|
|
122080
|
+
case "length":
|
|
122081
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122082
|
+
visitor.visitLengthKCLangNode(node);
|
|
122083
|
+
break;
|
|
122084
|
+
|
|
122085
|
+
case "and":
|
|
122086
|
+
for (const expression of node.expressions) {
|
|
122087
|
+
traverseKCLangExpression(expression, visitor);
|
|
122088
|
+
}
|
|
122089
|
+
|
|
122090
|
+
visitor.visitAndKCLangNode(node);
|
|
122091
|
+
break;
|
|
122092
|
+
|
|
122093
|
+
case "sum":
|
|
122094
|
+
visitor.visitSumKCLangNode(node);
|
|
122095
|
+
break;
|
|
122096
|
+
|
|
122097
|
+
case "gt":
|
|
122098
|
+
case "ge":
|
|
122099
|
+
case "lt":
|
|
122100
|
+
case "le":
|
|
122101
|
+
case "eq":
|
|
122102
|
+
case "noteq":
|
|
122103
|
+
for (const expression of node.expressions) {
|
|
122104
|
+
traverseKCLangExpression(expression, visitor);
|
|
122105
|
+
}
|
|
122106
|
+
|
|
122107
|
+
visitor.visitComparisonKCLangNode(node);
|
|
122108
|
+
break;
|
|
122109
|
+
|
|
122110
|
+
case "division":
|
|
122111
|
+
case "multiply":
|
|
122112
|
+
for (const expression of node.expressions) {
|
|
122113
|
+
traverseKCLangExpression(expression, visitor);
|
|
122114
|
+
}
|
|
122115
|
+
|
|
122116
|
+
visitor.visitMultiplyKCLangNode(node);
|
|
122117
|
+
break;
|
|
122118
|
+
|
|
122119
|
+
case "minus":
|
|
122120
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122121
|
+
visitor.visitMinusKCLangNode(node);
|
|
122122
|
+
break;
|
|
122123
|
+
|
|
122124
|
+
case "not":
|
|
122125
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122126
|
+
visitor.visitNotKCLangNode(node);
|
|
122127
|
+
break;
|
|
122128
|
+
|
|
122129
|
+
case "round":
|
|
122130
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122131
|
+
visitor.visitRoundKCLangNode(node);
|
|
122132
|
+
break;
|
|
122133
|
+
|
|
122134
|
+
case "choose":
|
|
122135
|
+
traverseKCLangExpression(node.if, visitor);
|
|
122136
|
+
traverseKCLangExpression(node.else, visitor);
|
|
122137
|
+
traverseKCLangExpression(node.then, visitor);
|
|
122138
|
+
visitor.visitChooseKCLangNode(node);
|
|
122139
|
+
break;
|
|
122140
|
+
|
|
122141
|
+
case "const":
|
|
122142
|
+
visitor.visitConstKCLangNode(node);
|
|
122143
|
+
break;
|
|
122144
|
+
|
|
122145
|
+
case "argument":
|
|
122146
|
+
visitor.visitArgumentKCLangNode(node);
|
|
122147
|
+
break;
|
|
122148
|
+
|
|
122149
|
+
case "or":
|
|
122150
|
+
for (const expression of node.expressions) {
|
|
122151
|
+
traverseKCLangExpression(expression, visitor);
|
|
122152
|
+
}
|
|
122153
|
+
|
|
122154
|
+
visitor.visitOrKCLangNode(node);
|
|
122155
|
+
break;
|
|
122156
|
+
|
|
122157
|
+
case "multySum":
|
|
122158
|
+
visitor.visitMultySumKCLangNode(node);
|
|
122159
|
+
break;
|
|
122160
|
+
|
|
122161
|
+
case "substring":
|
|
122162
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122163
|
+
visitor.visitSubstringKCLangNode(node);
|
|
122164
|
+
break;
|
|
122165
|
+
|
|
122166
|
+
case "regexMatch":
|
|
122167
|
+
traverseKCLangExpression(node.expression, visitor);
|
|
122168
|
+
visitor.visitRegexMatchKCLangNode(node);
|
|
122169
|
+
break;
|
|
122170
|
+
|
|
122171
|
+
default:
|
|
122172
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
122173
|
+
break;
|
|
122174
|
+
}
|
|
122175
|
+
}
|
|
122176
|
+
class DefaultKCLangExpressionVisitor {
|
|
122177
|
+
visitAbsKCLangNode(node) {// default empty implementation
|
|
122178
|
+
}
|
|
122179
|
+
|
|
122180
|
+
visitAndKCLangNode(node) {// default empty implementation
|
|
122181
|
+
}
|
|
122182
|
+
|
|
122183
|
+
visitArgumentKCLangNode(node) {// default empty implementation
|
|
122184
|
+
}
|
|
122185
|
+
|
|
122186
|
+
visitCastExpressionKCLangNode(node) {// default empty implementation
|
|
122187
|
+
}
|
|
122188
|
+
|
|
122189
|
+
visitChooseKCLangNode(node) {// default empty implementation
|
|
122190
|
+
}
|
|
122191
|
+
|
|
122192
|
+
visitComparisonKCLangNode(node) {// default empty implementation
|
|
122193
|
+
}
|
|
122194
|
+
|
|
122195
|
+
visitConstKCLangNode(node) {// default empty implementation
|
|
122196
|
+
}
|
|
122197
|
+
|
|
122198
|
+
visitExistsKCLangNode(node) {// default empty implementation
|
|
122199
|
+
}
|
|
122200
|
+
|
|
122201
|
+
visitLengthKCLangNode(node) {// default empty implementation
|
|
122202
|
+
}
|
|
122203
|
+
|
|
122204
|
+
visitMinusKCLangNode(node) {// default empty implementation
|
|
122205
|
+
}
|
|
122206
|
+
|
|
122207
|
+
visitMultiplyKCLangNode(node) {// default empty implementation
|
|
122208
|
+
}
|
|
122209
|
+
|
|
122210
|
+
visitMultySumKCLangNode(node) {// default empty implementation
|
|
122211
|
+
}
|
|
122212
|
+
|
|
122213
|
+
visitNotKCLangNode(node) {// default empty implementation
|
|
122214
|
+
}
|
|
122215
|
+
|
|
122216
|
+
visitOneOfExpressionKCLangNode(node) {// default empty implementation
|
|
122217
|
+
}
|
|
122218
|
+
|
|
122219
|
+
visitOrKCLangNode(node) {// default empty implementation
|
|
122220
|
+
}
|
|
122221
|
+
|
|
122222
|
+
visitRegexMatchKCLangNode(node) {// default empty implementation
|
|
122223
|
+
}
|
|
122224
|
+
|
|
122225
|
+
visitRoundKCLangNode(node) {// default empty implementation
|
|
122226
|
+
}
|
|
122227
|
+
|
|
122228
|
+
visitSubstringKCLangNode(node) {// default empty implementation
|
|
122229
|
+
}
|
|
122230
|
+
|
|
122231
|
+
visitSumKCLangNode(node) {// default empty implementation
|
|
122232
|
+
}
|
|
122233
|
+
|
|
122234
|
+
visitXAbsKCLangNode(node) {// default empty implementation
|
|
122235
|
+
}
|
|
122236
|
+
|
|
122237
|
+
// @ts-ignore
|
|
122238
|
+
__reactstandin__regenerateByEval(key, code) {
|
|
122239
|
+
// @ts-ignore
|
|
122240
|
+
this[key] = eval(code);
|
|
122241
|
+
}
|
|
122242
|
+
|
|
122243
|
+
}
|
|
122244
|
+
;
|
|
122245
|
+
|
|
122246
|
+
(function () {
|
|
122247
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
122248
|
+
|
|
122249
|
+
if (!reactHotLoader) {
|
|
122250
|
+
return;
|
|
122251
|
+
}
|
|
122252
|
+
|
|
122253
|
+
reactHotLoader.register(traverseKCLangExpression, "traverseKCLangExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\IKCLangExpressionVisitor.ts");
|
|
122254
|
+
reactHotLoader.register(DefaultKCLangExpressionVisitor, "DefaultKCLangExpressionVisitor", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\IKCLangExpressionVisitor.ts");
|
|
122255
|
+
})();
|
|
122256
|
+
|
|
122257
|
+
;
|
|
122258
|
+
|
|
122259
|
+
(function () {
|
|
122260
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
122261
|
+
leaveModule && leaveModule(module);
|
|
122262
|
+
})();
|
|
122263
|
+
|
|
122264
|
+
/***/ }),
|
|
122265
|
+
|
|
122266
|
+
/***/ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts":
|
|
122267
|
+
/*!*****************************************************************!*\
|
|
122268
|
+
!*** ./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts ***!
|
|
122269
|
+
\*****************************************************************/
|
|
122270
|
+
/***/ ((module) => {
|
|
122271
|
+
|
|
122272
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
122273
|
+
return a;
|
|
122274
|
+
};
|
|
122275
|
+
|
|
122276
|
+
// this file was prevaled
|
|
122277
|
+
|
|
122278
|
+
/* eslint-disable */
|
|
122279
|
+
// @ts-ignore
|
|
122280
|
+
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})()";
|
|
122281
|
+
|
|
122282
|
+
/***/ }),
|
|
122283
|
+
|
|
122284
|
+
/***/ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts":
|
|
122285
|
+
/*!****************************************************************!*\
|
|
122286
|
+
!*** ./Generator/src/common/KCLang/KCLangDescriptionParser.ts ***!
|
|
122287
|
+
\****************************************************************/
|
|
122288
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
122289
|
+
|
|
122290
|
+
"use strict";
|
|
122291
|
+
__webpack_require__.r(__webpack_exports__);
|
|
122292
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122293
|
+
/* harmony export */ "KCLangDescriptionParser": () => (/* binding */ KCLangDescriptionParser)
|
|
122294
|
+
/* harmony export */ });
|
|
122295
|
+
/* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KCLangDescriptionGrammar */ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts");
|
|
122296
|
+
/* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__);
|
|
122297
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
122298
|
+
(function () {
|
|
122299
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
122300
|
+
enterModule && enterModule(module);
|
|
122301
|
+
})();
|
|
122302
|
+
|
|
122303
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
122304
|
+
return a;
|
|
122305
|
+
};
|
|
122306
|
+
|
|
122307
|
+
// @ts-ignore
|
|
122308
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
122309
|
+
|
|
122310
|
+
const evalParse = eval((_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default())).parse;
|
|
122311
|
+
class KCLangDescriptionParser {
|
|
122312
|
+
static getOrCreateParser() {
|
|
122313
|
+
return evalParse;
|
|
122314
|
+
}
|
|
122315
|
+
|
|
122316
|
+
static parse(code) {
|
|
122317
|
+
const parser = this.getOrCreateParser();
|
|
122318
|
+
return parser(code);
|
|
122319
|
+
}
|
|
122320
|
+
|
|
122321
|
+
}
|
|
122322
|
+
;
|
|
122323
|
+
|
|
122324
|
+
(function () {
|
|
122325
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
122326
|
+
|
|
122327
|
+
if (!reactHotLoader) {
|
|
122328
|
+
return;
|
|
122329
|
+
}
|
|
122330
|
+
|
|
122331
|
+
reactHotLoader.register(evalParse, "evalParse", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangDescriptionParser.ts");
|
|
122332
|
+
reactHotLoader.register(KCLangDescriptionParser, "KCLangDescriptionParser", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangDescriptionParser.ts");
|
|
122333
|
+
})();
|
|
122334
|
+
|
|
122335
|
+
;
|
|
122336
|
+
|
|
122337
|
+
(function () {
|
|
122338
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
122339
|
+
leaveModule && leaveModule(module);
|
|
122340
|
+
})();
|
|
122341
|
+
|
|
122342
|
+
/***/ }),
|
|
122343
|
+
|
|
122344
|
+
/***/ "./Generator/src/common/KCLang/KCLangNodes.ts":
|
|
122345
|
+
/*!****************************************************!*\
|
|
122346
|
+
!*** ./Generator/src/common/KCLang/KCLangNodes.ts ***!
|
|
122347
|
+
\****************************************************/
|
|
122348
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
122349
|
+
|
|
122350
|
+
"use strict";
|
|
122351
|
+
__webpack_require__.r(__webpack_exports__);
|
|
122352
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122353
|
+
/* harmony export */ "isFormulaStatement": () => (/* binding */ isFormulaStatement),
|
|
122354
|
+
/* harmony export */ "isBlockStatement": () => (/* binding */ isBlockStatement),
|
|
122355
|
+
/* harmony export */ "isEnsureStatement": () => (/* binding */ isEnsureStatement),
|
|
122356
|
+
/* harmony export */ "isConditionalStatement": () => (/* binding */ isConditionalStatement),
|
|
122357
|
+
/* harmony export */ "isDescribeStatement": () => (/* binding */ isDescribeStatement),
|
|
122358
|
+
/* harmony export */ "andKCLangNode": () => (/* binding */ andKCLangNode)
|
|
122359
|
+
/* harmony export */ });
|
|
122360
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
122361
|
+
(function () {
|
|
122362
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
122363
|
+
enterModule && enterModule(module);
|
|
122364
|
+
})();
|
|
122365
|
+
|
|
122366
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
122367
|
+
return a;
|
|
122368
|
+
};
|
|
122369
|
+
|
|
122370
|
+
function isFormulaStatement(node) {
|
|
122371
|
+
return node.type === "formula";
|
|
122372
|
+
}
|
|
122373
|
+
function isBlockStatement(node) {
|
|
122374
|
+
return node.type === "block";
|
|
122375
|
+
}
|
|
122376
|
+
function isEnsureStatement(node) {
|
|
122377
|
+
return node.type === "ensure";
|
|
122378
|
+
}
|
|
122379
|
+
function isConditionalStatement(node) {
|
|
122380
|
+
return node.type === "if";
|
|
122381
|
+
}
|
|
122382
|
+
function isDescribeStatement(node) {
|
|
122383
|
+
return node.type === "describe";
|
|
122384
|
+
}
|
|
122385
|
+
function andKCLangNode(...expressions) {
|
|
122386
|
+
return {
|
|
122387
|
+
type: "and",
|
|
122388
|
+
expressions: expressions
|
|
122389
|
+
};
|
|
122390
|
+
}
|
|
122391
|
+
;
|
|
122392
|
+
|
|
122393
|
+
(function () {
|
|
122394
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
122395
|
+
|
|
122396
|
+
if (!reactHotLoader) {
|
|
122397
|
+
return;
|
|
122398
|
+
}
|
|
122399
|
+
|
|
122400
|
+
reactHotLoader.register(isFormulaStatement, "isFormulaStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
|
|
122401
|
+
reactHotLoader.register(isBlockStatement, "isBlockStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
|
|
122402
|
+
reactHotLoader.register(isEnsureStatement, "isEnsureStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
|
|
122403
|
+
reactHotLoader.register(isConditionalStatement, "isConditionalStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
|
|
122404
|
+
reactHotLoader.register(isDescribeStatement, "isDescribeStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
|
|
122405
|
+
reactHotLoader.register(andKCLangNode, "andKCLangNode", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangNodes.ts");
|
|
122406
|
+
})();
|
|
122407
|
+
|
|
122408
|
+
;
|
|
122409
|
+
|
|
122410
|
+
(function () {
|
|
122411
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
122412
|
+
leaveModule && leaveModule(module);
|
|
122413
|
+
})();
|
|
122414
|
+
|
|
122415
|
+
/***/ }),
|
|
122416
|
+
|
|
122029
122417
|
/***/ "./Generator/src/common/KCLang/KCLangToJsTranspiler.ts":
|
|
122030
122418
|
/*!*************************************************************!*\
|
|
122031
122419
|
!*** ./Generator/src/common/KCLang/KCLangToJsTranspiler.ts ***!
|
|
@@ -122354,6 +122742,421 @@ class KCLangToJsTranspiler {
|
|
|
122354
122742
|
|
|
122355
122743
|
/***/ }),
|
|
122356
122744
|
|
|
122745
|
+
/***/ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts":
|
|
122746
|
+
/*!**************************************************************!*\
|
|
122747
|
+
!*** ./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts ***!
|
|
122748
|
+
\**************************************************************/
|
|
122749
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
122750
|
+
|
|
122751
|
+
"use strict";
|
|
122752
|
+
__webpack_require__.r(__webpack_exports__);
|
|
122753
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122754
|
+
/* harmony export */ "KCLangToXmlTranspiler": () => (/* binding */ KCLangToXmlTranspiler),
|
|
122755
|
+
/* harmony export */ "kclang": () => (/* binding */ kclang)
|
|
122756
|
+
/* harmony export */ });
|
|
122757
|
+
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
122758
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
122759
|
+
/* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
|
|
122760
|
+
/* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
|
|
122761
|
+
/* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
|
|
122762
|
+
/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Utils */ "./Generator/src/common/KCLang/Utils.ts");
|
|
122763
|
+
/* harmony import */ var _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Antlr/KCLangAntlrParser */ "./Generator/src/common/KCLang/Antlr/KCLangAntlrParser.ts");
|
|
122764
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
122765
|
+
(function () {
|
|
122766
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
122767
|
+
enterModule && enterModule(module);
|
|
122768
|
+
})();
|
|
122769
|
+
|
|
122770
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
122771
|
+
return a;
|
|
122772
|
+
};
|
|
122773
|
+
|
|
122774
|
+
|
|
122775
|
+
|
|
122776
|
+
|
|
122777
|
+
|
|
122778
|
+
|
|
122779
|
+
|
|
122780
|
+
// tslint:disable-next-line:cyclomatic-complexity
|
|
122781
|
+
|
|
122782
|
+
function generateKCXmlExpression(expression) {
|
|
122783
|
+
switch (expression.type) {
|
|
122784
|
+
case "abs":
|
|
122785
|
+
case "xabs":
|
|
122786
|
+
case "length":
|
|
122787
|
+
return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
122788
|
+
|
|
122789
|
+
case "exists":
|
|
122790
|
+
case "multySum":
|
|
122791
|
+
return `<m:${expression.type} select="${expression.select}" />`;
|
|
122792
|
+
|
|
122793
|
+
case "cast":
|
|
122794
|
+
if (expression.expression.type === "argument") {
|
|
122795
|
+
return `<m:argument select="${expression.expression.select}" type="${expression.targetType}" />`;
|
|
122796
|
+
}
|
|
122797
|
+
|
|
122798
|
+
throw new Error("Cast supports only for argument");
|
|
122799
|
+
|
|
122800
|
+
case "and":
|
|
122801
|
+
case "or":
|
|
122802
|
+
return [`<m:${expression.type}>`, ...expression.expressions.map(generateKCXmlExpression).map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:${expression.type}>`].join("\n");
|
|
122803
|
+
|
|
122804
|
+
case "sum":
|
|
122805
|
+
return [`<m:sum>`, ...expression.operands.map(operand => {
|
|
122806
|
+
if (operand.operator === "+") {
|
|
122807
|
+
return generateKCXmlExpression(operand.expression);
|
|
122808
|
+
}
|
|
122809
|
+
|
|
122810
|
+
return [`<m:minus>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(operand.expression), 1), `</m:minus>`].join("\n");
|
|
122811
|
+
}).map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:sum>`].join("\n");
|
|
122812
|
+
|
|
122813
|
+
case "gt":
|
|
122814
|
+
case "ge":
|
|
122815
|
+
case "lt":
|
|
122816
|
+
case "le":
|
|
122817
|
+
case "eq":
|
|
122818
|
+
case "multiply":
|
|
122819
|
+
case "division":
|
|
122820
|
+
return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[0]), 1), (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[1]), 1), `</m:${expression.type}>`].join("\n");
|
|
122821
|
+
|
|
122822
|
+
case "noteq":
|
|
122823
|
+
return [`<m:not>`, ` <m:eq>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[0]), 2), (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expressions[1]), 2), ` </m:eq>`, `</m:not>`].join("\n");
|
|
122824
|
+
|
|
122825
|
+
case "minus":
|
|
122826
|
+
case "not":
|
|
122827
|
+
return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
122828
|
+
break;
|
|
122829
|
+
break;
|
|
122830
|
+
|
|
122831
|
+
case "round":
|
|
122832
|
+
return [expression.fractionalDigits != undefined ? `<m:round fractionalDigits="${expression.fractionalDigits}">` : `<m:round>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:round>`].join("\n");
|
|
122833
|
+
|
|
122834
|
+
case "substring":
|
|
122835
|
+
return [expression.length != undefined ? `<m:substring start="${expression.start}" length="${expression.length}">` : `<m:substring start="${expression.start}">`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:substring>`].join("\n");
|
|
122836
|
+
|
|
122837
|
+
case "regexMatch":
|
|
122838
|
+
return [`<m:regexMatch pattern="${expression.pattern}">`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:regexMatch>`].join("\n");
|
|
122839
|
+
|
|
122840
|
+
case "choose":
|
|
122841
|
+
return [`<m:choose>`, ` <m:if>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.if), 2), ` </m:if>`, ` <m:then>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.then), 2), ` </m:then>`, ` <m:else>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.else), 2), ` </m:else>`, `</m:choose>`].join("\n");
|
|
122842
|
+
break;
|
|
122843
|
+
|
|
122844
|
+
case "const":
|
|
122845
|
+
if (expression.value.type === "decimal") {
|
|
122846
|
+
return `<m:const value="${expression.value.value}" type="decimal" />`;
|
|
122847
|
+
}
|
|
122848
|
+
|
|
122849
|
+
if (expression.value.type === "string") {
|
|
122850
|
+
return `<m:const value="${expression.value.value}" type="string" />`;
|
|
122851
|
+
}
|
|
122852
|
+
|
|
122853
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.NotImplementedError();
|
|
122854
|
+
|
|
122855
|
+
case "argument":
|
|
122856
|
+
return `<m:argument select="${expression.select}" />`;
|
|
122857
|
+
|
|
122858
|
+
case "oneof":
|
|
122859
|
+
{
|
|
122860
|
+
const testExpr = generateKCXmlExpression(expression.testExpression);
|
|
122861
|
+
return [`<m:or>`, ...expression.expressions.items.map(x => [`<m:eq>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(testExpr, 1), (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(x), 1), `</m:eq>`]).flat().map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:or>`].join("\n");
|
|
122862
|
+
}
|
|
122863
|
+
|
|
122864
|
+
default:
|
|
122865
|
+
// @ts-ignore
|
|
122866
|
+
throw new Error(`Expression of type '${expression.type}' is not supported`);
|
|
122867
|
+
}
|
|
122868
|
+
}
|
|
122869
|
+
|
|
122870
|
+
function formatDescribeStatement(ast, matchPath, describe) {
|
|
122871
|
+
return _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_3__.KCLangDescriptionParser.parse(describe.text).map(item => {
|
|
122872
|
+
if (typeof item === "string") {
|
|
122873
|
+
return item;
|
|
122874
|
+
} else {
|
|
122875
|
+
return `{{link ref=${item.src}}}${item.text.join(" ")}{{/link}}`;
|
|
122876
|
+
}
|
|
122877
|
+
}).join(" ");
|
|
122878
|
+
}
|
|
122879
|
+
|
|
122880
|
+
function generateKCXmlFormula(ast, matchPath, describe) {
|
|
122881
|
+
const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
|
|
122882
|
+
return `<m:formula match="${matchPath}" target="${ast.target}"${descriptionAttr}>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 1) + "\n" + `</m:formula>`;
|
|
122883
|
+
}
|
|
122884
|
+
|
|
122885
|
+
function removeTrailingSlash(inputStr) {
|
|
122886
|
+
if (inputStr.endsWith("/")) {
|
|
122887
|
+
return inputStr.substring(0, inputStr.length - 1);
|
|
122888
|
+
}
|
|
122889
|
+
|
|
122890
|
+
return inputStr;
|
|
122891
|
+
}
|
|
122892
|
+
|
|
122893
|
+
function joinPaths(paths) {
|
|
122894
|
+
return paths.map(removeTrailingSlash).join("/");
|
|
122895
|
+
}
|
|
122896
|
+
|
|
122897
|
+
function generateBlockKCXmlFormulas(block, parents) {
|
|
122898
|
+
const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path), block.path]);
|
|
122899
|
+
const result = [];
|
|
122900
|
+
let lastDescribeStatement;
|
|
122901
|
+
|
|
122902
|
+
for (const statement of block.statements) {
|
|
122903
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isFormulaStatement)(statement)) {
|
|
122904
|
+
result.push(generateKCXmlFormula(statement, matchPath, lastDescribeStatement));
|
|
122905
|
+
lastDescribeStatement = undefined;
|
|
122906
|
+
}
|
|
122907
|
+
|
|
122908
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(statement)) {
|
|
122909
|
+
lastDescribeStatement = undefined;
|
|
122910
|
+
}
|
|
122911
|
+
|
|
122912
|
+
if (lastDescribeStatement != undefined) {
|
|
122913
|
+
throw new Error("Describe should be placed before assign of ensure statements");
|
|
122914
|
+
}
|
|
122915
|
+
|
|
122916
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(statement)) {
|
|
122917
|
+
lastDescribeStatement = statement;
|
|
122918
|
+
}
|
|
122919
|
+
|
|
122920
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(statement)) {
|
|
122921
|
+
result.push(generateBlockKCXmlFormulas(statement, [...(parents !== null && parents !== void 0 ? parents : []), block]));
|
|
122922
|
+
}
|
|
122923
|
+
}
|
|
122924
|
+
|
|
122925
|
+
return result.join("\n");
|
|
122926
|
+
}
|
|
122927
|
+
|
|
122928
|
+
function guessConditionTarget(condition) {
|
|
122929
|
+
let result;
|
|
122930
|
+
|
|
122931
|
+
class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__.DefaultKCLangExpressionVisitor {
|
|
122932
|
+
visitExistsKCLangNode(node) {
|
|
122933
|
+
if (result == undefined) {
|
|
122934
|
+
result = node.select;
|
|
122935
|
+
}
|
|
122936
|
+
}
|
|
122937
|
+
|
|
122938
|
+
visitArgumentKCLangNode(node) {
|
|
122939
|
+
if (result == undefined) {
|
|
122940
|
+
result = node.select;
|
|
122941
|
+
}
|
|
122942
|
+
}
|
|
122943
|
+
|
|
122944
|
+
// @ts-ignore
|
|
122945
|
+
__reactstandin__regenerateByEval(key, code) {
|
|
122946
|
+
// @ts-ignore
|
|
122947
|
+
this[key] = eval(code);
|
|
122948
|
+
}
|
|
122949
|
+
|
|
122950
|
+
}
|
|
122951
|
+
|
|
122952
|
+
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
122953
|
+
return result;
|
|
122954
|
+
}
|
|
122955
|
+
|
|
122956
|
+
function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
|
|
122957
|
+
const levelAttr = ast.level === "error" ? ` errorLevel="Error"` : "";
|
|
122958
|
+
const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
|
|
122959
|
+
const guessedTarget = guessConditionTarget(ast);
|
|
122960
|
+
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
122961
|
+
|
|
122962
|
+
if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
|
|
122963
|
+
var _parentConditions$map;
|
|
122964
|
+
|
|
122965
|
+
const condition = parentConditions.length === 1 ? parentConditions[0].condition : (0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.andKCLangNode)(...((_parentConditions$map = parentConditions === null || parentConditions === void 0 ? void 0 : parentConditions.map(z => z.condition)) !== null && _parentConditions$map !== void 0 ? _parentConditions$map : []));
|
|
122966
|
+
return `<m:condition match="${matchPath}"${descriptionAttr}${levelAttr}${targetAttr}>\n` + ` <m:when>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(condition), 2) + "\n" + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 2) + "\n" + ` </m:when>\n` + `</m:condition>`;
|
|
122967
|
+
}
|
|
122968
|
+
|
|
122969
|
+
return `<m:condition match="${matchPath}"${descriptionAttr}${levelAttr}${targetAttr}>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 1) + "\n" + `</m:condition>`;
|
|
122970
|
+
}
|
|
122971
|
+
|
|
122972
|
+
function generateBlockKCXmlConditions(block, parents, parentConditions) {
|
|
122973
|
+
const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path), block.path]);
|
|
122974
|
+
const result = [];
|
|
122975
|
+
let lastDescribeStatement;
|
|
122976
|
+
|
|
122977
|
+
for (const statement of block.statements) {
|
|
122978
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isFormulaStatement)(statement)) {
|
|
122979
|
+
lastDescribeStatement = undefined;
|
|
122980
|
+
}
|
|
122981
|
+
|
|
122982
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(statement)) {
|
|
122983
|
+
result.push(generateKCXmlCondition(statement, matchPath, parentConditions, lastDescribeStatement));
|
|
122984
|
+
lastDescribeStatement = undefined;
|
|
122985
|
+
}
|
|
122986
|
+
|
|
122987
|
+
if (lastDescribeStatement != undefined) {
|
|
122988
|
+
throw new Error("Describe should be placed before assign of ensure statements");
|
|
122989
|
+
}
|
|
122990
|
+
|
|
122991
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(statement)) {
|
|
122992
|
+
lastDescribeStatement = statement;
|
|
122993
|
+
}
|
|
122994
|
+
|
|
122995
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isConditionalStatement)(statement)) {
|
|
122996
|
+
result.push(generateConditionalConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
|
|
122997
|
+
}
|
|
122998
|
+
|
|
122999
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(statement)) {
|
|
123000
|
+
result.push(generateBlockKCXmlConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
|
|
123001
|
+
}
|
|
123002
|
+
}
|
|
123003
|
+
|
|
123004
|
+
return result.join("\n");
|
|
123005
|
+
}
|
|
123006
|
+
|
|
123007
|
+
function generateConditionalConditions(conditionalStatement, parents, parentConditions) {
|
|
123008
|
+
const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path)]);
|
|
123009
|
+
const result = [];
|
|
123010
|
+
let lastDescribeStatement;
|
|
123011
|
+
|
|
123012
|
+
for (const x of conditionalStatement.statements) {
|
|
123013
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(x)) {
|
|
123014
|
+
result.push(generateKCXmlCondition(x, matchPath, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement], lastDescribeStatement));
|
|
123015
|
+
lastDescribeStatement = undefined;
|
|
123016
|
+
}
|
|
123017
|
+
|
|
123018
|
+
if (lastDescribeStatement != undefined) {
|
|
123019
|
+
throw new Error("Describe should be placed before assign of ensure statements");
|
|
123020
|
+
}
|
|
123021
|
+
|
|
123022
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(x)) {
|
|
123023
|
+
lastDescribeStatement = x;
|
|
123024
|
+
}
|
|
123025
|
+
|
|
123026
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isConditionalStatement)(x)) {
|
|
123027
|
+
result.push(generateConditionalConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
|
|
123028
|
+
}
|
|
123029
|
+
|
|
123030
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(x)) {
|
|
123031
|
+
result.push(generateBlockKCXmlConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
|
|
123032
|
+
}
|
|
123033
|
+
}
|
|
123034
|
+
|
|
123035
|
+
return result.join("\n");
|
|
123036
|
+
}
|
|
123037
|
+
|
|
123038
|
+
function generateKCXmlFormulas(blocks) {
|
|
123039
|
+
const formulas = Iterator.from(blocks).map(generateBlockKCXmlFormulas).toArray();
|
|
123040
|
+
|
|
123041
|
+
if (formulas.filter(x => x !== "").length > 0) {
|
|
123042
|
+
return `<m:formulas>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(formulas.join("\n"), 1) + "\n" + `</m:formulas>\n`;
|
|
123043
|
+
} else {
|
|
123044
|
+
return "";
|
|
123045
|
+
}
|
|
123046
|
+
}
|
|
123047
|
+
|
|
123048
|
+
function generateKCXmlConditions(blocks) {
|
|
123049
|
+
const conditions = Iterator.from(blocks).map(generateBlockKCXmlConditions).toArray();
|
|
123050
|
+
|
|
123051
|
+
if (conditions.filter(x => x !== "").length > 0) {
|
|
123052
|
+
return `<m:conditions>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(conditions.join("\n"), 1) + "\n" + `</m:conditions>\n`;
|
|
123053
|
+
} else {
|
|
123054
|
+
return "";
|
|
123055
|
+
}
|
|
123056
|
+
}
|
|
123057
|
+
|
|
123058
|
+
function generateKCXml(blocks) {
|
|
123059
|
+
return `<?xml version="1.0" encoding="utf-8"?>\n` + `<m:math xmlns:m="http://www.kontur-extern.ru/ФНС 4.0/math.xsd">\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlFormulas(blocks), 1) + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlConditions(blocks), 1) + `</m:math>`;
|
|
123060
|
+
}
|
|
123061
|
+
|
|
123062
|
+
class KCLangToXmlTranspiler {
|
|
123063
|
+
static transpile(kcLang, customParser) {
|
|
123064
|
+
const parser = customParser !== null && customParser !== void 0 ? customParser : _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__.KCLangAntlrParser.parse;
|
|
123065
|
+
const kcxml = generateKCXml(parser(kcLang).blocks);
|
|
123066
|
+
return kcxml;
|
|
123067
|
+
}
|
|
123068
|
+
|
|
123069
|
+
}
|
|
123070
|
+
function kclang(str) {
|
|
123071
|
+
return KCLangToXmlTranspiler.transpile(str.join(""));
|
|
123072
|
+
}
|
|
123073
|
+
;
|
|
123074
|
+
|
|
123075
|
+
(function () {
|
|
123076
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
123077
|
+
|
|
123078
|
+
if (!reactHotLoader) {
|
|
123079
|
+
return;
|
|
123080
|
+
}
|
|
123081
|
+
|
|
123082
|
+
reactHotLoader.register(generateKCXmlExpression, "generateKCXmlExpression", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123083
|
+
reactHotLoader.register(formatDescribeStatement, "formatDescribeStatement", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123084
|
+
reactHotLoader.register(generateKCXmlFormula, "generateKCXmlFormula", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123085
|
+
reactHotLoader.register(removeTrailingSlash, "removeTrailingSlash", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123086
|
+
reactHotLoader.register(joinPaths, "joinPaths", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123087
|
+
reactHotLoader.register(generateBlockKCXmlFormulas, "generateBlockKCXmlFormulas", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123088
|
+
reactHotLoader.register(guessConditionTarget, "guessConditionTarget", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123089
|
+
reactHotLoader.register(generateKCXmlCondition, "generateKCXmlCondition", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123090
|
+
reactHotLoader.register(generateBlockKCXmlConditions, "generateBlockKCXmlConditions", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123091
|
+
reactHotLoader.register(generateConditionalConditions, "generateConditionalConditions", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123092
|
+
reactHotLoader.register(generateKCXmlFormulas, "generateKCXmlFormulas", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123093
|
+
reactHotLoader.register(generateKCXmlConditions, "generateKCXmlConditions", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123094
|
+
reactHotLoader.register(generateKCXml, "generateKCXml", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123095
|
+
reactHotLoader.register(KCLangToXmlTranspiler, "KCLangToXmlTranspiler", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123096
|
+
reactHotLoader.register(kclang, "kclang", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\KCLangToXmlTranspiler.ts");
|
|
123097
|
+
})();
|
|
123098
|
+
|
|
123099
|
+
;
|
|
123100
|
+
|
|
123101
|
+
(function () {
|
|
123102
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
123103
|
+
leaveModule && leaveModule(module);
|
|
123104
|
+
})();
|
|
123105
|
+
|
|
123106
|
+
/***/ }),
|
|
123107
|
+
|
|
123108
|
+
/***/ "./Generator/src/common/KCLang/Utils.ts":
|
|
123109
|
+
/*!**********************************************!*\
|
|
123110
|
+
!*** ./Generator/src/common/KCLang/Utils.ts ***!
|
|
123111
|
+
\**********************************************/
|
|
123112
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
123113
|
+
|
|
123114
|
+
"use strict";
|
|
123115
|
+
__webpack_require__.r(__webpack_exports__);
|
|
123116
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
123117
|
+
/* harmony export */ "indent": () => (/* binding */ indent)
|
|
123118
|
+
/* harmony export */ });
|
|
123119
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
123120
|
+
(function () {
|
|
123121
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
123122
|
+
enterModule && enterModule(module);
|
|
123123
|
+
})();
|
|
123124
|
+
|
|
123125
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
123126
|
+
return a;
|
|
123127
|
+
};
|
|
123128
|
+
|
|
123129
|
+
function indent(str, count) {
|
|
123130
|
+
const indentStr = new Array(count * 2).fill(" ").join("");
|
|
123131
|
+
return str.split("\n").map(x => {
|
|
123132
|
+
if (x === "") {
|
|
123133
|
+
return x;
|
|
123134
|
+
}
|
|
123135
|
+
|
|
123136
|
+
return indentStr + x;
|
|
123137
|
+
}).join("\n");
|
|
123138
|
+
}
|
|
123139
|
+
;
|
|
123140
|
+
|
|
123141
|
+
(function () {
|
|
123142
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
123143
|
+
|
|
123144
|
+
if (!reactHotLoader) {
|
|
123145
|
+
return;
|
|
123146
|
+
}
|
|
123147
|
+
|
|
123148
|
+
reactHotLoader.register(indent, "indent", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\common\\KCLang\\Utils.ts");
|
|
123149
|
+
})();
|
|
123150
|
+
|
|
123151
|
+
;
|
|
123152
|
+
|
|
123153
|
+
(function () {
|
|
123154
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
123155
|
+
leaveModule && leaveModule(module);
|
|
123156
|
+
})();
|
|
123157
|
+
|
|
123158
|
+
/***/ }),
|
|
123159
|
+
|
|
122357
123160
|
/***/ "./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts":
|
|
122358
123161
|
/*!*********************************************************************************!*\
|
|
122359
123162
|
!*** ./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts ***!
|
|
@@ -129402,8 +130205,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
129402
130205
|
|
|
129403
130206
|
|
|
129404
130207
|
class FormulasAutoCalculationsGenerator {
|
|
129405
|
-
generate(
|
|
129406
|
-
const formulas = formulaContainer.formulas == undefined || formulaContainer.formulas.items == undefined ? [] : formulaContainer.formulas.items;
|
|
130208
|
+
generate(formulas, schemaRng, dataDeclarationHelper) {
|
|
129407
130209
|
const formulaAutoCalculations = formulas.map(formula => this.buildFormulaAutoCalculation(formula, schemaRng, dataDeclarationHelper)).flat();
|
|
129408
130210
|
return this.mergeFormulaAutoCalculations(formulaAutoCalculations);
|
|
129409
130211
|
}
|
|
@@ -130413,7 +131215,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130413
131215
|
/* harmony export */ });
|
|
130414
131216
|
/* harmony import */ var _common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../common/XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
130415
131217
|
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
130416
|
-
/* harmony import */ var
|
|
131218
|
+
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
131219
|
+
/* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
130417
131220
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
130418
131221
|
(function () {
|
|
130419
131222
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -130427,31 +131230,68 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
130427
131230
|
|
|
130428
131231
|
|
|
130429
131232
|
|
|
131233
|
+
|
|
130430
131234
|
class FormulaReader {
|
|
130431
|
-
readFormulas(
|
|
131235
|
+
readFormulas(kcxmlSources, kclangSources) {
|
|
130432
131236
|
const serializer = this.createFormulaSerializer();
|
|
130433
|
-
const result =
|
|
131237
|
+
const result = [];
|
|
131238
|
+
|
|
131239
|
+
for (const kcxmlSource of kcxmlSources) {
|
|
131240
|
+
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
|
|
131241
|
+
|
|
131242
|
+
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
131243
|
+
var _rootNode$formulas$it, _rootNode$formulas;
|
|
131244
|
+
|
|
131245
|
+
result.push(...((_rootNode$formulas$it = (_rootNode$formulas = rootNode.formulas) === null || _rootNode$formulas === void 0 ? void 0 : _rootNode$formulas.items) !== null && _rootNode$formulas$it !== void 0 ? _rootNode$formulas$it : []));
|
|
131246
|
+
}
|
|
131247
|
+
}
|
|
131248
|
+
|
|
131249
|
+
for (const kclangSource of kclangSources) {
|
|
131250
|
+
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToXmlTranspiler.transpile(kclangSource)));
|
|
131251
|
+
|
|
131252
|
+
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
131253
|
+
var _rootNode$formulas$it2, _rootNode$formulas2;
|
|
130434
131254
|
|
|
130435
|
-
|
|
130436
|
-
|
|
131255
|
+
result.push(...((_rootNode$formulas$it2 = (_rootNode$formulas2 = rootNode.formulas) === null || _rootNode$formulas2 === void 0 ? void 0 : _rootNode$formulas2.items) !== null && _rootNode$formulas$it2 !== void 0 ? _rootNode$formulas$it2 : []));
|
|
131256
|
+
}
|
|
130437
131257
|
}
|
|
130438
131258
|
|
|
130439
131259
|
return result;
|
|
130440
131260
|
}
|
|
130441
131261
|
|
|
130442
|
-
|
|
130443
|
-
const
|
|
130444
|
-
|
|
130445
|
-
|
|
130446
|
-
|
|
131262
|
+
readConditions(kcxmlSources, kclangSources) {
|
|
131263
|
+
const serializer = this.createFormulaSerializer();
|
|
131264
|
+
const result = [];
|
|
131265
|
+
|
|
131266
|
+
for (const kcxmlSource of kcxmlSources) {
|
|
131267
|
+
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
|
|
131268
|
+
|
|
131269
|
+
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
131270
|
+
var _rootNode$conditions$, _rootNode$conditions;
|
|
131271
|
+
|
|
131272
|
+
result.push(...((_rootNode$conditions$ = (_rootNode$conditions = rootNode.conditions) === null || _rootNode$conditions === void 0 ? void 0 : _rootNode$conditions.items) !== null && _rootNode$conditions$ !== void 0 ? _rootNode$conditions$ : []));
|
|
131273
|
+
}
|
|
131274
|
+
}
|
|
131275
|
+
|
|
131276
|
+
for (const kclangSource of kclangSources) {
|
|
131277
|
+
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToXmlTranspiler.transpile(kclangSource)));
|
|
131278
|
+
|
|
131279
|
+
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
131280
|
+
var _rootNode$conditions$2, _rootNode$conditions2;
|
|
131281
|
+
|
|
131282
|
+
result.push(...((_rootNode$conditions$2 = (_rootNode$conditions2 = rootNode.conditions) === null || _rootNode$conditions2 === void 0 ? void 0 : _rootNode$conditions2.items) !== null && _rootNode$conditions$2 !== void 0 ? _rootNode$conditions$2 : []));
|
|
131283
|
+
}
|
|
131284
|
+
}
|
|
131285
|
+
|
|
131286
|
+
return result;
|
|
130447
131287
|
}
|
|
130448
131288
|
|
|
130449
131289
|
createFormulaSerializer() {
|
|
130450
131290
|
const result = new _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.SugarSerializer();
|
|
130451
|
-
result.registerNode(
|
|
130452
|
-
result.registerNode(
|
|
131291
|
+
result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_3__.DummyContent);
|
|
131292
|
+
result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer);
|
|
130453
131293
|
|
|
130454
|
-
for (const formulaExpression of
|
|
131294
|
+
for (const formulaExpression of _Formula__WEBPACK_IMPORTED_MODULE_3__.formulaExpressions) {
|
|
130455
131295
|
result.registerNode(formulaExpression);
|
|
130456
131296
|
}
|
|
130457
131297
|
|
|
@@ -132641,11 +133481,9 @@ class KCXmlValidationGenerator {
|
|
|
132641
133481
|
const conditionReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_2__.FormulaReader();
|
|
132642
133482
|
|
|
132643
133483
|
for (const file of importedKcXmlValidations) {
|
|
132644
|
-
const
|
|
132645
|
-
|
|
132646
|
-
for (const condition of (_math$conditions$item = math === null || math === void 0 ? void 0 : (_math$conditions = math.conditions) === null || _math$conditions === void 0 ? void 0 : _math$conditions.items) !== null && _math$conditions$item !== void 0 ? _math$conditions$item : []) {
|
|
132647
|
-
var _math$conditions$item, _math$conditions;
|
|
133484
|
+
const conditions = conditionReader.readConditions([file], []);
|
|
132648
133485
|
|
|
133486
|
+
for (const condition of conditions) {
|
|
132649
133487
|
compiledConditions.push(this.compileCondition(condition));
|
|
132650
133488
|
}
|
|
132651
133489
|
}
|
|
@@ -132865,7 +133703,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
132865
133703
|
const sugarAst = (0,_common_SugarXmlParser_SugarParser__WEBPACK_IMPORTED_MODULE_4__.parseSugar)(formSugarContent, additionalContent.preprocessor || {});
|
|
132866
133704
|
const serializer = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__.createDefaultSugarSerializer)();
|
|
132867
133705
|
const sugarRoot = (0,_markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__.strictCastNode)(serializer.deserializeFromSugarXmlNode(sugarAst), _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__.FormNode);
|
|
132868
|
-
const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent);
|
|
133706
|
+
const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent, additionalContent.kclangAutocaclulationsContent);
|
|
132869
133707
|
const schemaRng = (0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_5__.parseXml)(additionalContent.schemaRngContent);
|
|
132870
133708
|
const formSchemaRng = _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRng.createFromSchemaRng(additionalContent.schemaRngContent);
|
|
132871
133709
|
const typeRegistry = (0,_validationGenerator_TypesRegistry__WEBPACK_IMPORTED_MODULE_14__.buildTypesRegistry)(sugarRoot);
|
|
@@ -133018,19 +133856,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
133018
133856
|
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
|
133019
133857
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ "path");
|
|
133020
133858
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
|
133021
|
-
/* harmony import */ var
|
|
133022
|
-
/* harmony import */ var
|
|
133023
|
-
/* harmony import */ var
|
|
133024
|
-
/* harmony import */ var
|
|
133025
|
-
/* harmony import */ var
|
|
133026
|
-
/* harmony import */ var
|
|
133027
|
-
/* harmony import */ var
|
|
133028
|
-
/* harmony import */ var
|
|
133029
|
-
/* harmony import */ var
|
|
133030
|
-
/* harmony import */ var
|
|
133031
|
-
/* harmony import */ var
|
|
133032
|
-
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(recursive_readdir__WEBPACK_IMPORTED_MODULE_7__);
|
|
133033
|
-
/* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
|
|
133859
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
|
|
133860
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_2__);
|
|
133861
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/lib/index.js");
|
|
133862
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(fs_extra__WEBPACK_IMPORTED_MODULE_3__);
|
|
133863
|
+
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
|
|
133864
|
+
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_4__);
|
|
133865
|
+
/* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! md5-file */ "./node_modules/md5-file/index.js");
|
|
133866
|
+
/* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(md5_file__WEBPACK_IMPORTED_MODULE_5__);
|
|
133867
|
+
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recursive-readdir */ "./node_modules/recursive-readdir/index.js");
|
|
133868
|
+
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(recursive_readdir__WEBPACK_IMPORTED_MODULE_6__);
|
|
133869
|
+
/* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
|
|
133034
133870
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
133035
133871
|
(function () {
|
|
133036
133872
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -133049,10 +133885,6 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
133049
133885
|
|
|
133050
133886
|
|
|
133051
133887
|
|
|
133052
|
-
|
|
133053
|
-
const statAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.stat);
|
|
133054
|
-
const readFileAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.readFile);
|
|
133055
|
-
const readdirAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.readdir);
|
|
133056
133888
|
async function readFormSources(formSourcesPath, farmDirectory) {
|
|
133057
133889
|
var _JSON$parse$settings;
|
|
133058
133890
|
|
|
@@ -133064,9 +133896,9 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
133064
133896
|
|
|
133065
133897
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
133066
133898
|
// eslint-disable-next-line no-console
|
|
133067
|
-
console.warn(
|
|
133899
|
+
console.warn(chalk__WEBPACK_IMPORTED_MODULE_2___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
|
|
133068
133900
|
const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
|
|
133069
|
-
sugarReferences.fetchFunctionFiles = (await
|
|
133901
|
+
sugarReferences.fetchFunctionFiles = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
133070
133902
|
}
|
|
133071
133903
|
|
|
133072
133904
|
const result = {
|
|
@@ -133076,11 +133908,12 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
133076
133908
|
formSourcesPath: formSourcesPath,
|
|
133077
133909
|
formJsonSettings: (_JSON$parse$settings = JSON.parse(await readFileSource(formSourcesPath, "form.json", "{}"))["settings"]) !== null && _JSON$parse$settings !== void 0 ? _JSON$parse$settings : {},
|
|
133078
133910
|
additionalSettings: await readFileSource(formSourcesPath, "settings.json", "{}"),
|
|
133079
|
-
autocalcsContent: await
|
|
133911
|
+
autocalcsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.js$/),
|
|
133080
133912
|
helpersContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers")),
|
|
133081
133913
|
validationsContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations")),
|
|
133082
133914
|
schemaRngContent: await readSchemaRngFile(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"), formName),
|
|
133083
|
-
kcJsXmlContent:
|
|
133915
|
+
kcJsXmlContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.(KC|КС|КC|KС|КС\.candy\.js).xml$/),
|
|
133916
|
+
kclangAutocaclulationsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.kclang$/),
|
|
133084
133917
|
tourSteps: await readFileSource(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "tour"), "tour.js", "{}"),
|
|
133085
133918
|
hooksContent: await readHooksFile(formSourcesPath),
|
|
133086
133919
|
customControlsContent: await readCustomControlsFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls")),
|
|
@@ -133124,7 +133957,7 @@ function evalModule(moduleCode) {
|
|
|
133124
133957
|
|
|
133125
133958
|
async function isDirectoryExists(directoryPath) {
|
|
133126
133959
|
try {
|
|
133127
|
-
const dirStat = await
|
|
133960
|
+
const dirStat = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.stat)(directoryPath);
|
|
133128
133961
|
return dirStat.isDirectory();
|
|
133129
133962
|
} catch (ignoreError) {
|
|
133130
133963
|
return false;
|
|
@@ -133135,27 +133968,27 @@ async function readFiles(filePaths) {
|
|
|
133135
133968
|
const result = [];
|
|
133136
133969
|
|
|
133137
133970
|
for (const filePath of filePaths) {
|
|
133138
|
-
result.push(await
|
|
133971
|
+
result.push(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(filePath, "utf-8"));
|
|
133139
133972
|
}
|
|
133140
133973
|
|
|
133141
133974
|
return result;
|
|
133142
133975
|
}
|
|
133143
133976
|
|
|
133144
133977
|
async function extractReferences(formSugarDirectoryPath) {
|
|
133145
|
-
const indexContent = await
|
|
133146
|
-
return (0,
|
|
133978
|
+
const indexContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8");
|
|
133979
|
+
return (0,_common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__.extractSugarReferences)(indexContent, filePath => (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, filePath), "utf-8"));
|
|
133147
133980
|
}
|
|
133148
133981
|
|
|
133149
133982
|
async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
133150
|
-
if (!(await (0,
|
|
133983
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(directoryPath))) {
|
|
133151
133984
|
return [];
|
|
133152
133985
|
}
|
|
133153
133986
|
|
|
133154
|
-
const files = await
|
|
133987
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(directoryPath);
|
|
133155
133988
|
let filelist = _filelist || [];
|
|
133156
133989
|
|
|
133157
133990
|
for (const file of files) {
|
|
133158
|
-
if ((await
|
|
133991
|
+
if ((await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.stat)(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file))).isDirectory()) {
|
|
133159
133992
|
filelist = await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file), filelist);
|
|
133160
133993
|
} else {
|
|
133161
133994
|
filelist.push(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file));
|
|
@@ -133166,7 +133999,7 @@ async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
|
133166
133999
|
}
|
|
133167
134000
|
|
|
133168
134001
|
async function checkFileExists(filePath) {
|
|
133169
|
-
if (!(await (0,
|
|
134002
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(filePath))) {
|
|
133170
134003
|
return [];
|
|
133171
134004
|
}
|
|
133172
134005
|
|
|
@@ -133179,7 +134012,7 @@ async function getAllDependencies(formSourcesPath, farmDirectory) {
|
|
|
133179
134012
|
|
|
133180
134013
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
133181
134014
|
const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
|
|
133182
|
-
sugarReferences.fetchFunctionFiles = (await
|
|
134015
|
+
sugarReferences.fetchFunctionFiles = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
133183
134016
|
}
|
|
133184
134017
|
|
|
133185
134018
|
return [path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), ...sugarReferences.fetchFunctionFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...sugarReferences.sugarFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x + ".sugar.xml")), ...sugarReferences.resourceFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "settings.json"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "tour", "tour.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "localization")))];
|
|
@@ -133192,23 +134025,23 @@ function normalizeLineEndings(content) {
|
|
|
133192
134025
|
async function getAllDependenciesHash(formSourcesPath, farmDirectory) {
|
|
133193
134026
|
const allDeps = await getAllDependencies(formSourcesPath, farmDirectory);
|
|
133194
134027
|
const hashes = await Promise.all(allDeps.map(async depFilePath => {
|
|
133195
|
-
if ([".js", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
|
|
133196
|
-
let content = await
|
|
134028
|
+
if ([".js", ".kclang", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
|
|
134029
|
+
let content = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(depFilePath, "utf-8");
|
|
133197
134030
|
content = normalizeLineEndings(content);
|
|
133198
|
-
return
|
|
134031
|
+
return md5__WEBPACK_IMPORTED_MODULE_4___default()(content);
|
|
133199
134032
|
}
|
|
133200
134033
|
|
|
133201
|
-
return
|
|
134034
|
+
return md5_file__WEBPACK_IMPORTED_MODULE_5___default()(depFilePath);
|
|
133202
134035
|
}));
|
|
133203
|
-
return
|
|
134036
|
+
return md5__WEBPACK_IMPORTED_MODULE_4___default()(hashes.join(""));
|
|
133204
134037
|
}
|
|
133205
134038
|
async function readSugarFiles(formSugarDirectoryPath, references) {
|
|
133206
134039
|
const result = {
|
|
133207
|
-
"./index": await
|
|
134040
|
+
"./index": await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8")
|
|
133208
134041
|
};
|
|
133209
134042
|
|
|
133210
134043
|
for (const sugarPath of references.sugarFiles) {
|
|
133211
|
-
const sugarModuleContent = await
|
|
134044
|
+
const sugarModuleContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, sugarPath + ".sugar.xml"), "utf-8");
|
|
133212
134045
|
result[sugarPath] = sugarModuleContent;
|
|
133213
134046
|
}
|
|
133214
134047
|
|
|
@@ -133220,11 +134053,11 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
|
133220
134053
|
return {};
|
|
133221
134054
|
}
|
|
133222
134055
|
|
|
133223
|
-
const fileNames = await
|
|
134056
|
+
const fileNames = await recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default()(formSugarDirectoryPath);
|
|
133224
134057
|
const result = {};
|
|
133225
134058
|
|
|
133226
134059
|
for (const fileName of fileNames) {
|
|
133227
|
-
const sugarModuleContent = await
|
|
134060
|
+
const sugarModuleContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(fileName, "utf-8");
|
|
133228
134061
|
const relativeFileName = ("controls\\" + fileName.replace(formSugarDirectoryPath + "\\", "")).replace(/\\/g, "/");
|
|
133229
134062
|
result[relativeFileName] = sugarModuleContent;
|
|
133230
134063
|
}
|
|
@@ -133232,23 +134065,23 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
|
133232
134065
|
return result;
|
|
133233
134066
|
}
|
|
133234
134067
|
|
|
133235
|
-
async function
|
|
133236
|
-
|
|
133237
|
-
const files = await readdirAsync(formAutoCalcPath);
|
|
133238
|
-
const jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
133239
|
-
return Promise.all(jsFiles.map(filename => readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formAutoCalcPath, filename), "utf-8")));
|
|
133240
|
-
} catch (ignoreError) {
|
|
134068
|
+
async function readFilesFromDir(directoryPath, fileNameTest) {
|
|
134069
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(directoryPath))) {
|
|
133241
134070
|
return [];
|
|
133242
134071
|
}
|
|
134072
|
+
|
|
134073
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(directoryPath);
|
|
134074
|
+
const jsFiles = files.filter(filename => fileNameTest.test(filename));
|
|
134075
|
+
return Promise.all(jsFiles.map(filename => (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, filename), "utf-8")));
|
|
133243
134076
|
}
|
|
133244
134077
|
|
|
133245
134078
|
async function readImportedFiles(rootPath) {
|
|
133246
134079
|
try {
|
|
133247
134080
|
const result = {};
|
|
133248
|
-
const files = await
|
|
134081
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations"));
|
|
133249
134082
|
|
|
133250
134083
|
for (const fileName of files) {
|
|
133251
|
-
result["../validations/" + fileName] = await
|
|
134084
|
+
result["../validations/" + fileName] = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations", fileName), "utf-8");
|
|
133252
134085
|
}
|
|
133253
134086
|
|
|
133254
134087
|
return result;
|
|
@@ -133259,11 +134092,11 @@ async function readImportedFiles(rootPath) {
|
|
|
133259
134092
|
|
|
133260
134093
|
async function readJavaScriptFilesWithNames(formJavaScriptFilesPath) {
|
|
133261
134094
|
try {
|
|
133262
|
-
const files = await
|
|
134095
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(formJavaScriptFilesPath);
|
|
133263
134096
|
const jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
133264
134097
|
return Promise.all(jsFiles.map(async filename => ({
|
|
133265
134098
|
filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
|
|
133266
|
-
content: await
|
|
134099
|
+
content: await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8")
|
|
133267
134100
|
})));
|
|
133268
134101
|
} catch (ignoreError) {
|
|
133269
134102
|
return [];
|
|
@@ -133274,7 +134107,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
133274
134107
|
let jsFiles;
|
|
133275
134108
|
|
|
133276
134109
|
try {
|
|
133277
|
-
const files = await
|
|
134110
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(formJavaScriptFilesPath);
|
|
133278
134111
|
jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
133279
134112
|
const result = [];
|
|
133280
134113
|
|
|
@@ -133282,7 +134115,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
133282
134115
|
result.push({
|
|
133283
134116
|
filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
|
|
133284
134117
|
// tslint:disable-next-line no-unsafe-any
|
|
133285
|
-
content: evalModule(await
|
|
134118
|
+
content: evalModule(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8"))
|
|
133286
134119
|
});
|
|
133287
134120
|
}
|
|
133288
134121
|
|
|
@@ -133293,16 +134126,16 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
133293
134126
|
}
|
|
133294
134127
|
|
|
133295
134128
|
function readSchemaRngFile(formSchemasPath, gfv) {
|
|
133296
|
-
return
|
|
134129
|
+
return (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSchemasPath, `${gfv}.rng.xml`), "utf-8");
|
|
133297
134130
|
}
|
|
133298
134131
|
|
|
133299
134132
|
function readHooksFile(formDirectoryPath) {
|
|
133300
|
-
return
|
|
134133
|
+
return (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formDirectoryPath, "hooks.js"), "utf-8").catch(() => "");
|
|
133301
134134
|
}
|
|
133302
134135
|
|
|
133303
134136
|
async function readFileSource(filePath, filename, defaultValue) {
|
|
133304
134137
|
try {
|
|
133305
|
-
return await
|
|
134138
|
+
return await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(filePath, filename), "utf-8");
|
|
133306
134139
|
} catch (ingoreError) {
|
|
133307
134140
|
return defaultValue;
|
|
133308
134141
|
}
|
|
@@ -133317,9 +134150,6 @@ async function readFileSource(filePath, filename, defaultValue) {
|
|
|
133317
134150
|
return;
|
|
133318
134151
|
}
|
|
133319
134152
|
|
|
133320
|
-
reactHotLoader.register(statAsync, "statAsync", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133321
|
-
reactHotLoader.register(readFileAsync, "readFileAsync", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133322
|
-
reactHotLoader.register(readdirAsync, "readdirAsync", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133323
134153
|
reactHotLoader.register(readFormSources, "readFormSources", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133324
134154
|
reactHotLoader.register(evalModule, "evalModule", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133325
134155
|
reactHotLoader.register(isDirectoryExists, "isDirectoryExists", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
@@ -133332,7 +134162,7 @@ async function readFileSource(filePath, filename, defaultValue) {
|
|
|
133332
134162
|
reactHotLoader.register(getAllDependenciesHash, "getAllDependenciesHash", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133333
134163
|
reactHotLoader.register(readSugarFiles, "readSugarFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133334
134164
|
reactHotLoader.register(readCustomControlsFiles, "readCustomControlsFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133335
|
-
reactHotLoader.register(
|
|
134165
|
+
reactHotLoader.register(readFilesFromDir, "readFilesFromDir", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133336
134166
|
reactHotLoader.register(readImportedFiles, "readImportedFiles", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133337
134167
|
reactHotLoader.register(readJavaScriptFilesWithNames, "readJavaScriptFilesWithNames", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
133338
134168
|
reactHotLoader.register(connectJSFilesWithNames, "connectJSFilesWithNames", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\ReadFormSources.ts");
|
|
@@ -134154,18 +134984,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
134154
134984
|
|
|
134155
134985
|
|
|
134156
134986
|
class NormalizationRulesGenerator {
|
|
134157
|
-
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng,
|
|
134987
|
+
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typesRegistry, useSchemaValidations, controlCustomizationContext) {
|
|
134158
134988
|
this.sugarRoot = void 0;
|
|
134159
134989
|
this.dataDeclarationHelper = void 0;
|
|
134160
134990
|
this.formSchemaRng = void 0;
|
|
134161
|
-
this.
|
|
134991
|
+
this.formulas = void 0;
|
|
134162
134992
|
this.typesRegistry = void 0;
|
|
134163
134993
|
this.controlCustomizationContext = void 0;
|
|
134164
134994
|
this.useSchemaValidations = void 0;
|
|
134165
134995
|
this.sugarRoot = sugarRoot;
|
|
134166
134996
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
134167
134997
|
this.formSchemaRng = formSchemaRng;
|
|
134168
|
-
this.
|
|
134998
|
+
this.formulas = formulas;
|
|
134169
134999
|
this.typesRegistry = typesRegistry;
|
|
134170
135000
|
this.useSchemaValidations = useSchemaValidations;
|
|
134171
135001
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
@@ -134195,9 +135025,7 @@ class NormalizationRulesGenerator {
|
|
|
134195
135025
|
}
|
|
134196
135026
|
|
|
134197
135027
|
*buildFormulaFLangRules() {
|
|
134198
|
-
for (const formula of
|
|
134199
|
-
var _this$mathContainer$f, _this$mathContainer, _this$mathContainer$f2;
|
|
134200
|
-
|
|
135028
|
+
for (const formula of this.formulas) {
|
|
134201
135029
|
yield* this.buildFormulaFlashRule(formula);
|
|
134202
135030
|
}
|
|
134203
135031
|
}
|
|
@@ -149374,6 +150202,7 @@ class ColumnConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.S
|
|
|
149374
150202
|
multiLineFieldMarkupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
149375
150203
|
multiLineFieldMarkupBuilder.prop(x => x.pluralTitles).set((_getPluralTitles = (0,_Multilinefield_GetPluralTitles__WEBPACK_IMPORTED_MODULE_3__.getPluralTitles)(node.titles)) !== null && _getPluralTitles !== void 0 ? _getPluralTitles : ["%s запись", "%s записи", "%s записей"]);
|
|
149376
150204
|
multiLineFieldMarkupBuilder.prop(x => x.viewLength).set(3);
|
|
150205
|
+
multiLineFieldMarkupBuilder.prop(x => x.backgroundColor).set("#f3f3f3");
|
|
149377
150206
|
multiLineFieldMarkupBuilder.prop(x => x.hintOnAdd).set(node.hintOnAdd);
|
|
149378
150207
|
multiLineFieldMarkupBuilder.prop(x => x.disableButtons).set(node.disabled);
|
|
149379
150208
|
|
|
@@ -152084,14 +152913,12 @@ class MultilineFieldConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
|
|
|
152084
152913
|
}
|
|
152085
152914
|
|
|
152086
152915
|
doConvert(context) {
|
|
152087
|
-
var _node$backgroundColor;
|
|
152088
|
-
|
|
152089
152916
|
const node = this.getCurrentNodeAs(_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_3__.MultilineFieldNode);
|
|
152090
152917
|
this.ensurePathExists(node, node.path);
|
|
152091
152918
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("MultiLineField");
|
|
152092
152919
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
152093
152920
|
markupBuilder.prop(x => x.disableButtons).set(node.disableButtons);
|
|
152094
|
-
markupBuilder.prop(x => x.backgroundColor).set(
|
|
152921
|
+
markupBuilder.prop(x => x.backgroundColor).set(node.backgroundColor);
|
|
152095
152922
|
markupBuilder.prop(x => x.viewLength).set(node.viewLength);
|
|
152096
152923
|
markupBuilder.prop(x => x.hintOnAdd).set(node.hintOnAdd);
|
|
152097
152924
|
markupBuilder.prop(x => x.pluralTitles).set((0,_GetPluralTitles__WEBPACK_IMPORTED_MODULE_4__.getPluralTitles)(node.titles));
|
|
@@ -155705,13 +156532,10 @@ class TabsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
155705
156532
|
}
|
|
155706
156533
|
|
|
155707
156534
|
doBuildDataDeclaration(context) {
|
|
155708
|
-
|
|
155709
|
-
|
|
155710
|
-
if (node.optional) {
|
|
155711
|
-
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_3__.SugarAttributeReadError("Элемент tabs не может быть опциональным", node, "optional");
|
|
155712
|
-
}
|
|
156535
|
+
var _node$optional;
|
|
155713
156536
|
|
|
155714
|
-
|
|
156537
|
+
const node = this.getCurrentNodeAs(_TabsNode__WEBPACK_IMPORTED_MODULE_4__.TabsNode);
|
|
156538
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false)]]), context.addPathSectionDeclarationEntry(node));
|
|
155715
156539
|
}
|
|
155716
156540
|
|
|
155717
156541
|
buildChildrenDataDeclaration(context) {
|
|
@@ -157808,6 +158632,7 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
157808
158632
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
157809
158633
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("Checkbox");
|
|
157810
158634
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
158635
|
+
markupBuilder.prop(x => x.converterToModel).set(true);
|
|
157811
158636
|
markupBuilder.prop(x => x.checkedValue).set(node.checkedValue);
|
|
157812
158637
|
markupBuilder.prop(x => x.uncheckedValue).set(node.uncheckedValue);
|
|
157813
158638
|
markupBuilder.prop(x => x.otherValue).set(node.otherValue);
|
|
@@ -157896,7 +158721,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
157896
158721
|
|
|
157897
158722
|
|
|
157898
158723
|
|
|
157899
|
-
let CheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("checkbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Checkbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_5__.TooltipSettingsNode), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("otherValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(
|
|
158724
|
+
let CheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("checkbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Checkbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_5__.TooltipSettingsNode), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("otherValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class CheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
157900
158725
|
constructor(...args) {
|
|
157901
158726
|
super(...args);
|
|
157902
158727
|
|
|
@@ -160802,15 +161627,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
160802
161627
|
/* harmony export */ "InputConverter": () => (/* binding */ InputConverter)
|
|
160803
161628
|
/* harmony export */ });
|
|
160804
161629
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
160805
|
-
/* harmony import */ var
|
|
160806
|
-
/* harmony import */ var
|
|
160807
|
-
/* harmony import */ var
|
|
160808
|
-
/* harmony import */ var
|
|
160809
|
-
/* harmony import */ var
|
|
160810
|
-
/* harmony import */ var
|
|
160811
|
-
/* harmony import */ var
|
|
160812
|
-
/* harmony import */ var
|
|
160813
|
-
/* harmony import */ var _InputNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./InputNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputNode.ts");
|
|
161630
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
161631
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
161632
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
161633
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
161634
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
161635
|
+
/* harmony import */ var _InputLimitations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputLimitations */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputLimitations.ts");
|
|
161636
|
+
/* harmony import */ var _InputNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./InputNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputNode.ts");
|
|
161637
|
+
/* harmony import */ var _SetCurrencyProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SetCurrencyProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/SetCurrencyProps.ts");
|
|
160814
161638
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
160815
161639
|
(function () {
|
|
160816
161640
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -160830,19 +161654,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
160830
161654
|
|
|
160831
161655
|
|
|
160832
161656
|
|
|
160833
|
-
|
|
160834
|
-
class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.SugarNodeConverterBase {
|
|
161657
|
+
class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
160835
161658
|
static getAcceptNodeClass() {
|
|
160836
|
-
return
|
|
161659
|
+
return _InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode;
|
|
160837
161660
|
}
|
|
160838
161661
|
|
|
160839
161662
|
get nodePaths() {
|
|
160840
|
-
const node = this.getCurrentNodeAs(
|
|
160841
|
-
return [(0,
|
|
161663
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
161664
|
+
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
|
|
160842
161665
|
}
|
|
160843
161666
|
|
|
160844
161667
|
doBuildFLangValidations(buildContext) {
|
|
160845
|
-
const node = this.getCurrentNodeAs(
|
|
161668
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160846
161669
|
const targetPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.AbsoluteModelPath.createAbsoluteFromMask(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
160847
161670
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
160848
161671
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -160855,12 +161678,12 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
160855
161678
|
}
|
|
160856
161679
|
|
|
160857
161680
|
doBuildNodeValidations(validationGenerator) {
|
|
160858
|
-
const node = this.getCurrentNodeAs(
|
|
161681
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160859
161682
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
|
|
160860
161683
|
}
|
|
160861
161684
|
|
|
160862
161685
|
doBuildDataDeclaration(context) {
|
|
160863
|
-
const node = this.getCurrentNodeAs(
|
|
161686
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160864
161687
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
|
|
160865
161688
|
optional: node.dataBinding.optional,
|
|
160866
161689
|
disabled: node.disabled
|
|
@@ -160868,7 +161691,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
160868
161691
|
}
|
|
160869
161692
|
|
|
160870
161693
|
doBuildNormalizeRules(builder) {
|
|
160871
|
-
const node = this.getCurrentNodeAs(
|
|
161694
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160872
161695
|
return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
|
|
160873
161696
|
optional: node.dataBinding.optional,
|
|
160874
161697
|
disabled: node.disabled
|
|
@@ -160876,17 +161699,17 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
160876
161699
|
}
|
|
160877
161700
|
|
|
160878
161701
|
buildChildrenDataDeclaration(context) {
|
|
160879
|
-
const node = this.getCurrentNodeAs(
|
|
161702
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160880
161703
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
160881
161704
|
}
|
|
160882
161705
|
|
|
160883
161706
|
*doTraverseChildren() {
|
|
160884
|
-
const node = this.getCurrentNodeAs(
|
|
161707
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160885
161708
|
yield* node.helpNodes;
|
|
160886
161709
|
}
|
|
160887
161710
|
|
|
160888
161711
|
doConvert(context) {
|
|
160889
|
-
const node = this.getCurrentNodeAs(
|
|
161712
|
+
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
160890
161713
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
160891
161714
|
|
|
160892
161715
|
if (node.auto) {
|
|
@@ -160896,62 +161719,13 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
160896
161719
|
}
|
|
160897
161720
|
}
|
|
160898
161721
|
|
|
160899
|
-
setCurrencyProps(markupBuilder, context, node) {
|
|
160900
|
-
const typeNode = context.getTypeNode(node.validationInfo);
|
|
160901
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
160902
|
-
markupBuilder.prop(x => x.currency).set(node.currency);
|
|
160903
|
-
|
|
160904
|
-
if (node.currency) {
|
|
160905
|
-
var _typeNode$base;
|
|
160906
|
-
|
|
160907
|
-
const baseTypeName = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
160908
|
-
|
|
160909
|
-
if (baseTypeName === "decimal") {
|
|
160910
|
-
var _ref, _ref2, _ref3, _ref4, _typeNode$flattenType, _typeNode$flattenType2, _typeNode$flattenType3, _typeNode$flattenType4, _typeNode$flattenType5, _typeNode$flattenType6, _typeNode$flattenType7, _typeNode$flattenType8;
|
|
160911
|
-
|
|
160912
|
-
const maxLength = (_ref = (_ref2 = (_ref3 = (_ref4 = (_typeNode$flattenType = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType2 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.LengthTypeCheckNode))) === null || _typeNode$flattenType2 === void 0 ? void 0 : _typeNode$flattenType2.value) !== null && _typeNode$flattenType !== void 0 ? _typeNode$flattenType : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.length) !== null && _ref4 !== void 0 ? _ref4 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType3 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxlengthTypeCheckNode))) === null || _typeNode$flattenType3 === void 0 ? void 0 : _typeNode$flattenType3.value) !== null && _ref3 !== void 0 ? _ref3 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength) !== null && _ref2 !== void 0 ? _ref2 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType4 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.TotaldigitsTypeCheckNode))) === null || _typeNode$flattenType4 === void 0 ? void 0 : _typeNode$flattenType4.value) !== null && _ref !== void 0 ? _ref : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.totalDigits;
|
|
160913
|
-
const fractionDigits = (_typeNode$flattenType5 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType6 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.FractiondigitsTypeCheckNode))) === null || _typeNode$flattenType6 === void 0 ? void 0 : _typeNode$flattenType6.value) !== null && _typeNode$flattenType5 !== void 0 ? _typeNode$flattenType5 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.fractionDigits;
|
|
160914
|
-
const integerDigits = (_typeNode$flattenType7 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType8 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.IntegerdigitsTypeCheckNode))) === null || _typeNode$flattenType8 === void 0 ? void 0 : _typeNode$flattenType8.value) !== null && _typeNode$flattenType7 !== void 0 ? _typeNode$flattenType7 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.integerDigits;
|
|
160915
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
|
|
160916
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
160917
|
-
|
|
160918
|
-
if (maxLength != undefined && fractionDigits != undefined && integerDigits == undefined) {
|
|
160919
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(maxLength - fractionDigits);
|
|
160920
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
160921
|
-
} else if (maxLength != undefined && fractionDigits == undefined && integerDigits != undefined) {
|
|
160922
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
|
|
160923
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(maxLength - integerDigits);
|
|
160924
|
-
} else if (maxLength == undefined && fractionDigits != undefined && integerDigits != undefined) {
|
|
160925
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
|
|
160926
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
160927
|
-
} else if (maxLength == undefined && fractionDigits != undefined && integerDigits == undefined) {
|
|
160928
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(undefined);
|
|
160929
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
160930
|
-
} else if (maxLength == undefined && fractionDigits == undefined && integerDigits == undefined) {
|
|
160931
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(undefined);
|
|
160932
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(2);
|
|
160933
|
-
} else {
|
|
160934
|
-
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__.SugarAttributeReadError("Unable to use currency editor with decimal type with length, maxLength or totaldigits constraints", node, "currency");
|
|
160935
|
-
}
|
|
160936
|
-
} else if (baseTypeName === "integer") {
|
|
160937
|
-
var _ref5, _typeNode$flattenType9, _typeNode$flattenType10, _ref6, _typeNode$flattenType11, _typeNode$flattenType12, _ref7, _typeNode$flattenType13, _typeNode$flattenType14;
|
|
160938
|
-
|
|
160939
|
-
const maxLength = Math.max((_ref5 = (_typeNode$flattenType9 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType10 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.LengthTypeCheckNode))) === null || _typeNode$flattenType10 === void 0 ? void 0 : _typeNode$flattenType10.value) !== null && _typeNode$flattenType9 !== void 0 ? _typeNode$flattenType9 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.length) !== null && _ref5 !== void 0 ? _ref5 : -1, (_ref6 = (_typeNode$flattenType11 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType12 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxlengthTypeCheckNode))) === null || _typeNode$flattenType12 === void 0 ? void 0 : _typeNode$flattenType12.value) !== null && _typeNode$flattenType11 !== void 0 ? _typeNode$flattenType11 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength) !== null && _ref6 !== void 0 ? _ref6 : -1, (_ref7 = (_typeNode$flattenType13 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType14 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.TotaldigitsTypeCheckNode))) === null || _typeNode$flattenType14 === void 0 ? void 0 : _typeNode$flattenType14.value) !== null && _typeNode$flattenType13 !== void 0 ? _typeNode$flattenType13 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.totalDigits) !== null && _ref7 !== void 0 ? _ref7 : -1);
|
|
160940
|
-
markupBuilder.prop(x => x.currencyIntegerDigits).set(maxLength === -1 ? undefined : maxLength);
|
|
160941
|
-
markupBuilder.prop(x => x.currencyFractionDigits).set(0);
|
|
160942
|
-
} else if (baseTypeName != undefined) {
|
|
160943
|
-
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__.SugarAttributeReadError("Unable to use currency editor for non numberic types", node, "currency");
|
|
160944
|
-
}
|
|
160945
|
-
}
|
|
160946
|
-
}
|
|
160947
|
-
|
|
160948
161722
|
buildRegularInput(context, node) {
|
|
160949
|
-
var _typeNode$
|
|
161723
|
+
var _typeNode$base, _node$maskChar, _node$width;
|
|
160950
161724
|
|
|
160951
161725
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
160952
161726
|
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
160953
|
-
const typeBase = (_typeNode$
|
|
160954
|
-
const markupBuilder = (0,
|
|
161727
|
+
const typeBase = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
161728
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("Input");
|
|
160955
161729
|
|
|
160956
161730
|
if (node.visible != undefined) {
|
|
160957
161731
|
markupBuilder.prop(x => x.visible).set({
|
|
@@ -160960,12 +161734,12 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
160960
161734
|
});
|
|
160961
161735
|
}
|
|
160962
161736
|
|
|
160963
|
-
markupBuilder.prop(x => x.bindingPath).set((0,
|
|
161737
|
+
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
|
|
160964
161738
|
markupBuilder.prop(x => x.placeholder).set(node.placeholder);
|
|
160965
161739
|
markupBuilder.prop(x => x.disabled).set(node.disabled);
|
|
160966
161740
|
|
|
160967
161741
|
if (node.disabled2 != undefined) {
|
|
160968
|
-
markupBuilder.prop(x => x.disabled2).set((0,
|
|
161742
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
160969
161743
|
|
|
160970
161744
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
160971
161745
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
@@ -160977,10 +161751,10 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
160977
161751
|
markupBuilder.prop(x => x.maskChar).set(node.mask ? (_node$maskChar = node.maskChar) !== null && _node$maskChar !== void 0 ? _node$maskChar : "_" : undefined);
|
|
160978
161752
|
markupBuilder.prop(x => x.formatChars).set(node.formatChars);
|
|
160979
161753
|
markupBuilder.prop(x => x.width).set((_node$width = node.width) !== null && _node$width !== void 0 ? _node$width : "100%");
|
|
160980
|
-
|
|
161754
|
+
(0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_8__.setCurrencyProps)(markupBuilder, context, node);
|
|
160981
161755
|
markupBuilder.prop(x => x.useMaskExtender).set(node.useMaskExtender);
|
|
160982
|
-
(0,
|
|
160983
|
-
const inputLimitations = (0,
|
|
161756
|
+
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
161757
|
+
const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_6__.getInputLimitations)(typeNode, schemaTypeInfo);
|
|
160984
161758
|
|
|
160985
161759
|
if (inputLimitations !== null) {
|
|
160986
161760
|
markupBuilder.prop(x => x.inputLimit).set(inputLimitations);
|
|
@@ -161002,12 +161776,12 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
161002
161776
|
}
|
|
161003
161777
|
|
|
161004
161778
|
buildFxInput(context, node) {
|
|
161005
|
-
var _typeNode$
|
|
161779
|
+
var _typeNode$base2, _node$width2;
|
|
161006
161780
|
|
|
161007
161781
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
161008
161782
|
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
161009
|
-
const typeBase = (_typeNode$
|
|
161010
|
-
const markupBuilder = (0,
|
|
161783
|
+
const typeBase = (_typeNode$base2 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base2 !== void 0 ? _typeNode$base2 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
161784
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("FxInput");
|
|
161011
161785
|
|
|
161012
161786
|
if (node.visible != undefined) {
|
|
161013
161787
|
markupBuilder.prop(x => x.visible).set({
|
|
@@ -161016,15 +161790,15 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
161016
161790
|
});
|
|
161017
161791
|
}
|
|
161018
161792
|
|
|
161019
|
-
markupBuilder.prop(x => x.bindingPath).set((0,
|
|
161793
|
+
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
|
|
161020
161794
|
markupBuilder.prop(x => x.hint).set(this.getConverterResultFromAttributeWithMarkup(context, node.hint));
|
|
161021
161795
|
markupBuilder.prop(x => x.disabled).set(node.disabled);
|
|
161022
161796
|
markupBuilder.prop(x => x.disabledPure).set(node.deprecatedDisabledForRpn);
|
|
161023
161797
|
markupBuilder.prop(x => x.align).set(node.align);
|
|
161024
161798
|
markupBuilder.prop(x => x.width).set((_node$width2 = node.width) !== null && _node$width2 !== void 0 ? _node$width2 : "100%");
|
|
161025
|
-
|
|
161026
|
-
(0,
|
|
161027
|
-
const inputLimitations = (0,
|
|
161799
|
+
(0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_8__.setCurrencyProps)(markupBuilder, context, node);
|
|
161800
|
+
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
161801
|
+
const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_6__.getInputLimitations)(typeNode, schemaTypeInfo);
|
|
161028
161802
|
|
|
161029
161803
|
if (inputLimitations !== null) {
|
|
161030
161804
|
markupBuilder.prop(x => x.inputLimit).set(inputLimitations);
|
|
@@ -161057,7 +161831,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
161057
161831
|
markupBuilder.prop(x => x.prefix).set(this.getConverterResultFromAttributeWithMarkup(context, node.prefix));
|
|
161058
161832
|
|
|
161059
161833
|
if (node.disabled2 != undefined) {
|
|
161060
|
-
markupBuilder.prop(x => x.disabled2).set((0,
|
|
161834
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
161061
161835
|
|
|
161062
161836
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
161063
161837
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
@@ -161603,6 +162377,104 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
|
|
|
161603
162377
|
|
|
161604
162378
|
/***/ }),
|
|
161605
162379
|
|
|
162380
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/SetCurrencyProps.ts":
|
|
162381
|
+
/*!***********************************************************************************************************!*\
|
|
162382
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/SetCurrencyProps.ts ***!
|
|
162383
|
+
\***********************************************************************************************************/
|
|
162384
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
162385
|
+
|
|
162386
|
+
"use strict";
|
|
162387
|
+
__webpack_require__.r(__webpack_exports__);
|
|
162388
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
162389
|
+
/* harmony export */ "setCurrencyProps": () => (/* binding */ setCurrencyProps)
|
|
162390
|
+
/* harmony export */ });
|
|
162391
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
162392
|
+
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
162393
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
162394
|
+
(function () {
|
|
162395
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
162396
|
+
enterModule && enterModule(module);
|
|
162397
|
+
})();
|
|
162398
|
+
|
|
162399
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
162400
|
+
return a;
|
|
162401
|
+
};
|
|
162402
|
+
|
|
162403
|
+
|
|
162404
|
+
|
|
162405
|
+
function setCurrencyProps(markupBuilder, context, node) {
|
|
162406
|
+
const typeNode = context.getTypeNode(node.validationInfo);
|
|
162407
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
162408
|
+
markupBuilder.prop(x => x.currency).set(node.currency);
|
|
162409
|
+
|
|
162410
|
+
if (node.currency) {
|
|
162411
|
+
var _typeNode$base;
|
|
162412
|
+
|
|
162413
|
+
const baseTypeName = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
162414
|
+
|
|
162415
|
+
if (baseTypeName === "decimal") {
|
|
162416
|
+
var _typeNode$flattenType, _typeNode$flattenType2, _ref, _ref2, _ref3, _ref4, _typeNode$flattenType3, _typeNode$flattenType4, _typeNode$flattenType5, _typeNode$flattenType6, _typeNode$flattenType7, _typeNode$flattenType8, _typeNode$flattenType9, _typeNode$flattenType10;
|
|
162417
|
+
|
|
162418
|
+
const totalDigits = (_typeNode$flattenType = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType2 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.TotaldigitsTypeCheckNode))) === null || _typeNode$flattenType2 === void 0 ? void 0 : _typeNode$flattenType2.value) !== null && _typeNode$flattenType !== void 0 ? _typeNode$flattenType : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.totalDigits;
|
|
162419
|
+
const maxLength = (_ref = (_ref2 = (_ref3 = (_ref4 = (_typeNode$flattenType3 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType4 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.LengthTypeCheckNode))) === null || _typeNode$flattenType4 === void 0 ? void 0 : _typeNode$flattenType4.value) !== null && _typeNode$flattenType3 !== void 0 ? _typeNode$flattenType3 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.length) !== null && _ref4 !== void 0 ? _ref4 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType5 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.MaxlengthTypeCheckNode))) === null || _typeNode$flattenType5 === void 0 ? void 0 : _typeNode$flattenType5.value) !== null && _ref3 !== void 0 ? _ref3 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength) !== null && _ref2 !== void 0 ? _ref2 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType6 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.TotaldigitsTypeCheckNode))) === null || _typeNode$flattenType6 === void 0 ? void 0 : _typeNode$flattenType6.value) !== null && _ref !== void 0 ? _ref : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.totalDigits;
|
|
162420
|
+
const fractionDigits = (_typeNode$flattenType7 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType8 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.FractiondigitsTypeCheckNode))) === null || _typeNode$flattenType8 === void 0 ? void 0 : _typeNode$flattenType8.value) !== null && _typeNode$flattenType7 !== void 0 ? _typeNode$flattenType7 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.fractionDigits;
|
|
162421
|
+
const integerDigits = (_typeNode$flattenType9 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType10 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.IntegerdigitsTypeCheckNode))) === null || _typeNode$flattenType10 === void 0 ? void 0 : _typeNode$flattenType10.value) !== null && _typeNode$flattenType9 !== void 0 ? _typeNode$flattenType9 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.integerDigits;
|
|
162422
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
|
|
162423
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
162424
|
+
|
|
162425
|
+
if (maxLength != undefined && fractionDigits != undefined && integerDigits == undefined) {
|
|
162426
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(maxLength - fractionDigits);
|
|
162427
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
162428
|
+
} else if (maxLength != undefined && fractionDigits == undefined && integerDigits != undefined) {
|
|
162429
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
|
|
162430
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(maxLength - integerDigits);
|
|
162431
|
+
} else if (maxLength == undefined && fractionDigits != undefined && integerDigits != undefined) {
|
|
162432
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(integerDigits);
|
|
162433
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
162434
|
+
} else if (maxLength == undefined && fractionDigits != undefined && integerDigits == undefined) {
|
|
162435
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(undefined);
|
|
162436
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(fractionDigits);
|
|
162437
|
+
} else if (maxLength == undefined && fractionDigits == undefined && integerDigits == undefined) {
|
|
162438
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(undefined);
|
|
162439
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(2);
|
|
162440
|
+
} else if (totalDigits != undefined && fractionDigits == undefined && integerDigits == undefined) {
|
|
162441
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(totalDigits);
|
|
162442
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(0);
|
|
162443
|
+
} else {
|
|
162444
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__.SugarAttributeReadError("Unable to use currency editor with decimal type with length, maxLength or totaldigits constraints", node, "currency");
|
|
162445
|
+
}
|
|
162446
|
+
} else if (baseTypeName === "integer") {
|
|
162447
|
+
var _ref5, _typeNode$flattenType11, _typeNode$flattenType12, _ref6, _typeNode$flattenType13, _typeNode$flattenType14, _ref7, _typeNode$flattenType15, _typeNode$flattenType16;
|
|
162448
|
+
|
|
162449
|
+
const maxLength = Math.max((_ref5 = (_typeNode$flattenType11 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType12 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.LengthTypeCheckNode))) === null || _typeNode$flattenType12 === void 0 ? void 0 : _typeNode$flattenType12.value) !== null && _typeNode$flattenType11 !== void 0 ? _typeNode$flattenType11 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.length) !== null && _ref5 !== void 0 ? _ref5 : -1, (_ref6 = (_typeNode$flattenType13 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType14 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.MaxlengthTypeCheckNode))) === null || _typeNode$flattenType14 === void 0 ? void 0 : _typeNode$flattenType14.value) !== null && _typeNode$flattenType13 !== void 0 ? _typeNode$flattenType13 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength) !== null && _ref6 !== void 0 ? _ref6 : -1, (_ref7 = (_typeNode$flattenType15 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType16 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.TotaldigitsTypeCheckNode))) === null || _typeNode$flattenType16 === void 0 ? void 0 : _typeNode$flattenType16.value) !== null && _typeNode$flattenType15 !== void 0 ? _typeNode$flattenType15 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.totalDigits) !== null && _ref7 !== void 0 ? _ref7 : -1);
|
|
162450
|
+
markupBuilder.prop(x => x.currencyIntegerDigits).set(maxLength === -1 ? undefined : maxLength);
|
|
162451
|
+
markupBuilder.prop(x => x.currencyFractionDigits).set(0);
|
|
162452
|
+
} else if (baseTypeName != undefined) {
|
|
162453
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_1__.SugarAttributeReadError("Unable to use currency editor for non numberic types", node, "currency");
|
|
162454
|
+
}
|
|
162455
|
+
}
|
|
162456
|
+
}
|
|
162457
|
+
;
|
|
162458
|
+
|
|
162459
|
+
(function () {
|
|
162460
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
162461
|
+
|
|
162462
|
+
if (!reactHotLoader) {
|
|
162463
|
+
return;
|
|
162464
|
+
}
|
|
162465
|
+
|
|
162466
|
+
reactHotLoader.register(setCurrencyProps, "setCurrencyProps", "C:\\buildAgent\\work\\8df8f1edd755969c\\Generator\\src\\generators\\markupGenerator\\ElementProcessors\\ValueEditors\\Input\\SetCurrencyProps.ts");
|
|
162467
|
+
})();
|
|
162468
|
+
|
|
162469
|
+
;
|
|
162470
|
+
|
|
162471
|
+
(function () {
|
|
162472
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
162473
|
+
leaveModule && leaveModule(module);
|
|
162474
|
+
})();
|
|
162475
|
+
|
|
162476
|
+
/***/ }),
|
|
162477
|
+
|
|
161606
162478
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Kladr/KladrConverter.ts":
|
|
161607
162479
|
/*!*********************************************************************************************************!*\
|
|
161608
162480
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Kladr/KladrConverter.ts ***!
|
|
@@ -165155,7 +166027,7 @@ class LinetextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
165155
166027
|
}
|
|
165156
166028
|
|
|
165157
166029
|
doConvert(context) {
|
|
165158
|
-
var _node$align;
|
|
166030
|
+
var _node$align, _node$color;
|
|
165159
166031
|
|
|
165160
166032
|
const node = this.getCurrentNodeAs(_LineTextNode__WEBPACK_IMPORTED_MODULE_3__.LineTextNode);
|
|
165161
166033
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("Linetext");
|
|
@@ -165169,7 +166041,7 @@ class LinetextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
165169
166041
|
markupBuilder.prop(x => x.textAlign).set(node.textalign);
|
|
165170
166042
|
markupBuilder.prop(x => x.width).set(node.width);
|
|
165171
166043
|
markupBuilder.prop(x => x.verticalAlign).set((_node$align = node.align) !== null && _node$align !== void 0 ? _node$align : "baseline");
|
|
165172
|
-
markupBuilder.prop(x => x.color).set(node.color);
|
|
166044
|
+
markupBuilder.prop(x => x.color).set((_node$color = node.color) !== null && _node$color !== void 0 ? _node$color : "#404040");
|
|
165173
166045
|
markupBuilder.prop(x => x.hint).set(node.hint);
|
|
165174
166046
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
165175
166047
|
return markupBuilder.buildConverterResult();
|
|
@@ -165222,7 +166094,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
165222
166094
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
165223
166095
|
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
165224
166096
|
/* harmony import */ var _CommonNodeProperties_FontWeight__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../CommonNodeProperties/FontWeight */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/FontWeight.ts");
|
|
165225
|
-
/* harmony import */ var
|
|
166097
|
+
/* harmony import */ var _ValueEditors_Input_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../ValueEditors/Input/SetCurrencyProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/SetCurrencyProps.ts");
|
|
166098
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TextNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/TextNode.ts");
|
|
165226
166099
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
165227
166100
|
(function () {
|
|
165228
166101
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -165242,18 +166115,19 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
165242
166115
|
|
|
165243
166116
|
|
|
165244
166117
|
|
|
166118
|
+
|
|
165245
166119
|
class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
165246
166120
|
static getAcceptNodeClass() {
|
|
165247
|
-
return
|
|
166121
|
+
return _TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode;
|
|
165248
166122
|
}
|
|
165249
166123
|
|
|
165250
166124
|
doBuildNodeValidations(validationGenerator) {
|
|
165251
|
-
const node = this.getCurrentNodeAs(
|
|
166125
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165252
166126
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
|
|
165253
166127
|
}
|
|
165254
166128
|
|
|
165255
166129
|
doBuildNormalizeRules() {
|
|
165256
|
-
const node = this.getCurrentNodeAs(
|
|
166130
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165257
166131
|
const defaultValue = "";
|
|
165258
166132
|
const targetValueReference = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.ModelPath.createFromMask(this.getResolvedBindingPath(node), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each), "value");
|
|
165259
166133
|
const currentValueReference = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.ModelPath.createFromMask(this.getResolvedBindingPath(node), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.current), "value");
|
|
@@ -165271,7 +166145,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
165271
166145
|
}
|
|
165272
166146
|
|
|
165273
166147
|
doBuildDataDeclaration(context) {
|
|
165274
|
-
const node = this.getCurrentNodeAs(
|
|
166148
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165275
166149
|
|
|
165276
166150
|
if (!node.dataBinding.path) {
|
|
165277
166151
|
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
@@ -165285,18 +166159,18 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
165285
166159
|
}
|
|
165286
166160
|
|
|
165287
166161
|
buildChildrenDataDeclaration(context) {
|
|
165288
|
-
const node = this.getCurrentNodeAs(
|
|
166162
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165289
166163
|
return context.processChildrenDataDeclaration([...node.helpNodes, ...node.children]);
|
|
165290
166164
|
}
|
|
165291
166165
|
|
|
165292
166166
|
*doTraverseChildren() {
|
|
165293
|
-
const node = this.getCurrentNodeAs(
|
|
166167
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165294
166168
|
yield* node.helpNodes;
|
|
165295
166169
|
yield* node.children;
|
|
165296
166170
|
}
|
|
165297
166171
|
|
|
165298
166172
|
get nodePaths() {
|
|
165299
|
-
const node = this.getCurrentNodeAs(
|
|
166173
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165300
166174
|
let bindingPath;
|
|
165301
166175
|
|
|
165302
166176
|
if (node.path != undefined) {
|
|
@@ -165311,7 +166185,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
165311
166185
|
}
|
|
165312
166186
|
|
|
165313
166187
|
doConvert(context) {
|
|
165314
|
-
const node = this.getCurrentNodeAs(
|
|
166188
|
+
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_9__.TextNode);
|
|
165315
166189
|
|
|
165316
166190
|
if (node.path != undefined) {
|
|
165317
166191
|
return this.buildTextWithPathAttribute(context, node);
|
|
@@ -165348,7 +166222,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
165348
166222
|
}
|
|
165349
166223
|
|
|
165350
166224
|
buildTextWithoutBinding(context, node) {
|
|
165351
|
-
var _node$align;
|
|
166225
|
+
var _node$align, _node$color;
|
|
165352
166226
|
|
|
165353
166227
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Linetext");
|
|
165354
166228
|
markupBuilder.prop(x => x.fontSize).set(node.size);
|
|
@@ -165361,7 +166235,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
165361
166235
|
markupBuilder.prop(x => x.textAlign).set(node.textalign);
|
|
165362
166236
|
markupBuilder.prop(x => x.width).set(node.width);
|
|
165363
166237
|
markupBuilder.prop(x => x.verticalAlign).set((_node$align = node.align) !== null && _node$align !== void 0 ? _node$align : "baseline");
|
|
165364
|
-
markupBuilder.prop(x => x.color).set(node.color);
|
|
166238
|
+
markupBuilder.prop(x => x.color).set((_node$color = node.color) !== null && _node$color !== void 0 ? _node$color : "#404040");
|
|
165365
166239
|
markupBuilder.prop(x => x.hint).set(node.hint);
|
|
165366
166240
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
165367
166241
|
return markupBuilder.buildConverterResult();
|
|
@@ -165369,6 +166243,12 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
165369
166243
|
|
|
165370
166244
|
buildTextWithPathAttribute(context, node) {
|
|
165371
166245
|
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Text");
|
|
166246
|
+
(0,_ValueEditors_Input_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_8__.setCurrencyProps)(mb, context, node);
|
|
166247
|
+
|
|
166248
|
+
if (node.currency) {
|
|
166249
|
+
mb.prop(x => x.rouble).set(node.rouble);
|
|
166250
|
+
}
|
|
166251
|
+
|
|
165372
166252
|
mb.prop(x => x.showError).set(node.showError);
|
|
165373
166253
|
mb.prop(x => x.quotes).set(node.quotes);
|
|
165374
166254
|
mb.prop(x => x.hint).set(node.hint);
|
|
@@ -165441,7 +166321,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
165441
166321
|
/* harmony import */ var _Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Helpers/Help/HelpNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Help/HelpNode.ts");
|
|
165442
166322
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
165443
166323
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
165444
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39;
|
|
166324
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41;
|
|
165445
166325
|
|
|
165446
166326
|
(function () {
|
|
165447
166327
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -165465,7 +166345,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
165465
166345
|
|
|
165466
166346
|
|
|
165467
166347
|
|
|
165468
|
-
let TextNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("text", `Текст с возможностью взять значение из модели`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("editable", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("auto", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("offsetLeft", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("autoResize", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rows", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("textOverflow", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("description", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("font", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("gId", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.UntypedUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("showError", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Показывать ли ошибку, если она есть по соотв. binding path, вместо значения`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("field", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `**Внутренне поле** Нелепое поле генерируемое препроцессором для кладра`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Поле не редактируемое`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("requisite", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `(Проставляется c disabled="true" всегда!)\tэтот атрибут говорит о том, что поле должно каждый раз подтягиваться из реквизитов и поэтому нормализуется при каждом открытии черновика. Нужен, чтобы реквизиты подтягивались из реквизитов при каждом открытии формы и при загрузке ФУФа с пустым ИНН, а не только в первый раз.`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("line", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Режим отображения текста: блочный или текстовый. Если line="false", то текст будет отображаться в отдельной строке`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("quotes", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Поле состоящее из двух символов и соответвует кавычкам, в которые будет заключено значение. Например: \`quotes="<>"\``), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Маленький статичный черный хинт над значением.`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("valueName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Из какого ${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.viewModelFieldLink, "поля ViewModel")} брать значение. По умолчанию: \`value\``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("for", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("tooltipWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина тултипа с ошибкой`), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("color", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.color, "Цвет"), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginTop", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ сверху"), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ снизу"), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("textalign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("center", "justify", "left", "right", "start", "end"), "Выравнивание"), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Ширина блока"), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginLeft", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ слева"), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginRight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ справа"), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Ширина блока"), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("lineHeight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Высота строки"), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fetchfn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Указывается название функции, которая прокидывает реквизиты в форму"), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fontWeight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("bold", "normal", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700"), "Толщина текста"), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("baseline", "bottom", "middle", "sub", "super", "text-bottom", "text-top", "top"), "Выравнивание"), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Текст для отображения ${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.helpTooltipLink)}-а`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec(_class = (_class2 = class TextNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
166348
|
+
let TextNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("text", `Текст с возможностью взять значение из модели`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("editable", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("auto", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("offsetLeft", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("autoResize", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("rows", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("textOverflow", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("description", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("font", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("gId", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.UntypedUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("showError", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Показывать ли ошибку, если она есть по соотв. binding path, вместо значения`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("field", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `**Внутренне поле** Нелепое поле генерируемое препроцессором для кладра`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Поле не редактируемое`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("requisite", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `(Проставляется c disabled="true" всегда!)\tэтот атрибут говорит о том, что поле должно каждый раз подтягиваться из реквизитов и поэтому нормализуется при каждом открытии черновика. Нужен, чтобы реквизиты подтягивались из реквизитов при каждом открытии формы и при загрузке ФУФа с пустым ИНН, а не только в первый раз.`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("line", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Режим отображения текста: блочный или текстовый. Если line="false", то текст будет отображаться в отдельной строке`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("quotes", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Поле состоящее из двух символов и соответвует кавычкам, в которые будет заключено значение. Например: \`quotes="<>"\``), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Маленький статичный черный хинт над значением.`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("valueName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Из какого ${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.viewModelFieldLink, "поля ViewModel")} брать значение. По умолчанию: \`value\``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("for", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("tooltipWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина тултипа с ошибкой`), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("color", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.color, "Цвет"), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginTop", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ сверху"), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ снизу"), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("textalign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("center", "justify", "left", "right", "start", "end"), "Выравнивание"), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Ширина блока"), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginLeft", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ слева"), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("marginRight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Отступ справа"), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, "Ширина блока"), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("lineHeight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Высота строки"), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fetchfn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Указывается название функции, которая прокидывает реквизиты в форму"), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fontWeight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("bold", "normal", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700"), "Толщина текста"), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("baseline", "bottom", "middle", "sub", "super", "text-bottom", "text-top", "top"), "Выравнивание"), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Текст для отображения ${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.helpTooltipLink)}-а`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: со после запятой и пробелами между тысячами. Если значением не является числом -- будет показано неформатированное значение`), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rouble", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Отображать рядом с суммой знак рубля. Знак не будет показан если значение -- не число`), _dec(_class = (_class2 = class TextNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
165469
166349
|
constructor(...args) {
|
|
165470
166350
|
super(...args);
|
|
165471
166351
|
|
|
@@ -165546,6 +166426,10 @@ let TextNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4
|
|
|
165546
166426
|
_initializerDefineProperty(this, "help", _descriptor38, this);
|
|
165547
166427
|
|
|
165548
166428
|
_initializerDefineProperty(this, "helpNodes", _descriptor39, this);
|
|
166429
|
+
|
|
166430
|
+
_initializerDefineProperty(this, "currency", _descriptor40, this);
|
|
166431
|
+
|
|
166432
|
+
_initializerDefineProperty(this, "rouble", _descriptor41, this);
|
|
165549
166433
|
}
|
|
165550
166434
|
|
|
165551
166435
|
get path() {
|
|
@@ -165757,6 +166641,16 @@ let TextNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4
|
|
|
165757
166641
|
enumerable: true,
|
|
165758
166642
|
writable: true,
|
|
165759
166643
|
initializer: null
|
|
166644
|
+
}), _descriptor40 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec41], {
|
|
166645
|
+
configurable: true,
|
|
166646
|
+
enumerable: true,
|
|
166647
|
+
writable: true,
|
|
166648
|
+
initializer: null
|
|
166649
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class2.prototype, "rouble", [_dec42], {
|
|
166650
|
+
configurable: true,
|
|
166651
|
+
enumerable: true,
|
|
166652
|
+
writable: true,
|
|
166653
|
+
initializer: null
|
|
165760
166654
|
})), _class2)) || _class);
|
|
165761
166655
|
;
|
|
165762
166656
|
|
|
@@ -167838,10 +168732,10 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
167838
168732
|
|
|
167839
168733
|
|
|
167840
168734
|
class ChildrenNodesValueSource {
|
|
167841
|
-
constructor(
|
|
168735
|
+
constructor(onlyTagNames, nodeClasses) {
|
|
168736
|
+
this.onlyTagNames = void 0;
|
|
167842
168737
|
this.nodeClasses = void 0;
|
|
167843
|
-
this.
|
|
167844
|
-
this.acceptNode = acceptNode;
|
|
168738
|
+
this.onlyTagNames = onlyTagNames;
|
|
167845
168739
|
this.nodeClasses = nodeClasses;
|
|
167846
168740
|
}
|
|
167847
168741
|
|
|
@@ -167849,8 +168743,10 @@ class ChildrenNodesValueSource {
|
|
|
167849
168743
|
const result = [];
|
|
167850
168744
|
|
|
167851
168745
|
for (const childNode of xmlNode.getChildren().filter(x => !_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarSerializer.isAttributeValueNode(x, xmlNode))) {
|
|
167852
|
-
if (
|
|
167853
|
-
|
|
168746
|
+
if (this.onlyTagNames != undefined) {
|
|
168747
|
+
if (!this.onlyTagNames.includes(childNode.name)) {
|
|
168748
|
+
continue;
|
|
168749
|
+
}
|
|
167854
168750
|
}
|
|
167855
168751
|
|
|
167856
168752
|
tracer(childNode);
|
|
@@ -168649,10 +169545,9 @@ function attrMixinNode(description, docFilesLocation) {
|
|
|
168649
169545
|
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertiesContainerMetadata)(target, sugarNodeMetadata);
|
|
168650
169546
|
};
|
|
168651
169547
|
}
|
|
168652
|
-
function children(onlyTagName, nodeClasses = []
|
|
169548
|
+
function children(onlyTagName, nodeClasses = []) {
|
|
168653
169549
|
return (targetClass, propName) => {
|
|
168654
|
-
|
|
168655
|
-
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_19__.ChildrenNodesValueSource(onlyTagNames != undefined ? node => onlyTagNames.includes(node.name) && !skipNodeNames.includes(node.name) : node => !skipNodeNames.includes(node.name), nodeClasses)));
|
|
169550
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_19__.ChildrenNodesValueSource(onlyTagName == undefined || Array.isArray(onlyTagName) ? onlyTagName : [onlyTagName], nodeClasses)));
|
|
168656
169551
|
};
|
|
168657
169552
|
}
|
|
168658
169553
|
function singleChild(tagName, nodeClasses = []) {
|