@kontur.candy/generator 4.270.0 → 4.271.0-multiline-index.1

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.
Files changed (2) hide show
  1. package/dist/index.js +412 -171
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113401,6 +113401,15 @@ class Set2 {
113401
113401
  return false;
113402
113402
  }
113403
113403
 
113404
+ remove(path) {
113405
+ const hash = this.getItemHash(path);
113406
+ const list = this.hashMap.get(hash);
113407
+
113408
+ if (list != undefined) {
113409
+ this.hashMap.set(hash, list.filter(x => !this.areItemsEqual(x, path)));
113410
+ }
113411
+ }
113412
+
113404
113413
  has(path) {
113405
113414
  var _this$hashMap$get;
113406
113415
 
@@ -113579,6 +113588,7 @@ __webpack_require__.r(__webpack_exports__);
113579
113588
  /* harmony export */ "unitWithoutInstance": () => (/* binding */ unitWithoutInstance),
113580
113589
  /* harmony export */ "isUnitIdEquals": () => (/* binding */ isUnitIdEquals),
113581
113590
  /* harmony export */ "sectionNameToUnitId": () => (/* binding */ sectionNameToUnitId),
113591
+ /* harmony export */ "getAllUnitIdInstances": () => (/* binding */ getAllUnitIdInstances),
113582
113592
  /* harmony export */ "unitIdToLegacyUnitId": () => (/* binding */ unitIdToLegacyUnitId),
113583
113593
  /* harmony export */ "unitIdWithInstance": () => (/* binding */ unitIdWithInstance),
113584
113594
  /* harmony export */ "createUnitId": () => (/* binding */ createUnitId)
@@ -113636,6 +113646,11 @@ function sectionNameToUnitId(sectionName) {
113636
113646
  };
113637
113647
  }
113638
113648
  }
113649
+ function getAllUnitIdInstances(unitId) {
113650
+ var _unitId$parentInstanc, _unitId$instance;
113651
+
113652
+ return ((_unitId$parentInstanc = unitId.parentInstances) !== null && _unitId$parentInstanc !== void 0 ? _unitId$parentInstanc : []).concat((_unitId$instance = unitId.instance) !== null && _unitId$instance !== void 0 ? _unitId$instance : []);
113653
+ }
113639
113654
  function unitIdToLegacyUnitId(unitId) {
113640
113655
  if (unitId == undefined) {
113641
113656
  return undefined;
@@ -115371,7 +115386,7 @@ class KCLangAntlrVisitor {
115371
115386
  const expression = ctx.expression();
115372
115387
  const withBlocks = ctx.withBlock().map(i => i.accept(this));
115373
115388
  let description = "";
115374
- let errorLevel = "warning";
115389
+ let errorLevel = undefined;
115375
115390
 
115376
115391
  for (const withBlock of withBlocks) {
115377
115392
  if (withBlock) {
@@ -121517,10 +121532,12 @@ __webpack_require__.r(__webpack_exports__);
121517
121532
  /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
121518
121533
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
121519
121534
  /* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
121520
- /* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
121521
- /* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
121522
- /* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
121523
- /* harmony import */ var _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Antlr/KCLangAntlrParser */ "./Generator/src/common/KCLang/Antlr/KCLangAntlrParser.ts");
121535
+ /* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../StringUtils */ "./Generator/src/common/StringUtils.ts");
121536
+ /* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
121537
+ /* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
121538
+ /* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
121539
+ /* harmony import */ var _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Antlr/KCLangAntlrParser */ "./Generator/src/common/KCLang/Antlr/KCLangAntlrParser.ts");
121540
+
121524
121541
 
121525
121542
 
121526
121543
 
@@ -121625,7 +121642,7 @@ function generateKCXmlExpression(expression) {
121625
121642
  }
121626
121643
 
121627
121644
  function formatDescribeStatement(ast, matchPath, describe) {
121628
- return _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_4__.KCLangDescriptionParser.parse(describe.text).map(item => {
121645
+ return _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_5__.KCLangDescriptionParser.parse(describe.text).map(item => {
121629
121646
  if (typeof item === "string") {
121630
121647
  return item;
121631
121648
  } else {
@@ -121657,12 +121674,12 @@ function generateBlockKCXmlFormulas(block, parents) {
121657
121674
  let lastDescribeStatement;
121658
121675
 
121659
121676
  for (const statement of block.statements) {
121660
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isFormulaStatement)(statement)) {
121677
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isFormulaStatement)(statement)) {
121661
121678
  result.push(generateKCXmlFormula(statement, matchPath, lastDescribeStatement));
121662
121679
  lastDescribeStatement = undefined;
121663
121680
  }
121664
121681
 
121665
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isEnsureStatement)(statement)) {
121682
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(statement)) {
121666
121683
  lastDescribeStatement = undefined;
121667
121684
  }
121668
121685
 
@@ -121670,11 +121687,11 @@ function generateBlockKCXmlFormulas(block, parents) {
121670
121687
  throw new Error("Describe should be placed before assign of ensure statements");
121671
121688
  }
121672
121689
 
121673
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isDescribeStatement)(statement)) {
121690
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(statement)) {
121674
121691
  lastDescribeStatement = statement;
121675
121692
  }
121676
121693
 
121677
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isBlockStatement)(statement)) {
121694
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(statement)) {
121678
121695
  result.push(generateBlockKCXmlFormulas(statement, [...(parents !== null && parents !== void 0 ? parents : []), block]));
121679
121696
  }
121680
121697
  }
@@ -121685,7 +121702,7 @@ function generateBlockKCXmlFormulas(block, parents) {
121685
121702
  function guessConditionTarget(condition) {
121686
121703
  let result;
121687
121704
 
121688
- class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_3__.DefaultKCLangExpressionVisitor {
121705
+ class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__.DefaultKCLangExpressionVisitor {
121689
121706
  visitExistsKCLangNode(node) {
121690
121707
  if (result == undefined) {
121691
121708
  result = node.select;
@@ -121706,12 +121723,12 @@ function guessConditionTarget(condition) {
121706
121723
 
121707
121724
  }
121708
121725
 
121709
- (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_3__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
121726
+ (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
121710
121727
  return result;
121711
121728
  }
121712
121729
 
121713
121730
  function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
121714
- const levelAttr = ast.level === "error" ? ` errorLevel="Error"` : "";
121731
+ const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
121715
121732
  const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
121716
121733
  const guessedTarget = guessConditionTarget(ast);
121717
121734
  const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
@@ -121719,7 +121736,7 @@ function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
121719
121736
  if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
121720
121737
  var _parentConditions$map;
121721
121738
 
121722
- const condition = parentConditions.length === 1 ? parentConditions[0].condition : (0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.andKCLangNode)(...((_parentConditions$map = parentConditions === null || parentConditions === void 0 ? void 0 : parentConditions.map(z => z.condition)) !== null && _parentConditions$map !== void 0 ? _parentConditions$map : []));
121739
+ 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 : []));
121723
121740
  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>`;
121724
121741
  }
121725
121742
 
@@ -121732,11 +121749,11 @@ function generateBlockKCXmlConditions(block, parents, parentConditions) {
121732
121749
  let lastDescribeStatement;
121733
121750
 
121734
121751
  for (const statement of block.statements) {
121735
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isFormulaStatement)(statement)) {
121752
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isFormulaStatement)(statement)) {
121736
121753
  lastDescribeStatement = undefined;
121737
121754
  }
121738
121755
 
121739
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isEnsureStatement)(statement)) {
121756
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(statement)) {
121740
121757
  result.push(generateKCXmlCondition(statement, matchPath, parentConditions, lastDescribeStatement));
121741
121758
  lastDescribeStatement = undefined;
121742
121759
  }
@@ -121745,15 +121762,15 @@ function generateBlockKCXmlConditions(block, parents, parentConditions) {
121745
121762
  throw new Error("Describe should be placed before assign of ensure statements");
121746
121763
  }
121747
121764
 
121748
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isDescribeStatement)(statement)) {
121765
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(statement)) {
121749
121766
  lastDescribeStatement = statement;
121750
121767
  }
121751
121768
 
121752
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isConditionalStatement)(statement)) {
121769
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isConditionalStatement)(statement)) {
121753
121770
  result.push(generateConditionalConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
121754
121771
  }
121755
121772
 
121756
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isBlockStatement)(statement)) {
121773
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(statement)) {
121757
121774
  result.push(generateBlockKCXmlConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
121758
121775
  }
121759
121776
  }
@@ -121767,7 +121784,7 @@ function generateConditionalConditions(conditionalStatement, parents, parentCond
121767
121784
  let lastDescribeStatement;
121768
121785
 
121769
121786
  for (const x of conditionalStatement.statements) {
121770
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isEnsureStatement)(x)) {
121787
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(x)) {
121771
121788
  result.push(generateKCXmlCondition(x, matchPath, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement], lastDescribeStatement));
121772
121789
  lastDescribeStatement = undefined;
121773
121790
  }
@@ -121776,15 +121793,15 @@ function generateConditionalConditions(conditionalStatement, parents, parentCond
121776
121793
  throw new Error("Describe should be placed before assign of ensure statements");
121777
121794
  }
121778
121795
 
121779
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isDescribeStatement)(x)) {
121796
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(x)) {
121780
121797
  lastDescribeStatement = x;
121781
121798
  }
121782
121799
 
121783
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isConditionalStatement)(x)) {
121800
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isConditionalStatement)(x)) {
121784
121801
  result.push(generateConditionalConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
121785
121802
  }
121786
121803
 
121787
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isBlockStatement)(x)) {
121804
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(x)) {
121788
121805
  result.push(generateBlockKCXmlConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
121789
121806
  }
121790
121807
  }
@@ -121818,7 +121835,7 @@ function generateKCXml(blocks) {
121818
121835
 
121819
121836
  class KCLangToXmlTranspiler {
121820
121837
  static transpile(kcLang, customParser) {
121821
- const parser = customParser !== null && customParser !== void 0 ? customParser : _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_6__.KCLangAntlrParser.parse;
121838
+ const parser = customParser !== null && customParser !== void 0 ? customParser : _Antlr_KCLangAntlrParser__WEBPACK_IMPORTED_MODULE_7__.KCLangAntlrParser.parse;
121822
121839
  const kcxml = generateKCXml(parser(kcLang).blocks);
121823
121840
  return kcxml;
121824
121841
  }
@@ -121912,6 +121929,10 @@ class FormSchemaRngAttribute {
121912
121929
  return this.optional || this.nillable || false;
121913
121930
  }
121914
121931
 
121932
+ isOptional() {
121933
+ return this.isOptionalOrNillable() || this.parent.isOptionalOrNillable();
121934
+ }
121935
+
121915
121936
  }
121916
121937
  const RootParent = Symbol.for("__ROOT_ELEMENT_PARENT__");
121917
121938
  class FormSchemaRngElement {
@@ -121963,6 +121984,10 @@ class FormSchemaRngElement {
121963
121984
  return this.optional || this.nillable || false;
121964
121985
  }
121965
121986
 
121987
+ isOptional() {
121988
+ return this.isOptionalOrNillable();
121989
+ }
121990
+
121966
121991
  getChildren() {
121967
121992
  return this.children;
121968
121993
  }
@@ -128879,12 +128904,31 @@ class DataDeclarationGenerationContext {
128879
128904
  return {};
128880
128905
  }
128881
128906
 
128907
+ *getAllParentPages(node) {
128908
+ let currentNode = node;
128909
+
128910
+ while (currentNode != undefined) {
128911
+ const parent = currentNode.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode);
128912
+
128913
+ if (parent != undefined) {
128914
+ yield parent;
128915
+ }
128916
+
128917
+ currentNode = parent;
128918
+ }
128919
+ }
128920
+
128882
128921
  getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
128883
128922
  const page = node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode ? node : node.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode);
128884
128923
  const pageName = page === null || page === void 0 ? void 0 : page.id;
128924
+ const pageRequiresResolution = page != undefined && (page.multiple || Iterator.from(this.getAllParentPages(page)).some(x => {
128925
+ var _x$multiple;
128926
+
128927
+ return (_x$multiple = x.multiple) !== null && _x$multiple !== void 0 ? _x$multiple : false;
128928
+ }));
128885
128929
 
128886
128930
  if (!(node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode)) {
128887
- if (page != undefined && page.multiple) {
128931
+ if (pageRequiresResolution) {
128888
128932
  return [{
128889
128933
  fn: `#getSectionFunction('${pageName}')#`
128890
128934
  }];
@@ -129381,7 +129425,8 @@ function isFileExists(directoryPath) {
129381
129425
  }
129382
129426
  function normalizeDocument(documentJson) {
129383
129427
  const availableChildren = documentJson.availableChildren != undefined ? documentJson.availableChildren : {
129384
- type: _DocumentationTypes__WEBPACK_IMPORTED_MODULE_1__.AvailableChildrenType.Any
129428
+ children: [],
129429
+ singleChild: []
129385
129430
  };
129386
129431
  const document = { ...documentJson,
129387
129432
  availableChildren: availableChildren
@@ -129631,7 +129676,13 @@ __webpack_require__.r(__webpack_exports__);
129631
129676
  /* harmony import */ var _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/SinglePropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/SinglePropertyDeserializer.ts");
129632
129677
  /* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource.ts");
129633
129678
  /* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource.ts");
129634
- /* harmony import */ var _DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DocumentationTypes */ "./Generator/src/generators/DocumentationGenerator/DocumentationTypes.ts");
129679
+ /* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource.ts");
129680
+ /* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource.ts");
129681
+ /* harmony import */ var _markupGenerator_Serializer_Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource.ts");
129682
+ /* harmony import */ var _DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DocumentationTypes */ "./Generator/src/generators/DocumentationGenerator/DocumentationTypes.ts");
129683
+
129684
+
129685
+
129635
129686
 
129636
129687
 
129637
129688
 
@@ -129657,21 +129708,135 @@ function buildSugarNodeDocumentation(sugarNodeClass) {
129657
129708
  const documentationFilesContext = metadata.documentationFilesContext;
129658
129709
  const example = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_2__.loadDocumentationFileFormContext)(documentationFilesContext, "example.md");
129659
129710
  const markdownDescription = getMarkdownDescription(documentationFilesContext, metadata, sugarNodeClass);
129711
+ const {
129712
+ markupAttributes,
129713
+ attributes
129714
+ } = buildMarkupAndAttributesInfo(propertySerializers, documentationFilesContext);
129715
+ const {
129716
+ children,
129717
+ singleChild,
129718
+ availableAnyChildren
129719
+ } = buildAvailableChildrenInfo(propertySerializers, documentationFilesContext);
129660
129720
  return {
129661
129721
  name: metadata.sugarNodeName.toLowerCase(),
129662
129722
  availableChildren: {
129663
- type: _DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__.AvailableChildrenType.Any
129723
+ children: children,
129724
+ singleChild: singleChild,
129725
+ availableAnyChildren: availableAnyChildren
129664
129726
  },
129665
129727
  example: example,
129666
129728
  shortMarkdownDescription: metadata.description,
129667
129729
  markdownDescription: markdownDescription,
129668
- attributes: propertySerializers.length === 0 ? [] : propertySerializers.map(x => buildAttributeDocs(x, documentationFilesContext)).flat()
129730
+ attributes: attributes,
129731
+ markupAttributes: markupAttributes
129669
129732
  };
129670
129733
  }
129671
129734
 
129672
- function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129673
- var _propertyDeserializer2;
129735
+ function buildAvailableChildrenInfo(propertySerializers, documentationFilesContext) {
129736
+ if (propertySerializers.length === 0) {
129737
+ return {
129738
+ children: [],
129739
+ singleChild: []
129740
+ };
129741
+ }
129674
129742
 
129743
+ const children = propertySerializers.map(x => buildAvailableChildrenDocs(x, documentationFilesContext)).flat();
129744
+ const singleChild = propertySerializers.map(x => buildAvailableSingleChildDocs(x, documentationFilesContext)).flat();
129745
+ const availableAnyChildren = propertySerializers.map(x => buildAvailableSugarChildrenDocs(x, documentationFilesContext)).some(x => x === true);
129746
+ return {
129747
+ children: children,
129748
+ singleChild: singleChild,
129749
+ availableAnyChildren: availableAnyChildren
129750
+ };
129751
+ }
129752
+
129753
+ function buildAvailableChildrenDocs(propertyDeserializer, documentationFilesContext) {
129754
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129755
+ return [];
129756
+ }
129757
+
129758
+ if (propertyDeserializer.propertyName === "children") {
129759
+ return [];
129760
+ }
129761
+
129762
+ if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_9__.ChildrenNodesValueSource) {
129763
+ const childrenNodes = propertyDeserializer.valueSource.nodeClasses.map(buildSugarNodeDocumentation);
129764
+ return childrenNodes;
129765
+ }
129766
+
129767
+ return [];
129768
+ }
129769
+
129770
+ function buildAvailableSugarChildrenDocs(propertyDeserializer, documentationFilesContext) {
129771
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129772
+ return false;
129773
+ }
129774
+
129775
+ if (propertyDeserializer.propertyName === "children") {
129776
+ return true;
129777
+ }
129778
+
129779
+ return false;
129780
+ }
129781
+
129782
+ function buildAvailableSingleChildDocs(propertyDeserializer, documentationFilesContext) {
129783
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129784
+ return [];
129785
+ }
129786
+
129787
+ if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_10__.SingleChildValueSource) {
129788
+ const childrenNodes = propertyDeserializer.valueSource.nodeClasses.map(buildSugarNodeDocumentation);
129789
+ return childrenNodes;
129790
+ }
129791
+
129792
+ return [];
129793
+ }
129794
+
129795
+ function buildMarkupAndAttributesInfo(propertySerializers, documentationFilesContext) {
129796
+ if (propertySerializers.length === 0) {
129797
+ return {
129798
+ attributes: [],
129799
+ markupAttributes: []
129800
+ };
129801
+ }
129802
+
129803
+ const attributes = propertySerializers.map(x => buildAttributeDocs(x, documentationFilesContext)).flat();
129804
+ const markupAttributes = propertySerializers.map(x => buildMarkupAttributeDocs(x, documentationFilesContext)).flat();
129805
+ return {
129806
+ attributes: attributes,
129807
+ markupAttributes: markupAttributes
129808
+ };
129809
+ }
129810
+
129811
+ function buildMarkupAttributeDocs(propertyDeserializer, documentationFilesContext) {
129812
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129813
+ return [];
129814
+ }
129815
+
129816
+ if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_8__.MarkupOrAttributeValueSource) {
129817
+ var _propertyDeserializer;
129818
+
129819
+ let markdownDescription = "";
129820
+
129821
+ if (documentationFilesContext != undefined) {
129822
+ markdownDescription = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_2__.loadDocumentationFileFormContext)(documentationFilesContext, `${propertyDeserializer.valueSource.attrName}.attr.md`);
129823
+ }
129824
+
129825
+ return [{
129826
+ name: propertyDeserializer.valueSource.attrName,
129827
+ valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
129828
+ shortMarkdownDescription: (_propertyDeserializer = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer !== void 0 ? _propertyDeserializer : "--",
129829
+ markdownDescription: markdownDescription,
129830
+ defaultValue: undefined,
129831
+ required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
129832
+ deprecated: false
129833
+ }];
129834
+ }
129835
+
129836
+ return [];
129837
+ }
129838
+
129839
+ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129675
129840
  if (propertyDeserializer instanceof _markupGenerator_Serializer_Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_4__.MixinPropertyDeserializer) {
129676
129841
  return propertyDeserializer.getPropertyDeserializers().map(x => buildAttributeDocs(x, documentationFilesContext)).flat();
129677
129842
  }
@@ -129681,7 +129846,7 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129681
129846
  }
129682
129847
 
129683
129848
  if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_6__.AttributeValueSource) {
129684
- var _propertyDeserializer;
129849
+ var _propertyDeserializer2;
129685
129850
 
129686
129851
  let markdownDescription = "";
129687
129852
 
@@ -129691,11 +129856,11 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129691
129856
 
129692
129857
  return [{
129693
129858
  name: propertyDeserializer.valueSource.attrName,
129694
- valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
129695
- shortMarkdownDescription: (_propertyDeserializer = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer !== void 0 ? _propertyDeserializer : "--",
129859
+ valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
129860
+ shortMarkdownDescription: (_propertyDeserializer2 = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer2 !== void 0 ? _propertyDeserializer2 : "--",
129696
129861
  markdownDescription: markdownDescription,
129697
129862
  defaultValue: undefined,
129698
- required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
129863
+ required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
129699
129864
  deprecated: false
129700
129865
  }];
129701
129866
  }
@@ -129712,15 +129877,7 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129712
129877
  }];
129713
129878
  }
129714
129879
 
129715
- return [{
129716
- name: propertyDeserializer.propertyName,
129717
- valueTypes: [],
129718
- shortMarkdownDescription: (_propertyDeserializer2 = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer2 !== void 0 ? _propertyDeserializer2 : "--",
129719
- markdownDescription: "",
129720
- defaultValue: undefined,
129721
- required: undefined,
129722
- deprecated: false
129723
- }];
129880
+ return [];
129724
129881
  }
129725
129882
 
129726
129883
  /***/ }),
@@ -131354,7 +131511,7 @@ class FLangValidationBuildContext {
131354
131511
  }, undefined);
131355
131512
 
131356
131513
  if (enumerationRuleBody != undefined) {
131357
- yield [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(enumerationRuleBody), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле должно быть заполнено"]`)];
131514
+ yield [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(enumerationRuleBody), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле заполнено не по справочнику"]`)];
131358
131515
  }
131359
131516
 
131360
131517
  const makeArrayLiteral = text => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${text}"]`);
@@ -131415,7 +131572,7 @@ class FLangValidationBuildContext {
131415
131572
  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;
131416
131573
 
131417
131574
  if (totalDigitsValue != undefined) {
131418
- 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__.LenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.DecimalLiteralExpression(totalDigitsValue)));
131575
+ 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)));
131419
131576
  yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Число не может содержать более ${totalDigitsValue} знаков"]`)];
131420
131577
  }
131421
131578
 
@@ -131423,8 +131580,11 @@ class FLangValidationBuildContext {
131423
131580
  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];
131424
131581
 
131425
131582
  if (pattern != undefined) {
131583
+ var _schemaTypeNode$descr;
131584
+
131426
131585
  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)]));
131427
- yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["Поле должно быть заполнено"]`)];
131586
+ const validationErrorMessage = (_schemaTypeNode$descr = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _schemaTypeNode$descr !== void 0 ? _schemaTypeNode$descr : "Поле заполнено неверно";
131587
+ yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${validationErrorMessage}"]`)];
131428
131588
  }
131429
131589
 
131430
131590
  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));
@@ -131557,6 +131717,7 @@ __webpack_require__.r(__webpack_exports__);
131557
131717
  /* harmony export */ "BoolLiteralExpression": () => (/* binding */ BoolLiteralExpression),
131558
131718
  /* harmony export */ "AbsExpression": () => (/* binding */ AbsExpression),
131559
131719
  /* harmony export */ "LenExpression": () => (/* binding */ LenExpression),
131720
+ /* harmony export */ "NumLenExpression": () => (/* binding */ NumLenExpression),
131560
131721
  /* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
131561
131722
  /* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
131562
131723
  /* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
@@ -131913,6 +132074,18 @@ class LenExpression extends FLangExpression {
131913
132074
  return `len(${this.expression.convertToString()})`;
131914
132075
  }
131915
132076
 
132077
+ }
132078
+ class NumLenExpression extends FLangExpression {
132079
+ constructor(expression) {
132080
+ super();
132081
+ this.expression = void 0;
132082
+ this.expression = expression;
132083
+ }
132084
+
132085
+ convertToString() {
132086
+ return `numLen(${this.expression.convertToString()})`;
132087
+ }
132088
+
131916
132089
  }
131917
132090
  class FractionalLenExpression extends FLangExpression {
131918
132091
  constructor(expression) {
@@ -132179,7 +132352,7 @@ class NormalizationRulesGenerator {
132179
132352
  buildSugarFLangRules() {
132180
132353
  const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
132181
132354
  const builder = new _markupGenerator_FLangNormalizationRulesBuilder__WEBPACK_IMPORTED_MODULE_8__.FLangNormalizationRulesBuilder(this.controlCustomizationContext);
132182
- return converter.buildNormalizeRules(builder);
132355
+ return converter.buildNormalizeRules(builder, this.formSchemaRng);
132183
132356
  }
132184
132357
 
132185
132358
  *buildFormulaFLangRules() {
@@ -132367,15 +132540,35 @@ class NormalizationRulesGenerator {
132367
132540
  }
132368
132541
 
132369
132542
  compileSumExpression(expression, prefix, target, addPrecalculationRule) {
132370
- const result = expression.arguments.reduce((acc, curr) => {
132371
- const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
132543
+ const args = this.getFlatArgumentExpressions(expression.arguments);
132544
+ const conditionExpression = args.reduce((acc, curr) => {
132545
+ const currExpr = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NotEqExpression(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
132546
+ return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(acc, currExpr) : currExpr;
132547
+ }, undefined);
132548
+
132549
+ if (conditionExpression == undefined) {
132550
+ const result = expression.arguments.reduce((acc, curr) => {
132551
+ const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
132552
+ return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
132553
+ }, undefined);
132554
+
132555
+ if (result == undefined) {
132556
+ throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
132557
+ }
132558
+
132559
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
132560
+ }
132561
+
132562
+ const trueResultExpression = expression.arguments.reduce((acc, curr) => {
132563
+ const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), 0);
132372
132564
  return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
132373
132565
  }, undefined);
132374
132566
 
132375
- if (result == undefined) {
132567
+ if (trueResultExpression == undefined) {
132376
132568
  throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
132377
132569
  }
132378
132570
 
132571
+ const result = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(conditionExpression, trueResultExpression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
132379
132572
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
132380
132573
  }
132381
132574
 
@@ -132445,19 +132638,33 @@ class NormalizationRulesGenerator {
132445
132638
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
132446
132639
  }
132447
132640
 
132641
+ getFlatArgumentExpressions(expressions) {
132642
+ return expressions.reduce((acc, curr) => {
132643
+ if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaArgumentExpression) {
132644
+ return acc.concat(curr);
132645
+ }
132646
+
132647
+ 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) {
132648
+ return acc.concat(this.getFlatArgumentExpressions(curr.arguments));
132649
+ }
132650
+
132651
+ return acc;
132652
+ }, []);
132653
+ }
132654
+
132448
132655
  castOperandToStringIfNeed(operandExpression) {
132449
132656
  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");
132450
132657
  }
132451
132658
 
132452
- castOperandToDecimalIfNeed(operandExpression) {
132453
- return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "decimal");
132659
+ castOperandToDecimalIfNeed(operandExpression, defaultValue) {
132660
+ 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);
132454
132661
  }
132455
132662
 
132456
132663
  *buildSugarValidationRules() {
132457
132664
  const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
132458
132665
  const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_14__.FLangValidationBuildContext(this.typesRegistry, this.formSchemaRng, this.useSchemaValidations);
132459
132666
  const kcRules = this.buildKcValidationRules();
132460
- const allRules = Iterator.from(converter.buildFLangValidations(context)).reduce((ctx, current) => {
132667
+ const allRules = Iterator.from(converter.buildFLangValidations(context, this.formSchemaRng)).reduce((ctx, current) => {
132461
132668
  const statement = current.statement;
132462
132669
 
132463
132670
  if (!(statement instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement)) {
@@ -136841,12 +137048,23 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
136841
137048
  }
136842
137049
 
136843
137050
  findOptionalSections(node) {
136844
- const optionalPages = node.pages.filter(page => page.optional && !page.multiple).map(page => page.id).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNotNullOrUndefined);
137051
+ const optionalPages = this.getAllPages(node.pages).filter(page => {
137052
+ var _page$optional;
137053
+
137054
+ return ((_page$optional = page.optional) !== null && _page$optional !== void 0 ? _page$optional : false) && !page.multiple;
137055
+ }).map(page => ({
137056
+ id: page.id,
137057
+ path: page.getFullPath().toLegacyPath()
137058
+ })).filter(x => (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNotNullOrUndefined)(x.id));
136845
137059
  return optionalPages;
136846
137060
  }
136847
137061
 
137062
+ getAllPages(pages) {
137063
+ const allPages = pages.flatMap(page => this.getAllPages(page.pages));
137064
+ return pages.concat(allPages);
137065
+ }
137066
+
136848
137067
  buildBaseFormWithContent(context, formContent, formNode) {
136849
- this.assertHasNowOptionalNestedPagesInsideMultipleUnits(formNode);
136850
137068
  const pageNodes = this.getFormPages(formNode);
136851
137069
  const formMarkupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("BaseForm");
136852
137070
 
@@ -136864,20 +137082,6 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
136864
137082
  return result;
136865
137083
  }
136866
137084
 
136867
- assertHasNowOptionalNestedPagesInsideMultipleUnits(formNode) {
136868
- function assert(pages, hasMultipleUnitsInParents) {
136869
- for (const page of pages) {
136870
- if (hasMultipleUnitsInParents && page.optional && !page.multiple) {
136871
- throw new Error(`Check page with id '${page.id}'. Optional nested pages not supported: actions 'add', 'remove', 'check is empty' does not work for optional nested of multiple instance`);
136872
- }
136873
-
136874
- assert(page.pages, hasMultipleUnitsInParents || !!page.multiple);
136875
- }
136876
- }
136877
-
136878
- assert(formNode.pages, false);
136879
- }
136880
-
136881
137085
  getFormPages(formNode) {
136882
137086
  const pages = [];
136883
137087
  const queue = [...formNode.pages];
@@ -136945,6 +137149,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
136945
137149
  bindingPath: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(pageNode),
136946
137150
  optional: pageNode.optional,
136947
137151
  pageActions: pageNode.pageActions,
137152
+ hideEnableAutoValues: pageNode.hideEnableAutoValues,
136948
137153
  showOnDemand: pageNode.showOnDemand,
136949
137154
  onNavigateFromErrorLog: context.generateHelperFunctionExpressionWithoutContext(pageNode, "onNavigateFromErrorLog", pageNode.onNavigateFromErrorLog)
136950
137155
  };
@@ -137041,8 +137246,11 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
137041
137246
  }
137042
137247
 
137043
137248
  if (pageNode.multiple) {
137249
+ var _pageNode$unitsCountF;
137250
+
137044
137251
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(pageNode));
137045
137252
  markupBuilder.prop(x => x.multiple).set(true);
137253
+ markupBuilder.prop(x => x.unitsCountForPaging).set((_pageNode$unitsCountF = pageNode.unitsCountForPaging) !== null && _pageNode$unitsCountF !== void 0 ? _pageNode$unitsCountF : node.defaultUnitsCountForPaging);
137046
137254
  } else if (pageNode.path != undefined) {
137047
137255
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(pageNode));
137048
137256
  }
@@ -137053,6 +137261,10 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
137053
137261
  markupBuilder.prop(x => x.pageActions).set(pageNode.pageActions);
137054
137262
  }
137055
137263
 
137264
+ if (pageNode.hideEnableAutoValues != undefined) {
137265
+ markupBuilder.prop(x => x.hideEnableAutoValues).set(pageNode.hideEnableAutoValues);
137266
+ }
137267
+
137056
137268
  const pageMarkupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)([], this.getPageName(pageNode));
137057
137269
  markupBuilder.appendChild(pageMarkupBuilder);
137058
137270
  markupBuilder.appendChildren(pageNode.pages.map(x => this.buildPageUnit(node, x)));
@@ -137213,7 +137425,7 @@ __webpack_require__.r(__webpack_exports__);
137213
137425
 
137214
137426
 
137215
137427
 
137216
- var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _class4, _class5, _descriptor2, _descriptor3, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _class7, _class8, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42;
137428
+ var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _class4, _class5, _descriptor2, _descriptor3, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _class7, _class8, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43;
137217
137429
 
137218
137430
 
137219
137431
 
@@ -137260,7 +137472,7 @@ let ModalTitleNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
137260
137472
  initializer: null
137261
137473
  })), _class5)) || _class4);
137262
137474
  let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("form", `Корневой элемент формы.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form sync recursive .md$")), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("userpicklist", [_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_10__.UserPicklistNode]), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("tour", [_Tour_TourNode__WEBPACK_IMPORTED_MODULE_9__.TourNode]), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("fetchfunctions", [FetchFunctionsReferenceNode]), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("modalIE8", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Removed), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("m", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("uf", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("forceNavigate", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("hideUnitsAdder", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("hasRegionalForms", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.UntypedUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("controls"), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("modalheader", [ModalTitleNode]), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("import", [_SugarNodes_Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_7__.ImportNode]), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("panel", [_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_12__.PanelNode]), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("page", [_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode]), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("simple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("schemaValidations", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("isReadOnly", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отобразить форму в режиме чтения - все редактирование будет отключено (включая интерактивные элементы - валидации, фокус, подсветки тултипы и тд)"), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("ieDeprecationWarningEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отображать окно с предупреждением, что некоторые функции в ie не работают, с предложением скачать другие браузеры. Не блокирует взаимодействие"), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("compactActionPanel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отображать компактную плашку (без надписей) на панели действий слева"), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("ieSizeLimitation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Это флаг включает отображение заглушки для IE, если фуф больше определенного размера`), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("templates", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Управляет влючение возможность создавать и применять шаблоны keweb-а (кнопка в меню)`), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("plain", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Форма без боковой панели, которая будет содержать один раздел`), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("requisite", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Есть подозрение что это свойство не используется`), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, ``), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("cssWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Более преоритетный чем обычный width, задается как css`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("buttonSettingsType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType["enum"](_Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.Revise, _Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.DigitalWarrant), `Разные настройки кнопок отправить и действий с формой. Сейчас есть только ${_Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.Revise} / ${_Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.DigitalWarrant} который будет делать кнопки в плашке для simple form как у ИОН или Сверке ФСС`), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("validationBeforeSend", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Локальная проверка, которая не даст отправить форму, если есть невалидные поля.\n
137263
- После проверки фокус падает на невалидное поле, если это возможно. Например на input`), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("padding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.lengthUnit, ``), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("maxunitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `По дефолту 15. Если количество разделов превышает \`maxunitscount\`, начинает работать частичный рендеринг. Отрисовывается столько разделов вниз от текущего, сколько задано в настройке, а при скроллинге вниз рендерятся следующие. Используется для больших форм с множественными разделами (напр, ЕНВД, Прибыль), помогает облегчить загрузку редактора`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("unitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, ``), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("transferText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.localizedString, `Текст в лайтбоксе, который появляется по кнопке "Перенести данные"`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Количество множественных разделов при котором навигация сворачивается (в левой колонке отображаются не все экземпляры), как выглядит можешь посмотреть в ЕНВД при количестве разделов 2 больше 15`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadFufButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включает кнопку загрузить отчет в "Другие действия" в панели слева.`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.markupAttr)("fufSizeTooLargeErrorText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Описание ошибки для большого размера файла`), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadFufLightboxHideDemandNameButton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Отключает кнопку "Показать имя требования" внутри лайтбокса Загрузки файла.`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadInquiryButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включает кнопку загрузить справки в панели слева. (только для 6ндфл и РСВ)`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("types", [_TypeListNode__WEBPACK_IMPORTED_MODULE_13__.TypeListNode]), _dec6(_class7 = (_class8 = class FormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.SugarNodeBase {
137475
+ После проверки фокус падает на невалидное поле, если это возможно. Например на input`), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("padding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.lengthUnit, ``), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("maxunitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `По дефолту 15. Если количество разделов превышает \`maxunitscount\`, начинает работать частичный рендеринг. Отрисовывается столько разделов вниз от текущего, сколько задано в настройке, а при скроллинге вниз рендерятся следующие. Используется для больших форм с множественными разделами (напр, ЕНВД, Прибыль), помогает облегчить загрузку редактора`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("unitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, ``), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("transferText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.localizedString, `Текст в лайтбоксе, который появляется по кнопке "Перенести данные"`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Количество множественных разделов при котором навигация сворачивается (в левой колонке отображаются не все экземпляры), как выглядит можешь посмотреть в ЕНВД при количестве разделов 2 больше 15`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadFufButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включает кнопку загрузить отчет в "Другие действия" в панели слева.`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.markupAttr)("fufSizeTooLargeErrorText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Описание ошибки для большого размера файла`), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadFufLightboxHideDemandNameButton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Отключает кнопку "Показать имя требования" внутри лайтбокса Загрузки файла.`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadInquiryButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включает кнопку загрузить справки в панели слева. (только для 6ндфл и РСВ)`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("defaultUnitsCountForPaging", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Количество инстансов множественного раздела на котором включается паджинация раздела`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("types", [_TypeListNode__WEBPACK_IMPORTED_MODULE_13__.TypeListNode]), _dec6(_class7 = (_class8 = class FormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.SugarNodeBase {
137264
137476
  constructor(...args) {
137265
137477
  super(...args);
137266
137478
 
@@ -137338,9 +137550,11 @@ let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
137338
137550
 
137339
137551
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uploadInquiryButtonEnabled", _descriptor40, this);
137340
137552
 
137341
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "types", _descriptor41, this);
137553
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "defaultUnitsCountForPaging", _descriptor41, this);
137554
+
137555
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "types", _descriptor42, this);
137342
137556
 
137343
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "typeLists", _descriptor42, this);
137557
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "typeLists", _descriptor43, this);
137344
137558
  }
137345
137559
 
137346
137560
  getOwnPath() {
@@ -137540,12 +137754,17 @@ let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
137540
137754
  enumerable: true,
137541
137755
  writable: true,
137542
137756
  initializer: null
137543
- }), _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "types", [_dec44], {
137757
+ }), _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "defaultUnitsCountForPaging", [_dec44], {
137758
+ configurable: true,
137759
+ enumerable: true,
137760
+ writable: true,
137761
+ initializer: null
137762
+ }), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "types", [_dec45], {
137544
137763
  configurable: true,
137545
137764
  enumerable: true,
137546
137765
  writable: true,
137547
137766
  initializer: null
137548
- }), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "typeLists", [_dec45], {
137767
+ }), _descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "typeLists", [_dec46], {
137549
137768
  configurable: true,
137550
137769
  enumerable: true,
137551
137770
  writable: true,
@@ -137883,19 +138102,18 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
137883
138102
  return false;
137884
138103
  }
137885
138104
 
137886
- *doBuildNormalizeRules(builder) {
138105
+ *doBuildNormalizeRules(builder, formSchemaRng) {
137887
138106
  const node = this.getCurrentNodeAs(_PageNode__WEBPACK_IMPORTED_MODULE_14__.PageNode);
138107
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
137888
138108
 
137889
138109
  if (node.path == undefined) {
137890
138110
  return;
137891
138111
  }
137892
138112
 
137893
138113
  if (node.multiple) {
137894
- var _node$optional;
137895
-
137896
- yield* builder.childrenInitializer(node, (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false);
138114
+ const isOptional = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional;
138115
+ yield* builder.childrenInitializer(node, isOptional !== null && isOptional !== void 0 ? isOptional : false);
137897
138116
  yield* builder.specialFieldsInitializer(node, {
137898
- optional: node.optional,
137899
138117
  disabled: undefined
137900
138118
  });
137901
138119
  }
@@ -138053,7 +138271,7 @@ __webpack_require__.r(__webpack_exports__);
138053
138271
 
138054
138272
 
138055
138273
 
138056
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;
138274
+ 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;
138057
138275
 
138058
138276
 
138059
138277
 
@@ -138061,7 +138279,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
138061
138279
 
138062
138280
 
138063
138281
 
138064
- 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)("multipleAppearance", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("nested", "flat"), "Представление множественных разделов: вложенное или плоское"), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Опциональный раздел`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("pageActions", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.objectLiteral(), `Атрибут для кастомизации действий с разделом`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.number, `Количество экземпляров множественного раздела после которого в левом меню будет включаться компактный режим отображения разделов. По умолчанию: 15. Используется только для множественных разделов`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("addingHint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.localizedString, `Подсказка на кнопке добавления раздела в боковом меню. Используется только для множественных разделов`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("page"), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("title", [_PageTitleNode__WEBPACK_IMPORTED_MODULE_8__.PageTitleNode]), _dec23 = (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 {
138282
+ 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 {
138065
138283
  constructor(...args) {
138066
138284
  super(...args);
138067
138285
 
@@ -138091,23 +138309,27 @@ let PageNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5
138091
138309
 
138092
138310
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor13, this);
138093
138311
 
138094
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multipleAppearance", _descriptor14, this);
138312
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "unitsCountForPaging", _descriptor14, this);
138095
138313
 
138096
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor15, this);
138314
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multipleAppearance", _descriptor15, this);
138315
+
138316
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor16, this);
138097
138317
 
138098
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pageActions", _descriptor16, this);
138318
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pageActions", _descriptor17, this);
138099
138319
 
138100
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationLimit", _descriptor17, this);
138320
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hideEnableAutoValues", _descriptor18, this);
138101
138321
 
138102
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "addingHint", _descriptor18, this);
138322
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationLimit", _descriptor19, this);
138103
138323
 
138104
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pages", _descriptor19, this);
138324
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "addingHint", _descriptor20, this);
138105
138325
 
138106
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor20, this);
138326
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pages", _descriptor21, this);
138107
138327
 
138108
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title", _descriptor21, this);
138328
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor22, this);
138109
138329
 
138110
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "visible", _descriptor22, this);
138330
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title", _descriptor23, this);
138331
+
138332
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "visible", _descriptor24, this);
138111
138333
  }
138112
138334
 
138113
138335
  getOwnPath() {
@@ -138185,47 +138407,57 @@ let PageNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5
138185
138407
  enumerable: true,
138186
138408
  writable: true,
138187
138409
  initializer: null
138188
- }), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "multipleAppearance", [_dec15], {
138410
+ }), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "unitsCountForPaging", [_dec15], {
138411
+ configurable: true,
138412
+ enumerable: true,
138413
+ writable: true,
138414
+ initializer: null
138415
+ }), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "multipleAppearance", [_dec16], {
138416
+ configurable: true,
138417
+ enumerable: true,
138418
+ writable: true,
138419
+ initializer: null
138420
+ }), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "optional", [_dec17], {
138189
138421
  configurable: true,
138190
138422
  enumerable: true,
138191
138423
  writable: true,
138192
138424
  initializer: null
138193
- }), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "optional", [_dec16], {
138425
+ }), _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pageActions", [_dec18], {
138194
138426
  configurable: true,
138195
138427
  enumerable: true,
138196
138428
  writable: true,
138197
138429
  initializer: null
138198
- }), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pageActions", [_dec17], {
138430
+ }), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "hideEnableAutoValues", [_dec19], {
138199
138431
  configurable: true,
138200
138432
  enumerable: true,
138201
138433
  writable: true,
138202
138434
  initializer: null
138203
- }), _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "navigationLimit", [_dec18], {
138435
+ }), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "navigationLimit", [_dec20], {
138204
138436
  configurable: true,
138205
138437
  enumerable: true,
138206
138438
  writable: true,
138207
138439
  initializer: null
138208
- }), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "addingHint", [_dec19], {
138440
+ }), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "addingHint", [_dec21], {
138209
138441
  configurable: true,
138210
138442
  enumerable: true,
138211
138443
  writable: true,
138212
138444
  initializer: null
138213
- }), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pages", [_dec20], {
138445
+ }), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pages", [_dec22], {
138214
138446
  configurable: true,
138215
138447
  enumerable: true,
138216
138448
  writable: true,
138217
138449
  initializer: null
138218
- }), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec21], {
138450
+ }), _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec23], {
138219
138451
  configurable: true,
138220
138452
  enumerable: true,
138221
138453
  writable: true,
138222
138454
  initializer: null
138223
- }), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "title", [_dec22], {
138455
+ }), _descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "title", [_dec24], {
138224
138456
  configurable: true,
138225
138457
  enumerable: true,
138226
138458
  writable: true,
138227
138459
  initializer: null
138228
- }), _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "visible", [_dec23], {
138460
+ }), _descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "visible", [_dec25], {
138229
138461
  configurable: true,
138230
138462
  enumerable: true,
138231
138463
  writable: true,
@@ -143870,7 +144102,6 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
143870
144102
 
143871
144103
  yield* builder.childrenInitializer(rowNode, (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : false, rowNode.defaultChildren);
143872
144104
  yield* builder.specialFieldsInitializer(rowNode, {
143873
- optional: rowNode.optional,
143874
144105
  disabled: undefined
143875
144106
  });
143876
144107
  }
@@ -147187,6 +147418,20 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
147187
147418
  return _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode;
147188
147419
  }
147189
147420
 
147421
+ *doBuildNormalizeRules(builder, formSchemaRng) {
147422
+ const node = this.getCurrentNodeAs(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode);
147423
+
147424
+ for (const row of node.rows) {
147425
+ if (row instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableMultilineNode) {
147426
+ var _ref;
147427
+
147428
+ const element = formSchemaRng.getElementByPath(row.getFullPath());
147429
+ const isOptional = (_ref = row.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : row.optional) !== null && _ref !== void 0 ? _ref : false;
147430
+ yield* builder.childrenInitializer(row, isOptional);
147431
+ }
147432
+ }
147433
+ }
147434
+
147190
147435
  *doTraverseChildren() {
147191
147436
  const node = this.getCurrentNodeAs(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode);
147192
147437
 
@@ -147294,9 +147539,9 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
147294
147539
 
147295
147540
  processMultilineNode(context, rowNode) {
147296
147541
  if (rowNode instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableMultilineNode) {
147297
- var _ref, _rowNode$optional;
147542
+ var _ref2, _rowNode$optional;
147298
147543
 
147299
- return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_ref = (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : context.isMultipleNodeOptionalFromScheme(rowNode.getFullPath())) !== null && _ref !== void 0 ? _ref : false, rowNode.defaultChildren)]]), rowNode.maxOccurs != undefined && /^\d+$/.test(rowNode.maxOccurs) && context.maxOccurs(rowNode.getFullPath(), rowNode.maxOccurs), context.addSpecialFieldsEntry(rowNode, {
147544
+ 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, {
147300
147545
  optional: rowNode.optional
147301
147546
  }), context.addPathSectionDeclarationEntry(rowNode), context.addVisibilityPathDeclEntryNew(rowNode), context.processChildrenDataDeclaration(rowNode.rows, rowNode2 => this.processMultilineRowNode(context, rowNode2)));
147302
147547
  }
@@ -147369,11 +147614,11 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
147369
147614
  const sideSize = (_node$side2 = node.side) !== null && _node$side2 !== void 0 ? _node$side2 : 0;
147370
147615
 
147371
147616
  if (this.isSimpleForm()) {
147372
- var _ref2, _node$deprecatedDiado;
147617
+ var _ref3, _node$deprecatedDiado;
147373
147618
 
147374
147619
  mb.prop(x => x.maxWidth).set(orientation === "landscape" ? maxWidth : undefined);
147375
147620
  mb.prop(x => x.sideSize).set(this.hasActionButton(node) && sideSize !== 0 ? sideSize + 1 : sideSize);
147376
- const width = (_ref2 = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref2 !== void 0 ? _ref2 : maxWidthSimpleForm;
147621
+ const width = (_ref3 = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref3 !== void 0 ? _ref3 : maxWidthSimpleForm;
147377
147622
  mb.prop(x => x.width).set(width);
147378
147623
  mb.prop(x => x.footerHeight).set(160);
147379
147624
  } else {
@@ -147662,10 +147907,10 @@ BindingPath: ${errorPath}`));
147662
147907
  if (this.isSimpleForm()) {
147663
147908
  mb.prop(x => x.buttonType).set(undefined);
147664
147909
  } else {
147665
- var _multiline$rowmenu, _ref3, _tableNode$removeButt;
147910
+ var _multiline$rowmenu, _ref4, _tableNode$removeButt;
147666
147911
 
147667
147912
  const rowMenu = (_multiline$rowmenu = multiline.rowmenu) !== null && _multiline$rowmenu !== void 0 ? _multiline$rowmenu : false;
147668
- const removebutton = (_ref3 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref3 !== void 0 ? _ref3 : true;
147913
+ const removebutton = (_ref4 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true;
147669
147914
  mb.prop(x => x.buttonType).set(rowMenu ? "RowMenu" : removebutton ? "RemoveRowButton" : undefined);
147670
147915
  }
147671
147916
 
@@ -147688,7 +147933,7 @@ BindingPath: ${errorPath}`));
147688
147933
  }
147689
147934
 
147690
147935
  getMultiline(context, node, multiline, start, end = Infinity) {
147691
- var _ref4, _node$removeButton, _multiline$rowmenu2, _ref5, _node$removeButton2, _context$popPathsCont2;
147936
+ var _ref5, _node$removeButton, _multiline$rowmenu2, _ref6, _node$removeButton2, _context$popPathsCont2;
147692
147937
 
147693
147938
  const overrideInfo = multiline.override ? context.controlCustomizationContext.getControlCustomizationInfo("multiline", multiline.override) : undefined;
147694
147939
  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);
@@ -147702,7 +147947,7 @@ BindingPath: ${errorPath}`));
147702
147947
  mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_13__.getNewBindingPathExpression)(multiline));
147703
147948
  mb.prop(x => x.showRowBorder).set(multiline.showRowBorder);
147704
147949
  mb.prop(x => x.onRowCLick).set(context.generateHelperFunctionExpression(multiline, "onRowClick", multiline.onRowClick));
147705
- const hasRemoveButton = ((_ref4 = (_node$removeButton = node.removeButton) !== null && _node$removeButton !== void 0 ? _node$removeButton : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true) || ((_multiline$rowmenu2 = multiline.rowmenu) !== null && _multiline$rowmenu2 !== void 0 ? _multiline$rowmenu2 : false);
147950
+ 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);
147706
147951
  const needAddButton = multiline.addbutton !== "false";
147707
147952
 
147708
147953
  if (this.isSimpleForm()) {
@@ -147715,7 +147960,7 @@ BindingPath: ${errorPath}`));
147715
147960
  mb.prop(x => x.removeButtonPosition).set(undefined);
147716
147961
  }
147717
147962
 
147718
- mb.prop(x => x.disableScroll).set(needAddButton || ((_ref5 = (_node$removeButton2 = node.removeButton) !== null && _node$removeButton2 !== void 0 ? _node$removeButton2 : multiline.removebutton) !== null && _ref5 !== void 0 ? _ref5 : true) ? undefined : true);
147963
+ 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);
147719
147964
  context.pushPathsContext();
147720
147965
 
147721
147966
  if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayHasLength)(multiline.rows, 1)) {
@@ -147741,9 +147986,9 @@ BindingPath: ${errorPath}`));
147741
147986
  hasActionButton(node) {
147742
147987
  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);
147743
147988
  return multilines.some(multiline => {
147744
- var _ref6, _node$removeButton3;
147989
+ var _ref7, _node$removeButton3;
147745
147990
 
147746
- return ((_ref6 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref6 !== void 0 ? _ref6 : true) || multiline.rowmenu;
147991
+ return ((_ref7 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref7 !== void 0 ? _ref7 : true) || multiline.rowmenu;
147747
147992
  });
147748
147993
  }
147749
147994
 
@@ -147994,13 +148239,14 @@ class Table2MultirowConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
147994
148239
  return markupBuilder.buildConverterResult();
147995
148240
  }
147996
148241
 
147997
- *doBuildNormalizeRules(builder) {
147998
- var _node$optional2;
148242
+ *doBuildNormalizeRules(builder, formSchemaRng) {
148243
+ var _ref2;
147999
148244
 
148000
148245
  const node = this.getCurrentNodeAs(_Table2Node__WEBPACK_IMPORTED_MODULE_3__.Table2MultirowNode);
148001
- yield* builder.childrenInitializer(node, (_node$optional2 = node.optional) !== null && _node$optional2 !== void 0 ? _node$optional2 : false);
148246
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
148247
+ const isOptional = (_ref2 = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional) !== null && _ref2 !== void 0 ? _ref2 : false;
148248
+ yield* builder.childrenInitializer(node, isOptional);
148002
148249
  yield* builder.specialFieldsInitializer(node, {
148003
- optional: node.optional,
148004
148250
  disabled: undefined
148005
148251
  });
148006
148252
  }
@@ -148815,13 +149061,14 @@ class TabsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
148815
149061
  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));
148816
149062
  }
148817
149063
 
148818
- *doBuildNormalizeRules(builder) {
148819
- var _node$optional2;
149064
+ *doBuildNormalizeRules(builder, formSchemaRng) {
149065
+ var _ref2;
148820
149066
 
148821
149067
  const node = this.getCurrentNodeAs(_TabsNode__WEBPACK_IMPORTED_MODULE_4__.TabsNode);
148822
- yield* builder.childrenInitializer(node, (_node$optional2 = node.optional) !== null && _node$optional2 !== void 0 ? _node$optional2 : false);
149068
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
149069
+ const isOptional = (_ref2 = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional) !== null && _ref2 !== void 0 ? _ref2 : false;
149070
+ yield* builder.childrenInitializer(node, isOptional);
148823
149071
  yield* builder.specialFieldsInitializer(node, {
148824
- optional: node.optional,
148825
149072
  disabled: undefined
148826
149073
  });
148827
149074
  }
@@ -150150,7 +150397,6 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
150150
150397
  doBuildNormalizeRules(builder) {
150151
150398
  const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
150152
150399
  return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
150153
- optional: node.dataBinding.optional,
150154
150400
  disabled: false
150155
150401
  })];
150156
150402
  }
@@ -150382,13 +150628,13 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
150382
150628
  doBuildNormalizeRules(builder) {
150383
150629
  const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.ComboBoxNode);
150384
150630
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
150385
- optional: node.dataBinding.optional,
150386
150631
  disabled: node.disabled
150387
150632
  })];
150388
150633
  }
150389
150634
 
150390
- doBuildFLangValidations(buildContext) {
150635
+ doBuildFLangValidations(buildContext, formSchemaRng) {
150391
150636
  const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.ComboBoxNode);
150637
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
150392
150638
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
150393
150639
  const typeNode = buildContext.getTypeNode(node.validationInfo);
150394
150640
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -150397,7 +150643,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
150397
150643
  return [];
150398
150644
  }
150399
150645
 
150400
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
150646
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
150401
150647
  }
150402
150648
 
150403
150649
  buildChildrenDataDeclaration(context) {
@@ -150569,7 +150815,7 @@ let ComboboxEnumerationItem = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
150569
150815
  writable: true,
150570
150816
  initializer: null
150571
150817
  })), _class2)) || _class);
150572
- let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.sugarNode)("combobox", `Комбобокс`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox sync recursive .md$")), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_5__.ValidationInfoNode), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_10__.TooltipSettingsNode), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("maxLength", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("caption", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("openbutton", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("kind", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("useIncorrectValue", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Typo), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("controlVersion", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Removed), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.typeName, "Тип для валидации значений"), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.singleChild)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Глобальный идентификатор справочника`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("limit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.number, `Количество значений в выпадающем списке`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType["enum"]("value", "name", "item"), ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("displayItem", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType["enum"]("value", "name"), ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.delimitedStringArray, ``), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("savedescription", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("useincorrectvalue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Для валидации введенного значения. если false - то только из справочника должно быть значение`), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.localizedString["default"]("Начните вводить код или название"), `Когда в input-e пусто, то рисуется этот текст`), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.lengthUnit, ``), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("menuAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType["enum"]("left", "right"), `Определяет, в какую сторону будет открываться выпадающий список. Значения: \`left\`, \`right\`. Значение по умолчанию: \`left\``), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("filter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, ``), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр для популярных значений`), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyCaption", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Подпись для раздела с популярными значениями`), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("notFoundText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Надпись при отсутствии значений по фильтру`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("keyColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`code\`, данный ключ будет выведен в первой колонке комбобокса`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("valueColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`value\`, данный ключ будет выведен во второй колонке комбобокса`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("emptyValueFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр показываемые поля, если вводимое значение пусто`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("enumeration", [ComboboxEnumerationItem]), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_9__.HelpNode]), _dec5(_class4 = (_class5 = class ComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_7__.SugarNodeWithLegacyVisibility {
150818
+ let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.sugarNode)("combobox", `Комбобокс`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox sync recursive .md$")), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_5__.ValidationInfoNode), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_10__.TooltipSettingsNode), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("maxLength", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("caption", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("openbutton", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("kind", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("useIncorrectValue", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Typo), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("controlVersion", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Removed), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.typeName, "Тип для валидации значений"), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.singleChild)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Глобальный идентификатор справочника`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("limit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.number, `Количество значений в выпадающем списке`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType["enum"]("value", "name", "item"), `В каком виде отобразится выбранное значение в инпуте: значение/название/полностью`), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("displayItem", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType["enum"]("value", "name"), ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.delimitedStringArray, ``), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("savedescription", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("useincorrectvalue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Для валидации введенного значения. если false - то только из справочника должно быть значение`), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.localizedString["default"]("Начните вводить код или название"), `Когда в input-e пусто, то рисуется этот текст`), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.lengthUnit, ``), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("menuAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType["enum"]("left", "right"), `Определяет, в какую сторону будет открываться выпадающий список. Значения: \`left\`, \`right\`. Значение по умолчанию: \`left\``), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("filter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, ``), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр для популярных значений`), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyCaption", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Подпись для раздела с популярными значениями`), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("notFoundText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Надпись при отсутствии значений по фильтру`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("keyColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`code\`, данный ключ будет выведен в первой колонке комбобокса`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("valueColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`value\`, данный ключ будет выведен во второй колонке комбобокса`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("emptyValueFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр показываемые поля, если вводимое значение пусто`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("enumeration", [ComboboxEnumerationItem]), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_9__.HelpNode]), _dec5(_class4 = (_class5 = class ComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_7__.SugarNodeWithLegacyVisibility {
150573
150819
  constructor(...args) {
150574
150820
  super(...args);
150575
150821
 
@@ -150868,8 +151114,9 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
150868
151114
  return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
150869
151115
  }
150870
151116
 
150871
- doBuildFLangValidations(buildContext) {
151117
+ doBuildFLangValidations(buildContext, formSchemaRng) {
150872
151118
  const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
151119
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
150873
151120
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
150874
151121
  const typeNode = buildContext.getTypeNode(node.validationInfo);
150875
151122
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -150878,7 +151125,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
150878
151125
  return [];
150879
151126
  }
150880
151127
 
150881
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
151128
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
150882
151129
  }
150883
151130
 
150884
151131
  doBuildNodeValidations(validationGenerator) {
@@ -150894,7 +151141,6 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
150894
151141
  doBuildNormalizeRules(builder) {
150895
151142
  const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
150896
151143
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
150897
- optional: node.dataBinding.optional,
150898
151144
  disabled: node.disabled
150899
151145
  })];
150900
151146
  }
@@ -152749,8 +152995,9 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
152749
152995
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
152750
152996
  }
152751
152997
 
152752
- doBuildFLangValidations(buildContext) {
152998
+ doBuildFLangValidations(buildContext, formSchemaRng) {
152753
152999
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
153000
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
152754
153001
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
152755
153002
  const typeNode = buildContext.getTypeNode(node.validationInfo);
152756
153003
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -152759,7 +153006,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
152759
153006
  return [];
152760
153007
  }
152761
153008
 
152762
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
153009
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
152763
153010
  }
152764
153011
 
152765
153012
  doBuildNodeValidations(validationGenerator) {
@@ -152778,7 +153025,6 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
152778
153025
  doBuildNormalizeRules(builder) {
152779
153026
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
152780
153027
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
152781
- optional: node.dataBinding.optional,
152782
153028
  disabled: node.disabled
152783
153029
  })];
152784
153030
  }
@@ -153839,8 +154085,9 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
153839
154085
  return _PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode;
153840
154086
  }
153841
154087
 
153842
- doBuildFLangValidations(buildContext) {
154088
+ doBuildFLangValidations(buildContext, formSchemaRng) {
153843
154089
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
154090
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
153844
154091
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
153845
154092
  const typeNode = buildContext.getTypeNode(node.validationInfo);
153846
154093
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -153849,7 +154096,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
153849
154096
  return [];
153850
154097
  }
153851
154098
 
153852
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
154099
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
153853
154100
  }
153854
154101
 
153855
154102
  doBuildNodeValidations(validationGenerator) {
@@ -153857,27 +154104,27 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
153857
154104
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
153858
154105
  }
153859
154106
 
153860
- *doBuildNormalizeRules(builder) {
154107
+ *doBuildNormalizeRules(builder, formSchemaRng) {
154108
+ var _ref;
154109
+
153861
154110
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
154111
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
153862
154112
  yield builder.valueInitializer(node, node.dataBinding, false);
153863
- yield* builder.specialFieldsInitializer(node, {
153864
- optional: node.dataBinding.optional
153865
- });
154113
+ 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;
154114
+ yield* builder.specialFieldsInitializer(node, {});
153866
154115
 
153867
154116
  if (node.multiple) {
153868
- var _node$dataBinding$opt;
153869
-
153870
- yield* builder.childrenInitializerForPicklist(node, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false);
154117
+ yield* builder.childrenInitializerForPicklist(node, isOptional);
153871
154118
  }
153872
154119
  }
153873
154120
 
153874
154121
  doBuildDataDeclaration(context) {
153875
- var _node$dataBinding$opt2;
154122
+ var _node$dataBinding$opt;
153876
154123
 
153877
154124
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
153878
154125
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
153879
154126
  optional: node.dataBinding.optional
153880
- }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt2 = node.dataBinding.optional) !== null && _node$dataBinding$opt2 !== void 0 ? _node$dataBinding$opt2 : false, node.dataBinding.requisite));
154127
+ }), 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));
153881
154128
  }
153882
154129
 
153883
154130
  get nodePaths() {
@@ -154317,9 +154564,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
154317
154564
 
154318
154565
  doBuildNormalizeRules(builder) {
154319
154566
  const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_5__.RadioGroupNode);
154320
- return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
154321
- optional: node.dataBinding.optional
154322
- })];
154567
+ return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {})];
154323
154568
  }
154324
154569
 
154325
154570
  doBuildDataDeclaration(context) {
@@ -155078,8 +155323,9 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
155078
155323
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
155079
155324
  }
155080
155325
 
155081
- doBuildFLangValidations(buildContext) {
155326
+ doBuildFLangValidations(buildContext, formSchemaRng) {
155082
155327
  const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
155328
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
155083
155329
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
155084
155330
  const typeNode = buildContext.getTypeNode(node.validationInfo);
155085
155331
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -155088,7 +155334,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
155088
155334
  return [];
155089
155335
  }
155090
155336
 
155091
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
155337
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
155092
155338
  }
155093
155339
 
155094
155340
  doBuildNodeValidations(validationGenerator) {
@@ -155105,9 +155351,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
155105
155351
 
155106
155352
  doBuildNormalizeRules(builder) {
155107
155353
  const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
155108
- return [builder.valueInitializer(node, node.dataBinding, undefined), ...builder.specialFieldsInitializer(node, {
155109
- optional: node.dataBinding.optional
155110
- })];
155354
+ return [builder.valueInitializer(node, node.dataBinding, undefined), ...builder.specialFieldsInitializer(node, {})];
155111
155355
  }
155112
155356
 
155113
155357
  buildChildrenDataDeclaration(context) {
@@ -155300,8 +155544,9 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
155300
155544
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
155301
155545
  }
155302
155546
 
155303
- doBuildFLangValidations(buildContext) {
155547
+ doBuildFLangValidations(buildContext, formSchemaRng) {
155304
155548
  const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
155549
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
155305
155550
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
155306
155551
  const typeNode = buildContext.getTypeNode(node.validationInfo);
155307
155552
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -155310,7 +155555,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
155310
155555
  return [];
155311
155556
  }
155312
155557
 
155313
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
155558
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
155314
155559
  }
155315
155560
 
155316
155561
  doBuildDataDeclaration(context) {
@@ -157395,23 +157640,19 @@ function getPropertyDeserializers(targetClass) {
157395
157640
  function setPropertyDeserializer( // tslint:disable-next-line:ban-types
157396
157641
  nodeClass, propertyKey, prop) {
157397
157642
  Reflect.defineMetadata("x:" + propertyKey.toString(), prop, nodeClass, "deserializers");
157398
- } // tslint:disable-next-line:ban-types
157399
-
157643
+ }
157400
157644
  function setSugarNodeMetadata(targetClass, metadata) {
157401
157645
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
157402
157646
  Reflect.defineMetadata(metadataKey, metadata, targetClass.prototype);
157403
- } // tslint:disable-next-line:ban-types
157404
-
157647
+ }
157405
157648
  function getSugarNodeMetadata(targetClass) {
157406
157649
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-return
157407
157650
  return Reflect.getMetadata(metadataKey, targetClass.prototype);
157408
- } // tslint:disable-next-line:ban-types
157409
-
157651
+ }
157410
157652
  function setPropertiesContainerMetadata(targetClass, metadata) {
157411
157653
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
157412
157654
  Reflect.defineMetadata(metadataKey, metadata, targetClass.prototype);
157413
- } // tslint:disable-next-line:ban-types
157414
-
157655
+ }
157415
157656
  function getPropertiesContainerMetadata(targetClass) {
157416
157657
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-return
157417
157658
  return Reflect.getMetadata(metadataKey, targetClass.prototype);
@@ -159098,15 +159339,15 @@ class SugarNodeConverterBase {
159098
159339
  *getAttachmentPaths() {// no paths by default
159099
159340
  }
159100
159341
 
159101
- *buildFLangValidations(buildContext) {
159102
- yield* this.doBuildFLangValidations(buildContext);
159103
- yield* this.buildChildrenFLangValidations(buildContext);
159342
+ *buildFLangValidations(buildContext, formSchemaRng) {
159343
+ yield* this.doBuildFLangValidations(buildContext, formSchemaRng);
159344
+ yield* this.buildChildrenFLangValidations(buildContext, formSchemaRng);
159104
159345
  }
159105
159346
 
159106
159347
  doBuildNodeValidations(validationGenerator) {// noop
159107
159348
  }
159108
159349
 
159109
- doBuildFLangValidations(buildContext) {
159350
+ doBuildFLangValidations(buildContext, formSchemaRng) {
159110
159351
  return [];
159111
159352
  }
159112
159353
 
@@ -159157,8 +159398,8 @@ class SugarNodeConverterBase {
159157
159398
  return this.node.sourceXmlNode;
159158
159399
  }
159159
159400
 
159160
- *buildNormalizeRules(builder) {
159161
- yield* this.doBuildNormalizeRules(builder);
159401
+ *buildNormalizeRules(builder, formSchemaRng) {
159402
+ yield* this.doBuildNormalizeRules(builder, formSchemaRng);
159162
159403
 
159163
159404
  for (const child of this.traverseChildren()) {
159164
159405
  const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
@@ -159175,12 +159416,12 @@ class SugarNodeConverterBase {
159175
159416
  }
159176
159417
  } else {
159177
159418
  const converter = new controlConverterClass(child);
159178
- yield* converter.buildNormalizeRules(builder);
159419
+ yield* converter.buildNormalizeRules(builder, formSchemaRng);
159179
159420
  }
159180
159421
  }
159181
159422
  }
159182
159423
 
159183
- doBuildNormalizeRules(builder) {
159424
+ doBuildNormalizeRules(builder, formSchemaRng) {
159184
159425
  return [];
159185
159426
  }
159186
159427
 
@@ -159228,7 +159469,7 @@ class SugarNodeConverterBase {
159228
159469
  }
159229
159470
  }
159230
159471
 
159231
- *buildChildrenFLangValidations(buildContext) {
159472
+ *buildChildrenFLangValidations(buildContext, formSchemaRng) {
159232
159473
  for (const child of this.doTraverseChildren()) {
159233
159474
  const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
159234
159475
 
@@ -159237,7 +159478,7 @@ class SugarNodeConverterBase {
159237
159478
  }
159238
159479
 
159239
159480
  const converter = new controlConverterClass(child);
159240
- yield* converter.buildFLangValidations(buildContext);
159481
+ yield* converter.buildFLangValidations(buildContext, formSchemaRng);
159241
159482
  }
159242
159483
  }
159243
159484