@kontur.candy/generator 5.14.0-rsvfunctions.8 → 5.14.0-rsvfunctions.9

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 +28 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60043,8 +60043,13 @@ __webpack_require__.r(__webpack_exports__);
60043
60043
  /* harmony export */ "Set2": () => (/* binding */ Set2)
60044
60044
  /* harmony export */ });
60045
60045
  class Set2 {
60046
- constructor() {
60046
+ constructor(source) {
60047
60047
  this.hashMap = new Map();
60048
+ if (source != undefined) {
60049
+ for (const sourceElement of source) {
60050
+ this.add(sourceElement);
60051
+ }
60052
+ }
60048
60053
  }
60049
60054
  add(path) {
60050
60055
  const hash = this.getItemHash(path);
@@ -82707,7 +82712,28 @@ class FormulaExpressionToFlangExpressionConverter {
82707
82712
  const secondPartFinalParts = secondPartParts.slice(0, lastStarIndexSecondPart);
82708
82713
  finalIterPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)([...firstPart.getPathParts(), ...secondPartFinalParts]).trimLastStarIfLastToken();
82709
82714
  } else {
82710
- finalIterPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(sourceKeyParts.slice(0, firstPartLength - 1));
82715
+ const predictIterMultiplisity = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(sourceKeyParts.slice(0, firstPartLength));
82716
+ if (predictIterMultiplisity.getIterationRank() > 1) {
82717
+ /**
82718
+ * В зависимости от того - на каком уровне пишем groupCount
82719
+ * in GroupCountConstThrewMultiple
82720
+ * {
82721
+ * check all === groupCount("1", Б/С/Код);
82722
+ * GroupCountConstThrewMultiple/Б/__EACH__/С/__EACH__/Код
82723
+ * in Б
82724
+ * {
82725
+ * in С
82726
+ * {
82727
+ * check inС === groupCount(Код, Код);
82728
+ * GroupCountConstThrewMultiple/Б/__CURRENT__/С/__CURRENT__/Код
82729
+ * }
82730
+ * }
82731
+ * }
82732
+ * */
82733
+ finalIterPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(predictIterMultiplisity.toCurrentIteration().getPathPartsAsArray().slice(0, firstPartLength - 1));
82734
+ } else {
82735
+ finalIterPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(sourceKeyParts.slice(0, firstPartLength - 1));
82736
+ }
82711
82737
  }
82712
82738
  if (!finalIterPath) {
82713
82739
  throw new Error("Error occurred while trying parse path for reduce: " + firstPart.toLegacyPath());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.14.0-rsvfunctions.8",
3
+ "version": "5.14.0-rsvfunctions.9",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,