@kontur.candy/generator 4.235.0-nightly.5e7dh → 4.235.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +453 -1172
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271824,7 +271824,7 @@ function convertToLegacyPath(path) {
|
|
|
271824
271824
|
return isModelPath(path) ? path.toLegacyPath() : path;
|
|
271825
271825
|
}
|
|
271826
271826
|
function convertToAbsolutModelPath(path) {
|
|
271827
|
-
return isModelPath(path) ? path :
|
|
271827
|
+
return isModelPath(path) ? path : ModelPath.createFromString(path, true);
|
|
271828
271828
|
}
|
|
271829
271829
|
class AbsoluteModelFieldPath {
|
|
271830
271830
|
constructor(path, fieldName) {
|
|
@@ -279913,293 +279913,6 @@ class CompositionOperandContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPO
|
|
|
279913
279913
|
|
|
279914
279914
|
/***/ }),
|
|
279915
279915
|
|
|
279916
|
-
/***/ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts":
|
|
279917
|
-
/*!*****************************************************************!*\
|
|
279918
|
-
!*** ./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts ***!
|
|
279919
|
-
\*****************************************************************/
|
|
279920
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
279921
|
-
|
|
279922
|
-
"use strict";
|
|
279923
|
-
__webpack_require__.r(__webpack_exports__);
|
|
279924
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
279925
|
-
/* harmony export */ "traverseKCLangExpression": () => (/* binding */ traverseKCLangExpression),
|
|
279926
|
-
/* harmony export */ "DefaultKCLangExpressionVisitor": () => (/* binding */ DefaultKCLangExpressionVisitor)
|
|
279927
|
-
/* harmony export */ });
|
|
279928
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
279929
|
-
|
|
279930
|
-
// tslint:disable-next-line:cyclomatic-complexity
|
|
279931
|
-
function traverseKCLangExpression(node, visitor) {
|
|
279932
|
-
switch (node.type) {
|
|
279933
|
-
case "cast":
|
|
279934
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
279935
|
-
visitor.visitCastExpressionKCLangNode(node);
|
|
279936
|
-
break;
|
|
279937
|
-
|
|
279938
|
-
case "oneof":
|
|
279939
|
-
traverseKCLangExpression(node.testExpression, visitor);
|
|
279940
|
-
visitor.visitOneOfExpressionKCLangNode(node);
|
|
279941
|
-
break;
|
|
279942
|
-
|
|
279943
|
-
case "abs":
|
|
279944
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
279945
|
-
visitor.visitAbsKCLangNode(node);
|
|
279946
|
-
break;
|
|
279947
|
-
|
|
279948
|
-
case "xabs":
|
|
279949
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
279950
|
-
visitor.visitXAbsKCLangNode(node);
|
|
279951
|
-
break;
|
|
279952
|
-
|
|
279953
|
-
case "exists":
|
|
279954
|
-
visitor.visitExistsKCLangNode(node);
|
|
279955
|
-
break;
|
|
279956
|
-
|
|
279957
|
-
case "length":
|
|
279958
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
279959
|
-
visitor.visitLengthKCLangNode(node);
|
|
279960
|
-
break;
|
|
279961
|
-
|
|
279962
|
-
case "and":
|
|
279963
|
-
for (const expression of node.expressions) {
|
|
279964
|
-
traverseKCLangExpression(expression, visitor);
|
|
279965
|
-
}
|
|
279966
|
-
|
|
279967
|
-
visitor.visitAndKCLangNode(node);
|
|
279968
|
-
break;
|
|
279969
|
-
|
|
279970
|
-
case "sum":
|
|
279971
|
-
visitor.visitSumKCLangNode(node);
|
|
279972
|
-
break;
|
|
279973
|
-
|
|
279974
|
-
case "gt":
|
|
279975
|
-
case "ge":
|
|
279976
|
-
case "lt":
|
|
279977
|
-
case "le":
|
|
279978
|
-
case "eq":
|
|
279979
|
-
case "noteq":
|
|
279980
|
-
for (const expression of node.expressions) {
|
|
279981
|
-
traverseKCLangExpression(expression, visitor);
|
|
279982
|
-
}
|
|
279983
|
-
|
|
279984
|
-
visitor.visitComparisonKCLangNode(node);
|
|
279985
|
-
break;
|
|
279986
|
-
|
|
279987
|
-
case "division":
|
|
279988
|
-
case "multiply":
|
|
279989
|
-
for (const expression of node.expressions) {
|
|
279990
|
-
traverseKCLangExpression(expression, visitor);
|
|
279991
|
-
}
|
|
279992
|
-
|
|
279993
|
-
visitor.visitMultiplyKCLangNode(node);
|
|
279994
|
-
break;
|
|
279995
|
-
|
|
279996
|
-
case "minus":
|
|
279997
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
279998
|
-
visitor.visitMinusKCLangNode(node);
|
|
279999
|
-
break;
|
|
280000
|
-
|
|
280001
|
-
case "not":
|
|
280002
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
280003
|
-
visitor.visitNotKCLangNode(node);
|
|
280004
|
-
break;
|
|
280005
|
-
|
|
280006
|
-
case "round":
|
|
280007
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
280008
|
-
visitor.visitRoundKCLangNode(node);
|
|
280009
|
-
break;
|
|
280010
|
-
|
|
280011
|
-
case "choose":
|
|
280012
|
-
traverseKCLangExpression(node.if, visitor);
|
|
280013
|
-
traverseKCLangExpression(node.else, visitor);
|
|
280014
|
-
traverseKCLangExpression(node.then, visitor);
|
|
280015
|
-
visitor.visitChooseKCLangNode(node);
|
|
280016
|
-
break;
|
|
280017
|
-
|
|
280018
|
-
case "const":
|
|
280019
|
-
visitor.visitConstKCLangNode(node);
|
|
280020
|
-
break;
|
|
280021
|
-
|
|
280022
|
-
case "argument":
|
|
280023
|
-
visitor.visitArgumentKCLangNode(node);
|
|
280024
|
-
break;
|
|
280025
|
-
|
|
280026
|
-
case "or":
|
|
280027
|
-
for (const expression of node.expressions) {
|
|
280028
|
-
traverseKCLangExpression(expression, visitor);
|
|
280029
|
-
}
|
|
280030
|
-
|
|
280031
|
-
visitor.visitOrKCLangNode(node);
|
|
280032
|
-
break;
|
|
280033
|
-
|
|
280034
|
-
case "multySum":
|
|
280035
|
-
visitor.visitMultySumKCLangNode(node);
|
|
280036
|
-
break;
|
|
280037
|
-
|
|
280038
|
-
case "substring":
|
|
280039
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
280040
|
-
visitor.visitSubstringKCLangNode(node);
|
|
280041
|
-
break;
|
|
280042
|
-
|
|
280043
|
-
case "regexMatch":
|
|
280044
|
-
traverseKCLangExpression(node.expression, visitor);
|
|
280045
|
-
visitor.visitRegexMatchKCLangNode(node);
|
|
280046
|
-
break;
|
|
280047
|
-
|
|
280048
|
-
default:
|
|
280049
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
280050
|
-
break;
|
|
280051
|
-
}
|
|
280052
|
-
}
|
|
280053
|
-
class DefaultKCLangExpressionVisitor {
|
|
280054
|
-
visitAbsKCLangNode(node) {// default empty implementation
|
|
280055
|
-
}
|
|
280056
|
-
|
|
280057
|
-
visitAndKCLangNode(node) {// default empty implementation
|
|
280058
|
-
}
|
|
280059
|
-
|
|
280060
|
-
visitArgumentKCLangNode(node) {// default empty implementation
|
|
280061
|
-
}
|
|
280062
|
-
|
|
280063
|
-
visitCastExpressionKCLangNode(node) {// default empty implementation
|
|
280064
|
-
}
|
|
280065
|
-
|
|
280066
|
-
visitChooseKCLangNode(node) {// default empty implementation
|
|
280067
|
-
}
|
|
280068
|
-
|
|
280069
|
-
visitComparisonKCLangNode(node) {// default empty implementation
|
|
280070
|
-
}
|
|
280071
|
-
|
|
280072
|
-
visitConstKCLangNode(node) {// default empty implementation
|
|
280073
|
-
}
|
|
280074
|
-
|
|
280075
|
-
visitExistsKCLangNode(node) {// default empty implementation
|
|
280076
|
-
}
|
|
280077
|
-
|
|
280078
|
-
visitLengthKCLangNode(node) {// default empty implementation
|
|
280079
|
-
}
|
|
280080
|
-
|
|
280081
|
-
visitMinusKCLangNode(node) {// default empty implementation
|
|
280082
|
-
}
|
|
280083
|
-
|
|
280084
|
-
visitMultiplyKCLangNode(node) {// default empty implementation
|
|
280085
|
-
}
|
|
280086
|
-
|
|
280087
|
-
visitMultySumKCLangNode(node) {// default empty implementation
|
|
280088
|
-
}
|
|
280089
|
-
|
|
280090
|
-
visitNotKCLangNode(node) {// default empty implementation
|
|
280091
|
-
}
|
|
280092
|
-
|
|
280093
|
-
visitOneOfExpressionKCLangNode(node) {// default empty implementation
|
|
280094
|
-
}
|
|
280095
|
-
|
|
280096
|
-
visitOrKCLangNode(node) {// default empty implementation
|
|
280097
|
-
}
|
|
280098
|
-
|
|
280099
|
-
visitRegexMatchKCLangNode(node) {// default empty implementation
|
|
280100
|
-
}
|
|
280101
|
-
|
|
280102
|
-
visitRoundKCLangNode(node) {// default empty implementation
|
|
280103
|
-
}
|
|
280104
|
-
|
|
280105
|
-
visitSubstringKCLangNode(node) {// default empty implementation
|
|
280106
|
-
}
|
|
280107
|
-
|
|
280108
|
-
visitSumKCLangNode(node) {// default empty implementation
|
|
280109
|
-
}
|
|
280110
|
-
|
|
280111
|
-
visitXAbsKCLangNode(node) {// default empty implementation
|
|
280112
|
-
}
|
|
280113
|
-
|
|
280114
|
-
}
|
|
280115
|
-
|
|
280116
|
-
/***/ }),
|
|
280117
|
-
|
|
280118
|
-
/***/ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts":
|
|
280119
|
-
/*!*****************************************************************!*\
|
|
280120
|
-
!*** ./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts ***!
|
|
280121
|
-
\*****************************************************************/
|
|
280122
|
-
/***/ ((module) => {
|
|
280123
|
-
|
|
280124
|
-
// this file was prevaled
|
|
280125
|
-
|
|
280126
|
-
/* eslint-disable */
|
|
280127
|
-
// @ts-ignore
|
|
280128
|
-
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})()";
|
|
280129
|
-
|
|
280130
|
-
/***/ }),
|
|
280131
|
-
|
|
280132
|
-
/***/ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts":
|
|
280133
|
-
/*!****************************************************************!*\
|
|
280134
|
-
!*** ./Generator/src/common/KCLang/KCLangDescriptionParser.ts ***!
|
|
280135
|
-
\****************************************************************/
|
|
280136
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
280137
|
-
|
|
280138
|
-
"use strict";
|
|
280139
|
-
__webpack_require__.r(__webpack_exports__);
|
|
280140
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
280141
|
-
/* harmony export */ "KCLangDescriptionParser": () => (/* binding */ KCLangDescriptionParser)
|
|
280142
|
-
/* harmony export */ });
|
|
280143
|
-
/* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KCLangDescriptionGrammar */ "./Generator/src/common/KCLang/KCLangDescriptionGrammar.ts");
|
|
280144
|
-
/* harmony import */ var _KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0__);
|
|
280145
|
-
// @ts-ignore
|
|
280146
|
-
// tslint:disable-next-line no-eval no-unsafe-any
|
|
280147
|
-
|
|
280148
|
-
const evalParse = eval((_KCLangDescriptionGrammar__WEBPACK_IMPORTED_MODULE_0___default())).parse;
|
|
280149
|
-
class KCLangDescriptionParser {
|
|
280150
|
-
static getOrCreateParser() {
|
|
280151
|
-
return evalParse;
|
|
280152
|
-
}
|
|
280153
|
-
|
|
280154
|
-
static parse(code) {
|
|
280155
|
-
const parser = this.getOrCreateParser();
|
|
280156
|
-
return parser(code);
|
|
280157
|
-
}
|
|
280158
|
-
|
|
280159
|
-
}
|
|
280160
|
-
|
|
280161
|
-
/***/ }),
|
|
280162
|
-
|
|
280163
|
-
/***/ "./Generator/src/common/KCLang/KCLangNodes.ts":
|
|
280164
|
-
/*!****************************************************!*\
|
|
280165
|
-
!*** ./Generator/src/common/KCLang/KCLangNodes.ts ***!
|
|
280166
|
-
\****************************************************/
|
|
280167
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
280168
|
-
|
|
280169
|
-
"use strict";
|
|
280170
|
-
__webpack_require__.r(__webpack_exports__);
|
|
280171
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
280172
|
-
/* harmony export */ "isFormulaStatement": () => (/* binding */ isFormulaStatement),
|
|
280173
|
-
/* harmony export */ "isBlockStatement": () => (/* binding */ isBlockStatement),
|
|
280174
|
-
/* harmony export */ "isEnsureStatement": () => (/* binding */ isEnsureStatement),
|
|
280175
|
-
/* harmony export */ "isConditionalStatement": () => (/* binding */ isConditionalStatement),
|
|
280176
|
-
/* harmony export */ "isDescribeStatement": () => (/* binding */ isDescribeStatement),
|
|
280177
|
-
/* harmony export */ "andKCLangNode": () => (/* binding */ andKCLangNode)
|
|
280178
|
-
/* harmony export */ });
|
|
280179
|
-
function isFormulaStatement(node) {
|
|
280180
|
-
return node.type === "formula";
|
|
280181
|
-
}
|
|
280182
|
-
function isBlockStatement(node) {
|
|
280183
|
-
return node.type === "block";
|
|
280184
|
-
}
|
|
280185
|
-
function isEnsureStatement(node) {
|
|
280186
|
-
return node.type === "ensure";
|
|
280187
|
-
}
|
|
280188
|
-
function isConditionalStatement(node) {
|
|
280189
|
-
return node.type === "if";
|
|
280190
|
-
}
|
|
280191
|
-
function isDescribeStatement(node) {
|
|
280192
|
-
return node.type === "describe";
|
|
280193
|
-
}
|
|
280194
|
-
function andKCLangNode(...expressions) {
|
|
280195
|
-
return {
|
|
280196
|
-
type: "and",
|
|
280197
|
-
expressions: expressions
|
|
280198
|
-
};
|
|
280199
|
-
}
|
|
280200
|
-
|
|
280201
|
-
/***/ }),
|
|
280202
|
-
|
|
280203
279916
|
/***/ "./Generator/src/common/KCLang/KCLangToJsTranspiler.ts":
|
|
280204
279917
|
/*!*************************************************************!*\
|
|
280205
279918
|
!*** ./Generator/src/common/KCLang/KCLangToJsTranspiler.ts ***!
|
|
@@ -280497,345 +280210,6 @@ class KCLangToJsTranspiler {
|
|
|
280497
280210
|
|
|
280498
280211
|
/***/ }),
|
|
280499
280212
|
|
|
280500
|
-
/***/ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts":
|
|
280501
|
-
/*!**************************************************************!*\
|
|
280502
|
-
!*** ./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts ***!
|
|
280503
|
-
\**************************************************************/
|
|
280504
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
280505
|
-
|
|
280506
|
-
"use strict";
|
|
280507
|
-
__webpack_require__.r(__webpack_exports__);
|
|
280508
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
280509
|
-
/* harmony export */ "KCLangToXmlTranspiler": () => (/* binding */ KCLangToXmlTranspiler),
|
|
280510
|
-
/* harmony export */ "kclang": () => (/* binding */ kclang)
|
|
280511
|
-
/* harmony export */ });
|
|
280512
|
-
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
280513
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
280514
|
-
/* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
|
|
280515
|
-
/* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
|
|
280516
|
-
/* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
|
|
280517
|
-
/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Utils */ "./Generator/src/common/KCLang/Utils.ts");
|
|
280518
|
-
/* harmony import */ var _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Antlr/KCLangAntlrParser */ "./Generator/src/common/KCLang/Antlr/KCLangAntlrParser.ts");
|
|
280519
|
-
|
|
280520
|
-
|
|
280521
|
-
|
|
280522
|
-
|
|
280523
|
-
|
|
280524
|
-
|
|
280525
|
-
// tslint:disable-next-line:cyclomatic-complexity
|
|
280526
|
-
|
|
280527
|
-
function generateKCXmlExpression(expression) {
|
|
280528
|
-
switch (expression.type) {
|
|
280529
|
-
case "abs":
|
|
280530
|
-
case "xabs":
|
|
280531
|
-
case "length":
|
|
280532
|
-
return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
280533
|
-
|
|
280534
|
-
case "exists":
|
|
280535
|
-
case "multySum":
|
|
280536
|
-
return `<m:${expression.type} select="${expression.select}" />`;
|
|
280537
|
-
|
|
280538
|
-
case "cast":
|
|
280539
|
-
if (expression.expression.type === "argument") {
|
|
280540
|
-
return `<m:argument select="${expression.expression.select}" type="${expression.targetType}" />`;
|
|
280541
|
-
}
|
|
280542
|
-
|
|
280543
|
-
throw new Error("Cast supports only for argument");
|
|
280544
|
-
|
|
280545
|
-
case "and":
|
|
280546
|
-
case "or":
|
|
280547
|
-
return [`<m:${expression.type}>`, ...expression.expressions.map(generateKCXmlExpression).map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:${expression.type}>`].join("\n");
|
|
280548
|
-
|
|
280549
|
-
case "sum":
|
|
280550
|
-
return [`<m:sum>`, ...expression.operands.map(operand => {
|
|
280551
|
-
if (operand.operator === "+") {
|
|
280552
|
-
return generateKCXmlExpression(operand.expression);
|
|
280553
|
-
}
|
|
280554
|
-
|
|
280555
|
-
return [`<m:minus>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(operand.expression), 1), `</m:minus>`].join("\n");
|
|
280556
|
-
}).map(x => (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(x, 1)), `</m:sum>`].join("\n");
|
|
280557
|
-
|
|
280558
|
-
case "gt":
|
|
280559
|
-
case "ge":
|
|
280560
|
-
case "lt":
|
|
280561
|
-
case "le":
|
|
280562
|
-
case "eq":
|
|
280563
|
-
case "multiply":
|
|
280564
|
-
case "division":
|
|
280565
|
-
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");
|
|
280566
|
-
|
|
280567
|
-
case "noteq":
|
|
280568
|
-
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");
|
|
280569
|
-
|
|
280570
|
-
case "minus":
|
|
280571
|
-
case "not":
|
|
280572
|
-
return [`<m:${expression.type}>`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:${expression.type}>`].join("\n");
|
|
280573
|
-
break;
|
|
280574
|
-
break;
|
|
280575
|
-
|
|
280576
|
-
case "round":
|
|
280577
|
-
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");
|
|
280578
|
-
|
|
280579
|
-
case "substring":
|
|
280580
|
-
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");
|
|
280581
|
-
|
|
280582
|
-
case "regexMatch":
|
|
280583
|
-
return [`<m:regexMatch pattern="${expression.pattern}">`, (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:regexMatch>`].join("\n");
|
|
280584
|
-
|
|
280585
|
-
case "choose":
|
|
280586
|
-
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");
|
|
280587
|
-
break;
|
|
280588
|
-
|
|
280589
|
-
case "const":
|
|
280590
|
-
if (expression.value.type === "decimal") {
|
|
280591
|
-
return `<m:const value="${expression.value.value}" type="decimal" />`;
|
|
280592
|
-
}
|
|
280593
|
-
|
|
280594
|
-
if (expression.value.type === "string") {
|
|
280595
|
-
return `<m:const value="${expression.value.value}" type="string" />`;
|
|
280596
|
-
}
|
|
280597
|
-
|
|
280598
|
-
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.NotImplementedError();
|
|
280599
|
-
|
|
280600
|
-
case "argument":
|
|
280601
|
-
return `<m:argument select="${expression.select}" />`;
|
|
280602
|
-
|
|
280603
|
-
case "oneof":
|
|
280604
|
-
{
|
|
280605
|
-
const testExpr = generateKCXmlExpression(expression.testExpression);
|
|
280606
|
-
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");
|
|
280607
|
-
}
|
|
280608
|
-
|
|
280609
|
-
default:
|
|
280610
|
-
// @ts-ignore
|
|
280611
|
-
throw new Error(`Expression of type '${expression.type}' is not supported`);
|
|
280612
|
-
}
|
|
280613
|
-
}
|
|
280614
|
-
|
|
280615
|
-
function formatDescribeStatement(ast, matchPath, describe) {
|
|
280616
|
-
return _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_3__.KCLangDescriptionParser.parse(describe.text).map(item => {
|
|
280617
|
-
if (typeof item === "string") {
|
|
280618
|
-
return item;
|
|
280619
|
-
} else {
|
|
280620
|
-
return `{{link ref=${item.src}}}${item.text.join(" ")}{{/link}}`;
|
|
280621
|
-
}
|
|
280622
|
-
}).join(" ");
|
|
280623
|
-
}
|
|
280624
|
-
|
|
280625
|
-
function generateKCXmlFormula(ast, matchPath, describe) {
|
|
280626
|
-
const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
|
|
280627
|
-
return `<m:formula match="${matchPath}" target="${ast.target}"${descriptionAttr}>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 1) + "\n" + `</m:formula>`;
|
|
280628
|
-
}
|
|
280629
|
-
|
|
280630
|
-
function removeTrailingSlash(inputStr) {
|
|
280631
|
-
if (inputStr.endsWith("/")) {
|
|
280632
|
-
return inputStr.substring(0, inputStr.length - 1);
|
|
280633
|
-
}
|
|
280634
|
-
|
|
280635
|
-
return inputStr;
|
|
280636
|
-
}
|
|
280637
|
-
|
|
280638
|
-
function joinPaths(paths) {
|
|
280639
|
-
return paths.map(removeTrailingSlash).join("/");
|
|
280640
|
-
}
|
|
280641
|
-
|
|
280642
|
-
function generateBlockKCXmlFormulas(block, parents) {
|
|
280643
|
-
const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path), block.path]);
|
|
280644
|
-
const result = [];
|
|
280645
|
-
let lastDescribeStatement;
|
|
280646
|
-
|
|
280647
|
-
for (const statement of block.statements) {
|
|
280648
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isFormulaStatement)(statement)) {
|
|
280649
|
-
result.push(generateKCXmlFormula(statement, matchPath, lastDescribeStatement));
|
|
280650
|
-
lastDescribeStatement = undefined;
|
|
280651
|
-
}
|
|
280652
|
-
|
|
280653
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(statement)) {
|
|
280654
|
-
lastDescribeStatement = undefined;
|
|
280655
|
-
}
|
|
280656
|
-
|
|
280657
|
-
if (lastDescribeStatement != undefined) {
|
|
280658
|
-
throw new Error("Describe should be placed before assign of ensure statements");
|
|
280659
|
-
}
|
|
280660
|
-
|
|
280661
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(statement)) {
|
|
280662
|
-
lastDescribeStatement = statement;
|
|
280663
|
-
}
|
|
280664
|
-
|
|
280665
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(statement)) {
|
|
280666
|
-
result.push(generateBlockKCXmlFormulas(statement, [...(parents !== null && parents !== void 0 ? parents : []), block]));
|
|
280667
|
-
}
|
|
280668
|
-
}
|
|
280669
|
-
|
|
280670
|
-
return result.join("\n");
|
|
280671
|
-
}
|
|
280672
|
-
|
|
280673
|
-
function guessConditionTarget(condition) {
|
|
280674
|
-
let result;
|
|
280675
|
-
|
|
280676
|
-
class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__.DefaultKCLangExpressionVisitor {
|
|
280677
|
-
visitExistsKCLangNode(node) {
|
|
280678
|
-
if (result == undefined) {
|
|
280679
|
-
result = node.select;
|
|
280680
|
-
}
|
|
280681
|
-
}
|
|
280682
|
-
|
|
280683
|
-
visitArgumentKCLangNode(node) {
|
|
280684
|
-
if (result == undefined) {
|
|
280685
|
-
result = node.select;
|
|
280686
|
-
}
|
|
280687
|
-
}
|
|
280688
|
-
|
|
280689
|
-
}
|
|
280690
|
-
|
|
280691
|
-
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_2__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
280692
|
-
return result;
|
|
280693
|
-
}
|
|
280694
|
-
|
|
280695
|
-
function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
|
|
280696
|
-
const levelAttr = ast.level === "error" ? ` errorLevel="Error"` : "";
|
|
280697
|
-
const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
|
|
280698
|
-
const guessedTarget = guessConditionTarget(ast);
|
|
280699
|
-
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
280700
|
-
|
|
280701
|
-
if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
|
|
280702
|
-
var _parentConditions$map;
|
|
280703
|
-
|
|
280704
|
-
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 : []));
|
|
280705
|
-
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>`;
|
|
280706
|
-
}
|
|
280707
|
-
|
|
280708
|
-
return `<m:condition match="${matchPath}"${descriptionAttr}${levelAttr}${targetAttr}>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(generateKCXmlExpression(ast.expression), 1) + "\n" + `</m:condition>`;
|
|
280709
|
-
}
|
|
280710
|
-
|
|
280711
|
-
function generateBlockKCXmlConditions(block, parents, parentConditions) {
|
|
280712
|
-
const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path), block.path]);
|
|
280713
|
-
const result = [];
|
|
280714
|
-
let lastDescribeStatement;
|
|
280715
|
-
|
|
280716
|
-
for (const statement of block.statements) {
|
|
280717
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isFormulaStatement)(statement)) {
|
|
280718
|
-
lastDescribeStatement = undefined;
|
|
280719
|
-
}
|
|
280720
|
-
|
|
280721
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(statement)) {
|
|
280722
|
-
result.push(generateKCXmlCondition(statement, matchPath, parentConditions, lastDescribeStatement));
|
|
280723
|
-
lastDescribeStatement = undefined;
|
|
280724
|
-
}
|
|
280725
|
-
|
|
280726
|
-
if (lastDescribeStatement != undefined) {
|
|
280727
|
-
throw new Error("Describe should be placed before assign of ensure statements");
|
|
280728
|
-
}
|
|
280729
|
-
|
|
280730
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(statement)) {
|
|
280731
|
-
lastDescribeStatement = statement;
|
|
280732
|
-
}
|
|
280733
|
-
|
|
280734
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isConditionalStatement)(statement)) {
|
|
280735
|
-
result.push(generateConditionalConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
|
|
280736
|
-
}
|
|
280737
|
-
|
|
280738
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(statement)) {
|
|
280739
|
-
result.push(generateBlockKCXmlConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
|
|
280740
|
-
}
|
|
280741
|
-
}
|
|
280742
|
-
|
|
280743
|
-
return result.join("\n");
|
|
280744
|
-
}
|
|
280745
|
-
|
|
280746
|
-
function generateConditionalConditions(conditionalStatement, parents, parentConditions) {
|
|
280747
|
-
const matchPath = joinPaths([...(parents !== null && parents !== void 0 ? parents : []).map(x => x.path)]);
|
|
280748
|
-
const result = [];
|
|
280749
|
-
let lastDescribeStatement;
|
|
280750
|
-
|
|
280751
|
-
for (const x of conditionalStatement.statements) {
|
|
280752
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isEnsureStatement)(x)) {
|
|
280753
|
-
result.push(generateKCXmlCondition(x, matchPath, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement], lastDescribeStatement));
|
|
280754
|
-
lastDescribeStatement = undefined;
|
|
280755
|
-
}
|
|
280756
|
-
|
|
280757
|
-
if (lastDescribeStatement != undefined) {
|
|
280758
|
-
throw new Error("Describe should be placed before assign of ensure statements");
|
|
280759
|
-
}
|
|
280760
|
-
|
|
280761
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isDescribeStatement)(x)) {
|
|
280762
|
-
lastDescribeStatement = x;
|
|
280763
|
-
}
|
|
280764
|
-
|
|
280765
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isConditionalStatement)(x)) {
|
|
280766
|
-
result.push(generateConditionalConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
|
|
280767
|
-
}
|
|
280768
|
-
|
|
280769
|
-
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_4__.isBlockStatement)(x)) {
|
|
280770
|
-
result.push(generateBlockKCXmlConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
|
|
280771
|
-
}
|
|
280772
|
-
}
|
|
280773
|
-
|
|
280774
|
-
return result.join("\n");
|
|
280775
|
-
}
|
|
280776
|
-
|
|
280777
|
-
function generateKCXmlFormulas(blocks) {
|
|
280778
|
-
const formulas = Iterator.from(blocks).map(generateBlockKCXmlFormulas).toArray();
|
|
280779
|
-
|
|
280780
|
-
if (formulas.filter(x => x !== "").length > 0) {
|
|
280781
|
-
return `<m:formulas>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(formulas.join("\n"), 1) + "\n" + `</m:formulas>\n`;
|
|
280782
|
-
} else {
|
|
280783
|
-
return "";
|
|
280784
|
-
}
|
|
280785
|
-
}
|
|
280786
|
-
|
|
280787
|
-
function generateKCXmlConditions(blocks) {
|
|
280788
|
-
const conditions = Iterator.from(blocks).map(generateBlockKCXmlConditions).toArray();
|
|
280789
|
-
|
|
280790
|
-
if (conditions.filter(x => x !== "").length > 0) {
|
|
280791
|
-
return `<m:conditions>\n` + (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.indent)(conditions.join("\n"), 1) + "\n" + `</m:conditions>\n`;
|
|
280792
|
-
} else {
|
|
280793
|
-
return "";
|
|
280794
|
-
}
|
|
280795
|
-
}
|
|
280796
|
-
|
|
280797
|
-
function generateKCXml(blocks) {
|
|
280798
|
-
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>`;
|
|
280799
|
-
}
|
|
280800
|
-
|
|
280801
|
-
class KCLangToXmlTranspiler {
|
|
280802
|
-
static transpile(kcLang, customParser) {
|
|
280803
|
-
const parser = customParser !== null && customParser !== void 0 ? customParser : _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__.KCLangAntlrParser.parse;
|
|
280804
|
-
const kcxml = generateKCXml(parser(kcLang).blocks);
|
|
280805
|
-
return kcxml;
|
|
280806
|
-
}
|
|
280807
|
-
|
|
280808
|
-
}
|
|
280809
|
-
function kclang(str) {
|
|
280810
|
-
return KCLangToXmlTranspiler.transpile(str.join(""));
|
|
280811
|
-
}
|
|
280812
|
-
|
|
280813
|
-
/***/ }),
|
|
280814
|
-
|
|
280815
|
-
/***/ "./Generator/src/common/KCLang/Utils.ts":
|
|
280816
|
-
/*!**********************************************!*\
|
|
280817
|
-
!*** ./Generator/src/common/KCLang/Utils.ts ***!
|
|
280818
|
-
\**********************************************/
|
|
280819
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
280820
|
-
|
|
280821
|
-
"use strict";
|
|
280822
|
-
__webpack_require__.r(__webpack_exports__);
|
|
280823
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
280824
|
-
/* harmony export */ "indent": () => (/* binding */ indent)
|
|
280825
|
-
/* harmony export */ });
|
|
280826
|
-
function indent(str, count) {
|
|
280827
|
-
const indentStr = new Array(count * 2).fill(" ").join("");
|
|
280828
|
-
return str.split("\n").map(x => {
|
|
280829
|
-
if (x === "") {
|
|
280830
|
-
return x;
|
|
280831
|
-
}
|
|
280832
|
-
|
|
280833
|
-
return indentStr + x;
|
|
280834
|
-
}).join("\n");
|
|
280835
|
-
}
|
|
280836
|
-
|
|
280837
|
-
/***/ }),
|
|
280838
|
-
|
|
280839
280213
|
/***/ "./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts":
|
|
280840
280214
|
/*!*********************************************************************************!*\
|
|
280841
280215
|
!*** ./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts ***!
|
|
@@ -281065,11 +280439,12 @@ class FormSchemaRng {
|
|
|
281065
280439
|
return result.toPath().toAbsolute();
|
|
281066
280440
|
}
|
|
281067
280441
|
|
|
281068
|
-
getElementByPath(
|
|
280442
|
+
getElementByPath(bindingPath) {
|
|
280443
|
+
const modelPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(bindingPath, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
281069
280444
|
let expectMultipleElement = false;
|
|
281070
280445
|
let currentElement;
|
|
281071
280446
|
|
|
281072
|
-
for (const part of
|
|
280447
|
+
for (const part of modelPath.getPathParts()) {
|
|
281073
280448
|
if (currentElement == undefined) {
|
|
281074
280449
|
if (this.rootElement.name === part) {
|
|
281075
280450
|
currentElement = this.rootElement;
|
|
@@ -281107,7 +280482,8 @@ class FormSchemaRng {
|
|
|
281107
280482
|
return currentElement;
|
|
281108
280483
|
}
|
|
281109
280484
|
|
|
281110
|
-
getIsOptionalByPath(
|
|
280485
|
+
getIsOptionalByPath(bindingPath) {
|
|
280486
|
+
const modelPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(bindingPath, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
281111
280487
|
let isOptionalStatus = false;
|
|
281112
280488
|
let currentElement;
|
|
281113
280489
|
|
|
@@ -281142,12 +280518,6 @@ class FormSchemaRng {
|
|
|
281142
280518
|
return isOptionalStatus;
|
|
281143
280519
|
}
|
|
281144
280520
|
|
|
281145
|
-
getIsOptionalByExactPath(bindingPath) {
|
|
281146
|
-
var _this$getElementByPat, _this$getElementByPat2;
|
|
281147
|
-
|
|
281148
|
-
return (_this$getElementByPat = (_this$getElementByPat2 = this.getElementByPath(bindingPath)) === null || _this$getElementByPat2 === void 0 ? void 0 : _this$getElementByPat2.optional) !== null && _this$getElementByPat !== void 0 ? _this$getElementByPat : false;
|
|
281149
|
-
}
|
|
281150
|
-
|
|
281151
280521
|
getTypeNodeByPath(bindingPath) {
|
|
281152
280522
|
const currentElement = this.getElementByPath(bindingPath);
|
|
281153
280523
|
|
|
@@ -286065,7 +285435,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
286065
285435
|
|
|
286066
285436
|
|
|
286067
285437
|
class FormulasAutoCalculationsGenerator {
|
|
286068
|
-
generate(
|
|
285438
|
+
generate(formulaContainer, schemaRng, dataDeclarationHelper) {
|
|
285439
|
+
const formulas = formulaContainer.formulas == undefined || formulaContainer.formulas.items == undefined ? [] : formulaContainer.formulas.items;
|
|
286069
285440
|
const formulaAutoCalculations = formulas.map(formula => this.buildFormulaAutoCalculation(formula, schemaRng, dataDeclarationHelper)).flat();
|
|
286070
285441
|
return this.mergeFormulaAutoCalculations(formulaAutoCalculations);
|
|
286071
285442
|
}
|
|
@@ -286791,73 +286162,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
286791
286162
|
/* harmony export */ });
|
|
286792
286163
|
/* harmony import */ var _common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../common/XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
286793
286164
|
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
286794
|
-
/* harmony import */ var
|
|
286795
|
-
/* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
286796
|
-
|
|
286165
|
+
/* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
286797
286166
|
|
|
286798
286167
|
|
|
286799
286168
|
|
|
286800
286169
|
class FormulaReader {
|
|
286801
|
-
readFormulas(
|
|
286170
|
+
readFormulas(kcxmlSource) {
|
|
286802
286171
|
const serializer = this.createFormulaSerializer();
|
|
286803
|
-
const result =
|
|
286804
|
-
|
|
286805
|
-
for (const kcxmlSource of kcxmlSources) {
|
|
286806
|
-
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
|
|
286172
|
+
const result = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
|
|
286807
286173
|
|
|
286808
|
-
|
|
286809
|
-
|
|
286810
|
-
|
|
286811
|
-
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 : []));
|
|
286812
|
-
}
|
|
286813
|
-
}
|
|
286814
|
-
|
|
286815
|
-
for (const kclangSource of kclangSources) {
|
|
286816
|
-
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToXmlTranspiler.transpile(kclangSource)));
|
|
286817
|
-
|
|
286818
|
-
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
286819
|
-
var _rootNode$formulas$it2, _rootNode$formulas2;
|
|
286820
|
-
|
|
286821
|
-
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 : []));
|
|
286822
|
-
}
|
|
286174
|
+
if (result instanceof _Formula__WEBPACK_IMPORTED_MODULE_2__.DummyContent) {
|
|
286175
|
+
return this.createEmptyMathContainer();
|
|
286823
286176
|
}
|
|
286824
286177
|
|
|
286825
286178
|
return result;
|
|
286826
286179
|
}
|
|
286827
286180
|
|
|
286828
|
-
|
|
286829
|
-
const
|
|
286830
|
-
|
|
286831
|
-
|
|
286832
|
-
|
|
286833
|
-
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(kcxmlSource));
|
|
286834
|
-
|
|
286835
|
-
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
286836
|
-
var _rootNode$conditions$, _rootNode$conditions;
|
|
286837
|
-
|
|
286838
|
-
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$ : []));
|
|
286839
|
-
}
|
|
286840
|
-
}
|
|
286841
|
-
|
|
286842
|
-
for (const kclangSource of kclangSources) {
|
|
286843
|
-
const rootNode = serializer.deserializeFromSugarXmlNode((0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToXmlTranspiler.transpile(kclangSource)));
|
|
286844
|
-
|
|
286845
|
-
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
286846
|
-
var _rootNode$conditions$2, _rootNode$conditions2;
|
|
286847
|
-
|
|
286848
|
-
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 : []));
|
|
286849
|
-
}
|
|
286850
|
-
}
|
|
286851
|
-
|
|
286852
|
-
return result;
|
|
286181
|
+
createEmptyMathContainer() {
|
|
286182
|
+
const mathContainer = new _Formula__WEBPACK_IMPORTED_MODULE_2__.MathContainer();
|
|
286183
|
+
mathContainer.formulas = new _Formula__WEBPACK_IMPORTED_MODULE_2__.Formulas();
|
|
286184
|
+
mathContainer.formulas.items = [];
|
|
286185
|
+
return mathContainer;
|
|
286853
286186
|
}
|
|
286854
286187
|
|
|
286855
286188
|
createFormulaSerializer() {
|
|
286856
286189
|
const result = new _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.SugarSerializer();
|
|
286857
|
-
result.registerNode(
|
|
286858
|
-
result.registerNode(
|
|
286190
|
+
result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_2__.DummyContent);
|
|
286191
|
+
result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_2__.MathContainer);
|
|
286859
286192
|
|
|
286860
|
-
for (const formulaExpression of
|
|
286193
|
+
for (const formulaExpression of _Formula__WEBPACK_IMPORTED_MODULE_2__.formulaExpressions) {
|
|
286861
286194
|
result.registerNode(formulaExpression);
|
|
286862
286195
|
}
|
|
286863
286196
|
|
|
@@ -287448,43 +286781,33 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
287448
286781
|
}
|
|
287449
286782
|
|
|
287450
286783
|
hasMask(targetPath) {
|
|
287451
|
-
return this.
|
|
286784
|
+
return Boolean(this.dataDeclaration[targetPath.toString()]);
|
|
287452
286785
|
}
|
|
287453
286786
|
|
|
287454
286787
|
isNodeHasChildrenEntry(targetPath) {
|
|
287455
|
-
var _this$
|
|
286788
|
+
var _this$dataDeclaration;
|
|
287456
286789
|
|
|
287457
|
-
return ((_this$
|
|
286790
|
+
return ((_this$dataDeclaration = this.dataDeclaration[targetPath]) === null || _this$dataDeclaration === void 0 ? void 0 : _this$dataDeclaration.children) != undefined;
|
|
287458
286791
|
}
|
|
287459
286792
|
|
|
287460
286793
|
isNodeHasAutoFlagEntry(targetPath) {
|
|
287461
|
-
const
|
|
286794
|
+
const targetPathString = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(targetPath) ? targetPath.toLegacyPath() : targetPath;
|
|
286795
|
+
const declEntry = this.dataDeclaration[targetPathString];
|
|
287462
286796
|
return declEntry !== undefined && "autoValue" in declEntry;
|
|
287463
286797
|
}
|
|
287464
286798
|
|
|
287465
286799
|
isNodeHasDisabledEntry(targetPath) {
|
|
287466
|
-
const declEntry = this.
|
|
286800
|
+
const declEntry = this.dataDeclaration[targetPath];
|
|
287467
286801
|
return Boolean(declEntry === null || declEntry === void 0 ? void 0 : declEntry.disabled);
|
|
287468
286802
|
}
|
|
287469
286803
|
|
|
287470
286804
|
getDefaultValue(targetPath) {
|
|
287471
|
-
const declEntry = this.
|
|
286805
|
+
const declEntry = this.dataDeclaration[targetPath];
|
|
287472
286806
|
const lastValue = declEntry !== undefined && "value" in declEntry && declEntry.value != undefined ? declEntry.value[declEntry.value.length - 1] : "";
|
|
287473
286807
|
const returnDefaultValue = typeof lastValue === "string" ? lastValue : "";
|
|
287474
286808
|
return returnDefaultValue;
|
|
287475
286809
|
}
|
|
287476
286810
|
|
|
287477
|
-
isNodeOptional(targetPath) {
|
|
287478
|
-
var _this$getDataDeclarat2, _optionalValue$;
|
|
287479
|
-
|
|
287480
|
-
const optionalValue = (_this$getDataDeclarat2 = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat2 === void 0 ? void 0 : _this$getDataDeclarat2.optional;
|
|
287481
|
-
return (_optionalValue$ = optionalValue === null || optionalValue === void 0 ? void 0 : optionalValue[0]) !== null && _optionalValue$ !== void 0 ? _optionalValue$ : false;
|
|
287482
|
-
}
|
|
287483
|
-
|
|
287484
|
-
getDataDeclarationEntry(targetPath) {
|
|
287485
|
-
return this.dataDeclaration[(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.convertToLegacyPath)(targetPath)];
|
|
287486
|
-
}
|
|
287487
|
-
|
|
287488
286811
|
}
|
|
287489
286812
|
|
|
287490
286813
|
/***/ }),
|
|
@@ -288562,9 +287885,11 @@ class KCXmlValidationGenerator {
|
|
|
288562
287885
|
const conditionReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_2__.FormulaReader();
|
|
288563
287886
|
|
|
288564
287887
|
for (const file of importedKcXmlValidations) {
|
|
288565
|
-
const
|
|
287888
|
+
const math = conditionReader.readFormulas(file);
|
|
287889
|
+
|
|
287890
|
+
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 : []) {
|
|
287891
|
+
var _math$conditions$item, _math$conditions;
|
|
288566
287892
|
|
|
288567
|
-
for (const condition of conditions) {
|
|
288568
287893
|
compiledConditions.push(this.compileCondition(condition));
|
|
288569
287894
|
}
|
|
288570
287895
|
}
|
|
@@ -288747,7 +288072,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
288747
288072
|
const sugarAst = (0,_common_SugarXmlParser_SugarParser__WEBPACK_IMPORTED_MODULE_4__.parseSugar)(formSugarContent, additionalContent.preprocessor || {});
|
|
288748
288073
|
const serializer = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__.createDefaultSugarSerializer)();
|
|
288749
288074
|
const sugarRoot = (0,_markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__.strictCastNode)(serializer.deserializeFromSugarXmlNode(sugarAst), _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__.FormNode);
|
|
288750
|
-
const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent
|
|
288075
|
+
const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent);
|
|
288751
288076
|
const schemaRng = (0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_5__.parseXml)(additionalContent.schemaRngContent);
|
|
288752
288077
|
const formSchemaRng = _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRng.createFromSchemaRng(additionalContent.schemaRngContent);
|
|
288753
288078
|
const typeRegistry = (0,_validationGenerator_TypesRegistry__WEBPACK_IMPORTED_MODULE_14__.buildTypesRegistry)(sugarRoot);
|
|
@@ -288767,7 +288092,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
288767
288092
|
const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_24__.NormalizationRulesGenerator(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typeRegistry, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, controlCustomizationContext);
|
|
288768
288093
|
const resourcesHash = (_generationOptions$re = generationOptions === null || generationOptions === void 0 ? void 0 : generationOptions.resourcesHash) !== null && _generationOptions$re !== void 0 ? _generationOptions$re : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("Current generator version requires resources hash");
|
|
288769
288094
|
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_20__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
288770
|
-
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng,
|
|
288095
|
+
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
|
|
288771
288096
|
markupGenerator.generate(sugarRoot, builder);
|
|
288772
288097
|
builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_8__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings));
|
|
288773
288098
|
builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_23__.getRequisiteList)(sugarRoot, fetchFunctions));
|
|
@@ -288872,17 +288197,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
288872
288197
|
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
|
288873
288198
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ "path");
|
|
288874
288199
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
|
288875
|
-
/* harmony import */ var
|
|
288876
|
-
/* harmony import */ var
|
|
288877
|
-
/* harmony import */ var
|
|
288878
|
-
/* harmony import */ var
|
|
288879
|
-
/* harmony import */ var
|
|
288880
|
-
/* harmony import */ var
|
|
288881
|
-
/* harmony import */ var
|
|
288882
|
-
/* harmony import */ var
|
|
288883
|
-
/* harmony import */ var
|
|
288884
|
-
/* harmony import */ var
|
|
288885
|
-
/* harmony import */ var
|
|
288200
|
+
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! util */ "util");
|
|
288201
|
+
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_2__);
|
|
288202
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
|
|
288203
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_3__);
|
|
288204
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/lib/index.js");
|
|
288205
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(fs_extra__WEBPACK_IMPORTED_MODULE_4__);
|
|
288206
|
+
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
|
|
288207
|
+
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_5__);
|
|
288208
|
+
/* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! md5-file */ "./node_modules/md5-file/index.js");
|
|
288209
|
+
/* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(md5_file__WEBPACK_IMPORTED_MODULE_6__);
|
|
288210
|
+
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! recursive-readdir */ "./node_modules/recursive-readdir/index.js");
|
|
288211
|
+
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(recursive_readdir__WEBPACK_IMPORTED_MODULE_7__);
|
|
288212
|
+
/* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
|
|
288886
288213
|
|
|
288887
288214
|
|
|
288888
288215
|
|
|
@@ -288891,6 +288218,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
288891
288218
|
|
|
288892
288219
|
|
|
288893
288220
|
|
|
288221
|
+
|
|
288222
|
+
const statAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.stat);
|
|
288223
|
+
const readFileAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.readFile);
|
|
288224
|
+
const readdirAsync = (0,util__WEBPACK_IMPORTED_MODULE_2__.promisify)(fs__WEBPACK_IMPORTED_MODULE_0__.readdir);
|
|
288894
288225
|
async function readFormSources(formSourcesPath, farmDirectory) {
|
|
288895
288226
|
var _JSON$parse$settings;
|
|
288896
288227
|
|
|
@@ -288902,9 +288233,9 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
288902
288233
|
|
|
288903
288234
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
288904
288235
|
// eslint-disable-next-line no-console
|
|
288905
|
-
console.warn(
|
|
288236
|
+
console.warn(chalk__WEBPACK_IMPORTED_MODULE_3___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
|
|
288906
288237
|
const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
|
|
288907
|
-
sugarReferences.fetchFunctionFiles = (await (
|
|
288238
|
+
sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
288908
288239
|
}
|
|
288909
288240
|
|
|
288910
288241
|
const result = {
|
|
@@ -288914,12 +288245,11 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
288914
288245
|
formSourcesPath: formSourcesPath,
|
|
288915
288246
|
formJsonSettings: (_JSON$parse$settings = JSON.parse(await readFileSource(formSourcesPath, "form.json", "{}"))["settings"]) !== null && _JSON$parse$settings !== void 0 ? _JSON$parse$settings : {},
|
|
288916
288247
|
additionalSettings: await readFileSource(formSourcesPath, "settings.json", "{}"),
|
|
288917
|
-
autocalcsContent: await
|
|
288248
|
+
autocalcsContent: await readAutoCalcFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc")),
|
|
288918
288249
|
helpersContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers")),
|
|
288919
288250
|
validationsContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations")),
|
|
288920
288251
|
schemaRngContent: await readSchemaRngFile(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"), formName),
|
|
288921
|
-
kcJsXmlContent: await
|
|
288922
|
-
kclangAutocaclulationsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.kclang$/),
|
|
288252
|
+
kcJsXmlContent: (await readFileSource(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), `${formName}.КС.candy.js.xml`, "<dummy/>")) || "",
|
|
288923
288253
|
tourSteps: await readFileSource(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "tour"), "tour.js", "{}"),
|
|
288924
288254
|
hooksContent: await readHooksFile(formSourcesPath),
|
|
288925
288255
|
customControlsContent: await readCustomControlsFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls")),
|
|
@@ -288963,7 +288293,7 @@ function evalModule(moduleCode) {
|
|
|
288963
288293
|
|
|
288964
288294
|
async function isDirectoryExists(directoryPath) {
|
|
288965
288295
|
try {
|
|
288966
|
-
const dirStat = await (
|
|
288296
|
+
const dirStat = await statAsync(directoryPath);
|
|
288967
288297
|
return dirStat.isDirectory();
|
|
288968
288298
|
} catch (ignoreError) {
|
|
288969
288299
|
return false;
|
|
@@ -288974,27 +288304,27 @@ async function readFiles(filePaths) {
|
|
|
288974
288304
|
const result = [];
|
|
288975
288305
|
|
|
288976
288306
|
for (const filePath of filePaths) {
|
|
288977
|
-
result.push(await (
|
|
288307
|
+
result.push(await readFileAsync(filePath, "utf-8"));
|
|
288978
288308
|
}
|
|
288979
288309
|
|
|
288980
288310
|
return result;
|
|
288981
288311
|
}
|
|
288982
288312
|
|
|
288983
288313
|
async function extractReferences(formSugarDirectoryPath) {
|
|
288984
|
-
const indexContent = await (
|
|
288985
|
-
return (0,
|
|
288314
|
+
const indexContent = await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8");
|
|
288315
|
+
return (0,_common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_8__.extractSugarReferences)(indexContent, filePath => readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, filePath), "utf-8"));
|
|
288986
288316
|
}
|
|
288987
288317
|
|
|
288988
288318
|
async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
288989
|
-
if (!(await (0,
|
|
288319
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_4__.pathExists)(directoryPath))) {
|
|
288990
288320
|
return [];
|
|
288991
288321
|
}
|
|
288992
288322
|
|
|
288993
|
-
const files = await (
|
|
288323
|
+
const files = await readdirAsync(directoryPath);
|
|
288994
288324
|
let filelist = _filelist || [];
|
|
288995
288325
|
|
|
288996
288326
|
for (const file of files) {
|
|
288997
|
-
if ((await (
|
|
288327
|
+
if ((await statAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file))).isDirectory()) {
|
|
288998
288328
|
filelist = await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file), filelist);
|
|
288999
288329
|
} else {
|
|
289000
288330
|
filelist.push(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file));
|
|
@@ -289005,7 +288335,7 @@ async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
|
289005
288335
|
}
|
|
289006
288336
|
|
|
289007
288337
|
async function checkFileExists(filePath) {
|
|
289008
|
-
if (!(await (0,
|
|
288338
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_4__.pathExists)(filePath))) {
|
|
289009
288339
|
return [];
|
|
289010
288340
|
}
|
|
289011
288341
|
|
|
@@ -289018,7 +288348,7 @@ async function getAllDependencies(formSourcesPath, farmDirectory) {
|
|
|
289018
288348
|
|
|
289019
288349
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
289020
288350
|
const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
|
|
289021
|
-
sugarReferences.fetchFunctionFiles = (await (
|
|
288351
|
+
sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
289022
288352
|
}
|
|
289023
288353
|
|
|
289024
288354
|
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")))];
|
|
@@ -289031,23 +288361,23 @@ function normalizeLineEndings(content) {
|
|
|
289031
288361
|
async function getAllDependenciesHash(formSourcesPath, farmDirectory) {
|
|
289032
288362
|
const allDeps = await getAllDependencies(formSourcesPath, farmDirectory);
|
|
289033
288363
|
const hashes = await Promise.all(allDeps.map(async depFilePath => {
|
|
289034
|
-
if ([".js", ".
|
|
289035
|
-
let content = await (
|
|
288364
|
+
if ([".js", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
|
|
288365
|
+
let content = await readFileAsync(depFilePath, "utf-8");
|
|
289036
288366
|
content = normalizeLineEndings(content);
|
|
289037
|
-
return
|
|
288367
|
+
return md5__WEBPACK_IMPORTED_MODULE_5___default()(content);
|
|
289038
288368
|
}
|
|
289039
288369
|
|
|
289040
|
-
return
|
|
288370
|
+
return md5_file__WEBPACK_IMPORTED_MODULE_6___default()(depFilePath);
|
|
289041
288371
|
}));
|
|
289042
|
-
return
|
|
288372
|
+
return md5__WEBPACK_IMPORTED_MODULE_5___default()(hashes.join(""));
|
|
289043
288373
|
}
|
|
289044
288374
|
async function readSugarFiles(formSugarDirectoryPath, references) {
|
|
289045
288375
|
const result = {
|
|
289046
|
-
"./index": await (
|
|
288376
|
+
"./index": await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8")
|
|
289047
288377
|
};
|
|
289048
288378
|
|
|
289049
288379
|
for (const sugarPath of references.sugarFiles) {
|
|
289050
|
-
const sugarModuleContent = await (
|
|
288380
|
+
const sugarModuleContent = await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, sugarPath + ".sugar.xml"), "utf-8");
|
|
289051
288381
|
result[sugarPath] = sugarModuleContent;
|
|
289052
288382
|
}
|
|
289053
288383
|
|
|
@@ -289059,11 +288389,11 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
|
289059
288389
|
return {};
|
|
289060
288390
|
}
|
|
289061
288391
|
|
|
289062
|
-
const fileNames = await
|
|
288392
|
+
const fileNames = await recursive_readdir__WEBPACK_IMPORTED_MODULE_7___default()(formSugarDirectoryPath);
|
|
289063
288393
|
const result = {};
|
|
289064
288394
|
|
|
289065
288395
|
for (const fileName of fileNames) {
|
|
289066
|
-
const sugarModuleContent = await (
|
|
288396
|
+
const sugarModuleContent = await readFileAsync(fileName, "utf-8");
|
|
289067
288397
|
const relativeFileName = ("controls\\" + fileName.replace(formSugarDirectoryPath + "\\", "")).replace(/\\/g, "/");
|
|
289068
288398
|
result[relativeFileName] = sugarModuleContent;
|
|
289069
288399
|
}
|
|
@@ -289071,23 +288401,23 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
|
289071
288401
|
return result;
|
|
289072
288402
|
}
|
|
289073
288403
|
|
|
289074
|
-
async function
|
|
289075
|
-
|
|
288404
|
+
async function readAutoCalcFiles(formAutoCalcPath) {
|
|
288405
|
+
try {
|
|
288406
|
+
const files = await readdirAsync(formAutoCalcPath);
|
|
288407
|
+
const jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
288408
|
+
return Promise.all(jsFiles.map(filename => readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formAutoCalcPath, filename), "utf-8")));
|
|
288409
|
+
} catch (ignoreError) {
|
|
289076
288410
|
return [];
|
|
289077
288411
|
}
|
|
289078
|
-
|
|
289079
|
-
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(directoryPath);
|
|
289080
|
-
const jsFiles = files.filter(filename => fileNameTest.test(filename));
|
|
289081
|
-
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")));
|
|
289082
288412
|
}
|
|
289083
288413
|
|
|
289084
288414
|
async function readImportedFiles(rootPath) {
|
|
289085
288415
|
try {
|
|
289086
288416
|
const result = {};
|
|
289087
|
-
const files = await (
|
|
288417
|
+
const files = await readdirAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations"));
|
|
289088
288418
|
|
|
289089
288419
|
for (const fileName of files) {
|
|
289090
|
-
result["../validations/" + fileName] = await (
|
|
288420
|
+
result["../validations/" + fileName] = await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations", fileName), "utf-8");
|
|
289091
288421
|
}
|
|
289092
288422
|
|
|
289093
288423
|
return result;
|
|
@@ -289098,11 +288428,11 @@ async function readImportedFiles(rootPath) {
|
|
|
289098
288428
|
|
|
289099
288429
|
async function readJavaScriptFilesWithNames(formJavaScriptFilesPath) {
|
|
289100
288430
|
try {
|
|
289101
|
-
const files = await (
|
|
288431
|
+
const files = await readdirAsync(formJavaScriptFilesPath);
|
|
289102
288432
|
const jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
289103
288433
|
return Promise.all(jsFiles.map(async filename => ({
|
|
289104
288434
|
filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
|
|
289105
|
-
content: await (
|
|
288435
|
+
content: await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8")
|
|
289106
288436
|
})));
|
|
289107
288437
|
} catch (ignoreError) {
|
|
289108
288438
|
return [];
|
|
@@ -289113,7 +288443,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
289113
288443
|
let jsFiles;
|
|
289114
288444
|
|
|
289115
288445
|
try {
|
|
289116
|
-
const files = await (
|
|
288446
|
+
const files = await readdirAsync(formJavaScriptFilesPath);
|
|
289117
288447
|
jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
289118
288448
|
const result = [];
|
|
289119
288449
|
|
|
@@ -289121,7 +288451,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
289121
288451
|
result.push({
|
|
289122
288452
|
filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
|
|
289123
288453
|
// tslint:disable-next-line no-unsafe-any
|
|
289124
|
-
content: evalModule(await (
|
|
288454
|
+
content: evalModule(await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8"))
|
|
289125
288455
|
});
|
|
289126
288456
|
}
|
|
289127
288457
|
|
|
@@ -289132,16 +288462,16 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
289132
288462
|
}
|
|
289133
288463
|
|
|
289134
288464
|
function readSchemaRngFile(formSchemasPath, gfv) {
|
|
289135
|
-
return (
|
|
288465
|
+
return readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSchemasPath, `${gfv}.rng.xml`), "utf-8");
|
|
289136
288466
|
}
|
|
289137
288467
|
|
|
289138
288468
|
function readHooksFile(formDirectoryPath) {
|
|
289139
|
-
return (
|
|
288469
|
+
return readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formDirectoryPath, "hooks.js"), "utf-8").catch(() => "");
|
|
289140
288470
|
}
|
|
289141
288471
|
|
|
289142
288472
|
async function readFileSource(filePath, filename, defaultValue) {
|
|
289143
288473
|
try {
|
|
289144
|
-
return await (
|
|
288474
|
+
return await readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(filePath, filename), "utf-8");
|
|
289145
288475
|
} catch (ingoreError) {
|
|
289146
288476
|
return defaultValue;
|
|
289147
288477
|
}
|
|
@@ -289301,7 +288631,7 @@ class FLangValidationBuildContext {
|
|
|
289301
288631
|
}
|
|
289302
288632
|
|
|
289303
288633
|
getSchemaTypeInfo(bindingPath) {
|
|
289304
|
-
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath) : undefined;
|
|
288634
|
+
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath.toLegacyPath()) : undefined;
|
|
289305
288635
|
}
|
|
289306
288636
|
|
|
289307
288637
|
getTypeNode(node) {
|
|
@@ -289696,18 +289026,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289696
289026
|
|
|
289697
289027
|
|
|
289698
289028
|
class NormalizationRulesGenerator {
|
|
289699
|
-
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng,
|
|
289029
|
+
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, mathContainer, typesRegistry, useSchemaValidations, controlCustomizationContext) {
|
|
289700
289030
|
this.sugarRoot = void 0;
|
|
289701
289031
|
this.dataDeclarationHelper = void 0;
|
|
289702
289032
|
this.formSchemaRng = void 0;
|
|
289703
|
-
this.
|
|
289033
|
+
this.mathContainer = void 0;
|
|
289704
289034
|
this.typesRegistry = void 0;
|
|
289705
289035
|
this.controlCustomizationContext = void 0;
|
|
289706
289036
|
this.useSchemaValidations = void 0;
|
|
289707
289037
|
this.sugarRoot = sugarRoot;
|
|
289708
289038
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
289709
289039
|
this.formSchemaRng = formSchemaRng;
|
|
289710
|
-
this.
|
|
289040
|
+
this.mathContainer = mathContainer;
|
|
289711
289041
|
this.typesRegistry = typesRegistry;
|
|
289712
289042
|
this.useSchemaValidations = useSchemaValidations;
|
|
289713
289043
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
@@ -289737,7 +289067,9 @@ class NormalizationRulesGenerator {
|
|
|
289737
289067
|
}
|
|
289738
289068
|
|
|
289739
289069
|
*buildFormulaFLangRules() {
|
|
289740
|
-
for (const formula of this.formulas) {
|
|
289070
|
+
for (const formula of (_this$mathContainer$f = (_this$mathContainer = this.mathContainer) === null || _this$mathContainer === void 0 ? void 0 : (_this$mathContainer$f2 = _this$mathContainer.formulas) === null || _this$mathContainer$f2 === void 0 ? void 0 : _this$mathContainer$f2.items) !== null && _this$mathContainer$f !== void 0 ? _this$mathContainer$f : []) {
|
|
289071
|
+
var _this$mathContainer$f, _this$mathContainer, _this$mathContainer$f2;
|
|
289072
|
+
|
|
289741
289073
|
yield* this.buildFormulaFlashRule(formula);
|
|
289742
289074
|
}
|
|
289743
289075
|
}
|
|
@@ -293203,14 +292535,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293203
292535
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
293204
292536
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
293205
292537
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
293206
|
-
/* harmony import */ var
|
|
292538
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
292539
|
+
/* harmony import */ var _AddPageButtonNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AddPageButtonNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AddPageButton/AddPageButtonNode.ts");
|
|
292540
|
+
|
|
293207
292541
|
|
|
293208
292542
|
|
|
293209
292543
|
|
|
293210
292544
|
|
|
293211
292545
|
class AddPageButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
293212
292546
|
static getAcceptNodeClass() {
|
|
293213
|
-
return
|
|
292547
|
+
return _AddPageButtonNode__WEBPACK_IMPORTED_MODULE_4__.AddPageButtonNode;
|
|
293214
292548
|
}
|
|
293215
292549
|
|
|
293216
292550
|
*doTraverseChildren() {// no children
|
|
@@ -293225,16 +292559,11 @@ class AddPageButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
293225
292559
|
}
|
|
293226
292560
|
|
|
293227
292561
|
doConvert(context) {
|
|
293228
|
-
|
|
293229
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("AddPageButton");
|
|
293230
|
-
const page = this.getParentPage();
|
|
293231
|
-
|
|
293232
|
-
if (page != undefined) {
|
|
293233
|
-
markupBuilder.prop(x => x.tid).set(`${page.id}_add_page_button`);
|
|
293234
|
-
} else {
|
|
293235
|
-
throw new Error("Sugar element `addPageButton` should be used inside `page` element");
|
|
293236
|
-
}
|
|
292562
|
+
var _this$getParentPage$i, _this$getParentPage;
|
|
293237
292563
|
|
|
292564
|
+
const node = this.getCurrentNodeAs(_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_4__.AddPageButtonNode);
|
|
292565
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("AddPageButton");
|
|
292566
|
+
markupBuilder.prop(x => x.unitId).set((_this$getParentPage$i = (_this$getParentPage = this.getParentPage()) === null || _this$getParentPage === void 0 ? void 0 : _this$getParentPage.id) !== null && _this$getParentPage$i !== void 0 ? _this$getParentPage$i : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.reject)("Sugar element `addPageButton` should be used inside `page` element"));
|
|
293238
292567
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
293239
292568
|
return markupBuilder.buildConverterResult();
|
|
293240
292569
|
}
|
|
@@ -298604,8 +297933,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
298604
297933
|
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
298605
297934
|
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
298606
297935
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
298607
|
-
|
|
298608
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _class4, _class5, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _dec25, _dec26, _class7, _class8, _descriptor23, _dec27, _dec28, _class10, _class11, _descriptor24, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _class13, _class14, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31;
|
|
297936
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _class4, _class5, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _dec24, _dec25, _class7, _class8, _descriptor22, _dec26, _dec27, _class10, _class11, _descriptor23, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _class13, _class14, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30;
|
|
298609
297937
|
|
|
298610
297938
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
298611
297939
|
|
|
@@ -298617,8 +297945,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
298617
297945
|
|
|
298618
297946
|
|
|
298619
297947
|
|
|
298620
|
-
|
|
298621
|
-
let SimpleTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/SimpleTable sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Множественная колонка: можно добавлять несколько строк внутри одной колонки`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Отключить редактирование для множественной колонки. Работает только если multiple=true`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Хинт на кнопке добавления строки в множественной колонке`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string), ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("colspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество объединенных колонок`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("empty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Рисует "x" в колонке`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество объединенных строк`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("center", "left", "right"), `Выравнивание по горизонтали`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("requiredempty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("indent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Отступ от левого края. Кратен 12px. Тоесть indent="2" -- отступ 24px`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, `Ширина колонки`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textTopPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Добавляет фиксированный отступ от верхнего края. Работает только при использовании в grid 'top'. Применяется, если в grid есть контролы, которые могут неадекватно выравниваться по базовой линии (например, textarea)`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Размер ячейки в относительных единицах`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class SimpleTableColumnNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
297948
|
+
let SimpleTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/SimpleTable sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Множественная колонка: можно добавлять несколько строк внутри одной колонки`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Отключить редактирование для множественной колонки. Работает только если multiple=true`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Хинт на кнопке добавления строки в множественной колонке`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string), ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("colspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество объединенных колонок`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("empty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Рисует "x" в колонке`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество объединенных строк`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("center", "left", "right"), `Выравнивание по горизонтали`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("requiredempty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("indent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Отступ от левого края. Кратен 12px. Тоесть indent="2" -- отступ 24px`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, `Ширина колонки`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textTopPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Добавляет фиксированный отступ от верхнего края. Работает только при использовании в grid 'top'. Применяется, если в grid есть контролы, которые могут неадекватно выравниваться по базовой линии (например, textarea)`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Размер ячейки в относительных единицах`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class SimpleTableColumnNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
298622
297949
|
constructor(...args) {
|
|
298623
297950
|
super(...args);
|
|
298624
297951
|
|
|
@@ -298628,31 +297955,29 @@ let SimpleTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
298628
297955
|
|
|
298629
297956
|
_initializerDefineProperty(this, "disabled", _descriptor3, this);
|
|
298630
297957
|
|
|
298631
|
-
_initializerDefineProperty(this, "
|
|
297958
|
+
_initializerDefineProperty(this, "hintOnAdd", _descriptor4, this);
|
|
298632
297959
|
|
|
298633
|
-
_initializerDefineProperty(this, "
|
|
297960
|
+
_initializerDefineProperty(this, "titles", _descriptor5, this);
|
|
298634
297961
|
|
|
298635
|
-
_initializerDefineProperty(this, "
|
|
298636
|
-
|
|
298637
|
-
_initializerDefineProperty(this, "colspan", _descriptor7, this);
|
|
297962
|
+
_initializerDefineProperty(this, "colspan", _descriptor6, this);
|
|
298638
297963
|
|
|
298639
|
-
_initializerDefineProperty(this, "empty",
|
|
297964
|
+
_initializerDefineProperty(this, "empty", _descriptor7, this);
|
|
298640
297965
|
|
|
298641
|
-
_initializerDefineProperty(this, "rowspan",
|
|
297966
|
+
_initializerDefineProperty(this, "rowspan", _descriptor8, this);
|
|
298642
297967
|
|
|
298643
|
-
_initializerDefineProperty(this, "horizontalAlign",
|
|
297968
|
+
_initializerDefineProperty(this, "horizontalAlign", _descriptor9, this);
|
|
298644
297969
|
|
|
298645
|
-
_initializerDefineProperty(this, "requiredempty",
|
|
297970
|
+
_initializerDefineProperty(this, "requiredempty", _descriptor10, this);
|
|
298646
297971
|
|
|
298647
|
-
_initializerDefineProperty(this, "indent",
|
|
297972
|
+
_initializerDefineProperty(this, "indent", _descriptor11, this);
|
|
298648
297973
|
|
|
298649
|
-
_initializerDefineProperty(this, "width",
|
|
297974
|
+
_initializerDefineProperty(this, "width", _descriptor12, this);
|
|
298650
297975
|
|
|
298651
|
-
_initializerDefineProperty(this, "textTopPadding",
|
|
297976
|
+
_initializerDefineProperty(this, "textTopPadding", _descriptor13, this);
|
|
298652
297977
|
|
|
298653
|
-
_initializerDefineProperty(this, "size",
|
|
297978
|
+
_initializerDefineProperty(this, "size", _descriptor14, this);
|
|
298654
297979
|
|
|
298655
|
-
_initializerDefineProperty(this, "children",
|
|
297980
|
+
_initializerDefineProperty(this, "children", _descriptor15, this);
|
|
298656
297981
|
}
|
|
298657
297982
|
|
|
298658
297983
|
getOwnPath() {
|
|
@@ -298680,167 +298005,162 @@ let SimpleTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
298680
298005
|
enumerable: true,
|
|
298681
298006
|
writable: true,
|
|
298682
298007
|
initializer: null
|
|
298683
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
298684
|
-
configurable: true,
|
|
298685
|
-
enumerable: true,
|
|
298686
|
-
writable: true,
|
|
298687
|
-
initializer: null
|
|
298688
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec6], {
|
|
298008
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec5], {
|
|
298689
298009
|
configurable: true,
|
|
298690
298010
|
enumerable: true,
|
|
298691
298011
|
writable: true,
|
|
298692
298012
|
initializer: null
|
|
298693
|
-
}),
|
|
298013
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "titles", [_dec6], {
|
|
298694
298014
|
configurable: true,
|
|
298695
298015
|
enumerable: true,
|
|
298696
298016
|
writable: true,
|
|
298697
298017
|
initializer: null
|
|
298698
|
-
}),
|
|
298018
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "colspan", [_dec7], {
|
|
298699
298019
|
configurable: true,
|
|
298700
298020
|
enumerable: true,
|
|
298701
298021
|
writable: true,
|
|
298702
298022
|
initializer: null
|
|
298703
|
-
}),
|
|
298023
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "empty", [_dec8], {
|
|
298704
298024
|
configurable: true,
|
|
298705
298025
|
enumerable: true,
|
|
298706
298026
|
writable: true,
|
|
298707
298027
|
initializer: null
|
|
298708
|
-
}),
|
|
298028
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "rowspan", [_dec9], {
|
|
298709
298029
|
configurable: true,
|
|
298710
298030
|
enumerable: true,
|
|
298711
298031
|
writable: true,
|
|
298712
298032
|
initializer: null
|
|
298713
|
-
}),
|
|
298033
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "horizontalAlign", [_dec10], {
|
|
298714
298034
|
configurable: true,
|
|
298715
298035
|
enumerable: true,
|
|
298716
298036
|
writable: true,
|
|
298717
298037
|
initializer: null
|
|
298718
|
-
}),
|
|
298038
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "requiredempty", [_dec11], {
|
|
298719
298039
|
configurable: true,
|
|
298720
298040
|
enumerable: true,
|
|
298721
298041
|
writable: true,
|
|
298722
298042
|
initializer: null
|
|
298723
|
-
}),
|
|
298043
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "indent", [_dec12], {
|
|
298724
298044
|
configurable: true,
|
|
298725
298045
|
enumerable: true,
|
|
298726
298046
|
writable: true,
|
|
298727
298047
|
initializer: null
|
|
298728
|
-
}),
|
|
298048
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "width", [_dec13], {
|
|
298729
298049
|
configurable: true,
|
|
298730
298050
|
enumerable: true,
|
|
298731
298051
|
writable: true,
|
|
298732
298052
|
initializer: null
|
|
298733
|
-
}),
|
|
298053
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "textTopPadding", [_dec14], {
|
|
298734
298054
|
configurable: true,
|
|
298735
298055
|
enumerable: true,
|
|
298736
298056
|
writable: true,
|
|
298737
298057
|
initializer: null
|
|
298738
|
-
}),
|
|
298058
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "size", [_dec15], {
|
|
298739
298059
|
configurable: true,
|
|
298740
298060
|
enumerable: true,
|
|
298741
298061
|
writable: true,
|
|
298742
298062
|
initializer: null
|
|
298743
|
-
}),
|
|
298063
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec16], {
|
|
298744
298064
|
configurable: true,
|
|
298745
298065
|
enumerable: true,
|
|
298746
298066
|
writable: true,
|
|
298747
298067
|
initializer: null
|
|
298748
298068
|
})), _class2)) || _class);
|
|
298749
|
-
let SimpleTableRowNode = (
|
|
298069
|
+
let SimpleTableRowNode = (_dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/SimpleTable sync recursive .md$")), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("borderBottom", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("kind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("head", "hr"), ``), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("subkind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("numbers"), ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("column", [SimpleTableColumnNode]), _dec17(_class4 = (_class5 = class SimpleTableRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
298750
298070
|
constructor(...args) {
|
|
298751
298071
|
super(...args);
|
|
298752
298072
|
|
|
298753
|
-
_initializerDefineProperty(this, "dataScope",
|
|
298073
|
+
_initializerDefineProperty(this, "dataScope", _descriptor16, this);
|
|
298754
298074
|
|
|
298755
|
-
_initializerDefineProperty(this, "optional",
|
|
298075
|
+
_initializerDefineProperty(this, "optional", _descriptor17, this);
|
|
298756
298076
|
|
|
298757
|
-
_initializerDefineProperty(this, "borderBottom",
|
|
298077
|
+
_initializerDefineProperty(this, "borderBottom", _descriptor18, this);
|
|
298758
298078
|
|
|
298759
|
-
_initializerDefineProperty(this, "kind",
|
|
298079
|
+
_initializerDefineProperty(this, "kind", _descriptor19, this);
|
|
298760
298080
|
|
|
298761
|
-
_initializerDefineProperty(this, "subkind",
|
|
298081
|
+
_initializerDefineProperty(this, "subkind", _descriptor20, this);
|
|
298762
298082
|
|
|
298763
|
-
_initializerDefineProperty(this, "columns",
|
|
298083
|
+
_initializerDefineProperty(this, "columns", _descriptor21, this);
|
|
298764
298084
|
}
|
|
298765
298085
|
|
|
298766
298086
|
getOwnPath() {
|
|
298767
298087
|
return this.dataScope.getOwnPath();
|
|
298768
298088
|
}
|
|
298769
298089
|
|
|
298770
|
-
}, (
|
|
298090
|
+
}, (_descriptor16 = _applyDecoratedDescriptor(_class5.prototype, "dataScope", [_dec18], {
|
|
298771
298091
|
configurable: true,
|
|
298772
298092
|
enumerable: true,
|
|
298773
298093
|
writable: true,
|
|
298774
298094
|
initializer: null
|
|
298775
|
-
}),
|
|
298095
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, "optional", [_dec19], {
|
|
298776
298096
|
configurable: true,
|
|
298777
298097
|
enumerable: true,
|
|
298778
298098
|
writable: true,
|
|
298779
298099
|
initializer: null
|
|
298780
|
-
}),
|
|
298100
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, "borderBottom", [_dec20], {
|
|
298781
298101
|
configurable: true,
|
|
298782
298102
|
enumerable: true,
|
|
298783
298103
|
writable: true,
|
|
298784
298104
|
initializer: null
|
|
298785
|
-
}),
|
|
298105
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, "kind", [_dec21], {
|
|
298786
298106
|
configurable: true,
|
|
298787
298107
|
enumerable: true,
|
|
298788
298108
|
writable: true,
|
|
298789
298109
|
initializer: null
|
|
298790
|
-
}),
|
|
298110
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, "subkind", [_dec22], {
|
|
298791
298111
|
configurable: true,
|
|
298792
298112
|
enumerable: true,
|
|
298793
298113
|
writable: true,
|
|
298794
298114
|
initializer: null
|
|
298795
|
-
}),
|
|
298115
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class5.prototype, "columns", [_dec23], {
|
|
298796
298116
|
configurable: true,
|
|
298797
298117
|
enumerable: true,
|
|
298798
298118
|
writable: true,
|
|
298799
298119
|
initializer: null
|
|
298800
298120
|
})), _class5)) || _class4);
|
|
298801
|
-
let SimpleTableColgroupColumnNode = (
|
|
298121
|
+
let SimpleTableColgroupColumnNode = (_dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("col", ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec24(_class7 = (_class8 = class SimpleTableColgroupColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
298802
298122
|
constructor(...args) {
|
|
298803
298123
|
super(...args);
|
|
298804
298124
|
|
|
298805
|
-
_initializerDefineProperty(this, "width",
|
|
298125
|
+
_initializerDefineProperty(this, "width", _descriptor22, this);
|
|
298806
298126
|
}
|
|
298807
298127
|
|
|
298808
|
-
}, (
|
|
298128
|
+
}, (_descriptor22 = _applyDecoratedDescriptor(_class8.prototype, "width", [_dec25], {
|
|
298809
298129
|
configurable: true,
|
|
298810
298130
|
enumerable: true,
|
|
298811
298131
|
writable: true,
|
|
298812
298132
|
initializer: null
|
|
298813
298133
|
})), _class8)) || _class7);
|
|
298814
|
-
let SimpleTableColgroupNode = (
|
|
298134
|
+
let SimpleTableColgroupNode = (_dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("colgroup", ``), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("col", [SimpleTableColgroupColumnNode]), _dec26(_class10 = (_class11 = class SimpleTableColgroupNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
298815
298135
|
constructor(...args) {
|
|
298816
298136
|
super(...args);
|
|
298817
298137
|
|
|
298818
|
-
_initializerDefineProperty(this, "cols",
|
|
298138
|
+
_initializerDefineProperty(this, "cols", _descriptor23, this);
|
|
298819
298139
|
}
|
|
298820
298140
|
|
|
298821
|
-
}, (
|
|
298141
|
+
}, (_descriptor23 = _applyDecoratedDescriptor(_class11.prototype, "cols", [_dec27], {
|
|
298822
298142
|
configurable: true,
|
|
298823
298143
|
enumerable: true,
|
|
298824
298144
|
writable: true,
|
|
298825
298145
|
initializer: null
|
|
298826
298146
|
})), _class11)) || _class10);
|
|
298827
|
-
let SimpleTableNode = (
|
|
298147
|
+
let SimpleTableNode = (_dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("table", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/SimpleTable sync recursive .md$"), x => !(x.boolAttr("sticky") || x.getFirstChild("multiline") != undefined) && !x.boolAttr("crossfit")), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("stickyHeader", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("grayColumn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("baseline", "sub", "super", "text-bottom", "text-top", "middle", "top", "bottom"), ``), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("colgroup", [SimpleTableColgroupNode]), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("row", [SimpleTableRowNode]), _dec28(_class13 = (_class14 = class SimpleTableNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
298828
298148
|
constructor(...args) {
|
|
298829
298149
|
super(...args);
|
|
298830
298150
|
|
|
298831
|
-
_initializerDefineProperty(this, "stickyHeader",
|
|
298151
|
+
_initializerDefineProperty(this, "stickyHeader", _descriptor24, this);
|
|
298832
298152
|
|
|
298833
|
-
_initializerDefineProperty(this, "dataScope",
|
|
298153
|
+
_initializerDefineProperty(this, "dataScope", _descriptor25, this);
|
|
298834
298154
|
|
|
298835
|
-
_initializerDefineProperty(this, "optional",
|
|
298155
|
+
_initializerDefineProperty(this, "optional", _descriptor26, this);
|
|
298836
298156
|
|
|
298837
|
-
_initializerDefineProperty(this, "grayColumn",
|
|
298157
|
+
_initializerDefineProperty(this, "grayColumn", _descriptor27, this);
|
|
298838
298158
|
|
|
298839
|
-
_initializerDefineProperty(this, "align",
|
|
298159
|
+
_initializerDefineProperty(this, "align", _descriptor28, this);
|
|
298840
298160
|
|
|
298841
|
-
_initializerDefineProperty(this, "colgroup",
|
|
298161
|
+
_initializerDefineProperty(this, "colgroup", _descriptor29, this);
|
|
298842
298162
|
|
|
298843
|
-
_initializerDefineProperty(this, "rows",
|
|
298163
|
+
_initializerDefineProperty(this, "rows", _descriptor30, this);
|
|
298844
298164
|
}
|
|
298845
298165
|
|
|
298846
298166
|
getOwnPath() {
|
|
@@ -298855,37 +298175,37 @@ let SimpleTableNode = (_dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
298855
298175
|
return this.rows.filter(row => row.kind == undefined || row.kind === "hr");
|
|
298856
298176
|
}
|
|
298857
298177
|
|
|
298858
|
-
}, (
|
|
298178
|
+
}, (_descriptor24 = _applyDecoratedDescriptor(_class14.prototype, "stickyHeader", [_dec29], {
|
|
298859
298179
|
configurable: true,
|
|
298860
298180
|
enumerable: true,
|
|
298861
298181
|
writable: true,
|
|
298862
298182
|
initializer: null
|
|
298863
|
-
}),
|
|
298183
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class14.prototype, "dataScope", [_dec30], {
|
|
298864
298184
|
configurable: true,
|
|
298865
298185
|
enumerable: true,
|
|
298866
298186
|
writable: true,
|
|
298867
298187
|
initializer: null
|
|
298868
|
-
}),
|
|
298188
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class14.prototype, "optional", [_dec31], {
|
|
298869
298189
|
configurable: true,
|
|
298870
298190
|
enumerable: true,
|
|
298871
298191
|
writable: true,
|
|
298872
298192
|
initializer: null
|
|
298873
|
-
}),
|
|
298193
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class14.prototype, "grayColumn", [_dec32], {
|
|
298874
298194
|
configurable: true,
|
|
298875
298195
|
enumerable: true,
|
|
298876
298196
|
writable: true,
|
|
298877
298197
|
initializer: null
|
|
298878
|
-
}),
|
|
298198
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class14.prototype, "align", [_dec33], {
|
|
298879
298199
|
configurable: true,
|
|
298880
298200
|
enumerable: true,
|
|
298881
298201
|
writable: true,
|
|
298882
298202
|
initializer: null
|
|
298883
|
-
}),
|
|
298203
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class14.prototype, "colgroup", [_dec34], {
|
|
298884
298204
|
configurable: true,
|
|
298885
298205
|
enumerable: true,
|
|
298886
298206
|
writable: true,
|
|
298887
298207
|
initializer: null
|
|
298888
|
-
}),
|
|
298208
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class14.prototype, "rows", [_dec35], {
|
|
298889
298209
|
configurable: true,
|
|
298890
298210
|
enumerable: true,
|
|
298891
298211
|
writable: true,
|
|
@@ -300196,8 +299516,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300196
299516
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
300197
299517
|
/* harmony import */ var _Multilinefield_GetPluralTitles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Multilinefield/GetPluralTitles */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/Multilinefield/GetPluralTitles.ts");
|
|
300198
299518
|
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
300199
|
-
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
300200
|
-
|
|
300201
299519
|
|
|
300202
299520
|
|
|
300203
299521
|
|
|
@@ -300224,15 +299542,6 @@ class ColumnConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.S
|
|
|
300224
299542
|
multiLineFieldMarkupBuilder.prop(x => x.backgroundColor).set("#f3f3f3");
|
|
300225
299543
|
multiLineFieldMarkupBuilder.prop(x => x.hintOnAdd).set(node.hintOnAdd);
|
|
300226
299544
|
multiLineFieldMarkupBuilder.prop(x => x.disableButtons).set(node.disabled);
|
|
300227
|
-
|
|
300228
|
-
if (node.disabled2 != undefined) {
|
|
300229
|
-
multiLineFieldMarkupBuilder.prop(x => x.disableButtons2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
300230
|
-
|
|
300231
|
-
if (this.getLegacyNode().getParent() != undefined) {
|
|
300232
|
-
multiLineFieldMarkupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
300233
|
-
}
|
|
300234
|
-
}
|
|
300235
|
-
|
|
300236
299545
|
return multiLineFieldMarkupBuilder.buildConverterResult();
|
|
300237
299546
|
} else {
|
|
300238
299547
|
if (node.disabled != undefined) {
|
|
@@ -300929,7 +300238,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300929
300238
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
300930
300239
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
300931
300240
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
300932
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20,
|
|
300241
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _dec21, _dec22, _dec23, _dec24, _class4, _class5, _descriptor20, _descriptor21, _descriptor22, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _class7, _class8, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _dec39, _dec40, _dec41, _class10, _class11, _descriptor36, _descriptor37, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _class13, _class14, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _dec48, _dec49, _class16, _class17, _descriptor43, _dec50, _dec51, _class19, _class20, _descriptor44, _dec52, _dec53, _class22, _class23, _descriptor45, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _class25, _class26, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56, _descriptor57, _descriptor58, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _descriptor64, _descriptor65;
|
|
300933
300242
|
|
|
300934
300243
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
300935
300244
|
|
|
@@ -300943,7 +300252,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
300943
300252
|
|
|
300944
300253
|
|
|
300945
300254
|
|
|
300946
|
-
let CrossfitTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Отключить редактирование для множественной колонки. Работает только если multiple=true`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.
|
|
300255
|
+
let CrossfitTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Отключить редактирование для множественной колонки. Работает только если multiple=true`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("className", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("widths", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Typo), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string), ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("groupText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("key", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("colspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hiddenGroup", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("empty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("center", "left", "right"), ``), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("requiredempty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("indent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("1", "2", "3", "4", "5"), ``), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("grouped", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Поле генериться в препроцессоре`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class CrossfitTableColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300947
300256
|
constructor(...args) {
|
|
300948
300257
|
super(...args);
|
|
300949
300258
|
|
|
@@ -300953,39 +300262,37 @@ let CrossfitTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
300953
300262
|
|
|
300954
300263
|
_initializerDefineProperty(this, "disabled", _descriptor3, this);
|
|
300955
300264
|
|
|
300956
|
-
_initializerDefineProperty(this, "
|
|
300957
|
-
|
|
300958
|
-
_initializerDefineProperty(this, "className", _descriptor5, this);
|
|
300265
|
+
_initializerDefineProperty(this, "className", _descriptor4, this);
|
|
300959
300266
|
|
|
300960
|
-
_initializerDefineProperty(this, "widths",
|
|
300267
|
+
_initializerDefineProperty(this, "widths", _descriptor5, this);
|
|
300961
300268
|
|
|
300962
|
-
_initializerDefineProperty(this, "titles",
|
|
300269
|
+
_initializerDefineProperty(this, "titles", _descriptor6, this);
|
|
300963
300270
|
|
|
300964
|
-
_initializerDefineProperty(this, "hintOnAdd",
|
|
300271
|
+
_initializerDefineProperty(this, "hintOnAdd", _descriptor7, this);
|
|
300965
300272
|
|
|
300966
|
-
_initializerDefineProperty(this, "groupText",
|
|
300273
|
+
_initializerDefineProperty(this, "groupText", _descriptor8, this);
|
|
300967
300274
|
|
|
300968
|
-
_initializerDefineProperty(this, "key",
|
|
300275
|
+
_initializerDefineProperty(this, "key", _descriptor9, this);
|
|
300969
300276
|
|
|
300970
|
-
_initializerDefineProperty(this, "colspan",
|
|
300277
|
+
_initializerDefineProperty(this, "colspan", _descriptor10, this);
|
|
300971
300278
|
|
|
300972
|
-
_initializerDefineProperty(this, "hiddenGroup",
|
|
300279
|
+
_initializerDefineProperty(this, "hiddenGroup", _descriptor11, this);
|
|
300973
300280
|
|
|
300974
|
-
_initializerDefineProperty(this, "empty",
|
|
300281
|
+
_initializerDefineProperty(this, "empty", _descriptor12, this);
|
|
300975
300282
|
|
|
300976
|
-
_initializerDefineProperty(this, "width",
|
|
300283
|
+
_initializerDefineProperty(this, "width", _descriptor13, this);
|
|
300977
300284
|
|
|
300978
|
-
_initializerDefineProperty(this, "rowspan",
|
|
300285
|
+
_initializerDefineProperty(this, "rowspan", _descriptor14, this);
|
|
300979
300286
|
|
|
300980
|
-
_initializerDefineProperty(this, "horizontalAlign",
|
|
300287
|
+
_initializerDefineProperty(this, "horizontalAlign", _descriptor15, this);
|
|
300981
300288
|
|
|
300982
|
-
_initializerDefineProperty(this, "requiredempty",
|
|
300289
|
+
_initializerDefineProperty(this, "requiredempty", _descriptor16, this);
|
|
300983
300290
|
|
|
300984
|
-
_initializerDefineProperty(this, "indent",
|
|
300291
|
+
_initializerDefineProperty(this, "indent", _descriptor17, this);
|
|
300985
300292
|
|
|
300986
|
-
_initializerDefineProperty(this, "grouped",
|
|
300293
|
+
_initializerDefineProperty(this, "grouped", _descriptor18, this);
|
|
300987
300294
|
|
|
300988
|
-
_initializerDefineProperty(this, "children",
|
|
300295
|
+
_initializerDefineProperty(this, "children", _descriptor19, this);
|
|
300989
300296
|
}
|
|
300990
300297
|
|
|
300991
300298
|
getOwnPath() {
|
|
@@ -301013,148 +300320,143 @@ let CrossfitTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
301013
300320
|
enumerable: true,
|
|
301014
300321
|
writable: true,
|
|
301015
300322
|
initializer: null
|
|
301016
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301017
|
-
configurable: true,
|
|
301018
|
-
enumerable: true,
|
|
301019
|
-
writable: true,
|
|
301020
|
-
initializer: null
|
|
301021
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "className", [_dec6], {
|
|
300323
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "className", [_dec5], {
|
|
301022
300324
|
configurable: true,
|
|
301023
300325
|
enumerable: true,
|
|
301024
300326
|
writable: true,
|
|
301025
300327
|
initializer: null
|
|
301026
|
-
}),
|
|
300328
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "widths", [_dec6], {
|
|
301027
300329
|
configurable: true,
|
|
301028
300330
|
enumerable: true,
|
|
301029
300331
|
writable: true,
|
|
301030
300332
|
initializer: null
|
|
301031
|
-
}),
|
|
300333
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "titles", [_dec7], {
|
|
301032
300334
|
configurable: true,
|
|
301033
300335
|
enumerable: true,
|
|
301034
300336
|
writable: true,
|
|
301035
300337
|
initializer: null
|
|
301036
|
-
}),
|
|
300338
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec8], {
|
|
301037
300339
|
configurable: true,
|
|
301038
300340
|
enumerable: true,
|
|
301039
300341
|
writable: true,
|
|
301040
300342
|
initializer: null
|
|
301041
|
-
}),
|
|
300343
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "groupText", [_dec9], {
|
|
301042
300344
|
configurable: true,
|
|
301043
300345
|
enumerable: true,
|
|
301044
300346
|
writable: true,
|
|
301045
300347
|
initializer: null
|
|
301046
|
-
}),
|
|
300348
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "key", [_dec10], {
|
|
301047
300349
|
configurable: true,
|
|
301048
300350
|
enumerable: true,
|
|
301049
300351
|
writable: true,
|
|
301050
300352
|
initializer: null
|
|
301051
|
-
}),
|
|
300353
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "colspan", [_dec11], {
|
|
301052
300354
|
configurable: true,
|
|
301053
300355
|
enumerable: true,
|
|
301054
300356
|
writable: true,
|
|
301055
300357
|
initializer: null
|
|
301056
|
-
}),
|
|
300358
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "hiddenGroup", [_dec12], {
|
|
301057
300359
|
configurable: true,
|
|
301058
300360
|
enumerable: true,
|
|
301059
300361
|
writable: true,
|
|
301060
300362
|
initializer: null
|
|
301061
|
-
}),
|
|
300363
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "empty", [_dec13], {
|
|
301062
300364
|
configurable: true,
|
|
301063
300365
|
enumerable: true,
|
|
301064
300366
|
writable: true,
|
|
301065
300367
|
initializer: null
|
|
301066
|
-
}),
|
|
300368
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "width", [_dec14], {
|
|
301067
300369
|
configurable: true,
|
|
301068
300370
|
enumerable: true,
|
|
301069
300371
|
writable: true,
|
|
301070
300372
|
initializer: null
|
|
301071
|
-
}),
|
|
300373
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "rowspan", [_dec15], {
|
|
301072
300374
|
configurable: true,
|
|
301073
300375
|
enumerable: true,
|
|
301074
300376
|
writable: true,
|
|
301075
300377
|
initializer: null
|
|
301076
|
-
}),
|
|
300378
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "horizontalAlign", [_dec16], {
|
|
301077
300379
|
configurable: true,
|
|
301078
300380
|
enumerable: true,
|
|
301079
300381
|
writable: true,
|
|
301080
300382
|
initializer: null
|
|
301081
|
-
}),
|
|
300383
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "requiredempty", [_dec17], {
|
|
301082
300384
|
configurable: true,
|
|
301083
300385
|
enumerable: true,
|
|
301084
300386
|
writable: true,
|
|
301085
300387
|
initializer: null
|
|
301086
|
-
}),
|
|
300388
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "indent", [_dec18], {
|
|
301087
300389
|
configurable: true,
|
|
301088
300390
|
enumerable: true,
|
|
301089
300391
|
writable: true,
|
|
301090
300392
|
initializer: null
|
|
301091
|
-
}),
|
|
300393
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "grouped", [_dec19], {
|
|
301092
300394
|
configurable: true,
|
|
301093
300395
|
enumerable: true,
|
|
301094
300396
|
writable: true,
|
|
301095
300397
|
initializer: null
|
|
301096
|
-
}),
|
|
300398
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec20], {
|
|
301097
300399
|
configurable: true,
|
|
301098
300400
|
enumerable: true,
|
|
301099
300401
|
writable: true,
|
|
301100
300402
|
initializer: null
|
|
301101
300403
|
})), _class2)) || _class);
|
|
301102
|
-
let CrossfitTableRowNode = (
|
|
300404
|
+
let CrossfitTableRowNode = (_dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("kind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("head"), `kind="head" - шапка таблицы`), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("subkind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("numbers"), `subkind="numbers" - строка с нумерацией столбцов`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("column", [CrossfitTableColumnNode]), _dec21(_class4 = (_class5 = class CrossfitTableRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
301103
300405
|
constructor(...args) {
|
|
301104
300406
|
super(...args);
|
|
301105
300407
|
|
|
301106
|
-
_initializerDefineProperty(this, "kind",
|
|
300408
|
+
_initializerDefineProperty(this, "kind", _descriptor20, this);
|
|
301107
300409
|
|
|
301108
|
-
_initializerDefineProperty(this, "subkind",
|
|
300410
|
+
_initializerDefineProperty(this, "subkind", _descriptor21, this);
|
|
301109
300411
|
|
|
301110
|
-
_initializerDefineProperty(this, "columns",
|
|
300412
|
+
_initializerDefineProperty(this, "columns", _descriptor22, this);
|
|
301111
300413
|
}
|
|
301112
300414
|
|
|
301113
|
-
}, (
|
|
300415
|
+
}, (_descriptor20 = _applyDecoratedDescriptor(_class5.prototype, "kind", [_dec22], {
|
|
301114
300416
|
configurable: true,
|
|
301115
300417
|
enumerable: true,
|
|
301116
300418
|
writable: true,
|
|
301117
300419
|
initializer: null
|
|
301118
|
-
}),
|
|
300420
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class5.prototype, "subkind", [_dec23], {
|
|
301119
300421
|
configurable: true,
|
|
301120
300422
|
enumerable: true,
|
|
301121
300423
|
writable: true,
|
|
301122
300424
|
initializer: null
|
|
301123
|
-
}),
|
|
300425
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class5.prototype, "columns", [_dec24], {
|
|
301124
300426
|
configurable: true,
|
|
301125
300427
|
enumerable: true,
|
|
301126
300428
|
writable: true,
|
|
301127
300429
|
initializer: null
|
|
301128
300430
|
})), _class5)) || _class4);
|
|
301129
|
-
let MultilineNode = (
|
|
300431
|
+
let MultilineNode = (_dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("multiline", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("defaultChildren", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.arrayLiteral(), ``), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("focusByHotkey", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("instancesPerPage", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("pageStep", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `false - чтобы слева от раздела не было кнопки "Удалить"`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("row", [CrossfitTableRowNode]), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("addbutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, `Название кнопки при добавлении множественности`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("addType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("button", "link"), `Добавить строку м.б. как кнопка "button" или ссылка "link"`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("usepager", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `false - без пейджера (1-11, 12-22 - этого нет внизу страницы)`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("storeFilters", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Будут ли сохраняться фильтры для этого мультилайна между обнолениями страницы. По умолчанию -- нет`), _dec25(_class7 = (_class8 = class MultilineNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
301130
300432
|
constructor(...args) {
|
|
301131
300433
|
super(...args);
|
|
301132
300434
|
|
|
301133
|
-
_initializerDefineProperty(this, "dataScope",
|
|
300435
|
+
_initializerDefineProperty(this, "dataScope", _descriptor23, this);
|
|
301134
300436
|
|
|
301135
|
-
_initializerDefineProperty(this, "optional",
|
|
300437
|
+
_initializerDefineProperty(this, "optional", _descriptor24, this);
|
|
301136
300438
|
|
|
301137
|
-
_initializerDefineProperty(this, "defaultChildren",
|
|
300439
|
+
_initializerDefineProperty(this, "defaultChildren", _descriptor25, this);
|
|
301138
300440
|
|
|
301139
|
-
_initializerDefineProperty(this, "focusByHotkey",
|
|
300441
|
+
_initializerDefineProperty(this, "focusByHotkey", _descriptor26, this);
|
|
301140
300442
|
|
|
301141
|
-
_initializerDefineProperty(this, "instancesPerPage",
|
|
300443
|
+
_initializerDefineProperty(this, "instancesPerPage", _descriptor27, this);
|
|
301142
300444
|
|
|
301143
|
-
_initializerDefineProperty(this, "pageStep",
|
|
300445
|
+
_initializerDefineProperty(this, "pageStep", _descriptor28, this);
|
|
301144
300446
|
|
|
301145
|
-
_initializerDefineProperty(this, "removebutton",
|
|
300447
|
+
_initializerDefineProperty(this, "removebutton", _descriptor29, this);
|
|
301146
300448
|
|
|
301147
|
-
_initializerDefineProperty(this, "rowmenu",
|
|
300449
|
+
_initializerDefineProperty(this, "rowmenu", _descriptor30, this);
|
|
301148
300450
|
|
|
301149
|
-
_initializerDefineProperty(this, "rows",
|
|
300451
|
+
_initializerDefineProperty(this, "rows", _descriptor31, this);
|
|
301150
300452
|
|
|
301151
|
-
_initializerDefineProperty(this, "addbutton",
|
|
300453
|
+
_initializerDefineProperty(this, "addbutton", _descriptor32, this);
|
|
301152
300454
|
|
|
301153
|
-
_initializerDefineProperty(this, "addType",
|
|
300455
|
+
_initializerDefineProperty(this, "addType", _descriptor33, this);
|
|
301154
300456
|
|
|
301155
|
-
_initializerDefineProperty(this, "usepager",
|
|
300457
|
+
_initializerDefineProperty(this, "usepager", _descriptor34, this);
|
|
301156
300458
|
|
|
301157
|
-
_initializerDefineProperty(this, "storeFilters",
|
|
300459
|
+
_initializerDefineProperty(this, "storeFilters", _descriptor35, this);
|
|
301158
300460
|
}
|
|
301159
300461
|
|
|
301160
300462
|
getOwnPath() {
|
|
@@ -301165,219 +300467,219 @@ let MultilineNode = (_dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
|
|
|
301165
300467
|
return true;
|
|
301166
300468
|
}
|
|
301167
300469
|
|
|
301168
|
-
}, (
|
|
300470
|
+
}, (_descriptor23 = _applyDecoratedDescriptor(_class8.prototype, "dataScope", [_dec26], {
|
|
301169
300471
|
configurable: true,
|
|
301170
300472
|
enumerable: true,
|
|
301171
300473
|
writable: true,
|
|
301172
300474
|
initializer: null
|
|
301173
|
-
}),
|
|
300475
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class8.prototype, "optional", [_dec27], {
|
|
301174
300476
|
configurable: true,
|
|
301175
300477
|
enumerable: true,
|
|
301176
300478
|
writable: true,
|
|
301177
300479
|
initializer: null
|
|
301178
|
-
}),
|
|
300480
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class8.prototype, "defaultChildren", [_dec28], {
|
|
301179
300481
|
configurable: true,
|
|
301180
300482
|
enumerable: true,
|
|
301181
300483
|
writable: true,
|
|
301182
300484
|
initializer: null
|
|
301183
|
-
}),
|
|
300485
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class8.prototype, "focusByHotkey", [_dec29], {
|
|
301184
300486
|
configurable: true,
|
|
301185
300487
|
enumerable: true,
|
|
301186
300488
|
writable: true,
|
|
301187
300489
|
initializer: null
|
|
301188
|
-
}),
|
|
300490
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class8.prototype, "instancesPerPage", [_dec30], {
|
|
301189
300491
|
configurable: true,
|
|
301190
300492
|
enumerable: true,
|
|
301191
300493
|
writable: true,
|
|
301192
300494
|
initializer: null
|
|
301193
|
-
}),
|
|
300495
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class8.prototype, "pageStep", [_dec31], {
|
|
301194
300496
|
configurable: true,
|
|
301195
300497
|
enumerable: true,
|
|
301196
300498
|
writable: true,
|
|
301197
300499
|
initializer: null
|
|
301198
|
-
}),
|
|
300500
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class8.prototype, "removebutton", [_dec32], {
|
|
301199
300501
|
configurable: true,
|
|
301200
300502
|
enumerable: true,
|
|
301201
300503
|
writable: true,
|
|
301202
300504
|
initializer: null
|
|
301203
|
-
}),
|
|
300505
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class8.prototype, "rowmenu", [_dec33], {
|
|
301204
300506
|
configurable: true,
|
|
301205
300507
|
enumerable: true,
|
|
301206
300508
|
writable: true,
|
|
301207
300509
|
initializer: null
|
|
301208
|
-
}),
|
|
300510
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class8.prototype, "rows", [_dec34], {
|
|
301209
300511
|
configurable: true,
|
|
301210
300512
|
enumerable: true,
|
|
301211
300513
|
writable: true,
|
|
301212
300514
|
initializer: null
|
|
301213
|
-
}),
|
|
300515
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class8.prototype, "addbutton", [_dec35], {
|
|
301214
300516
|
configurable: true,
|
|
301215
300517
|
enumerable: true,
|
|
301216
300518
|
writable: true,
|
|
301217
300519
|
initializer: null
|
|
301218
|
-
}),
|
|
300520
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class8.prototype, "addType", [_dec36], {
|
|
301219
300521
|
configurable: true,
|
|
301220
300522
|
enumerable: true,
|
|
301221
300523
|
writable: true,
|
|
301222
300524
|
initializer: null
|
|
301223
|
-
}),
|
|
300525
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class8.prototype, "usepager", [_dec37], {
|
|
301224
300526
|
configurable: true,
|
|
301225
300527
|
enumerable: true,
|
|
301226
300528
|
writable: true,
|
|
301227
300529
|
initializer: null
|
|
301228
|
-
}),
|
|
300530
|
+
}), _descriptor35 = _applyDecoratedDescriptor(_class8.prototype, "storeFilters", [_dec38], {
|
|
301229
300531
|
configurable: true,
|
|
301230
300532
|
enumerable: true,
|
|
301231
300533
|
writable: true,
|
|
301232
300534
|
initializer: null
|
|
301233
300535
|
})), _class8)) || _class7);
|
|
301234
|
-
let CrossfitTableHeaderNode = (
|
|
300536
|
+
let CrossfitTableHeaderNode = (_dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("header", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("right"), ``), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec39(_class10 = (_class11 = class CrossfitTableHeaderNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
301235
300537
|
constructor(...args) {
|
|
301236
300538
|
super(...args);
|
|
301237
300539
|
|
|
301238
|
-
_initializerDefineProperty(this, "align",
|
|
300540
|
+
_initializerDefineProperty(this, "align", _descriptor36, this);
|
|
301239
300541
|
|
|
301240
|
-
_initializerDefineProperty(this, "children",
|
|
300542
|
+
_initializerDefineProperty(this, "children", _descriptor37, this);
|
|
301241
300543
|
}
|
|
301242
300544
|
|
|
301243
|
-
}, (
|
|
300545
|
+
}, (_descriptor36 = _applyDecoratedDescriptor(_class11.prototype, "align", [_dec40], {
|
|
301244
300546
|
configurable: true,
|
|
301245
300547
|
enumerable: true,
|
|
301246
300548
|
writable: true,
|
|
301247
300549
|
initializer: null
|
|
301248
|
-
}),
|
|
300550
|
+
}), _descriptor37 = _applyDecoratedDescriptor(_class11.prototype, "children", [_dec41], {
|
|
301249
300551
|
configurable: true,
|
|
301250
300552
|
enumerable: true,
|
|
301251
300553
|
writable: true,
|
|
301252
300554
|
initializer: null
|
|
301253
300555
|
})), _class11)) || _class10);
|
|
301254
|
-
let FilterInfoNode = (
|
|
300556
|
+
let FilterInfoNode = (_dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("filterinfo", `path - путь до multiline, по которому фильтруем`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataReferenceMixinNode), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multilinePath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `путь до multiline, по которому фильтруем`), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.stringArray, `массив строк для склонения единицы поиска (для корректного вывода с количеством найденных)`), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("notFoundText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, ` текст, который будет выводится, если после фильтрации ничего не найдено`), _dec42(_class13 = (_class14 = class FilterInfoNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
301255
300557
|
constructor(...args) {
|
|
301256
300558
|
super(...args);
|
|
301257
300559
|
|
|
301258
|
-
_initializerDefineProperty(this, "dataReference",
|
|
300560
|
+
_initializerDefineProperty(this, "dataReference", _descriptor38, this);
|
|
301259
300561
|
|
|
301260
|
-
_initializerDefineProperty(this, "multilinePath",
|
|
300562
|
+
_initializerDefineProperty(this, "multilinePath", _descriptor39, this);
|
|
301261
300563
|
|
|
301262
|
-
_initializerDefineProperty(this, "path",
|
|
300564
|
+
_initializerDefineProperty(this, "path", _descriptor40, this);
|
|
301263
300565
|
|
|
301264
|
-
_initializerDefineProperty(this, "titles",
|
|
300566
|
+
_initializerDefineProperty(this, "titles", _descriptor41, this);
|
|
301265
300567
|
|
|
301266
|
-
_initializerDefineProperty(this, "notFoundText",
|
|
300568
|
+
_initializerDefineProperty(this, "notFoundText", _descriptor42, this);
|
|
301267
300569
|
}
|
|
301268
300570
|
|
|
301269
300571
|
getOwnPath() {
|
|
301270
300572
|
return this.dataReference.getOwnPath();
|
|
301271
300573
|
}
|
|
301272
300574
|
|
|
301273
|
-
}, (
|
|
300575
|
+
}, (_descriptor38 = _applyDecoratedDescriptor(_class14.prototype, "dataReference", [_dec43], {
|
|
301274
300576
|
configurable: true,
|
|
301275
300577
|
enumerable: true,
|
|
301276
300578
|
writable: true,
|
|
301277
300579
|
initializer: null
|
|
301278
|
-
}),
|
|
300580
|
+
}), _descriptor39 = _applyDecoratedDescriptor(_class14.prototype, "multilinePath", [_dec44], {
|
|
301279
300581
|
configurable: true,
|
|
301280
300582
|
enumerable: true,
|
|
301281
300583
|
writable: true,
|
|
301282
300584
|
initializer: null
|
|
301283
|
-
}),
|
|
300585
|
+
}), _descriptor40 = _applyDecoratedDescriptor(_class14.prototype, "path", [_dec45], {
|
|
301284
300586
|
configurable: true,
|
|
301285
300587
|
enumerable: true,
|
|
301286
300588
|
writable: true,
|
|
301287
300589
|
initializer: null
|
|
301288
|
-
}),
|
|
300590
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class14.prototype, "titles", [_dec46], {
|
|
301289
300591
|
configurable: true,
|
|
301290
300592
|
enumerable: true,
|
|
301291
300593
|
writable: true,
|
|
301292
300594
|
initializer: null
|
|
301293
|
-
}),
|
|
300595
|
+
}), _descriptor42 = _applyDecoratedDescriptor(_class14.prototype, "notFoundText", [_dec47], {
|
|
301294
300596
|
configurable: true,
|
|
301295
300597
|
enumerable: true,
|
|
301296
300598
|
writable: true,
|
|
301297
300599
|
initializer: null
|
|
301298
300600
|
})), _class14)) || _class13);
|
|
301299
|
-
let CrossfitTableFooterNode = (
|
|
300601
|
+
let CrossfitTableFooterNode = (_dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("footer", ``), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec48(_class16 = (_class17 = class CrossfitTableFooterNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
301300
300602
|
constructor(...args) {
|
|
301301
300603
|
super(...args);
|
|
301302
300604
|
|
|
301303
|
-
_initializerDefineProperty(this, "children",
|
|
300605
|
+
_initializerDefineProperty(this, "children", _descriptor43, this);
|
|
301304
300606
|
}
|
|
301305
300607
|
|
|
301306
|
-
}, (
|
|
300608
|
+
}, (_descriptor43 = _applyDecoratedDescriptor(_class17.prototype, "children", [_dec49], {
|
|
301307
300609
|
configurable: true,
|
|
301308
300610
|
enumerable: true,
|
|
301309
300611
|
writable: true,
|
|
301310
300612
|
initializer: null
|
|
301311
300613
|
})), _class17)) || _class16);
|
|
301312
|
-
let CrossfitTableColgroupColumnNode = (
|
|
300614
|
+
let CrossfitTableColgroupColumnNode = (_dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("col", ``), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec50(_class19 = (_class20 = class CrossfitTableColgroupColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
301313
300615
|
constructor(...args) {
|
|
301314
300616
|
super(...args);
|
|
301315
300617
|
|
|
301316
|
-
_initializerDefineProperty(this, "width",
|
|
300618
|
+
_initializerDefineProperty(this, "width", _descriptor44, this);
|
|
301317
300619
|
}
|
|
301318
300620
|
|
|
301319
|
-
}, (
|
|
300621
|
+
}, (_descriptor44 = _applyDecoratedDescriptor(_class20.prototype, "width", [_dec51], {
|
|
301320
300622
|
configurable: true,
|
|
301321
300623
|
enumerable: true,
|
|
301322
300624
|
writable: true,
|
|
301323
300625
|
initializer: null
|
|
301324
300626
|
})), _class20)) || _class19);
|
|
301325
|
-
let CrossfitTableColgroupNode = (
|
|
300627
|
+
let CrossfitTableColgroupNode = (_dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("colgroup", ``), _dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("col", [CrossfitTableColgroupColumnNode]), _dec52(_class22 = (_class23 = class CrossfitTableColgroupNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
301326
300628
|
constructor(...args) {
|
|
301327
300629
|
super(...args);
|
|
301328
300630
|
|
|
301329
|
-
_initializerDefineProperty(this, "cols",
|
|
300631
|
+
_initializerDefineProperty(this, "cols", _descriptor45, this);
|
|
301330
300632
|
}
|
|
301331
300633
|
|
|
301332
|
-
}, (
|
|
300634
|
+
}, (_descriptor45 = _applyDecoratedDescriptor(_class23.prototype, "cols", [_dec53], {
|
|
301333
300635
|
configurable: true,
|
|
301334
300636
|
enumerable: true,
|
|
301335
300637
|
writable: true,
|
|
301336
300638
|
initializer: null
|
|
301337
300639
|
})), _class23)) || _class22);
|
|
301338
|
-
let CrossfitTableNode = (
|
|
300640
|
+
let CrossfitTableNode = (_dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("table", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$"), x => x.boolAttr("crossfit")), _dec55 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__.bindingPathLink)} данного элемента. Опционально, если не указан, то будет отображаться текст заданный внутри данного элемента`), _dec56 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `необязательность`), _dec57 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("offsetBottom", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec58 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("grayColumn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec59 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("sidebar", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec60 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("crossfit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec61 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("side", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec62 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec63 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `\"false\" - чтобы слева от раздела не было кнопки "Удалить"`), _dec64 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("sticky", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec65 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("doNotCopyPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.stringArray, ``), _dec66 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(["row", "multiline"], [CrossfitTableRowNode, MultilineNode]), _dec67 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("header", [CrossfitTableHeaderNode]), _dec68 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("colgroup", [CrossfitTableColgroupNode]), _dec69 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("filterinfo", [FilterInfoNode]), _dec70 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("loader", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, ``), _dec71 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("baseline", "top"), ``), _dec72 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("columnGrouping", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.object, ``), _dec73 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hiddenGroups", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.object, ``), _dec74 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("footer", [CrossfitTableFooterNode]), _dec54(_class25 = (_class26 = class CrossfitTableNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
301339
300641
|
constructor(...args) {
|
|
301340
300642
|
super(...args);
|
|
301341
300643
|
|
|
301342
|
-
_initializerDefineProperty(this, "path",
|
|
300644
|
+
_initializerDefineProperty(this, "path", _descriptor46, this);
|
|
301343
300645
|
|
|
301344
|
-
_initializerDefineProperty(this, "optional",
|
|
300646
|
+
_initializerDefineProperty(this, "optional", _descriptor47, this);
|
|
301345
300647
|
|
|
301346
|
-
_initializerDefineProperty(this, "offsetBottom",
|
|
300648
|
+
_initializerDefineProperty(this, "offsetBottom", _descriptor48, this);
|
|
301347
300649
|
|
|
301348
|
-
_initializerDefineProperty(this, "grayColumn",
|
|
300650
|
+
_initializerDefineProperty(this, "grayColumn", _descriptor49, this);
|
|
301349
300651
|
|
|
301350
|
-
_initializerDefineProperty(this, "sidebar",
|
|
300652
|
+
_initializerDefineProperty(this, "sidebar", _descriptor50, this);
|
|
301351
300653
|
|
|
301352
|
-
_initializerDefineProperty(this, "crossfit",
|
|
300654
|
+
_initializerDefineProperty(this, "crossfit", _descriptor51, this);
|
|
301353
300655
|
|
|
301354
|
-
_initializerDefineProperty(this, "side",
|
|
300656
|
+
_initializerDefineProperty(this, "side", _descriptor52, this);
|
|
301355
300657
|
|
|
301356
|
-
_initializerDefineProperty(this, "rowmenu",
|
|
300658
|
+
_initializerDefineProperty(this, "rowmenu", _descriptor53, this);
|
|
301357
300659
|
|
|
301358
|
-
_initializerDefineProperty(this, "removebutton",
|
|
300660
|
+
_initializerDefineProperty(this, "removebutton", _descriptor54, this);
|
|
301359
300661
|
|
|
301360
|
-
_initializerDefineProperty(this, "sticky",
|
|
300662
|
+
_initializerDefineProperty(this, "sticky", _descriptor55, this);
|
|
301361
300663
|
|
|
301362
|
-
_initializerDefineProperty(this, "doNotCopyPaths",
|
|
300664
|
+
_initializerDefineProperty(this, "doNotCopyPaths", _descriptor56, this);
|
|
301363
300665
|
|
|
301364
|
-
_initializerDefineProperty(this, "rows",
|
|
300666
|
+
_initializerDefineProperty(this, "rows", _descriptor57, this);
|
|
301365
300667
|
|
|
301366
|
-
_initializerDefineProperty(this, "header",
|
|
300668
|
+
_initializerDefineProperty(this, "header", _descriptor58, this);
|
|
301367
300669
|
|
|
301368
|
-
_initializerDefineProperty(this, "colgroup",
|
|
300670
|
+
_initializerDefineProperty(this, "colgroup", _descriptor59, this);
|
|
301369
300671
|
|
|
301370
|
-
_initializerDefineProperty(this, "filterinfo",
|
|
300672
|
+
_initializerDefineProperty(this, "filterinfo", _descriptor60, this);
|
|
301371
300673
|
|
|
301372
|
-
_initializerDefineProperty(this, "loader",
|
|
300674
|
+
_initializerDefineProperty(this, "loader", _descriptor61, this);
|
|
301373
300675
|
|
|
301374
|
-
_initializerDefineProperty(this, "align",
|
|
300676
|
+
_initializerDefineProperty(this, "align", _descriptor62, this);
|
|
301375
300677
|
|
|
301376
|
-
_initializerDefineProperty(this, "columnGrouping",
|
|
300678
|
+
_initializerDefineProperty(this, "columnGrouping", _descriptor63, this);
|
|
301377
300679
|
|
|
301378
|
-
_initializerDefineProperty(this, "hiddenGroups",
|
|
300680
|
+
_initializerDefineProperty(this, "hiddenGroups", _descriptor64, this);
|
|
301379
300681
|
|
|
301380
|
-
_initializerDefineProperty(this, "footer",
|
|
300682
|
+
_initializerDefineProperty(this, "footer", _descriptor65, this);
|
|
301381
300683
|
}
|
|
301382
300684
|
|
|
301383
300685
|
getOwnPath() {
|
|
@@ -301410,102 +300712,102 @@ let CrossfitTableNode = (_dec55 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORT
|
|
|
301410
300712
|
return (_this$sticky = this.sticky) !== null && _this$sticky !== void 0 ? _this$sticky : true;
|
|
301411
300713
|
}
|
|
301412
300714
|
|
|
301413
|
-
}, (
|
|
300715
|
+
}, (_descriptor46 = _applyDecoratedDescriptor(_class26.prototype, "path", [_dec55], {
|
|
301414
300716
|
configurable: true,
|
|
301415
300717
|
enumerable: true,
|
|
301416
300718
|
writable: true,
|
|
301417
300719
|
initializer: null
|
|
301418
|
-
}),
|
|
300720
|
+
}), _descriptor47 = _applyDecoratedDescriptor(_class26.prototype, "optional", [_dec56], {
|
|
301419
300721
|
configurable: true,
|
|
301420
300722
|
enumerable: true,
|
|
301421
300723
|
writable: true,
|
|
301422
300724
|
initializer: null
|
|
301423
|
-
}),
|
|
300725
|
+
}), _descriptor48 = _applyDecoratedDescriptor(_class26.prototype, "offsetBottom", [_dec57], {
|
|
301424
300726
|
configurable: true,
|
|
301425
300727
|
enumerable: true,
|
|
301426
300728
|
writable: true,
|
|
301427
300729
|
initializer: null
|
|
301428
|
-
}),
|
|
300730
|
+
}), _descriptor49 = _applyDecoratedDescriptor(_class26.prototype, "grayColumn", [_dec58], {
|
|
301429
300731
|
configurable: true,
|
|
301430
300732
|
enumerable: true,
|
|
301431
300733
|
writable: true,
|
|
301432
300734
|
initializer: null
|
|
301433
|
-
}),
|
|
300735
|
+
}), _descriptor50 = _applyDecoratedDescriptor(_class26.prototype, "sidebar", [_dec59], {
|
|
301434
300736
|
configurable: true,
|
|
301435
300737
|
enumerable: true,
|
|
301436
300738
|
writable: true,
|
|
301437
300739
|
initializer: null
|
|
301438
|
-
}),
|
|
300740
|
+
}), _descriptor51 = _applyDecoratedDescriptor(_class26.prototype, "crossfit", [_dec60], {
|
|
301439
300741
|
configurable: true,
|
|
301440
300742
|
enumerable: true,
|
|
301441
300743
|
writable: true,
|
|
301442
300744
|
initializer: null
|
|
301443
|
-
}),
|
|
300745
|
+
}), _descriptor52 = _applyDecoratedDescriptor(_class26.prototype, "side", [_dec61], {
|
|
301444
300746
|
configurable: true,
|
|
301445
300747
|
enumerable: true,
|
|
301446
300748
|
writable: true,
|
|
301447
300749
|
initializer: null
|
|
301448
|
-
}),
|
|
300750
|
+
}), _descriptor53 = _applyDecoratedDescriptor(_class26.prototype, "rowmenu", [_dec62], {
|
|
301449
300751
|
configurable: true,
|
|
301450
300752
|
enumerable: true,
|
|
301451
300753
|
writable: true,
|
|
301452
300754
|
initializer: null
|
|
301453
|
-
}),
|
|
300755
|
+
}), _descriptor54 = _applyDecoratedDescriptor(_class26.prototype, "removebutton", [_dec63], {
|
|
301454
300756
|
configurable: true,
|
|
301455
300757
|
enumerable: true,
|
|
301456
300758
|
writable: true,
|
|
301457
300759
|
initializer: null
|
|
301458
|
-
}),
|
|
300760
|
+
}), _descriptor55 = _applyDecoratedDescriptor(_class26.prototype, "sticky", [_dec64], {
|
|
301459
300761
|
configurable: true,
|
|
301460
300762
|
enumerable: true,
|
|
301461
300763
|
writable: true,
|
|
301462
300764
|
initializer: null
|
|
301463
|
-
}),
|
|
300765
|
+
}), _descriptor56 = _applyDecoratedDescriptor(_class26.prototype, "doNotCopyPaths", [_dec65], {
|
|
301464
300766
|
configurable: true,
|
|
301465
300767
|
enumerable: true,
|
|
301466
300768
|
writable: true,
|
|
301467
300769
|
initializer: null
|
|
301468
|
-
}),
|
|
300770
|
+
}), _descriptor57 = _applyDecoratedDescriptor(_class26.prototype, "rows", [_dec66], {
|
|
301469
300771
|
configurable: true,
|
|
301470
300772
|
enumerable: true,
|
|
301471
300773
|
writable: true,
|
|
301472
300774
|
initializer: null
|
|
301473
|
-
}),
|
|
300775
|
+
}), _descriptor58 = _applyDecoratedDescriptor(_class26.prototype, "header", [_dec67], {
|
|
301474
300776
|
configurable: true,
|
|
301475
300777
|
enumerable: true,
|
|
301476
300778
|
writable: true,
|
|
301477
300779
|
initializer: null
|
|
301478
|
-
}),
|
|
300780
|
+
}), _descriptor59 = _applyDecoratedDescriptor(_class26.prototype, "colgroup", [_dec68], {
|
|
301479
300781
|
configurable: true,
|
|
301480
300782
|
enumerable: true,
|
|
301481
300783
|
writable: true,
|
|
301482
300784
|
initializer: null
|
|
301483
|
-
}),
|
|
300785
|
+
}), _descriptor60 = _applyDecoratedDescriptor(_class26.prototype, "filterinfo", [_dec69], {
|
|
301484
300786
|
configurable: true,
|
|
301485
300787
|
enumerable: true,
|
|
301486
300788
|
writable: true,
|
|
301487
300789
|
initializer: null
|
|
301488
|
-
}),
|
|
300790
|
+
}), _descriptor61 = _applyDecoratedDescriptor(_class26.prototype, "loader", [_dec70], {
|
|
301489
300791
|
configurable: true,
|
|
301490
300792
|
enumerable: true,
|
|
301491
300793
|
writable: true,
|
|
301492
300794
|
initializer: null
|
|
301493
|
-
}),
|
|
300795
|
+
}), _descriptor62 = _applyDecoratedDescriptor(_class26.prototype, "align", [_dec71], {
|
|
301494
300796
|
configurable: true,
|
|
301495
300797
|
enumerable: true,
|
|
301496
300798
|
writable: true,
|
|
301497
300799
|
initializer: null
|
|
301498
|
-
}),
|
|
300800
|
+
}), _descriptor63 = _applyDecoratedDescriptor(_class26.prototype, "columnGrouping", [_dec72], {
|
|
301499
300801
|
configurable: true,
|
|
301500
300802
|
enumerable: true,
|
|
301501
300803
|
writable: true,
|
|
301502
300804
|
initializer: null
|
|
301503
|
-
}),
|
|
300805
|
+
}), _descriptor64 = _applyDecoratedDescriptor(_class26.prototype, "hiddenGroups", [_dec73], {
|
|
301504
300806
|
configurable: true,
|
|
301505
300807
|
enumerable: true,
|
|
301506
300808
|
writable: true,
|
|
301507
300809
|
initializer: null
|
|
301508
|
-
}),
|
|
300810
|
+
}), _descriptor65 = _applyDecoratedDescriptor(_class26.prototype, "footer", [_dec74], {
|
|
301509
300811
|
configurable: true,
|
|
301510
300812
|
enumerable: true,
|
|
301511
300813
|
writable: true,
|
|
@@ -302627,8 +301929,6 @@ class RemoveRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
|
|
|
302627
301929
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("RemoveRowButton");
|
|
302628
301930
|
markupBuilder.prop("data-tid").set(node.tid);
|
|
302629
301931
|
markupBuilder.prop(x => x.hint).set(node.hint);
|
|
302630
|
-
const isParentRowContainerOptional = context.isNodeOptional(node.getFullPath());
|
|
302631
|
-
markupBuilder.prop(x => x.parentRowContainerOptional).set(isParentRowContainerOptional);
|
|
302632
301932
|
return markupBuilder.buildConverterResult();
|
|
302633
301933
|
}
|
|
302634
301934
|
|
|
@@ -302879,7 +302179,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302879
302179
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
302880
302180
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
302881
302181
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
302882
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17,
|
|
302182
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _dec18, _dec19, _dec20, _class4, _class5, _descriptor17, _descriptor18, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _class7, _class8, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _class10, _class11, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _dec49, _dec50, _dec51, _class13, _class14, _descriptor45, _descriptor46, _dec52, _dec53, _dec54, _class16, _class17, _descriptor47, _descriptor48, _dec55, _dec56, _class19, _class20, _descriptor49, _dec57, _dec58, _class22, _class23, _descriptor50, _dec59, _dec60, _dec61, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _dec76, _class25, _class26, _descriptor51, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56, _descriptor57, _descriptor58, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _descriptor64, _descriptor65, _descriptor66, _descriptor67;
|
|
302883
302183
|
|
|
302884
302184
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
302885
302185
|
|
|
@@ -302894,7 +302194,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
302894
302194
|
|
|
302895
302195
|
|
|
302896
302196
|
|
|
302897
|
-
let StickyTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Отключить редактирование для множественной колонки. Работает только если multiple=true`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("
|
|
302197
|
+
let StickyTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Отключить редактирование для множественной колонки. Работает только если multiple=true`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string), ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("colspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("empty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rowspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("textalign", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("center", "left", "right"), ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("paddingTop", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("requiredempty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("indent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("1", "2", "3", "4", "5", "6"), ``), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("textTopPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class StickyTableColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302898
302198
|
constructor(...args) {
|
|
302899
302199
|
super(...args);
|
|
302900
302200
|
|
|
@@ -302904,33 +302204,31 @@ let StickyTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
302904
302204
|
|
|
302905
302205
|
_initializerDefineProperty(this, "disabled", _descriptor3, this);
|
|
302906
302206
|
|
|
302907
|
-
_initializerDefineProperty(this, "
|
|
302908
|
-
|
|
302909
|
-
_initializerDefineProperty(this, "hintOnAdd", _descriptor5, this);
|
|
302207
|
+
_initializerDefineProperty(this, "hintOnAdd", _descriptor4, this);
|
|
302910
302208
|
|
|
302911
|
-
_initializerDefineProperty(this, "titles",
|
|
302209
|
+
_initializerDefineProperty(this, "titles", _descriptor5, this);
|
|
302912
302210
|
|
|
302913
|
-
_initializerDefineProperty(this, "colspan",
|
|
302211
|
+
_initializerDefineProperty(this, "colspan", _descriptor6, this);
|
|
302914
302212
|
|
|
302915
|
-
_initializerDefineProperty(this, "empty",
|
|
302213
|
+
_initializerDefineProperty(this, "empty", _descriptor7, this);
|
|
302916
302214
|
|
|
302917
|
-
_initializerDefineProperty(this, "width",
|
|
302215
|
+
_initializerDefineProperty(this, "width", _descriptor8, this);
|
|
302918
302216
|
|
|
302919
|
-
_initializerDefineProperty(this, "rowspan",
|
|
302217
|
+
_initializerDefineProperty(this, "rowspan", _descriptor9, this);
|
|
302920
302218
|
|
|
302921
|
-
_initializerDefineProperty(this, "textalign",
|
|
302219
|
+
_initializerDefineProperty(this, "textalign", _descriptor10, this);
|
|
302922
302220
|
|
|
302923
|
-
_initializerDefineProperty(this, "horizontalAlign",
|
|
302221
|
+
_initializerDefineProperty(this, "horizontalAlign", _descriptor11, this);
|
|
302924
302222
|
|
|
302925
|
-
_initializerDefineProperty(this, "paddingTop",
|
|
302223
|
+
_initializerDefineProperty(this, "paddingTop", _descriptor12, this);
|
|
302926
302224
|
|
|
302927
|
-
_initializerDefineProperty(this, "requiredempty",
|
|
302225
|
+
_initializerDefineProperty(this, "requiredempty", _descriptor13, this);
|
|
302928
302226
|
|
|
302929
|
-
_initializerDefineProperty(this, "indent",
|
|
302227
|
+
_initializerDefineProperty(this, "indent", _descriptor14, this);
|
|
302930
302228
|
|
|
302931
|
-
_initializerDefineProperty(this, "textTopPadding",
|
|
302229
|
+
_initializerDefineProperty(this, "textTopPadding", _descriptor15, this);
|
|
302932
302230
|
|
|
302933
|
-
_initializerDefineProperty(this, "children",
|
|
302231
|
+
_initializerDefineProperty(this, "children", _descriptor16, this);
|
|
302934
302232
|
}
|
|
302935
302233
|
|
|
302936
302234
|
getOwnPath() {
|
|
@@ -302958,140 +302256,135 @@ let StickyTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
302958
302256
|
enumerable: true,
|
|
302959
302257
|
writable: true,
|
|
302960
302258
|
initializer: null
|
|
302961
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302962
|
-
configurable: true,
|
|
302963
|
-
enumerable: true,
|
|
302964
|
-
writable: true,
|
|
302965
|
-
initializer: null
|
|
302966
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec6], {
|
|
302259
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec5], {
|
|
302967
302260
|
configurable: true,
|
|
302968
302261
|
enumerable: true,
|
|
302969
302262
|
writable: true,
|
|
302970
302263
|
initializer: null
|
|
302971
|
-
}),
|
|
302264
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "titles", [_dec6], {
|
|
302972
302265
|
configurable: true,
|
|
302973
302266
|
enumerable: true,
|
|
302974
302267
|
writable: true,
|
|
302975
302268
|
initializer: null
|
|
302976
|
-
}),
|
|
302269
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "colspan", [_dec7], {
|
|
302977
302270
|
configurable: true,
|
|
302978
302271
|
enumerable: true,
|
|
302979
302272
|
writable: true,
|
|
302980
302273
|
initializer: null
|
|
302981
|
-
}),
|
|
302274
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "empty", [_dec8], {
|
|
302982
302275
|
configurable: true,
|
|
302983
302276
|
enumerable: true,
|
|
302984
302277
|
writable: true,
|
|
302985
302278
|
initializer: null
|
|
302986
|
-
}),
|
|
302279
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "width", [_dec9], {
|
|
302987
302280
|
configurable: true,
|
|
302988
302281
|
enumerable: true,
|
|
302989
302282
|
writable: true,
|
|
302990
302283
|
initializer: null
|
|
302991
|
-
}),
|
|
302284
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "rowspan", [_dec10], {
|
|
302992
302285
|
configurable: true,
|
|
302993
302286
|
enumerable: true,
|
|
302994
302287
|
writable: true,
|
|
302995
302288
|
initializer: null
|
|
302996
|
-
}),
|
|
302289
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "textalign", [_dec11], {
|
|
302997
302290
|
configurable: true,
|
|
302998
302291
|
enumerable: true,
|
|
302999
302292
|
writable: true,
|
|
303000
302293
|
initializer: null
|
|
303001
|
-
}),
|
|
302294
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "horizontalAlign", [_dec12], {
|
|
303002
302295
|
configurable: true,
|
|
303003
302296
|
enumerable: true,
|
|
303004
302297
|
writable: true,
|
|
303005
302298
|
initializer: null
|
|
303006
|
-
}),
|
|
302299
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "paddingTop", [_dec13], {
|
|
303007
302300
|
configurable: true,
|
|
303008
302301
|
enumerable: true,
|
|
303009
302302
|
writable: true,
|
|
303010
302303
|
initializer: null
|
|
303011
|
-
}),
|
|
302304
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "requiredempty", [_dec14], {
|
|
303012
302305
|
configurable: true,
|
|
303013
302306
|
enumerable: true,
|
|
303014
302307
|
writable: true,
|
|
303015
302308
|
initializer: null
|
|
303016
|
-
}),
|
|
302309
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "indent", [_dec15], {
|
|
303017
302310
|
configurable: true,
|
|
303018
302311
|
enumerable: true,
|
|
303019
302312
|
writable: true,
|
|
303020
302313
|
initializer: null
|
|
303021
|
-
}),
|
|
302314
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "textTopPadding", [_dec16], {
|
|
303022
302315
|
configurable: true,
|
|
303023
302316
|
enumerable: true,
|
|
303024
302317
|
writable: true,
|
|
303025
302318
|
initializer: null
|
|
303026
|
-
}),
|
|
302319
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec17], {
|
|
303027
302320
|
configurable: true,
|
|
303028
302321
|
enumerable: true,
|
|
303029
302322
|
writable: true,
|
|
303030
302323
|
initializer: null
|
|
303031
302324
|
})), _class2)) || _class);
|
|
303032
|
-
let StickyTableMultilineRowNode = (
|
|
302325
|
+
let StickyTableMultilineRowNode = (_dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("column", [StickyTableColumnNode]), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("borderBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Серая черта под строкой`), _dec18(_class4 = (_class5 = class StickyTableMultilineRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
303033
302326
|
constructor(...args) {
|
|
303034
302327
|
super(...args);
|
|
303035
302328
|
|
|
303036
|
-
_initializerDefineProperty(this, "columns",
|
|
302329
|
+
_initializerDefineProperty(this, "columns", _descriptor17, this);
|
|
303037
302330
|
|
|
303038
|
-
_initializerDefineProperty(this, "borderBottom",
|
|
302331
|
+
_initializerDefineProperty(this, "borderBottom", _descriptor18, this);
|
|
303039
302332
|
}
|
|
303040
302333
|
|
|
303041
|
-
}, (
|
|
302334
|
+
}, (_descriptor17 = _applyDecoratedDescriptor(_class5.prototype, "columns", [_dec19], {
|
|
303042
302335
|
configurable: true,
|
|
303043
302336
|
enumerable: true,
|
|
303044
302337
|
writable: true,
|
|
303045
302338
|
initializer: null
|
|
303046
|
-
}),
|
|
302339
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, "borderBottom", [_dec20], {
|
|
303047
302340
|
configurable: true,
|
|
303048
302341
|
enumerable: true,
|
|
303049
302342
|
writable: true,
|
|
303050
302343
|
initializer: null
|
|
303051
302344
|
})), _class5)) || _class4);
|
|
303052
|
-
let StickyTableMultilineNode = (
|
|
302345
|
+
let StickyTableMultilineNode = (_dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("multiline", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Опционально, если не указан, то будет оторажаться текст заданный внутри данного элемента`), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("instancesPerPage", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("defaultChildren", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.arrayLiteral(), ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `\"false\" - крестики не рисовать`), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("className", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("customProperty", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.UntypedUsage), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("addButtonText", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("offsetLeft", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("offsetTop", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("focusByHotkey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Если добавишь больше 90 строк, то пейджер сворачивается и по focusByHotkey можно сфокусироваться`), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("row", [StickyTableMultilineRowNode]), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("addbutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `\"false\" - не нужна кнопка для добавления множественного блока`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("doNotCopyPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.stringArray, ``), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("addType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ``), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("usepager", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `\"false\" - без пейджера (1-11, 12-22 - этого нет внизу страницы)`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("show-row-border", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("override", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.customControl, ``), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("storeFilters", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будут ли сохраняться фильтры для этого мультилайна между обнолениями страницы. По умолчанию -- нет`), _dec21(_class7 = (_class8 = class StickyTableMultilineNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
303053
302346
|
constructor(...args) {
|
|
303054
302347
|
super(...args);
|
|
303055
302348
|
|
|
303056
|
-
_initializerDefineProperty(this, "path",
|
|
302349
|
+
_initializerDefineProperty(this, "path", _descriptor19, this);
|
|
303057
302350
|
|
|
303058
|
-
_initializerDefineProperty(this, "instancesPerPage",
|
|
302351
|
+
_initializerDefineProperty(this, "instancesPerPage", _descriptor20, this);
|
|
303059
302352
|
|
|
303060
|
-
_initializerDefineProperty(this, "optional",
|
|
302353
|
+
_initializerDefineProperty(this, "optional", _descriptor21, this);
|
|
303061
302354
|
|
|
303062
|
-
_initializerDefineProperty(this, "defaultChildren",
|
|
302355
|
+
_initializerDefineProperty(this, "defaultChildren", _descriptor22, this);
|
|
303063
302356
|
|
|
303064
|
-
_initializerDefineProperty(this, "removebutton",
|
|
302357
|
+
_initializerDefineProperty(this, "removebutton", _descriptor23, this);
|
|
303065
302358
|
|
|
303066
|
-
_initializerDefineProperty(this, "rowmenu",
|
|
302359
|
+
_initializerDefineProperty(this, "rowmenu", _descriptor24, this);
|
|
303067
302360
|
|
|
303068
|
-
_initializerDefineProperty(this, "className",
|
|
302361
|
+
_initializerDefineProperty(this, "className", _descriptor25, this);
|
|
303069
302362
|
|
|
303070
|
-
_initializerDefineProperty(this, "customProperty",
|
|
302363
|
+
_initializerDefineProperty(this, "customProperty", _descriptor26, this);
|
|
303071
302364
|
|
|
303072
|
-
_initializerDefineProperty(this, "addButtonText",
|
|
302365
|
+
_initializerDefineProperty(this, "addButtonText", _descriptor27, this);
|
|
303073
302366
|
|
|
303074
|
-
_initializerDefineProperty(this, "offsetLeft",
|
|
302367
|
+
_initializerDefineProperty(this, "offsetLeft", _descriptor28, this);
|
|
303075
302368
|
|
|
303076
|
-
_initializerDefineProperty(this, "offsetTop",
|
|
302369
|
+
_initializerDefineProperty(this, "offsetTop", _descriptor29, this);
|
|
303077
302370
|
|
|
303078
|
-
_initializerDefineProperty(this, "focusByHotkey",
|
|
302371
|
+
_initializerDefineProperty(this, "focusByHotkey", _descriptor30, this);
|
|
303079
302372
|
|
|
303080
|
-
_initializerDefineProperty(this, "rows",
|
|
302373
|
+
_initializerDefineProperty(this, "rows", _descriptor31, this);
|
|
303081
302374
|
|
|
303082
|
-
_initializerDefineProperty(this, "addbutton",
|
|
302375
|
+
_initializerDefineProperty(this, "addbutton", _descriptor32, this);
|
|
303083
302376
|
|
|
303084
|
-
_initializerDefineProperty(this, "doNotCopyPaths",
|
|
302377
|
+
_initializerDefineProperty(this, "doNotCopyPaths", _descriptor33, this);
|
|
303085
302378
|
|
|
303086
|
-
_initializerDefineProperty(this, "addType",
|
|
302379
|
+
_initializerDefineProperty(this, "addType", _descriptor34, this);
|
|
303087
302380
|
|
|
303088
|
-
_initializerDefineProperty(this, "usepager",
|
|
302381
|
+
_initializerDefineProperty(this, "usepager", _descriptor35, this);
|
|
303089
302382
|
|
|
303090
|
-
_initializerDefineProperty(this, "showRowBorder",
|
|
302383
|
+
_initializerDefineProperty(this, "showRowBorder", _descriptor36, this);
|
|
303091
302384
|
|
|
303092
|
-
_initializerDefineProperty(this, "override",
|
|
302385
|
+
_initializerDefineProperty(this, "override", _descriptor37, this);
|
|
303093
302386
|
|
|
303094
|
-
_initializerDefineProperty(this, "storeFilters",
|
|
302387
|
+
_initializerDefineProperty(this, "storeFilters", _descriptor38, this);
|
|
303095
302388
|
}
|
|
303096
302389
|
|
|
303097
302390
|
getOwnPath() {
|
|
@@ -303102,186 +302395,186 @@ let StickyTableMultilineNode = (_dec22 = (0,_Serializer_SugarSerializer__WEBPACK
|
|
|
303102
302395
|
return true;
|
|
303103
302396
|
}
|
|
303104
302397
|
|
|
303105
|
-
}, (
|
|
302398
|
+
}, (_descriptor19 = _applyDecoratedDescriptor(_class8.prototype, "path", [_dec22], {
|
|
303106
302399
|
configurable: true,
|
|
303107
302400
|
enumerable: true,
|
|
303108
302401
|
writable: true,
|
|
303109
302402
|
initializer: null
|
|
303110
|
-
}),
|
|
302403
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class8.prototype, "instancesPerPage", [_dec23], {
|
|
303111
302404
|
configurable: true,
|
|
303112
302405
|
enumerable: true,
|
|
303113
302406
|
writable: true,
|
|
303114
302407
|
initializer: null
|
|
303115
|
-
}),
|
|
302408
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class8.prototype, "optional", [_dec24], {
|
|
303116
302409
|
configurable: true,
|
|
303117
302410
|
enumerable: true,
|
|
303118
302411
|
writable: true,
|
|
303119
302412
|
initializer: null
|
|
303120
|
-
}),
|
|
302413
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class8.prototype, "defaultChildren", [_dec25], {
|
|
303121
302414
|
configurable: true,
|
|
303122
302415
|
enumerable: true,
|
|
303123
302416
|
writable: true,
|
|
303124
302417
|
initializer: null
|
|
303125
|
-
}),
|
|
302418
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class8.prototype, "removebutton", [_dec26], {
|
|
303126
302419
|
configurable: true,
|
|
303127
302420
|
enumerable: true,
|
|
303128
302421
|
writable: true,
|
|
303129
302422
|
initializer: null
|
|
303130
|
-
}),
|
|
302423
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class8.prototype, "rowmenu", [_dec27], {
|
|
303131
302424
|
configurable: true,
|
|
303132
302425
|
enumerable: true,
|
|
303133
302426
|
writable: true,
|
|
303134
302427
|
initializer: null
|
|
303135
|
-
}),
|
|
302428
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class8.prototype, "className", [_dec28], {
|
|
303136
302429
|
configurable: true,
|
|
303137
302430
|
enumerable: true,
|
|
303138
302431
|
writable: true,
|
|
303139
302432
|
initializer: null
|
|
303140
|
-
}),
|
|
302433
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class8.prototype, "customProperty", [_dec29], {
|
|
303141
302434
|
configurable: true,
|
|
303142
302435
|
enumerable: true,
|
|
303143
302436
|
writable: true,
|
|
303144
302437
|
initializer: null
|
|
303145
|
-
}),
|
|
302438
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class8.prototype, "addButtonText", [_dec30], {
|
|
303146
302439
|
configurable: true,
|
|
303147
302440
|
enumerable: true,
|
|
303148
302441
|
writable: true,
|
|
303149
302442
|
initializer: null
|
|
303150
|
-
}),
|
|
302443
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class8.prototype, "offsetLeft", [_dec31], {
|
|
303151
302444
|
configurable: true,
|
|
303152
302445
|
enumerable: true,
|
|
303153
302446
|
writable: true,
|
|
303154
302447
|
initializer: null
|
|
303155
|
-
}),
|
|
302448
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class8.prototype, "offsetTop", [_dec32], {
|
|
303156
302449
|
configurable: true,
|
|
303157
302450
|
enumerable: true,
|
|
303158
302451
|
writable: true,
|
|
303159
302452
|
initializer: null
|
|
303160
|
-
}),
|
|
302453
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class8.prototype, "focusByHotkey", [_dec33], {
|
|
303161
302454
|
configurable: true,
|
|
303162
302455
|
enumerable: true,
|
|
303163
302456
|
writable: true,
|
|
303164
302457
|
initializer: null
|
|
303165
|
-
}),
|
|
302458
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class8.prototype, "rows", [_dec34], {
|
|
303166
302459
|
configurable: true,
|
|
303167
302460
|
enumerable: true,
|
|
303168
302461
|
writable: true,
|
|
303169
302462
|
initializer: null
|
|
303170
|
-
}),
|
|
302463
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class8.prototype, "addbutton", [_dec35], {
|
|
303171
302464
|
configurable: true,
|
|
303172
302465
|
enumerable: true,
|
|
303173
302466
|
writable: true,
|
|
303174
302467
|
initializer: null
|
|
303175
|
-
}),
|
|
302468
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class8.prototype, "doNotCopyPaths", [_dec36], {
|
|
303176
302469
|
configurable: true,
|
|
303177
302470
|
enumerable: true,
|
|
303178
302471
|
writable: true,
|
|
303179
302472
|
initializer: null
|
|
303180
|
-
}),
|
|
302473
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class8.prototype, "addType", [_dec37], {
|
|
303181
302474
|
configurable: true,
|
|
303182
302475
|
enumerable: true,
|
|
303183
302476
|
writable: true,
|
|
303184
302477
|
initializer: null
|
|
303185
|
-
}),
|
|
302478
|
+
}), _descriptor35 = _applyDecoratedDescriptor(_class8.prototype, "usepager", [_dec38], {
|
|
303186
302479
|
configurable: true,
|
|
303187
302480
|
enumerable: true,
|
|
303188
302481
|
writable: true,
|
|
303189
302482
|
initializer: null
|
|
303190
|
-
}),
|
|
302483
|
+
}), _descriptor36 = _applyDecoratedDescriptor(_class8.prototype, "showRowBorder", [_dec39], {
|
|
303191
302484
|
configurable: true,
|
|
303192
302485
|
enumerable: true,
|
|
303193
302486
|
writable: true,
|
|
303194
302487
|
initializer: null
|
|
303195
|
-
}),
|
|
302488
|
+
}), _descriptor37 = _applyDecoratedDescriptor(_class8.prototype, "override", [_dec40], {
|
|
303196
302489
|
configurable: true,
|
|
303197
302490
|
enumerable: true,
|
|
303198
302491
|
writable: true,
|
|
303199
302492
|
initializer: null
|
|
303200
|
-
}),
|
|
302493
|
+
}), _descriptor38 = _applyDecoratedDescriptor(_class8.prototype, "storeFilters", [_dec41], {
|
|
303201
302494
|
configurable: true,
|
|
303202
302495
|
enumerable: true,
|
|
303203
302496
|
writable: true,
|
|
303204
302497
|
initializer: null
|
|
303205
302498
|
})), _class8)) || _class7);
|
|
303206
|
-
let StickyTableRowNode = (
|
|
302499
|
+
let StickyTableRowNode = (_dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("kind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("head"), `Шапка таблицы`), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("subkind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("numbers"), `Строка с нумерацией столбцов`), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(["column", "multiline"], [StickyTableColumnNode, StickyTableMultilineNode]), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("borderBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Серая черта под строкой`), _dec42(_class10 = (_class11 = class StickyTableRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
303207
302500
|
constructor(...args) {
|
|
303208
302501
|
super(...args);
|
|
303209
302502
|
|
|
303210
|
-
_initializerDefineProperty(this, "dataScope",
|
|
302503
|
+
_initializerDefineProperty(this, "dataScope", _descriptor39, this);
|
|
303211
302504
|
|
|
303212
|
-
_initializerDefineProperty(this, "optional",
|
|
302505
|
+
_initializerDefineProperty(this, "optional", _descriptor40, this);
|
|
303213
302506
|
|
|
303214
|
-
_initializerDefineProperty(this, "kind",
|
|
302507
|
+
_initializerDefineProperty(this, "kind", _descriptor41, this);
|
|
303215
302508
|
|
|
303216
|
-
_initializerDefineProperty(this, "subkind",
|
|
302509
|
+
_initializerDefineProperty(this, "subkind", _descriptor42, this);
|
|
303217
302510
|
|
|
303218
|
-
_initializerDefineProperty(this, "columns",
|
|
302511
|
+
_initializerDefineProperty(this, "columns", _descriptor43, this);
|
|
303219
302512
|
|
|
303220
|
-
_initializerDefineProperty(this, "borderBottom",
|
|
302513
|
+
_initializerDefineProperty(this, "borderBottom", _descriptor44, this);
|
|
303221
302514
|
}
|
|
303222
302515
|
|
|
303223
302516
|
getOwnPath() {
|
|
303224
302517
|
return this.dataScope.getOwnPath();
|
|
303225
302518
|
}
|
|
303226
302519
|
|
|
303227
|
-
}, (
|
|
302520
|
+
}, (_descriptor39 = _applyDecoratedDescriptor(_class11.prototype, "dataScope", [_dec43], {
|
|
303228
302521
|
configurable: true,
|
|
303229
302522
|
enumerable: true,
|
|
303230
302523
|
writable: true,
|
|
303231
302524
|
initializer: null
|
|
303232
|
-
}),
|
|
302525
|
+
}), _descriptor40 = _applyDecoratedDescriptor(_class11.prototype, "optional", [_dec44], {
|
|
303233
302526
|
configurable: true,
|
|
303234
302527
|
enumerable: true,
|
|
303235
302528
|
writable: true,
|
|
303236
302529
|
initializer: null
|
|
303237
|
-
}),
|
|
302530
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class11.prototype, "kind", [_dec45], {
|
|
303238
302531
|
configurable: true,
|
|
303239
302532
|
enumerable: true,
|
|
303240
302533
|
writable: true,
|
|
303241
302534
|
initializer: null
|
|
303242
|
-
}),
|
|
302535
|
+
}), _descriptor42 = _applyDecoratedDescriptor(_class11.prototype, "subkind", [_dec46], {
|
|
303243
302536
|
configurable: true,
|
|
303244
302537
|
enumerable: true,
|
|
303245
302538
|
writable: true,
|
|
303246
302539
|
initializer: null
|
|
303247
|
-
}),
|
|
302540
|
+
}), _descriptor43 = _applyDecoratedDescriptor(_class11.prototype, "columns", [_dec47], {
|
|
303248
302541
|
configurable: true,
|
|
303249
302542
|
enumerable: true,
|
|
303250
302543
|
writable: true,
|
|
303251
302544
|
initializer: null
|
|
303252
|
-
}),
|
|
302545
|
+
}), _descriptor44 = _applyDecoratedDescriptor(_class11.prototype, "borderBottom", [_dec48], {
|
|
303253
302546
|
configurable: true,
|
|
303254
302547
|
enumerable: true,
|
|
303255
302548
|
writable: true,
|
|
303256
302549
|
initializer: null
|
|
303257
302550
|
})), _class11)) || _class10);
|
|
303258
|
-
let StickyTableHeaderNode = (
|
|
302551
|
+
let StickyTableHeaderNode = (_dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("header", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("right"), ``), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec49(_class13 = (_class14 = class StickyTableHeaderNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
303259
302552
|
constructor(...args) {
|
|
303260
302553
|
super(...args);
|
|
303261
302554
|
|
|
303262
|
-
_initializerDefineProperty(this, "align",
|
|
302555
|
+
_initializerDefineProperty(this, "align", _descriptor45, this);
|
|
303263
302556
|
|
|
303264
|
-
_initializerDefineProperty(this, "children",
|
|
302557
|
+
_initializerDefineProperty(this, "children", _descriptor46, this);
|
|
303265
302558
|
}
|
|
303266
302559
|
|
|
303267
|
-
}, (
|
|
302560
|
+
}, (_descriptor45 = _applyDecoratedDescriptor(_class14.prototype, "align", [_dec50], {
|
|
303268
302561
|
configurable: true,
|
|
303269
302562
|
enumerable: true,
|
|
303270
302563
|
writable: true,
|
|
303271
302564
|
initializer: null
|
|
303272
|
-
}),
|
|
302565
|
+
}), _descriptor46 = _applyDecoratedDescriptor(_class14.prototype, "children", [_dec51], {
|
|
303273
302566
|
configurable: true,
|
|
303274
302567
|
enumerable: true,
|
|
303275
302568
|
writable: true,
|
|
303276
302569
|
initializer: null
|
|
303277
302570
|
})), _class14)) || _class13);
|
|
303278
|
-
let StickyTableFooterNode = (
|
|
302571
|
+
let StickyTableFooterNode = (_dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("footer", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(["row"], [StickyTableRowNode]), _dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("column", [StickyTableColumnNode]), _dec52(_class16 = (_class17 = class StickyTableFooterNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
303279
302572
|
constructor(...args) {
|
|
303280
302573
|
super(...args);
|
|
303281
302574
|
|
|
303282
|
-
_initializerDefineProperty(this, "rows",
|
|
302575
|
+
_initializerDefineProperty(this, "rows", _descriptor47, this);
|
|
303283
302576
|
|
|
303284
|
-
_initializerDefineProperty(this, "columns",
|
|
302577
|
+
_initializerDefineProperty(this, "columns", _descriptor48, this);
|
|
303285
302578
|
}
|
|
303286
302579
|
|
|
303287
302580
|
getColumnLists() {
|
|
@@ -303294,80 +302587,80 @@ let StickyTableFooterNode = (_dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
303294
302587
|
return footerColumnsLists;
|
|
303295
302588
|
}
|
|
303296
302589
|
|
|
303297
|
-
}, (
|
|
302590
|
+
}, (_descriptor47 = _applyDecoratedDescriptor(_class17.prototype, "rows", [_dec53], {
|
|
303298
302591
|
configurable: true,
|
|
303299
302592
|
enumerable: true,
|
|
303300
302593
|
writable: true,
|
|
303301
302594
|
initializer: null
|
|
303302
|
-
}),
|
|
302595
|
+
}), _descriptor48 = _applyDecoratedDescriptor(_class17.prototype, "columns", [_dec54], {
|
|
303303
302596
|
configurable: true,
|
|
303304
302597
|
enumerable: true,
|
|
303305
302598
|
writable: true,
|
|
303306
302599
|
initializer: null
|
|
303307
302600
|
})), _class17)) || _class16);
|
|
303308
|
-
let StickyTableColgroupColumnNode = (
|
|
302601
|
+
let StickyTableColgroupColumnNode = (_dec55 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("col", ``), _dec56 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, ``), _dec55(_class19 = (_class20 = class StickyTableColgroupColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
303309
302602
|
constructor(...args) {
|
|
303310
302603
|
super(...args);
|
|
303311
302604
|
|
|
303312
|
-
_initializerDefineProperty(this, "width",
|
|
302605
|
+
_initializerDefineProperty(this, "width", _descriptor49, this);
|
|
303313
302606
|
}
|
|
303314
302607
|
|
|
303315
|
-
}, (
|
|
302608
|
+
}, (_descriptor49 = _applyDecoratedDescriptor(_class20.prototype, "width", [_dec56], {
|
|
303316
302609
|
configurable: true,
|
|
303317
302610
|
enumerable: true,
|
|
303318
302611
|
writable: true,
|
|
303319
302612
|
initializer: null
|
|
303320
302613
|
})), _class20)) || _class19);
|
|
303321
|
-
let StickyTableColgroupNode = (
|
|
302614
|
+
let StickyTableColgroupNode = (_dec57 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("colgroup", ``), _dec58 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("col", [StickyTableColgroupColumnNode]), _dec57(_class22 = (_class23 = class StickyTableColgroupNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
303322
302615
|
constructor(...args) {
|
|
303323
302616
|
super(...args);
|
|
303324
302617
|
|
|
303325
|
-
_initializerDefineProperty(this, "cols",
|
|
302618
|
+
_initializerDefineProperty(this, "cols", _descriptor50, this);
|
|
303326
302619
|
}
|
|
303327
302620
|
|
|
303328
|
-
}, (
|
|
302621
|
+
}, (_descriptor50 = _applyDecoratedDescriptor(_class23.prototype, "cols", [_dec58], {
|
|
303329
302622
|
configurable: true,
|
|
303330
302623
|
enumerable: true,
|
|
303331
302624
|
writable: true,
|
|
303332
302625
|
initializer: null
|
|
303333
302626
|
})), _class23)) || _class22);
|
|
303334
|
-
let StickyTableNode = (
|
|
302627
|
+
let StickyTableNode = (_dec59 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("table", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$"), x => x.boolAttr("sticky") || x.getFirstChild("multiline") != undefined), _dec60 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Опционально, если не указан, то будет оторажаться текст заданный внутри данного элемента`), _dec61 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec62 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("baseline", "top"), ``), _dec63 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `\"false\" - крестики не рисовать`), _dec64 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("sticky", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec65 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("stickyHeader", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Залипающая шапка`), _dec66 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("grayColumn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Буквы во второй колонке серым цветом`), _dec67 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("side", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec68 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("className", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec69 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("colgroup", [StickyTableColgroupNode]), _dec70 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(["row", "multiline"], [StickyTableRowNode, StickyTableMultilineNode]), _dec71 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("header", [StickyTableHeaderNode]), _dec72 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("footer", [StickyTableFooterNode]), _dec73 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("deprecated-diadoc-width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec74 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Ширина таблицы`), _dec75 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec76 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("columnGrouping", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Только вместе с crossfit="true". {"start": "4", "end": "5", "text": ["Испр. с-ф", "040 и 050" ]} - Устанавливает колонки в которых ячейки скрыты под карандаш. В text записываются текстовки, которыми будут заменены тексты в шапке. Если для этих ячеек rowspan > 1, то нужно добавить на каждую пустую строку "". { start: 4, end: 11, showText: "Свернуть столбцы 040-110", hideText: "Столбцы 040-110" } - Устанавливает колонки, которые можно скрывать кнопкой. showText и hideText устанавливаю тексты в подсказке при наведении.`), _dec59(_class25 = (_class26 = class StickyTableNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
303335
302628
|
constructor(...args) {
|
|
303336
302629
|
super(...args);
|
|
303337
302630
|
|
|
303338
|
-
_initializerDefineProperty(this, "path",
|
|
302631
|
+
_initializerDefineProperty(this, "path", _descriptor51, this);
|
|
303339
302632
|
|
|
303340
|
-
_initializerDefineProperty(this, "optional",
|
|
302633
|
+
_initializerDefineProperty(this, "optional", _descriptor52, this);
|
|
303341
302634
|
|
|
303342
|
-
_initializerDefineProperty(this, "align",
|
|
302635
|
+
_initializerDefineProperty(this, "align", _descriptor53, this);
|
|
303343
302636
|
|
|
303344
|
-
_initializerDefineProperty(this, "removeButton",
|
|
302637
|
+
_initializerDefineProperty(this, "removeButton", _descriptor54, this);
|
|
303345
302638
|
|
|
303346
|
-
_initializerDefineProperty(this, "sticky",
|
|
302639
|
+
_initializerDefineProperty(this, "sticky", _descriptor55, this);
|
|
303347
302640
|
|
|
303348
|
-
_initializerDefineProperty(this, "stickyHeader",
|
|
302641
|
+
_initializerDefineProperty(this, "stickyHeader", _descriptor56, this);
|
|
303349
302642
|
|
|
303350
|
-
_initializerDefineProperty(this, "grayColumn",
|
|
302643
|
+
_initializerDefineProperty(this, "grayColumn", _descriptor57, this);
|
|
303351
302644
|
|
|
303352
|
-
_initializerDefineProperty(this, "side",
|
|
302645
|
+
_initializerDefineProperty(this, "side", _descriptor58, this);
|
|
303353
302646
|
|
|
303354
|
-
_initializerDefineProperty(this, "className",
|
|
302647
|
+
_initializerDefineProperty(this, "className", _descriptor59, this);
|
|
303355
302648
|
|
|
303356
|
-
_initializerDefineProperty(this, "colgroup",
|
|
302649
|
+
_initializerDefineProperty(this, "colgroup", _descriptor60, this);
|
|
303357
302650
|
|
|
303358
|
-
_initializerDefineProperty(this, "rows",
|
|
302651
|
+
_initializerDefineProperty(this, "rows", _descriptor61, this);
|
|
303359
302652
|
|
|
303360
|
-
_initializerDefineProperty(this, "header",
|
|
302653
|
+
_initializerDefineProperty(this, "header", _descriptor62, this);
|
|
303361
302654
|
|
|
303362
|
-
_initializerDefineProperty(this, "footer",
|
|
302655
|
+
_initializerDefineProperty(this, "footer", _descriptor63, this);
|
|
303363
302656
|
|
|
303364
|
-
_initializerDefineProperty(this, "deprecatedDiadocWidth",
|
|
302657
|
+
_initializerDefineProperty(this, "deprecatedDiadocWidth", _descriptor64, this);
|
|
303365
302658
|
|
|
303366
|
-
_initializerDefineProperty(this, "width",
|
|
302659
|
+
_initializerDefineProperty(this, "width", _descriptor65, this);
|
|
303367
302660
|
|
|
303368
|
-
_initializerDefineProperty(this, "tid",
|
|
302661
|
+
_initializerDefineProperty(this, "tid", _descriptor66, this);
|
|
303369
302662
|
|
|
303370
|
-
_initializerDefineProperty(this, "columnGrouping",
|
|
302663
|
+
_initializerDefineProperty(this, "columnGrouping", _descriptor67, this);
|
|
303371
302664
|
}
|
|
303372
302665
|
|
|
303373
302666
|
getOwnPath() {
|
|
@@ -303378,87 +302671,87 @@ let StickyTableNode = (_dec60 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
303378
302671
|
return this.rows.filter(isRowNode).filter(row => row.kind === "head");
|
|
303379
302672
|
}
|
|
303380
302673
|
|
|
303381
|
-
}, (
|
|
302674
|
+
}, (_descriptor51 = _applyDecoratedDescriptor(_class26.prototype, "path", [_dec60], {
|
|
303382
302675
|
configurable: true,
|
|
303383
302676
|
enumerable: true,
|
|
303384
302677
|
writable: true,
|
|
303385
302678
|
initializer: null
|
|
303386
|
-
}),
|
|
302679
|
+
}), _descriptor52 = _applyDecoratedDescriptor(_class26.prototype, "optional", [_dec61], {
|
|
303387
302680
|
configurable: true,
|
|
303388
302681
|
enumerable: true,
|
|
303389
302682
|
writable: true,
|
|
303390
302683
|
initializer: null
|
|
303391
|
-
}),
|
|
302684
|
+
}), _descriptor53 = _applyDecoratedDescriptor(_class26.prototype, "align", [_dec62], {
|
|
303392
302685
|
configurable: true,
|
|
303393
302686
|
enumerable: true,
|
|
303394
302687
|
writable: true,
|
|
303395
302688
|
initializer: null
|
|
303396
|
-
}),
|
|
302689
|
+
}), _descriptor54 = _applyDecoratedDescriptor(_class26.prototype, "removeButton", [_dec63], {
|
|
303397
302690
|
configurable: true,
|
|
303398
302691
|
enumerable: true,
|
|
303399
302692
|
writable: true,
|
|
303400
302693
|
initializer: null
|
|
303401
|
-
}),
|
|
302694
|
+
}), _descriptor55 = _applyDecoratedDescriptor(_class26.prototype, "sticky", [_dec64], {
|
|
303402
302695
|
configurable: true,
|
|
303403
302696
|
enumerable: true,
|
|
303404
302697
|
writable: true,
|
|
303405
302698
|
initializer: null
|
|
303406
|
-
}),
|
|
302699
|
+
}), _descriptor56 = _applyDecoratedDescriptor(_class26.prototype, "stickyHeader", [_dec65], {
|
|
303407
302700
|
configurable: true,
|
|
303408
302701
|
enumerable: true,
|
|
303409
302702
|
writable: true,
|
|
303410
302703
|
initializer: null
|
|
303411
|
-
}),
|
|
302704
|
+
}), _descriptor57 = _applyDecoratedDescriptor(_class26.prototype, "grayColumn", [_dec66], {
|
|
303412
302705
|
configurable: true,
|
|
303413
302706
|
enumerable: true,
|
|
303414
302707
|
writable: true,
|
|
303415
302708
|
initializer: null
|
|
303416
|
-
}),
|
|
302709
|
+
}), _descriptor58 = _applyDecoratedDescriptor(_class26.prototype, "side", [_dec67], {
|
|
303417
302710
|
configurable: true,
|
|
303418
302711
|
enumerable: true,
|
|
303419
302712
|
writable: true,
|
|
303420
302713
|
initializer: null
|
|
303421
|
-
}),
|
|
302714
|
+
}), _descriptor59 = _applyDecoratedDescriptor(_class26.prototype, "className", [_dec68], {
|
|
303422
302715
|
configurable: true,
|
|
303423
302716
|
enumerable: true,
|
|
303424
302717
|
writable: true,
|
|
303425
302718
|
initializer: null
|
|
303426
|
-
}),
|
|
302719
|
+
}), _descriptor60 = _applyDecoratedDescriptor(_class26.prototype, "colgroup", [_dec69], {
|
|
303427
302720
|
configurable: true,
|
|
303428
302721
|
enumerable: true,
|
|
303429
302722
|
writable: true,
|
|
303430
302723
|
initializer: null
|
|
303431
|
-
}),
|
|
302724
|
+
}), _descriptor61 = _applyDecoratedDescriptor(_class26.prototype, "rows", [_dec70], {
|
|
303432
302725
|
configurable: true,
|
|
303433
302726
|
enumerable: true,
|
|
303434
302727
|
writable: true,
|
|
303435
302728
|
initializer: null
|
|
303436
|
-
}),
|
|
302729
|
+
}), _descriptor62 = _applyDecoratedDescriptor(_class26.prototype, "header", [_dec71], {
|
|
303437
302730
|
configurable: true,
|
|
303438
302731
|
enumerable: true,
|
|
303439
302732
|
writable: true,
|
|
303440
302733
|
initializer: null
|
|
303441
|
-
}),
|
|
302734
|
+
}), _descriptor63 = _applyDecoratedDescriptor(_class26.prototype, "footer", [_dec72], {
|
|
303442
302735
|
configurable: true,
|
|
303443
302736
|
enumerable: true,
|
|
303444
302737
|
writable: true,
|
|
303445
302738
|
initializer: null
|
|
303446
|
-
}),
|
|
302739
|
+
}), _descriptor64 = _applyDecoratedDescriptor(_class26.prototype, "deprecatedDiadocWidth", [_dec73], {
|
|
303447
302740
|
configurable: true,
|
|
303448
302741
|
enumerable: true,
|
|
303449
302742
|
writable: true,
|
|
303450
302743
|
initializer: null
|
|
303451
|
-
}),
|
|
302744
|
+
}), _descriptor65 = _applyDecoratedDescriptor(_class26.prototype, "width", [_dec74], {
|
|
303452
302745
|
configurable: true,
|
|
303453
302746
|
enumerable: true,
|
|
303454
302747
|
writable: true,
|
|
303455
302748
|
initializer: null
|
|
303456
|
-
}),
|
|
302749
|
+
}), _descriptor66 = _applyDecoratedDescriptor(_class26.prototype, "tid", [_dec75], {
|
|
303457
302750
|
configurable: true,
|
|
303458
302751
|
enumerable: true,
|
|
303459
302752
|
writable: true,
|
|
303460
302753
|
initializer: null
|
|
303461
|
-
}),
|
|
302754
|
+
}), _descriptor67 = _applyDecoratedDescriptor(_class26.prototype, "columnGrouping", [_dec76], {
|
|
303462
302755
|
configurable: true,
|
|
303463
302756
|
enumerable: true,
|
|
303464
302757
|
writable: true,
|
|
@@ -308614,7 +307907,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
308614
307907
|
|
|
308615
307908
|
setCurrencyProps(markupBuilder, context, node) {
|
|
308616
307909
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
308617
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
307910
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(this.getResolvedBindingPath(node));
|
|
308618
307911
|
markupBuilder.prop(x => x.currency).set(node.currency);
|
|
308619
307912
|
|
|
308620
307913
|
if (node.currency) {
|
|
@@ -308665,7 +307958,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
308665
307958
|
var _typeNode$base2, _node$maskChar, _node$width;
|
|
308666
307959
|
|
|
308667
307960
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
308668
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
307961
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(this.getResolvedBindingPath(node));
|
|
308669
307962
|
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;
|
|
308670
307963
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("Input");
|
|
308671
307964
|
|
|
@@ -308721,7 +308014,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
308721
308014
|
var _typeNode$base3, _node$width2;
|
|
308722
308015
|
|
|
308723
308016
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
308724
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
308017
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(this.getResolvedBindingPath(node));
|
|
308725
308018
|
const typeBase = (_typeNode$base3 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base3 !== void 0 ? _typeNode$base3 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
308726
308019
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FxInput");
|
|
308727
308020
|
|
|
@@ -311072,7 +310365,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
311072
310365
|
var _ref, _ref2, _typeNode$flattenType, _typeNode$flattenType2, _typeNode$flattenType3;
|
|
311073
310366
|
|
|
311074
310367
|
const typeNode = context.getTypeNode(nodeValidationInfo);
|
|
311075
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
310368
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(this.getResolvedBindingPath(node));
|
|
311076
310369
|
return (_ref = (_ref2 = (_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 && _ref2 !== void 0 ? _ref2 : 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 && _ref !== void 0 ? _ref : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength;
|
|
311077
310370
|
}
|
|
311078
310371
|
|
|
@@ -312520,19 +311813,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
312520
311813
|
|
|
312521
311814
|
|
|
312522
311815
|
class MarkupBuildingContext {
|
|
312523
|
-
constructor(convertNode, nodeContext, formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng,
|
|
311816
|
+
constructor(convertNode, nodeContext, formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations) {
|
|
312524
311817
|
this.convertNode = void 0;
|
|
312525
311818
|
this.formSourcesPath = void 0;
|
|
312526
311819
|
this.helpers = void 0;
|
|
312527
311820
|
this.pathsContext = void 0;
|
|
312528
|
-
this.dataDeclarationHelper = void 0;
|
|
312529
311821
|
this.schemaRng = void 0;
|
|
312530
311822
|
this.useSchemaValidations = void 0;
|
|
312531
311823
|
this.typesRegistry = void 0;
|
|
312532
311824
|
this.uniqueControlIdIncrement = new Map();
|
|
312533
311825
|
this.controlCustomizationContext = void 0;
|
|
312534
311826
|
this.tourSteps = void 0;
|
|
312535
|
-
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
312536
311827
|
this.schemaRng = schemaRng;
|
|
312537
311828
|
this.useSchemaValidations = useSchemaValidations;
|
|
312538
311829
|
this.typesRegistry = typesRegistry;
|
|
@@ -312544,14 +311835,6 @@ class MarkupBuildingContext {
|
|
|
312544
311835
|
this.helpers = helpers;
|
|
312545
311836
|
}
|
|
312546
311837
|
|
|
312547
|
-
isNodeOptional(nodePath) {
|
|
312548
|
-
if (this.useSchemaValidations) {
|
|
312549
|
-
this.schemaRng.getIsOptionalByPath(nodePath);
|
|
312550
|
-
}
|
|
312551
|
-
|
|
312552
|
-
return this.dataDeclarationHelper.isNodeOptional(nodePath);
|
|
312553
|
-
}
|
|
312554
|
-
|
|
312555
311838
|
getUniqueControlId(context) {
|
|
312556
311839
|
let currentValue = this.uniqueControlIdIncrement.get(context);
|
|
312557
311840
|
|
|
@@ -312683,7 +311966,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
312683
311966
|
|
|
312684
311967
|
|
|
312685
311968
|
class MarkupGenerator {
|
|
312686
|
-
constructor(formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng,
|
|
311969
|
+
constructor(formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations) {
|
|
312687
311970
|
this.controlCustomizationContext = void 0;
|
|
312688
311971
|
this.markupBuilderContext = void 0;
|
|
312689
311972
|
|
|
@@ -312718,7 +312001,7 @@ class MarkupGenerator {
|
|
|
312718
312001
|
};
|
|
312719
312002
|
|
|
312720
312003
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
312721
|
-
this.markupBuilderContext = new _IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_5__.MarkupBuildingContext(this.convertNode, new _ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_7__.NodePathsContext(), formSourcesPath, helpers, tourSteps, this.controlCustomizationContext, typesRegistry, schemaRng,
|
|
312004
|
+
this.markupBuilderContext = new _IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_5__.MarkupBuildingContext(this.convertNode, new _ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_7__.NodePathsContext(), formSourcesPath, helpers, tourSteps, this.controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations);
|
|
312722
312005
|
}
|
|
312723
312006
|
|
|
312724
312007
|
generate(sugarRoot, builder) {
|
|
@@ -316460,16 +315743,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
316460
315743
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
316461
315744
|
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
316462
315745
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
316463
|
-
/* harmony import */ var
|
|
316464
|
-
/* harmony import */ var
|
|
316465
|
-
/* harmony import */ var
|
|
316466
|
-
/* harmony import */ var
|
|
316467
|
-
/* harmony import */ var
|
|
316468
|
-
/* harmony import */ var
|
|
316469
|
-
/* harmony import */ var
|
|
316470
|
-
/* harmony import */ var
|
|
316471
|
-
/* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
|
|
316472
|
-
|
|
315746
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts");
|
|
315747
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
|
|
315748
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator.ts");
|
|
315749
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator.ts");
|
|
315750
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/EnumerationValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/EnumerationValidatorGenerator.ts");
|
|
315751
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator.ts");
|
|
315752
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator.ts");
|
|
315753
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
|
|
316473
315754
|
|
|
316474
315755
|
|
|
316475
315756
|
|
|
@@ -316487,7 +315768,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
316487
315768
|
|
|
316488
315769
|
class ValidationGenerator {
|
|
316489
315770
|
constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = []) {
|
|
316490
|
-
this.typeBasedValidatorGenerators = [
|
|
315771
|
+
this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_7__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__.CustomValidationValueValidatorGenerator];
|
|
316491
315772
|
this.sugarRoot = void 0;
|
|
316492
315773
|
this.validationsContent = void 0;
|
|
316493
315774
|
this.customValidations = void 0;
|
|
@@ -316623,7 +315904,7 @@ class ValidationGenerator {
|
|
|
316623
315904
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_6__.InvalidProgramStateError();
|
|
316624
315905
|
}
|
|
316625
315906
|
|
|
316626
|
-
const bindingPath =
|
|
315907
|
+
const bindingPath = firstItem.bindingPath;
|
|
316627
315908
|
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
316628
315909
|
const sugarOptional = (_validationInfos$find = validationInfos.find(x => x.sugarOptional != undefined)) === null || _validationInfos$find === void 0 ? void 0 : _validationInfos$find.sugarOptional;
|
|
316629
315910
|
const isOptional = sugarOptional !== null && sugarOptional !== void 0 ? sugarOptional : this.isOptionalFromSchema(bindingPath);
|
|
@@ -316661,7 +315942,7 @@ class ValidationGenerator {
|
|
|
316661
315942
|
|
|
316662
315943
|
|
|
316663
315944
|
processValidations(bindingPath, sugarOptional, sugarNodeType, gId, highOrderDescription, fileLoaderOptions) {
|
|
316664
|
-
const rngSchemaNodeType = this.getRngSchemaTypeInfo(
|
|
315945
|
+
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
316665
315946
|
|
|
316666
315947
|
if (bindingPath && (sugarNodeType != undefined || rngSchemaNodeType != undefined)) {
|
|
316667
315948
|
var _this$validations$val;
|