@kontur.candy/generator 4.272.0-pribyl-copy-application5.3 → 4.272.0-react-ui4.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 +289 -172
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34469,7 +34469,7 @@ function highlight(code, options = {}) {
|
|
|
34469
34469
|
|
|
34470
34470
|
"use strict";
|
|
34471
34471
|
|
|
34472
|
-
const escapeStringRegexp = __webpack_require__(/*! escape-string-regexp */ "./node_modules/escape-string-regexp/index.js");
|
|
34472
|
+
const escapeStringRegexp = __webpack_require__(/*! escape-string-regexp */ "./node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js");
|
|
34473
34473
|
const ansiStyles = __webpack_require__(/*! ansi-styles */ "./node_modules/ansi-styles/index.js");
|
|
34474
34474
|
const stdoutColor = (__webpack_require__(/*! supports-color */ "./node_modules/@babel/highlight/node_modules/supports-color/index.js").stdout);
|
|
34475
34475
|
|
|
@@ -34837,6 +34837,28 @@ module.exports = (chalk, tmp) => {
|
|
|
34837
34837
|
};
|
|
34838
34838
|
|
|
34839
34839
|
|
|
34840
|
+
/***/ }),
|
|
34841
|
+
|
|
34842
|
+
/***/ "./node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js":
|
|
34843
|
+
/*!**********************************************************************************!*\
|
|
34844
|
+
!*** ./node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js ***!
|
|
34845
|
+
\**********************************************************************************/
|
|
34846
|
+
/***/ ((module) => {
|
|
34847
|
+
|
|
34848
|
+
"use strict";
|
|
34849
|
+
|
|
34850
|
+
|
|
34851
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
34852
|
+
|
|
34853
|
+
module.exports = function (str) {
|
|
34854
|
+
if (typeof str !== 'string') {
|
|
34855
|
+
throw new TypeError('Expected a string');
|
|
34856
|
+
}
|
|
34857
|
+
|
|
34858
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
34859
|
+
};
|
|
34860
|
+
|
|
34861
|
+
|
|
34840
34862
|
/***/ }),
|
|
34841
34863
|
|
|
34842
34864
|
/***/ "./node_modules/@babel/highlight/node_modules/has-flag/index.js":
|
|
@@ -115386,7 +115408,7 @@ class KCLangAntlrVisitor {
|
|
|
115386
115408
|
const expression = ctx.expression();
|
|
115387
115409
|
const withBlocks = ctx.withBlock().map(i => i.accept(this));
|
|
115388
115410
|
let description = "";
|
|
115389
|
-
let errorLevel =
|
|
115411
|
+
let errorLevel = undefined;
|
|
115390
115412
|
|
|
115391
115413
|
for (const withBlock of withBlocks) {
|
|
115392
115414
|
if (withBlock) {
|
|
@@ -121532,10 +121554,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
121532
121554
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
121533
121555
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
121534
121556
|
/* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
|
|
121535
|
-
/* harmony import */ var
|
|
121536
|
-
/* harmony import */ var
|
|
121537
|
-
/* harmony import */ var
|
|
121538
|
-
/* harmony import */ var
|
|
121557
|
+
/* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../StringUtils */ "./Generator/src/common/StringUtils.ts");
|
|
121558
|
+
/* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
|
|
121559
|
+
/* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
|
|
121560
|
+
/* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
|
|
121561
|
+
/* harmony import */ var _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Antlr/KCLangAntlrParser */ "./Generator/src/common/KCLang/Antlr/KCLangAntlrParser.ts");
|
|
121562
|
+
|
|
121539
121563
|
|
|
121540
121564
|
|
|
121541
121565
|
|
|
@@ -121640,7 +121664,7 @@ function generateKCXmlExpression(expression) {
|
|
|
121640
121664
|
}
|
|
121641
121665
|
|
|
121642
121666
|
function formatDescribeStatement(ast, matchPath, describe) {
|
|
121643
|
-
return
|
|
121667
|
+
return _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_5__.KCLangDescriptionParser.parse(describe.text).map(item => {
|
|
121644
121668
|
if (typeof item === "string") {
|
|
121645
121669
|
return item;
|
|
121646
121670
|
} else {
|
|
@@ -121672,12 +121696,12 @@ function generateBlockKCXmlFormulas(block, parents) {
|
|
|
121672
121696
|
let lastDescribeStatement;
|
|
121673
121697
|
|
|
121674
121698
|
for (const statement of block.statements) {
|
|
121675
|
-
if ((0,
|
|
121699
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isFormulaStatement)(statement)) {
|
|
121676
121700
|
result.push(generateKCXmlFormula(statement, matchPath, lastDescribeStatement));
|
|
121677
121701
|
lastDescribeStatement = undefined;
|
|
121678
121702
|
}
|
|
121679
121703
|
|
|
121680
|
-
if ((0,
|
|
121704
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(statement)) {
|
|
121681
121705
|
lastDescribeStatement = undefined;
|
|
121682
121706
|
}
|
|
121683
121707
|
|
|
@@ -121685,11 +121709,11 @@ function generateBlockKCXmlFormulas(block, parents) {
|
|
|
121685
121709
|
throw new Error("Describe should be placed before assign of ensure statements");
|
|
121686
121710
|
}
|
|
121687
121711
|
|
|
121688
|
-
if ((0,
|
|
121712
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(statement)) {
|
|
121689
121713
|
lastDescribeStatement = statement;
|
|
121690
121714
|
}
|
|
121691
121715
|
|
|
121692
|
-
if ((0,
|
|
121716
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(statement)) {
|
|
121693
121717
|
result.push(generateBlockKCXmlFormulas(statement, [...(parents !== null && parents !== void 0 ? parents : []), block]));
|
|
121694
121718
|
}
|
|
121695
121719
|
}
|
|
@@ -121700,7 +121724,7 @@ function generateBlockKCXmlFormulas(block, parents) {
|
|
|
121700
121724
|
function guessConditionTarget(condition) {
|
|
121701
121725
|
let result;
|
|
121702
121726
|
|
|
121703
|
-
class GuessConditionTargetVisitor extends
|
|
121727
|
+
class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__.DefaultKCLangExpressionVisitor {
|
|
121704
121728
|
visitExistsKCLangNode(node) {
|
|
121705
121729
|
if (result == undefined) {
|
|
121706
121730
|
result = node.select;
|
|
@@ -121721,12 +121745,12 @@ function guessConditionTarget(condition) {
|
|
|
121721
121745
|
|
|
121722
121746
|
}
|
|
121723
121747
|
|
|
121724
|
-
(0,
|
|
121748
|
+
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
121725
121749
|
return result;
|
|
121726
121750
|
}
|
|
121727
121751
|
|
|
121728
121752
|
function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
|
|
121729
|
-
const levelAttr = ast.level === "
|
|
121753
|
+
const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
|
|
121730
121754
|
const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
|
|
121731
121755
|
const guessedTarget = guessConditionTarget(ast);
|
|
121732
121756
|
const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
|
|
@@ -121734,7 +121758,7 @@ function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
|
|
|
121734
121758
|
if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
|
|
121735
121759
|
var _parentConditions$map;
|
|
121736
121760
|
|
|
121737
|
-
const condition = parentConditions.length === 1 ? parentConditions[0].condition : (0,
|
|
121761
|
+
const condition = parentConditions.length === 1 ? parentConditions[0].condition : (0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.andKCLangNode)(...((_parentConditions$map = parentConditions === null || parentConditions === void 0 ? void 0 : parentConditions.map(z => z.condition)) !== null && _parentConditions$map !== void 0 ? _parentConditions$map : []));
|
|
121738
121762
|
return `<m:condition match="${matchPath}"${descriptionAttr}${levelAttr}${targetAttr}>\n` + ` <m:when>\n` + (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(condition), 2) + "\n" + (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(ast.expression), 2) + "\n" + ` </m:when>\n` + `</m:condition>`;
|
|
121739
121763
|
}
|
|
121740
121764
|
|
|
@@ -121747,11 +121771,11 @@ function generateBlockKCXmlConditions(block, parents, parentConditions) {
|
|
|
121747
121771
|
let lastDescribeStatement;
|
|
121748
121772
|
|
|
121749
121773
|
for (const statement of block.statements) {
|
|
121750
|
-
if ((0,
|
|
121774
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isFormulaStatement)(statement)) {
|
|
121751
121775
|
lastDescribeStatement = undefined;
|
|
121752
121776
|
}
|
|
121753
121777
|
|
|
121754
|
-
if ((0,
|
|
121778
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(statement)) {
|
|
121755
121779
|
result.push(generateKCXmlCondition(statement, matchPath, parentConditions, lastDescribeStatement));
|
|
121756
121780
|
lastDescribeStatement = undefined;
|
|
121757
121781
|
}
|
|
@@ -121760,15 +121784,15 @@ function generateBlockKCXmlConditions(block, parents, parentConditions) {
|
|
|
121760
121784
|
throw new Error("Describe should be placed before assign of ensure statements");
|
|
121761
121785
|
}
|
|
121762
121786
|
|
|
121763
|
-
if ((0,
|
|
121787
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(statement)) {
|
|
121764
121788
|
lastDescribeStatement = statement;
|
|
121765
121789
|
}
|
|
121766
121790
|
|
|
121767
|
-
if ((0,
|
|
121791
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isConditionalStatement)(statement)) {
|
|
121768
121792
|
result.push(generateConditionalConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
|
|
121769
121793
|
}
|
|
121770
121794
|
|
|
121771
|
-
if ((0,
|
|
121795
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(statement)) {
|
|
121772
121796
|
result.push(generateBlockKCXmlConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
|
|
121773
121797
|
}
|
|
121774
121798
|
}
|
|
@@ -121782,7 +121806,7 @@ function generateConditionalConditions(conditionalStatement, parents, parentCond
|
|
|
121782
121806
|
let lastDescribeStatement;
|
|
121783
121807
|
|
|
121784
121808
|
for (const x of conditionalStatement.statements) {
|
|
121785
|
-
if ((0,
|
|
121809
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(x)) {
|
|
121786
121810
|
result.push(generateKCXmlCondition(x, matchPath, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement], lastDescribeStatement));
|
|
121787
121811
|
lastDescribeStatement = undefined;
|
|
121788
121812
|
}
|
|
@@ -121791,15 +121815,15 @@ function generateConditionalConditions(conditionalStatement, parents, parentCond
|
|
|
121791
121815
|
throw new Error("Describe should be placed before assign of ensure statements");
|
|
121792
121816
|
}
|
|
121793
121817
|
|
|
121794
|
-
if ((0,
|
|
121818
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(x)) {
|
|
121795
121819
|
lastDescribeStatement = x;
|
|
121796
121820
|
}
|
|
121797
121821
|
|
|
121798
|
-
if ((0,
|
|
121822
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isConditionalStatement)(x)) {
|
|
121799
121823
|
result.push(generateConditionalConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
|
|
121800
121824
|
}
|
|
121801
121825
|
|
|
121802
|
-
if ((0,
|
|
121826
|
+
if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(x)) {
|
|
121803
121827
|
result.push(generateBlockKCXmlConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
|
|
121804
121828
|
}
|
|
121805
121829
|
}
|
|
@@ -121833,7 +121857,7 @@ function generateKCXml(blocks) {
|
|
|
121833
121857
|
|
|
121834
121858
|
class KCLangToXmlTranspiler {
|
|
121835
121859
|
static transpile(kcLang, customParser) {
|
|
121836
|
-
const parser = customParser !== null && customParser !== void 0 ? customParser :
|
|
121860
|
+
const parser = customParser !== null && customParser !== void 0 ? customParser : _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_7__.KCLangAntlrParser.parse;
|
|
121837
121861
|
const kcxml = generateKCXml(parser(kcLang).blocks);
|
|
121838
121862
|
return kcxml;
|
|
121839
121863
|
}
|
|
@@ -121927,6 +121951,10 @@ class FormSchemaRngAttribute {
|
|
|
121927
121951
|
return this.optional || this.nillable || false;
|
|
121928
121952
|
}
|
|
121929
121953
|
|
|
121954
|
+
isOptional() {
|
|
121955
|
+
return this.isOptionalOrNillable() || this.parent.isOptionalOrNillable();
|
|
121956
|
+
}
|
|
121957
|
+
|
|
121930
121958
|
}
|
|
121931
121959
|
const RootParent = Symbol.for("__ROOT_ELEMENT_PARENT__");
|
|
121932
121960
|
class FormSchemaRngElement {
|
|
@@ -121978,6 +122006,10 @@ class FormSchemaRngElement {
|
|
|
121978
122006
|
return this.optional || this.nillable || false;
|
|
121979
122007
|
}
|
|
121980
122008
|
|
|
122009
|
+
isOptional() {
|
|
122010
|
+
return this.isOptionalOrNillable();
|
|
122011
|
+
}
|
|
122012
|
+
|
|
121981
122013
|
getChildren() {
|
|
121982
122014
|
return this.children;
|
|
121983
122015
|
}
|
|
@@ -131501,7 +131533,7 @@ class FLangValidationBuildContext {
|
|
|
131501
131533
|
}, undefined);
|
|
131502
131534
|
|
|
131503
131535
|
if (enumerationRuleBody != undefined) {
|
|
131504
|
-
yield [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(enumerationRuleBody), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле
|
|
131536
|
+
yield [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(enumerationRuleBody), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле заполнено не по справочнику"]`)];
|
|
131505
131537
|
}
|
|
131506
131538
|
|
|
131507
131539
|
const makeArrayLiteral = text => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${text}"]`);
|
|
@@ -131562,7 +131594,7 @@ class FLangValidationBuildContext {
|
|
|
131562
131594
|
const totalDigitsValue = (_typeNodeTotalDigits$ = typeNodeTotalDigits === null || typeNodeTotalDigits === void 0 ? void 0 : typeNodeTotalDigits.value) !== null && _typeNodeTotalDigits$ !== void 0 ? _typeNodeTotalDigits$ : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.totalDigits;
|
|
131563
131595
|
|
|
131564
131596
|
if (totalDigitsValue != undefined) {
|
|
131565
|
-
const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.
|
|
131597
|
+
const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NumLenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.DecimalLiteralExpression(totalDigitsValue)));
|
|
131566
131598
|
yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Число не может содержать более ${totalDigitsValue} знаков"]`)];
|
|
131567
131599
|
}
|
|
131568
131600
|
|
|
@@ -131570,8 +131602,11 @@ class FLangValidationBuildContext {
|
|
|
131570
131602
|
const pattern = (_typeNodePattern$valu = typeNodePattern === null || typeNodePattern === void 0 ? void 0 : typeNodePattern.value) !== null && _typeNodePattern$valu !== void 0 ? _typeNodePattern$valu : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : (_schemaTypeNode$patte = schemaTypeNode.patterns) === null || _schemaTypeNode$patte === void 0 ? void 0 : _schemaTypeNode$patte[0];
|
|
131571
131603
|
|
|
131572
131604
|
if (pattern != undefined) {
|
|
131605
|
+
var _schemaTypeNode$descr;
|
|
131606
|
+
|
|
131573
131607
|
const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.CallExpression("regexMatch", [valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(pattern)]));
|
|
131574
|
-
|
|
131608
|
+
const validationErrorMessage = (_schemaTypeNode$descr = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _schemaTypeNode$descr !== void 0 ? _schemaTypeNode$descr : "Поле заполнено неверно";
|
|
131609
|
+
yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${validationErrorMessage}"]`)];
|
|
131575
131610
|
}
|
|
131576
131611
|
|
|
131577
131612
|
const typeNodeFractional = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.FractiondigitsTypeCheckNode));
|
|
@@ -131704,6 +131739,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131704
131739
|
/* harmony export */ "BoolLiteralExpression": () => (/* binding */ BoolLiteralExpression),
|
|
131705
131740
|
/* harmony export */ "AbsExpression": () => (/* binding */ AbsExpression),
|
|
131706
131741
|
/* harmony export */ "LenExpression": () => (/* binding */ LenExpression),
|
|
131742
|
+
/* harmony export */ "NumLenExpression": () => (/* binding */ NumLenExpression),
|
|
131707
131743
|
/* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
|
|
131708
131744
|
/* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
|
|
131709
131745
|
/* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
|
|
@@ -132060,6 +132096,18 @@ class LenExpression extends FLangExpression {
|
|
|
132060
132096
|
return `len(${this.expression.convertToString()})`;
|
|
132061
132097
|
}
|
|
132062
132098
|
|
|
132099
|
+
}
|
|
132100
|
+
class NumLenExpression extends FLangExpression {
|
|
132101
|
+
constructor(expression) {
|
|
132102
|
+
super();
|
|
132103
|
+
this.expression = void 0;
|
|
132104
|
+
this.expression = expression;
|
|
132105
|
+
}
|
|
132106
|
+
|
|
132107
|
+
convertToString() {
|
|
132108
|
+
return `numLen(${this.expression.convertToString()})`;
|
|
132109
|
+
}
|
|
132110
|
+
|
|
132063
132111
|
}
|
|
132064
132112
|
class FractionalLenExpression extends FLangExpression {
|
|
132065
132113
|
constructor(expression) {
|
|
@@ -132326,7 +132374,7 @@ class NormalizationRulesGenerator {
|
|
|
132326
132374
|
buildSugarFLangRules() {
|
|
132327
132375
|
const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
|
|
132328
132376
|
const builder = new _markupGenerator_FLangNormalizationRulesBuilder__WEBPACK_IMPORTED_MODULE_8__.FLangNormalizationRulesBuilder(this.controlCustomizationContext);
|
|
132329
|
-
return converter.buildNormalizeRules(builder);
|
|
132377
|
+
return converter.buildNormalizeRules(builder, this.formSchemaRng);
|
|
132330
132378
|
}
|
|
132331
132379
|
|
|
132332
132380
|
*buildFormulaFLangRules() {
|
|
@@ -132514,15 +132562,35 @@ class NormalizationRulesGenerator {
|
|
|
132514
132562
|
}
|
|
132515
132563
|
|
|
132516
132564
|
compileSumExpression(expression, prefix, target, addPrecalculationRule) {
|
|
132517
|
-
const
|
|
132518
|
-
|
|
132565
|
+
const args = this.getFlatArgumentExpressions(expression.arguments);
|
|
132566
|
+
const conditionExpression = args.reduce((acc, curr) => {
|
|
132567
|
+
const currExpr = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NotEqExpression(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
|
|
132568
|
+
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(acc, currExpr) : currExpr;
|
|
132569
|
+
}, undefined);
|
|
132570
|
+
|
|
132571
|
+
if (conditionExpression == undefined) {
|
|
132572
|
+
const result = expression.arguments.reduce((acc, curr) => {
|
|
132573
|
+
const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
|
|
132574
|
+
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
|
|
132575
|
+
}, undefined);
|
|
132576
|
+
|
|
132577
|
+
if (result == undefined) {
|
|
132578
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
|
|
132579
|
+
}
|
|
132580
|
+
|
|
132581
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
|
|
132582
|
+
}
|
|
132583
|
+
|
|
132584
|
+
const trueResultExpression = expression.arguments.reduce((acc, curr) => {
|
|
132585
|
+
const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), 0);
|
|
132519
132586
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
|
|
132520
132587
|
}, undefined);
|
|
132521
132588
|
|
|
132522
|
-
if (
|
|
132589
|
+
if (trueResultExpression == undefined) {
|
|
132523
132590
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
|
|
132524
132591
|
}
|
|
132525
132592
|
|
|
132593
|
+
const result = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(conditionExpression, trueResultExpression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
|
|
132526
132594
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
|
|
132527
132595
|
}
|
|
132528
132596
|
|
|
@@ -132592,19 +132660,33 @@ class NormalizationRulesGenerator {
|
|
|
132592
132660
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
|
|
132593
132661
|
}
|
|
132594
132662
|
|
|
132663
|
+
getFlatArgumentExpressions(expressions) {
|
|
132664
|
+
return expressions.reduce((acc, curr) => {
|
|
132665
|
+
if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaArgumentExpression) {
|
|
132666
|
+
return acc.concat(curr);
|
|
132667
|
+
}
|
|
132668
|
+
|
|
132669
|
+
if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaSumExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaDivisionExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaMultiplyExpression) {
|
|
132670
|
+
return acc.concat(this.getFlatArgumentExpressions(curr.arguments));
|
|
132671
|
+
}
|
|
132672
|
+
|
|
132673
|
+
return acc;
|
|
132674
|
+
}, []);
|
|
132675
|
+
}
|
|
132676
|
+
|
|
132595
132677
|
castOperandToStringIfNeed(operandExpression) {
|
|
132596
132678
|
return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression || operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression && operandExpression.getTargetType() == "string" ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "string");
|
|
132597
132679
|
}
|
|
132598
132680
|
|
|
132599
|
-
castOperandToDecimalIfNeed(operandExpression) {
|
|
132600
|
-
return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "decimal");
|
|
132681
|
+
castOperandToDecimalIfNeed(operandExpression, defaultValue) {
|
|
132682
|
+
return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "decimal", defaultValue != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(defaultValue) : undefined);
|
|
132601
132683
|
}
|
|
132602
132684
|
|
|
132603
132685
|
*buildSugarValidationRules() {
|
|
132604
132686
|
const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
|
|
132605
132687
|
const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_14__.FLangValidationBuildContext(this.typesRegistry, this.formSchemaRng, this.useSchemaValidations);
|
|
132606
132688
|
const kcRules = this.buildKcValidationRules();
|
|
132607
|
-
const allRules = Iterator.from(converter.buildFLangValidations(context)).reduce((ctx, current) => {
|
|
132689
|
+
const allRules = Iterator.from(converter.buildFLangValidations(context, this.formSchemaRng)).reduce((ctx, current) => {
|
|
132608
132690
|
const statement = current.statement;
|
|
132609
132691
|
|
|
132610
132692
|
if (!(statement instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement)) {
|
|
@@ -137089,6 +137171,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
137089
137171
|
bindingPath: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(pageNode),
|
|
137090
137172
|
optional: pageNode.optional,
|
|
137091
137173
|
pageActions: pageNode.pageActions,
|
|
137174
|
+
hideEnableAutoValues: pageNode.hideEnableAutoValues,
|
|
137092
137175
|
showOnDemand: pageNode.showOnDemand,
|
|
137093
137176
|
onNavigateFromErrorLog: context.generateHelperFunctionExpressionWithoutContext(pageNode, "onNavigateFromErrorLog", pageNode.onNavigateFromErrorLog)
|
|
137094
137177
|
};
|
|
@@ -137200,6 +137283,10 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
137200
137283
|
markupBuilder.prop(x => x.pageActions).set(pageNode.pageActions);
|
|
137201
137284
|
}
|
|
137202
137285
|
|
|
137286
|
+
if (pageNode.hideEnableAutoValues != undefined) {
|
|
137287
|
+
markupBuilder.prop(x => x.hideEnableAutoValues).set(pageNode.hideEnableAutoValues);
|
|
137288
|
+
}
|
|
137289
|
+
|
|
137203
137290
|
const pageMarkupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)([], this.getPageName(pageNode));
|
|
137204
137291
|
markupBuilder.appendChild(pageMarkupBuilder);
|
|
137205
137292
|
markupBuilder.appendChildren(pageNode.pages.map(x => this.buildPageUnit(node, x)));
|
|
@@ -138037,19 +138124,18 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
|
|
|
138037
138124
|
return false;
|
|
138038
138125
|
}
|
|
138039
138126
|
|
|
138040
|
-
*doBuildNormalizeRules(builder) {
|
|
138127
|
+
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
138041
138128
|
const node = this.getCurrentNodeAs(_PageNode__WEBPACK_IMPORTED_MODULE_14__.PageNode);
|
|
138129
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
138042
138130
|
|
|
138043
138131
|
if (node.path == undefined) {
|
|
138044
138132
|
return;
|
|
138045
138133
|
}
|
|
138046
138134
|
|
|
138047
138135
|
if (node.multiple) {
|
|
138048
|
-
|
|
138049
|
-
|
|
138050
|
-
yield* builder.childrenInitializer(node, (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false);
|
|
138136
|
+
const isOptional = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional;
|
|
138137
|
+
yield* builder.childrenInitializer(node, isOptional !== null && isOptional !== void 0 ? isOptional : false);
|
|
138051
138138
|
yield* builder.specialFieldsInitializer(node, {
|
|
138052
|
-
optional: node.optional,
|
|
138053
138139
|
disabled: undefined
|
|
138054
138140
|
});
|
|
138055
138141
|
}
|
|
@@ -138207,7 +138293,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
138207
138293
|
|
|
138208
138294
|
|
|
138209
138295
|
|
|
138210
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;
|
|
138296
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24;
|
|
138211
138297
|
|
|
138212
138298
|
|
|
138213
138299
|
|
|
@@ -138215,7 +138301,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
|
|
|
138215
138301
|
|
|
138216
138302
|
|
|
138217
138303
|
|
|
138218
|
-
let PageNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("page", `Страница (раздел)`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Уникальный идентификатор странцы. Все страницы в форме должны иметь уникальный идентификатор. 1111`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("template", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("default", "title", "multiple", "diadoc"), 'Для множественных разделов необходимо указать `template="multiple"`, для обычных разделов `template="default"`'), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.bindingPathLink)} данного элемента`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("headerpanel", [_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_3__.HeaderPanelNode]), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.Removed), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("formName", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.Removed), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("showOnDemand", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Раздел не будет отображаться на странице, пока не будет вызван явно. Например, через механизм отображения раздела в разделе.`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("onNavigateFromErrorLog", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется перед попыткой навигации в контрол внутри раздела"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("orientation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("landscape"), `Ориентация страницы. При значении landscape станницы займёт всю доступную ширину экрана`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("navigationName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.localizedString, `Название Раздела в меню, если в сахаре есть отдельное описание навигации (unitList), то указывать не нужно`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("height", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Начальная высота раздела`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("minHeight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Минимальная высота раздела`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Обозначение множественного раздела`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("unitsCountForPaging", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Количество инстансов множественного раздела на котором включается паджинация раздела`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("multipleAppearance", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("nested", "flat"), "Представление множественных разделов: вложенное или плоское"), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Опциональный раздел`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("pageActions", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.objectLiteral(), `Атрибут для кастомизации действий с разделом`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Количество экземпляров множественного раздела после которого в левом меню будет включаться компактный режим отображения разделов. По умолчанию: 15. Используется только для множественных разделов`),
|
|
138304
|
+
let PageNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("page", `Страница (раздел)`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Уникальный идентификатор странцы. Все страницы в форме должны иметь уникальный идентификатор. 1111`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("template", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("default", "title", "multiple", "diadoc"), 'Для множественных разделов необходимо указать `template="multiple"`, для обычных разделов `template="default"`'), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.bindingPathLink)} данного элемента`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("headerpanel", [_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_3__.HeaderPanelNode]), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.Removed), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("formName", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_4__.DeprecationReason.Removed), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("showOnDemand", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Раздел не будет отображаться на странице, пока не будет вызван явно. Например, через механизм отображения раздела в разделе.`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("onNavigateFromErrorLog", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется перед попыткой навигации в контрол внутри раздела"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("orientation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("landscape"), `Ориентация страницы. При значении landscape станницы займёт всю доступную ширину экрана`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("navigationName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.localizedString, `Название Раздела в меню, если в сахаре есть отдельное описание навигации (unitList), то указывать не нужно`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("height", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Начальная высота раздела`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("minHeight", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Минимальная высота раздела`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Обозначение множественного раздела`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("unitsCountForPaging", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Количество инстансов множественного раздела на котором включается паджинация раздела`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("multipleAppearance", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("nested", "flat"), "Представление множественных разделов: вложенное или плоское"), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Опциональный раздел`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("pageActions", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.objectLiteral(), `Атрибут для кастомизации действий с разделом`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("hideEnableAutoValues", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Всегда скрывать кнопку "Включить авторасчет", даже при включенной серверной нормализации`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Количество экземпляров множественного раздела после которого в левом меню будет включаться компактный режим отображения разделов. По умолчанию: 15. Используется только для множественных разделов`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("addingHint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.localizedString, `Подсказка на кнопке добавления раздела в боковом меню. Используется только для множественных разделов`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("page"), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("title", [_PageTitleNode__WEBPACK_IMPORTED_MODULE_8__.PageTitleNode]), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_6__.javaScriptExpressionLink)} для условного скрытия раздела`), _dec(_class = (_class2 = class PageNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
138219
138305
|
constructor(...args) {
|
|
138220
138306
|
super(...args);
|
|
138221
138307
|
|
|
@@ -138253,17 +138339,19 @@ let PageNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5
|
|
|
138253
138339
|
|
|
138254
138340
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pageActions", _descriptor17, this);
|
|
138255
138341
|
|
|
138256
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
138342
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hideEnableAutoValues", _descriptor18, this);
|
|
138257
138343
|
|
|
138258
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
138344
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationLimit", _descriptor19, this);
|
|
138259
138345
|
|
|
138260
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
138346
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "addingHint", _descriptor20, this);
|
|
138261
138347
|
|
|
138262
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
138348
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pages", _descriptor21, this);
|
|
138263
138349
|
|
|
138264
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
138350
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor22, this);
|
|
138265
138351
|
|
|
138266
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
138352
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title", _descriptor23, this);
|
|
138353
|
+
|
|
138354
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "visible", _descriptor24, this);
|
|
138267
138355
|
}
|
|
138268
138356
|
|
|
138269
138357
|
getOwnPath() {
|
|
@@ -138361,32 +138449,37 @@ let PageNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5
|
|
|
138361
138449
|
enumerable: true,
|
|
138362
138450
|
writable: true,
|
|
138363
138451
|
initializer: null
|
|
138364
|
-
}), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
138452
|
+
}), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "hideEnableAutoValues", [_dec19], {
|
|
138365
138453
|
configurable: true,
|
|
138366
138454
|
enumerable: true,
|
|
138367
138455
|
writable: true,
|
|
138368
138456
|
initializer: null
|
|
138369
|
-
}), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
138457
|
+
}), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "navigationLimit", [_dec20], {
|
|
138370
138458
|
configurable: true,
|
|
138371
138459
|
enumerable: true,
|
|
138372
138460
|
writable: true,
|
|
138373
138461
|
initializer: null
|
|
138374
|
-
}), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
138462
|
+
}), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "addingHint", [_dec21], {
|
|
138375
138463
|
configurable: true,
|
|
138376
138464
|
enumerable: true,
|
|
138377
138465
|
writable: true,
|
|
138378
138466
|
initializer: null
|
|
138379
|
-
}), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
138467
|
+
}), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pages", [_dec22], {
|
|
138468
|
+
configurable: true,
|
|
138469
|
+
enumerable: true,
|
|
138470
|
+
writable: true,
|
|
138471
|
+
initializer: null
|
|
138472
|
+
}), _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec23], {
|
|
138380
138473
|
configurable: true,
|
|
138381
138474
|
enumerable: true,
|
|
138382
138475
|
writable: true,
|
|
138383
138476
|
initializer: null
|
|
138384
|
-
}),
|
|
138477
|
+
}), _descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "title", [_dec24], {
|
|
138385
138478
|
configurable: true,
|
|
138386
138479
|
enumerable: true,
|
|
138387
138480
|
writable: true,
|
|
138388
138481
|
initializer: null
|
|
138389
|
-
}),
|
|
138482
|
+
}), _descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "visible", [_dec25], {
|
|
138390
138483
|
configurable: true,
|
|
138391
138484
|
enumerable: true,
|
|
138392
138485
|
writable: true,
|
|
@@ -144031,7 +144124,6 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
144031
144124
|
|
|
144032
144125
|
yield* builder.childrenInitializer(rowNode, (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : false, rowNode.defaultChildren);
|
|
144033
144126
|
yield* builder.specialFieldsInitializer(rowNode, {
|
|
144034
|
-
optional: rowNode.optional,
|
|
144035
144127
|
disabled: undefined
|
|
144036
144128
|
});
|
|
144037
144129
|
}
|
|
@@ -147348,6 +147440,20 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
|
|
|
147348
147440
|
return _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode;
|
|
147349
147441
|
}
|
|
147350
147442
|
|
|
147443
|
+
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
147444
|
+
const node = this.getCurrentNodeAs(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode);
|
|
147445
|
+
|
|
147446
|
+
for (const row of node.rows) {
|
|
147447
|
+
if (row instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableMultilineNode) {
|
|
147448
|
+
var _ref;
|
|
147449
|
+
|
|
147450
|
+
const element = formSchemaRng.getElementByPath(row.getFullPath());
|
|
147451
|
+
const isOptional = (_ref = row.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : row.optional) !== null && _ref !== void 0 ? _ref : false;
|
|
147452
|
+
yield* builder.childrenInitializer(row, isOptional);
|
|
147453
|
+
}
|
|
147454
|
+
}
|
|
147455
|
+
}
|
|
147456
|
+
|
|
147351
147457
|
*doTraverseChildren() {
|
|
147352
147458
|
const node = this.getCurrentNodeAs(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode);
|
|
147353
147459
|
|
|
@@ -147455,9 +147561,9 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
|
|
|
147455
147561
|
|
|
147456
147562
|
processMultilineNode(context, rowNode) {
|
|
147457
147563
|
if (rowNode instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableMultilineNode) {
|
|
147458
|
-
var
|
|
147564
|
+
var _ref2, _rowNode$optional;
|
|
147459
147565
|
|
|
147460
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((
|
|
147566
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_ref2 = (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : context.isMultipleNodeOptionalFromScheme(rowNode.getFullPath())) !== null && _ref2 !== void 0 ? _ref2 : false, rowNode.defaultChildren)]]), rowNode.maxOccurs != undefined && /^\d+$/.test(rowNode.maxOccurs) && context.maxOccurs(rowNode.getFullPath(), rowNode.maxOccurs), context.addSpecialFieldsEntry(rowNode, {
|
|
147461
147567
|
optional: rowNode.optional
|
|
147462
147568
|
}), context.addPathSectionDeclarationEntry(rowNode), context.addVisibilityPathDeclEntryNew(rowNode), context.processChildrenDataDeclaration(rowNode.rows, rowNode2 => this.processMultilineRowNode(context, rowNode2)));
|
|
147463
147569
|
}
|
|
@@ -147530,11 +147636,11 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
|
|
|
147530
147636
|
const sideSize = (_node$side2 = node.side) !== null && _node$side2 !== void 0 ? _node$side2 : 0;
|
|
147531
147637
|
|
|
147532
147638
|
if (this.isSimpleForm()) {
|
|
147533
|
-
var
|
|
147639
|
+
var _ref3, _node$deprecatedDiado;
|
|
147534
147640
|
|
|
147535
147641
|
mb.prop(x => x.maxWidth).set(orientation === "landscape" ? maxWidth : undefined);
|
|
147536
147642
|
mb.prop(x => x.sideSize).set(this.hasActionButton(node) && sideSize !== 0 ? sideSize + 1 : sideSize);
|
|
147537
|
-
const width = (
|
|
147643
|
+
const width = (_ref3 = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref3 !== void 0 ? _ref3 : maxWidthSimpleForm;
|
|
147538
147644
|
mb.prop(x => x.width).set(width);
|
|
147539
147645
|
mb.prop(x => x.footerHeight).set(160);
|
|
147540
147646
|
} else {
|
|
@@ -147823,10 +147929,10 @@ BindingPath: ${errorPath}`));
|
|
|
147823
147929
|
if (this.isSimpleForm()) {
|
|
147824
147930
|
mb.prop(x => x.buttonType).set(undefined);
|
|
147825
147931
|
} else {
|
|
147826
|
-
var _multiline$rowmenu,
|
|
147932
|
+
var _multiline$rowmenu, _ref4, _tableNode$removeButt;
|
|
147827
147933
|
|
|
147828
147934
|
const rowMenu = (_multiline$rowmenu = multiline.rowmenu) !== null && _multiline$rowmenu !== void 0 ? _multiline$rowmenu : false;
|
|
147829
|
-
const removebutton = (
|
|
147935
|
+
const removebutton = (_ref4 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true;
|
|
147830
147936
|
mb.prop(x => x.buttonType).set(rowMenu ? "RowMenu" : removebutton ? "RemoveRowButton" : undefined);
|
|
147831
147937
|
}
|
|
147832
147938
|
|
|
@@ -147849,7 +147955,7 @@ BindingPath: ${errorPath}`));
|
|
|
147849
147955
|
}
|
|
147850
147956
|
|
|
147851
147957
|
getMultiline(context, node, multiline, start, end = Infinity) {
|
|
147852
|
-
var
|
|
147958
|
+
var _ref5, _node$removeButton, _multiline$rowmenu2, _ref6, _node$removeButton2, _context$popPathsCont2;
|
|
147853
147959
|
|
|
147854
147960
|
const overrideInfo = multiline.override ? context.controlCustomizationContext.getControlCustomizationInfo("multiline", multiline.override) : undefined;
|
|
147855
147961
|
const mb = overrideInfo == undefined ? (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("MultiLine") : (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)(overrideInfo.dependencies, overrideInfo.controlName);
|
|
@@ -147863,7 +147969,7 @@ BindingPath: ${errorPath}`));
|
|
|
147863
147969
|
mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_13__.getNewBindingPathExpression)(multiline));
|
|
147864
147970
|
mb.prop(x => x.showRowBorder).set(multiline.showRowBorder);
|
|
147865
147971
|
mb.prop(x => x.onRowCLick).set(context.generateHelperFunctionExpression(multiline, "onRowClick", multiline.onRowClick));
|
|
147866
|
-
const hasRemoveButton = ((
|
|
147972
|
+
const hasRemoveButton = ((_ref5 = (_node$removeButton = node.removeButton) !== null && _node$removeButton !== void 0 ? _node$removeButton : multiline.removebutton) !== null && _ref5 !== void 0 ? _ref5 : true) || ((_multiline$rowmenu2 = multiline.rowmenu) !== null && _multiline$rowmenu2 !== void 0 ? _multiline$rowmenu2 : false);
|
|
147867
147973
|
const needAddButton = multiline.addbutton !== "false";
|
|
147868
147974
|
|
|
147869
147975
|
if (this.isSimpleForm()) {
|
|
@@ -147876,7 +147982,7 @@ BindingPath: ${errorPath}`));
|
|
|
147876
147982
|
mb.prop(x => x.removeButtonPosition).set(undefined);
|
|
147877
147983
|
}
|
|
147878
147984
|
|
|
147879
|
-
mb.prop(x => x.disableScroll).set(needAddButton || ((
|
|
147985
|
+
mb.prop(x => x.disableScroll).set(needAddButton || ((_ref6 = (_node$removeButton2 = node.removeButton) !== null && _node$removeButton2 !== void 0 ? _node$removeButton2 : multiline.removebutton) !== null && _ref6 !== void 0 ? _ref6 : true) ? undefined : true);
|
|
147880
147986
|
context.pushPathsContext();
|
|
147881
147987
|
|
|
147882
147988
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayHasLength)(multiline.rows, 1)) {
|
|
@@ -147902,9 +148008,9 @@ BindingPath: ${errorPath}`));
|
|
|
147902
148008
|
hasActionButton(node) {
|
|
147903
148009
|
const multilines = node.rows.map(child => (0,_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.isMultilineNode)(child) ? child : child.columns.find(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.isMultilineNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined);
|
|
147904
148010
|
return multilines.some(multiline => {
|
|
147905
|
-
var
|
|
148011
|
+
var _ref7, _node$removeButton3;
|
|
147906
148012
|
|
|
147907
|
-
return ((
|
|
148013
|
+
return ((_ref7 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref7 !== void 0 ? _ref7 : true) || multiline.rowmenu;
|
|
147908
148014
|
});
|
|
147909
148015
|
}
|
|
147910
148016
|
|
|
@@ -148155,13 +148261,14 @@ class Table2MultirowConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
|
|
|
148155
148261
|
return markupBuilder.buildConverterResult();
|
|
148156
148262
|
}
|
|
148157
148263
|
|
|
148158
|
-
*doBuildNormalizeRules(builder) {
|
|
148159
|
-
var
|
|
148264
|
+
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
148265
|
+
var _ref2;
|
|
148160
148266
|
|
|
148161
148267
|
const node = this.getCurrentNodeAs(_Table2Node__WEBPACK_IMPORTED_MODULE_3__.Table2MultirowNode);
|
|
148162
|
-
|
|
148268
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
148269
|
+
const isOptional = (_ref2 = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
148270
|
+
yield* builder.childrenInitializer(node, isOptional);
|
|
148163
148271
|
yield* builder.specialFieldsInitializer(node, {
|
|
148164
|
-
optional: node.optional,
|
|
148165
148272
|
disabled: undefined
|
|
148166
148273
|
});
|
|
148167
148274
|
}
|
|
@@ -148976,13 +149083,14 @@ class TabsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
148976
149083
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref !== void 0 ? _ref : false)]]), context.maxOccurs(node.getFullPath(), node.maxOccurs), context.addPathSectionDeclarationEntry(node));
|
|
148977
149084
|
}
|
|
148978
149085
|
|
|
148979
|
-
*doBuildNormalizeRules(builder) {
|
|
148980
|
-
var
|
|
149086
|
+
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
149087
|
+
var _ref2;
|
|
148981
149088
|
|
|
148982
149089
|
const node = this.getCurrentNodeAs(_TabsNode__WEBPACK_IMPORTED_MODULE_4__.TabsNode);
|
|
148983
|
-
|
|
149090
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
149091
|
+
const isOptional = (_ref2 = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
149092
|
+
yield* builder.childrenInitializer(node, isOptional);
|
|
148984
149093
|
yield* builder.specialFieldsInitializer(node, {
|
|
148985
|
-
optional: node.optional,
|
|
148986
149094
|
disabled: undefined
|
|
148987
149095
|
});
|
|
148988
149096
|
}
|
|
@@ -150311,7 +150419,6 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
150311
150419
|
doBuildNormalizeRules(builder) {
|
|
150312
150420
|
const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
|
|
150313
150421
|
return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
|
|
150314
|
-
optional: node.dataBinding.optional,
|
|
150315
150422
|
disabled: false
|
|
150316
150423
|
})];
|
|
150317
150424
|
}
|
|
@@ -150543,13 +150650,13 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
150543
150650
|
doBuildNormalizeRules(builder) {
|
|
150544
150651
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.ComboBoxNode);
|
|
150545
150652
|
return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
|
|
150546
|
-
optional: node.dataBinding.optional,
|
|
150547
150653
|
disabled: node.disabled
|
|
150548
150654
|
})];
|
|
150549
150655
|
}
|
|
150550
150656
|
|
|
150551
|
-
doBuildFLangValidations(buildContext) {
|
|
150657
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
150552
150658
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.ComboBoxNode);
|
|
150659
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
150553
150660
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
150554
150661
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
150555
150662
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -150558,7 +150665,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
150558
150665
|
return [];
|
|
150559
150666
|
}
|
|
150560
150667
|
|
|
150561
|
-
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
|
|
150668
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
150562
150669
|
}
|
|
150563
150670
|
|
|
150564
150671
|
buildChildrenDataDeclaration(context) {
|
|
@@ -151029,8 +151136,9 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
151029
151136
|
return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
|
|
151030
151137
|
}
|
|
151031
151138
|
|
|
151032
|
-
doBuildFLangValidations(buildContext) {
|
|
151139
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
151033
151140
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
151141
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
151034
151142
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
|
|
151035
151143
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
151036
151144
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -151039,7 +151147,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
151039
151147
|
return [];
|
|
151040
151148
|
}
|
|
151041
151149
|
|
|
151042
|
-
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
|
|
151150
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
151043
151151
|
}
|
|
151044
151152
|
|
|
151045
151153
|
doBuildNodeValidations(validationGenerator) {
|
|
@@ -151055,7 +151163,6 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
151055
151163
|
doBuildNormalizeRules(builder) {
|
|
151056
151164
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
151057
151165
|
return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
|
|
151058
|
-
optional: node.dataBinding.optional,
|
|
151059
151166
|
disabled: node.disabled
|
|
151060
151167
|
})];
|
|
151061
151168
|
}
|
|
@@ -151636,7 +151743,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
151636
151743
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
151637
151744
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
151638
151745
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
151639
|
-
/* harmony import */ var
|
|
151746
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
151747
|
+
/* harmony import */ var _FiasNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FiasNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias/FiasNode.ts");
|
|
151748
|
+
|
|
151640
151749
|
|
|
151641
151750
|
|
|
151642
151751
|
|
|
@@ -151644,26 +151753,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
151644
151753
|
|
|
151645
151754
|
class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
151646
151755
|
static getAcceptNodeClass() {
|
|
151647
|
-
return
|
|
151756
|
+
return _FiasNode__WEBPACK_IMPORTED_MODULE_5__.FiasNode;
|
|
151648
151757
|
}
|
|
151649
151758
|
|
|
151650
151759
|
get nodePaths() {
|
|
151651
|
-
const node = this.getCurrentNodeAs(
|
|
151760
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_5__.FiasNode);
|
|
151652
151761
|
const createPaths = node.fiasfield.map(field => (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node, field.path));
|
|
151653
151762
|
return createPaths;
|
|
151654
151763
|
}
|
|
151655
151764
|
|
|
151656
|
-
doBuildNodeValidations(validationGenerator) {
|
|
151765
|
+
doBuildNodeValidations(validationGenerator) {
|
|
151766
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_5__.FiasNode);
|
|
151767
|
+
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
151657
151768
|
}
|
|
151658
151769
|
|
|
151659
151770
|
doBuildDataDeclaration(context) {
|
|
151660
|
-
const node = this.getCurrentNodeAs(
|
|
151771
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_5__.FiasNode);
|
|
151661
151772
|
const PathDeclarations = [];
|
|
151662
151773
|
|
|
151663
151774
|
if (node.fiasfield && node.fiasfield.length > 0) {
|
|
151775
|
+
var _node$fiasfield$;
|
|
151776
|
+
|
|
151664
151777
|
node.fiasfield.forEach(field => {
|
|
151665
151778
|
PathDeclarations.push(context.addChildPathSectionDeclarationEntry(node, field.path, node.dataBinding.requisite));
|
|
151666
151779
|
});
|
|
151780
|
+
|
|
151781
|
+
if ((_node$fiasfield$ = node.fiasfield[0]) !== null && _node$fiasfield$ !== void 0 && _node$fiasfield$.path) {
|
|
151782
|
+
const declEntry = {};
|
|
151783
|
+
declEntry["value"] = context.initSequenceFactory.takeFromModelOrDefaultValue("");
|
|
151784
|
+
PathDeclarations.push({
|
|
151785
|
+
[(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getBindingPathWithSuffix)(node, node.fiasfield[0].path)]: declEntry
|
|
151786
|
+
});
|
|
151787
|
+
}
|
|
151667
151788
|
}
|
|
151668
151789
|
|
|
151669
151790
|
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), ...PathDeclarations);
|
|
@@ -151679,7 +151800,7 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
151679
151800
|
doConvert(context) {
|
|
151680
151801
|
var _node$title, _node$withSteads, _node$division, _node$searchToAddress;
|
|
151681
151802
|
|
|
151682
|
-
const node = this.getCurrentNodeAs(
|
|
151803
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_5__.FiasNode);
|
|
151683
151804
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("Fias");
|
|
151684
151805
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node));
|
|
151685
151806
|
markupBuilder.prop(x => x.title).set((_node$title = node.title) !== null && _node$title !== void 0 ? _node$title : "Адрес регистрации");
|
|
@@ -151688,6 +151809,7 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
151688
151809
|
markupBuilder.prop(x => x.searchToAddressLevel).set((_node$searchToAddress = node.searchToAddressLevel) !== null && _node$searchToAddress !== void 0 ? _node$searchToAddress : "room");
|
|
151689
151810
|
markupBuilder.prop(x => x.pathToFullAddress).set(node.pathToFullAddress);
|
|
151690
151811
|
markupBuilder.prop(x => x.onlyInput).set(node.onlyInput);
|
|
151812
|
+
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
151691
151813
|
const parsedExtendFields = this.parseExtendFields(node.fiasfield);
|
|
151692
151814
|
|
|
151693
151815
|
if (node.childrenoptions) {
|
|
@@ -151792,11 +151914,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
151792
151914
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
151793
151915
|
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
151794
151916
|
/* harmony import */ var _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types */ "./Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types.ts");
|
|
151917
|
+
/* harmony import */ var _CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
151918
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
151795
151919
|
|
|
151796
151920
|
|
|
151797
151921
|
|
|
151798
151922
|
|
|
151799
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec9, _dec10, _dec11, _class4, _class5, _descriptor8, _descriptor9, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class7, _class8, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _dec26, _dec27, _dec28, _class10, _class11, _descriptor23, _descriptor24, _dec29, _dec30, _dec31, _dec32, _class13, _class14, _descriptor25, _descriptor26, _descriptor27, _dec33, _dec34, _class16, _class17, _descriptor28, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _class19, _class20, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42;
|
|
151923
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec9, _dec10, _dec11, _class4, _class5, _descriptor8, _descriptor9, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class7, _class8, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _dec26, _dec27, _dec28, _class10, _class11, _descriptor23, _descriptor24, _dec29, _dec30, _dec31, _dec32, _class13, _class14, _descriptor25, _descriptor26, _descriptor27, _dec33, _dec34, _class16, _class17, _descriptor28, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _class19, _class20, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44;
|
|
151924
|
+
|
|
151925
|
+
|
|
151800
151926
|
|
|
151801
151927
|
|
|
151802
151928
|
|
|
@@ -152034,40 +152160,44 @@ let FiasMvdOptions = (_dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_
|
|
|
152034
152160
|
writable: true,
|
|
152035
152161
|
initializer: null
|
|
152036
152162
|
})), _class17)) || _class16);
|
|
152037
|
-
let FiasNode = (_dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fias", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias sync recursive .md$")), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("withSteads", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Земельные участки для формы"),
|
|
152163
|
+
let FiasNode = (_dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fias", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias sync recursive .md$")), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_7__.ValidationInfoNode), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("withSteads", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Земельные участки для формы"), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("title", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Текст в титульнике лайтбокса"), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("pathToFullAddress", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Путь, по которому будет засечен полный адрес"), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("searchToAddressLevel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("region", "district", "city", "street", "garhouse", "room"), `До какого элемента будет осуществлятся поиск.
|
|
152038
152164
|
Пример: House - поиск до дома.
|
|
152039
152165
|
Конечный - room, поиск до квартиры.
|
|
152040
|
-
По умолчанию - room`),
|
|
152166
|
+
По умолчанию - room`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("division", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType["enum"]("municipal", "administrative"), "Территориальное деление, по умолчанию - municipal"), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("withForeignCountry", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("fiasfield", [FiasExtendedField]), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("childrenoptions", [FiasChildren]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("fnsoptions", [FiasFnsOptions]), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("mvdoptions", [FiasMvdOptions]), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("onlyInput", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Временный костыль на то, чтобы показывать фиас в рамках багованного мультилайна"), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("optionalIndex", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("postalTransfer", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec35(_class19 = (_class20 = class FiasNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
152041
152167
|
constructor(...args) {
|
|
152042
152168
|
super(...args);
|
|
152043
152169
|
|
|
152044
152170
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor29, this);
|
|
152045
152171
|
|
|
152046
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
152172
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor30, this);
|
|
152173
|
+
|
|
152174
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor31, this);
|
|
152175
|
+
|
|
152176
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withSteads", _descriptor32, this);
|
|
152047
152177
|
|
|
152048
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title",
|
|
152178
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title", _descriptor33, this);
|
|
152049
152179
|
|
|
152050
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToFullAddress",
|
|
152180
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToFullAddress", _descriptor34, this);
|
|
152051
152181
|
|
|
152052
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "searchToAddressLevel",
|
|
152182
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "searchToAddressLevel", _descriptor35, this);
|
|
152053
152183
|
|
|
152054
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "division",
|
|
152184
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "division", _descriptor36, this);
|
|
152055
152185
|
|
|
152056
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withForeignCountry",
|
|
152186
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withForeignCountry", _descriptor37, this);
|
|
152057
152187
|
|
|
152058
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiasfield",
|
|
152188
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiasfield", _descriptor38, this);
|
|
152059
152189
|
|
|
152060
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "childrenoptions",
|
|
152190
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "childrenoptions", _descriptor39, this);
|
|
152061
152191
|
|
|
152062
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fnsoptions",
|
|
152192
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fnsoptions", _descriptor40, this);
|
|
152063
152193
|
|
|
152064
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "mvdoptions",
|
|
152194
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "mvdoptions", _descriptor41, this);
|
|
152065
152195
|
|
|
152066
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onlyInput",
|
|
152196
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onlyInput", _descriptor42, this);
|
|
152067
152197
|
|
|
152068
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optionalIndex",
|
|
152198
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optionalIndex", _descriptor43, this);
|
|
152069
152199
|
|
|
152070
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "postalTransfer",
|
|
152200
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "postalTransfer", _descriptor44, this);
|
|
152071
152201
|
}
|
|
152072
152202
|
|
|
152073
152203
|
getOwnPath() {
|
|
@@ -152079,67 +152209,77 @@ let FiasNode = (_dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE
|
|
|
152079
152209
|
enumerable: true,
|
|
152080
152210
|
writable: true,
|
|
152081
152211
|
initializer: null
|
|
152082
|
-
}), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "
|
|
152212
|
+
}), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "validationInfo", [_dec37], {
|
|
152213
|
+
configurable: true,
|
|
152214
|
+
enumerable: true,
|
|
152215
|
+
writable: true,
|
|
152216
|
+
initializer: null
|
|
152217
|
+
}), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "tooltipSettings", [_dec38], {
|
|
152218
|
+
configurable: true,
|
|
152219
|
+
enumerable: true,
|
|
152220
|
+
writable: true,
|
|
152221
|
+
initializer: null
|
|
152222
|
+
}), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "withSteads", [_dec39], {
|
|
152083
152223
|
configurable: true,
|
|
152084
152224
|
enumerable: true,
|
|
152085
152225
|
writable: true,
|
|
152086
152226
|
initializer: null
|
|
152087
|
-
}),
|
|
152227
|
+
}), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "title", [_dec40], {
|
|
152088
152228
|
configurable: true,
|
|
152089
152229
|
enumerable: true,
|
|
152090
152230
|
writable: true,
|
|
152091
152231
|
initializer: null
|
|
152092
|
-
}),
|
|
152232
|
+
}), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "pathToFullAddress", [_dec41], {
|
|
152093
152233
|
configurable: true,
|
|
152094
152234
|
enumerable: true,
|
|
152095
152235
|
writable: true,
|
|
152096
152236
|
initializer: null
|
|
152097
|
-
}),
|
|
152237
|
+
}), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "searchToAddressLevel", [_dec42], {
|
|
152098
152238
|
configurable: true,
|
|
152099
152239
|
enumerable: true,
|
|
152100
152240
|
writable: true,
|
|
152101
152241
|
initializer: null
|
|
152102
|
-
}),
|
|
152242
|
+
}), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "division", [_dec43], {
|
|
152103
152243
|
configurable: true,
|
|
152104
152244
|
enumerable: true,
|
|
152105
152245
|
writable: true,
|
|
152106
152246
|
initializer: null
|
|
152107
|
-
}),
|
|
152247
|
+
}), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "withForeignCountry", [_dec44], {
|
|
152108
152248
|
configurable: true,
|
|
152109
152249
|
enumerable: true,
|
|
152110
152250
|
writable: true,
|
|
152111
152251
|
initializer: null
|
|
152112
|
-
}),
|
|
152252
|
+
}), _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "fiasfield", [_dec45], {
|
|
152113
152253
|
configurable: true,
|
|
152114
152254
|
enumerable: true,
|
|
152115
152255
|
writable: true,
|
|
152116
152256
|
initializer: null
|
|
152117
|
-
}),
|
|
152257
|
+
}), _descriptor39 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "childrenoptions", [_dec46], {
|
|
152118
152258
|
configurable: true,
|
|
152119
152259
|
enumerable: true,
|
|
152120
152260
|
writable: true,
|
|
152121
152261
|
initializer: null
|
|
152122
|
-
}),
|
|
152262
|
+
}), _descriptor40 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "fnsoptions", [_dec47], {
|
|
152123
152263
|
configurable: true,
|
|
152124
152264
|
enumerable: true,
|
|
152125
152265
|
writable: true,
|
|
152126
152266
|
initializer: null
|
|
152127
|
-
}),
|
|
152267
|
+
}), _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "mvdoptions", [_dec48], {
|
|
152128
152268
|
configurable: true,
|
|
152129
152269
|
enumerable: true,
|
|
152130
152270
|
writable: true,
|
|
152131
152271
|
initializer: null
|
|
152132
|
-
}),
|
|
152272
|
+
}), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "onlyInput", [_dec49], {
|
|
152133
152273
|
configurable: true,
|
|
152134
152274
|
enumerable: true,
|
|
152135
152275
|
writable: true,
|
|
152136
152276
|
initializer: null
|
|
152137
|
-
}),
|
|
152277
|
+
}), _descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "optionalIndex", [_dec50], {
|
|
152138
152278
|
configurable: true,
|
|
152139
152279
|
enumerable: true,
|
|
152140
152280
|
writable: true,
|
|
152141
152281
|
initializer: null
|
|
152142
|
-
}),
|
|
152282
|
+
}), _descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class20.prototype, "postalTransfer", [_dec51], {
|
|
152143
152283
|
configurable: true,
|
|
152144
152284
|
enumerable: true,
|
|
152145
152285
|
writable: true,
|
|
@@ -152910,8 +153050,9 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
152910
153050
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
|
|
152911
153051
|
}
|
|
152912
153052
|
|
|
152913
|
-
doBuildFLangValidations(buildContext) {
|
|
153053
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
152914
153054
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
153055
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
152915
153056
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
152916
153057
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
152917
153058
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -152920,7 +153061,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
152920
153061
|
return [];
|
|
152921
153062
|
}
|
|
152922
153063
|
|
|
152923
|
-
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
|
|
153064
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
152924
153065
|
}
|
|
152925
153066
|
|
|
152926
153067
|
doBuildNodeValidations(validationGenerator) {
|
|
@@ -152939,7 +153080,6 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
152939
153080
|
doBuildNormalizeRules(builder) {
|
|
152940
153081
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
|
|
152941
153082
|
return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
|
|
152942
|
-
optional: node.dataBinding.optional,
|
|
152943
153083
|
disabled: node.disabled
|
|
152944
153084
|
})];
|
|
152945
153085
|
}
|
|
@@ -154000,8 +154140,9 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
154000
154140
|
return _PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode;
|
|
154001
154141
|
}
|
|
154002
154142
|
|
|
154003
|
-
doBuildFLangValidations(buildContext) {
|
|
154143
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
154004
154144
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
|
|
154145
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
154005
154146
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
154006
154147
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
154007
154148
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -154010,7 +154151,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
154010
154151
|
return [];
|
|
154011
154152
|
}
|
|
154012
154153
|
|
|
154013
|
-
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
|
|
154154
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
154014
154155
|
}
|
|
154015
154156
|
|
|
154016
154157
|
doBuildNodeValidations(validationGenerator) {
|
|
@@ -154018,27 +154159,27 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
154018
154159
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
|
|
154019
154160
|
}
|
|
154020
154161
|
|
|
154021
|
-
*doBuildNormalizeRules(builder) {
|
|
154162
|
+
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
154163
|
+
var _ref;
|
|
154164
|
+
|
|
154022
154165
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
|
|
154166
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
154023
154167
|
yield builder.valueInitializer(node, node.dataBinding, false);
|
|
154024
|
-
|
|
154025
|
-
|
|
154026
|
-
});
|
|
154168
|
+
const isOptional = (_ref = node.dataBinding.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.dataBinding.optional) !== null && _ref !== void 0 ? _ref : false;
|
|
154169
|
+
yield* builder.specialFieldsInitializer(node, {});
|
|
154027
154170
|
|
|
154028
154171
|
if (node.multiple) {
|
|
154029
|
-
|
|
154030
|
-
|
|
154031
|
-
yield* builder.childrenInitializerForPicklist(node, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false);
|
|
154172
|
+
yield* builder.childrenInitializerForPicklist(node, isOptional);
|
|
154032
154173
|
}
|
|
154033
154174
|
}
|
|
154034
154175
|
|
|
154035
154176
|
doBuildDataDeclaration(context) {
|
|
154036
|
-
var _node$dataBinding$
|
|
154177
|
+
var _node$dataBinding$opt;
|
|
154037
154178
|
|
|
154038
154179
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
|
|
154039
154180
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
|
|
154040
154181
|
optional: node.dataBinding.optional
|
|
154041
|
-
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$
|
|
154182
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false, node.dataBinding.requisite));
|
|
154042
154183
|
}
|
|
154043
154184
|
|
|
154044
154185
|
get nodePaths() {
|
|
@@ -154478,9 +154619,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
154478
154619
|
|
|
154479
154620
|
doBuildNormalizeRules(builder) {
|
|
154480
154621
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_5__.RadioGroupNode);
|
|
154481
|
-
return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
|
|
154482
|
-
optional: node.dataBinding.optional
|
|
154483
|
-
})];
|
|
154622
|
+
return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {})];
|
|
154484
154623
|
}
|
|
154485
154624
|
|
|
154486
154625
|
doBuildDataDeclaration(context) {
|
|
@@ -155239,8 +155378,9 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155239
155378
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
|
|
155240
155379
|
}
|
|
155241
155380
|
|
|
155242
|
-
doBuildFLangValidations(buildContext) {
|
|
155381
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
155243
155382
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
155383
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
155244
155384
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
155245
155385
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
155246
155386
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -155249,7 +155389,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155249
155389
|
return [];
|
|
155250
155390
|
}
|
|
155251
155391
|
|
|
155252
|
-
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
|
|
155392
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
155253
155393
|
}
|
|
155254
155394
|
|
|
155255
155395
|
doBuildNodeValidations(validationGenerator) {
|
|
@@ -155266,9 +155406,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155266
155406
|
|
|
155267
155407
|
doBuildNormalizeRules(builder) {
|
|
155268
155408
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
155269
|
-
return [builder.valueInitializer(node, node.dataBinding, undefined), ...builder.specialFieldsInitializer(node, {
|
|
155270
|
-
optional: node.dataBinding.optional
|
|
155271
|
-
})];
|
|
155409
|
+
return [builder.valueInitializer(node, node.dataBinding, undefined), ...builder.specialFieldsInitializer(node, {})];
|
|
155272
155410
|
}
|
|
155273
155411
|
|
|
155274
155412
|
buildChildrenDataDeclaration(context) {
|
|
@@ -155461,8 +155599,9 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
155461
155599
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
155462
155600
|
}
|
|
155463
155601
|
|
|
155464
|
-
doBuildFLangValidations(buildContext) {
|
|
155602
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
155465
155603
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
155604
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
155466
155605
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
155467
155606
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
155468
155607
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
@@ -155471,7 +155610,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
155471
155610
|
return [];
|
|
155472
155611
|
}
|
|
155473
155612
|
|
|
155474
|
-
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
|
|
155613
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
155475
155614
|
}
|
|
155476
155615
|
|
|
155477
155616
|
doBuildDataDeclaration(context) {
|
|
@@ -159255,15 +159394,15 @@ class SugarNodeConverterBase {
|
|
|
159255
159394
|
*getAttachmentPaths() {// no paths by default
|
|
159256
159395
|
}
|
|
159257
159396
|
|
|
159258
|
-
*buildFLangValidations(buildContext) {
|
|
159259
|
-
yield* this.doBuildFLangValidations(buildContext);
|
|
159260
|
-
yield* this.buildChildrenFLangValidations(buildContext);
|
|
159397
|
+
*buildFLangValidations(buildContext, formSchemaRng) {
|
|
159398
|
+
yield* this.doBuildFLangValidations(buildContext, formSchemaRng);
|
|
159399
|
+
yield* this.buildChildrenFLangValidations(buildContext, formSchemaRng);
|
|
159261
159400
|
}
|
|
159262
159401
|
|
|
159263
159402
|
doBuildNodeValidations(validationGenerator) {// noop
|
|
159264
159403
|
}
|
|
159265
159404
|
|
|
159266
|
-
doBuildFLangValidations(buildContext) {
|
|
159405
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
159267
159406
|
return [];
|
|
159268
159407
|
}
|
|
159269
159408
|
|
|
@@ -159314,8 +159453,8 @@ class SugarNodeConverterBase {
|
|
|
159314
159453
|
return this.node.sourceXmlNode;
|
|
159315
159454
|
}
|
|
159316
159455
|
|
|
159317
|
-
*buildNormalizeRules(builder) {
|
|
159318
|
-
yield* this.doBuildNormalizeRules(builder);
|
|
159456
|
+
*buildNormalizeRules(builder, formSchemaRng) {
|
|
159457
|
+
yield* this.doBuildNormalizeRules(builder, formSchemaRng);
|
|
159319
159458
|
|
|
159320
159459
|
for (const child of this.traverseChildren()) {
|
|
159321
159460
|
const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
|
|
@@ -159332,12 +159471,12 @@ class SugarNodeConverterBase {
|
|
|
159332
159471
|
}
|
|
159333
159472
|
} else {
|
|
159334
159473
|
const converter = new controlConverterClass(child);
|
|
159335
|
-
yield* converter.buildNormalizeRules(builder);
|
|
159474
|
+
yield* converter.buildNormalizeRules(builder, formSchemaRng);
|
|
159336
159475
|
}
|
|
159337
159476
|
}
|
|
159338
159477
|
}
|
|
159339
159478
|
|
|
159340
|
-
doBuildNormalizeRules(builder) {
|
|
159479
|
+
doBuildNormalizeRules(builder, formSchemaRng) {
|
|
159341
159480
|
return [];
|
|
159342
159481
|
}
|
|
159343
159482
|
|
|
@@ -159385,7 +159524,7 @@ class SugarNodeConverterBase {
|
|
|
159385
159524
|
}
|
|
159386
159525
|
}
|
|
159387
159526
|
|
|
159388
|
-
*buildChildrenFLangValidations(buildContext) {
|
|
159527
|
+
*buildChildrenFLangValidations(buildContext, formSchemaRng) {
|
|
159389
159528
|
for (const child of this.doTraverseChildren()) {
|
|
159390
159529
|
const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
|
|
159391
159530
|
|
|
@@ -159394,7 +159533,7 @@ class SugarNodeConverterBase {
|
|
|
159394
159533
|
}
|
|
159395
159534
|
|
|
159396
159535
|
const converter = new controlConverterClass(child);
|
|
159397
|
-
yield* converter.buildFLangValidations(buildContext);
|
|
159536
|
+
yield* converter.buildFLangValidations(buildContext, formSchemaRng);
|
|
159398
159537
|
}
|
|
159399
159538
|
}
|
|
159400
159539
|
|
|
@@ -198195,28 +198334,6 @@ module.exports = {
|
|
|
198195
198334
|
"17.0": "96"
|
|
198196
198335
|
};
|
|
198197
198336
|
|
|
198198
|
-
/***/ }),
|
|
198199
|
-
|
|
198200
|
-
/***/ "./node_modules/escape-string-regexp/index.js":
|
|
198201
|
-
/*!****************************************************!*\
|
|
198202
|
-
!*** ./node_modules/escape-string-regexp/index.js ***!
|
|
198203
|
-
\****************************************************/
|
|
198204
|
-
/***/ ((module) => {
|
|
198205
|
-
|
|
198206
|
-
"use strict";
|
|
198207
|
-
|
|
198208
|
-
|
|
198209
|
-
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
198210
|
-
|
|
198211
|
-
module.exports = function (str) {
|
|
198212
|
-
if (typeof str !== 'string') {
|
|
198213
|
-
throw new TypeError('Expected a string');
|
|
198214
|
-
}
|
|
198215
|
-
|
|
198216
|
-
return str.replace(matchOperatorsRe, '\\$&');
|
|
198217
|
-
};
|
|
198218
|
-
|
|
198219
|
-
|
|
198220
198337
|
/***/ }),
|
|
198221
198338
|
|
|
198222
198339
|
/***/ "./node_modules/fbjs/lib/areEqual.js":
|