@kontur.candy/generator 4.235.0 → 4.236.0-nightly.5jlmo
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 +1217 -459
- 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 : AbsoluteModelPath.createAbsoluteFromMask(path, PathTokens.each);
|
|
271828
271828
|
}
|
|
271829
271829
|
class AbsoluteModelFieldPath {
|
|
271830
271830
|
constructor(path, fieldName) {
|
|
@@ -279913,6 +279913,293 @@ 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
|
+
|
|
279916
280203
|
/***/ "./Generator/src/common/KCLang/KCLangToJsTranspiler.ts":
|
|
279917
280204
|
/*!*************************************************************!*\
|
|
279918
280205
|
!*** ./Generator/src/common/KCLang/KCLangToJsTranspiler.ts ***!
|
|
@@ -280210,6 +280497,345 @@ class KCLangToJsTranspiler {
|
|
|
280210
280497
|
|
|
280211
280498
|
/***/ }),
|
|
280212
280499
|
|
|
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
|
+
|
|
280213
280839
|
/***/ "./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts":
|
|
280214
280840
|
/*!*********************************************************************************!*\
|
|
280215
280841
|
!*** ./Generator/src/common/RequireContext/LoadDocumentationFileFormContext.ts ***!
|
|
@@ -280439,12 +281065,11 @@ class FormSchemaRng {
|
|
|
280439
281065
|
return result.toPath().toAbsolute();
|
|
280440
281066
|
}
|
|
280441
281067
|
|
|
280442
|
-
getElementByPath(
|
|
280443
|
-
const modelPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(bindingPath, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
281068
|
+
getElementByPath(path) {
|
|
280444
281069
|
let expectMultipleElement = false;
|
|
280445
281070
|
let currentElement;
|
|
280446
281071
|
|
|
280447
|
-
for (const part of
|
|
281072
|
+
for (const part of path.getPathParts()) {
|
|
280448
281073
|
if (currentElement == undefined) {
|
|
280449
281074
|
if (this.rootElement.name === part) {
|
|
280450
281075
|
currentElement = this.rootElement;
|
|
@@ -280482,8 +281107,7 @@ class FormSchemaRng {
|
|
|
280482
281107
|
return currentElement;
|
|
280483
281108
|
}
|
|
280484
281109
|
|
|
280485
|
-
getIsOptionalByPath(
|
|
280486
|
-
const modelPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(bindingPath, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
281110
|
+
getIsOptionalByPath(modelPath) {
|
|
280487
281111
|
let isOptionalStatus = false;
|
|
280488
281112
|
let currentElement;
|
|
280489
281113
|
|
|
@@ -280518,6 +281142,12 @@ class FormSchemaRng {
|
|
|
280518
281142
|
return isOptionalStatus;
|
|
280519
281143
|
}
|
|
280520
281144
|
|
|
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
|
+
|
|
280521
281151
|
getTypeNodeByPath(bindingPath) {
|
|
280522
281152
|
const currentElement = this.getElementByPath(bindingPath);
|
|
280523
281153
|
|
|
@@ -285435,8 +286065,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
285435
286065
|
|
|
285436
286066
|
|
|
285437
286067
|
class FormulasAutoCalculationsGenerator {
|
|
285438
|
-
generate(
|
|
285439
|
-
const formulas = formulaContainer.formulas == undefined || formulaContainer.formulas.items == undefined ? [] : formulaContainer.formulas.items;
|
|
286068
|
+
generate(formulas, schemaRng, dataDeclarationHelper) {
|
|
285440
286069
|
const formulaAutoCalculations = formulas.map(formula => this.buildFormulaAutoCalculation(formula, schemaRng, dataDeclarationHelper)).flat();
|
|
285441
286070
|
return this.mergeFormulaAutoCalculations(formulaAutoCalculations);
|
|
285442
286071
|
}
|
|
@@ -286162,35 +286791,73 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
286162
286791
|
/* harmony export */ });
|
|
286163
286792
|
/* harmony import */ var _common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../common/XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
286164
286793
|
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
286165
|
-
/* harmony import */ var
|
|
286794
|
+
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
286795
|
+
/* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
286796
|
+
|
|
286166
286797
|
|
|
286167
286798
|
|
|
286168
286799
|
|
|
286169
286800
|
class FormulaReader {
|
|
286170
|
-
readFormulas(
|
|
286801
|
+
readFormulas(kcxmlSources, kclangSources) {
|
|
286171
286802
|
const serializer = this.createFormulaSerializer();
|
|
286172
|
-
const result =
|
|
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));
|
|
286807
|
+
|
|
286808
|
+
if (rootNode instanceof _Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer) {
|
|
286809
|
+
var _rootNode$formulas$it, _rootNode$formulas;
|
|
286173
286810
|
|
|
286174
|
-
|
|
286175
|
-
|
|
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
|
+
}
|
|
286176
286823
|
}
|
|
286177
286824
|
|
|
286178
286825
|
return result;
|
|
286179
286826
|
}
|
|
286180
286827
|
|
|
286181
|
-
|
|
286182
|
-
const
|
|
286183
|
-
|
|
286184
|
-
|
|
286185
|
-
|
|
286828
|
+
readConditions(kcxmlSources, kclangSources) {
|
|
286829
|
+
const serializer = this.createFormulaSerializer();
|
|
286830
|
+
const result = [];
|
|
286831
|
+
|
|
286832
|
+
for (const kcxmlSource of kcxmlSources) {
|
|
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;
|
|
286186
286853
|
}
|
|
286187
286854
|
|
|
286188
286855
|
createFormulaSerializer() {
|
|
286189
286856
|
const result = new _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.SugarSerializer();
|
|
286190
|
-
result.registerNode(
|
|
286191
|
-
result.registerNode(
|
|
286857
|
+
result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_3__.DummyContent);
|
|
286858
|
+
result.registerNode(_Formula__WEBPACK_IMPORTED_MODULE_3__.MathContainer);
|
|
286192
286859
|
|
|
286193
|
-
for (const formulaExpression of
|
|
286860
|
+
for (const formulaExpression of _Formula__WEBPACK_IMPORTED_MODULE_3__.formulaExpressions) {
|
|
286194
286861
|
result.registerNode(formulaExpression);
|
|
286195
286862
|
}
|
|
286196
286863
|
|
|
@@ -286781,33 +287448,43 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
286781
287448
|
}
|
|
286782
287449
|
|
|
286783
287450
|
hasMask(targetPath) {
|
|
286784
|
-
return
|
|
287451
|
+
return this.getDataDeclarationEntry(targetPath) != undefined;
|
|
286785
287452
|
}
|
|
286786
287453
|
|
|
286787
287454
|
isNodeHasChildrenEntry(targetPath) {
|
|
286788
|
-
var _this$
|
|
287455
|
+
var _this$getDataDeclarat;
|
|
286789
287456
|
|
|
286790
|
-
return ((_this$
|
|
287457
|
+
return ((_this$getDataDeclarat = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat === void 0 ? void 0 : _this$getDataDeclarat.children) != undefined;
|
|
286791
287458
|
}
|
|
286792
287459
|
|
|
286793
287460
|
isNodeHasAutoFlagEntry(targetPath) {
|
|
286794
|
-
const
|
|
286795
|
-
const declEntry = this.dataDeclaration[targetPathString];
|
|
287461
|
+
const declEntry = this.getDataDeclarationEntry(targetPath);
|
|
286796
287462
|
return declEntry !== undefined && "autoValue" in declEntry;
|
|
286797
287463
|
}
|
|
286798
287464
|
|
|
286799
287465
|
isNodeHasDisabledEntry(targetPath) {
|
|
286800
|
-
const declEntry = this.
|
|
287466
|
+
const declEntry = this.getDataDeclarationEntry(targetPath);
|
|
286801
287467
|
return Boolean(declEntry === null || declEntry === void 0 ? void 0 : declEntry.disabled);
|
|
286802
287468
|
}
|
|
286803
287469
|
|
|
286804
287470
|
getDefaultValue(targetPath) {
|
|
286805
|
-
const declEntry = this.
|
|
287471
|
+
const declEntry = this.getDataDeclarationEntry(targetPath);
|
|
286806
287472
|
const lastValue = declEntry !== undefined && "value" in declEntry && declEntry.value != undefined ? declEntry.value[declEntry.value.length - 1] : "";
|
|
286807
287473
|
const returnDefaultValue = typeof lastValue === "string" ? lastValue : "";
|
|
286808
287474
|
return returnDefaultValue;
|
|
286809
287475
|
}
|
|
286810
287476
|
|
|
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
|
+
|
|
286811
287488
|
}
|
|
286812
287489
|
|
|
286813
287490
|
/***/ }),
|
|
@@ -287885,11 +288562,9 @@ class KCXmlValidationGenerator {
|
|
|
287885
288562
|
const conditionReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_2__.FormulaReader();
|
|
287886
288563
|
|
|
287887
288564
|
for (const file of importedKcXmlValidations) {
|
|
287888
|
-
const
|
|
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;
|
|
288565
|
+
const conditions = conditionReader.readConditions([file], []);
|
|
287892
288566
|
|
|
288567
|
+
for (const condition of conditions) {
|
|
287893
288568
|
compiledConditions.push(this.compileCondition(condition));
|
|
287894
288569
|
}
|
|
287895
288570
|
}
|
|
@@ -288072,7 +288747,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
288072
288747
|
const sugarAst = (0,_common_SugarXmlParser_SugarParser__WEBPACK_IMPORTED_MODULE_4__.parseSugar)(formSugarContent, additionalContent.preprocessor || {});
|
|
288073
288748
|
const serializer = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__.createDefaultSugarSerializer)();
|
|
288074
288749
|
const sugarRoot = (0,_markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__.strictCastNode)(serializer.deserializeFromSugarXmlNode(sugarAst), _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__.FormNode);
|
|
288075
|
-
const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent);
|
|
288750
|
+
const formulas = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_16__.FormulaReader().readFormulas(additionalContent.kcJsXmlContent, additionalContent.kclangAutocaclulationsContent);
|
|
288076
288751
|
const schemaRng = (0,_common_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_5__.parseXml)(additionalContent.schemaRngContent);
|
|
288077
288752
|
const formSchemaRng = _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRng.createFromSchemaRng(additionalContent.schemaRngContent);
|
|
288078
288753
|
const typeRegistry = (0,_validationGenerator_TypesRegistry__WEBPACK_IMPORTED_MODULE_14__.buildTypesRegistry)(sugarRoot);
|
|
@@ -288092,7 +288767,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
288092
288767
|
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);
|
|
288093
288768
|
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");
|
|
288094
288769
|
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_20__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
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);
|
|
288770
|
+
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
|
|
288096
288771
|
markupGenerator.generate(sugarRoot, builder);
|
|
288097
288772
|
builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_8__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings));
|
|
288098
288773
|
builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_23__.getRequisiteList)(sugarRoot, fetchFunctions));
|
|
@@ -288197,20 +288872,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
288197
288872
|
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
|
288198
288873
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ "path");
|
|
288199
288874
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
|
288200
|
-
/* harmony import */ var
|
|
288201
|
-
/* harmony import */ var
|
|
288202
|
-
/* harmony import */ var
|
|
288203
|
-
/* harmony import */ var
|
|
288204
|
-
/* harmony import */ var
|
|
288205
|
-
/* harmony import */ var
|
|
288206
|
-
/* harmony import */ var
|
|
288207
|
-
/* harmony import */ var
|
|
288208
|
-
/* harmony import */ var
|
|
288209
|
-
/* harmony import */ var
|
|
288210
|
-
/* harmony import */ var
|
|
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");
|
|
288213
|
-
|
|
288875
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
|
|
288876
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_2__);
|
|
288877
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/lib/index.js");
|
|
288878
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(fs_extra__WEBPACK_IMPORTED_MODULE_3__);
|
|
288879
|
+
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
|
|
288880
|
+
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_4__);
|
|
288881
|
+
/* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! md5-file */ "./node_modules/md5-file/index.js");
|
|
288882
|
+
/* harmony import */ var md5_file__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(md5_file__WEBPACK_IMPORTED_MODULE_5__);
|
|
288883
|
+
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recursive-readdir */ "./node_modules/recursive-readdir/index.js");
|
|
288884
|
+
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(recursive_readdir__WEBPACK_IMPORTED_MODULE_6__);
|
|
288885
|
+
/* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
|
|
288214
288886
|
|
|
288215
288887
|
|
|
288216
288888
|
|
|
@@ -288219,9 +288891,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
288219
288891
|
|
|
288220
288892
|
|
|
288221
288893
|
|
|
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);
|
|
288225
288894
|
async function readFormSources(formSourcesPath, farmDirectory) {
|
|
288226
288895
|
var _JSON$parse$settings;
|
|
288227
288896
|
|
|
@@ -288233,9 +288902,9 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
288233
288902
|
|
|
288234
288903
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
288235
288904
|
// eslint-disable-next-line no-console
|
|
288236
|
-
console.warn(
|
|
288905
|
+
console.warn(chalk__WEBPACK_IMPORTED_MODULE_2___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
|
|
288237
288906
|
const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
|
|
288238
|
-
sugarReferences.fetchFunctionFiles = (await
|
|
288907
|
+
sugarReferences.fetchFunctionFiles = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
288239
288908
|
}
|
|
288240
288909
|
|
|
288241
288910
|
const result = {
|
|
@@ -288245,11 +288914,12 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
288245
288914
|
formSourcesPath: formSourcesPath,
|
|
288246
288915
|
formJsonSettings: (_JSON$parse$settings = JSON.parse(await readFileSource(formSourcesPath, "form.json", "{}"))["settings"]) !== null && _JSON$parse$settings !== void 0 ? _JSON$parse$settings : {},
|
|
288247
288916
|
additionalSettings: await readFileSource(formSourcesPath, "settings.json", "{}"),
|
|
288248
|
-
autocalcsContent: await
|
|
288917
|
+
autocalcsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.js$/),
|
|
288249
288918
|
helpersContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers")),
|
|
288250
288919
|
validationsContent: await readJavaScriptFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations")),
|
|
288251
288920
|
schemaRngContent: await readSchemaRngFile(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"), formName),
|
|
288252
|
-
kcJsXmlContent:
|
|
288921
|
+
kcJsXmlContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.(KC|КС|КC|KС|КС\.candy\.js).xml$/),
|
|
288922
|
+
kclangAutocaclulationsContent: await readFilesFromDir(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"), /\.kclang$/),
|
|
288253
288923
|
tourSteps: await readFileSource(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "tour"), "tour.js", "{}"),
|
|
288254
288924
|
hooksContent: await readHooksFile(formSourcesPath),
|
|
288255
288925
|
customControlsContent: await readCustomControlsFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls")),
|
|
@@ -288293,7 +288963,7 @@ function evalModule(moduleCode) {
|
|
|
288293
288963
|
|
|
288294
288964
|
async function isDirectoryExists(directoryPath) {
|
|
288295
288965
|
try {
|
|
288296
|
-
const dirStat = await
|
|
288966
|
+
const dirStat = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.stat)(directoryPath);
|
|
288297
288967
|
return dirStat.isDirectory();
|
|
288298
288968
|
} catch (ignoreError) {
|
|
288299
288969
|
return false;
|
|
@@ -288304,27 +288974,27 @@ async function readFiles(filePaths) {
|
|
|
288304
288974
|
const result = [];
|
|
288305
288975
|
|
|
288306
288976
|
for (const filePath of filePaths) {
|
|
288307
|
-
result.push(await
|
|
288977
|
+
result.push(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(filePath, "utf-8"));
|
|
288308
288978
|
}
|
|
288309
288979
|
|
|
288310
288980
|
return result;
|
|
288311
288981
|
}
|
|
288312
288982
|
|
|
288313
288983
|
async function extractReferences(formSugarDirectoryPath) {
|
|
288314
|
-
const indexContent = await
|
|
288315
|
-
return (0,
|
|
288984
|
+
const indexContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8");
|
|
288985
|
+
return (0,_common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__.extractSugarReferences)(indexContent, filePath => (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, filePath), "utf-8"));
|
|
288316
288986
|
}
|
|
288317
288987
|
|
|
288318
288988
|
async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
288319
|
-
if (!(await (0,
|
|
288989
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(directoryPath))) {
|
|
288320
288990
|
return [];
|
|
288321
288991
|
}
|
|
288322
288992
|
|
|
288323
|
-
const files = await
|
|
288993
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(directoryPath);
|
|
288324
288994
|
let filelist = _filelist || [];
|
|
288325
288995
|
|
|
288326
288996
|
for (const file of files) {
|
|
288327
|
-
if ((await
|
|
288997
|
+
if ((await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.stat)(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file))).isDirectory()) {
|
|
288328
288998
|
filelist = await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file), filelist);
|
|
288329
288999
|
} else {
|
|
288330
289000
|
filelist.push(path__WEBPACK_IMPORTED_MODULE_1___default().join(directoryPath, file));
|
|
@@ -288335,7 +289005,7 @@ async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
|
288335
289005
|
}
|
|
288336
289006
|
|
|
288337
289007
|
async function checkFileExists(filePath) {
|
|
288338
|
-
if (!(await (0,
|
|
289008
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(filePath))) {
|
|
288339
289009
|
return [];
|
|
288340
289010
|
}
|
|
288341
289011
|
|
|
@@ -288348,7 +289018,7 @@ async function getAllDependencies(formSourcesPath, farmDirectory) {
|
|
|
288348
289018
|
|
|
288349
289019
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
288350
289020
|
const legacyfetchfunctionsDirectory = path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions");
|
|
288351
|
-
sugarReferences.fetchFunctionFiles = (await
|
|
289021
|
+
sugarReferences.fetchFunctionFiles = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
288352
289022
|
}
|
|
288353
289023
|
|
|
288354
289024
|
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")))];
|
|
@@ -288361,23 +289031,23 @@ function normalizeLineEndings(content) {
|
|
|
288361
289031
|
async function getAllDependenciesHash(formSourcesPath, farmDirectory) {
|
|
288362
289032
|
const allDeps = await getAllDependencies(formSourcesPath, farmDirectory);
|
|
288363
289033
|
const hashes = await Promise.all(allDeps.map(async depFilePath => {
|
|
288364
|
-
if ([".js", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
|
|
288365
|
-
let content = await
|
|
289034
|
+
if ([".js", ".kclang", ".xml", ".xslt", ".json"].some(ext => depFilePath.endsWith(ext))) {
|
|
289035
|
+
let content = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(depFilePath, "utf-8");
|
|
288366
289036
|
content = normalizeLineEndings(content);
|
|
288367
|
-
return
|
|
289037
|
+
return md5__WEBPACK_IMPORTED_MODULE_4___default()(content);
|
|
288368
289038
|
}
|
|
288369
289039
|
|
|
288370
|
-
return
|
|
289040
|
+
return md5_file__WEBPACK_IMPORTED_MODULE_5___default()(depFilePath);
|
|
288371
289041
|
}));
|
|
288372
|
-
return
|
|
289042
|
+
return md5__WEBPACK_IMPORTED_MODULE_4___default()(hashes.join(""));
|
|
288373
289043
|
}
|
|
288374
289044
|
async function readSugarFiles(formSugarDirectoryPath, references) {
|
|
288375
289045
|
const result = {
|
|
288376
|
-
"./index": await
|
|
289046
|
+
"./index": await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), "utf-8")
|
|
288377
289047
|
};
|
|
288378
289048
|
|
|
288379
289049
|
for (const sugarPath of references.sugarFiles) {
|
|
288380
|
-
const sugarModuleContent = await
|
|
289050
|
+
const sugarModuleContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, sugarPath + ".sugar.xml"), "utf-8");
|
|
288381
289051
|
result[sugarPath] = sugarModuleContent;
|
|
288382
289052
|
}
|
|
288383
289053
|
|
|
@@ -288389,11 +289059,11 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
|
288389
289059
|
return {};
|
|
288390
289060
|
}
|
|
288391
289061
|
|
|
288392
|
-
const fileNames = await
|
|
289062
|
+
const fileNames = await recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default()(formSugarDirectoryPath);
|
|
288393
289063
|
const result = {};
|
|
288394
289064
|
|
|
288395
289065
|
for (const fileName of fileNames) {
|
|
288396
|
-
const sugarModuleContent = await
|
|
289066
|
+
const sugarModuleContent = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(fileName, "utf-8");
|
|
288397
289067
|
const relativeFileName = ("controls\\" + fileName.replace(formSugarDirectoryPath + "\\", "")).replace(/\\/g, "/");
|
|
288398
289068
|
result[relativeFileName] = sugarModuleContent;
|
|
288399
289069
|
}
|
|
@@ -288401,23 +289071,23 @@ async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
|
288401
289071
|
return result;
|
|
288402
289072
|
}
|
|
288403
289073
|
|
|
288404
|
-
async function
|
|
288405
|
-
|
|
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) {
|
|
289074
|
+
async function readFilesFromDir(directoryPath, fileNameTest) {
|
|
289075
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.pathExists)(directoryPath))) {
|
|
288410
289076
|
return [];
|
|
288411
289077
|
}
|
|
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")));
|
|
288412
289082
|
}
|
|
288413
289083
|
|
|
288414
289084
|
async function readImportedFiles(rootPath) {
|
|
288415
289085
|
try {
|
|
288416
289086
|
const result = {};
|
|
288417
|
-
const files = await
|
|
289087
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations"));
|
|
288418
289088
|
|
|
288419
289089
|
for (const fileName of files) {
|
|
288420
|
-
result["../validations/" + fileName] = await
|
|
289090
|
+
result["../validations/" + fileName] = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(rootPath, "validations", fileName), "utf-8");
|
|
288421
289091
|
}
|
|
288422
289092
|
|
|
288423
289093
|
return result;
|
|
@@ -288428,11 +289098,11 @@ async function readImportedFiles(rootPath) {
|
|
|
288428
289098
|
|
|
288429
289099
|
async function readJavaScriptFilesWithNames(formJavaScriptFilesPath) {
|
|
288430
289100
|
try {
|
|
288431
|
-
const files = await
|
|
289101
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(formJavaScriptFilesPath);
|
|
288432
289102
|
const jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
288433
289103
|
return Promise.all(jsFiles.map(async filename => ({
|
|
288434
289104
|
filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
|
|
288435
|
-
content: await
|
|
289105
|
+
content: await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8")
|
|
288436
289106
|
})));
|
|
288437
289107
|
} catch (ignoreError) {
|
|
288438
289108
|
return [];
|
|
@@ -288443,7 +289113,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
288443
289113
|
let jsFiles;
|
|
288444
289114
|
|
|
288445
289115
|
try {
|
|
288446
|
-
const files = await
|
|
289116
|
+
const files = await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readdir)(formJavaScriptFilesPath);
|
|
288447
289117
|
jsFiles = files.filter(filename => /\.js$/.test(filename));
|
|
288448
289118
|
const result = [];
|
|
288449
289119
|
|
|
@@ -288451,7 +289121,7 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
288451
289121
|
result.push({
|
|
288452
289122
|
filename: path__WEBPACK_IMPORTED_MODULE_1___default().parse(filename).name,
|
|
288453
289123
|
// tslint:disable-next-line no-unsafe-any
|
|
288454
|
-
content: evalModule(await
|
|
289124
|
+
content: evalModule(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formJavaScriptFilesPath, filename), "utf-8"))
|
|
288455
289125
|
});
|
|
288456
289126
|
}
|
|
288457
289127
|
|
|
@@ -288462,16 +289132,16 @@ async function connectJSFilesWithNames(formJavaScriptFilesPath) {
|
|
|
288462
289132
|
}
|
|
288463
289133
|
|
|
288464
289134
|
function readSchemaRngFile(formSchemasPath, gfv) {
|
|
288465
|
-
return
|
|
289135
|
+
return (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSchemasPath, `${gfv}.rng.xml`), "utf-8");
|
|
288466
289136
|
}
|
|
288467
289137
|
|
|
288468
289138
|
function readHooksFile(formDirectoryPath) {
|
|
288469
|
-
return
|
|
289139
|
+
return (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formDirectoryPath, "hooks.js"), "utf-8").catch(() => "");
|
|
288470
289140
|
}
|
|
288471
289141
|
|
|
288472
289142
|
async function readFileSource(filePath, filename, defaultValue) {
|
|
288473
289143
|
try {
|
|
288474
|
-
return await
|
|
289144
|
+
return await (0,fs_extra__WEBPACK_IMPORTED_MODULE_3__.readFile)(path__WEBPACK_IMPORTED_MODULE_1___default().join(filePath, filename), "utf-8");
|
|
288475
289145
|
} catch (ingoreError) {
|
|
288476
289146
|
return defaultValue;
|
|
288477
289147
|
}
|
|
@@ -288631,7 +289301,7 @@ class FLangValidationBuildContext {
|
|
|
288631
289301
|
}
|
|
288632
289302
|
|
|
288633
289303
|
getSchemaTypeInfo(bindingPath) {
|
|
288634
|
-
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath
|
|
289304
|
+
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath) : undefined;
|
|
288635
289305
|
}
|
|
288636
289306
|
|
|
288637
289307
|
getTypeNode(node) {
|
|
@@ -289026,18 +289696,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289026
289696
|
|
|
289027
289697
|
|
|
289028
289698
|
class NormalizationRulesGenerator {
|
|
289029
|
-
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng,
|
|
289699
|
+
constructor(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typesRegistry, useSchemaValidations, controlCustomizationContext) {
|
|
289030
289700
|
this.sugarRoot = void 0;
|
|
289031
289701
|
this.dataDeclarationHelper = void 0;
|
|
289032
289702
|
this.formSchemaRng = void 0;
|
|
289033
|
-
this.
|
|
289703
|
+
this.formulas = void 0;
|
|
289034
289704
|
this.typesRegistry = void 0;
|
|
289035
289705
|
this.controlCustomizationContext = void 0;
|
|
289036
289706
|
this.useSchemaValidations = void 0;
|
|
289037
289707
|
this.sugarRoot = sugarRoot;
|
|
289038
289708
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
289039
289709
|
this.formSchemaRng = formSchemaRng;
|
|
289040
|
-
this.
|
|
289710
|
+
this.formulas = formulas;
|
|
289041
289711
|
this.typesRegistry = typesRegistry;
|
|
289042
289712
|
this.useSchemaValidations = useSchemaValidations;
|
|
289043
289713
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
@@ -289067,9 +289737,7 @@ class NormalizationRulesGenerator {
|
|
|
289067
289737
|
}
|
|
289068
289738
|
|
|
289069
289739
|
*buildFormulaFLangRules() {
|
|
289070
|
-
for (const formula of
|
|
289071
|
-
var _this$mathContainer$f, _this$mathContainer, _this$mathContainer$f2;
|
|
289072
|
-
|
|
289740
|
+
for (const formula of this.formulas) {
|
|
289073
289741
|
yield* this.buildFormulaFlashRule(formula);
|
|
289074
289742
|
}
|
|
289075
289743
|
}
|
|
@@ -297933,7 +298601,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
297933
298601
|
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
297934
298602
|
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
297935
298603
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
297936
|
-
|
|
298604
|
+
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
298605
|
+
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;
|
|
297937
298606
|
|
|
297938
298607
|
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 }); }
|
|
297939
298608
|
|
|
@@ -297945,7 +298614,8 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
297945
298614
|
|
|
297946
298615
|
|
|
297947
298616
|
|
|
297948
|
-
|
|
298617
|
+
|
|
298618
|
+
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 {
|
|
297949
298619
|
constructor(...args) {
|
|
297950
298620
|
super(...args);
|
|
297951
298621
|
|
|
@@ -297955,29 +298625,31 @@ let SimpleTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
297955
298625
|
|
|
297956
298626
|
_initializerDefineProperty(this, "disabled", _descriptor3, this);
|
|
297957
298627
|
|
|
297958
|
-
_initializerDefineProperty(this, "
|
|
298628
|
+
_initializerDefineProperty(this, "disabled2", _descriptor4, this);
|
|
297959
298629
|
|
|
297960
|
-
_initializerDefineProperty(this, "
|
|
298630
|
+
_initializerDefineProperty(this, "hintOnAdd", _descriptor5, this);
|
|
297961
298631
|
|
|
297962
|
-
_initializerDefineProperty(this, "
|
|
298632
|
+
_initializerDefineProperty(this, "titles", _descriptor6, this);
|
|
297963
298633
|
|
|
297964
|
-
_initializerDefineProperty(this, "
|
|
298634
|
+
_initializerDefineProperty(this, "colspan", _descriptor7, this);
|
|
297965
298635
|
|
|
297966
|
-
_initializerDefineProperty(this, "
|
|
298636
|
+
_initializerDefineProperty(this, "empty", _descriptor8, this);
|
|
297967
298637
|
|
|
297968
|
-
_initializerDefineProperty(this, "
|
|
298638
|
+
_initializerDefineProperty(this, "rowspan", _descriptor9, this);
|
|
297969
298639
|
|
|
297970
|
-
_initializerDefineProperty(this, "
|
|
298640
|
+
_initializerDefineProperty(this, "horizontalAlign", _descriptor10, this);
|
|
297971
298641
|
|
|
297972
|
-
_initializerDefineProperty(this, "
|
|
298642
|
+
_initializerDefineProperty(this, "requiredempty", _descriptor11, this);
|
|
297973
298643
|
|
|
297974
|
-
_initializerDefineProperty(this, "
|
|
298644
|
+
_initializerDefineProperty(this, "indent", _descriptor12, this);
|
|
297975
298645
|
|
|
297976
|
-
_initializerDefineProperty(this, "
|
|
298646
|
+
_initializerDefineProperty(this, "width", _descriptor13, this);
|
|
298647
|
+
|
|
298648
|
+
_initializerDefineProperty(this, "textTopPadding", _descriptor14, this);
|
|
297977
298649
|
|
|
297978
|
-
_initializerDefineProperty(this, "size",
|
|
298650
|
+
_initializerDefineProperty(this, "size", _descriptor15, this);
|
|
297979
298651
|
|
|
297980
|
-
_initializerDefineProperty(this, "children",
|
|
298652
|
+
_initializerDefineProperty(this, "children", _descriptor16, this);
|
|
297981
298653
|
}
|
|
297982
298654
|
|
|
297983
298655
|
getOwnPath() {
|
|
@@ -298005,162 +298677,167 @@ let SimpleTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
298005
298677
|
enumerable: true,
|
|
298006
298678
|
writable: true,
|
|
298007
298679
|
initializer: null
|
|
298008
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
298680
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "disabled2", [_dec5], {
|
|
298009
298681
|
configurable: true,
|
|
298010
298682
|
enumerable: true,
|
|
298011
298683
|
writable: true,
|
|
298012
298684
|
initializer: null
|
|
298013
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
298685
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec6], {
|
|
298014
298686
|
configurable: true,
|
|
298015
298687
|
enumerable: true,
|
|
298016
298688
|
writable: true,
|
|
298017
298689
|
initializer: null
|
|
298018
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
298690
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "titles", [_dec7], {
|
|
298691
|
+
configurable: true,
|
|
298692
|
+
enumerable: true,
|
|
298693
|
+
writable: true,
|
|
298694
|
+
initializer: null
|
|
298695
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "colspan", [_dec8], {
|
|
298019
298696
|
configurable: true,
|
|
298020
298697
|
enumerable: true,
|
|
298021
298698
|
writable: true,
|
|
298022
298699
|
initializer: null
|
|
298023
|
-
}),
|
|
298700
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "empty", [_dec9], {
|
|
298024
298701
|
configurable: true,
|
|
298025
298702
|
enumerable: true,
|
|
298026
298703
|
writable: true,
|
|
298027
298704
|
initializer: null
|
|
298028
|
-
}),
|
|
298705
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "rowspan", [_dec10], {
|
|
298029
298706
|
configurable: true,
|
|
298030
298707
|
enumerable: true,
|
|
298031
298708
|
writable: true,
|
|
298032
298709
|
initializer: null
|
|
298033
|
-
}),
|
|
298710
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "horizontalAlign", [_dec11], {
|
|
298034
298711
|
configurable: true,
|
|
298035
298712
|
enumerable: true,
|
|
298036
298713
|
writable: true,
|
|
298037
298714
|
initializer: null
|
|
298038
|
-
}),
|
|
298715
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "requiredempty", [_dec12], {
|
|
298039
298716
|
configurable: true,
|
|
298040
298717
|
enumerable: true,
|
|
298041
298718
|
writable: true,
|
|
298042
298719
|
initializer: null
|
|
298043
|
-
}),
|
|
298720
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "indent", [_dec13], {
|
|
298044
298721
|
configurable: true,
|
|
298045
298722
|
enumerable: true,
|
|
298046
298723
|
writable: true,
|
|
298047
298724
|
initializer: null
|
|
298048
|
-
}),
|
|
298725
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "width", [_dec14], {
|
|
298049
298726
|
configurable: true,
|
|
298050
298727
|
enumerable: true,
|
|
298051
298728
|
writable: true,
|
|
298052
298729
|
initializer: null
|
|
298053
|
-
}),
|
|
298730
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "textTopPadding", [_dec15], {
|
|
298054
298731
|
configurable: true,
|
|
298055
298732
|
enumerable: true,
|
|
298056
298733
|
writable: true,
|
|
298057
298734
|
initializer: null
|
|
298058
|
-
}),
|
|
298735
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "size", [_dec16], {
|
|
298059
298736
|
configurable: true,
|
|
298060
298737
|
enumerable: true,
|
|
298061
298738
|
writable: true,
|
|
298062
298739
|
initializer: null
|
|
298063
|
-
}),
|
|
298740
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec17], {
|
|
298064
298741
|
configurable: true,
|
|
298065
298742
|
enumerable: true,
|
|
298066
298743
|
writable: true,
|
|
298067
298744
|
initializer: null
|
|
298068
298745
|
})), _class2)) || _class);
|
|
298069
|
-
let SimpleTableRowNode = (
|
|
298746
|
+
let SimpleTableRowNode = (_dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/SimpleTable sync recursive .md$")), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("borderBottom", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("kind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("head", "hr"), ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("subkind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("numbers"), ``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("column", [SimpleTableColumnNode]), _dec18(_class4 = (_class5 = class SimpleTableRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
298070
298747
|
constructor(...args) {
|
|
298071
298748
|
super(...args);
|
|
298072
298749
|
|
|
298073
|
-
_initializerDefineProperty(this, "dataScope",
|
|
298750
|
+
_initializerDefineProperty(this, "dataScope", _descriptor17, this);
|
|
298074
298751
|
|
|
298075
|
-
_initializerDefineProperty(this, "optional",
|
|
298752
|
+
_initializerDefineProperty(this, "optional", _descriptor18, this);
|
|
298076
298753
|
|
|
298077
|
-
_initializerDefineProperty(this, "borderBottom",
|
|
298754
|
+
_initializerDefineProperty(this, "borderBottom", _descriptor19, this);
|
|
298078
298755
|
|
|
298079
|
-
_initializerDefineProperty(this, "kind",
|
|
298756
|
+
_initializerDefineProperty(this, "kind", _descriptor20, this);
|
|
298080
298757
|
|
|
298081
|
-
_initializerDefineProperty(this, "subkind",
|
|
298758
|
+
_initializerDefineProperty(this, "subkind", _descriptor21, this);
|
|
298082
298759
|
|
|
298083
|
-
_initializerDefineProperty(this, "columns",
|
|
298760
|
+
_initializerDefineProperty(this, "columns", _descriptor22, this);
|
|
298084
298761
|
}
|
|
298085
298762
|
|
|
298086
298763
|
getOwnPath() {
|
|
298087
298764
|
return this.dataScope.getOwnPath();
|
|
298088
298765
|
}
|
|
298089
298766
|
|
|
298090
|
-
}, (
|
|
298767
|
+
}, (_descriptor17 = _applyDecoratedDescriptor(_class5.prototype, "dataScope", [_dec19], {
|
|
298091
298768
|
configurable: true,
|
|
298092
298769
|
enumerable: true,
|
|
298093
298770
|
writable: true,
|
|
298094
298771
|
initializer: null
|
|
298095
|
-
}),
|
|
298772
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, "optional", [_dec20], {
|
|
298096
298773
|
configurable: true,
|
|
298097
298774
|
enumerable: true,
|
|
298098
298775
|
writable: true,
|
|
298099
298776
|
initializer: null
|
|
298100
|
-
}),
|
|
298777
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, "borderBottom", [_dec21], {
|
|
298101
298778
|
configurable: true,
|
|
298102
298779
|
enumerable: true,
|
|
298103
298780
|
writable: true,
|
|
298104
298781
|
initializer: null
|
|
298105
|
-
}),
|
|
298782
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, "kind", [_dec22], {
|
|
298106
298783
|
configurable: true,
|
|
298107
298784
|
enumerable: true,
|
|
298108
298785
|
writable: true,
|
|
298109
298786
|
initializer: null
|
|
298110
|
-
}),
|
|
298787
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class5.prototype, "subkind", [_dec23], {
|
|
298111
298788
|
configurable: true,
|
|
298112
298789
|
enumerable: true,
|
|
298113
298790
|
writable: true,
|
|
298114
298791
|
initializer: null
|
|
298115
|
-
}),
|
|
298792
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class5.prototype, "columns", [_dec24], {
|
|
298116
298793
|
configurable: true,
|
|
298117
298794
|
enumerable: true,
|
|
298118
298795
|
writable: true,
|
|
298119
298796
|
initializer: null
|
|
298120
298797
|
})), _class5)) || _class4);
|
|
298121
|
-
let SimpleTableColgroupColumnNode = (
|
|
298798
|
+
let SimpleTableColgroupColumnNode = (_dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("col", ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec25(_class7 = (_class8 = class SimpleTableColgroupColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
298122
298799
|
constructor(...args) {
|
|
298123
298800
|
super(...args);
|
|
298124
298801
|
|
|
298125
|
-
_initializerDefineProperty(this, "width",
|
|
298802
|
+
_initializerDefineProperty(this, "width", _descriptor23, this);
|
|
298126
298803
|
}
|
|
298127
298804
|
|
|
298128
|
-
}, (
|
|
298805
|
+
}, (_descriptor23 = _applyDecoratedDescriptor(_class8.prototype, "width", [_dec26], {
|
|
298129
298806
|
configurable: true,
|
|
298130
298807
|
enumerable: true,
|
|
298131
298808
|
writable: true,
|
|
298132
298809
|
initializer: null
|
|
298133
298810
|
})), _class8)) || _class7);
|
|
298134
|
-
let SimpleTableColgroupNode = (
|
|
298811
|
+
let SimpleTableColgroupNode = (_dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("colgroup", ``), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("col", [SimpleTableColgroupColumnNode]), _dec27(_class10 = (_class11 = class SimpleTableColgroupNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
298135
298812
|
constructor(...args) {
|
|
298136
298813
|
super(...args);
|
|
298137
298814
|
|
|
298138
|
-
_initializerDefineProperty(this, "cols",
|
|
298815
|
+
_initializerDefineProperty(this, "cols", _descriptor24, this);
|
|
298139
298816
|
}
|
|
298140
298817
|
|
|
298141
|
-
}, (
|
|
298818
|
+
}, (_descriptor24 = _applyDecoratedDescriptor(_class11.prototype, "cols", [_dec28], {
|
|
298142
298819
|
configurable: true,
|
|
298143
298820
|
enumerable: true,
|
|
298144
298821
|
writable: true,
|
|
298145
298822
|
initializer: null
|
|
298146
298823
|
})), _class11)) || _class10);
|
|
298147
|
-
let SimpleTableNode = (
|
|
298824
|
+
let SimpleTableNode = (_dec29 = (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")), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("stickyHeader", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("grayColumn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec34 = (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"), ``), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("colgroup", [SimpleTableColgroupNode]), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("row", [SimpleTableRowNode]), _dec29(_class13 = (_class14 = class SimpleTableNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
298148
298825
|
constructor(...args) {
|
|
298149
298826
|
super(...args);
|
|
298150
298827
|
|
|
298151
|
-
_initializerDefineProperty(this, "stickyHeader",
|
|
298828
|
+
_initializerDefineProperty(this, "stickyHeader", _descriptor25, this);
|
|
298152
298829
|
|
|
298153
|
-
_initializerDefineProperty(this, "dataScope",
|
|
298830
|
+
_initializerDefineProperty(this, "dataScope", _descriptor26, this);
|
|
298154
298831
|
|
|
298155
|
-
_initializerDefineProperty(this, "optional",
|
|
298832
|
+
_initializerDefineProperty(this, "optional", _descriptor27, this);
|
|
298156
298833
|
|
|
298157
|
-
_initializerDefineProperty(this, "grayColumn",
|
|
298834
|
+
_initializerDefineProperty(this, "grayColumn", _descriptor28, this);
|
|
298158
298835
|
|
|
298159
|
-
_initializerDefineProperty(this, "align",
|
|
298836
|
+
_initializerDefineProperty(this, "align", _descriptor29, this);
|
|
298160
298837
|
|
|
298161
|
-
_initializerDefineProperty(this, "colgroup",
|
|
298838
|
+
_initializerDefineProperty(this, "colgroup", _descriptor30, this);
|
|
298162
298839
|
|
|
298163
|
-
_initializerDefineProperty(this, "rows",
|
|
298840
|
+
_initializerDefineProperty(this, "rows", _descriptor31, this);
|
|
298164
298841
|
}
|
|
298165
298842
|
|
|
298166
298843
|
getOwnPath() {
|
|
@@ -298175,37 +298852,37 @@ let SimpleTableNode = (_dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
298175
298852
|
return this.rows.filter(row => row.kind == undefined || row.kind === "hr");
|
|
298176
298853
|
}
|
|
298177
298854
|
|
|
298178
|
-
}, (
|
|
298855
|
+
}, (_descriptor25 = _applyDecoratedDescriptor(_class14.prototype, "stickyHeader", [_dec30], {
|
|
298179
298856
|
configurable: true,
|
|
298180
298857
|
enumerable: true,
|
|
298181
298858
|
writable: true,
|
|
298182
298859
|
initializer: null
|
|
298183
|
-
}),
|
|
298860
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class14.prototype, "dataScope", [_dec31], {
|
|
298184
298861
|
configurable: true,
|
|
298185
298862
|
enumerable: true,
|
|
298186
298863
|
writable: true,
|
|
298187
298864
|
initializer: null
|
|
298188
|
-
}),
|
|
298865
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class14.prototype, "optional", [_dec32], {
|
|
298189
298866
|
configurable: true,
|
|
298190
298867
|
enumerable: true,
|
|
298191
298868
|
writable: true,
|
|
298192
298869
|
initializer: null
|
|
298193
|
-
}),
|
|
298870
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class14.prototype, "grayColumn", [_dec33], {
|
|
298194
298871
|
configurable: true,
|
|
298195
298872
|
enumerable: true,
|
|
298196
298873
|
writable: true,
|
|
298197
298874
|
initializer: null
|
|
298198
|
-
}),
|
|
298875
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class14.prototype, "align", [_dec34], {
|
|
298199
298876
|
configurable: true,
|
|
298200
298877
|
enumerable: true,
|
|
298201
298878
|
writable: true,
|
|
298202
298879
|
initializer: null
|
|
298203
|
-
}),
|
|
298880
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class14.prototype, "colgroup", [_dec35], {
|
|
298204
298881
|
configurable: true,
|
|
298205
298882
|
enumerable: true,
|
|
298206
298883
|
writable: true,
|
|
298207
298884
|
initializer: null
|
|
298208
|
-
}),
|
|
298885
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class14.prototype, "rows", [_dec36], {
|
|
298209
298886
|
configurable: true,
|
|
298210
298887
|
enumerable: true,
|
|
298211
298888
|
writable: true,
|
|
@@ -299516,6 +300193,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299516
300193
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
299517
300194
|
/* harmony import */ var _Multilinefield_GetPluralTitles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Multilinefield/GetPluralTitles */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/Multilinefield/GetPluralTitles.ts");
|
|
299518
300195
|
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
300196
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
300197
|
+
|
|
299519
300198
|
|
|
299520
300199
|
|
|
299521
300200
|
|
|
@@ -299542,6 +300221,15 @@ class ColumnConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.S
|
|
|
299542
300221
|
multiLineFieldMarkupBuilder.prop(x => x.backgroundColor).set("#f3f3f3");
|
|
299543
300222
|
multiLineFieldMarkupBuilder.prop(x => x.hintOnAdd).set(node.hintOnAdd);
|
|
299544
300223
|
multiLineFieldMarkupBuilder.prop(x => x.disableButtons).set(node.disabled);
|
|
300224
|
+
|
|
300225
|
+
if (node.disabled2 != undefined) {
|
|
300226
|
+
multiLineFieldMarkupBuilder.prop(x => x.disableButtons2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
300227
|
+
|
|
300228
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
300229
|
+
multiLineFieldMarkupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
300230
|
+
}
|
|
300231
|
+
}
|
|
300232
|
+
|
|
299545
300233
|
return multiLineFieldMarkupBuilder.buildConverterResult();
|
|
299546
300234
|
} else {
|
|
299547
300235
|
if (node.disabled != undefined) {
|
|
@@ -300238,7 +300926,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300238
300926
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
300239
300927
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
300240
300928
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
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,
|
|
300929
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _dec22, _dec23, _dec24, _dec25, _class4, _class5, _descriptor21, _descriptor22, _descriptor23, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _class7, _class8, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _dec40, _dec41, _dec42, _class10, _class11, _descriptor37, _descriptor38, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _class13, _class14, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _dec49, _dec50, _class16, _class17, _descriptor44, _dec51, _dec52, _class19, _class20, _descriptor45, _dec53, _dec54, _class22, _class23, _descriptor46, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _class25, _class26, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56, _descriptor57, _descriptor58, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _descriptor64, _descriptor65, _descriptor66;
|
|
300242
300930
|
|
|
300243
300931
|
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 }); }
|
|
300244
300932
|
|
|
@@ -300252,7 +300940,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
300252
300940
|
|
|
300253
300941
|
|
|
300254
300942
|
|
|
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),
|
|
300943
|
+
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__.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__.deprecatedAttr)("className", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("widths", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Typo), _dec8 = (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), ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("groupText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("key", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("colspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hiddenGroup", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("empty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("center", "left", "right"), ``), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("requiredempty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("indent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("1", "2", "3", "4", "5"), ``), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("grouped", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Поле генериться в препроцессоре`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class CrossfitTableColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300256
300944
|
constructor(...args) {
|
|
300257
300945
|
super(...args);
|
|
300258
300946
|
|
|
@@ -300262,37 +300950,39 @@ let CrossfitTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
300262
300950
|
|
|
300263
300951
|
_initializerDefineProperty(this, "disabled", _descriptor3, this);
|
|
300264
300952
|
|
|
300265
|
-
_initializerDefineProperty(this, "
|
|
300953
|
+
_initializerDefineProperty(this, "disabled2", _descriptor4, this);
|
|
300266
300954
|
|
|
300267
|
-
_initializerDefineProperty(this, "
|
|
300955
|
+
_initializerDefineProperty(this, "className", _descriptor5, this);
|
|
300268
300956
|
|
|
300269
|
-
_initializerDefineProperty(this, "
|
|
300957
|
+
_initializerDefineProperty(this, "widths", _descriptor6, this);
|
|
300270
300958
|
|
|
300271
|
-
_initializerDefineProperty(this, "
|
|
300959
|
+
_initializerDefineProperty(this, "titles", _descriptor7, this);
|
|
300272
300960
|
|
|
300273
|
-
_initializerDefineProperty(this, "
|
|
300961
|
+
_initializerDefineProperty(this, "hintOnAdd", _descriptor8, this);
|
|
300274
300962
|
|
|
300275
|
-
_initializerDefineProperty(this, "
|
|
300963
|
+
_initializerDefineProperty(this, "groupText", _descriptor9, this);
|
|
300276
300964
|
|
|
300277
|
-
_initializerDefineProperty(this, "
|
|
300965
|
+
_initializerDefineProperty(this, "key", _descriptor10, this);
|
|
300278
300966
|
|
|
300279
|
-
_initializerDefineProperty(this, "
|
|
300967
|
+
_initializerDefineProperty(this, "colspan", _descriptor11, this);
|
|
300280
300968
|
|
|
300281
|
-
_initializerDefineProperty(this, "
|
|
300969
|
+
_initializerDefineProperty(this, "hiddenGroup", _descriptor12, this);
|
|
300282
300970
|
|
|
300283
|
-
_initializerDefineProperty(this, "
|
|
300971
|
+
_initializerDefineProperty(this, "empty", _descriptor13, this);
|
|
300972
|
+
|
|
300973
|
+
_initializerDefineProperty(this, "width", _descriptor14, this);
|
|
300284
300974
|
|
|
300285
|
-
_initializerDefineProperty(this, "rowspan",
|
|
300975
|
+
_initializerDefineProperty(this, "rowspan", _descriptor15, this);
|
|
300286
300976
|
|
|
300287
|
-
_initializerDefineProperty(this, "horizontalAlign",
|
|
300977
|
+
_initializerDefineProperty(this, "horizontalAlign", _descriptor16, this);
|
|
300288
300978
|
|
|
300289
|
-
_initializerDefineProperty(this, "requiredempty",
|
|
300979
|
+
_initializerDefineProperty(this, "requiredempty", _descriptor17, this);
|
|
300290
300980
|
|
|
300291
|
-
_initializerDefineProperty(this, "indent",
|
|
300981
|
+
_initializerDefineProperty(this, "indent", _descriptor18, this);
|
|
300292
300982
|
|
|
300293
|
-
_initializerDefineProperty(this, "grouped",
|
|
300983
|
+
_initializerDefineProperty(this, "grouped", _descriptor19, this);
|
|
300294
300984
|
|
|
300295
|
-
_initializerDefineProperty(this, "children",
|
|
300985
|
+
_initializerDefineProperty(this, "children", _descriptor20, this);
|
|
300296
300986
|
}
|
|
300297
300987
|
|
|
300298
300988
|
getOwnPath() {
|
|
@@ -300320,143 +301010,148 @@ let CrossfitTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
300320
301010
|
enumerable: true,
|
|
300321
301011
|
writable: true,
|
|
300322
301012
|
initializer: null
|
|
300323
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301013
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "disabled2", [_dec5], {
|
|
300324
301014
|
configurable: true,
|
|
300325
301015
|
enumerable: true,
|
|
300326
301016
|
writable: true,
|
|
300327
301017
|
initializer: null
|
|
300328
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301018
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "className", [_dec6], {
|
|
300329
301019
|
configurable: true,
|
|
300330
301020
|
enumerable: true,
|
|
300331
301021
|
writable: true,
|
|
300332
301022
|
initializer: null
|
|
300333
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301023
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "widths", [_dec7], {
|
|
300334
301024
|
configurable: true,
|
|
300335
301025
|
enumerable: true,
|
|
300336
301026
|
writable: true,
|
|
300337
301027
|
initializer: null
|
|
300338
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301028
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "titles", [_dec8], {
|
|
300339
301029
|
configurable: true,
|
|
300340
301030
|
enumerable: true,
|
|
300341
301031
|
writable: true,
|
|
300342
301032
|
initializer: null
|
|
300343
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301033
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec9], {
|
|
300344
301034
|
configurable: true,
|
|
300345
301035
|
enumerable: true,
|
|
300346
301036
|
writable: true,
|
|
300347
301037
|
initializer: null
|
|
300348
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301038
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "groupText", [_dec10], {
|
|
300349
301039
|
configurable: true,
|
|
300350
301040
|
enumerable: true,
|
|
300351
301041
|
writable: true,
|
|
300352
301042
|
initializer: null
|
|
300353
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301043
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "key", [_dec11], {
|
|
300354
301044
|
configurable: true,
|
|
300355
301045
|
enumerable: true,
|
|
300356
301046
|
writable: true,
|
|
300357
301047
|
initializer: null
|
|
300358
|
-
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301048
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "colspan", [_dec12], {
|
|
300359
301049
|
configurable: true,
|
|
300360
301050
|
enumerable: true,
|
|
300361
301051
|
writable: true,
|
|
300362
301052
|
initializer: null
|
|
300363
|
-
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301053
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "hiddenGroup", [_dec13], {
|
|
300364
301054
|
configurable: true,
|
|
300365
301055
|
enumerable: true,
|
|
300366
301056
|
writable: true,
|
|
300367
301057
|
initializer: null
|
|
300368
|
-
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301058
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "empty", [_dec14], {
|
|
301059
|
+
configurable: true,
|
|
301060
|
+
enumerable: true,
|
|
301061
|
+
writable: true,
|
|
301062
|
+
initializer: null
|
|
301063
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "width", [_dec15], {
|
|
300369
301064
|
configurable: true,
|
|
300370
301065
|
enumerable: true,
|
|
300371
301066
|
writable: true,
|
|
300372
301067
|
initializer: null
|
|
300373
|
-
}),
|
|
301068
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "rowspan", [_dec16], {
|
|
300374
301069
|
configurable: true,
|
|
300375
301070
|
enumerable: true,
|
|
300376
301071
|
writable: true,
|
|
300377
301072
|
initializer: null
|
|
300378
|
-
}),
|
|
301073
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "horizontalAlign", [_dec17], {
|
|
300379
301074
|
configurable: true,
|
|
300380
301075
|
enumerable: true,
|
|
300381
301076
|
writable: true,
|
|
300382
301077
|
initializer: null
|
|
300383
|
-
}),
|
|
301078
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "requiredempty", [_dec18], {
|
|
300384
301079
|
configurable: true,
|
|
300385
301080
|
enumerable: true,
|
|
300386
301081
|
writable: true,
|
|
300387
301082
|
initializer: null
|
|
300388
|
-
}),
|
|
301083
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "indent", [_dec19], {
|
|
300389
301084
|
configurable: true,
|
|
300390
301085
|
enumerable: true,
|
|
300391
301086
|
writable: true,
|
|
300392
301087
|
initializer: null
|
|
300393
|
-
}),
|
|
301088
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "grouped", [_dec20], {
|
|
300394
301089
|
configurable: true,
|
|
300395
301090
|
enumerable: true,
|
|
300396
301091
|
writable: true,
|
|
300397
301092
|
initializer: null
|
|
300398
|
-
}),
|
|
301093
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec21], {
|
|
300399
301094
|
configurable: true,
|
|
300400
301095
|
enumerable: true,
|
|
300401
301096
|
writable: true,
|
|
300402
301097
|
initializer: null
|
|
300403
301098
|
})), _class2)) || _class);
|
|
300404
|
-
let CrossfitTableRowNode = (
|
|
301099
|
+
let CrossfitTableRowNode = (_dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("kind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("head"), `kind="head" - шапка таблицы`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("subkind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("numbers"), `subkind="numbers" - строка с нумерацией столбцов`), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("column", [CrossfitTableColumnNode]), _dec22(_class4 = (_class5 = class CrossfitTableRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300405
301100
|
constructor(...args) {
|
|
300406
301101
|
super(...args);
|
|
300407
301102
|
|
|
300408
|
-
_initializerDefineProperty(this, "kind",
|
|
301103
|
+
_initializerDefineProperty(this, "kind", _descriptor21, this);
|
|
300409
301104
|
|
|
300410
|
-
_initializerDefineProperty(this, "subkind",
|
|
301105
|
+
_initializerDefineProperty(this, "subkind", _descriptor22, this);
|
|
300411
301106
|
|
|
300412
|
-
_initializerDefineProperty(this, "columns",
|
|
301107
|
+
_initializerDefineProperty(this, "columns", _descriptor23, this);
|
|
300413
301108
|
}
|
|
300414
301109
|
|
|
300415
|
-
}, (
|
|
301110
|
+
}, (_descriptor21 = _applyDecoratedDescriptor(_class5.prototype, "kind", [_dec23], {
|
|
300416
301111
|
configurable: true,
|
|
300417
301112
|
enumerable: true,
|
|
300418
301113
|
writable: true,
|
|
300419
301114
|
initializer: null
|
|
300420
|
-
}),
|
|
301115
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class5.prototype, "subkind", [_dec24], {
|
|
300421
301116
|
configurable: true,
|
|
300422
301117
|
enumerable: true,
|
|
300423
301118
|
writable: true,
|
|
300424
301119
|
initializer: null
|
|
300425
|
-
}),
|
|
301120
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class5.prototype, "columns", [_dec25], {
|
|
300426
301121
|
configurable: true,
|
|
300427
301122
|
enumerable: true,
|
|
300428
301123
|
writable: true,
|
|
300429
301124
|
initializer: null
|
|
300430
301125
|
})), _class5)) || _class4);
|
|
300431
|
-
let MultilineNode = (
|
|
301126
|
+
let MultilineNode = (_dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("multiline", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("defaultChildren", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.arrayLiteral(), ``), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("focusByHotkey", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("instancesPerPage", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("pageStep", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `false - чтобы слева от раздела не было кнопки "Удалить"`), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("row", [CrossfitTableRowNode]), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("addbutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, `Название кнопки при добавлении множественности`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("addType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("button", "link"), `Добавить строку м.б. как кнопка "button" или ссылка "link"`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("usepager", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `false - без пейджера (1-11, 12-22 - этого нет внизу страницы)`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("storeFilters", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Будут ли сохраняться фильтры для этого мультилайна между обнолениями страницы. По умолчанию -- нет`), _dec26(_class7 = (_class8 = class MultilineNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
300432
301127
|
constructor(...args) {
|
|
300433
301128
|
super(...args);
|
|
300434
301129
|
|
|
300435
|
-
_initializerDefineProperty(this, "dataScope",
|
|
301130
|
+
_initializerDefineProperty(this, "dataScope", _descriptor24, this);
|
|
300436
301131
|
|
|
300437
|
-
_initializerDefineProperty(this, "optional",
|
|
301132
|
+
_initializerDefineProperty(this, "optional", _descriptor25, this);
|
|
300438
301133
|
|
|
300439
|
-
_initializerDefineProperty(this, "defaultChildren",
|
|
301134
|
+
_initializerDefineProperty(this, "defaultChildren", _descriptor26, this);
|
|
300440
301135
|
|
|
300441
|
-
_initializerDefineProperty(this, "focusByHotkey",
|
|
301136
|
+
_initializerDefineProperty(this, "focusByHotkey", _descriptor27, this);
|
|
300442
301137
|
|
|
300443
|
-
_initializerDefineProperty(this, "instancesPerPage",
|
|
301138
|
+
_initializerDefineProperty(this, "instancesPerPage", _descriptor28, this);
|
|
300444
301139
|
|
|
300445
|
-
_initializerDefineProperty(this, "pageStep",
|
|
301140
|
+
_initializerDefineProperty(this, "pageStep", _descriptor29, this);
|
|
300446
301141
|
|
|
300447
|
-
_initializerDefineProperty(this, "removebutton",
|
|
301142
|
+
_initializerDefineProperty(this, "removebutton", _descriptor30, this);
|
|
300448
301143
|
|
|
300449
|
-
_initializerDefineProperty(this, "rowmenu",
|
|
301144
|
+
_initializerDefineProperty(this, "rowmenu", _descriptor31, this);
|
|
300450
301145
|
|
|
300451
|
-
_initializerDefineProperty(this, "rows",
|
|
301146
|
+
_initializerDefineProperty(this, "rows", _descriptor32, this);
|
|
300452
301147
|
|
|
300453
|
-
_initializerDefineProperty(this, "addbutton",
|
|
301148
|
+
_initializerDefineProperty(this, "addbutton", _descriptor33, this);
|
|
300454
301149
|
|
|
300455
|
-
_initializerDefineProperty(this, "addType",
|
|
301150
|
+
_initializerDefineProperty(this, "addType", _descriptor34, this);
|
|
300456
301151
|
|
|
300457
|
-
_initializerDefineProperty(this, "usepager",
|
|
301152
|
+
_initializerDefineProperty(this, "usepager", _descriptor35, this);
|
|
300458
301153
|
|
|
300459
|
-
_initializerDefineProperty(this, "storeFilters",
|
|
301154
|
+
_initializerDefineProperty(this, "storeFilters", _descriptor36, this);
|
|
300460
301155
|
}
|
|
300461
301156
|
|
|
300462
301157
|
getOwnPath() {
|
|
@@ -300467,219 +301162,219 @@ let MultilineNode = (_dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
|
|
|
300467
301162
|
return true;
|
|
300468
301163
|
}
|
|
300469
301164
|
|
|
300470
|
-
}, (
|
|
301165
|
+
}, (_descriptor24 = _applyDecoratedDescriptor(_class8.prototype, "dataScope", [_dec27], {
|
|
300471
301166
|
configurable: true,
|
|
300472
301167
|
enumerable: true,
|
|
300473
301168
|
writable: true,
|
|
300474
301169
|
initializer: null
|
|
300475
|
-
}),
|
|
301170
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class8.prototype, "optional", [_dec28], {
|
|
300476
301171
|
configurable: true,
|
|
300477
301172
|
enumerable: true,
|
|
300478
301173
|
writable: true,
|
|
300479
301174
|
initializer: null
|
|
300480
|
-
}),
|
|
301175
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class8.prototype, "defaultChildren", [_dec29], {
|
|
300481
301176
|
configurable: true,
|
|
300482
301177
|
enumerable: true,
|
|
300483
301178
|
writable: true,
|
|
300484
301179
|
initializer: null
|
|
300485
|
-
}),
|
|
301180
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class8.prototype, "focusByHotkey", [_dec30], {
|
|
300486
301181
|
configurable: true,
|
|
300487
301182
|
enumerable: true,
|
|
300488
301183
|
writable: true,
|
|
300489
301184
|
initializer: null
|
|
300490
|
-
}),
|
|
301185
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class8.prototype, "instancesPerPage", [_dec31], {
|
|
300491
301186
|
configurable: true,
|
|
300492
301187
|
enumerable: true,
|
|
300493
301188
|
writable: true,
|
|
300494
301189
|
initializer: null
|
|
300495
|
-
}),
|
|
301190
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class8.prototype, "pageStep", [_dec32], {
|
|
300496
301191
|
configurable: true,
|
|
300497
301192
|
enumerable: true,
|
|
300498
301193
|
writable: true,
|
|
300499
301194
|
initializer: null
|
|
300500
|
-
}),
|
|
301195
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class8.prototype, "removebutton", [_dec33], {
|
|
300501
301196
|
configurable: true,
|
|
300502
301197
|
enumerable: true,
|
|
300503
301198
|
writable: true,
|
|
300504
301199
|
initializer: null
|
|
300505
|
-
}),
|
|
301200
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class8.prototype, "rowmenu", [_dec34], {
|
|
300506
301201
|
configurable: true,
|
|
300507
301202
|
enumerable: true,
|
|
300508
301203
|
writable: true,
|
|
300509
301204
|
initializer: null
|
|
300510
|
-
}),
|
|
301205
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class8.prototype, "rows", [_dec35], {
|
|
300511
301206
|
configurable: true,
|
|
300512
301207
|
enumerable: true,
|
|
300513
301208
|
writable: true,
|
|
300514
301209
|
initializer: null
|
|
300515
|
-
}),
|
|
301210
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class8.prototype, "addbutton", [_dec36], {
|
|
300516
301211
|
configurable: true,
|
|
300517
301212
|
enumerable: true,
|
|
300518
301213
|
writable: true,
|
|
300519
301214
|
initializer: null
|
|
300520
|
-
}),
|
|
301215
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class8.prototype, "addType", [_dec37], {
|
|
300521
301216
|
configurable: true,
|
|
300522
301217
|
enumerable: true,
|
|
300523
301218
|
writable: true,
|
|
300524
301219
|
initializer: null
|
|
300525
|
-
}),
|
|
301220
|
+
}), _descriptor35 = _applyDecoratedDescriptor(_class8.prototype, "usepager", [_dec38], {
|
|
300526
301221
|
configurable: true,
|
|
300527
301222
|
enumerable: true,
|
|
300528
301223
|
writable: true,
|
|
300529
301224
|
initializer: null
|
|
300530
|
-
}),
|
|
301225
|
+
}), _descriptor36 = _applyDecoratedDescriptor(_class8.prototype, "storeFilters", [_dec39], {
|
|
300531
301226
|
configurable: true,
|
|
300532
301227
|
enumerable: true,
|
|
300533
301228
|
writable: true,
|
|
300534
301229
|
initializer: null
|
|
300535
301230
|
})), _class8)) || _class7);
|
|
300536
|
-
let CrossfitTableHeaderNode = (
|
|
301231
|
+
let CrossfitTableHeaderNode = (_dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("header", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("right"), ``), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec40(_class10 = (_class11 = class CrossfitTableHeaderNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300537
301232
|
constructor(...args) {
|
|
300538
301233
|
super(...args);
|
|
300539
301234
|
|
|
300540
|
-
_initializerDefineProperty(this, "align",
|
|
301235
|
+
_initializerDefineProperty(this, "align", _descriptor37, this);
|
|
300541
301236
|
|
|
300542
|
-
_initializerDefineProperty(this, "children",
|
|
301237
|
+
_initializerDefineProperty(this, "children", _descriptor38, this);
|
|
300543
301238
|
}
|
|
300544
301239
|
|
|
300545
|
-
}, (
|
|
301240
|
+
}, (_descriptor37 = _applyDecoratedDescriptor(_class11.prototype, "align", [_dec41], {
|
|
300546
301241
|
configurable: true,
|
|
300547
301242
|
enumerable: true,
|
|
300548
301243
|
writable: true,
|
|
300549
301244
|
initializer: null
|
|
300550
|
-
}),
|
|
301245
|
+
}), _descriptor38 = _applyDecoratedDescriptor(_class11.prototype, "children", [_dec42], {
|
|
300551
301246
|
configurable: true,
|
|
300552
301247
|
enumerable: true,
|
|
300553
301248
|
writable: true,
|
|
300554
301249
|
initializer: null
|
|
300555
301250
|
})), _class11)) || _class10);
|
|
300556
|
-
let FilterInfoNode = (
|
|
301251
|
+
let FilterInfoNode = (_dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("filterinfo", `path - путь до multiline, по которому фильтруем`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/CrossfitTable sync recursive .md$")), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataReferenceMixinNode), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multilinePath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `путь до multiline, по которому фильтруем`), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("titles", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.stringArray, `массив строк для склонения единицы поиска (для корректного вывода с количеством найденных)`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("notFoundText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, ` текст, который будет выводится, если после фильтрации ничего не найдено`), _dec43(_class13 = (_class14 = class FilterInfoNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300557
301252
|
constructor(...args) {
|
|
300558
301253
|
super(...args);
|
|
300559
301254
|
|
|
300560
|
-
_initializerDefineProperty(this, "dataReference",
|
|
301255
|
+
_initializerDefineProperty(this, "dataReference", _descriptor39, this);
|
|
300561
301256
|
|
|
300562
|
-
_initializerDefineProperty(this, "multilinePath",
|
|
301257
|
+
_initializerDefineProperty(this, "multilinePath", _descriptor40, this);
|
|
300563
301258
|
|
|
300564
|
-
_initializerDefineProperty(this, "path",
|
|
301259
|
+
_initializerDefineProperty(this, "path", _descriptor41, this);
|
|
300565
301260
|
|
|
300566
|
-
_initializerDefineProperty(this, "titles",
|
|
301261
|
+
_initializerDefineProperty(this, "titles", _descriptor42, this);
|
|
300567
301262
|
|
|
300568
|
-
_initializerDefineProperty(this, "notFoundText",
|
|
301263
|
+
_initializerDefineProperty(this, "notFoundText", _descriptor43, this);
|
|
300569
301264
|
}
|
|
300570
301265
|
|
|
300571
301266
|
getOwnPath() {
|
|
300572
301267
|
return this.dataReference.getOwnPath();
|
|
300573
301268
|
}
|
|
300574
301269
|
|
|
300575
|
-
}, (
|
|
301270
|
+
}, (_descriptor39 = _applyDecoratedDescriptor(_class14.prototype, "dataReference", [_dec44], {
|
|
300576
301271
|
configurable: true,
|
|
300577
301272
|
enumerable: true,
|
|
300578
301273
|
writable: true,
|
|
300579
301274
|
initializer: null
|
|
300580
|
-
}),
|
|
301275
|
+
}), _descriptor40 = _applyDecoratedDescriptor(_class14.prototype, "multilinePath", [_dec45], {
|
|
300581
301276
|
configurable: true,
|
|
300582
301277
|
enumerable: true,
|
|
300583
301278
|
writable: true,
|
|
300584
301279
|
initializer: null
|
|
300585
|
-
}),
|
|
301280
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class14.prototype, "path", [_dec46], {
|
|
300586
301281
|
configurable: true,
|
|
300587
301282
|
enumerable: true,
|
|
300588
301283
|
writable: true,
|
|
300589
301284
|
initializer: null
|
|
300590
|
-
}),
|
|
301285
|
+
}), _descriptor42 = _applyDecoratedDescriptor(_class14.prototype, "titles", [_dec47], {
|
|
300591
301286
|
configurable: true,
|
|
300592
301287
|
enumerable: true,
|
|
300593
301288
|
writable: true,
|
|
300594
301289
|
initializer: null
|
|
300595
|
-
}),
|
|
301290
|
+
}), _descriptor43 = _applyDecoratedDescriptor(_class14.prototype, "notFoundText", [_dec48], {
|
|
300596
301291
|
configurable: true,
|
|
300597
301292
|
enumerable: true,
|
|
300598
301293
|
writable: true,
|
|
300599
301294
|
initializer: null
|
|
300600
301295
|
})), _class14)) || _class13);
|
|
300601
|
-
let CrossfitTableFooterNode = (
|
|
301296
|
+
let CrossfitTableFooterNode = (_dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("footer", ``), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec49(_class16 = (_class17 = class CrossfitTableFooterNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300602
301297
|
constructor(...args) {
|
|
300603
301298
|
super(...args);
|
|
300604
301299
|
|
|
300605
|
-
_initializerDefineProperty(this, "children",
|
|
301300
|
+
_initializerDefineProperty(this, "children", _descriptor44, this);
|
|
300606
301301
|
}
|
|
300607
301302
|
|
|
300608
|
-
}, (
|
|
301303
|
+
}, (_descriptor44 = _applyDecoratedDescriptor(_class17.prototype, "children", [_dec50], {
|
|
300609
301304
|
configurable: true,
|
|
300610
301305
|
enumerable: true,
|
|
300611
301306
|
writable: true,
|
|
300612
301307
|
initializer: null
|
|
300613
301308
|
})), _class17)) || _class16);
|
|
300614
|
-
let CrossfitTableColgroupColumnNode = (
|
|
301309
|
+
let CrossfitTableColgroupColumnNode = (_dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("col", ``), _dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec51(_class19 = (_class20 = class CrossfitTableColgroupColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300615
301310
|
constructor(...args) {
|
|
300616
301311
|
super(...args);
|
|
300617
301312
|
|
|
300618
|
-
_initializerDefineProperty(this, "width",
|
|
301313
|
+
_initializerDefineProperty(this, "width", _descriptor45, this);
|
|
300619
301314
|
}
|
|
300620
301315
|
|
|
300621
|
-
}, (
|
|
301316
|
+
}, (_descriptor45 = _applyDecoratedDescriptor(_class20.prototype, "width", [_dec52], {
|
|
300622
301317
|
configurable: true,
|
|
300623
301318
|
enumerable: true,
|
|
300624
301319
|
writable: true,
|
|
300625
301320
|
initializer: null
|
|
300626
301321
|
})), _class20)) || _class19);
|
|
300627
|
-
let CrossfitTableColgroupNode = (
|
|
301322
|
+
let CrossfitTableColgroupNode = (_dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("colgroup", ``), _dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("col", [CrossfitTableColgroupColumnNode]), _dec53(_class22 = (_class23 = class CrossfitTableColgroupNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
300628
301323
|
constructor(...args) {
|
|
300629
301324
|
super(...args);
|
|
300630
301325
|
|
|
300631
|
-
_initializerDefineProperty(this, "cols",
|
|
301326
|
+
_initializerDefineProperty(this, "cols", _descriptor46, this);
|
|
300632
301327
|
}
|
|
300633
301328
|
|
|
300634
|
-
}, (
|
|
301329
|
+
}, (_descriptor46 = _applyDecoratedDescriptor(_class23.prototype, "cols", [_dec54], {
|
|
300635
301330
|
configurable: true,
|
|
300636
301331
|
enumerable: true,
|
|
300637
301332
|
writable: true,
|
|
300638
301333
|
initializer: null
|
|
300639
301334
|
})), _class23)) || _class22);
|
|
300640
|
-
let CrossfitTableNode = (
|
|
301335
|
+
let CrossfitTableNode = (_dec55 = (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")), _dec56 = (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)} данного элемента. Опционально, если не указан, то будет отображаться текст заданный внутри данного элемента`), _dec57 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `необязательность`), _dec58 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("offsetBottom", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec59 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("grayColumn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec60 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("sidebar", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec61 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("crossfit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec62 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("side", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec63 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec64 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `\"false\" - чтобы слева от раздела не было кнопки "Удалить"`), _dec65 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("sticky", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec66 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("doNotCopyPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.stringArray, ``), _dec67 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(["row", "multiline"], [CrossfitTableRowNode, MultilineNode]), _dec68 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("header", [CrossfitTableHeaderNode]), _dec69 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("colgroup", [CrossfitTableColgroupNode]), _dec70 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("filterinfo", [FilterInfoNode]), _dec71 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("loader", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, ``), _dec72 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("baseline", "top"), ``), _dec73 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("columnGrouping", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.object, ``), _dec74 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("hiddenGroups", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.object, ``), _dec75 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("footer", [CrossfitTableFooterNode]), _dec55(_class25 = (_class26 = class CrossfitTableNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_2__.SugarNodeWithLegacyVisibility {
|
|
300641
301336
|
constructor(...args) {
|
|
300642
301337
|
super(...args);
|
|
300643
301338
|
|
|
300644
|
-
_initializerDefineProperty(this, "path",
|
|
301339
|
+
_initializerDefineProperty(this, "path", _descriptor47, this);
|
|
300645
301340
|
|
|
300646
|
-
_initializerDefineProperty(this, "optional",
|
|
301341
|
+
_initializerDefineProperty(this, "optional", _descriptor48, this);
|
|
300647
301342
|
|
|
300648
|
-
_initializerDefineProperty(this, "offsetBottom",
|
|
301343
|
+
_initializerDefineProperty(this, "offsetBottom", _descriptor49, this);
|
|
300649
301344
|
|
|
300650
|
-
_initializerDefineProperty(this, "grayColumn",
|
|
301345
|
+
_initializerDefineProperty(this, "grayColumn", _descriptor50, this);
|
|
300651
301346
|
|
|
300652
|
-
_initializerDefineProperty(this, "sidebar",
|
|
301347
|
+
_initializerDefineProperty(this, "sidebar", _descriptor51, this);
|
|
300653
301348
|
|
|
300654
|
-
_initializerDefineProperty(this, "crossfit",
|
|
301349
|
+
_initializerDefineProperty(this, "crossfit", _descriptor52, this);
|
|
300655
301350
|
|
|
300656
|
-
_initializerDefineProperty(this, "side",
|
|
301351
|
+
_initializerDefineProperty(this, "side", _descriptor53, this);
|
|
300657
301352
|
|
|
300658
|
-
_initializerDefineProperty(this, "rowmenu",
|
|
301353
|
+
_initializerDefineProperty(this, "rowmenu", _descriptor54, this);
|
|
300659
301354
|
|
|
300660
|
-
_initializerDefineProperty(this, "removebutton",
|
|
301355
|
+
_initializerDefineProperty(this, "removebutton", _descriptor55, this);
|
|
300661
301356
|
|
|
300662
|
-
_initializerDefineProperty(this, "sticky",
|
|
301357
|
+
_initializerDefineProperty(this, "sticky", _descriptor56, this);
|
|
300663
301358
|
|
|
300664
|
-
_initializerDefineProperty(this, "doNotCopyPaths",
|
|
301359
|
+
_initializerDefineProperty(this, "doNotCopyPaths", _descriptor57, this);
|
|
300665
301360
|
|
|
300666
|
-
_initializerDefineProperty(this, "rows",
|
|
301361
|
+
_initializerDefineProperty(this, "rows", _descriptor58, this);
|
|
300667
301362
|
|
|
300668
|
-
_initializerDefineProperty(this, "header",
|
|
301363
|
+
_initializerDefineProperty(this, "header", _descriptor59, this);
|
|
300669
301364
|
|
|
300670
|
-
_initializerDefineProperty(this, "colgroup",
|
|
301365
|
+
_initializerDefineProperty(this, "colgroup", _descriptor60, this);
|
|
300671
301366
|
|
|
300672
|
-
_initializerDefineProperty(this, "filterinfo",
|
|
301367
|
+
_initializerDefineProperty(this, "filterinfo", _descriptor61, this);
|
|
300673
301368
|
|
|
300674
|
-
_initializerDefineProperty(this, "loader",
|
|
301369
|
+
_initializerDefineProperty(this, "loader", _descriptor62, this);
|
|
300675
301370
|
|
|
300676
|
-
_initializerDefineProperty(this, "align",
|
|
301371
|
+
_initializerDefineProperty(this, "align", _descriptor63, this);
|
|
300677
301372
|
|
|
300678
|
-
_initializerDefineProperty(this, "columnGrouping",
|
|
301373
|
+
_initializerDefineProperty(this, "columnGrouping", _descriptor64, this);
|
|
300679
301374
|
|
|
300680
|
-
_initializerDefineProperty(this, "hiddenGroups",
|
|
301375
|
+
_initializerDefineProperty(this, "hiddenGroups", _descriptor65, this);
|
|
300681
301376
|
|
|
300682
|
-
_initializerDefineProperty(this, "footer",
|
|
301377
|
+
_initializerDefineProperty(this, "footer", _descriptor66, this);
|
|
300683
301378
|
}
|
|
300684
301379
|
|
|
300685
301380
|
getOwnPath() {
|
|
@@ -300712,102 +301407,102 @@ let CrossfitTableNode = (_dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORT
|
|
|
300712
301407
|
return (_this$sticky = this.sticky) !== null && _this$sticky !== void 0 ? _this$sticky : true;
|
|
300713
301408
|
}
|
|
300714
301409
|
|
|
300715
|
-
}, (
|
|
301410
|
+
}, (_descriptor47 = _applyDecoratedDescriptor(_class26.prototype, "path", [_dec56], {
|
|
300716
301411
|
configurable: true,
|
|
300717
301412
|
enumerable: true,
|
|
300718
301413
|
writable: true,
|
|
300719
301414
|
initializer: null
|
|
300720
|
-
}),
|
|
301415
|
+
}), _descriptor48 = _applyDecoratedDescriptor(_class26.prototype, "optional", [_dec57], {
|
|
300721
301416
|
configurable: true,
|
|
300722
301417
|
enumerable: true,
|
|
300723
301418
|
writable: true,
|
|
300724
301419
|
initializer: null
|
|
300725
|
-
}),
|
|
301420
|
+
}), _descriptor49 = _applyDecoratedDescriptor(_class26.prototype, "offsetBottom", [_dec58], {
|
|
300726
301421
|
configurable: true,
|
|
300727
301422
|
enumerable: true,
|
|
300728
301423
|
writable: true,
|
|
300729
301424
|
initializer: null
|
|
300730
|
-
}),
|
|
301425
|
+
}), _descriptor50 = _applyDecoratedDescriptor(_class26.prototype, "grayColumn", [_dec59], {
|
|
300731
301426
|
configurable: true,
|
|
300732
301427
|
enumerable: true,
|
|
300733
301428
|
writable: true,
|
|
300734
301429
|
initializer: null
|
|
300735
|
-
}),
|
|
301430
|
+
}), _descriptor51 = _applyDecoratedDescriptor(_class26.prototype, "sidebar", [_dec60], {
|
|
300736
301431
|
configurable: true,
|
|
300737
301432
|
enumerable: true,
|
|
300738
301433
|
writable: true,
|
|
300739
301434
|
initializer: null
|
|
300740
|
-
}),
|
|
301435
|
+
}), _descriptor52 = _applyDecoratedDescriptor(_class26.prototype, "crossfit", [_dec61], {
|
|
300741
301436
|
configurable: true,
|
|
300742
301437
|
enumerable: true,
|
|
300743
301438
|
writable: true,
|
|
300744
301439
|
initializer: null
|
|
300745
|
-
}),
|
|
301440
|
+
}), _descriptor53 = _applyDecoratedDescriptor(_class26.prototype, "side", [_dec62], {
|
|
300746
301441
|
configurable: true,
|
|
300747
301442
|
enumerable: true,
|
|
300748
301443
|
writable: true,
|
|
300749
301444
|
initializer: null
|
|
300750
|
-
}),
|
|
301445
|
+
}), _descriptor54 = _applyDecoratedDescriptor(_class26.prototype, "rowmenu", [_dec63], {
|
|
300751
301446
|
configurable: true,
|
|
300752
301447
|
enumerable: true,
|
|
300753
301448
|
writable: true,
|
|
300754
301449
|
initializer: null
|
|
300755
|
-
}),
|
|
301450
|
+
}), _descriptor55 = _applyDecoratedDescriptor(_class26.prototype, "removebutton", [_dec64], {
|
|
300756
301451
|
configurable: true,
|
|
300757
301452
|
enumerable: true,
|
|
300758
301453
|
writable: true,
|
|
300759
301454
|
initializer: null
|
|
300760
|
-
}),
|
|
301455
|
+
}), _descriptor56 = _applyDecoratedDescriptor(_class26.prototype, "sticky", [_dec65], {
|
|
300761
301456
|
configurable: true,
|
|
300762
301457
|
enumerable: true,
|
|
300763
301458
|
writable: true,
|
|
300764
301459
|
initializer: null
|
|
300765
|
-
}),
|
|
301460
|
+
}), _descriptor57 = _applyDecoratedDescriptor(_class26.prototype, "doNotCopyPaths", [_dec66], {
|
|
300766
301461
|
configurable: true,
|
|
300767
301462
|
enumerable: true,
|
|
300768
301463
|
writable: true,
|
|
300769
301464
|
initializer: null
|
|
300770
|
-
}),
|
|
301465
|
+
}), _descriptor58 = _applyDecoratedDescriptor(_class26.prototype, "rows", [_dec67], {
|
|
300771
301466
|
configurable: true,
|
|
300772
301467
|
enumerable: true,
|
|
300773
301468
|
writable: true,
|
|
300774
301469
|
initializer: null
|
|
300775
|
-
}),
|
|
301470
|
+
}), _descriptor59 = _applyDecoratedDescriptor(_class26.prototype, "header", [_dec68], {
|
|
300776
301471
|
configurable: true,
|
|
300777
301472
|
enumerable: true,
|
|
300778
301473
|
writable: true,
|
|
300779
301474
|
initializer: null
|
|
300780
|
-
}),
|
|
301475
|
+
}), _descriptor60 = _applyDecoratedDescriptor(_class26.prototype, "colgroup", [_dec69], {
|
|
300781
301476
|
configurable: true,
|
|
300782
301477
|
enumerable: true,
|
|
300783
301478
|
writable: true,
|
|
300784
301479
|
initializer: null
|
|
300785
|
-
}),
|
|
301480
|
+
}), _descriptor61 = _applyDecoratedDescriptor(_class26.prototype, "filterinfo", [_dec70], {
|
|
300786
301481
|
configurable: true,
|
|
300787
301482
|
enumerable: true,
|
|
300788
301483
|
writable: true,
|
|
300789
301484
|
initializer: null
|
|
300790
|
-
}),
|
|
301485
|
+
}), _descriptor62 = _applyDecoratedDescriptor(_class26.prototype, "loader", [_dec71], {
|
|
300791
301486
|
configurable: true,
|
|
300792
301487
|
enumerable: true,
|
|
300793
301488
|
writable: true,
|
|
300794
301489
|
initializer: null
|
|
300795
|
-
}),
|
|
301490
|
+
}), _descriptor63 = _applyDecoratedDescriptor(_class26.prototype, "align", [_dec72], {
|
|
300796
301491
|
configurable: true,
|
|
300797
301492
|
enumerable: true,
|
|
300798
301493
|
writable: true,
|
|
300799
301494
|
initializer: null
|
|
300800
|
-
}),
|
|
301495
|
+
}), _descriptor64 = _applyDecoratedDescriptor(_class26.prototype, "columnGrouping", [_dec73], {
|
|
300801
301496
|
configurable: true,
|
|
300802
301497
|
enumerable: true,
|
|
300803
301498
|
writable: true,
|
|
300804
301499
|
initializer: null
|
|
300805
|
-
}),
|
|
301500
|
+
}), _descriptor65 = _applyDecoratedDescriptor(_class26.prototype, "hiddenGroups", [_dec74], {
|
|
300806
301501
|
configurable: true,
|
|
300807
301502
|
enumerable: true,
|
|
300808
301503
|
writable: true,
|
|
300809
301504
|
initializer: null
|
|
300810
|
-
}),
|
|
301505
|
+
}), _descriptor66 = _applyDecoratedDescriptor(_class26.prototype, "footer", [_dec75], {
|
|
300811
301506
|
configurable: true,
|
|
300812
301507
|
enumerable: true,
|
|
300813
301508
|
writable: true,
|
|
@@ -301925,10 +302620,13 @@ class RemoveRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
|
|
|
301925
302620
|
}
|
|
301926
302621
|
|
|
301927
302622
|
doConvert(context) {
|
|
302623
|
+
var _node$clearLastInstan;
|
|
302624
|
+
|
|
301928
302625
|
const node = this.getCurrentNodeAs(_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_3__.RemoveRowButtonNode);
|
|
301929
302626
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("RemoveRowButton");
|
|
301930
302627
|
markupBuilder.prop("data-tid").set(node.tid);
|
|
301931
302628
|
markupBuilder.prop(x => x.hint).set(node.hint);
|
|
302629
|
+
markupBuilder.prop(x => x.clearLastInstance).set((_node$clearLastInstan = node.clearLastInstance) !== null && _node$clearLastInstan !== void 0 ? _node$clearLastInstan : false);
|
|
301932
302630
|
return markupBuilder.buildConverterResult();
|
|
301933
302631
|
}
|
|
301934
302632
|
|
|
@@ -301948,7 +302646,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
301948
302646
|
/* harmony export */ "RemoveRowButtonNode": () => (/* binding */ RemoveRowButtonNode)
|
|
301949
302647
|
/* harmony export */ });
|
|
301950
302648
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
301951
|
-
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
302649
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
301952
302650
|
|
|
301953
302651
|
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 }); }
|
|
301954
302652
|
|
|
@@ -301957,13 +302655,15 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
301957
302655
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
301958
302656
|
|
|
301959
302657
|
|
|
301960
|
-
let RemoveRowButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("removerowbutton", `Кнопка удаления множественного элемента в виде креста`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/RemoveRowButton sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.localizedString, ``), _dec(_class = (_class2 = class RemoveRowButtonNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
|
|
302658
|
+
let RemoveRowButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("removerowbutton", `Кнопка удаления множественного элемента в виде креста`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/RemoveRowButton sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("clearLastInstance", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, `При удалении последнего элемента он будет очищаться, а не удаляться`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.localizedString, ``), _dec(_class = (_class2 = class RemoveRowButtonNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
|
|
301961
302659
|
constructor(...args) {
|
|
301962
302660
|
super(...args);
|
|
301963
302661
|
|
|
301964
302662
|
_initializerDefineProperty(this, "tid", _descriptor, this);
|
|
301965
302663
|
|
|
301966
|
-
_initializerDefineProperty(this, "
|
|
302664
|
+
_initializerDefineProperty(this, "clearLastInstance", _descriptor2, this);
|
|
302665
|
+
|
|
302666
|
+
_initializerDefineProperty(this, "hint", _descriptor3, this);
|
|
301967
302667
|
}
|
|
301968
302668
|
|
|
301969
302669
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "tid", [_dec2], {
|
|
@@ -301971,7 +302671,12 @@ let RemoveRowButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORT
|
|
|
301971
302671
|
enumerable: true,
|
|
301972
302672
|
writable: true,
|
|
301973
302673
|
initializer: null
|
|
301974
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302674
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "clearLastInstance", [_dec3], {
|
|
302675
|
+
configurable: true,
|
|
302676
|
+
enumerable: true,
|
|
302677
|
+
writable: true,
|
|
302678
|
+
initializer: null
|
|
302679
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "hint", [_dec4], {
|
|
301975
302680
|
configurable: true,
|
|
301976
302681
|
enumerable: true,
|
|
301977
302682
|
writable: true,
|
|
@@ -302179,7 +302884,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302179
302884
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
302180
302885
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
302181
302886
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
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,
|
|
302887
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _dec19, _dec20, _dec21, _class4, _class5, _descriptor18, _descriptor19, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _class7, _class8, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _class10, _class11, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _dec50, _dec51, _dec52, _class13, _class14, _descriptor46, _descriptor47, _dec53, _dec54, _dec55, _class16, _class17, _descriptor48, _descriptor49, _dec56, _dec57, _class19, _class20, _descriptor50, _dec58, _dec59, _class22, _class23, _descriptor51, _dec60, _dec61, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _dec76, _dec77, _class25, _class26, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56, _descriptor57, _descriptor58, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _descriptor64, _descriptor65, _descriptor66, _descriptor67, _descriptor68;
|
|
302183
302888
|
|
|
302184
302889
|
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 }); }
|
|
302185
302890
|
|
|
@@ -302194,7 +302899,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
302194
302899
|
|
|
302195
302900
|
|
|
302196
302901
|
|
|
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, ``),
|
|
302902
|
+
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)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("hintOnAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec7 = (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), ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("colspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("empty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rowspan", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("textalign", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("center", "left", "right"), ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("paddingTop", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("requiredempty", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("indent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("1", "2", "3", "4", "5", "6"), ``), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("textTopPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class StickyTableColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302198
302903
|
constructor(...args) {
|
|
302199
302904
|
super(...args);
|
|
302200
302905
|
|
|
@@ -302204,31 +302909,33 @@ let StickyTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
302204
302909
|
|
|
302205
302910
|
_initializerDefineProperty(this, "disabled", _descriptor3, this);
|
|
302206
302911
|
|
|
302207
|
-
_initializerDefineProperty(this, "
|
|
302912
|
+
_initializerDefineProperty(this, "disabled2", _descriptor4, this);
|
|
302208
302913
|
|
|
302209
|
-
_initializerDefineProperty(this, "
|
|
302914
|
+
_initializerDefineProperty(this, "hintOnAdd", _descriptor5, this);
|
|
302210
302915
|
|
|
302211
|
-
_initializerDefineProperty(this, "
|
|
302916
|
+
_initializerDefineProperty(this, "titles", _descriptor6, this);
|
|
302212
302917
|
|
|
302213
|
-
_initializerDefineProperty(this, "
|
|
302918
|
+
_initializerDefineProperty(this, "colspan", _descriptor7, this);
|
|
302214
302919
|
|
|
302215
|
-
_initializerDefineProperty(this, "
|
|
302920
|
+
_initializerDefineProperty(this, "empty", _descriptor8, this);
|
|
302216
302921
|
|
|
302217
|
-
_initializerDefineProperty(this, "
|
|
302922
|
+
_initializerDefineProperty(this, "width", _descriptor9, this);
|
|
302218
302923
|
|
|
302219
|
-
_initializerDefineProperty(this, "
|
|
302924
|
+
_initializerDefineProperty(this, "rowspan", _descriptor10, this);
|
|
302220
302925
|
|
|
302221
|
-
_initializerDefineProperty(this, "
|
|
302926
|
+
_initializerDefineProperty(this, "textalign", _descriptor11, this);
|
|
302222
302927
|
|
|
302223
|
-
_initializerDefineProperty(this, "
|
|
302928
|
+
_initializerDefineProperty(this, "horizontalAlign", _descriptor12, this);
|
|
302224
302929
|
|
|
302225
|
-
_initializerDefineProperty(this, "
|
|
302930
|
+
_initializerDefineProperty(this, "paddingTop", _descriptor13, this);
|
|
302226
302931
|
|
|
302227
|
-
_initializerDefineProperty(this, "
|
|
302932
|
+
_initializerDefineProperty(this, "requiredempty", _descriptor14, this);
|
|
302228
302933
|
|
|
302229
|
-
_initializerDefineProperty(this, "
|
|
302934
|
+
_initializerDefineProperty(this, "indent", _descriptor15, this);
|
|
302230
302935
|
|
|
302231
|
-
_initializerDefineProperty(this, "
|
|
302936
|
+
_initializerDefineProperty(this, "textTopPadding", _descriptor16, this);
|
|
302937
|
+
|
|
302938
|
+
_initializerDefineProperty(this, "children", _descriptor17, this);
|
|
302232
302939
|
}
|
|
302233
302940
|
|
|
302234
302941
|
getOwnPath() {
|
|
@@ -302256,135 +302963,140 @@ let StickyTableColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
302256
302963
|
enumerable: true,
|
|
302257
302964
|
writable: true,
|
|
302258
302965
|
initializer: null
|
|
302259
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302966
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "disabled2", [_dec5], {
|
|
302260
302967
|
configurable: true,
|
|
302261
302968
|
enumerable: true,
|
|
302262
302969
|
writable: true,
|
|
302263
302970
|
initializer: null
|
|
302264
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302971
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "hintOnAdd", [_dec6], {
|
|
302265
302972
|
configurable: true,
|
|
302266
302973
|
enumerable: true,
|
|
302267
302974
|
writable: true,
|
|
302268
302975
|
initializer: null
|
|
302269
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302976
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "titles", [_dec7], {
|
|
302270
302977
|
configurable: true,
|
|
302271
302978
|
enumerable: true,
|
|
302272
302979
|
writable: true,
|
|
302273
302980
|
initializer: null
|
|
302274
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302981
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "colspan", [_dec8], {
|
|
302275
302982
|
configurable: true,
|
|
302276
302983
|
enumerable: true,
|
|
302277
302984
|
writable: true,
|
|
302278
302985
|
initializer: null
|
|
302279
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302986
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "empty", [_dec9], {
|
|
302280
302987
|
configurable: true,
|
|
302281
302988
|
enumerable: true,
|
|
302282
302989
|
writable: true,
|
|
302283
302990
|
initializer: null
|
|
302284
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302991
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "width", [_dec10], {
|
|
302285
302992
|
configurable: true,
|
|
302286
302993
|
enumerable: true,
|
|
302287
302994
|
writable: true,
|
|
302288
302995
|
initializer: null
|
|
302289
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
302996
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "rowspan", [_dec11], {
|
|
302290
302997
|
configurable: true,
|
|
302291
302998
|
enumerable: true,
|
|
302292
302999
|
writable: true,
|
|
302293
303000
|
initializer: null
|
|
302294
|
-
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
303001
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "textalign", [_dec12], {
|
|
302295
303002
|
configurable: true,
|
|
302296
303003
|
enumerable: true,
|
|
302297
303004
|
writable: true,
|
|
302298
303005
|
initializer: null
|
|
302299
|
-
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
303006
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "horizontalAlign", [_dec13], {
|
|
302300
303007
|
configurable: true,
|
|
302301
303008
|
enumerable: true,
|
|
302302
303009
|
writable: true,
|
|
302303
303010
|
initializer: null
|
|
302304
|
-
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
303011
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "paddingTop", [_dec14], {
|
|
302305
303012
|
configurable: true,
|
|
302306
303013
|
enumerable: true,
|
|
302307
303014
|
writable: true,
|
|
302308
303015
|
initializer: null
|
|
302309
|
-
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
303016
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "requiredempty", [_dec15], {
|
|
302310
303017
|
configurable: true,
|
|
302311
303018
|
enumerable: true,
|
|
302312
303019
|
writable: true,
|
|
302313
303020
|
initializer: null
|
|
302314
|
-
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
303021
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "indent", [_dec16], {
|
|
302315
303022
|
configurable: true,
|
|
302316
303023
|
enumerable: true,
|
|
302317
303024
|
writable: true,
|
|
302318
303025
|
initializer: null
|
|
302319
|
-
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
303026
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "textTopPadding", [_dec17], {
|
|
303027
|
+
configurable: true,
|
|
303028
|
+
enumerable: true,
|
|
303029
|
+
writable: true,
|
|
303030
|
+
initializer: null
|
|
303031
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec18], {
|
|
302320
303032
|
configurable: true,
|
|
302321
303033
|
enumerable: true,
|
|
302322
303034
|
writable: true,
|
|
302323
303035
|
initializer: null
|
|
302324
303036
|
})), _class2)) || _class);
|
|
302325
|
-
let StickyTableMultilineRowNode = (
|
|
303037
|
+
let StickyTableMultilineRowNode = (_dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("column", [StickyTableColumnNode]), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("borderBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Серая черта под строкой`), _dec19(_class4 = (_class5 = class StickyTableMultilineRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302326
303038
|
constructor(...args) {
|
|
302327
303039
|
super(...args);
|
|
302328
303040
|
|
|
302329
|
-
_initializerDefineProperty(this, "columns",
|
|
303041
|
+
_initializerDefineProperty(this, "columns", _descriptor18, this);
|
|
302330
303042
|
|
|
302331
|
-
_initializerDefineProperty(this, "borderBottom",
|
|
303043
|
+
_initializerDefineProperty(this, "borderBottom", _descriptor19, this);
|
|
302332
303044
|
}
|
|
302333
303045
|
|
|
302334
|
-
}, (
|
|
303046
|
+
}, (_descriptor18 = _applyDecoratedDescriptor(_class5.prototype, "columns", [_dec20], {
|
|
302335
303047
|
configurable: true,
|
|
302336
303048
|
enumerable: true,
|
|
302337
303049
|
writable: true,
|
|
302338
303050
|
initializer: null
|
|
302339
|
-
}),
|
|
303051
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, "borderBottom", [_dec21], {
|
|
302340
303052
|
configurable: true,
|
|
302341
303053
|
enumerable: true,
|
|
302342
303054
|
writable: true,
|
|
302343
303055
|
initializer: null
|
|
302344
303056
|
})), _class5)) || _class4);
|
|
302345
|
-
let StickyTableMultilineNode = (
|
|
303057
|
+
let StickyTableMultilineNode = (_dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("multiline", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec23 = (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)} данного элемента. Опционально, если не указан, то будет оторажаться текст заданный внутри данного элемента`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("instancesPerPage", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("defaultChildren", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.arrayLiteral(), ``), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `\"false\" - крестики не рисовать`), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rowmenu", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("className", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.Removed), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("customProperty", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.UntypedUsage), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("addButtonText", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("offsetLeft", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("offsetTop", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_1__.DeprecationReason.InvalidUsage), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("focusByHotkey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Если добавишь больше 90 строк, то пейджер сворачивается и по focusByHotkey можно сфокусироваться`), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("row", [StickyTableMultilineRowNode]), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("addbutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `\"false\" - не нужна кнопка для добавления множественного блока`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("doNotCopyPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.stringArray, ``), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("addType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ``), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("usepager", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `\"false\" - без пейджера (1-11, 12-22 - этого нет внизу страницы)`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("show-row-border", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("override", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.customControl, ``), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("storeFilters", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будут ли сохраняться фильтры для этого мультилайна между обнолениями страницы. По умолчанию -- нет`), _dec22(_class7 = (_class8 = class StickyTableMultilineNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
302346
303058
|
constructor(...args) {
|
|
302347
303059
|
super(...args);
|
|
302348
303060
|
|
|
302349
|
-
_initializerDefineProperty(this, "path",
|
|
303061
|
+
_initializerDefineProperty(this, "path", _descriptor20, this);
|
|
302350
303062
|
|
|
302351
|
-
_initializerDefineProperty(this, "instancesPerPage",
|
|
303063
|
+
_initializerDefineProperty(this, "instancesPerPage", _descriptor21, this);
|
|
302352
303064
|
|
|
302353
|
-
_initializerDefineProperty(this, "optional",
|
|
303065
|
+
_initializerDefineProperty(this, "optional", _descriptor22, this);
|
|
302354
303066
|
|
|
302355
|
-
_initializerDefineProperty(this, "defaultChildren",
|
|
303067
|
+
_initializerDefineProperty(this, "defaultChildren", _descriptor23, this);
|
|
302356
303068
|
|
|
302357
|
-
_initializerDefineProperty(this, "removebutton",
|
|
303069
|
+
_initializerDefineProperty(this, "removebutton", _descriptor24, this);
|
|
302358
303070
|
|
|
302359
|
-
_initializerDefineProperty(this, "rowmenu",
|
|
303071
|
+
_initializerDefineProperty(this, "rowmenu", _descriptor25, this);
|
|
302360
303072
|
|
|
302361
|
-
_initializerDefineProperty(this, "className",
|
|
303073
|
+
_initializerDefineProperty(this, "className", _descriptor26, this);
|
|
302362
303074
|
|
|
302363
|
-
_initializerDefineProperty(this, "customProperty",
|
|
303075
|
+
_initializerDefineProperty(this, "customProperty", _descriptor27, this);
|
|
302364
303076
|
|
|
302365
|
-
_initializerDefineProperty(this, "addButtonText",
|
|
303077
|
+
_initializerDefineProperty(this, "addButtonText", _descriptor28, this);
|
|
302366
303078
|
|
|
302367
|
-
_initializerDefineProperty(this, "offsetLeft",
|
|
303079
|
+
_initializerDefineProperty(this, "offsetLeft", _descriptor29, this);
|
|
302368
303080
|
|
|
302369
|
-
_initializerDefineProperty(this, "offsetTop",
|
|
303081
|
+
_initializerDefineProperty(this, "offsetTop", _descriptor30, this);
|
|
302370
303082
|
|
|
302371
|
-
_initializerDefineProperty(this, "focusByHotkey",
|
|
303083
|
+
_initializerDefineProperty(this, "focusByHotkey", _descriptor31, this);
|
|
302372
303084
|
|
|
302373
|
-
_initializerDefineProperty(this, "rows",
|
|
303085
|
+
_initializerDefineProperty(this, "rows", _descriptor32, this);
|
|
302374
303086
|
|
|
302375
|
-
_initializerDefineProperty(this, "addbutton",
|
|
303087
|
+
_initializerDefineProperty(this, "addbutton", _descriptor33, this);
|
|
302376
303088
|
|
|
302377
|
-
_initializerDefineProperty(this, "doNotCopyPaths",
|
|
303089
|
+
_initializerDefineProperty(this, "doNotCopyPaths", _descriptor34, this);
|
|
302378
303090
|
|
|
302379
|
-
_initializerDefineProperty(this, "addType",
|
|
303091
|
+
_initializerDefineProperty(this, "addType", _descriptor35, this);
|
|
302380
303092
|
|
|
302381
|
-
_initializerDefineProperty(this, "usepager",
|
|
303093
|
+
_initializerDefineProperty(this, "usepager", _descriptor36, this);
|
|
302382
303094
|
|
|
302383
|
-
_initializerDefineProperty(this, "showRowBorder",
|
|
303095
|
+
_initializerDefineProperty(this, "showRowBorder", _descriptor37, this);
|
|
302384
303096
|
|
|
302385
|
-
_initializerDefineProperty(this, "override",
|
|
303097
|
+
_initializerDefineProperty(this, "override", _descriptor38, this);
|
|
302386
303098
|
|
|
302387
|
-
_initializerDefineProperty(this, "storeFilters",
|
|
303099
|
+
_initializerDefineProperty(this, "storeFilters", _descriptor39, this);
|
|
302388
303100
|
}
|
|
302389
303101
|
|
|
302390
303102
|
getOwnPath() {
|
|
@@ -302395,186 +303107,186 @@ let StickyTableMultilineNode = (_dec21 = (0,_Serializer_SugarSerializer__WEBPACK
|
|
|
302395
303107
|
return true;
|
|
302396
303108
|
}
|
|
302397
303109
|
|
|
302398
|
-
}, (
|
|
303110
|
+
}, (_descriptor20 = _applyDecoratedDescriptor(_class8.prototype, "path", [_dec23], {
|
|
302399
303111
|
configurable: true,
|
|
302400
303112
|
enumerable: true,
|
|
302401
303113
|
writable: true,
|
|
302402
303114
|
initializer: null
|
|
302403
|
-
}),
|
|
303115
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class8.prototype, "instancesPerPage", [_dec24], {
|
|
302404
303116
|
configurable: true,
|
|
302405
303117
|
enumerable: true,
|
|
302406
303118
|
writable: true,
|
|
302407
303119
|
initializer: null
|
|
302408
|
-
}),
|
|
303120
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class8.prototype, "optional", [_dec25], {
|
|
302409
303121
|
configurable: true,
|
|
302410
303122
|
enumerable: true,
|
|
302411
303123
|
writable: true,
|
|
302412
303124
|
initializer: null
|
|
302413
|
-
}),
|
|
303125
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class8.prototype, "defaultChildren", [_dec26], {
|
|
302414
303126
|
configurable: true,
|
|
302415
303127
|
enumerable: true,
|
|
302416
303128
|
writable: true,
|
|
302417
303129
|
initializer: null
|
|
302418
|
-
}),
|
|
303130
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class8.prototype, "removebutton", [_dec27], {
|
|
302419
303131
|
configurable: true,
|
|
302420
303132
|
enumerable: true,
|
|
302421
303133
|
writable: true,
|
|
302422
303134
|
initializer: null
|
|
302423
|
-
}),
|
|
303135
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class8.prototype, "rowmenu", [_dec28], {
|
|
302424
303136
|
configurable: true,
|
|
302425
303137
|
enumerable: true,
|
|
302426
303138
|
writable: true,
|
|
302427
303139
|
initializer: null
|
|
302428
|
-
}),
|
|
303140
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class8.prototype, "className", [_dec29], {
|
|
302429
303141
|
configurable: true,
|
|
302430
303142
|
enumerable: true,
|
|
302431
303143
|
writable: true,
|
|
302432
303144
|
initializer: null
|
|
302433
|
-
}),
|
|
303145
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class8.prototype, "customProperty", [_dec30], {
|
|
302434
303146
|
configurable: true,
|
|
302435
303147
|
enumerable: true,
|
|
302436
303148
|
writable: true,
|
|
302437
303149
|
initializer: null
|
|
302438
|
-
}),
|
|
303150
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class8.prototype, "addButtonText", [_dec31], {
|
|
302439
303151
|
configurable: true,
|
|
302440
303152
|
enumerable: true,
|
|
302441
303153
|
writable: true,
|
|
302442
303154
|
initializer: null
|
|
302443
|
-
}),
|
|
303155
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class8.prototype, "offsetLeft", [_dec32], {
|
|
302444
303156
|
configurable: true,
|
|
302445
303157
|
enumerable: true,
|
|
302446
303158
|
writable: true,
|
|
302447
303159
|
initializer: null
|
|
302448
|
-
}),
|
|
303160
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class8.prototype, "offsetTop", [_dec33], {
|
|
302449
303161
|
configurable: true,
|
|
302450
303162
|
enumerable: true,
|
|
302451
303163
|
writable: true,
|
|
302452
303164
|
initializer: null
|
|
302453
|
-
}),
|
|
303165
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class8.prototype, "focusByHotkey", [_dec34], {
|
|
302454
303166
|
configurable: true,
|
|
302455
303167
|
enumerable: true,
|
|
302456
303168
|
writable: true,
|
|
302457
303169
|
initializer: null
|
|
302458
|
-
}),
|
|
303170
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class8.prototype, "rows", [_dec35], {
|
|
302459
303171
|
configurable: true,
|
|
302460
303172
|
enumerable: true,
|
|
302461
303173
|
writable: true,
|
|
302462
303174
|
initializer: null
|
|
302463
|
-
}),
|
|
303175
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class8.prototype, "addbutton", [_dec36], {
|
|
302464
303176
|
configurable: true,
|
|
302465
303177
|
enumerable: true,
|
|
302466
303178
|
writable: true,
|
|
302467
303179
|
initializer: null
|
|
302468
|
-
}),
|
|
303180
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class8.prototype, "doNotCopyPaths", [_dec37], {
|
|
302469
303181
|
configurable: true,
|
|
302470
303182
|
enumerable: true,
|
|
302471
303183
|
writable: true,
|
|
302472
303184
|
initializer: null
|
|
302473
|
-
}),
|
|
303185
|
+
}), _descriptor35 = _applyDecoratedDescriptor(_class8.prototype, "addType", [_dec38], {
|
|
302474
303186
|
configurable: true,
|
|
302475
303187
|
enumerable: true,
|
|
302476
303188
|
writable: true,
|
|
302477
303189
|
initializer: null
|
|
302478
|
-
}),
|
|
303190
|
+
}), _descriptor36 = _applyDecoratedDescriptor(_class8.prototype, "usepager", [_dec39], {
|
|
302479
303191
|
configurable: true,
|
|
302480
303192
|
enumerable: true,
|
|
302481
303193
|
writable: true,
|
|
302482
303194
|
initializer: null
|
|
302483
|
-
}),
|
|
303195
|
+
}), _descriptor37 = _applyDecoratedDescriptor(_class8.prototype, "showRowBorder", [_dec40], {
|
|
302484
303196
|
configurable: true,
|
|
302485
303197
|
enumerable: true,
|
|
302486
303198
|
writable: true,
|
|
302487
303199
|
initializer: null
|
|
302488
|
-
}),
|
|
303200
|
+
}), _descriptor38 = _applyDecoratedDescriptor(_class8.prototype, "override", [_dec41], {
|
|
302489
303201
|
configurable: true,
|
|
302490
303202
|
enumerable: true,
|
|
302491
303203
|
writable: true,
|
|
302492
303204
|
initializer: null
|
|
302493
|
-
}),
|
|
303205
|
+
}), _descriptor39 = _applyDecoratedDescriptor(_class8.prototype, "storeFilters", [_dec42], {
|
|
302494
303206
|
configurable: true,
|
|
302495
303207
|
enumerable: true,
|
|
302496
303208
|
writable: true,
|
|
302497
303209
|
initializer: null
|
|
302498
303210
|
})), _class8)) || _class7);
|
|
302499
|
-
let StickyTableRowNode = (
|
|
303211
|
+
let StickyTableRowNode = (_dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("row", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingScopeMixinNode), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("kind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("head"), `Шапка таблицы`), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("subkind", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("numbers"), `Строка с нумерацией столбцов`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(["column", "multiline"], [StickyTableColumnNode, StickyTableMultilineNode]), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("borderBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Серая черта под строкой`), _dec43(_class10 = (_class11 = class StickyTableRowNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302500
303212
|
constructor(...args) {
|
|
302501
303213
|
super(...args);
|
|
302502
303214
|
|
|
302503
|
-
_initializerDefineProperty(this, "dataScope",
|
|
303215
|
+
_initializerDefineProperty(this, "dataScope", _descriptor40, this);
|
|
302504
303216
|
|
|
302505
|
-
_initializerDefineProperty(this, "optional",
|
|
303217
|
+
_initializerDefineProperty(this, "optional", _descriptor41, this);
|
|
302506
303218
|
|
|
302507
|
-
_initializerDefineProperty(this, "kind",
|
|
303219
|
+
_initializerDefineProperty(this, "kind", _descriptor42, this);
|
|
302508
303220
|
|
|
302509
|
-
_initializerDefineProperty(this, "subkind",
|
|
303221
|
+
_initializerDefineProperty(this, "subkind", _descriptor43, this);
|
|
302510
303222
|
|
|
302511
|
-
_initializerDefineProperty(this, "columns",
|
|
303223
|
+
_initializerDefineProperty(this, "columns", _descriptor44, this);
|
|
302512
303224
|
|
|
302513
|
-
_initializerDefineProperty(this, "borderBottom",
|
|
303225
|
+
_initializerDefineProperty(this, "borderBottom", _descriptor45, this);
|
|
302514
303226
|
}
|
|
302515
303227
|
|
|
302516
303228
|
getOwnPath() {
|
|
302517
303229
|
return this.dataScope.getOwnPath();
|
|
302518
303230
|
}
|
|
302519
303231
|
|
|
302520
|
-
}, (
|
|
303232
|
+
}, (_descriptor40 = _applyDecoratedDescriptor(_class11.prototype, "dataScope", [_dec44], {
|
|
302521
303233
|
configurable: true,
|
|
302522
303234
|
enumerable: true,
|
|
302523
303235
|
writable: true,
|
|
302524
303236
|
initializer: null
|
|
302525
|
-
}),
|
|
303237
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class11.prototype, "optional", [_dec45], {
|
|
302526
303238
|
configurable: true,
|
|
302527
303239
|
enumerable: true,
|
|
302528
303240
|
writable: true,
|
|
302529
303241
|
initializer: null
|
|
302530
|
-
}),
|
|
303242
|
+
}), _descriptor42 = _applyDecoratedDescriptor(_class11.prototype, "kind", [_dec46], {
|
|
302531
303243
|
configurable: true,
|
|
302532
303244
|
enumerable: true,
|
|
302533
303245
|
writable: true,
|
|
302534
303246
|
initializer: null
|
|
302535
|
-
}),
|
|
303247
|
+
}), _descriptor43 = _applyDecoratedDescriptor(_class11.prototype, "subkind", [_dec47], {
|
|
302536
303248
|
configurable: true,
|
|
302537
303249
|
enumerable: true,
|
|
302538
303250
|
writable: true,
|
|
302539
303251
|
initializer: null
|
|
302540
|
-
}),
|
|
303252
|
+
}), _descriptor44 = _applyDecoratedDescriptor(_class11.prototype, "columns", [_dec48], {
|
|
302541
303253
|
configurable: true,
|
|
302542
303254
|
enumerable: true,
|
|
302543
303255
|
writable: true,
|
|
302544
303256
|
initializer: null
|
|
302545
|
-
}),
|
|
303257
|
+
}), _descriptor45 = _applyDecoratedDescriptor(_class11.prototype, "borderBottom", [_dec49], {
|
|
302546
303258
|
configurable: true,
|
|
302547
303259
|
enumerable: true,
|
|
302548
303260
|
writable: true,
|
|
302549
303261
|
initializer: null
|
|
302550
303262
|
})), _class11)) || _class10);
|
|
302551
|
-
let StickyTableHeaderNode = (
|
|
303263
|
+
let StickyTableHeaderNode = (_dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("header", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("right"), ``), _dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec50(_class13 = (_class14 = class StickyTableHeaderNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302552
303264
|
constructor(...args) {
|
|
302553
303265
|
super(...args);
|
|
302554
303266
|
|
|
302555
|
-
_initializerDefineProperty(this, "align",
|
|
303267
|
+
_initializerDefineProperty(this, "align", _descriptor46, this);
|
|
302556
303268
|
|
|
302557
|
-
_initializerDefineProperty(this, "children",
|
|
303269
|
+
_initializerDefineProperty(this, "children", _descriptor47, this);
|
|
302558
303270
|
}
|
|
302559
303271
|
|
|
302560
|
-
}, (
|
|
303272
|
+
}, (_descriptor46 = _applyDecoratedDescriptor(_class14.prototype, "align", [_dec51], {
|
|
302561
303273
|
configurable: true,
|
|
302562
303274
|
enumerable: true,
|
|
302563
303275
|
writable: true,
|
|
302564
303276
|
initializer: null
|
|
302565
|
-
}),
|
|
303277
|
+
}), _descriptor47 = _applyDecoratedDescriptor(_class14.prototype, "children", [_dec52], {
|
|
302566
303278
|
configurable: true,
|
|
302567
303279
|
enumerable: true,
|
|
302568
303280
|
writable: true,
|
|
302569
303281
|
initializer: null
|
|
302570
303282
|
})), _class14)) || _class13);
|
|
302571
|
-
let StickyTableFooterNode = (
|
|
303283
|
+
let StickyTableFooterNode = (_dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("footer", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/StickyTable sync recursive .md$")), _dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(["row"], [StickyTableRowNode]), _dec55 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("column", [StickyTableColumnNode]), _dec53(_class16 = (_class17 = class StickyTableFooterNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302572
303284
|
constructor(...args) {
|
|
302573
303285
|
super(...args);
|
|
302574
303286
|
|
|
302575
|
-
_initializerDefineProperty(this, "rows",
|
|
303287
|
+
_initializerDefineProperty(this, "rows", _descriptor48, this);
|
|
302576
303288
|
|
|
302577
|
-
_initializerDefineProperty(this, "columns",
|
|
303289
|
+
_initializerDefineProperty(this, "columns", _descriptor49, this);
|
|
302578
303290
|
}
|
|
302579
303291
|
|
|
302580
303292
|
getColumnLists() {
|
|
@@ -302587,80 +303299,80 @@ let StickyTableFooterNode = (_dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
302587
303299
|
return footerColumnsLists;
|
|
302588
303300
|
}
|
|
302589
303301
|
|
|
302590
|
-
}, (
|
|
303302
|
+
}, (_descriptor48 = _applyDecoratedDescriptor(_class17.prototype, "rows", [_dec54], {
|
|
302591
303303
|
configurable: true,
|
|
302592
303304
|
enumerable: true,
|
|
302593
303305
|
writable: true,
|
|
302594
303306
|
initializer: null
|
|
302595
|
-
}),
|
|
303307
|
+
}), _descriptor49 = _applyDecoratedDescriptor(_class17.prototype, "columns", [_dec55], {
|
|
302596
303308
|
configurable: true,
|
|
302597
303309
|
enumerable: true,
|
|
302598
303310
|
writable: true,
|
|
302599
303311
|
initializer: null
|
|
302600
303312
|
})), _class17)) || _class16);
|
|
302601
|
-
let StickyTableColgroupColumnNode = (
|
|
303313
|
+
let StickyTableColgroupColumnNode = (_dec56 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("col", ``), _dec57 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, ``), _dec56(_class19 = (_class20 = class StickyTableColgroupColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302602
303314
|
constructor(...args) {
|
|
302603
303315
|
super(...args);
|
|
302604
303316
|
|
|
302605
|
-
_initializerDefineProperty(this, "width",
|
|
303317
|
+
_initializerDefineProperty(this, "width", _descriptor50, this);
|
|
302606
303318
|
}
|
|
302607
303319
|
|
|
302608
|
-
}, (
|
|
303320
|
+
}, (_descriptor50 = _applyDecoratedDescriptor(_class20.prototype, "width", [_dec57], {
|
|
302609
303321
|
configurable: true,
|
|
302610
303322
|
enumerable: true,
|
|
302611
303323
|
writable: true,
|
|
302612
303324
|
initializer: null
|
|
302613
303325
|
})), _class20)) || _class19);
|
|
302614
|
-
let StickyTableColgroupNode = (
|
|
303326
|
+
let StickyTableColgroupNode = (_dec58 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("colgroup", ``), _dec59 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("col", [StickyTableColgroupColumnNode]), _dec58(_class22 = (_class23 = class StickyTableColgroupNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
302615
303327
|
constructor(...args) {
|
|
302616
303328
|
super(...args);
|
|
302617
303329
|
|
|
302618
|
-
_initializerDefineProperty(this, "cols",
|
|
303330
|
+
_initializerDefineProperty(this, "cols", _descriptor51, this);
|
|
302619
303331
|
}
|
|
302620
303332
|
|
|
302621
|
-
}, (
|
|
303333
|
+
}, (_descriptor51 = _applyDecoratedDescriptor(_class23.prototype, "cols", [_dec59], {
|
|
302622
303334
|
configurable: true,
|
|
302623
303335
|
enumerable: true,
|
|
302624
303336
|
writable: true,
|
|
302625
303337
|
initializer: null
|
|
302626
303338
|
})), _class23)) || _class22);
|
|
302627
|
-
let StickyTableNode = (
|
|
303339
|
+
let StickyTableNode = (_dec60 = (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), _dec61 = (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)} данного элемента. Опционально, если не указан, то будет оторажаться текст заданный внутри данного элемента`), _dec62 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec63 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("baseline", "top"), ``), _dec64 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("removebutton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `\"false\" - крестики не рисовать`), _dec65 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("sticky", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec66 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("stickyHeader", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Залипающая шапка`), _dec67 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("grayColumn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Буквы во второй колонке серым цветом`), _dec68 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("side", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec69 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("className", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec70 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("colgroup", [StickyTableColgroupNode]), _dec71 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(["row", "multiline"], [StickyTableRowNode, StickyTableMultilineNode]), _dec72 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("header", [StickyTableHeaderNode]), _dec73 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("footer", [StickyTableFooterNode]), _dec74 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("deprecated-diadoc-width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec75 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Ширина таблицы`), _dec76 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec77 = (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 устанавливаю тексты в подсказке при наведении.`), _dec60(_class25 = (_class26 = class StickyTableNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
302628
303340
|
constructor(...args) {
|
|
302629
303341
|
super(...args);
|
|
302630
303342
|
|
|
302631
|
-
_initializerDefineProperty(this, "path",
|
|
303343
|
+
_initializerDefineProperty(this, "path", _descriptor52, this);
|
|
302632
303344
|
|
|
302633
|
-
_initializerDefineProperty(this, "optional",
|
|
303345
|
+
_initializerDefineProperty(this, "optional", _descriptor53, this);
|
|
302634
303346
|
|
|
302635
|
-
_initializerDefineProperty(this, "align",
|
|
303347
|
+
_initializerDefineProperty(this, "align", _descriptor54, this);
|
|
302636
303348
|
|
|
302637
|
-
_initializerDefineProperty(this, "removeButton",
|
|
303349
|
+
_initializerDefineProperty(this, "removeButton", _descriptor55, this);
|
|
302638
303350
|
|
|
302639
|
-
_initializerDefineProperty(this, "sticky",
|
|
303351
|
+
_initializerDefineProperty(this, "sticky", _descriptor56, this);
|
|
302640
303352
|
|
|
302641
|
-
_initializerDefineProperty(this, "stickyHeader",
|
|
303353
|
+
_initializerDefineProperty(this, "stickyHeader", _descriptor57, this);
|
|
302642
303354
|
|
|
302643
|
-
_initializerDefineProperty(this, "grayColumn",
|
|
303355
|
+
_initializerDefineProperty(this, "grayColumn", _descriptor58, this);
|
|
302644
303356
|
|
|
302645
|
-
_initializerDefineProperty(this, "side",
|
|
303357
|
+
_initializerDefineProperty(this, "side", _descriptor59, this);
|
|
302646
303358
|
|
|
302647
|
-
_initializerDefineProperty(this, "className",
|
|
303359
|
+
_initializerDefineProperty(this, "className", _descriptor60, this);
|
|
302648
303360
|
|
|
302649
|
-
_initializerDefineProperty(this, "colgroup",
|
|
303361
|
+
_initializerDefineProperty(this, "colgroup", _descriptor61, this);
|
|
302650
303362
|
|
|
302651
|
-
_initializerDefineProperty(this, "rows",
|
|
303363
|
+
_initializerDefineProperty(this, "rows", _descriptor62, this);
|
|
302652
303364
|
|
|
302653
|
-
_initializerDefineProperty(this, "header",
|
|
303365
|
+
_initializerDefineProperty(this, "header", _descriptor63, this);
|
|
302654
303366
|
|
|
302655
|
-
_initializerDefineProperty(this, "footer",
|
|
303367
|
+
_initializerDefineProperty(this, "footer", _descriptor64, this);
|
|
302656
303368
|
|
|
302657
|
-
_initializerDefineProperty(this, "deprecatedDiadocWidth",
|
|
303369
|
+
_initializerDefineProperty(this, "deprecatedDiadocWidth", _descriptor65, this);
|
|
302658
303370
|
|
|
302659
|
-
_initializerDefineProperty(this, "width",
|
|
303371
|
+
_initializerDefineProperty(this, "width", _descriptor66, this);
|
|
302660
303372
|
|
|
302661
|
-
_initializerDefineProperty(this, "tid",
|
|
303373
|
+
_initializerDefineProperty(this, "tid", _descriptor67, this);
|
|
302662
303374
|
|
|
302663
|
-
_initializerDefineProperty(this, "columnGrouping",
|
|
303375
|
+
_initializerDefineProperty(this, "columnGrouping", _descriptor68, this);
|
|
302664
303376
|
}
|
|
302665
303377
|
|
|
302666
303378
|
getOwnPath() {
|
|
@@ -302671,87 +303383,87 @@ let StickyTableNode = (_dec59 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
302671
303383
|
return this.rows.filter(isRowNode).filter(row => row.kind === "head");
|
|
302672
303384
|
}
|
|
302673
303385
|
|
|
302674
|
-
}, (
|
|
303386
|
+
}, (_descriptor52 = _applyDecoratedDescriptor(_class26.prototype, "path", [_dec61], {
|
|
302675
303387
|
configurable: true,
|
|
302676
303388
|
enumerable: true,
|
|
302677
303389
|
writable: true,
|
|
302678
303390
|
initializer: null
|
|
302679
|
-
}),
|
|
303391
|
+
}), _descriptor53 = _applyDecoratedDescriptor(_class26.prototype, "optional", [_dec62], {
|
|
302680
303392
|
configurable: true,
|
|
302681
303393
|
enumerable: true,
|
|
302682
303394
|
writable: true,
|
|
302683
303395
|
initializer: null
|
|
302684
|
-
}),
|
|
303396
|
+
}), _descriptor54 = _applyDecoratedDescriptor(_class26.prototype, "align", [_dec63], {
|
|
302685
303397
|
configurable: true,
|
|
302686
303398
|
enumerable: true,
|
|
302687
303399
|
writable: true,
|
|
302688
303400
|
initializer: null
|
|
302689
|
-
}),
|
|
303401
|
+
}), _descriptor55 = _applyDecoratedDescriptor(_class26.prototype, "removeButton", [_dec64], {
|
|
302690
303402
|
configurable: true,
|
|
302691
303403
|
enumerable: true,
|
|
302692
303404
|
writable: true,
|
|
302693
303405
|
initializer: null
|
|
302694
|
-
}),
|
|
303406
|
+
}), _descriptor56 = _applyDecoratedDescriptor(_class26.prototype, "sticky", [_dec65], {
|
|
302695
303407
|
configurable: true,
|
|
302696
303408
|
enumerable: true,
|
|
302697
303409
|
writable: true,
|
|
302698
303410
|
initializer: null
|
|
302699
|
-
}),
|
|
303411
|
+
}), _descriptor57 = _applyDecoratedDescriptor(_class26.prototype, "stickyHeader", [_dec66], {
|
|
302700
303412
|
configurable: true,
|
|
302701
303413
|
enumerable: true,
|
|
302702
303414
|
writable: true,
|
|
302703
303415
|
initializer: null
|
|
302704
|
-
}),
|
|
303416
|
+
}), _descriptor58 = _applyDecoratedDescriptor(_class26.prototype, "grayColumn", [_dec67], {
|
|
302705
303417
|
configurable: true,
|
|
302706
303418
|
enumerable: true,
|
|
302707
303419
|
writable: true,
|
|
302708
303420
|
initializer: null
|
|
302709
|
-
}),
|
|
303421
|
+
}), _descriptor59 = _applyDecoratedDescriptor(_class26.prototype, "side", [_dec68], {
|
|
302710
303422
|
configurable: true,
|
|
302711
303423
|
enumerable: true,
|
|
302712
303424
|
writable: true,
|
|
302713
303425
|
initializer: null
|
|
302714
|
-
}),
|
|
303426
|
+
}), _descriptor60 = _applyDecoratedDescriptor(_class26.prototype, "className", [_dec69], {
|
|
302715
303427
|
configurable: true,
|
|
302716
303428
|
enumerable: true,
|
|
302717
303429
|
writable: true,
|
|
302718
303430
|
initializer: null
|
|
302719
|
-
}),
|
|
303431
|
+
}), _descriptor61 = _applyDecoratedDescriptor(_class26.prototype, "colgroup", [_dec70], {
|
|
302720
303432
|
configurable: true,
|
|
302721
303433
|
enumerable: true,
|
|
302722
303434
|
writable: true,
|
|
302723
303435
|
initializer: null
|
|
302724
|
-
}),
|
|
303436
|
+
}), _descriptor62 = _applyDecoratedDescriptor(_class26.prototype, "rows", [_dec71], {
|
|
302725
303437
|
configurable: true,
|
|
302726
303438
|
enumerable: true,
|
|
302727
303439
|
writable: true,
|
|
302728
303440
|
initializer: null
|
|
302729
|
-
}),
|
|
303441
|
+
}), _descriptor63 = _applyDecoratedDescriptor(_class26.prototype, "header", [_dec72], {
|
|
302730
303442
|
configurable: true,
|
|
302731
303443
|
enumerable: true,
|
|
302732
303444
|
writable: true,
|
|
302733
303445
|
initializer: null
|
|
302734
|
-
}),
|
|
303446
|
+
}), _descriptor64 = _applyDecoratedDescriptor(_class26.prototype, "footer", [_dec73], {
|
|
302735
303447
|
configurable: true,
|
|
302736
303448
|
enumerable: true,
|
|
302737
303449
|
writable: true,
|
|
302738
303450
|
initializer: null
|
|
302739
|
-
}),
|
|
303451
|
+
}), _descriptor65 = _applyDecoratedDescriptor(_class26.prototype, "deprecatedDiadocWidth", [_dec74], {
|
|
302740
303452
|
configurable: true,
|
|
302741
303453
|
enumerable: true,
|
|
302742
303454
|
writable: true,
|
|
302743
303455
|
initializer: null
|
|
302744
|
-
}),
|
|
303456
|
+
}), _descriptor66 = _applyDecoratedDescriptor(_class26.prototype, "width", [_dec75], {
|
|
302745
303457
|
configurable: true,
|
|
302746
303458
|
enumerable: true,
|
|
302747
303459
|
writable: true,
|
|
302748
303460
|
initializer: null
|
|
302749
|
-
}),
|
|
303461
|
+
}), _descriptor67 = _applyDecoratedDescriptor(_class26.prototype, "tid", [_dec76], {
|
|
302750
303462
|
configurable: true,
|
|
302751
303463
|
enumerable: true,
|
|
302752
303464
|
writable: true,
|
|
302753
303465
|
initializer: null
|
|
302754
|
-
}),
|
|
303466
|
+
}), _descriptor68 = _applyDecoratedDescriptor(_class26.prototype, "columnGrouping", [_dec77], {
|
|
302755
303467
|
configurable: true,
|
|
302756
303468
|
enumerable: true,
|
|
302757
303469
|
writable: true,
|
|
@@ -307907,7 +308619,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
307907
308619
|
|
|
307908
308620
|
setCurrencyProps(markupBuilder, context, node) {
|
|
307909
308621
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
307910
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
308622
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
307911
308623
|
markupBuilder.prop(x => x.currency).set(node.currency);
|
|
307912
308624
|
|
|
307913
308625
|
if (node.currency) {
|
|
@@ -307958,7 +308670,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
307958
308670
|
var _typeNode$base2, _node$maskChar, _node$width;
|
|
307959
308671
|
|
|
307960
308672
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
307961
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
308673
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
307962
308674
|
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;
|
|
307963
308675
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("Input");
|
|
307964
308676
|
|
|
@@ -308014,7 +308726,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
308014
308726
|
var _typeNode$base3, _node$width2;
|
|
308015
308727
|
|
|
308016
308728
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
308017
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
308729
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
308018
308730
|
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;
|
|
308019
308731
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FxInput");
|
|
308020
308732
|
|
|
@@ -310052,7 +310764,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
310052
310764
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
310053
310765
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
310054
310766
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
310055
|
-
/* harmony import */ var
|
|
310767
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
310768
|
+
/* harmony import */ var _TextAreaNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Textarea/TextAreaNode.ts");
|
|
310769
|
+
|
|
310056
310770
|
|
|
310057
310771
|
|
|
310058
310772
|
|
|
@@ -310062,16 +310776,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
310062
310776
|
|
|
310063
310777
|
class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
310064
310778
|
static getAcceptNodeClass() {
|
|
310065
|
-
return
|
|
310779
|
+
return _TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode;
|
|
310066
310780
|
}
|
|
310067
310781
|
|
|
310068
310782
|
doBuildNodeValidations(validationGenerator) {
|
|
310069
|
-
const node = this.getCurrentNodeAs(
|
|
310783
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310070
310784
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
|
|
310071
310785
|
}
|
|
310072
310786
|
|
|
310073
310787
|
doBuildDataDeclaration(context) {
|
|
310074
|
-
const node = this.getCurrentNodeAs(
|
|
310788
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310075
310789
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
310076
310790
|
optional: node.dataBinding.optional,
|
|
310077
310791
|
disabled: node.disabled
|
|
@@ -310079,22 +310793,22 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
310079
310793
|
}
|
|
310080
310794
|
|
|
310081
310795
|
buildChildrenDataDeclaration(context) {
|
|
310082
|
-
const node = this.getCurrentNodeAs(
|
|
310796
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310083
310797
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
310084
310798
|
}
|
|
310085
310799
|
|
|
310086
310800
|
*doTraverseChildren() {
|
|
310087
|
-
const node = this.getCurrentNodeAs(
|
|
310801
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310088
310802
|
yield* node.helpNodes;
|
|
310089
310803
|
}
|
|
310090
310804
|
|
|
310091
310805
|
get nodePaths() {
|
|
310092
|
-
const node = this.getCurrentNodeAs(
|
|
310806
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310093
310807
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
|
|
310094
310808
|
}
|
|
310095
310809
|
|
|
310096
310810
|
doConvert(context) {
|
|
310097
|
-
const node = this.getCurrentNodeAs(
|
|
310811
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310098
310812
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
310099
310813
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("TextArea");
|
|
310100
310814
|
|
|
@@ -310110,6 +310824,12 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
310110
310824
|
markupBuilder.prop(x => x.resize).set(node.resize);
|
|
310111
310825
|
markupBuilder.prop(x => x.autoResize).set(node.autoResize);
|
|
310112
310826
|
|
|
310827
|
+
if (node.useLengthLimit) {
|
|
310828
|
+
var _node$maxTextLength;
|
|
310829
|
+
|
|
310830
|
+
markupBuilder.prop(x => x.textMaxLength).set((_node$maxTextLength = node.maxTextLength) !== null && _node$maxTextLength !== void 0 ? _node$maxTextLength : this.getTextMaxLength(context, node, node.validationInfo));
|
|
310831
|
+
}
|
|
310832
|
+
|
|
310113
310833
|
if (node.disabled2 != undefined) {
|
|
310114
310834
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
310115
310835
|
|
|
@@ -310122,6 +310842,14 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
310122
310842
|
return markupBuilder.buildConverterResultWithHelp(node, context);
|
|
310123
310843
|
}
|
|
310124
310844
|
|
|
310845
|
+
getTextMaxLength(context, node, nodeValidationInfo) {
|
|
310846
|
+
var _ref, _ref2, _typeNode$flattenType, _typeNode$flattenType2, _typeNode$flattenType3;
|
|
310847
|
+
|
|
310848
|
+
const typeNode = context.getTypeNode(nodeValidationInfo);
|
|
310849
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
310850
|
+
return (_ref = (_ref2 = (_typeNode$flattenType = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType2 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.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_6__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.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;
|
|
310851
|
+
}
|
|
310852
|
+
|
|
310125
310853
|
}
|
|
310126
310854
|
|
|
310127
310855
|
/***/ }),
|
|
@@ -310145,7 +310873,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
310145
310873
|
/* harmony import */ var _Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Helpers/Help/HelpNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Help/HelpNode.ts");
|
|
310146
310874
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
310147
310875
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
310148
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
310876
|
+
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;
|
|
310149
310877
|
|
|
310150
310878
|
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 }); }
|
|
310151
310879
|
|
|
@@ -310161,7 +310889,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
310161
310889
|
|
|
310162
310890
|
|
|
310163
310891
|
|
|
310164
|
-
let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("textarea", `Расширяющееся поле`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Textarea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_6__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина. Не может быть меньше 250`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Typo), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec(_class = (_class2 = class TextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
310892
|
+
let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("textarea", `Расширяющееся поле`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Textarea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_6__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина. Не может быть меньше 250`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Typo), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("useLengthLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Включает отображение счётчик длины текста`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maxTextLength", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Задаёт максимальное кол-во символов для счётчика длины текста. Если не указано, значение будет братся из валидации или схемы`), _dec(_class = (_class2 = class TextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
310165
310893
|
constructor(...args) {
|
|
310166
310894
|
super(...args);
|
|
310167
310895
|
|
|
@@ -310192,6 +310920,10 @@ let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
310192
310920
|
_initializerDefineProperty(this, "help", _descriptor13, this);
|
|
310193
310921
|
|
|
310194
310922
|
_initializerDefineProperty(this, "helpNodes", _descriptor14, this);
|
|
310923
|
+
|
|
310924
|
+
_initializerDefineProperty(this, "useLengthLimit", _descriptor15, this);
|
|
310925
|
+
|
|
310926
|
+
_initializerDefineProperty(this, "maxTextLength", _descriptor16, this);
|
|
310195
310927
|
}
|
|
310196
310928
|
|
|
310197
310929
|
getOwnPath() {
|
|
@@ -310268,6 +311000,16 @@ let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
310268
311000
|
enumerable: true,
|
|
310269
311001
|
writable: true,
|
|
310270
311002
|
initializer: null
|
|
311003
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "useLengthLimit", [_dec16], {
|
|
311004
|
+
configurable: true,
|
|
311005
|
+
enumerable: true,
|
|
311006
|
+
writable: true,
|
|
311007
|
+
initializer: null
|
|
311008
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "maxTextLength", [_dec17], {
|
|
311009
|
+
configurable: true,
|
|
311010
|
+
enumerable: true,
|
|
311011
|
+
writable: true,
|
|
311012
|
+
initializer: null
|
|
310271
311013
|
})), _class2)) || _class);
|
|
310272
311014
|
|
|
310273
311015
|
/***/ }),
|
|
@@ -310365,7 +311107,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
310365
311107
|
var _ref, _ref2, _typeNode$flattenType, _typeNode$flattenType2, _typeNode$flattenType3;
|
|
310366
311108
|
|
|
310367
311109
|
const typeNode = context.getTypeNode(nodeValidationInfo);
|
|
310368
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
311110
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
310369
311111
|
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;
|
|
310370
311112
|
}
|
|
310371
311113
|
|
|
@@ -311813,17 +312555,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
311813
312555
|
|
|
311814
312556
|
|
|
311815
312557
|
class MarkupBuildingContext {
|
|
311816
|
-
constructor(convertNode, nodeContext, formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations) {
|
|
312558
|
+
constructor(convertNode, nodeContext, formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, dataDeclarationHelper, useSchemaValidations) {
|
|
311817
312559
|
this.convertNode = void 0;
|
|
311818
312560
|
this.formSourcesPath = void 0;
|
|
311819
312561
|
this.helpers = void 0;
|
|
311820
312562
|
this.pathsContext = void 0;
|
|
312563
|
+
this.dataDeclarationHelper = void 0;
|
|
311821
312564
|
this.schemaRng = void 0;
|
|
311822
312565
|
this.useSchemaValidations = void 0;
|
|
311823
312566
|
this.typesRegistry = void 0;
|
|
311824
312567
|
this.uniqueControlIdIncrement = new Map();
|
|
311825
312568
|
this.controlCustomizationContext = void 0;
|
|
311826
312569
|
this.tourSteps = void 0;
|
|
312570
|
+
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
311827
312571
|
this.schemaRng = schemaRng;
|
|
311828
312572
|
this.useSchemaValidations = useSchemaValidations;
|
|
311829
312573
|
this.typesRegistry = typesRegistry;
|
|
@@ -311835,6 +312579,18 @@ class MarkupBuildingContext {
|
|
|
311835
312579
|
this.helpers = helpers;
|
|
311836
312580
|
}
|
|
311837
312581
|
|
|
312582
|
+
isNodeOptional(nodePath) {
|
|
312583
|
+
if (this.useSchemaValidations) {
|
|
312584
|
+
if (this.dataDeclarationHelper.isNodeOptional(nodePath) == false) {
|
|
312585
|
+
return this.schemaRng.getIsOptionalByPath(nodePath);
|
|
312586
|
+
} else {
|
|
312587
|
+
return true;
|
|
312588
|
+
}
|
|
312589
|
+
}
|
|
312590
|
+
|
|
312591
|
+
return this.dataDeclarationHelper.isNodeOptional(nodePath);
|
|
312592
|
+
}
|
|
312593
|
+
|
|
311838
312594
|
getUniqueControlId(context) {
|
|
311839
312595
|
let currentValue = this.uniqueControlIdIncrement.get(context);
|
|
311840
312596
|
|
|
@@ -311966,7 +312722,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
311966
312722
|
|
|
311967
312723
|
|
|
311968
312724
|
class MarkupGenerator {
|
|
311969
|
-
constructor(formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations) {
|
|
312725
|
+
constructor(formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, dataDeclarationHelper, useSchemaValidations) {
|
|
311970
312726
|
this.controlCustomizationContext = void 0;
|
|
311971
312727
|
this.markupBuilderContext = void 0;
|
|
311972
312728
|
|
|
@@ -312001,7 +312757,7 @@ class MarkupGenerator {
|
|
|
312001
312757
|
};
|
|
312002
312758
|
|
|
312003
312759
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
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);
|
|
312760
|
+
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, dataDeclarationHelper, useSchemaValidations);
|
|
312005
312761
|
}
|
|
312006
312762
|
|
|
312007
312763
|
generate(sugarRoot, builder) {
|
|
@@ -315743,14 +316499,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
315743
316499
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
315744
316500
|
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
315745
316501
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
315746
|
-
/* harmony import */ var
|
|
315747
|
-
/* harmony import */ var
|
|
315748
|
-
/* harmony import */ var
|
|
315749
|
-
/* harmony import */ var
|
|
315750
|
-
/* harmony import */ var
|
|
315751
|
-
/* harmony import */ var
|
|
315752
|
-
/* harmony import */ var
|
|
315753
|
-
/* harmony import */ var
|
|
316502
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
316503
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts");
|
|
316504
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
|
|
316505
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator.ts");
|
|
316506
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator.ts");
|
|
316507
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/EnumerationValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/EnumerationValidatorGenerator.ts");
|
|
316508
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator.ts");
|
|
316509
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator.ts");
|
|
316510
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
|
|
316511
|
+
|
|
315754
316512
|
|
|
315755
316513
|
|
|
315756
316514
|
|
|
@@ -315768,7 +316526,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
315768
316526
|
|
|
315769
316527
|
class ValidationGenerator {
|
|
315770
316528
|
constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = []) {
|
|
315771
|
-
this.typeBasedValidatorGenerators = [
|
|
316529
|
+
this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.CustomValidationValueValidatorGenerator];
|
|
315772
316530
|
this.sugarRoot = void 0;
|
|
315773
316531
|
this.validationsContent = void 0;
|
|
315774
316532
|
this.customValidations = void 0;
|
|
@@ -315904,7 +316662,7 @@ class ValidationGenerator {
|
|
|
315904
316662
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_6__.InvalidProgramStateError();
|
|
315905
316663
|
}
|
|
315906
316664
|
|
|
315907
|
-
const bindingPath = firstItem.bindingPath;
|
|
316665
|
+
const bindingPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.convertToAbsolutModelPath)(firstItem.bindingPath);
|
|
315908
316666
|
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
315909
316667
|
const sugarOptional = (_validationInfos$find = validationInfos.find(x => x.sugarOptional != undefined)) === null || _validationInfos$find === void 0 ? void 0 : _validationInfos$find.sugarOptional;
|
|
315910
316668
|
const isOptional = sugarOptional !== null && sugarOptional !== void 0 ? sugarOptional : this.isOptionalFromSchema(bindingPath);
|
|
@@ -315942,7 +316700,7 @@ class ValidationGenerator {
|
|
|
315942
316700
|
|
|
315943
316701
|
|
|
315944
316702
|
processValidations(bindingPath, sugarOptional, sugarNodeType, gId, highOrderDescription, fileLoaderOptions) {
|
|
315945
|
-
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
316703
|
+
const rngSchemaNodeType = this.getRngSchemaTypeInfo((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.convertToAbsolutModelPath)(bindingPath));
|
|
315946
316704
|
|
|
315947
316705
|
if (bindingPath && (sugarNodeType != undefined || rngSchemaNodeType != undefined)) {
|
|
315948
316706
|
var _this$validations$val;
|