@kontur.candy/generator 4.271.0 → 4.272.0-mass-delete.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +162 -51
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -115386,7 +115386,7 @@ class KCLangAntlrVisitor {
115386
115386
  const expression = ctx.expression();
115387
115387
  const withBlocks = ctx.withBlock().map(i => i.accept(this));
115388
115388
  let description = "";
115389
- let errorLevel = "warning";
115389
+ let errorLevel = undefined;
115390
115390
 
115391
115391
  for (const withBlock of withBlocks) {
115392
115392
  if (withBlock) {
@@ -121532,10 +121532,12 @@ __webpack_require__.r(__webpack_exports__);
121532
121532
  /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
121533
121533
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
121534
121534
  /* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
121535
- /* harmony import */ var _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IKCLangExpressionVisitor */ "./Generator/src/common/KCLang/IKCLangExpressionVisitor.ts");
121536
- /* harmony import */ var _KCLangDescriptionParser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./KCLangDescriptionParser */ "./Generator/src/common/KCLang/KCLangDescriptionParser.ts");
121537
- /* harmony import */ var _KCLangNodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./KCLangNodes */ "./Generator/src/common/KCLang/KCLangNodes.ts");
121538
- /* 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
+
121539
121541
 
121540
121542
 
121541
121543
 
@@ -121640,7 +121642,7 @@ function generateKCXmlExpression(expression) {
121640
121642
  }
121641
121643
 
121642
121644
  function formatDescribeStatement(ast, matchPath, describe) {
121643
- 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 => {
121644
121646
  if (typeof item === "string") {
121645
121647
  return item;
121646
121648
  } else {
@@ -121672,12 +121674,12 @@ function generateBlockKCXmlFormulas(block, parents) {
121672
121674
  let lastDescribeStatement;
121673
121675
 
121674
121676
  for (const statement of block.statements) {
121675
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isFormulaStatement)(statement)) {
121677
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isFormulaStatement)(statement)) {
121676
121678
  result.push(generateKCXmlFormula(statement, matchPath, lastDescribeStatement));
121677
121679
  lastDescribeStatement = undefined;
121678
121680
  }
121679
121681
 
121680
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isEnsureStatement)(statement)) {
121682
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(statement)) {
121681
121683
  lastDescribeStatement = undefined;
121682
121684
  }
121683
121685
 
@@ -121685,11 +121687,11 @@ function generateBlockKCXmlFormulas(block, parents) {
121685
121687
  throw new Error("Describe should be placed before assign of ensure statements");
121686
121688
  }
121687
121689
 
121688
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isDescribeStatement)(statement)) {
121690
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(statement)) {
121689
121691
  lastDescribeStatement = statement;
121690
121692
  }
121691
121693
 
121692
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isBlockStatement)(statement)) {
121694
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(statement)) {
121693
121695
  result.push(generateBlockKCXmlFormulas(statement, [...(parents !== null && parents !== void 0 ? parents : []), block]));
121694
121696
  }
121695
121697
  }
@@ -121700,7 +121702,7 @@ function generateBlockKCXmlFormulas(block, parents) {
121700
121702
  function guessConditionTarget(condition) {
121701
121703
  let result;
121702
121704
 
121703
- class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_3__.DefaultKCLangExpressionVisitor {
121705
+ class GuessConditionTargetVisitor extends _IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__.DefaultKCLangExpressionVisitor {
121704
121706
  visitExistsKCLangNode(node) {
121705
121707
  if (result == undefined) {
121706
121708
  result = node.select;
@@ -121721,12 +121723,12 @@ function guessConditionTarget(condition) {
121721
121723
 
121722
121724
  }
121723
121725
 
121724
- (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_3__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
121726
+ (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_4__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
121725
121727
  return result;
121726
121728
  }
121727
121729
 
121728
121730
  function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
121729
- const levelAttr = ast.level === "error" ? ` errorLevel="Error"` : "";
121731
+ const levelAttr = ast.level === undefined ? "" : ` errorLevel="${(0,_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(ast.level)}"`;
121730
121732
  const descriptionAttr = describe != undefined ? ` description="${formatDescribeStatement(ast, matchPath, describe)}"` : "";
121731
121733
  const guessedTarget = guessConditionTarget(ast);
121732
121734
  const targetAttr = guessedTarget != undefined ? ` target="${guessedTarget}"` : "";
@@ -121734,7 +121736,7 @@ function generateKCXmlCondition(ast, matchPath, parentConditions, describe) {
121734
121736
  if (parentConditions != undefined && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.arrayIsNotEmpty)(parentConditions)) {
121735
121737
  var _parentConditions$map;
121736
121738
 
121737
- 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 : []));
121738
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>`;
121739
121741
  }
121740
121742
 
@@ -121747,11 +121749,11 @@ function generateBlockKCXmlConditions(block, parents, parentConditions) {
121747
121749
  let lastDescribeStatement;
121748
121750
 
121749
121751
  for (const statement of block.statements) {
121750
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isFormulaStatement)(statement)) {
121752
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isFormulaStatement)(statement)) {
121751
121753
  lastDescribeStatement = undefined;
121752
121754
  }
121753
121755
 
121754
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isEnsureStatement)(statement)) {
121756
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(statement)) {
121755
121757
  result.push(generateKCXmlCondition(statement, matchPath, parentConditions, lastDescribeStatement));
121756
121758
  lastDescribeStatement = undefined;
121757
121759
  }
@@ -121760,15 +121762,15 @@ function generateBlockKCXmlConditions(block, parents, parentConditions) {
121760
121762
  throw new Error("Describe should be placed before assign of ensure statements");
121761
121763
  }
121762
121764
 
121763
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isDescribeStatement)(statement)) {
121765
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(statement)) {
121764
121766
  lastDescribeStatement = statement;
121765
121767
  }
121766
121768
 
121767
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isConditionalStatement)(statement)) {
121769
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isConditionalStatement)(statement)) {
121768
121770
  result.push(generateConditionalConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
121769
121771
  }
121770
121772
 
121771
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isBlockStatement)(statement)) {
121773
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(statement)) {
121772
121774
  result.push(generateBlockKCXmlConditions(statement, [...(parents !== null && parents !== void 0 ? parents : []), block], parentConditions));
121773
121775
  }
121774
121776
  }
@@ -121782,7 +121784,7 @@ function generateConditionalConditions(conditionalStatement, parents, parentCond
121782
121784
  let lastDescribeStatement;
121783
121785
 
121784
121786
  for (const x of conditionalStatement.statements) {
121785
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isEnsureStatement)(x)) {
121787
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isEnsureStatement)(x)) {
121786
121788
  result.push(generateKCXmlCondition(x, matchPath, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement], lastDescribeStatement));
121787
121789
  lastDescribeStatement = undefined;
121788
121790
  }
@@ -121791,15 +121793,15 @@ function generateConditionalConditions(conditionalStatement, parents, parentCond
121791
121793
  throw new Error("Describe should be placed before assign of ensure statements");
121792
121794
  }
121793
121795
 
121794
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isDescribeStatement)(x)) {
121796
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isDescribeStatement)(x)) {
121795
121797
  lastDescribeStatement = x;
121796
121798
  }
121797
121799
 
121798
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isConditionalStatement)(x)) {
121800
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isConditionalStatement)(x)) {
121799
121801
  result.push(generateConditionalConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
121800
121802
  }
121801
121803
 
121802
- if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_5__.isBlockStatement)(x)) {
121804
+ if ((0,_KCLangNodes__WEBPACK_IMPORTED_MODULE_6__.isBlockStatement)(x)) {
121803
121805
  result.push(generateBlockKCXmlConditions(x, parents, [...(parentConditions !== null && parentConditions !== void 0 ? parentConditions : []), conditionalStatement]));
121804
121806
  }
121805
121807
  }
@@ -121833,7 +121835,7 @@ function generateKCXml(blocks) {
121833
121835
 
121834
121836
  class KCLangToXmlTranspiler {
121835
121837
  static transpile(kcLang, customParser) {
121836
- 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;
121837
121839
  const kcxml = generateKCXml(parser(kcLang).blocks);
121838
121840
  return kcxml;
121839
121841
  }
@@ -129415,7 +129417,8 @@ function isFileExists(directoryPath) {
129415
129417
  }
129416
129418
  function normalizeDocument(documentJson) {
129417
129419
  const availableChildren = documentJson.availableChildren != undefined ? documentJson.availableChildren : {
129418
- type: _DocumentationTypes__WEBPACK_IMPORTED_MODULE_1__.AvailableChildrenType.Any
129420
+ children: [],
129421
+ singleChild: []
129419
129422
  };
129420
129423
  const document = { ...documentJson,
129421
129424
  availableChildren: availableChildren
@@ -129665,7 +129668,13 @@ __webpack_require__.r(__webpack_exports__);
129665
129668
  /* 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");
129666
129669
  /* 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");
129667
129670
  /* 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");
129668
- /* harmony import */ var _DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DocumentationTypes */ "./Generator/src/generators/DocumentationGenerator/DocumentationTypes.ts");
129671
+ /* 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");
129672
+ /* 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");
129673
+ /* 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");
129674
+ /* harmony import */ var _DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DocumentationTypes */ "./Generator/src/generators/DocumentationGenerator/DocumentationTypes.ts");
129675
+
129676
+
129677
+
129669
129678
 
129670
129679
 
129671
129680
 
@@ -129691,21 +129700,135 @@ function buildSugarNodeDocumentation(sugarNodeClass) {
129691
129700
  const documentationFilesContext = metadata.documentationFilesContext;
129692
129701
  const example = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_2__.loadDocumentationFileFormContext)(documentationFilesContext, "example.md");
129693
129702
  const markdownDescription = getMarkdownDescription(documentationFilesContext, metadata, sugarNodeClass);
129703
+ const {
129704
+ markupAttributes,
129705
+ attributes
129706
+ } = buildMarkupAndAttributesInfo(propertySerializers, documentationFilesContext);
129707
+ const {
129708
+ children,
129709
+ singleChild,
129710
+ availableAnyChildren
129711
+ } = buildAvailableChildrenInfo(propertySerializers, documentationFilesContext);
129694
129712
  return {
129695
129713
  name: metadata.sugarNodeName.toLowerCase(),
129696
129714
  availableChildren: {
129697
- type: _DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__.AvailableChildrenType.Any
129715
+ children: children,
129716
+ singleChild: singleChild,
129717
+ availableAnyChildren: availableAnyChildren
129698
129718
  },
129699
129719
  example: example,
129700
129720
  shortMarkdownDescription: metadata.description,
129701
129721
  markdownDescription: markdownDescription,
129702
- attributes: propertySerializers.length === 0 ? [] : propertySerializers.map(x => buildAttributeDocs(x, documentationFilesContext)).flat()
129722
+ attributes: attributes,
129723
+ markupAttributes: markupAttributes
129703
129724
  };
129704
129725
  }
129705
129726
 
129706
- function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129707
- var _propertyDeserializer2;
129727
+ function buildAvailableChildrenInfo(propertySerializers, documentationFilesContext) {
129728
+ if (propertySerializers.length === 0) {
129729
+ return {
129730
+ children: [],
129731
+ singleChild: []
129732
+ };
129733
+ }
129734
+
129735
+ const children = propertySerializers.map(x => buildAvailableChildrenDocs(x, documentationFilesContext)).flat();
129736
+ const singleChild = propertySerializers.map(x => buildAvailableSingleChildDocs(x, documentationFilesContext)).flat();
129737
+ const availableAnyChildren = propertySerializers.map(x => buildAvailableSugarChildrenDocs(x, documentationFilesContext)).some(x => x === true);
129738
+ return {
129739
+ children: children,
129740
+ singleChild: singleChild,
129741
+ availableAnyChildren: availableAnyChildren
129742
+ };
129743
+ }
129744
+
129745
+ function buildAvailableChildrenDocs(propertyDeserializer, documentationFilesContext) {
129746
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129747
+ return [];
129748
+ }
129749
+
129750
+ if (propertyDeserializer.propertyName === "children") {
129751
+ return [];
129752
+ }
129753
+
129754
+ if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_9__.ChildrenNodesValueSource) {
129755
+ const childrenNodes = propertyDeserializer.valueSource.nodeClasses.map(buildSugarNodeDocumentation);
129756
+ return childrenNodes;
129757
+ }
129758
+
129759
+ return [];
129760
+ }
129761
+
129762
+ function buildAvailableSugarChildrenDocs(propertyDeserializer, documentationFilesContext) {
129763
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129764
+ return false;
129765
+ }
129766
+
129767
+ if (propertyDeserializer.propertyName === "children") {
129768
+ return true;
129769
+ }
129770
+
129771
+ return false;
129772
+ }
129773
+
129774
+ function buildAvailableSingleChildDocs(propertyDeserializer, documentationFilesContext) {
129775
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129776
+ return [];
129777
+ }
129778
+
129779
+ if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_10__.SingleChildValueSource) {
129780
+ const childrenNodes = propertyDeserializer.valueSource.nodeClasses.map(buildSugarNodeDocumentation);
129781
+ return childrenNodes;
129782
+ }
129783
+
129784
+ return [];
129785
+ }
129708
129786
 
129787
+ function buildMarkupAndAttributesInfo(propertySerializers, documentationFilesContext) {
129788
+ if (propertySerializers.length === 0) {
129789
+ return {
129790
+ attributes: [],
129791
+ markupAttributes: []
129792
+ };
129793
+ }
129794
+
129795
+ const attributes = propertySerializers.map(x => buildAttributeDocs(x, documentationFilesContext)).flat();
129796
+ const markupAttributes = propertySerializers.map(x => buildMarkupAttributeDocs(x, documentationFilesContext)).flat();
129797
+ return {
129798
+ attributes: attributes,
129799
+ markupAttributes: markupAttributes
129800
+ };
129801
+ }
129802
+
129803
+ function buildMarkupAttributeDocs(propertyDeserializer, documentationFilesContext) {
129804
+ if (!(propertyDeserializer instanceof _markupGenerator_Serializer_Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.SinglePropertyDeserializer)) {
129805
+ return [];
129806
+ }
129807
+
129808
+ if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_8__.MarkupOrAttributeValueSource) {
129809
+ var _propertyDeserializer;
129810
+
129811
+ let markdownDescription = "";
129812
+
129813
+ if (documentationFilesContext != undefined) {
129814
+ markdownDescription = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_2__.loadDocumentationFileFormContext)(documentationFilesContext, `${propertyDeserializer.valueSource.attrName}.attr.md`);
129815
+ }
129816
+
129817
+ return [{
129818
+ name: propertyDeserializer.valueSource.attrName,
129819
+ valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
129820
+ shortMarkdownDescription: (_propertyDeserializer = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer !== void 0 ? _propertyDeserializer : "--",
129821
+ markdownDescription: markdownDescription,
129822
+ defaultValue: undefined,
129823
+ required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
129824
+ deprecated: false
129825
+ }];
129826
+ }
129827
+
129828
+ return [];
129829
+ }
129830
+
129831
+ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129709
129832
  if (propertyDeserializer instanceof _markupGenerator_Serializer_Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_4__.MixinPropertyDeserializer) {
129710
129833
  return propertyDeserializer.getPropertyDeserializers().map(x => buildAttributeDocs(x, documentationFilesContext)).flat();
129711
129834
  }
@@ -129715,7 +129838,7 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129715
129838
  }
129716
129839
 
129717
129840
  if (propertyDeserializer.valueSource instanceof _markupGenerator_Serializer_Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_6__.AttributeValueSource) {
129718
- var _propertyDeserializer;
129841
+ var _propertyDeserializer2;
129719
129842
 
129720
129843
  let markdownDescription = "";
129721
129844
 
@@ -129725,11 +129848,11 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129725
129848
 
129726
129849
  return [{
129727
129850
  name: propertyDeserializer.valueSource.attrName,
129728
- valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
129729
- shortMarkdownDescription: (_propertyDeserializer = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer !== void 0 ? _propertyDeserializer : "--",
129851
+ valueTypes: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.valueParserToAttributeType)(propertyDeserializer.valueSource.valueParser),
129852
+ shortMarkdownDescription: (_propertyDeserializer2 = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer2 !== void 0 ? _propertyDeserializer2 : "--",
129730
129853
  markdownDescription: markdownDescription,
129731
129854
  defaultValue: undefined,
129732
- required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_8__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
129855
+ required: (0,_DocumentationTypes__WEBPACK_IMPORTED_MODULE_11__.isRequiredValueParser)(propertyDeserializer.valueSource.valueParser),
129733
129856
  deprecated: false
129734
129857
  }];
129735
129858
  }
@@ -129746,15 +129869,7 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
129746
129869
  }];
129747
129870
  }
129748
129871
 
129749
- return [{
129750
- name: propertyDeserializer.propertyName,
129751
- valueTypes: [],
129752
- shortMarkdownDescription: (_propertyDeserializer2 = propertyDeserializer.propertyDescription) !== null && _propertyDeserializer2 !== void 0 ? _propertyDeserializer2 : "--",
129753
- markdownDescription: "",
129754
- defaultValue: undefined,
129755
- required: undefined,
129756
- deprecated: false
129757
- }];
129872
+ return [];
129758
129873
  }
129759
129874
 
129760
129875
  /***/ }),
@@ -157443,23 +157558,19 @@ function getPropertyDeserializers(targetClass) {
157443
157558
  function setPropertyDeserializer( // tslint:disable-next-line:ban-types
157444
157559
  nodeClass, propertyKey, prop) {
157445
157560
  Reflect.defineMetadata("x:" + propertyKey.toString(), prop, nodeClass, "deserializers");
157446
- } // tslint:disable-next-line:ban-types
157447
-
157561
+ }
157448
157562
  function setSugarNodeMetadata(targetClass, metadata) {
157449
157563
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
157450
157564
  Reflect.defineMetadata(metadataKey, metadata, targetClass.prototype);
157451
- } // tslint:disable-next-line:ban-types
157452
-
157565
+ }
157453
157566
  function getSugarNodeMetadata(targetClass) {
157454
157567
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-return
157455
157568
  return Reflect.getMetadata(metadataKey, targetClass.prototype);
157456
- } // tslint:disable-next-line:ban-types
157457
-
157569
+ }
157458
157570
  function setPropertiesContainerMetadata(targetClass, metadata) {
157459
157571
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
157460
157572
  Reflect.defineMetadata(metadataKey, metadata, targetClass.prototype);
157461
- } // tslint:disable-next-line:ban-types
157462
-
157573
+ }
157463
157574
  function getPropertiesContainerMetadata(targetClass) {
157464
157575
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-return
157465
157576
  return Reflect.getMetadata(metadataKey, targetClass.prototype);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.271.0",
3
+ "version": "4.272.0-mass-delete.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,