@kontur.candy/generator 5.126.0-forceAutoValue.0 → 5.126.0-fs-9219-interdocument-checks-hidden-text.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 +26 -150
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47766,52 +47766,6 @@ function getMatchedAndDifferentModelPaths(baseModelPath, splittingModelPath) {
47766
47766
 
47767
47767
  /***/ }),
47768
47768
 
47769
- /***/ "./Common/ModelPath/Set/AbsoluteModelPathSet.ts":
47770
- /*!******************************************************!*\
47771
- !*** ./Common/ModelPath/Set/AbsoluteModelPathSet.ts ***!
47772
- \******************************************************/
47773
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
47774
-
47775
- "use strict";
47776
- __webpack_require__.r(__webpack_exports__);
47777
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47778
- /* harmony export */ AbsoluteModelPathSet: () => (/* binding */ AbsoluteModelPathSet)
47779
- /* harmony export */ });
47780
- /* harmony import */ var _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../EachCurrentCollision */ "./Common/ModelPath/EachCurrentCollision.ts");
47781
- /* harmony import */ var _Set2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Set2 */ "./Common/ModelPath/Set/Set2.ts");
47782
-
47783
-
47784
- class AbsoluteModelPathSet extends _Set2__WEBPACK_IMPORTED_MODULE_1__.Set2 {
47785
- constructor(eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_0__.EachCurrentCollision.AreSame) {
47786
- super();
47787
- this.eachCurrentCollision = void 0;
47788
- this.eachCurrentCollision = eachCurrentCollision;
47789
- }
47790
- static *unique(paths) {
47791
- const set = new AbsoluteModelPathSet();
47792
- for (const path of paths) {
47793
- if (set.add(path)) {
47794
- yield path;
47795
- }
47796
- }
47797
- }
47798
- areItemsEqual(left, right) {
47799
- return left.isEquals(right, this.eachCurrentCollision);
47800
- }
47801
- getItemHash(key) {
47802
- return key.getHash(this.eachCurrentCollision);
47803
- }
47804
- static from(source) {
47805
- const set = new AbsoluteModelPathSet();
47806
- for (const sourceElement of source) {
47807
- set.add(sourceElement);
47808
- }
47809
- return set;
47810
- }
47811
- }
47812
-
47813
- /***/ }),
47814
-
47815
47769
  /***/ "./Common/ModelPath/Set/Set2.ts":
47816
47770
  /*!**************************************!*\
47817
47771
  !*** ./Common/ModelPath/Set/Set2.ts ***!
@@ -49026,7 +48980,7 @@ function nonRegularFieldName(fieldName) {
49026
48980
  function ensureIsKnownViewModelFieldName(fieldName) {
49027
48981
  return getKnownViewModelFieldNames().has(fieldName) ? fieldName : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(`[${fieldName}] is not known ViewModelFieldName`);
49028
48982
  }
49029
- const keysOfViewModelFieldName = ["children", "error", "warning", "description", "id", "disabled", "visible", "disabledSending", "value", "autoValue", "autoFlag", "resourcesHash", "errorsCount", "warningsCount", "code", "picklist", "normalized", "emptyUnitsVisible", "pencilOpened", "ignoreAutoFlag", "disableValueAutoInit", "index", "regionCode", "district", "city", "settlement", "street", "house", "building", "room", "bossValue", "agentValue", "senderInn", "nameorg", "sum", "count", "normalizationSource", "referencedId", "dirtyChangedPathMasks", "forceAutoValue"];
48983
+ const keysOfViewModelFieldName = ["children", "error", "warning", "description", "id", "disabled", "visible", "disabledSending", "value", "autoValue", "autoFlag", "resourcesHash", "errorsCount", "warningsCount", "code", "picklist", "normalized", "emptyUnitsVisible", "pencilOpened", "ignoreAutoFlag", "disableValueAutoInit", "index", "regionCode", "district", "city", "settlement", "street", "house", "building", "room", "bossValue", "agentValue", "senderInn", "nameorg", "sum", "count", "normalizationSource", "referencedId", "dirtyChangedPathMasks"];
49030
48984
  const allKeysOfViewModelFieldName = keysOfViewModelFieldName;
49031
48985
  const names = new Set(allKeysOfViewModelFieldName);
49032
48986
  function getKnownViewModelFieldNames() {
@@ -62689,7 +62643,6 @@ class FormSchemaRngElement {
62689
62643
  this.useServerFilters = void 0;
62690
62644
  this.attributes = new Map();
62691
62645
  this.parent = void 0;
62692
- this.choices = [];
62693
62646
  this.optional = void 0;
62694
62647
  this.nillable = void 0;
62695
62648
  this.editorOnly = void 0;
@@ -62713,9 +62666,6 @@ class FormSchemaRngElement {
62713
62666
  addAttribute(attribute) {
62714
62667
  this.attributes.set(attribute.name, attribute);
62715
62668
  }
62716
- setChoices(choices) {
62717
- this.choices.push(choices);
62718
- }
62719
62669
  setInnerTextType(type) {
62720
62670
  this.innerTextType = type;
62721
62671
  }
@@ -62783,17 +62733,9 @@ class FormSchemaRng {
62783
62733
  result.addElement(this.convertSchemaRngElement(childElement, result));
62784
62734
  }
62785
62735
  for (const childChoiceElement of schemaRngElement.choices) {
62786
- const choiceChildren = new Map();
62787
- const rngElements = [];
62788
62736
  for (const childElement of childChoiceElement.children) {
62789
- const rngElement = this.convertSchemaRngElement(childElement, result);
62790
- rngElements.push(rngElement);
62791
- choiceChildren.set(childElement.name, rngElement);
62737
+ result.addElement(this.convertSchemaRngElement(childElement, result));
62792
62738
  }
62793
- rngElements.forEach(rngElement => {
62794
- rngElement.setChoices(choiceChildren);
62795
- result.addElement(rngElement);
62796
- });
62797
62739
  }
62798
62740
  }
62799
62741
  return result;
@@ -62941,13 +62883,6 @@ class FormSchemaRng {
62941
62883
  optional: true
62942
62884
  };
62943
62885
  }
62944
- if (currentElement instanceof FormSchemaRngElement && currentElement.choices.length > 0) {
62945
- return {
62946
- dependencies: [],
62947
- hasOptionalParent: false,
62948
- optional: false
62949
- };
62950
- }
62951
62886
  if (endOptionalElement == undefined || endOptionalElement instanceof FormSchemaRngElement && ((_endOptionalElement = endOptionalElement) === null || _endOptionalElement === void 0 ? void 0 : _endOptionalElement.multiple) === true) {
62952
62887
  return {
62953
62888
  dependencies: [],
@@ -67525,7 +67460,6 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
67525
67460
  const autoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(target.toLegacyPath());
67526
67461
  const disabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(target.toLegacyPath());
67527
67462
  const optional = this.dataDeclarationHelper.isNodeOptionalBySchemaOrSugar(target);
67528
- const forceAutoValue = this.dataDeclarationHelper.isNodeHasForcedAutoValueEntry(target);
67529
67463
  const compiledTarget = this.modelPathInstance(target);
67530
67464
  const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.map(x => ({
67531
67465
  path: x.asDependencyModelPath(),
@@ -67536,7 +67470,7 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
67536
67470
  const compiledExpressionWithCheck = this.compileAllItemsIsEmptyCheckBlock(compiledExpression, dependencyModelPaths.filter(x => !x.isIgnoreForChecks).map(x => x.path));
67537
67471
  const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpressionWithCheck}, "${defaultValue}")`;
67538
67472
  return {
67539
- compiledFunction: `new CalculationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate}, ${autoField}, ${disabled}, ${optional}, ${forceAutoValue})`,
67473
+ compiledFunction: `new CalculationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate}, ${autoField}, ${disabled}, ${optional})`,
67540
67474
  dependencies: dependencies
67541
67475
  };
67542
67476
  }
@@ -70440,13 +70374,8 @@ class DataDeclarationGenerationTimeHelper {
70440
70374
  return declEntry !== undefined && "autoValue" in declEntry;
70441
70375
  }
70442
70376
  isNodeHasDisabledEntry(targetPath) {
70443
- var _declEntry$disabled;
70444
- const declEntry = this.getDataDeclarationEntry(targetPath);
70445
- return (declEntry === null || declEntry === void 0 || (_declEntry$disabled = declEntry.disabled) === null || _declEntry$disabled === void 0 ? void 0 : _declEntry$disabled[0]) == true;
70446
- }
70447
- isNodeHasForcedAutoValueEntry(targetPath) {
70448
70377
  const declEntry = this.getDataDeclarationEntry(targetPath);
70449
- return Boolean(declEntry === null || declEntry === void 0 ? void 0 : declEntry.forceAutoValue);
70378
+ return Boolean(declEntry === null || declEntry === void 0 ? void 0 : declEntry.disabled);
70450
70379
  }
70451
70380
  getDefaultValue(targetPath) {
70452
70381
  const declEntry = this.getDataDeclarationEntry(targetPath);
@@ -70474,11 +70403,6 @@ class DataDeclarationGenerationTimeHelper {
70474
70403
  const rootPath = this.getDataDeclarationRootPath();
70475
70404
  return (_this$dataDeclaration = (_this$dataDeclaration2 = this.dataDeclaration[rootPath]) === null || _this$dataDeclaration2 === void 0 ? void 0 : _this$dataDeclaration2.optionalSections) !== null && _this$dataDeclaration !== void 0 ? _this$dataDeclaration : [];
70476
70405
  }
70477
- getAllSingleSections() {
70478
- var _this$dataDeclaration3, _this$dataDeclaration4;
70479
- const rootPath = this.getDataDeclarationRootPath();
70480
- return (_this$dataDeclaration3 = (_this$dataDeclaration4 = this.dataDeclaration[rootPath]) === null || _this$dataDeclaration4 === void 0 ? void 0 : _this$dataDeclaration4.allSingleSections) !== null && _this$dataDeclaration3 !== void 0 ? _this$dataDeclaration3 : [];
70481
- }
70482
70406
  getOptionalBlocksPaths() {
70483
70407
  const visibilityFieldsPaths = Object.keys(this.dataDeclaration).filter(path => path.endsWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockVisibilityFieldName));
70484
70408
  const optionalBlocksPaths = visibilityFieldsPaths.map(fieldPath => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(fieldPath, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each).getParentPath());
@@ -71366,8 +71290,6 @@ __webpack_require__.r(__webpack_exports__);
71366
71290
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
71367
71291
  /* harmony import */ var _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataDeclarationGenerator/DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
71368
71292
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
71369
- /* harmony import */ var _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/AbsoluteModelPathSet */ "./Common/ModelPath/Set/AbsoluteModelPathSet.ts");
71370
-
71371
71293
 
71372
71294
 
71373
71295
 
@@ -71420,7 +71342,6 @@ function buildFieldsConfiguration(path, dataDeclaration) {
71420
71342
  return resultFields;
71421
71343
  }
71422
71344
  function buildExtendedSchemaInfo(dataDeclaration) {
71423
- const singleSectionsSet = _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelPathSet.from(dataDeclaration.getAllSingleSections().map(x => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(x.path, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)));
71424
71345
  const nodes = new Map();
71425
71346
  for (const path of dataDeclaration.getAllPaths()) {
71426
71347
  if (path.isEmpty() || path.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each]))) {
@@ -71428,8 +71349,7 @@ function buildExtendedSchemaInfo(dataDeclaration) {
71428
71349
  }
71429
71350
  const defaultValue = dataDeclaration.getDefaultValue(path);
71430
71351
  const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
71431
- const isPage = dataDeclaration.getPageId(path) != undefined;
71432
- const optional = isPage ? dataDeclaration.isNodeOptional(path) : dataDeclaration.isNodeOptionalBySchemaOrSugar(path);
71352
+ const optional = dataDeclaration.isNodeOptionalBySchemaOrSugar(path);
71433
71353
  const node = getOrCreateNode(nodes, path);
71434
71354
  node.properties ??= {};
71435
71355
  const props = node.properties;
@@ -71446,8 +71366,10 @@ function buildExtendedSchemaInfo(dataDeclaration) {
71446
71366
  props.optional = optional;
71447
71367
  props.type = dataDeclaration.getType(path);
71448
71368
  props.disabled = dataDeclaration.isNodeHasDisabledEntry(path);
71449
- props.isPage = isPage || undefined;
71450
- props.isForceFilledOptional = isPage && isMultiple && singleSectionsSet.has(path) || undefined;
71369
+ const isPage = dataDeclaration.getPageId(path) != undefined;
71370
+ if (isPage) {
71371
+ props.isPage = isPage;
71372
+ }
71451
71373
  props.fields = buildFieldsConfiguration(path, dataDeclaration);
71452
71374
  }
71453
71375
  return {
@@ -76129,12 +76051,11 @@ class FormulaExpressionToFlangExpressionConverter {
76129
76051
  compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
76130
76052
  const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
76131
76053
  const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
76132
- const isSelectEqualsTarget = target.path.isEquals(adjustedSelectPath);
76133
76054
  const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
76134
76055
  const baseSelectPath = splitInfo.matchedPath;
76135
76056
  if (!splitInfo.differentPath.isContainIteration()) {
76136
76057
  const valueRefExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(adjustedSelectPath.toCurrentIteration().normalize(), "value");
76137
- const finalValue = isSelectEqualsTarget && target.field === "value" ? (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeNoDeps)(valueRefExpression) : valueRefExpression;
76058
+ const finalValue = splitInfo.differentPath.isEmpty() && target.field === "value" ? (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeNoDeps)(valueRefExpression) : valueRefExpression;
76138
76059
  return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandIfNeed)(finalValue, builtInType);
76139
76060
  } else {
76140
76061
  var _countValueExpression;
@@ -83338,15 +83259,6 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
83338
83259
  result[`${attachmentSection.path}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__.AttachmentInfoPath.toLegacyPath()}`] = {
83339
83260
  section: [attachmentSection.id]
83340
83261
  };
83341
- result[attachmentSection.path] = {
83342
- section: [attachmentSection.id],
83343
- pageId: attachmentSection.id
83344
- };
83345
- if (attachmentSection.optional) {
83346
- result[attachmentSection.path] = {
83347
- optional: [true]
83348
- };
83349
- }
83350
83262
  });
83351
83263
  return result;
83352
83264
  }
@@ -84825,9 +84737,9 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
84825
84737
  result.children = [{
84826
84738
  model: true
84827
84739
  }, node.optional ? [] : ["0"]];
84828
- }
84829
- if (node.optional) {
84830
- result.optional = [true];
84740
+ if (node.optional) {
84741
+ result.optional = [true];
84742
+ }
84831
84743
  }
84832
84744
  const optionalFieldPath = node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_15__.OptionalSectionFilledFieldName).toLegacyPath();
84833
84745
  const optionalFieldRequired = ((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false) && !((_node$multiple = node.multiple) !== null && _node$multiple !== void 0 ? _node$multiple : false);
@@ -99910,7 +99822,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
99910
99822
  }
99911
99823
  doBuildDataDeclaration(context) {
99912
99824
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
99913
- return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined, node.auto && node.forceAutoValue != undefined ? ["forceAutoValue", [node.forceAutoValue]] : undefined]), context.addSpecialFieldsEntry(node, {
99825
+ return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
99914
99826
  optional: node.dataBinding.optional,
99915
99827
  disabled: node.disabled
99916
99828
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
@@ -100184,7 +100096,7 @@ __webpack_require__.r(__webpack_exports__);
100184
100096
 
100185
100097
 
100186
100098
 
100187
- 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, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _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, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50;
100099
+ 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, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _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, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49;
100188
100100
 
100189
100101
 
100190
100102
 
@@ -100246,7 +100158,7 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
100246
100158
  Отключает использование mask только для валидного по маске значения и при отсутствии ошибки/предупреждения в валидации.
100247
100159
  По умолчанию включен показ кривых значений после импорта и,
100248
100160
  после ручного исправления на правильное по маске и валидное значение, редактирование будет доступно уже только в пределах маски.
100249
- `), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("settings", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "'true': всегда первой будет применяться указанная fetchfn, а если она вернет undefined то тогда будет брать из модели - из фуфа/draftinfo (то, что придет с сервера). В противном случае fetchfn сработает только в том случае, когда бекенд ничего не прислал"), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("deprecated-disabled-for-rpn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit.default("100%"), "Ширина поля"), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного скрытия контрола`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("left", "right"), "Выравнивание текста внутри поля ввода (`left` | `right`, default: `left`)"), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Всплывающая подсказка по авторасчету"), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("suffix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в правой части input-а`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в левой части input-а`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: с двумя знаками после запятой и пробелами между тысячами.`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("showNegativeAsBrackets", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Отрицательные числа будут отображаться в скобках и без минуса (только визуально и только при потере фокуса)"), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("removeReadonlyBackground", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Убирает серый background у ридонли инпута"), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("noReadonlyPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Убирает дефолтный паддинг 2px у контейнера ридонли инпута"), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("forceAutoValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Принудительно устанавливает autoValue при ините черновика"), _dec(_class = (_class2 = class InputNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
100161
+ `), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("settings", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "'true': всегда первой будет применяться указанная fetchfn, а если она вернет undefined то тогда будет брать из модели - из фуфа/draftinfo (то, что придет с сервера). В противном случае fetchfn сработает только в том случае, когда бекенд ничего не прислал"), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("deprecated-disabled-for-rpn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit.default("100%"), "Ширина поля"), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного скрытия контрола`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("left", "right"), "Выравнивание текста внутри поля ввода (`left` | `right`, default: `left`)"), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Всплывающая подсказка по авторасчету"), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("suffix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в правой части input-а`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в левой части input-а`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: с двумя знаками после запятой и пробелами между тысячами.`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("showNegativeAsBrackets", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Отрицательные числа будут отображаться в скобках и без минуса (только визуально и только при потере фокуса)"), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("removeReadonlyBackground", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Убирает серый background у ридонли инпута"), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("noReadonlyPadding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Убирает дефолтный паддинг 2px у контейнера ридонли инпута"), _dec(_class = (_class2 = class InputNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
100250
100162
  constructor(...args) {
100251
100163
  super(...args);
100252
100164
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor, this);
@@ -100300,7 +100212,6 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
100300
100212
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "showNegativeAsBrackets", _descriptor47, this);
100301
100213
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "removeReadonlyBackground", _descriptor48, this);
100302
100214
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "noReadonlyPadding", _descriptor49, this);
100303
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "forceAutoValue", _descriptor50, this);
100304
100215
  }
100305
100216
  getOwnPath() {
100306
100217
  return this.dataBinding.getOwnPath();
@@ -100553,11 +100464,6 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
100553
100464
  enumerable: true,
100554
100465
  writable: true,
100555
100466
  initializer: null
100556
- }), _descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "forceAutoValue", [_dec51], {
100557
- configurable: true,
100558
- enumerable: true,
100559
- writable: true,
100560
- initializer: null
100561
100467
  }), _class2)) || _class);
100562
100468
 
100563
100469
  /***/ }),
@@ -103683,12 +103589,6 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
103683
103589
  const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103684
103590
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
103685
103591
  }
103686
- doBuildNormalizeRules(builder, __) {
103687
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103688
- return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
103689
- disabled: node.disabled
103690
- })];
103691
- }
103692
103592
  *doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
103693
103593
  const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103694
103594
  const element = formSchemaRng.getElementByPath(node.getFullPath());
@@ -104264,14 +104164,14 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
104264
104164
  }
104265
104165
  doBuildNormalizeRules(builder) {
104266
104166
  const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
104267
- return [builder.valueInitializer(node, node.dataBinding, true, "Фамилия", "surname"), ...builder.specialFieldsInitializer(node, {
104268
- disabled: true,
104167
+ return [builder.valueInitializer(node, node.dataBinding, node.disabled, "Фамилия", "surname"), ...builder.specialFieldsInitializer(node, {
104168
+ disabled: node.disabled,
104269
104169
  pathSuffix: "Фамилия"
104270
- }), builder.valueInitializer(node, node.dataBinding, true, "Имя", "name"), ...builder.specialFieldsInitializer(node, {
104271
- disabled: true,
104170
+ }), builder.valueInitializer(node, node.dataBinding, node.disabled, "Имя", "name"), ...builder.specialFieldsInitializer(node, {
104171
+ disabled: node.disabled,
104272
104172
  pathSuffix: "Имя"
104273
- }), builder.valueInitializer(node, node.dataBinding, true, "Отчество", "patronymic"), ...builder.specialFieldsInitializer(node, {
104274
- disabled: true,
104173
+ }), builder.valueInitializer(node, node.dataBinding, node.disabled, "Отчество", "patronymic"), ...builder.specialFieldsInitializer(node, {
104174
+ disabled: node.disabled,
104275
104175
  pathSuffix: "Отчество"
104276
104176
  })];
104277
104177
  }
@@ -105490,8 +105390,7 @@ class MarkupBuildingContext {
105490
105390
  __webpack_require__.r(__webpack_exports__);
105491
105391
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
105492
105392
  /* harmony export */ KCLangCalculationsBuildContext: () => (/* binding */ KCLangCalculationsBuildContext),
105493
- /* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr),
105494
- /* harmony export */ combineByOrKCLangExpr: () => (/* binding */ combineByOrKCLangExpr)
105393
+ /* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
105495
105394
  /* harmony export */ });
105496
105395
  /* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
105497
105396
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
@@ -105614,29 +105513,9 @@ class KCLangCalculationsBuildContext {
105614
105513
  if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) > _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_31__.maxOptionalChildrenLimit) {
105615
105514
  allChildrenPaths = undefined;
105616
105515
  }
105617
- const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("")))).reduce(combineByOrKCLangExpr, undefined);
105618
- let choiceChecks;
105619
- const haveChoices = schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement && schemaNode.choices.length > 0;
105620
- if (haveChoices) {
105621
- const choiceRules = [];
105622
- for (const schemaNodeChoice of schemaNode.choices) {
105623
- if (schemaNodeChoice !== null && schemaNodeChoice !== void 0 && schemaNodeChoice.values().every(el => el.isOptional())) {
105624
- continue;
105625
- }
105626
- const allChoicesPaths = schemaNodeChoice === null || schemaNodeChoice === void 0 ? void 0 : schemaNodeChoice.values().map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration());
105627
- choiceChecks = allChoicesPaths === null || allChoicesPaths === void 0 ? void 0 : allChoicesPaths.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("")))).reduce(combineByOrKCLangExpr, undefined);
105628
- if (choiceChecks) {
105629
- choiceRules.push(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_21__.NotExpression(choiceChecks));
105630
- }
105631
- }
105632
- choiceChecks = choiceRules.reduce(combineByOrKCLangExpr, undefined);
105633
- }
105516
+ const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression("")))).reduce(combineByAndKCLangExpr, undefined);
105634
105517
  const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_10__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_20__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_5__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_26__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_17__.KCLangPath.fromModelPath(targetPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_18__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringConstExpression(""))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_38__.omitLocalization)(requiredDescription))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_27__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_8__.DescriptionText((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken).toArray()).toString()))]);
105635
- if (restChecks != undefined && choiceChecks != undefined) {
105636
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(restChecks, choiceChecks), [checkRequiredStatement]);
105637
- } else if (choiceChecks != undefined) {
105638
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(choiceChecks, [checkRequiredStatement]);
105639
- } else if (restChecks != undefined) {
105518
+ if (restChecks != undefined) {
105640
105519
  yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_16__.IfStatement(restChecks, [checkRequiredStatement]);
105641
105520
  } else {
105642
105521
  yield checkRequiredStatement;
@@ -105837,11 +105716,8 @@ class KCLangCalculationsBuildContext {
105837
105716
  }
105838
105717
  }
105839
105718
  }
105840
- function combineByOrKCLangExpr(acc, current) {
105841
- return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(acc, current) : current;
105842
- }
105843
105719
  function combineByAndKCLangExpr(acc, current) {
105844
- return acc != undefined ? new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_4__.AndExpression(acc, current) : current;
105720
+ return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_23__.OrExpression(acc, current) : current;
105845
105721
  }
105846
105722
 
105847
105723
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.126.0-forceAutoValue.0",
3
+ "version": "5.126.0-fs-9219-interdocument-checks-hidden-text.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,