@kontur.candy/generator 5.92.0 → 5.93.0-ci-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1220 -1220
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1008,6 +1008,24 @@ module.exports = webpackEmptyContext;
|
|
|
1008
1008
|
|
|
1009
1009
|
/***/ }),
|
|
1010
1010
|
|
|
1011
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes sync recursive .md$":
|
|
1012
|
+
/*!****************************************************************************************************!*\
|
|
1013
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes/ sync .md$ ***!
|
|
1014
|
+
\****************************************************************************************************/
|
|
1015
|
+
/***/ ((module) => {
|
|
1016
|
+
|
|
1017
|
+
function webpackEmptyContext(req) {
|
|
1018
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
1019
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
1020
|
+
throw e;
|
|
1021
|
+
}
|
|
1022
|
+
webpackEmptyContext.keys = () => ([]);
|
|
1023
|
+
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
1024
|
+
webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes sync recursive .md$";
|
|
1025
|
+
module.exports = webpackEmptyContext;
|
|
1026
|
+
|
|
1027
|
+
/***/ }),
|
|
1028
|
+
|
|
1011
1029
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo sync recursive .md$":
|
|
1012
1030
|
/*!**************************************************************************************************!*\
|
|
1013
1031
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/ sync .md$ ***!
|
|
@@ -1040,24 +1058,6 @@ webpackContext.id = "./Generator/src/generators/markupGenerator/ElementProcessor
|
|
|
1040
1058
|
|
|
1041
1059
|
/***/ }),
|
|
1042
1060
|
|
|
1043
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes sync recursive .md$":
|
|
1044
|
-
/*!****************************************************************************************************!*\
|
|
1045
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes/ sync .md$ ***!
|
|
1046
|
-
\****************************************************************************************************/
|
|
1047
|
-
/***/ ((module) => {
|
|
1048
|
-
|
|
1049
|
-
function webpackEmptyContext(req) {
|
|
1050
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
1051
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
1052
|
-
throw e;
|
|
1053
|
-
}
|
|
1054
|
-
webpackEmptyContext.keys = () => ([]);
|
|
1055
|
-
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
1056
|
-
webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes sync recursive .md$";
|
|
1057
|
-
module.exports = webpackEmptyContext;
|
|
1058
|
-
|
|
1059
|
-
/***/ }),
|
|
1060
|
-
|
|
1061
1061
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form sync recursive .md$":
|
|
1062
1062
|
/*!**********************************************************************************************!*\
|
|
1063
1063
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/ sync .md$ ***!
|
|
@@ -61211,7 +61211,7 @@ class DefaultKCLangExpressionVisitor {
|
|
|
61211
61211
|
// this file was prevaled
|
|
61212
61212
|
/* eslint-disable */
|
|
61213
61213
|
// @ts-ignore
|
|
61214
|
-
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})()";
|
|
61214
|
+
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) {\n \treturn items.filter(x => x !== \"\");\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) {\n return {\n \ttype: \"link\",\n text: text,\n src: src,\n }\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) {\n return items.filter(x => x !== \"\");\n },\n peg$c14 = /^[^)]/,\n peg$c15 = peg$classExpectation([\")\"], true, false),\n peg$c16 = function(w) {\n \treturn w.join(\"\").trim()\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() {\n \treturn \"\\n\"\n },\n peg$c22 = /^[^ \\t\\n\\r]/,\n peg$c23 = peg$classExpectation([\" \", \"\\t\", \"\\n\", \"\\r\"], true, false),\n peg$c24 = function(w) {\n \treturn w.join(\"\");\n },\n peg$c25 = function() {\n \treturn \"\";\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})()";
|
|
61215
61215
|
|
|
61216
61216
|
/***/ }),
|
|
61217
61217
|
|
|
@@ -82095,85 +82095,6 @@ let DefaultContentNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
82095
82095
|
|
|
82096
82096
|
/***/ }),
|
|
82097
82097
|
|
|
82098
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoConverter.ts":
|
|
82099
|
-
/*!************************************************************************************************************!*\
|
|
82100
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoConverter.ts ***!
|
|
82101
|
-
\************************************************************************************************************/
|
|
82102
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
82103
|
-
|
|
82104
|
-
"use strict";
|
|
82105
|
-
__webpack_require__.r(__webpack_exports__);
|
|
82106
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
82107
|
-
/* harmony export */ FormInfoConverter: () => (/* binding */ FormInfoConverter)
|
|
82108
|
-
/* harmony export */ });
|
|
82109
|
-
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
82110
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
82111
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
82112
|
-
/* harmony import */ var _FormInfoNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoNode.ts");
|
|
82113
|
-
|
|
82114
|
-
|
|
82115
|
-
|
|
82116
|
-
|
|
82117
|
-
class FormInfoConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
82118
|
-
static getAcceptNodeClass() {
|
|
82119
|
-
return _FormInfoNode__WEBPACK_IMPORTED_MODULE_3__.FormInfoNode;
|
|
82120
|
-
}
|
|
82121
|
-
doBuildDataDeclaration(context) {
|
|
82122
|
-
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
82123
|
-
}
|
|
82124
|
-
buildChildrenDataDeclaration(context) {
|
|
82125
|
-
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
82126
|
-
}
|
|
82127
|
-
*doTraverseChildren() {
|
|
82128
|
-
// no children
|
|
82129
|
-
}
|
|
82130
|
-
doConvert(context) {
|
|
82131
|
-
const node = this.getCurrentNodeAs(_FormInfoNode__WEBPACK_IMPORTED_MODULE_3__.FormInfoNode);
|
|
82132
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("FormInfo");
|
|
82133
|
-
markupBuilder.prop(x => x.name).set(node.name);
|
|
82134
|
-
return markupBuilder.buildConverterResult();
|
|
82135
|
-
}
|
|
82136
|
-
}
|
|
82137
|
-
|
|
82138
|
-
/***/ }),
|
|
82139
|
-
|
|
82140
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoNode.ts":
|
|
82141
|
-
/*!*******************************************************************************************************!*\
|
|
82142
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoNode.ts ***!
|
|
82143
|
-
\*******************************************************************************************************/
|
|
82144
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
82145
|
-
|
|
82146
|
-
"use strict";
|
|
82147
|
-
__webpack_require__.r(__webpack_exports__);
|
|
82148
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
82149
|
-
/* harmony export */ FormInfoNode: () => (/* binding */ FormInfoNode)
|
|
82150
|
-
/* harmony export */ });
|
|
82151
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
82152
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
82153
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
82154
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
82155
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
82156
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
82157
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
82158
|
-
|
|
82159
|
-
|
|
82160
|
-
|
|
82161
|
-
var _dec, _dec2, _class, _class2, _descriptor;
|
|
82162
|
-
|
|
82163
|
-
let FormInfoNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("forminfo", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, `Если у формы нет КНД (например, ФСС), то указывается атрибут \`name\` с названием формы.`), _dec(_class = (_class2 = class FormInfoNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
82164
|
-
constructor(...args) {
|
|
82165
|
-
super(...args);
|
|
82166
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor, this);
|
|
82167
|
-
}
|
|
82168
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "name", [_dec2], {
|
|
82169
|
-
configurable: true,
|
|
82170
|
-
enumerable: true,
|
|
82171
|
-
writable: true,
|
|
82172
|
-
initializer: null
|
|
82173
|
-
}), _class2)) || _class);
|
|
82174
|
-
|
|
82175
|
-
/***/ }),
|
|
82176
|
-
|
|
82177
82098
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormConverter.ts":
|
|
82178
82099
|
/*!****************************************************************************************************!*\
|
|
82179
82100
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormConverter.ts ***!
|
|
@@ -83255,6 +83176,85 @@ let TypeListNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
83255
83176
|
|
|
83256
83177
|
/***/ }),
|
|
83257
83178
|
|
|
83179
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoConverter.ts":
|
|
83180
|
+
/*!************************************************************************************************************!*\
|
|
83181
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoConverter.ts ***!
|
|
83182
|
+
\************************************************************************************************************/
|
|
83183
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
83184
|
+
|
|
83185
|
+
"use strict";
|
|
83186
|
+
__webpack_require__.r(__webpack_exports__);
|
|
83187
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
83188
|
+
/* harmony export */ FormInfoConverter: () => (/* binding */ FormInfoConverter)
|
|
83189
|
+
/* harmony export */ });
|
|
83190
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
83191
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
83192
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
83193
|
+
/* harmony import */ var _FormInfoNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoNode.ts");
|
|
83194
|
+
|
|
83195
|
+
|
|
83196
|
+
|
|
83197
|
+
|
|
83198
|
+
class FormInfoConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
83199
|
+
static getAcceptNodeClass() {
|
|
83200
|
+
return _FormInfoNode__WEBPACK_IMPORTED_MODULE_3__.FormInfoNode;
|
|
83201
|
+
}
|
|
83202
|
+
doBuildDataDeclaration(context) {
|
|
83203
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
83204
|
+
}
|
|
83205
|
+
buildChildrenDataDeclaration(context) {
|
|
83206
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
83207
|
+
}
|
|
83208
|
+
*doTraverseChildren() {
|
|
83209
|
+
// no children
|
|
83210
|
+
}
|
|
83211
|
+
doConvert(context) {
|
|
83212
|
+
const node = this.getCurrentNodeAs(_FormInfoNode__WEBPACK_IMPORTED_MODULE_3__.FormInfoNode);
|
|
83213
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("FormInfo");
|
|
83214
|
+
markupBuilder.prop(x => x.name).set(node.name);
|
|
83215
|
+
return markupBuilder.buildConverterResult();
|
|
83216
|
+
}
|
|
83217
|
+
}
|
|
83218
|
+
|
|
83219
|
+
/***/ }),
|
|
83220
|
+
|
|
83221
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoNode.ts":
|
|
83222
|
+
/*!*******************************************************************************************************!*\
|
|
83223
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/FormInfoNode.ts ***!
|
|
83224
|
+
\*******************************************************************************************************/
|
|
83225
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
83226
|
+
|
|
83227
|
+
"use strict";
|
|
83228
|
+
__webpack_require__.r(__webpack_exports__);
|
|
83229
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
83230
|
+
/* harmony export */ FormInfoNode: () => (/* binding */ FormInfoNode)
|
|
83231
|
+
/* harmony export */ });
|
|
83232
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
83233
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
83234
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
83235
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
83236
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
83237
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
83238
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
83239
|
+
|
|
83240
|
+
|
|
83241
|
+
|
|
83242
|
+
var _dec, _dec2, _class, _class2, _descriptor;
|
|
83243
|
+
|
|
83244
|
+
let FormInfoNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("forminfo", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, `Если у формы нет КНД (например, ФСС), то указывается атрибут \`name\` с названием формы.`), _dec(_class = (_class2 = class FormInfoNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
83245
|
+
constructor(...args) {
|
|
83246
|
+
super(...args);
|
|
83247
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor, this);
|
|
83248
|
+
}
|
|
83249
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "name", [_dec2], {
|
|
83250
|
+
configurable: true,
|
|
83251
|
+
enumerable: true,
|
|
83252
|
+
writable: true,
|
|
83253
|
+
initializer: null
|
|
83254
|
+
}), _class2)) || _class);
|
|
83255
|
+
|
|
83256
|
+
/***/ }),
|
|
83257
|
+
|
|
83258
83258
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/GlobalModal/GlobalModalsConverter.ts":
|
|
83259
83259
|
/*!*******************************************************************************************************************!*\
|
|
83260
83260
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/GlobalModal/GlobalModalsConverter.ts ***!
|
|
@@ -85901,6 +85901,165 @@ let FlexboxNode = (_dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
85901
85901
|
|
|
85902
85902
|
/***/ }),
|
|
85903
85903
|
|
|
85904
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridConverter.ts":
|
|
85905
|
+
/*!*************************************************************************************************!*\
|
|
85906
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridConverter.ts ***!
|
|
85907
|
+
\*************************************************************************************************/
|
|
85908
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
85909
|
+
|
|
85910
|
+
"use strict";
|
|
85911
|
+
__webpack_require__.r(__webpack_exports__);
|
|
85912
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
85913
|
+
/* harmony export */ GridConverter: () => (/* binding */ GridConverter)
|
|
85914
|
+
/* harmony export */ });
|
|
85915
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
85916
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
85917
|
+
/* harmony import */ var _GridNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GridNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridNode.ts");
|
|
85918
|
+
|
|
85919
|
+
|
|
85920
|
+
|
|
85921
|
+
class GridConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
85922
|
+
static getAcceptNodeClass() {
|
|
85923
|
+
return _GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode;
|
|
85924
|
+
}
|
|
85925
|
+
doBuildDataDeclaration(context) {
|
|
85926
|
+
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
85927
|
+
return context.mergeDataDeclaration(node.dataScope.path && context.addPathSectionDeclarationEntry(node));
|
|
85928
|
+
}
|
|
85929
|
+
buildChildrenDataDeclaration(context) {
|
|
85930
|
+
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
85931
|
+
return context.processChildrenDataDeclaration(Iterator.from(node.columns).map(x => x.children).flatMap(x => x));
|
|
85932
|
+
}
|
|
85933
|
+
*doTraverseChildren() {
|
|
85934
|
+
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
85935
|
+
yield* Iterator.from(node.columns).map(x => x.children).flatMap(x => x);
|
|
85936
|
+
}
|
|
85937
|
+
doConvert(context) {
|
|
85938
|
+
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
85939
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("Grid");
|
|
85940
|
+
markupBuilder.prop(x => x.gap).set(node.gap);
|
|
85941
|
+
markupBuilder.prop(x => x.baseline).set(node.baseline);
|
|
85942
|
+
markupBuilder.prop(x => x.top).set(node.top);
|
|
85943
|
+
for (const column of node.columns) {
|
|
85944
|
+
const columnBuilder = markupBuilder.createChild("GridColumn");
|
|
85945
|
+
columnBuilder.prop(x => x.size).set(column.size);
|
|
85946
|
+
columnBuilder.prop(x => x.horizontalAlign).set(column.horizontalAlign);
|
|
85947
|
+
columnBuilder.prop(x => x.textTopPadding).set(column.textTopPadding);
|
|
85948
|
+
columnBuilder.appendChild(context.convertChildNodes(column.children));
|
|
85949
|
+
}
|
|
85950
|
+
return markupBuilder.buildConverterResult();
|
|
85951
|
+
}
|
|
85952
|
+
}
|
|
85953
|
+
|
|
85954
|
+
/***/ }),
|
|
85955
|
+
|
|
85956
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridNode.ts":
|
|
85957
|
+
/*!********************************************************************************************!*\
|
|
85958
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridNode.ts ***!
|
|
85959
|
+
\********************************************************************************************/
|
|
85960
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
85961
|
+
|
|
85962
|
+
"use strict";
|
|
85963
|
+
__webpack_require__.r(__webpack_exports__);
|
|
85964
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
85965
|
+
/* harmony export */ GridColumnNode: () => (/* binding */ GridColumnNode),
|
|
85966
|
+
/* harmony export */ GridNode: () => (/* binding */ GridNode)
|
|
85967
|
+
/* harmony export */ });
|
|
85968
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
85969
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
85970
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
85971
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
85972
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
85973
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
85974
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
85975
|
+
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
85976
|
+
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
85977
|
+
|
|
85978
|
+
|
|
85979
|
+
|
|
85980
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class3, _class4, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
85981
|
+
|
|
85982
|
+
|
|
85983
|
+
|
|
85984
|
+
let GridColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("left", "right", "center"), ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textTopPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class GridColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
85985
|
+
constructor(...args) {
|
|
85986
|
+
super(...args);
|
|
85987
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
|
|
85988
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "size", _descriptor2, this);
|
|
85989
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "horizontalAlign", _descriptor3, this);
|
|
85990
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "textTopPadding", _descriptor4, this);
|
|
85991
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor5, this);
|
|
85992
|
+
}
|
|
85993
|
+
getOwnPath() {
|
|
85994
|
+
return this.dataScope.getOwnPath();
|
|
85995
|
+
}
|
|
85996
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
|
|
85997
|
+
configurable: true,
|
|
85998
|
+
enumerable: true,
|
|
85999
|
+
writable: true,
|
|
86000
|
+
initializer: null
|
|
86001
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "size", [_dec3], {
|
|
86002
|
+
configurable: true,
|
|
86003
|
+
enumerable: true,
|
|
86004
|
+
writable: true,
|
|
86005
|
+
initializer: null
|
|
86006
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "horizontalAlign", [_dec4], {
|
|
86007
|
+
configurable: true,
|
|
86008
|
+
enumerable: true,
|
|
86009
|
+
writable: true,
|
|
86010
|
+
initializer: null
|
|
86011
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "textTopPadding", [_dec5], {
|
|
86012
|
+
configurable: true,
|
|
86013
|
+
enumerable: true,
|
|
86014
|
+
writable: true,
|
|
86015
|
+
initializer: null
|
|
86016
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec6], {
|
|
86017
|
+
configurable: true,
|
|
86018
|
+
enumerable: true,
|
|
86019
|
+
writable: true,
|
|
86020
|
+
initializer: null
|
|
86021
|
+
}), _class2)) || _class);
|
|
86022
|
+
let GridNode = (_dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("grid", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid sync recursive .md$")), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("gap", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Разрыв между элементами`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("baseline", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Включает выравнивание по вертикали по базовой линии. Если не указан, то выравнивание происходит по верхней границе`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("top", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Включает выравнивание по вертикали по верху.`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("column", [GridColumnNode]), _dec7(_class3 = (_class4 = class GridNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__.SugarNodeWithLegacyVisibility {
|
|
86023
|
+
constructor(...args) {
|
|
86024
|
+
super(...args);
|
|
86025
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor6, this);
|
|
86026
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gap", _descriptor7, this);
|
|
86027
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "baseline", _descriptor8, this);
|
|
86028
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "top", _descriptor9, this);
|
|
86029
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "columns", _descriptor10, this);
|
|
86030
|
+
}
|
|
86031
|
+
getOwnPath() {
|
|
86032
|
+
return this.dataScope.getOwnPath();
|
|
86033
|
+
}
|
|
86034
|
+
}, _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "dataScope", [_dec8], {
|
|
86035
|
+
configurable: true,
|
|
86036
|
+
enumerable: true,
|
|
86037
|
+
writable: true,
|
|
86038
|
+
initializer: null
|
|
86039
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "gap", [_dec9], {
|
|
86040
|
+
configurable: true,
|
|
86041
|
+
enumerable: true,
|
|
86042
|
+
writable: true,
|
|
86043
|
+
initializer: null
|
|
86044
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "baseline", [_dec10], {
|
|
86045
|
+
configurable: true,
|
|
86046
|
+
enumerable: true,
|
|
86047
|
+
writable: true,
|
|
86048
|
+
initializer: null
|
|
86049
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "top", [_dec11], {
|
|
86050
|
+
configurable: true,
|
|
86051
|
+
enumerable: true,
|
|
86052
|
+
writable: true,
|
|
86053
|
+
initializer: null
|
|
86054
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "columns", [_dec12], {
|
|
86055
|
+
configurable: true,
|
|
86056
|
+
enumerable: true,
|
|
86057
|
+
writable: true,
|
|
86058
|
+
initializer: null
|
|
86059
|
+
}), _class4)) || _class3);
|
|
86060
|
+
|
|
86061
|
+
/***/ }),
|
|
86062
|
+
|
|
85904
86063
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/GridCol/GridColConverter.ts":
|
|
85905
86064
|
/*!*******************************************************************************************************!*\
|
|
85906
86065
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/GridCol/GridColConverter.ts ***!
|
|
@@ -86288,165 +86447,6 @@ let GridRowNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODUL
|
|
|
86288
86447
|
|
|
86289
86448
|
/***/ }),
|
|
86290
86449
|
|
|
86291
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridConverter.ts":
|
|
86292
|
-
/*!*************************************************************************************************!*\
|
|
86293
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridConverter.ts ***!
|
|
86294
|
-
\*************************************************************************************************/
|
|
86295
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
86296
|
-
|
|
86297
|
-
"use strict";
|
|
86298
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86299
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86300
|
-
/* harmony export */ GridConverter: () => (/* binding */ GridConverter)
|
|
86301
|
-
/* harmony export */ });
|
|
86302
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
86303
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
86304
|
-
/* harmony import */ var _GridNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GridNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridNode.ts");
|
|
86305
|
-
|
|
86306
|
-
|
|
86307
|
-
|
|
86308
|
-
class GridConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
86309
|
-
static getAcceptNodeClass() {
|
|
86310
|
-
return _GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode;
|
|
86311
|
-
}
|
|
86312
|
-
doBuildDataDeclaration(context) {
|
|
86313
|
-
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
86314
|
-
return context.mergeDataDeclaration(node.dataScope.path && context.addPathSectionDeclarationEntry(node));
|
|
86315
|
-
}
|
|
86316
|
-
buildChildrenDataDeclaration(context) {
|
|
86317
|
-
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
86318
|
-
return context.processChildrenDataDeclaration(Iterator.from(node.columns).map(x => x.children).flatMap(x => x));
|
|
86319
|
-
}
|
|
86320
|
-
*doTraverseChildren() {
|
|
86321
|
-
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
86322
|
-
yield* Iterator.from(node.columns).map(x => x.children).flatMap(x => x);
|
|
86323
|
-
}
|
|
86324
|
-
doConvert(context) {
|
|
86325
|
-
const node = this.getCurrentNodeAs(_GridNode__WEBPACK_IMPORTED_MODULE_2__.GridNode);
|
|
86326
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("Grid");
|
|
86327
|
-
markupBuilder.prop(x => x.gap).set(node.gap);
|
|
86328
|
-
markupBuilder.prop(x => x.baseline).set(node.baseline);
|
|
86329
|
-
markupBuilder.prop(x => x.top).set(node.top);
|
|
86330
|
-
for (const column of node.columns) {
|
|
86331
|
-
const columnBuilder = markupBuilder.createChild("GridColumn");
|
|
86332
|
-
columnBuilder.prop(x => x.size).set(column.size);
|
|
86333
|
-
columnBuilder.prop(x => x.horizontalAlign).set(column.horizontalAlign);
|
|
86334
|
-
columnBuilder.prop(x => x.textTopPadding).set(column.textTopPadding);
|
|
86335
|
-
columnBuilder.appendChild(context.convertChildNodes(column.children));
|
|
86336
|
-
}
|
|
86337
|
-
return markupBuilder.buildConverterResult();
|
|
86338
|
-
}
|
|
86339
|
-
}
|
|
86340
|
-
|
|
86341
|
-
/***/ }),
|
|
86342
|
-
|
|
86343
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridNode.ts":
|
|
86344
|
-
/*!********************************************************************************************!*\
|
|
86345
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid/GridNode.ts ***!
|
|
86346
|
-
\********************************************************************************************/
|
|
86347
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
86348
|
-
|
|
86349
|
-
"use strict";
|
|
86350
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86351
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86352
|
-
/* harmony export */ GridColumnNode: () => (/* binding */ GridColumnNode),
|
|
86353
|
-
/* harmony export */ GridNode: () => (/* binding */ GridNode)
|
|
86354
|
-
/* harmony export */ });
|
|
86355
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
86356
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
86357
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
86358
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
86359
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
86360
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
86361
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
86362
|
-
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
86363
|
-
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
86364
|
-
|
|
86365
|
-
|
|
86366
|
-
|
|
86367
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class3, _class4, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
86368
|
-
|
|
86369
|
-
|
|
86370
|
-
|
|
86371
|
-
let GridColumnNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("column", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("horizontalAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("left", "right", "center"), ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textTopPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class GridColumnNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
86372
|
-
constructor(...args) {
|
|
86373
|
-
super(...args);
|
|
86374
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
|
|
86375
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "size", _descriptor2, this);
|
|
86376
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "horizontalAlign", _descriptor3, this);
|
|
86377
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "textTopPadding", _descriptor4, this);
|
|
86378
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor5, this);
|
|
86379
|
-
}
|
|
86380
|
-
getOwnPath() {
|
|
86381
|
-
return this.dataScope.getOwnPath();
|
|
86382
|
-
}
|
|
86383
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
|
|
86384
|
-
configurable: true,
|
|
86385
|
-
enumerable: true,
|
|
86386
|
-
writable: true,
|
|
86387
|
-
initializer: null
|
|
86388
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "size", [_dec3], {
|
|
86389
|
-
configurable: true,
|
|
86390
|
-
enumerable: true,
|
|
86391
|
-
writable: true,
|
|
86392
|
-
initializer: null
|
|
86393
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "horizontalAlign", [_dec4], {
|
|
86394
|
-
configurable: true,
|
|
86395
|
-
enumerable: true,
|
|
86396
|
-
writable: true,
|
|
86397
|
-
initializer: null
|
|
86398
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "textTopPadding", [_dec5], {
|
|
86399
|
-
configurable: true,
|
|
86400
|
-
enumerable: true,
|
|
86401
|
-
writable: true,
|
|
86402
|
-
initializer: null
|
|
86403
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec6], {
|
|
86404
|
-
configurable: true,
|
|
86405
|
-
enumerable: true,
|
|
86406
|
-
writable: true,
|
|
86407
|
-
initializer: null
|
|
86408
|
-
}), _class2)) || _class);
|
|
86409
|
-
let GridNode = (_dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("grid", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Grid sync recursive .md$")), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("gap", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Разрыв между элементами`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("baseline", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Включает выравнивание по вертикали по базовой линии. Если не указан, то выравнивание происходит по верхней границе`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("top", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Включает выравнивание по вертикали по верху.`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("column", [GridColumnNode]), _dec7(_class3 = (_class4 = class GridNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__.SugarNodeWithLegacyVisibility {
|
|
86410
|
-
constructor(...args) {
|
|
86411
|
-
super(...args);
|
|
86412
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor6, this);
|
|
86413
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gap", _descriptor7, this);
|
|
86414
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "baseline", _descriptor8, this);
|
|
86415
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "top", _descriptor9, this);
|
|
86416
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "columns", _descriptor10, this);
|
|
86417
|
-
}
|
|
86418
|
-
getOwnPath() {
|
|
86419
|
-
return this.dataScope.getOwnPath();
|
|
86420
|
-
}
|
|
86421
|
-
}, _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "dataScope", [_dec8], {
|
|
86422
|
-
configurable: true,
|
|
86423
|
-
enumerable: true,
|
|
86424
|
-
writable: true,
|
|
86425
|
-
initializer: null
|
|
86426
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "gap", [_dec9], {
|
|
86427
|
-
configurable: true,
|
|
86428
|
-
enumerable: true,
|
|
86429
|
-
writable: true,
|
|
86430
|
-
initializer: null
|
|
86431
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "baseline", [_dec10], {
|
|
86432
|
-
configurable: true,
|
|
86433
|
-
enumerable: true,
|
|
86434
|
-
writable: true,
|
|
86435
|
-
initializer: null
|
|
86436
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "top", [_dec11], {
|
|
86437
|
-
configurable: true,
|
|
86438
|
-
enumerable: true,
|
|
86439
|
-
writable: true,
|
|
86440
|
-
initializer: null
|
|
86441
|
-
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "columns", [_dec12], {
|
|
86442
|
-
configurable: true,
|
|
86443
|
-
enumerable: true,
|
|
86444
|
-
writable: true,
|
|
86445
|
-
initializer: null
|
|
86446
|
-
}), _class4)) || _class3);
|
|
86447
|
-
|
|
86448
|
-
/***/ }),
|
|
86449
|
-
|
|
86450
86450
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Hr/HrConverter.ts":
|
|
86451
86451
|
/*!*********************************************************************************************!*\
|
|
86452
86452
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Hr/HrConverter.ts ***!
|
|
@@ -86755,6 +86755,140 @@ let InnertextNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
86755
86755
|
|
|
86756
86756
|
/***/ }),
|
|
86757
86757
|
|
|
86758
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListConverter.ts":
|
|
86759
|
+
/*!*************************************************************************************************!*\
|
|
86760
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListConverter.ts ***!
|
|
86761
|
+
\*************************************************************************************************/
|
|
86762
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
86763
|
+
|
|
86764
|
+
"use strict";
|
|
86765
|
+
__webpack_require__.r(__webpack_exports__);
|
|
86766
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86767
|
+
/* harmony export */ ListConverter: () => (/* binding */ ListConverter)
|
|
86768
|
+
/* harmony export */ });
|
|
86769
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
86770
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
86771
|
+
/* harmony import */ var _ListNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListNode.ts");
|
|
86772
|
+
|
|
86773
|
+
|
|
86774
|
+
|
|
86775
|
+
class ListConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
86776
|
+
static getAcceptNodeClass() {
|
|
86777
|
+
return _ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode;
|
|
86778
|
+
}
|
|
86779
|
+
doBuildDataDeclaration(context) {
|
|
86780
|
+
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86781
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
86782
|
+
}
|
|
86783
|
+
buildChildrenDataDeclaration(context) {
|
|
86784
|
+
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86785
|
+
return context.processChildrenDataDeclaration(node.items);
|
|
86786
|
+
}
|
|
86787
|
+
*doTraverseChildren() {
|
|
86788
|
+
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86789
|
+
yield* node.items;
|
|
86790
|
+
}
|
|
86791
|
+
doConvert(context) {
|
|
86792
|
+
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86793
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("List");
|
|
86794
|
+
markupBuilder.prop(x => x.bullet).set(node.bullet);
|
|
86795
|
+
markupBuilder.prop(x => x.dash).set(node.dash);
|
|
86796
|
+
markupBuilder.prop(x => x.inline).set(node.inline);
|
|
86797
|
+
markupBuilder.appendChild(context.convertChildNodes(node.items));
|
|
86798
|
+
return markupBuilder.buildConverterResult();
|
|
86799
|
+
}
|
|
86800
|
+
}
|
|
86801
|
+
|
|
86802
|
+
/***/ }),
|
|
86803
|
+
|
|
86804
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListNode.ts":
|
|
86805
|
+
/*!********************************************************************************************!*\
|
|
86806
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListNode.ts ***!
|
|
86807
|
+
\********************************************************************************************/
|
|
86808
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
86809
|
+
|
|
86810
|
+
"use strict";
|
|
86811
|
+
__webpack_require__.r(__webpack_exports__);
|
|
86812
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86813
|
+
/* harmony export */ ListNode: () => (/* binding */ ListNode)
|
|
86814
|
+
/* harmony export */ });
|
|
86815
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
86816
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
86817
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
86818
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
86819
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
86820
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
86821
|
+
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
86822
|
+
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
86823
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
86824
|
+
/* harmony import */ var _ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ListItem/ListItemNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/ListItem/ListItemNode.ts");
|
|
86825
|
+
|
|
86826
|
+
|
|
86827
|
+
|
|
86828
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
86829
|
+
|
|
86830
|
+
|
|
86831
|
+
|
|
86832
|
+
|
|
86833
|
+
let ListNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("list", `Список`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("item", [_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_6__.ListItemNode]), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("inline", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("bullet", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dash", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("itemPaddingTop", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.lengthUnit, `Отступ сверху для каждого элемента списка`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("itemPaddingBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.lengthUnit, `Отступ снизу для каждого элемента списка`), _dec(_class = (_class2 = class ListNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
|
|
86834
|
+
constructor(...args) {
|
|
86835
|
+
super(...args);
|
|
86836
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
|
|
86837
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor2, this);
|
|
86838
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "inline", _descriptor3, this);
|
|
86839
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bullet", _descriptor4, this);
|
|
86840
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dash", _descriptor5, this);
|
|
86841
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor6, this);
|
|
86842
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "itemPaddingTop", _descriptor7, this);
|
|
86843
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "itemPaddingBottom", _descriptor8, this);
|
|
86844
|
+
}
|
|
86845
|
+
getOwnPath() {
|
|
86846
|
+
return this.dataScope.getOwnPath();
|
|
86847
|
+
}
|
|
86848
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
|
|
86849
|
+
configurable: true,
|
|
86850
|
+
enumerable: true,
|
|
86851
|
+
writable: true,
|
|
86852
|
+
initializer: null
|
|
86853
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "items", [_dec3], {
|
|
86854
|
+
configurable: true,
|
|
86855
|
+
enumerable: true,
|
|
86856
|
+
writable: true,
|
|
86857
|
+
initializer: null
|
|
86858
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "inline", [_dec4], {
|
|
86859
|
+
configurable: true,
|
|
86860
|
+
enumerable: true,
|
|
86861
|
+
writable: true,
|
|
86862
|
+
initializer: null
|
|
86863
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "bullet", [_dec5], {
|
|
86864
|
+
configurable: true,
|
|
86865
|
+
enumerable: true,
|
|
86866
|
+
writable: true,
|
|
86867
|
+
initializer: null
|
|
86868
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dash", [_dec6], {
|
|
86869
|
+
configurable: true,
|
|
86870
|
+
enumerable: true,
|
|
86871
|
+
writable: true,
|
|
86872
|
+
initializer: null
|
|
86873
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec7], {
|
|
86874
|
+
configurable: true,
|
|
86875
|
+
enumerable: true,
|
|
86876
|
+
writable: true,
|
|
86877
|
+
initializer: null
|
|
86878
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "itemPaddingTop", [_dec8], {
|
|
86879
|
+
configurable: true,
|
|
86880
|
+
enumerable: true,
|
|
86881
|
+
writable: true,
|
|
86882
|
+
initializer: null
|
|
86883
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "itemPaddingBottom", [_dec9], {
|
|
86884
|
+
configurable: true,
|
|
86885
|
+
enumerable: true,
|
|
86886
|
+
writable: true,
|
|
86887
|
+
initializer: null
|
|
86888
|
+
}), _class2)) || _class);
|
|
86889
|
+
|
|
86890
|
+
/***/ }),
|
|
86891
|
+
|
|
86758
86892
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/ListItem/ListItemConverter.ts":
|
|
86759
86893
|
/*!*********************************************************************************************************!*\
|
|
86760
86894
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/ListItem/ListItemConverter.ts ***!
|
|
@@ -86902,140 +87036,6 @@ let ListItemNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
86902
87036
|
|
|
86903
87037
|
/***/ }),
|
|
86904
87038
|
|
|
86905
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListConverter.ts":
|
|
86906
|
-
/*!*************************************************************************************************!*\
|
|
86907
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListConverter.ts ***!
|
|
86908
|
-
\*************************************************************************************************/
|
|
86909
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
86910
|
-
|
|
86911
|
-
"use strict";
|
|
86912
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86913
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86914
|
-
/* harmony export */ ListConverter: () => (/* binding */ ListConverter)
|
|
86915
|
-
/* harmony export */ });
|
|
86916
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
86917
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
86918
|
-
/* harmony import */ var _ListNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListNode.ts");
|
|
86919
|
-
|
|
86920
|
-
|
|
86921
|
-
|
|
86922
|
-
class ListConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
86923
|
-
static getAcceptNodeClass() {
|
|
86924
|
-
return _ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode;
|
|
86925
|
-
}
|
|
86926
|
-
doBuildDataDeclaration(context) {
|
|
86927
|
-
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86928
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
86929
|
-
}
|
|
86930
|
-
buildChildrenDataDeclaration(context) {
|
|
86931
|
-
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86932
|
-
return context.processChildrenDataDeclaration(node.items);
|
|
86933
|
-
}
|
|
86934
|
-
*doTraverseChildren() {
|
|
86935
|
-
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86936
|
-
yield* node.items;
|
|
86937
|
-
}
|
|
86938
|
-
doConvert(context) {
|
|
86939
|
-
const node = this.getCurrentNodeAs(_ListNode__WEBPACK_IMPORTED_MODULE_2__.ListNode);
|
|
86940
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("List");
|
|
86941
|
-
markupBuilder.prop(x => x.bullet).set(node.bullet);
|
|
86942
|
-
markupBuilder.prop(x => x.dash).set(node.dash);
|
|
86943
|
-
markupBuilder.prop(x => x.inline).set(node.inline);
|
|
86944
|
-
markupBuilder.appendChild(context.convertChildNodes(node.items));
|
|
86945
|
-
return markupBuilder.buildConverterResult();
|
|
86946
|
-
}
|
|
86947
|
-
}
|
|
86948
|
-
|
|
86949
|
-
/***/ }),
|
|
86950
|
-
|
|
86951
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListNode.ts":
|
|
86952
|
-
/*!********************************************************************************************!*\
|
|
86953
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List/ListNode.ts ***!
|
|
86954
|
-
\********************************************************************************************/
|
|
86955
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
86956
|
-
|
|
86957
|
-
"use strict";
|
|
86958
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86959
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86960
|
-
/* harmony export */ ListNode: () => (/* binding */ ListNode)
|
|
86961
|
-
/* harmony export */ });
|
|
86962
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
86963
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
86964
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
86965
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
86966
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
86967
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
86968
|
-
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
86969
|
-
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
86970
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
86971
|
-
/* harmony import */ var _ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ListItem/ListItemNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/ListItem/ListItemNode.ts");
|
|
86972
|
-
|
|
86973
|
-
|
|
86974
|
-
|
|
86975
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
86976
|
-
|
|
86977
|
-
|
|
86978
|
-
|
|
86979
|
-
|
|
86980
|
-
let ListNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("list", `Список`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/List sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("item", [_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_6__.ListItemNode]), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("inline", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("bullet", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dash", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("itemPaddingTop", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.lengthUnit, `Отступ сверху для каждого элемента списка`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("itemPaddingBottom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.lengthUnit, `Отступ снизу для каждого элемента списка`), _dec(_class = (_class2 = class ListNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
|
|
86981
|
-
constructor(...args) {
|
|
86982
|
-
super(...args);
|
|
86983
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
|
|
86984
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor2, this);
|
|
86985
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "inline", _descriptor3, this);
|
|
86986
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bullet", _descriptor4, this);
|
|
86987
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dash", _descriptor5, this);
|
|
86988
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor6, this);
|
|
86989
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "itemPaddingTop", _descriptor7, this);
|
|
86990
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "itemPaddingBottom", _descriptor8, this);
|
|
86991
|
-
}
|
|
86992
|
-
getOwnPath() {
|
|
86993
|
-
return this.dataScope.getOwnPath();
|
|
86994
|
-
}
|
|
86995
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
|
|
86996
|
-
configurable: true,
|
|
86997
|
-
enumerable: true,
|
|
86998
|
-
writable: true,
|
|
86999
|
-
initializer: null
|
|
87000
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "items", [_dec3], {
|
|
87001
|
-
configurable: true,
|
|
87002
|
-
enumerable: true,
|
|
87003
|
-
writable: true,
|
|
87004
|
-
initializer: null
|
|
87005
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "inline", [_dec4], {
|
|
87006
|
-
configurable: true,
|
|
87007
|
-
enumerable: true,
|
|
87008
|
-
writable: true,
|
|
87009
|
-
initializer: null
|
|
87010
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "bullet", [_dec5], {
|
|
87011
|
-
configurable: true,
|
|
87012
|
-
enumerable: true,
|
|
87013
|
-
writable: true,
|
|
87014
|
-
initializer: null
|
|
87015
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dash", [_dec6], {
|
|
87016
|
-
configurable: true,
|
|
87017
|
-
enumerable: true,
|
|
87018
|
-
writable: true,
|
|
87019
|
-
initializer: null
|
|
87020
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec7], {
|
|
87021
|
-
configurable: true,
|
|
87022
|
-
enumerable: true,
|
|
87023
|
-
writable: true,
|
|
87024
|
-
initializer: null
|
|
87025
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "itemPaddingTop", [_dec8], {
|
|
87026
|
-
configurable: true,
|
|
87027
|
-
enumerable: true,
|
|
87028
|
-
writable: true,
|
|
87029
|
-
initializer: null
|
|
87030
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "itemPaddingBottom", [_dec9], {
|
|
87031
|
-
configurable: true,
|
|
87032
|
-
enumerable: true,
|
|
87033
|
-
writable: true,
|
|
87034
|
-
initializer: null
|
|
87035
|
-
}), _class2)) || _class);
|
|
87036
|
-
|
|
87037
|
-
/***/ }),
|
|
87038
|
-
|
|
87039
87039
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Minitour/MinitourConverter.ts":
|
|
87040
87040
|
/*!*********************************************************************************************************!*\
|
|
87041
87041
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Minitour/MinitourConverter.ts ***!
|
|
@@ -88540,6 +88540,160 @@ let FooterNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE
|
|
|
88540
88540
|
|
|
88541
88541
|
/***/ }),
|
|
88542
88542
|
|
|
88543
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormConverter.ts":
|
|
88544
|
+
/*!**********************************************************************************************************!*\
|
|
88545
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormConverter.ts ***!
|
|
88546
|
+
\**********************************************************************************************************/
|
|
88547
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88548
|
+
|
|
88549
|
+
"use strict";
|
|
88550
|
+
__webpack_require__.r(__webpack_exports__);
|
|
88551
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88552
|
+
/* harmony export */ ModalFormConverter: () => (/* binding */ ModalFormConverter)
|
|
88553
|
+
/* harmony export */ });
|
|
88554
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
88555
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
88556
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
88557
|
+
/* harmony import */ var _ModalFormNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ModalFormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormNode.ts");
|
|
88558
|
+
|
|
88559
|
+
|
|
88560
|
+
|
|
88561
|
+
|
|
88562
|
+
class ModalFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
88563
|
+
static getAcceptNodeClass() {
|
|
88564
|
+
return _ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode;
|
|
88565
|
+
}
|
|
88566
|
+
applyVisibilityPathProcessing() {
|
|
88567
|
+
return false;
|
|
88568
|
+
}
|
|
88569
|
+
doBuildDataDeclaration(context) {
|
|
88570
|
+
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88571
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node));
|
|
88572
|
+
}
|
|
88573
|
+
buildChildrenDataDeclaration(context) {
|
|
88574
|
+
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88575
|
+
return context.processChildrenDataDeclaration(node.children);
|
|
88576
|
+
}
|
|
88577
|
+
*doTraverseChildren() {
|
|
88578
|
+
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88579
|
+
yield* node.children;
|
|
88580
|
+
}
|
|
88581
|
+
doConvert(context) {
|
|
88582
|
+
var _verifiablePaths;
|
|
88583
|
+
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88584
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("ModalForm");
|
|
88585
|
+
markupBuilder.prop(x => x.width).set(node.width);
|
|
88586
|
+
markupBuilder.prop(x => x.header).set(node.header);
|
|
88587
|
+
markupBuilder.prop(x => x.footerPanel).set(node.footerPanel);
|
|
88588
|
+
markupBuilder.prop(x => x.enabledBackgroundClick).set(node.enabledBackgroundClick);
|
|
88589
|
+
markupBuilder.prop(x => x.doNotValidateFormOnStart).set(node.doNotValidateFormOnStart);
|
|
88590
|
+
markupBuilder.prop(x => x.onAfterOpen).set(context.generateHelperFunctionExpression(node, "onAfterOpen", node.onAfterOpen));
|
|
88591
|
+
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
88592
|
+
context.pushPathsContext();
|
|
88593
|
+
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
88594
|
+
const pathsContext = context.popPathsContext();
|
|
88595
|
+
let verifiablePaths = pathsContext === null || pathsContext === void 0 ? void 0 : pathsContext.paths;
|
|
88596
|
+
if (verifiablePaths && node.excludedVerifiablePath) {
|
|
88597
|
+
const excludedVerifiablePath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node, node.excludedVerifiablePath);
|
|
88598
|
+
verifiablePaths = verifiablePaths.filter(path => !path.isIncludes(excludedVerifiablePath));
|
|
88599
|
+
}
|
|
88600
|
+
markupBuilder.prop(x => x.verifiablePaths).set((_verifiablePaths = verifiablePaths) !== null && _verifiablePaths !== void 0 ? _verifiablePaths : []);
|
|
88601
|
+
return markupBuilder.buildConverterResult();
|
|
88602
|
+
}
|
|
88603
|
+
}
|
|
88604
|
+
|
|
88605
|
+
/***/ }),
|
|
88606
|
+
|
|
88607
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormNode.ts":
|
|
88608
|
+
/*!*****************************************************************************************************!*\
|
|
88609
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormNode.ts ***!
|
|
88610
|
+
\*****************************************************************************************************/
|
|
88611
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88612
|
+
|
|
88613
|
+
"use strict";
|
|
88614
|
+
__webpack_require__.r(__webpack_exports__);
|
|
88615
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88616
|
+
/* harmony export */ ModalFormNode: () => (/* binding */ ModalFormNode)
|
|
88617
|
+
/* harmony export */ });
|
|
88618
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
88619
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
88620
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
88621
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
88622
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
88623
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
88624
|
+
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
88625
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
88626
|
+
|
|
88627
|
+
|
|
88628
|
+
|
|
88629
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
88630
|
+
|
|
88631
|
+
|
|
88632
|
+
let ModalFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("modalform", `Модальное окно со значениями из модели`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("header", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Заголовок`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("enabledBackgroundClick", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Закрывать окно при клике на фон.`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("doNotValidateFormOnStart", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Отменяет показ валидаций при откртии модального окна`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("footerPanel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Задает серый footer`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина модального окна`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("onAfterOpen", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется после открытия модалки"), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("excludedVerifiablePath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Путь, который нужно исключить из валидаций`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class ModalFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
88633
|
+
constructor(...args) {
|
|
88634
|
+
super(...args);
|
|
88635
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
|
|
88636
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "header", _descriptor2, this);
|
|
88637
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "enabledBackgroundClick", _descriptor3, this);
|
|
88638
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "doNotValidateFormOnStart", _descriptor4, this);
|
|
88639
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "footerPanel", _descriptor5, this);
|
|
88640
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor6, this);
|
|
88641
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onAfterOpen", _descriptor7, this);
|
|
88642
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "excludedVerifiablePath", _descriptor8, this);
|
|
88643
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor9, this);
|
|
88644
|
+
}
|
|
88645
|
+
getOwnPath() {
|
|
88646
|
+
return this.dataScope.getOwnPath();
|
|
88647
|
+
}
|
|
88648
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
|
|
88649
|
+
configurable: true,
|
|
88650
|
+
enumerable: true,
|
|
88651
|
+
writable: true,
|
|
88652
|
+
initializer: null
|
|
88653
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "header", [_dec3], {
|
|
88654
|
+
configurable: true,
|
|
88655
|
+
enumerable: true,
|
|
88656
|
+
writable: true,
|
|
88657
|
+
initializer: null
|
|
88658
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "enabledBackgroundClick", [_dec4], {
|
|
88659
|
+
configurable: true,
|
|
88660
|
+
enumerable: true,
|
|
88661
|
+
writable: true,
|
|
88662
|
+
initializer: null
|
|
88663
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "doNotValidateFormOnStart", [_dec5], {
|
|
88664
|
+
configurable: true,
|
|
88665
|
+
enumerable: true,
|
|
88666
|
+
writable: true,
|
|
88667
|
+
initializer: null
|
|
88668
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "footerPanel", [_dec6], {
|
|
88669
|
+
configurable: true,
|
|
88670
|
+
enumerable: true,
|
|
88671
|
+
writable: true,
|
|
88672
|
+
initializer: null
|
|
88673
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec7], {
|
|
88674
|
+
configurable: true,
|
|
88675
|
+
enumerable: true,
|
|
88676
|
+
writable: true,
|
|
88677
|
+
initializer: null
|
|
88678
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onAfterOpen", [_dec8], {
|
|
88679
|
+
configurable: true,
|
|
88680
|
+
enumerable: true,
|
|
88681
|
+
writable: true,
|
|
88682
|
+
initializer: null
|
|
88683
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "excludedVerifiablePath", [_dec9], {
|
|
88684
|
+
configurable: true,
|
|
88685
|
+
enumerable: true,
|
|
88686
|
+
writable: true,
|
|
88687
|
+
initializer: null
|
|
88688
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec10], {
|
|
88689
|
+
configurable: true,
|
|
88690
|
+
enumerable: true,
|
|
88691
|
+
writable: true,
|
|
88692
|
+
initializer: null
|
|
88693
|
+
}), _class2)) || _class);
|
|
88694
|
+
|
|
88695
|
+
/***/ }),
|
|
88696
|
+
|
|
88543
88697
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalFormCancel/ModalFormCancelConverter.ts":
|
|
88544
88698
|
/*!**********************************************************************************************************************!*\
|
|
88545
88699
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalFormCancel/ModalFormCancelConverter.ts ***!
|
|
@@ -88848,160 +89002,6 @@ let ModalFormLabelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
88848
89002
|
|
|
88849
89003
|
/***/ }),
|
|
88850
89004
|
|
|
88851
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormConverter.ts":
|
|
88852
|
-
/*!**********************************************************************************************************!*\
|
|
88853
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormConverter.ts ***!
|
|
88854
|
-
\**********************************************************************************************************/
|
|
88855
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88856
|
-
|
|
88857
|
-
"use strict";
|
|
88858
|
-
__webpack_require__.r(__webpack_exports__);
|
|
88859
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88860
|
-
/* harmony export */ ModalFormConverter: () => (/* binding */ ModalFormConverter)
|
|
88861
|
-
/* harmony export */ });
|
|
88862
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
88863
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
88864
|
-
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
88865
|
-
/* harmony import */ var _ModalFormNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ModalFormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormNode.ts");
|
|
88866
|
-
|
|
88867
|
-
|
|
88868
|
-
|
|
88869
|
-
|
|
88870
|
-
class ModalFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
88871
|
-
static getAcceptNodeClass() {
|
|
88872
|
-
return _ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode;
|
|
88873
|
-
}
|
|
88874
|
-
applyVisibilityPathProcessing() {
|
|
88875
|
-
return false;
|
|
88876
|
-
}
|
|
88877
|
-
doBuildDataDeclaration(context) {
|
|
88878
|
-
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88879
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node));
|
|
88880
|
-
}
|
|
88881
|
-
buildChildrenDataDeclaration(context) {
|
|
88882
|
-
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88883
|
-
return context.processChildrenDataDeclaration(node.children);
|
|
88884
|
-
}
|
|
88885
|
-
*doTraverseChildren() {
|
|
88886
|
-
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88887
|
-
yield* node.children;
|
|
88888
|
-
}
|
|
88889
|
-
doConvert(context) {
|
|
88890
|
-
var _verifiablePaths;
|
|
88891
|
-
const node = this.getCurrentNodeAs(_ModalFormNode__WEBPACK_IMPORTED_MODULE_3__.ModalFormNode);
|
|
88892
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("ModalForm");
|
|
88893
|
-
markupBuilder.prop(x => x.width).set(node.width);
|
|
88894
|
-
markupBuilder.prop(x => x.header).set(node.header);
|
|
88895
|
-
markupBuilder.prop(x => x.footerPanel).set(node.footerPanel);
|
|
88896
|
-
markupBuilder.prop(x => x.enabledBackgroundClick).set(node.enabledBackgroundClick);
|
|
88897
|
-
markupBuilder.prop(x => x.doNotValidateFormOnStart).set(node.doNotValidateFormOnStart);
|
|
88898
|
-
markupBuilder.prop(x => x.onAfterOpen).set(context.generateHelperFunctionExpression(node, "onAfterOpen", node.onAfterOpen));
|
|
88899
|
-
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
88900
|
-
context.pushPathsContext();
|
|
88901
|
-
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
88902
|
-
const pathsContext = context.popPathsContext();
|
|
88903
|
-
let verifiablePaths = pathsContext === null || pathsContext === void 0 ? void 0 : pathsContext.paths;
|
|
88904
|
-
if (verifiablePaths && node.excludedVerifiablePath) {
|
|
88905
|
-
const excludedVerifiablePath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node, node.excludedVerifiablePath);
|
|
88906
|
-
verifiablePaths = verifiablePaths.filter(path => !path.isIncludes(excludedVerifiablePath));
|
|
88907
|
-
}
|
|
88908
|
-
markupBuilder.prop(x => x.verifiablePaths).set((_verifiablePaths = verifiablePaths) !== null && _verifiablePaths !== void 0 ? _verifiablePaths : []);
|
|
88909
|
-
return markupBuilder.buildConverterResult();
|
|
88910
|
-
}
|
|
88911
|
-
}
|
|
88912
|
-
|
|
88913
|
-
/***/ }),
|
|
88914
|
-
|
|
88915
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormNode.ts":
|
|
88916
|
-
/*!*****************************************************************************************************!*\
|
|
88917
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/ModalFormNode.ts ***!
|
|
88918
|
-
\*****************************************************************************************************/
|
|
88919
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88920
|
-
|
|
88921
|
-
"use strict";
|
|
88922
|
-
__webpack_require__.r(__webpack_exports__);
|
|
88923
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88924
|
-
/* harmony export */ ModalFormNode: () => (/* binding */ ModalFormNode)
|
|
88925
|
-
/* harmony export */ });
|
|
88926
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
88927
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
88928
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
88929
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
88930
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
88931
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
88932
|
-
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
88933
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
88934
|
-
|
|
88935
|
-
|
|
88936
|
-
|
|
88937
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
88938
|
-
|
|
88939
|
-
|
|
88940
|
-
let ModalFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("modalform", `Модальное окно со значениями из модели`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("header", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Заголовок`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("enabledBackgroundClick", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Закрывать окно при клике на фон.`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("doNotValidateFormOnStart", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Отменяет показ валидаций при откртии модального окна`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("footerPanel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Задает серый footer`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина модального окна`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("onAfterOpen", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется после открытия модалки"), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("excludedVerifiablePath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Путь, который нужно исключить из валидаций`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class ModalFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
88941
|
-
constructor(...args) {
|
|
88942
|
-
super(...args);
|
|
88943
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
|
|
88944
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "header", _descriptor2, this);
|
|
88945
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "enabledBackgroundClick", _descriptor3, this);
|
|
88946
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "doNotValidateFormOnStart", _descriptor4, this);
|
|
88947
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "footerPanel", _descriptor5, this);
|
|
88948
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor6, this);
|
|
88949
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onAfterOpen", _descriptor7, this);
|
|
88950
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "excludedVerifiablePath", _descriptor8, this);
|
|
88951
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor9, this);
|
|
88952
|
-
}
|
|
88953
|
-
getOwnPath() {
|
|
88954
|
-
return this.dataScope.getOwnPath();
|
|
88955
|
-
}
|
|
88956
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
|
|
88957
|
-
configurable: true,
|
|
88958
|
-
enumerable: true,
|
|
88959
|
-
writable: true,
|
|
88960
|
-
initializer: null
|
|
88961
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "header", [_dec3], {
|
|
88962
|
-
configurable: true,
|
|
88963
|
-
enumerable: true,
|
|
88964
|
-
writable: true,
|
|
88965
|
-
initializer: null
|
|
88966
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "enabledBackgroundClick", [_dec4], {
|
|
88967
|
-
configurable: true,
|
|
88968
|
-
enumerable: true,
|
|
88969
|
-
writable: true,
|
|
88970
|
-
initializer: null
|
|
88971
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "doNotValidateFormOnStart", [_dec5], {
|
|
88972
|
-
configurable: true,
|
|
88973
|
-
enumerable: true,
|
|
88974
|
-
writable: true,
|
|
88975
|
-
initializer: null
|
|
88976
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "footerPanel", [_dec6], {
|
|
88977
|
-
configurable: true,
|
|
88978
|
-
enumerable: true,
|
|
88979
|
-
writable: true,
|
|
88980
|
-
initializer: null
|
|
88981
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec7], {
|
|
88982
|
-
configurable: true,
|
|
88983
|
-
enumerable: true,
|
|
88984
|
-
writable: true,
|
|
88985
|
-
initializer: null
|
|
88986
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onAfterOpen", [_dec8], {
|
|
88987
|
-
configurable: true,
|
|
88988
|
-
enumerable: true,
|
|
88989
|
-
writable: true,
|
|
88990
|
-
initializer: null
|
|
88991
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "excludedVerifiablePath", [_dec9], {
|
|
88992
|
-
configurable: true,
|
|
88993
|
-
enumerable: true,
|
|
88994
|
-
writable: true,
|
|
88995
|
-
initializer: null
|
|
88996
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec10], {
|
|
88997
|
-
configurable: true,
|
|
88998
|
-
enumerable: true,
|
|
88999
|
-
writable: true,
|
|
89000
|
-
initializer: null
|
|
89001
|
-
}), _class2)) || _class);
|
|
89002
|
-
|
|
89003
|
-
/***/ }),
|
|
89004
|
-
|
|
89005
89005
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AddRowButton/AddRowButtonConverter.ts":
|
|
89006
89006
|
/*!************************************************************************************************************************!*\
|
|
89007
89007
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AddRowButton/AddRowButtonConverter.ts ***!
|
|
@@ -97169,267 +97169,6 @@ let FiasNode = (_dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE
|
|
|
97169
97169
|
|
|
97170
97170
|
/***/ }),
|
|
97171
97171
|
|
|
97172
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderConverter.ts":
|
|
97173
|
-
/*!*******************************************************************************************************************!*\
|
|
97174
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderConverter.ts ***!
|
|
97175
|
-
\*******************************************************************************************************************/
|
|
97176
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
97177
|
-
|
|
97178
|
-
"use strict";
|
|
97179
|
-
__webpack_require__.r(__webpack_exports__);
|
|
97180
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
97181
|
-
/* harmony export */ FileLoaderConverter: () => (/* binding */ FileLoaderConverter)
|
|
97182
|
-
/* harmony export */ });
|
|
97183
|
-
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
97184
|
-
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
97185
|
-
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
97186
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
97187
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
97188
|
-
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
97189
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
97190
|
-
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
97191
|
-
/* harmony import */ var _FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FileLoader/AddButtonNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/AddButtonNode.ts");
|
|
97192
|
-
/* harmony import */ var _FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FileLoader/ReplaceButtonNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/ReplaceButtonNode.ts");
|
|
97193
|
-
/* harmony import */ var _FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FileLoaderNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderNode.ts");
|
|
97194
|
-
|
|
97195
|
-
|
|
97196
|
-
|
|
97197
|
-
|
|
97198
|
-
|
|
97199
|
-
|
|
97200
|
-
|
|
97201
|
-
|
|
97202
|
-
|
|
97203
|
-
|
|
97204
|
-
|
|
97205
|
-
class FileLoaderConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.SugarNodeConverterBase {
|
|
97206
|
-
static getAcceptNodeClass() {
|
|
97207
|
-
return _FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode;
|
|
97208
|
-
}
|
|
97209
|
-
*getAttachmentPaths(context) {
|
|
97210
|
-
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97211
|
-
const multipleNode = !node.single;
|
|
97212
|
-
if (multipleNode) {
|
|
97213
|
-
yield node.getFullPath().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
97214
|
-
} else {
|
|
97215
|
-
yield node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
97216
|
-
}
|
|
97217
|
-
}
|
|
97218
|
-
doBuildNodeValidations(validationGenerator, context) {
|
|
97219
|
-
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97220
|
-
const multipleNode = !node.single;
|
|
97221
|
-
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, {
|
|
97222
|
-
multiple: multipleNode
|
|
97223
|
-
});
|
|
97224
|
-
}
|
|
97225
|
-
doBuildDataDeclaration(context) {
|
|
97226
|
-
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97227
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node), this.addAttachmentPathDeclEntry(context, node));
|
|
97228
|
-
}
|
|
97229
|
-
buildChildrenDataDeclaration() {
|
|
97230
|
-
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__.emptyDataDeclarationCollection;
|
|
97231
|
-
}
|
|
97232
|
-
*doTraverseChildren() {
|
|
97233
|
-
// no children
|
|
97234
|
-
}
|
|
97235
|
-
doConvert(context) {
|
|
97236
|
-
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97237
|
-
const multipleNode = !node.single;
|
|
97238
|
-
if (multipleNode) {
|
|
97239
|
-
this.ensurePathExists(node, node.path);
|
|
97240
|
-
}
|
|
97241
|
-
const attachmentType = this.selectAttachmentTypeNode(context);
|
|
97242
|
-
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader");
|
|
97243
|
-
mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
|
|
97244
|
-
mb.prop(x => x.multiple).set(multipleNode);
|
|
97245
|
-
mb.prop(x => x.count).set(attachmentType.count);
|
|
97246
|
-
mb.prop(x => x.countExceededDescription).set(attachmentType.countExceededDescription);
|
|
97247
|
-
// @ts-ignore
|
|
97248
|
-
mb.prop(x => x.extentions).set(attachmentType.extentions);
|
|
97249
|
-
mb.prop(x => x.maxSize).set(attachmentType.maxSize);
|
|
97250
|
-
mb.prop(x => x.AttachmentTypeHasCountOne).set(attachmentType.count !== 1);
|
|
97251
|
-
// @ts-ignore Такого свойства нет, но я сегодня устал
|
|
97252
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
97253
|
-
mb.prop(x => x.totalSize).set(attachmentType.totalSize);
|
|
97254
|
-
mb.prop(x => x.width).set(node.width);
|
|
97255
|
-
if (node.viewFile) {
|
|
97256
|
-
const viewFileBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.ViewFile");
|
|
97257
|
-
if (node.viewFile && node.viewFile.removeButton) {
|
|
97258
|
-
var _node$viewFile;
|
|
97259
|
-
const removeButtonBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.RemoveButton");
|
|
97260
|
-
removeButtonBuilder.appendChildren(this.convertChildren(context, (_node$viewFile = node.viewFile) === null || _node$viewFile === void 0 ? void 0 : _node$viewFile.removeButton.children));
|
|
97261
|
-
viewFileBuilder.appendChild(removeButtonBuilder);
|
|
97262
|
-
}
|
|
97263
|
-
mb.appendChild(viewFileBuilder);
|
|
97264
|
-
}
|
|
97265
|
-
if (node.menu) {
|
|
97266
|
-
const fileMenuBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.Menu");
|
|
97267
|
-
if (node.menu.addLine) {
|
|
97268
|
-
const addLineBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.AddLine");
|
|
97269
|
-
addLineBuilder.appendChildren(this.convertChildren(context, node.menu.addLine.children));
|
|
97270
|
-
fileMenuBuilder.appendChild(addLineBuilder);
|
|
97271
|
-
}
|
|
97272
|
-
if (node.menu.replaceLine) {
|
|
97273
|
-
const replaceLineBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.ReplaceLine");
|
|
97274
|
-
replaceLineBuilder.appendChildren(this.convertChildren(context, node.menu.replaceLine.children));
|
|
97275
|
-
fileMenuBuilder.appendChild(replaceLineBuilder);
|
|
97276
|
-
}
|
|
97277
|
-
mb.appendChild(fileMenuBuilder);
|
|
97278
|
-
}
|
|
97279
|
-
return mb.buildConverterResult();
|
|
97280
|
-
}
|
|
97281
|
-
addAttachmentPathDeclEntry(context, node) {
|
|
97282
|
-
var _context$getTypeNode;
|
|
97283
|
-
const attachmentType = (_context$getTypeNode = context.getTypeNode(node)) === null || _context$getTypeNode === void 0 ? void 0 : _context$getTypeNode.children.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode));
|
|
97284
|
-
const fileLoaderPath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node);
|
|
97285
|
-
const additionalPath = node.single ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.emptyModelPath)().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.emptyModelPath)().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
97286
|
-
return context.mergeDataDeclaration({
|
|
97287
|
-
[fileLoaderPath.toLegacyPath()]: {
|
|
97288
|
-
fnsConvertFileExtentions: attachmentType === null || attachmentType === void 0 ? void 0 : attachmentType.fnsConvertFileExtentions
|
|
97289
|
-
}
|
|
97290
|
-
}, context.addChildPathSectionDeclarationEntry(node, additionalPath, false));
|
|
97291
|
-
}
|
|
97292
|
-
convertChildren(context, nodes = []) {
|
|
97293
|
-
return nodes.map(node => {
|
|
97294
|
-
if (node instanceof _FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_8__.AddButtonNode) {
|
|
97295
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.AddButton");
|
|
97296
|
-
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
97297
|
-
return markupBuilder.buildConverterResult();
|
|
97298
|
-
}
|
|
97299
|
-
if (node instanceof _FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_9__.ReplaceButtonNode) {
|
|
97300
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.ReplaceButton");
|
|
97301
|
-
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
97302
|
-
return markupBuilder.buildConverterResult();
|
|
97303
|
-
}
|
|
97304
|
-
return context.convertChildNodes([node]);
|
|
97305
|
-
});
|
|
97306
|
-
}
|
|
97307
|
-
|
|
97308
|
-
// @ts-expect-error NOTE: метoд оставлен т.к. понадобится при рефакторнге FileLoader
|
|
97309
|
-
isMultipleFilesLoadingAllowed(context) {
|
|
97310
|
-
const attachmentType = this.selectAttachmentTypeNode(context);
|
|
97311
|
-
const singleFileLoadingRequired = attachmentType.count === 1;
|
|
97312
|
-
return !singleFileLoadingRequired;
|
|
97313
|
-
}
|
|
97314
|
-
selectAttachmentTypeNode(context) {
|
|
97315
|
-
var _context$getTypeNode2;
|
|
97316
|
-
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97317
|
-
const attachmentTypeNode = (_context$getTypeNode2 = context.getTypeNode(node)) === null || _context$getTypeNode2 === void 0 ? void 0 : _context$getTypeNode2.children.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode));
|
|
97318
|
-
this.ensureAttachmentTypeDefined(attachmentTypeNode);
|
|
97319
|
-
return attachmentTypeNode;
|
|
97320
|
-
}
|
|
97321
|
-
ensureAttachmentTypeDefined(attachmentTypeNode) {
|
|
97322
|
-
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97323
|
-
if (attachmentTypeNode == undefined) {
|
|
97324
|
-
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Failed generate fileloader without 'attachments' type node`, node, "type");
|
|
97325
|
-
}
|
|
97326
|
-
}
|
|
97327
|
-
}
|
|
97328
|
-
|
|
97329
|
-
/***/ }),
|
|
97330
|
-
|
|
97331
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderNode.ts":
|
|
97332
|
-
/*!**************************************************************************************************************!*\
|
|
97333
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderNode.ts ***!
|
|
97334
|
-
\**************************************************************************************************************/
|
|
97335
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
97336
|
-
|
|
97337
|
-
"use strict";
|
|
97338
|
-
__webpack_require__.r(__webpack_exports__);
|
|
97339
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
97340
|
-
/* harmony export */ FileLoaderNode: () => (/* binding */ FileLoaderNode)
|
|
97341
|
-
/* harmony export */ });
|
|
97342
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
97343
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
97344
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
97345
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
97346
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
97347
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
97348
|
-
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
97349
|
-
/* harmony import */ var _CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
97350
|
-
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
97351
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
97352
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
97353
|
-
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
97354
|
-
/* harmony import */ var _FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FileLoader/MenuNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/MenuNode.ts");
|
|
97355
|
-
/* harmony import */ var _FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FileLoader/ViewFileNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/ViewFileNode.ts");
|
|
97356
|
-
|
|
97357
|
-
|
|
97358
|
-
|
|
97359
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
97360
|
-
|
|
97361
|
-
|
|
97362
|
-
|
|
97363
|
-
|
|
97364
|
-
|
|
97365
|
-
|
|
97366
|
-
|
|
97367
|
-
|
|
97368
|
-
let FileLoaderNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("fileloader", `Загрузка файлов в форму`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.typeName, "Тип для валидации значений"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Относительный путь по которому будут храниться аттачменты. Указывается относительно каталога sugar`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Ширина контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("single", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean.default(false), `Подразумевает возможность загрузить только 1 файл`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("multiple", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_8__.DeprecationReason.Removed), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("viewfile", [_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_10__.ViewFileNode]), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("menu", [_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_9__.MenuNode]), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec(_class = (_class2 = class FileLoaderNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__.SugarNodeWithLegacyVisibility {
|
|
97369
|
-
constructor(...args) {
|
|
97370
|
-
super(...args);
|
|
97371
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor, this);
|
|
97372
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor2, this);
|
|
97373
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor3, this);
|
|
97374
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor4, this);
|
|
97375
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "single", _descriptor5, this);
|
|
97376
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor6, this);
|
|
97377
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "viewFile", _descriptor7, this);
|
|
97378
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "menu", _descriptor8, this);
|
|
97379
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "anonymousType", _descriptor9, this);
|
|
97380
|
-
}
|
|
97381
|
-
getOwnPath() {
|
|
97382
|
-
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each) : undefined;
|
|
97383
|
-
}
|
|
97384
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "validationInfo", [_dec2], {
|
|
97385
|
-
configurable: true,
|
|
97386
|
-
enumerable: true,
|
|
97387
|
-
writable: true,
|
|
97388
|
-
initializer: null
|
|
97389
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "type", [_dec3], {
|
|
97390
|
-
configurable: true,
|
|
97391
|
-
enumerable: true,
|
|
97392
|
-
writable: true,
|
|
97393
|
-
initializer: null
|
|
97394
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec4], {
|
|
97395
|
-
configurable: true,
|
|
97396
|
-
enumerable: true,
|
|
97397
|
-
writable: true,
|
|
97398
|
-
initializer: null
|
|
97399
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec5], {
|
|
97400
|
-
configurable: true,
|
|
97401
|
-
enumerable: true,
|
|
97402
|
-
writable: true,
|
|
97403
|
-
initializer: null
|
|
97404
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "single", [_dec6], {
|
|
97405
|
-
configurable: true,
|
|
97406
|
-
enumerable: true,
|
|
97407
|
-
writable: true,
|
|
97408
|
-
initializer: null
|
|
97409
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "multiple", [_dec7], {
|
|
97410
|
-
configurable: true,
|
|
97411
|
-
enumerable: true,
|
|
97412
|
-
writable: true,
|
|
97413
|
-
initializer: null
|
|
97414
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "viewFile", [_dec8], {
|
|
97415
|
-
configurable: true,
|
|
97416
|
-
enumerable: true,
|
|
97417
|
-
writable: true,
|
|
97418
|
-
initializer: null
|
|
97419
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "menu", [_dec9], {
|
|
97420
|
-
configurable: true,
|
|
97421
|
-
enumerable: true,
|
|
97422
|
-
writable: true,
|
|
97423
|
-
initializer: null
|
|
97424
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "anonymousType", [_dec10], {
|
|
97425
|
-
configurable: true,
|
|
97426
|
-
enumerable: true,
|
|
97427
|
-
writable: true,
|
|
97428
|
-
initializer: null
|
|
97429
|
-
}), _class2)) || _class);
|
|
97430
|
-
|
|
97431
|
-
/***/ }),
|
|
97432
|
-
|
|
97433
97172
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/AddButtonNode.ts":
|
|
97434
97173
|
/*!************************************************************************************************************************!*\
|
|
97435
97174
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/AddButtonNode.ts ***!
|
|
@@ -97713,6 +97452,267 @@ let ViewFileNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
97713
97452
|
|
|
97714
97453
|
/***/ }),
|
|
97715
97454
|
|
|
97455
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderConverter.ts":
|
|
97456
|
+
/*!*******************************************************************************************************************!*\
|
|
97457
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderConverter.ts ***!
|
|
97458
|
+
\*******************************************************************************************************************/
|
|
97459
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
97460
|
+
|
|
97461
|
+
"use strict";
|
|
97462
|
+
__webpack_require__.r(__webpack_exports__);
|
|
97463
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
97464
|
+
/* harmony export */ FileLoaderConverter: () => (/* binding */ FileLoaderConverter)
|
|
97465
|
+
/* harmony export */ });
|
|
97466
|
+
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
97467
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
97468
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
97469
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
97470
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
97471
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
97472
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
97473
|
+
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
97474
|
+
/* harmony import */ var _FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FileLoader/AddButtonNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/AddButtonNode.ts");
|
|
97475
|
+
/* harmony import */ var _FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FileLoader/ReplaceButtonNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/ReplaceButtonNode.ts");
|
|
97476
|
+
/* harmony import */ var _FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FileLoaderNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderNode.ts");
|
|
97477
|
+
|
|
97478
|
+
|
|
97479
|
+
|
|
97480
|
+
|
|
97481
|
+
|
|
97482
|
+
|
|
97483
|
+
|
|
97484
|
+
|
|
97485
|
+
|
|
97486
|
+
|
|
97487
|
+
|
|
97488
|
+
class FileLoaderConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.SugarNodeConverterBase {
|
|
97489
|
+
static getAcceptNodeClass() {
|
|
97490
|
+
return _FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode;
|
|
97491
|
+
}
|
|
97492
|
+
*getAttachmentPaths(context) {
|
|
97493
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97494
|
+
const multipleNode = !node.single;
|
|
97495
|
+
if (multipleNode) {
|
|
97496
|
+
yield node.getFullPath().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
97497
|
+
} else {
|
|
97498
|
+
yield node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
97499
|
+
}
|
|
97500
|
+
}
|
|
97501
|
+
doBuildNodeValidations(validationGenerator, context) {
|
|
97502
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97503
|
+
const multipleNode = !node.single;
|
|
97504
|
+
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, {
|
|
97505
|
+
multiple: multipleNode
|
|
97506
|
+
});
|
|
97507
|
+
}
|
|
97508
|
+
doBuildDataDeclaration(context) {
|
|
97509
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97510
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node), this.addAttachmentPathDeclEntry(context, node));
|
|
97511
|
+
}
|
|
97512
|
+
buildChildrenDataDeclaration() {
|
|
97513
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__.emptyDataDeclarationCollection;
|
|
97514
|
+
}
|
|
97515
|
+
*doTraverseChildren() {
|
|
97516
|
+
// no children
|
|
97517
|
+
}
|
|
97518
|
+
doConvert(context) {
|
|
97519
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97520
|
+
const multipleNode = !node.single;
|
|
97521
|
+
if (multipleNode) {
|
|
97522
|
+
this.ensurePathExists(node, node.path);
|
|
97523
|
+
}
|
|
97524
|
+
const attachmentType = this.selectAttachmentTypeNode(context);
|
|
97525
|
+
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader");
|
|
97526
|
+
mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
|
|
97527
|
+
mb.prop(x => x.multiple).set(multipleNode);
|
|
97528
|
+
mb.prop(x => x.count).set(attachmentType.count);
|
|
97529
|
+
mb.prop(x => x.countExceededDescription).set(attachmentType.countExceededDescription);
|
|
97530
|
+
// @ts-ignore
|
|
97531
|
+
mb.prop(x => x.extentions).set(attachmentType.extentions);
|
|
97532
|
+
mb.prop(x => x.maxSize).set(attachmentType.maxSize);
|
|
97533
|
+
mb.prop(x => x.AttachmentTypeHasCountOne).set(attachmentType.count !== 1);
|
|
97534
|
+
// @ts-ignore Такого свойства нет, но я сегодня устал
|
|
97535
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
97536
|
+
mb.prop(x => x.totalSize).set(attachmentType.totalSize);
|
|
97537
|
+
mb.prop(x => x.width).set(node.width);
|
|
97538
|
+
if (node.viewFile) {
|
|
97539
|
+
const viewFileBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.ViewFile");
|
|
97540
|
+
if (node.viewFile && node.viewFile.removeButton) {
|
|
97541
|
+
var _node$viewFile;
|
|
97542
|
+
const removeButtonBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.RemoveButton");
|
|
97543
|
+
removeButtonBuilder.appendChildren(this.convertChildren(context, (_node$viewFile = node.viewFile) === null || _node$viewFile === void 0 ? void 0 : _node$viewFile.removeButton.children));
|
|
97544
|
+
viewFileBuilder.appendChild(removeButtonBuilder);
|
|
97545
|
+
}
|
|
97546
|
+
mb.appendChild(viewFileBuilder);
|
|
97547
|
+
}
|
|
97548
|
+
if (node.menu) {
|
|
97549
|
+
const fileMenuBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.Menu");
|
|
97550
|
+
if (node.menu.addLine) {
|
|
97551
|
+
const addLineBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.AddLine");
|
|
97552
|
+
addLineBuilder.appendChildren(this.convertChildren(context, node.menu.addLine.children));
|
|
97553
|
+
fileMenuBuilder.appendChild(addLineBuilder);
|
|
97554
|
+
}
|
|
97555
|
+
if (node.menu.replaceLine) {
|
|
97556
|
+
const replaceLineBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.ReplaceLine");
|
|
97557
|
+
replaceLineBuilder.appendChildren(this.convertChildren(context, node.menu.replaceLine.children));
|
|
97558
|
+
fileMenuBuilder.appendChild(replaceLineBuilder);
|
|
97559
|
+
}
|
|
97560
|
+
mb.appendChild(fileMenuBuilder);
|
|
97561
|
+
}
|
|
97562
|
+
return mb.buildConverterResult();
|
|
97563
|
+
}
|
|
97564
|
+
addAttachmentPathDeclEntry(context, node) {
|
|
97565
|
+
var _context$getTypeNode;
|
|
97566
|
+
const attachmentType = (_context$getTypeNode = context.getTypeNode(node)) === null || _context$getTypeNode === void 0 ? void 0 : _context$getTypeNode.children.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode));
|
|
97567
|
+
const fileLoaderPath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node);
|
|
97568
|
+
const additionalPath = node.single ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.emptyModelPath)().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.emptyModelPath)().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
97569
|
+
return context.mergeDataDeclaration({
|
|
97570
|
+
[fileLoaderPath.toLegacyPath()]: {
|
|
97571
|
+
fnsConvertFileExtentions: attachmentType === null || attachmentType === void 0 ? void 0 : attachmentType.fnsConvertFileExtentions
|
|
97572
|
+
}
|
|
97573
|
+
}, context.addChildPathSectionDeclarationEntry(node, additionalPath, false));
|
|
97574
|
+
}
|
|
97575
|
+
convertChildren(context, nodes = []) {
|
|
97576
|
+
return nodes.map(node => {
|
|
97577
|
+
if (node instanceof _FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_8__.AddButtonNode) {
|
|
97578
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.AddButton");
|
|
97579
|
+
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
97580
|
+
return markupBuilder.buildConverterResult();
|
|
97581
|
+
}
|
|
97582
|
+
if (node instanceof _FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_9__.ReplaceButtonNode) {
|
|
97583
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FileLoader", "FileLoader.ReplaceButton");
|
|
97584
|
+
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
97585
|
+
return markupBuilder.buildConverterResult();
|
|
97586
|
+
}
|
|
97587
|
+
return context.convertChildNodes([node]);
|
|
97588
|
+
});
|
|
97589
|
+
}
|
|
97590
|
+
|
|
97591
|
+
// @ts-expect-error NOTE: метoд оставлен т.к. понадобится при рефакторнге FileLoader
|
|
97592
|
+
isMultipleFilesLoadingAllowed(context) {
|
|
97593
|
+
const attachmentType = this.selectAttachmentTypeNode(context);
|
|
97594
|
+
const singleFileLoadingRequired = attachmentType.count === 1;
|
|
97595
|
+
return !singleFileLoadingRequired;
|
|
97596
|
+
}
|
|
97597
|
+
selectAttachmentTypeNode(context) {
|
|
97598
|
+
var _context$getTypeNode2;
|
|
97599
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97600
|
+
const attachmentTypeNode = (_context$getTypeNode2 = context.getTypeNode(node)) === null || _context$getTypeNode2 === void 0 ? void 0 : _context$getTypeNode2.children.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode));
|
|
97601
|
+
this.ensureAttachmentTypeDefined(attachmentTypeNode);
|
|
97602
|
+
return attachmentTypeNode;
|
|
97603
|
+
}
|
|
97604
|
+
ensureAttachmentTypeDefined(attachmentTypeNode) {
|
|
97605
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
97606
|
+
if (attachmentTypeNode == undefined) {
|
|
97607
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Failed generate fileloader without 'attachments' type node`, node, "type");
|
|
97608
|
+
}
|
|
97609
|
+
}
|
|
97610
|
+
}
|
|
97611
|
+
|
|
97612
|
+
/***/ }),
|
|
97613
|
+
|
|
97614
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderNode.ts":
|
|
97615
|
+
/*!**************************************************************************************************************!*\
|
|
97616
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoaderNode.ts ***!
|
|
97617
|
+
\**************************************************************************************************************/
|
|
97618
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
97619
|
+
|
|
97620
|
+
"use strict";
|
|
97621
|
+
__webpack_require__.r(__webpack_exports__);
|
|
97622
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
97623
|
+
/* harmony export */ FileLoaderNode: () => (/* binding */ FileLoaderNode)
|
|
97624
|
+
/* harmony export */ });
|
|
97625
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
97626
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
97627
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
97628
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
97629
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
97630
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
97631
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
97632
|
+
/* harmony import */ var _CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
97633
|
+
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
97634
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
97635
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
97636
|
+
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
97637
|
+
/* harmony import */ var _FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FileLoader/MenuNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/MenuNode.ts");
|
|
97638
|
+
/* harmony import */ var _FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FileLoader/ViewFileNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader/FileLoader/ViewFileNode.ts");
|
|
97639
|
+
|
|
97640
|
+
|
|
97641
|
+
|
|
97642
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
97643
|
+
|
|
97644
|
+
|
|
97645
|
+
|
|
97646
|
+
|
|
97647
|
+
|
|
97648
|
+
|
|
97649
|
+
|
|
97650
|
+
|
|
97651
|
+
let FileLoaderNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("fileloader", `Загрузка файлов в форму`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FileLoader sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.typeName, "Тип для валидации значений"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Относительный путь по которому будут храниться аттачменты. Указывается относительно каталога sugar`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Ширина контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("single", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean.default(false), `Подразумевает возможность загрузить только 1 файл`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("multiple", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_8__.DeprecationReason.Removed), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("viewfile", [_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_10__.ViewFileNode]), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("menu", [_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_9__.MenuNode]), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec(_class = (_class2 = class FileLoaderNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__.SugarNodeWithLegacyVisibility {
|
|
97652
|
+
constructor(...args) {
|
|
97653
|
+
super(...args);
|
|
97654
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor, this);
|
|
97655
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor2, this);
|
|
97656
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor3, this);
|
|
97657
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor4, this);
|
|
97658
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "single", _descriptor5, this);
|
|
97659
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor6, this);
|
|
97660
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "viewFile", _descriptor7, this);
|
|
97661
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "menu", _descriptor8, this);
|
|
97662
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "anonymousType", _descriptor9, this);
|
|
97663
|
+
}
|
|
97664
|
+
getOwnPath() {
|
|
97665
|
+
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each) : undefined;
|
|
97666
|
+
}
|
|
97667
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "validationInfo", [_dec2], {
|
|
97668
|
+
configurable: true,
|
|
97669
|
+
enumerable: true,
|
|
97670
|
+
writable: true,
|
|
97671
|
+
initializer: null
|
|
97672
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "type", [_dec3], {
|
|
97673
|
+
configurable: true,
|
|
97674
|
+
enumerable: true,
|
|
97675
|
+
writable: true,
|
|
97676
|
+
initializer: null
|
|
97677
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec4], {
|
|
97678
|
+
configurable: true,
|
|
97679
|
+
enumerable: true,
|
|
97680
|
+
writable: true,
|
|
97681
|
+
initializer: null
|
|
97682
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec5], {
|
|
97683
|
+
configurable: true,
|
|
97684
|
+
enumerable: true,
|
|
97685
|
+
writable: true,
|
|
97686
|
+
initializer: null
|
|
97687
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "single", [_dec6], {
|
|
97688
|
+
configurable: true,
|
|
97689
|
+
enumerable: true,
|
|
97690
|
+
writable: true,
|
|
97691
|
+
initializer: null
|
|
97692
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "multiple", [_dec7], {
|
|
97693
|
+
configurable: true,
|
|
97694
|
+
enumerable: true,
|
|
97695
|
+
writable: true,
|
|
97696
|
+
initializer: null
|
|
97697
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "viewFile", [_dec8], {
|
|
97698
|
+
configurable: true,
|
|
97699
|
+
enumerable: true,
|
|
97700
|
+
writable: true,
|
|
97701
|
+
initializer: null
|
|
97702
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "menu", [_dec9], {
|
|
97703
|
+
configurable: true,
|
|
97704
|
+
enumerable: true,
|
|
97705
|
+
writable: true,
|
|
97706
|
+
initializer: null
|
|
97707
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "anonymousType", [_dec10], {
|
|
97708
|
+
configurable: true,
|
|
97709
|
+
enumerable: true,
|
|
97710
|
+
writable: true,
|
|
97711
|
+
initializer: null
|
|
97712
|
+
}), _class2)) || _class);
|
|
97713
|
+
|
|
97714
|
+
/***/ }),
|
|
97715
|
+
|
|
97716
97716
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/INN/INNConverter.ts":
|
|
97717
97717
|
/*!*****************************************************************************************************!*\
|
|
97718
97718
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/INN/INNConverter.ts ***!
|
|
@@ -99847,400 +99847,6 @@ let RelativesComboBoxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
|
|
|
99847
99847
|
|
|
99848
99848
|
/***/ }),
|
|
99849
99849
|
|
|
99850
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxConverter.ts":
|
|
99851
|
-
/*!*********************************************************************************************************************************!*\
|
|
99852
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxConverter.ts ***!
|
|
99853
|
-
\*********************************************************************************************************************************/
|
|
99854
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
99855
|
-
|
|
99856
|
-
"use strict";
|
|
99857
|
-
__webpack_require__.r(__webpack_exports__);
|
|
99858
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
99859
|
-
/* harmony export */ SelectAllCheckboxConverter: () => (/* binding */ SelectAllCheckboxConverter)
|
|
99860
|
-
/* harmony export */ });
|
|
99861
|
-
/* harmony import */ var _Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/FastSelectAllCheckboxesHelper */ "./Engine/src/Controls/FastSelectAllCheckboxesHelper.ts");
|
|
99862
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
99863
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
99864
|
-
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
99865
|
-
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
99866
|
-
/* harmony import */ var _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../ServerSideFLangNormalization/FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
99867
|
-
/* harmony import */ var _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
|
|
99868
|
-
|
|
99869
|
-
|
|
99870
|
-
|
|
99871
|
-
|
|
99872
|
-
|
|
99873
|
-
|
|
99874
|
-
|
|
99875
|
-
class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
99876
|
-
static getAcceptNodeClass() {
|
|
99877
|
-
return _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode;
|
|
99878
|
-
}
|
|
99879
|
-
get nodePaths() {
|
|
99880
|
-
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
99881
|
-
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
|
|
99882
|
-
}
|
|
99883
|
-
doBuildDataDeclaration(context) {
|
|
99884
|
-
return {};
|
|
99885
|
-
}
|
|
99886
|
-
doBuildNormalizeRules(builder, formSchemaRng) {
|
|
99887
|
-
var _node$pathToChecked;
|
|
99888
|
-
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
99889
|
-
const pathToCheckedArray = (0,_Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__.buildDirtyPathForMultiplicityAndCheckboxPath)(node.getFullPath(), (_node$pathToChecked = node.pathToChecked) !== null && _node$pathToChecked !== void 0 ? _node$pathToChecked : "checked");
|
|
99890
|
-
return node.dirtyModeInstancesCount != undefined ? [new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.ValueReferenceExpression(pathToCheckedArray, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.NullLiteralExpression())] : [];
|
|
99891
|
-
}
|
|
99892
|
-
buildChildrenDataDeclaration(context) {
|
|
99893
|
-
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
99894
|
-
return context.processChildrenDataDeclaration(node.children);
|
|
99895
|
-
}
|
|
99896
|
-
*doTraverseChildren() {
|
|
99897
|
-
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
99898
|
-
yield* node.children;
|
|
99899
|
-
}
|
|
99900
|
-
doConvert(context) {
|
|
99901
|
-
var _node$filteredUniqKey, _node$uncheckedValue, _node$checkedValue;
|
|
99902
|
-
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
99903
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SelectAllCheckbox");
|
|
99904
|
-
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
|
|
99905
|
-
markupBuilder.prop(x => x.pathToChecked).set(node.getPathToChecked());
|
|
99906
|
-
markupBuilder.prop("data-tid").set(node.tid);
|
|
99907
|
-
markupBuilder.prop(x => x.filteredUniqKey).set((_node$filteredUniqKey = node.filteredUniqKey) !== null && _node$filteredUniqKey !== void 0 ? _node$filteredUniqKey : "default");
|
|
99908
|
-
markupBuilder.prop(x => x.uncheckedValue).set((_node$uncheckedValue = node.uncheckedValue) !== null && _node$uncheckedValue !== void 0 ? _node$uncheckedValue : "false");
|
|
99909
|
-
markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : "true");
|
|
99910
|
-
markupBuilder.prop(x => x.dirtyModeInstancesCount).set(node.dirtyModeInstancesCount);
|
|
99911
|
-
if (node.disabled2 != undefined) {
|
|
99912
|
-
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
|
|
99913
|
-
if (this.getLegacyNode().getParent() != undefined) {
|
|
99914
|
-
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
99915
|
-
}
|
|
99916
|
-
}
|
|
99917
|
-
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
99918
|
-
return markupBuilder.buildConverterResult();
|
|
99919
|
-
}
|
|
99920
|
-
}
|
|
99921
|
-
|
|
99922
|
-
/***/ }),
|
|
99923
|
-
|
|
99924
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts":
|
|
99925
|
-
/*!****************************************************************************************************************************!*\
|
|
99926
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts ***!
|
|
99927
|
-
\****************************************************************************************************************************/
|
|
99928
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
99929
|
-
|
|
99930
|
-
"use strict";
|
|
99931
|
-
__webpack_require__.r(__webpack_exports__);
|
|
99932
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
99933
|
-
/* harmony export */ SelectAllCheckboxNode: () => (/* binding */ SelectAllCheckboxNode)
|
|
99934
|
-
/* harmony export */ });
|
|
99935
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
99936
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
99937
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
99938
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
99939
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
99940
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
99941
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
99942
|
-
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
99943
|
-
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
99944
|
-
/* harmony import */ var _CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../CommonNodeProperties/FocusManagementNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/FocusManagementNode.ts");
|
|
99945
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
99946
|
-
|
|
99947
|
-
|
|
99948
|
-
|
|
99949
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
99950
|
-
|
|
99951
|
-
|
|
99952
|
-
|
|
99953
|
-
|
|
99954
|
-
|
|
99955
|
-
let SelectAllCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("selectallcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath.required, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Должен указывать на множественный элемент, в котором проставляются галочки.`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToChecked", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} относительного пути (от текущего значения в path) до поля с галочкой. По умолчанию значение 'checked'`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_6__.FocusManagementNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_4__.TooltipSettingsNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("filteredUniqKey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Уникальный ключ фильтрации multiline, используется, для фильтраций одних и тех же путей иннера
|
|
99956
|
-
разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("dirtyModeInstancesCount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Опция включает режим простановки галочек без фактического расчёта формул и валидаций, зависящих от них`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам во включенном состоянии. По-умолчанию, "true"`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам в выключенном состоянии. По-умолчанию, "false"`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class SelectAllCheckboxNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
99957
|
-
constructor(...args) {
|
|
99958
|
-
super(...args);
|
|
99959
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor, this);
|
|
99960
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToChecked", _descriptor2, this);
|
|
99961
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "focusManagement", _descriptor3, this);
|
|
99962
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor4, this);
|
|
99963
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor5, this);
|
|
99964
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor6, this);
|
|
99965
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filteredUniqKey", _descriptor7, this);
|
|
99966
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dirtyModeInstancesCount", _descriptor8, this);
|
|
99967
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor9, this);
|
|
99968
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor10, this);
|
|
99969
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
|
|
99970
|
-
}
|
|
99971
|
-
getOwnPath() {
|
|
99972
|
-
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each) : undefined;
|
|
99973
|
-
}
|
|
99974
|
-
getPathToChecked() {
|
|
99975
|
-
var _this$pathToChecked;
|
|
99976
|
-
return (_this$pathToChecked = this.pathToChecked) !== null && _this$pathToChecked !== void 0 ? _this$pathToChecked : "checked";
|
|
99977
|
-
}
|
|
99978
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec2], {
|
|
99979
|
-
configurable: true,
|
|
99980
|
-
enumerable: true,
|
|
99981
|
-
writable: true,
|
|
99982
|
-
initializer: null
|
|
99983
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pathToChecked", [_dec3], {
|
|
99984
|
-
configurable: true,
|
|
99985
|
-
enumerable: true,
|
|
99986
|
-
writable: true,
|
|
99987
|
-
initializer: null
|
|
99988
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "focusManagement", [_dec4], {
|
|
99989
|
-
configurable: true,
|
|
99990
|
-
enumerable: true,
|
|
99991
|
-
writable: true,
|
|
99992
|
-
initializer: null
|
|
99993
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec5], {
|
|
99994
|
-
configurable: true,
|
|
99995
|
-
enumerable: true,
|
|
99996
|
-
writable: true,
|
|
99997
|
-
initializer: null
|
|
99998
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec6], {
|
|
99999
|
-
configurable: true,
|
|
100000
|
-
enumerable: true,
|
|
100001
|
-
writable: true,
|
|
100002
|
-
initializer: null
|
|
100003
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tooltipSettings", [_dec7], {
|
|
100004
|
-
configurable: true,
|
|
100005
|
-
enumerable: true,
|
|
100006
|
-
writable: true,
|
|
100007
|
-
initializer: null
|
|
100008
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "filteredUniqKey", [_dec8], {
|
|
100009
|
-
configurable: true,
|
|
100010
|
-
enumerable: true,
|
|
100011
|
-
writable: true,
|
|
100012
|
-
initializer: null
|
|
100013
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dirtyModeInstancesCount", [_dec9], {
|
|
100014
|
-
configurable: true,
|
|
100015
|
-
enumerable: true,
|
|
100016
|
-
writable: true,
|
|
100017
|
-
initializer: null
|
|
100018
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "checkedValue", [_dec10], {
|
|
100019
|
-
configurable: true,
|
|
100020
|
-
enumerable: true,
|
|
100021
|
-
writable: true,
|
|
100022
|
-
initializer: null
|
|
100023
|
-
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "uncheckedValue", [_dec11], {
|
|
100024
|
-
configurable: true,
|
|
100025
|
-
enumerable: true,
|
|
100026
|
-
writable: true,
|
|
100027
|
-
initializer: null
|
|
100028
|
-
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
|
|
100029
|
-
configurable: true,
|
|
100030
|
-
enumerable: true,
|
|
100031
|
-
writable: true,
|
|
100032
|
-
initializer: null
|
|
100033
|
-
}), _class2)) || _class);
|
|
100034
|
-
|
|
100035
|
-
/***/ }),
|
|
100036
|
-
|
|
100037
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxConverter.ts":
|
|
100038
|
-
/*!***************************************************************************************************************************!*\
|
|
100039
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxConverter.ts ***!
|
|
100040
|
-
\***************************************************************************************************************************/
|
|
100041
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
100042
|
-
|
|
100043
|
-
"use strict";
|
|
100044
|
-
__webpack_require__.r(__webpack_exports__);
|
|
100045
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
100046
|
-
/* harmony export */ SelectCheckboxConverter: () => (/* binding */ SelectCheckboxConverter)
|
|
100047
|
-
/* harmony export */ });
|
|
100048
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
100049
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
100050
|
-
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
100051
|
-
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
100052
|
-
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
100053
|
-
/* harmony import */ var _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SelectCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts");
|
|
100054
|
-
|
|
100055
|
-
|
|
100056
|
-
|
|
100057
|
-
|
|
100058
|
-
|
|
100059
|
-
|
|
100060
|
-
class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
100061
|
-
static getAcceptNodeClass() {
|
|
100062
|
-
return _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode;
|
|
100063
|
-
}
|
|
100064
|
-
get nodePaths() {
|
|
100065
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100066
|
-
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node)];
|
|
100067
|
-
}
|
|
100068
|
-
doBuildNodeValidations(validationGenerator) {
|
|
100069
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100070
|
-
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
100071
|
-
}
|
|
100072
|
-
doBuildDataDeclaration(context) {
|
|
100073
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100074
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false, this.getDefaultValue(node))]]), context.addSpecialFieldsEntry(node, {
|
|
100075
|
-
optional: node.dataBinding.optional
|
|
100076
|
-
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
100077
|
-
}
|
|
100078
|
-
doBuildNormalizeRules(builder) {
|
|
100079
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100080
|
-
return [builder.valueInitializer(node, node.dataBinding, false)];
|
|
100081
|
-
}
|
|
100082
|
-
getDefaultValue(node) {
|
|
100083
|
-
var _node$dataBinding$def;
|
|
100084
|
-
const defaultValue = (_node$dataBinding$def = node.dataBinding.defaultValue) !== null && _node$dataBinding$def !== void 0 ? _node$dataBinding$def : "";
|
|
100085
|
-
if (defaultValue) {
|
|
100086
|
-
if (defaultValue === "checked" || defaultValue === node.checkedValue) {
|
|
100087
|
-
var _node$checkedValue;
|
|
100088
|
-
return (_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : true;
|
|
100089
|
-
} else {
|
|
100090
|
-
var _node$uncheckedValue;
|
|
100091
|
-
return (_node$uncheckedValue = node.uncheckedValue) !== null && _node$uncheckedValue !== void 0 ? _node$uncheckedValue : false;
|
|
100092
|
-
}
|
|
100093
|
-
}
|
|
100094
|
-
return defaultValue;
|
|
100095
|
-
}
|
|
100096
|
-
buildChildrenDataDeclaration(context) {
|
|
100097
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100098
|
-
return context.processChildrenDataDeclaration(node.children);
|
|
100099
|
-
}
|
|
100100
|
-
*doTraverseChildren() {
|
|
100101
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100102
|
-
yield* node.children;
|
|
100103
|
-
}
|
|
100104
|
-
doConvert(context) {
|
|
100105
|
-
var _node$checkedValue2, _node$uncheckedValue2;
|
|
100106
|
-
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100107
|
-
this.ensurePathExists(node, node.dataBinding.path);
|
|
100108
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("SelectCheckbox");
|
|
100109
|
-
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
100110
|
-
markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue2 = node.checkedValue) !== null && _node$checkedValue2 !== void 0 ? _node$checkedValue2 : "true");
|
|
100111
|
-
markupBuilder.prop("data-tid").set(node.tid);
|
|
100112
|
-
markupBuilder.prop(x => x.uncheckedValue).set((_node$uncheckedValue2 = node.uncheckedValue) !== null && _node$uncheckedValue2 !== void 0 ? _node$uncheckedValue2 : "false");
|
|
100113
|
-
if (node.callHelperOnChange) {
|
|
100114
|
-
markupBuilder.prop(x => x.callHelperOnChange).set(context.generateHelperFunctionExpression(node, "callHelperOnChange", node.callHelperOnChange));
|
|
100115
|
-
}
|
|
100116
|
-
if (node.disabled2 != undefined) {
|
|
100117
|
-
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
|
|
100118
|
-
if (this.getLegacyNode().getParent() != undefined) {
|
|
100119
|
-
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
100120
|
-
}
|
|
100121
|
-
}
|
|
100122
|
-
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
100123
|
-
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
100124
|
-
return markupBuilder.buildConverterResult();
|
|
100125
|
-
}
|
|
100126
|
-
}
|
|
100127
|
-
|
|
100128
|
-
/***/ }),
|
|
100129
|
-
|
|
100130
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts":
|
|
100131
|
-
/*!**********************************************************************************************************************!*\
|
|
100132
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts ***!
|
|
100133
|
-
\**********************************************************************************************************************/
|
|
100134
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
100135
|
-
|
|
100136
|
-
"use strict";
|
|
100137
|
-
__webpack_require__.r(__webpack_exports__);
|
|
100138
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
100139
|
-
/* harmony export */ SelectCheckboxNode: () => (/* binding */ SelectCheckboxNode)
|
|
100140
|
-
/* harmony export */ });
|
|
100141
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
100142
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
100143
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
100144
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
100145
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
100146
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
100147
|
-
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
100148
|
-
/* harmony import */ var _CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
100149
|
-
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
100150
|
-
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
100151
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
100152
|
-
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
100153
|
-
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
100154
|
-
/* harmony import */ var _CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../CommonNodeProperties/FocusManagementNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/FocusManagementNode.ts");
|
|
100155
|
-
|
|
100156
|
-
|
|
100157
|
-
|
|
100158
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
100159
|
-
|
|
100160
|
-
|
|
100161
|
-
|
|
100162
|
-
|
|
100163
|
-
|
|
100164
|
-
|
|
100165
|
-
|
|
100166
|
-
|
|
100167
|
-
let SelectCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("selectcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__.FocusManagementNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("callHelperOnChange", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.helperFunctionName, "Вызов helper функции на onChange контролла"), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class SelectCheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
|
|
100168
|
-
constructor(...args) {
|
|
100169
|
-
super(...args);
|
|
100170
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
|
|
100171
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "focusManagement", _descriptor2, this);
|
|
100172
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor3, this);
|
|
100173
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor4, this);
|
|
100174
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor5, this);
|
|
100175
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor6, this);
|
|
100176
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor7, this);
|
|
100177
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor8, this);
|
|
100178
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor9, this);
|
|
100179
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnChange", _descriptor10, this);
|
|
100180
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
|
|
100181
|
-
}
|
|
100182
|
-
getOwnPath() {
|
|
100183
|
-
return this.dataBinding.getOwnPath();
|
|
100184
|
-
}
|
|
100185
|
-
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataBinding", [_dec2], {
|
|
100186
|
-
configurable: true,
|
|
100187
|
-
enumerable: true,
|
|
100188
|
-
writable: true,
|
|
100189
|
-
initializer: null
|
|
100190
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "focusManagement", [_dec3], {
|
|
100191
|
-
configurable: true,
|
|
100192
|
-
enumerable: true,
|
|
100193
|
-
writable: true,
|
|
100194
|
-
initializer: null
|
|
100195
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec4], {
|
|
100196
|
-
configurable: true,
|
|
100197
|
-
enumerable: true,
|
|
100198
|
-
writable: true,
|
|
100199
|
-
initializer: null
|
|
100200
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec5], {
|
|
100201
|
-
configurable: true,
|
|
100202
|
-
enumerable: true,
|
|
100203
|
-
writable: true,
|
|
100204
|
-
initializer: null
|
|
100205
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec6], {
|
|
100206
|
-
configurable: true,
|
|
100207
|
-
enumerable: true,
|
|
100208
|
-
writable: true,
|
|
100209
|
-
initializer: null
|
|
100210
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "validationInfo", [_dec7], {
|
|
100211
|
-
configurable: true,
|
|
100212
|
-
enumerable: true,
|
|
100213
|
-
writable: true,
|
|
100214
|
-
initializer: null
|
|
100215
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tooltipSettings", [_dec8], {
|
|
100216
|
-
configurable: true,
|
|
100217
|
-
enumerable: true,
|
|
100218
|
-
writable: true,
|
|
100219
|
-
initializer: null
|
|
100220
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "checkedValue", [_dec9], {
|
|
100221
|
-
configurable: true,
|
|
100222
|
-
enumerable: true,
|
|
100223
|
-
writable: true,
|
|
100224
|
-
initializer: null
|
|
100225
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "uncheckedValue", [_dec10], {
|
|
100226
|
-
configurable: true,
|
|
100227
|
-
enumerable: true,
|
|
100228
|
-
writable: true,
|
|
100229
|
-
initializer: null
|
|
100230
|
-
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "callHelperOnChange", [_dec11], {
|
|
100231
|
-
configurable: true,
|
|
100232
|
-
enumerable: true,
|
|
100233
|
-
writable: true,
|
|
100234
|
-
initializer: null
|
|
100235
|
-
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
|
|
100236
|
-
configurable: true,
|
|
100237
|
-
enumerable: true,
|
|
100238
|
-
writable: true,
|
|
100239
|
-
initializer: null
|
|
100240
|
-
}), _class2)) || _class);
|
|
100241
|
-
|
|
100242
|
-
/***/ }),
|
|
100243
|
-
|
|
100244
99850
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/PicklistReference.ts":
|
|
100245
99851
|
/*!*************************************************************************************************************!*\
|
|
100246
99852
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/PicklistReference.ts ***!
|
|
@@ -100639,6 +100245,400 @@ let SelectNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODUL
|
|
|
100639
100245
|
|
|
100640
100246
|
/***/ }),
|
|
100641
100247
|
|
|
100248
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxConverter.ts":
|
|
100249
|
+
/*!*********************************************************************************************************************************!*\
|
|
100250
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxConverter.ts ***!
|
|
100251
|
+
\*********************************************************************************************************************************/
|
|
100252
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
100253
|
+
|
|
100254
|
+
"use strict";
|
|
100255
|
+
__webpack_require__.r(__webpack_exports__);
|
|
100256
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
100257
|
+
/* harmony export */ SelectAllCheckboxConverter: () => (/* binding */ SelectAllCheckboxConverter)
|
|
100258
|
+
/* harmony export */ });
|
|
100259
|
+
/* harmony import */ var _Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/FastSelectAllCheckboxesHelper */ "./Engine/src/Controls/FastSelectAllCheckboxesHelper.ts");
|
|
100260
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
100261
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
100262
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
100263
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
100264
|
+
/* harmony import */ var _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../ServerSideFLangNormalization/FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
100265
|
+
/* harmony import */ var _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
|
|
100266
|
+
|
|
100267
|
+
|
|
100268
|
+
|
|
100269
|
+
|
|
100270
|
+
|
|
100271
|
+
|
|
100272
|
+
|
|
100273
|
+
class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
100274
|
+
static getAcceptNodeClass() {
|
|
100275
|
+
return _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode;
|
|
100276
|
+
}
|
|
100277
|
+
get nodePaths() {
|
|
100278
|
+
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
100279
|
+
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
|
|
100280
|
+
}
|
|
100281
|
+
doBuildDataDeclaration(context) {
|
|
100282
|
+
return {};
|
|
100283
|
+
}
|
|
100284
|
+
doBuildNormalizeRules(builder, formSchemaRng) {
|
|
100285
|
+
var _node$pathToChecked;
|
|
100286
|
+
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
100287
|
+
const pathToCheckedArray = (0,_Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__.buildDirtyPathForMultiplicityAndCheckboxPath)(node.getFullPath(), (_node$pathToChecked = node.pathToChecked) !== null && _node$pathToChecked !== void 0 ? _node$pathToChecked : "checked");
|
|
100288
|
+
return node.dirtyModeInstancesCount != undefined ? [new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.ValueReferenceExpression(pathToCheckedArray, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.NullLiteralExpression())] : [];
|
|
100289
|
+
}
|
|
100290
|
+
buildChildrenDataDeclaration(context) {
|
|
100291
|
+
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
100292
|
+
return context.processChildrenDataDeclaration(node.children);
|
|
100293
|
+
}
|
|
100294
|
+
*doTraverseChildren() {
|
|
100295
|
+
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
100296
|
+
yield* node.children;
|
|
100297
|
+
}
|
|
100298
|
+
doConvert(context) {
|
|
100299
|
+
var _node$filteredUniqKey, _node$uncheckedValue, _node$checkedValue;
|
|
100300
|
+
const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
|
|
100301
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SelectAllCheckbox");
|
|
100302
|
+
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
|
|
100303
|
+
markupBuilder.prop(x => x.pathToChecked).set(node.getPathToChecked());
|
|
100304
|
+
markupBuilder.prop("data-tid").set(node.tid);
|
|
100305
|
+
markupBuilder.prop(x => x.filteredUniqKey).set((_node$filteredUniqKey = node.filteredUniqKey) !== null && _node$filteredUniqKey !== void 0 ? _node$filteredUniqKey : "default");
|
|
100306
|
+
markupBuilder.prop(x => x.uncheckedValue).set((_node$uncheckedValue = node.uncheckedValue) !== null && _node$uncheckedValue !== void 0 ? _node$uncheckedValue : "false");
|
|
100307
|
+
markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : "true");
|
|
100308
|
+
markupBuilder.prop(x => x.dirtyModeInstancesCount).set(node.dirtyModeInstancesCount);
|
|
100309
|
+
if (node.disabled2 != undefined) {
|
|
100310
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
|
|
100311
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
100312
|
+
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
100313
|
+
}
|
|
100314
|
+
}
|
|
100315
|
+
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
100316
|
+
return markupBuilder.buildConverterResult();
|
|
100317
|
+
}
|
|
100318
|
+
}
|
|
100319
|
+
|
|
100320
|
+
/***/ }),
|
|
100321
|
+
|
|
100322
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts":
|
|
100323
|
+
/*!****************************************************************************************************************************!*\
|
|
100324
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts ***!
|
|
100325
|
+
\****************************************************************************************************************************/
|
|
100326
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
100327
|
+
|
|
100328
|
+
"use strict";
|
|
100329
|
+
__webpack_require__.r(__webpack_exports__);
|
|
100330
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
100331
|
+
/* harmony export */ SelectAllCheckboxNode: () => (/* binding */ SelectAllCheckboxNode)
|
|
100332
|
+
/* harmony export */ });
|
|
100333
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
100334
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
100335
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
100336
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
100337
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
100338
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
100339
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
100340
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
100341
|
+
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
100342
|
+
/* harmony import */ var _CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../CommonNodeProperties/FocusManagementNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/FocusManagementNode.ts");
|
|
100343
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
100344
|
+
|
|
100345
|
+
|
|
100346
|
+
|
|
100347
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
100348
|
+
|
|
100349
|
+
|
|
100350
|
+
|
|
100351
|
+
|
|
100352
|
+
|
|
100353
|
+
let SelectAllCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("selectallcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath.required, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Должен указывать на множественный элемент, в котором проставляются галочки.`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToChecked", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} относительного пути (от текущего значения в path) до поля с галочкой. По умолчанию значение 'checked'`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_6__.FocusManagementNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_4__.TooltipSettingsNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("filteredUniqKey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Уникальный ключ фильтрации multiline, используется, для фильтраций одних и тех же путей иннера
|
|
100354
|
+
разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("dirtyModeInstancesCount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Опция включает режим простановки галочек без фактического расчёта формул и валидаций, зависящих от них`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам во включенном состоянии. По-умолчанию, "true"`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам в выключенном состоянии. По-умолчанию, "false"`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class SelectAllCheckboxNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
100355
|
+
constructor(...args) {
|
|
100356
|
+
super(...args);
|
|
100357
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor, this);
|
|
100358
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToChecked", _descriptor2, this);
|
|
100359
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "focusManagement", _descriptor3, this);
|
|
100360
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor4, this);
|
|
100361
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor5, this);
|
|
100362
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor6, this);
|
|
100363
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filteredUniqKey", _descriptor7, this);
|
|
100364
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dirtyModeInstancesCount", _descriptor8, this);
|
|
100365
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor9, this);
|
|
100366
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor10, this);
|
|
100367
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
|
|
100368
|
+
}
|
|
100369
|
+
getOwnPath() {
|
|
100370
|
+
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each) : undefined;
|
|
100371
|
+
}
|
|
100372
|
+
getPathToChecked() {
|
|
100373
|
+
var _this$pathToChecked;
|
|
100374
|
+
return (_this$pathToChecked = this.pathToChecked) !== null && _this$pathToChecked !== void 0 ? _this$pathToChecked : "checked";
|
|
100375
|
+
}
|
|
100376
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec2], {
|
|
100377
|
+
configurable: true,
|
|
100378
|
+
enumerable: true,
|
|
100379
|
+
writable: true,
|
|
100380
|
+
initializer: null
|
|
100381
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pathToChecked", [_dec3], {
|
|
100382
|
+
configurable: true,
|
|
100383
|
+
enumerable: true,
|
|
100384
|
+
writable: true,
|
|
100385
|
+
initializer: null
|
|
100386
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "focusManagement", [_dec4], {
|
|
100387
|
+
configurable: true,
|
|
100388
|
+
enumerable: true,
|
|
100389
|
+
writable: true,
|
|
100390
|
+
initializer: null
|
|
100391
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec5], {
|
|
100392
|
+
configurable: true,
|
|
100393
|
+
enumerable: true,
|
|
100394
|
+
writable: true,
|
|
100395
|
+
initializer: null
|
|
100396
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec6], {
|
|
100397
|
+
configurable: true,
|
|
100398
|
+
enumerable: true,
|
|
100399
|
+
writable: true,
|
|
100400
|
+
initializer: null
|
|
100401
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tooltipSettings", [_dec7], {
|
|
100402
|
+
configurable: true,
|
|
100403
|
+
enumerable: true,
|
|
100404
|
+
writable: true,
|
|
100405
|
+
initializer: null
|
|
100406
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "filteredUniqKey", [_dec8], {
|
|
100407
|
+
configurable: true,
|
|
100408
|
+
enumerable: true,
|
|
100409
|
+
writable: true,
|
|
100410
|
+
initializer: null
|
|
100411
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dirtyModeInstancesCount", [_dec9], {
|
|
100412
|
+
configurable: true,
|
|
100413
|
+
enumerable: true,
|
|
100414
|
+
writable: true,
|
|
100415
|
+
initializer: null
|
|
100416
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "checkedValue", [_dec10], {
|
|
100417
|
+
configurable: true,
|
|
100418
|
+
enumerable: true,
|
|
100419
|
+
writable: true,
|
|
100420
|
+
initializer: null
|
|
100421
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "uncheckedValue", [_dec11], {
|
|
100422
|
+
configurable: true,
|
|
100423
|
+
enumerable: true,
|
|
100424
|
+
writable: true,
|
|
100425
|
+
initializer: null
|
|
100426
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
|
|
100427
|
+
configurable: true,
|
|
100428
|
+
enumerable: true,
|
|
100429
|
+
writable: true,
|
|
100430
|
+
initializer: null
|
|
100431
|
+
}), _class2)) || _class);
|
|
100432
|
+
|
|
100433
|
+
/***/ }),
|
|
100434
|
+
|
|
100435
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxConverter.ts":
|
|
100436
|
+
/*!***************************************************************************************************************************!*\
|
|
100437
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxConverter.ts ***!
|
|
100438
|
+
\***************************************************************************************************************************/
|
|
100439
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
100440
|
+
|
|
100441
|
+
"use strict";
|
|
100442
|
+
__webpack_require__.r(__webpack_exports__);
|
|
100443
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
100444
|
+
/* harmony export */ SelectCheckboxConverter: () => (/* binding */ SelectCheckboxConverter)
|
|
100445
|
+
/* harmony export */ });
|
|
100446
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
100447
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
100448
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
100449
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
100450
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
100451
|
+
/* harmony import */ var _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SelectCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts");
|
|
100452
|
+
|
|
100453
|
+
|
|
100454
|
+
|
|
100455
|
+
|
|
100456
|
+
|
|
100457
|
+
|
|
100458
|
+
class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
100459
|
+
static getAcceptNodeClass() {
|
|
100460
|
+
return _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode;
|
|
100461
|
+
}
|
|
100462
|
+
get nodePaths() {
|
|
100463
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100464
|
+
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node)];
|
|
100465
|
+
}
|
|
100466
|
+
doBuildNodeValidations(validationGenerator) {
|
|
100467
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100468
|
+
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
100469
|
+
}
|
|
100470
|
+
doBuildDataDeclaration(context) {
|
|
100471
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100472
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false, this.getDefaultValue(node))]]), context.addSpecialFieldsEntry(node, {
|
|
100473
|
+
optional: node.dataBinding.optional
|
|
100474
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
100475
|
+
}
|
|
100476
|
+
doBuildNormalizeRules(builder) {
|
|
100477
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100478
|
+
return [builder.valueInitializer(node, node.dataBinding, false)];
|
|
100479
|
+
}
|
|
100480
|
+
getDefaultValue(node) {
|
|
100481
|
+
var _node$dataBinding$def;
|
|
100482
|
+
const defaultValue = (_node$dataBinding$def = node.dataBinding.defaultValue) !== null && _node$dataBinding$def !== void 0 ? _node$dataBinding$def : "";
|
|
100483
|
+
if (defaultValue) {
|
|
100484
|
+
if (defaultValue === "checked" || defaultValue === node.checkedValue) {
|
|
100485
|
+
var _node$checkedValue;
|
|
100486
|
+
return (_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : true;
|
|
100487
|
+
} else {
|
|
100488
|
+
var _node$uncheckedValue;
|
|
100489
|
+
return (_node$uncheckedValue = node.uncheckedValue) !== null && _node$uncheckedValue !== void 0 ? _node$uncheckedValue : false;
|
|
100490
|
+
}
|
|
100491
|
+
}
|
|
100492
|
+
return defaultValue;
|
|
100493
|
+
}
|
|
100494
|
+
buildChildrenDataDeclaration(context) {
|
|
100495
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100496
|
+
return context.processChildrenDataDeclaration(node.children);
|
|
100497
|
+
}
|
|
100498
|
+
*doTraverseChildren() {
|
|
100499
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100500
|
+
yield* node.children;
|
|
100501
|
+
}
|
|
100502
|
+
doConvert(context) {
|
|
100503
|
+
var _node$checkedValue2, _node$uncheckedValue2;
|
|
100504
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_5__.SelectCheckboxNode);
|
|
100505
|
+
this.ensurePathExists(node, node.dataBinding.path);
|
|
100506
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("SelectCheckbox");
|
|
100507
|
+
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
100508
|
+
markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue2 = node.checkedValue) !== null && _node$checkedValue2 !== void 0 ? _node$checkedValue2 : "true");
|
|
100509
|
+
markupBuilder.prop("data-tid").set(node.tid);
|
|
100510
|
+
markupBuilder.prop(x => x.uncheckedValue).set((_node$uncheckedValue2 = node.uncheckedValue) !== null && _node$uncheckedValue2 !== void 0 ? _node$uncheckedValue2 : "false");
|
|
100511
|
+
if (node.callHelperOnChange) {
|
|
100512
|
+
markupBuilder.prop(x => x.callHelperOnChange).set(context.generateHelperFunctionExpression(node, "callHelperOnChange", node.callHelperOnChange));
|
|
100513
|
+
}
|
|
100514
|
+
if (node.disabled2 != undefined) {
|
|
100515
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
|
|
100516
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
100517
|
+
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
100518
|
+
}
|
|
100519
|
+
}
|
|
100520
|
+
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
100521
|
+
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
100522
|
+
return markupBuilder.buildConverterResult();
|
|
100523
|
+
}
|
|
100524
|
+
}
|
|
100525
|
+
|
|
100526
|
+
/***/ }),
|
|
100527
|
+
|
|
100528
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts":
|
|
100529
|
+
/*!**********************************************************************************************************************!*\
|
|
100530
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts ***!
|
|
100531
|
+
\**********************************************************************************************************************/
|
|
100532
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
100533
|
+
|
|
100534
|
+
"use strict";
|
|
100535
|
+
__webpack_require__.r(__webpack_exports__);
|
|
100536
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
100537
|
+
/* harmony export */ SelectCheckboxNode: () => (/* binding */ SelectCheckboxNode)
|
|
100538
|
+
/* harmony export */ });
|
|
100539
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
100540
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
100541
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
100542
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
100543
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
100544
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
100545
|
+
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
100546
|
+
/* harmony import */ var _CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
100547
|
+
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
100548
|
+
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
100549
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
100550
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
100551
|
+
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
100552
|
+
/* harmony import */ var _CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../CommonNodeProperties/FocusManagementNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/FocusManagementNode.ts");
|
|
100553
|
+
|
|
100554
|
+
|
|
100555
|
+
|
|
100556
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
100557
|
+
|
|
100558
|
+
|
|
100559
|
+
|
|
100560
|
+
|
|
100561
|
+
|
|
100562
|
+
|
|
100563
|
+
|
|
100564
|
+
|
|
100565
|
+
let SelectCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("selectcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__.FocusManagementNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("callHelperOnChange", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.helperFunctionName, "Вызов helper функции на onChange контролла"), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class SelectCheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
|
|
100566
|
+
constructor(...args) {
|
|
100567
|
+
super(...args);
|
|
100568
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
|
|
100569
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "focusManagement", _descriptor2, this);
|
|
100570
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor3, this);
|
|
100571
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor4, this);
|
|
100572
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor5, this);
|
|
100573
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor6, this);
|
|
100574
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor7, this);
|
|
100575
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor8, this);
|
|
100576
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor9, this);
|
|
100577
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnChange", _descriptor10, this);
|
|
100578
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
|
|
100579
|
+
}
|
|
100580
|
+
getOwnPath() {
|
|
100581
|
+
return this.dataBinding.getOwnPath();
|
|
100582
|
+
}
|
|
100583
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataBinding", [_dec2], {
|
|
100584
|
+
configurable: true,
|
|
100585
|
+
enumerable: true,
|
|
100586
|
+
writable: true,
|
|
100587
|
+
initializer: null
|
|
100588
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "focusManagement", [_dec3], {
|
|
100589
|
+
configurable: true,
|
|
100590
|
+
enumerable: true,
|
|
100591
|
+
writable: true,
|
|
100592
|
+
initializer: null
|
|
100593
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec4], {
|
|
100594
|
+
configurable: true,
|
|
100595
|
+
enumerable: true,
|
|
100596
|
+
writable: true,
|
|
100597
|
+
initializer: null
|
|
100598
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec5], {
|
|
100599
|
+
configurable: true,
|
|
100600
|
+
enumerable: true,
|
|
100601
|
+
writable: true,
|
|
100602
|
+
initializer: null
|
|
100603
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec6], {
|
|
100604
|
+
configurable: true,
|
|
100605
|
+
enumerable: true,
|
|
100606
|
+
writable: true,
|
|
100607
|
+
initializer: null
|
|
100608
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "validationInfo", [_dec7], {
|
|
100609
|
+
configurable: true,
|
|
100610
|
+
enumerable: true,
|
|
100611
|
+
writable: true,
|
|
100612
|
+
initializer: null
|
|
100613
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tooltipSettings", [_dec8], {
|
|
100614
|
+
configurable: true,
|
|
100615
|
+
enumerable: true,
|
|
100616
|
+
writable: true,
|
|
100617
|
+
initializer: null
|
|
100618
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "checkedValue", [_dec9], {
|
|
100619
|
+
configurable: true,
|
|
100620
|
+
enumerable: true,
|
|
100621
|
+
writable: true,
|
|
100622
|
+
initializer: null
|
|
100623
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "uncheckedValue", [_dec10], {
|
|
100624
|
+
configurable: true,
|
|
100625
|
+
enumerable: true,
|
|
100626
|
+
writable: true,
|
|
100627
|
+
initializer: null
|
|
100628
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "callHelperOnChange", [_dec11], {
|
|
100629
|
+
configurable: true,
|
|
100630
|
+
enumerable: true,
|
|
100631
|
+
writable: true,
|
|
100632
|
+
initializer: null
|
|
100633
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
|
|
100634
|
+
configurable: true,
|
|
100635
|
+
enumerable: true,
|
|
100636
|
+
writable: true,
|
|
100637
|
+
initializer: null
|
|
100638
|
+
}), _class2)) || _class);
|
|
100639
|
+
|
|
100640
|
+
/***/ }),
|
|
100641
|
+
|
|
100642
100642
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TaxRebate/TaxRebateConverter.ts":
|
|
100643
100643
|
/*!*****************************************************************************************************************!*\
|
|
100644
100644
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TaxRebate/TaxRebateConverter.ts ***!
|
|
@@ -135741,16 +135741,6 @@ module.exports = "";
|
|
|
135741
135741
|
|
|
135742
135742
|
/***/ }),
|
|
135743
135743
|
|
|
135744
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/description.md":
|
|
135745
|
-
/*!******************************************************************************************************!*\
|
|
135746
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/description.md ***!
|
|
135747
|
-
\******************************************************************************************************/
|
|
135748
|
-
/***/ ((module) => {
|
|
135749
|
-
|
|
135750
|
-
module.exports = "Элемент для отображения информации из классификации: `Форма по КНД ${КНД}, {description}, версия формата ${fp:ВерсФорм | fp:specVersion |fp:F4FORM_version}`.\n\nЕсли у формы нет КНД (например, ФСС), то указывается атрибут `name` с названием формы.\n\nДля форм статистической отчетности неактуально.\n";
|
|
135751
|
-
|
|
135752
|
-
/***/ }),
|
|
135753
|
-
|
|
135754
135744
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/description.md":
|
|
135755
135745
|
/*!**************************************************************************************************!*\
|
|
135756
135746
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/description.md ***!
|
|
@@ -135761,6 +135751,16 @@ module.exports = "`templates=\"true\"` включает шаблоны (в candy
|
|
|
135761
135751
|
|
|
135762
135752
|
/***/ }),
|
|
135763
135753
|
|
|
135754
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/description.md":
|
|
135755
|
+
/*!******************************************************************************************************!*\
|
|
135756
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/FormInfo/description.md ***!
|
|
135757
|
+
\******************************************************************************************************/
|
|
135758
|
+
/***/ ((module) => {
|
|
135759
|
+
|
|
135760
|
+
module.exports = "Элемент для отображения информации из классификации: `Форма по КНД ${КНД}, {description}, версия формата ${fp:ВерсФорм | fp:specVersion |fp:F4FORM_version}`.\n\nЕсли у формы нет КНД (например, ФСС), то указывается атрибут `name` с названием формы.\n\nДля форм статистической отчетности неактуально.\n";
|
|
135761
|
+
|
|
135762
|
+
/***/ }),
|
|
135763
|
+
|
|
135764
135764
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/description.md":
|
|
135765
135765
|
/*!**************************************************************************************************!*\
|
|
135766
135766
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/description.md ***!
|
|
@@ -135841,6 +135841,16 @@ module.exports = "Выравнивание по базвой линии не в
|
|
|
135841
135841
|
|
|
135842
135842
|
/***/ }),
|
|
135843
135843
|
|
|
135844
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/description.md":
|
|
135845
|
+
/*!***************************************************************************************************!*\
|
|
135846
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/description.md ***!
|
|
135847
|
+
\***************************************************************************************************/
|
|
135848
|
+
/***/ ((module) => {
|
|
135849
|
+
|
|
135850
|
+
module.exports = "Модальное окно с компонентами из сахара. \n\nВ `<modalformlabel>` указывается контролы, при клике на которых открывется модальное окно, которые описывается в теге `<modalform>` вместе с остальными детьми.\n\nМодальные окна поддерживают вложенность.\n\nЗаголовок можно задать с помощью `<header>` или атрибута header в modalform.\nМожно не указывать `<footer>`, в этом случае отобразится дефолтный с кнопками \"Сохранить\" и \"Отменить\".\nФутер может содержать элементы `<modalformconfirm>` и `<modalformcancel>` и при клике на них вызваются действия \"Сохранить\" или \"Отменить\".\nТег `<body>` содержит основной контент модального окна.\n\nПример:\n```html\n<modalformlabel>\n <button path=\"button\">Открыть модальное окно</button>\n <modalform width=\"800\" footerPanel=\"true\">\n <header>\n ...Настраиваемый из сахара заголовк\n </header>\n <body>\n ...Контент в форме\n </body>\n <footer>\n ...Настраиваемый из сахара футер\n <modalformconfirm>\n <button use=\"primary\" size=\"medium\">\n Подтвердить\n </button>\n </modalformconfirm>\n <modalformcancel>\n <button use=\"link\" path=\"button\">\n Отменить\n </button>\n </modalformcancel>\n </footer>\n </modalform>\n</modalformlabel>\n```\n\nЕсли нужно игнорировать валидацию какого-либо контрола внутри модалки (например, какого-то текста), можно указать атрибут excludedVerifiablePath. Тогда путь, указанный в атрибуте, не бует валиироваться.\nПример:\n```html\n<modalform width=\"1050\" footerPanel=\"true\" excludedVerifiablePath=\"НаимВпсПкз\">\n <header>\n Детализация вписываемых показателей\n <subheader>\n $[caption]\n <text path=\"НаимВпсПкз\" />\n </subheader>\n </header>\n ...\n</modalform>\n```";
|
|
135851
|
+
|
|
135852
|
+
/***/ }),
|
|
135853
|
+
|
|
135844
135854
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalFormCancel/description.md":
|
|
135845
135855
|
/*!*********************************************************************************************************!*\
|
|
135846
135856
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalFormCancel/description.md ***!
|
|
@@ -135871,16 +135881,6 @@ module.exports = "Обязательно должен содержать <modalf
|
|
|
135871
135881
|
|
|
135872
135882
|
/***/ }),
|
|
135873
135883
|
|
|
135874
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/description.md":
|
|
135875
|
-
/*!***************************************************************************************************!*\
|
|
135876
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Modal/ModalForm/description.md ***!
|
|
135877
|
-
\***************************************************************************************************/
|
|
135878
|
-
/***/ ((module) => {
|
|
135879
|
-
|
|
135880
|
-
module.exports = "Модальное окно с компонентами из сахара. \n\nВ `<modalformlabel>` указывается контролы, при клике на которых открывется модальное окно, которые описывается в теге `<modalform>` вместе с остальными детьми.\n\nМодальные окна поддерживают вложенность.\n\nЗаголовок можно задать с помощью `<header>` или атрибута header в modalform.\nМожно не указывать `<footer>`, в этом случае отобразится дефолтный с кнопками \"Сохранить\" и \"Отменить\".\nФутер может содержать элементы `<modalformconfirm>` и `<modalformcancel>` и при клике на них вызваются действия \"Сохранить\" или \"Отменить\".\nТег `<body>` содержит основной контент модального окна.\n\nПример:\n```html\n<modalformlabel>\n <button path=\"button\">Открыть модальное окно</button>\n <modalform width=\"800\" footerPanel=\"true\">\n <header>\n ...Настраиваемый из сахара заголовк\n </header>\n <body>\n ...Контент в форме\n </body>\n <footer>\n ...Настраиваемый из сахара футер\n <modalformconfirm>\n <button use=\"primary\" size=\"medium\">\n Подтвердить\n </button>\n </modalformconfirm>\n <modalformcancel>\n <button use=\"link\" path=\"button\">\n Отменить\n </button>\n </modalformcancel>\n </footer>\n </modalform>\n</modalformlabel>\n```\n\nЕсли нужно игнорировать валидацию какого-либо контрола внутри модалки (например, какого-то текста), можно указать атрибут excludedVerifiablePath. Тогда путь, указанный в атрибуте, не бует валиироваться.\nПример:\n```html\n<modalform width=\"1050\" footerPanel=\"true\" excludedVerifiablePath=\"НаимВпсПкз\">\n <header>\n Детализация вписываемых показателей\n <subheader>\n $[caption]\n <text path=\"НаимВпсПкз\" />\n </subheader>\n </header>\n ...\n</modalform>\n```";
|
|
135881
|
-
|
|
135882
|
-
/***/ }),
|
|
135883
|
-
|
|
135884
135884
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/FilterDateRange/example.md":
|
|
135885
135885
|
/*!*************************************************************************************************************!*\
|
|
135886
135886
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/FilterDateRange/example.md ***!
|