@kontur.candy/generator 5.14.0-rsvfunctions.6 → 5.14.0-rsvfunctions.7

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -79315,7 +79315,6 @@ class KCXmlGeneratorBase {
79315
79315
  в зависимостях в CalculationFunction в данном случае все звёздочки превратятся в PathTokens.current.
79316
79316
  */
79317
79317
  calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourcePath) {
79318
- var _targetPathParts$last;
79319
79318
  const diffPaths = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetKeyPath, sourcePath);
79320
79319
  if (targetKeyPath.getIterationRank() > diffPaths.matchedPath.getIterationRank()) {
79321
79320
  return {
@@ -79326,7 +79325,13 @@ class KCXmlGeneratorBase {
79326
79325
  const targetPathParts = diffPaths.matchedPath.getPathPartsAsArray();
79327
79326
  const lastStarIndex = targetPathParts.lastIndexOf(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
79328
79327
  const currentDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(targetPathParts.slice(0, lastStarIndex));
79329
- const eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([(_targetPathParts$last = targetPathParts[lastStarIndex]) !== null && _targetPathParts$last !== void 0 ? _targetPathParts$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(), ...targetPathParts.slice(lastStarIndex + 1), ...diffPaths.differentPath.getPathParts()]);
79328
+ let eachDepsPath;
79329
+ if (lastStarIndex === -1) {
79330
+ eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...diffPaths.matchedPath.getPathParts(), ...diffPaths.differentPath.getPathParts()]);
79331
+ } else {
79332
+ var _targetPathParts$last;
79333
+ eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([(_targetPathParts$last = targetPathParts[lastStarIndex]) !== null && _targetPathParts$last !== void 0 ? _targetPathParts$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("path in groupSum is incorrect. Cannot create DepsPath for " + targetPathParts.join("/")), ...targetPathParts.slice(lastStarIndex + 1), ...diffPaths.differentPath.getPathParts()]);
79334
+ }
79330
79335
  return {
79331
79336
  currentDepsPath: currentDepsPath,
79332
79337
  eachDepsPath: eachDepsPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.14.0-rsvfunctions.6",
3
+ "version": "5.14.0-rsvfunctions.7",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,