@kontur.candy/generator 4.278.0-efs-partial-load.9 → 4.278.0-efs-partial-load.10

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -134210,12 +134210,13 @@ class OptionalSectionRulesBuilder {
134210
134210
  const page = pagesToProcess.pop();
134211
134211
 
134212
134212
  if (page != null && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)(page.path)) {
134213
- var _page$optional;
134213
+ var _page$optional, _page$multiple;
134214
134214
 
134215
134215
  yield {
134216
134216
  sectionId: page.id,
134217
134217
  path: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(page.path, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each),
134218
- optional: (_page$optional = page.optional) !== null && _page$optional !== void 0 ? _page$optional : false
134218
+ optional: (_page$optional = page.optional) !== null && _page$optional !== void 0 ? _page$optional : false,
134219
+ multiple: (_page$multiple = page.multiple) !== null && _page$multiple !== void 0 ? _page$multiple : false
134219
134220
  };
134220
134221
  pagesToProcess.push(...page.pages);
134221
134222
  }
@@ -134232,7 +134233,7 @@ class OptionalSectionRulesBuilder {
134232
134233
  const targetPath = rule.left.modePath;
134233
134234
  const targetOptionalSection = orderedSections.find(x => _Engine_src_Engine_Core_PathUtils_PathUtils__WEBPACK_IMPORTED_MODULE_6__.PathUtils.isPrefix(x.path.toLegacyPath(), targetPath.toLegacyPath()));
134234
134235
 
134235
- if (targetOptionalSection != undefined && targetOptionalSection.optional) {
134236
+ if (targetOptionalSection != undefined && targetOptionalSection.optional && !targetOptionalSection.multiple) {
134236
134237
  const targetIsFilledPath = targetOptionalSection.path.joinWith(OptionalSectionRulesBuilder.optionalSectionFilledFieldName);
134237
134238
 
134238
134239
  if (!targetIsFilledPath.isEquals(targetPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.278.0-efs-partial-load.9",
3
+ "version": "4.278.0-efs-partial-load.10",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,