@kontur.candy/generator 5.126.0-fs-8962-grouping.0 → 5.126.0-fs-9219-interdocument.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 +110 -41
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47766,6 +47766,52 @@ 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
+
47769
47815
  /***/ "./Common/ModelPath/Set/Set2.ts":
47770
47816
  /*!**************************************!*\
47771
47817
  !*** ./Common/ModelPath/Set/Set2.ts ***!
@@ -70374,8 +70420,9 @@ class DataDeclarationGenerationTimeHelper {
70374
70420
  return declEntry !== undefined && "autoValue" in declEntry;
70375
70421
  }
70376
70422
  isNodeHasDisabledEntry(targetPath) {
70423
+ var _declEntry$disabled;
70377
70424
  const declEntry = this.getDataDeclarationEntry(targetPath);
70378
- return Boolean(declEntry === null || declEntry === void 0 ? void 0 : declEntry.disabled);
70425
+ return (declEntry === null || declEntry === void 0 || (_declEntry$disabled = declEntry.disabled) === null || _declEntry$disabled === void 0 ? void 0 : _declEntry$disabled[0]) == true;
70379
70426
  }
70380
70427
  getDefaultValue(targetPath) {
70381
70428
  const declEntry = this.getDataDeclarationEntry(targetPath);
@@ -70403,6 +70450,11 @@ class DataDeclarationGenerationTimeHelper {
70403
70450
  const rootPath = this.getDataDeclarationRootPath();
70404
70451
  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 : [];
70405
70452
  }
70453
+ getAllSingleSections() {
70454
+ var _this$dataDeclaration3, _this$dataDeclaration4;
70455
+ const rootPath = this.getDataDeclarationRootPath();
70456
+ 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 : [];
70457
+ }
70406
70458
  getOptionalBlocksPaths() {
70407
70459
  const visibilityFieldsPaths = Object.keys(this.dataDeclaration).filter(path => path.endsWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockVisibilityFieldName));
70408
70460
  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());
@@ -71290,6 +71342,8 @@ __webpack_require__.r(__webpack_exports__);
71290
71342
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
71291
71343
  /* harmony import */ var _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataDeclarationGenerator/DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
71292
71344
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
71345
+ /* harmony import */ var _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/AbsoluteModelPathSet */ "./Common/ModelPath/Set/AbsoluteModelPathSet.ts");
71346
+
71293
71347
 
71294
71348
 
71295
71349
 
@@ -71342,17 +71396,18 @@ function buildFieldsConfiguration(path, dataDeclaration) {
71342
71396
  return resultFields;
71343
71397
  }
71344
71398
  function buildExtendedSchemaInfo(dataDeclaration) {
71399
+ 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)));
71345
71400
  const nodes = new Map();
71346
71401
  for (const path of dataDeclaration.getAllPaths()) {
71347
- var _node$properties2;
71348
71402
  if (path.isEmpty() || path.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each]))) {
71349
71403
  continue;
71350
71404
  }
71351
71405
  const defaultValue = dataDeclaration.getDefaultValue(path);
71352
71406
  const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
71353
- const optional = dataDeclaration.isNodeOptionalBySchemaOrSugar(path);
71407
+ const isPage = dataDeclaration.getPageId(path) != undefined;
71408
+ const optional = isPage ? dataDeclaration.isNodeOptional(path) : dataDeclaration.isNodeOptionalBySchemaOrSugar(path);
71354
71409
  const node = getOrCreateNode(nodes, path);
71355
- (_node$properties2 = node.properties) !== null && _node$properties2 !== void 0 ? _node$properties2 : node.properties = {};
71410
+ node.properties ??= {};
71356
71411
  const props = node.properties;
71357
71412
  if (isMultiple) {
71358
71413
  props.multiple = true;
@@ -71367,10 +71422,8 @@ function buildExtendedSchemaInfo(dataDeclaration) {
71367
71422
  props.optional = optional;
71368
71423
  props.type = dataDeclaration.getType(path);
71369
71424
  props.disabled = dataDeclaration.isNodeHasDisabledEntry(path);
71370
- const isPage = dataDeclaration.getPageId(path) != undefined;
71371
- if (isPage) {
71372
- props.isPage = isPage;
71373
- }
71425
+ props.isPage = isPage || undefined;
71426
+ props.isForceFilledOptional = isPage && isMultiple && singleSectionsSet.has(path) || undefined;
71374
71427
  props.fields = buildFieldsConfiguration(path, dataDeclaration);
71375
71428
  }
71376
71429
  return {
@@ -76052,11 +76105,12 @@ class FormulaExpressionToFlangExpressionConverter {
76052
76105
  compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
76053
76106
  const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
76054
76107
  const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
76108
+ const isSelectEqualsTarget = target.path.isEquals(adjustedSelectPath);
76055
76109
  const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
76056
76110
  const baseSelectPath = splitInfo.matchedPath;
76057
76111
  if (!splitInfo.differentPath.isContainIteration()) {
76058
76112
  const valueRefExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(adjustedSelectPath.toCurrentIteration().normalize(), "value");
76059
- const finalValue = splitInfo.differentPath.isEmpty() && target.field === "value" ? (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeNoDeps)(valueRefExpression) : valueRefExpression;
76113
+ const finalValue = isSelectEqualsTarget && target.field === "value" ? (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeNoDeps)(valueRefExpression) : valueRefExpression;
76060
76114
  return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandIfNeed)(finalValue, builtInType);
76061
76115
  } else {
76062
76116
  var _countValueExpression;
@@ -81370,13 +81424,13 @@ const predefinedJsConditions = {
81370
81424
  "Show5 == 'true'": "Show5 as string == 'true'",
81371
81425
  "checked1 == 'true'": "checked1 as string == 'true'",
81372
81426
  "checked2 == 'true'": "checked2 as string == 'true'",
81373
- "path('kind') === '1'": "kind == '1'",
81374
- "path('kind') === '2'": "kind == '2'",
81427
+ "path('kind') === '1'": "kind as string == '1'",
81428
+ "path('kind') === '2'": "kind as string == '2'",
81375
81429
  "path('ПризнакПродавец') === '1'": "ПризнакПродавец == 1",
81376
81430
  "path`('ПризнакПродавец') === '2'": "ПризнакПродавец == 2",
81377
81431
  "(path('checked1') === 'true' && path('checked2') === 'true') or (path('checked1') === 'true')": "(checked1 and checked2) or checked1",
81378
- "path('СНИЛС') != ''": "СНИЛС != ''",
81379
- "path('/Файл/LazyLoadingEnabled') !== 'true'": "not (/Файл/LazyLoadingEnabled == 'true')",
81432
+ "path('СНИЛС') != ''": "СНИЛС as string != ''",
81433
+ "path('/Файл/LazyLoadingEnabled') !== 'true'": "not (/Файл/LazyLoadingEnabled as string == 'true')",
81380
81434
  "path('НомКорр') !== '99'": "НомКорр != 99",
81381
81435
  "tableIsEmpty != 'true'": "tableIsEmpty as string != 'true'",
81382
81436
  "tableIsEmpty == 'true'": "tableIsEmpty as string == 'true'",
@@ -81412,27 +81466,27 @@ const predefinedJsConditions = {
81412
81466
  "path('/Root/D') === 'true'": "(/Root/D as string) == 'true'",
81413
81467
  "path('D') === 'true'": "(D as string) == 'true'",
81414
81468
  "path('../../../../ОтчетныйПериод/Месяц') != ''": "(../../../../ОтчетныйПериод/Месяц as string) != ''",
81415
- "path('ПолучДох/ФИО/Фамилия') != '' || path('ПолучДох/ФИО/Имя') != '' || path('ПолучДох/ФИО/Отчество') != ''": "ПолучДох/ФИО/Фамилия != '' or ПолучДох/ФИО/Имя != '' or ПолучДох/ФИО/Отчество != ''",
81416
- "(path('../../../ПолучДох/Статус') == '1' || path('../../../ПолучДох/Статус') == '7') && (path('../Ставка') == '13' || path('../Ставка') == '15')": "(../../../ПолучДох/Статус == '1' or ../../../ПолучДох/Статус == '7') and (../Ставка == '13' or ../Ставка == '15')",
81469
+ "path('ПолучДох/ФИО/Фамилия') != '' || path('ПолучДох/ФИО/Имя') != '' || path('ПолучДох/ФИО/Отчество') != ''": "ПолучДох/ФИО/Фамилия as string != '' or ПолучДох/ФИО/Имя as string != '' or ПолучДох/ФИО/Отчество as string != ''",
81470
+ "(path('../../../ПолучДох/Статус') == '1' || path('../../../ПолучДох/Статус') == '7') && (path('../Ставка') == '13' || path('../Ставка') == '15')": "(../../../ПолучДох/Статус as string == '1' or ../../../ПолучДох/Статус as string == '7') and (../Ставкаv as string == '13' or ../Ставка as string == '15')",
81417
81471
  "path('@formsClientInfo/sender/type') != '2'": "1 == 1",
81418
81472
  "path('@formsClientInfo/currentAccount/fns/representativeDocument/warrantId') != ''": "1 == 1",
81419
81473
  "path('КорНБЛиш') === 'true' || path('КорНБЛиш/КорНБЛишВс') != '' || path('КорНБЛиш/КорНБЛишГод/0/Год') != '' || path('КорНБЛишГод/0/КорНБЛишВс') != '' || path('КорНБЛиш/КорНБЛишГод/1/Год') != '' || path('КорНБЛишГод/1/КорНБЛишВс') != '' || path('КорНБЛиш/КорНБЛишГод/2/Год') != '' || path('КорНБЛишГод/2/КорНБЛишВс') != ''": "1 == 0",
81420
- "path('СвСчБанк/НаимБанк')": "СвСчБанк/НаимБанк != ''",
81421
- "path('../..//kpp') == ''": "../../kpp == ''",
81422
- "path('БанкРекв/СведБанк/НаимБанк')": "БанкРекв/СведБанк/НаимБанк != ''",
81423
- "path('БанкРекв/НаимБанк')": "БанкРекв/СведБанк/НаимБанк != ''",
81474
+ "path('СвСчБанк/НаимБанк')": "СвСчБанк/НаимБанк as string != ''",
81475
+ "path('../..//kpp') == ''": "../../kpp as string == ''",
81476
+ "path('БанкРекв/СведБанк/НаимБанк')": "БанкРекв/СведБанк/НаимБанк as string != ''",
81477
+ "path('БанкРекв/НаимБанк')": "БанкРекв/СведБанк/НаимБанк as string != ''",
81424
81478
  "path('T7R39C1_autovalue', 'visible') == 'true' || path('T7R39C1_autovalue', 'visible') == true": "1 == 1",
81425
81479
  'path("/Файл/Документ/РасчетСВ/ModalReplaceCategoryCode/КодКатЛиц_хешсет_строкой") == "[\\"\\"]" \n|| path("/Файл/Документ/РасчетСВ/ModalReplaceCategoryCode/КодКатЛиц_хешсет_строкой") == ""': "1 == 0",
81426
- ДекретДети: "exists(ДекретДети) and ДекретДети != ''",
81427
- "ТерриториальныеУсловия/ОснованиеТУ": "exists(ТерриториальныеУсловия/ОснованиеТУ) and ТерриториальныеУсловия/ОснованиеТУ != ''",
81428
- "ОсобыеУсловияТруда/ОснованиеОУТ": "exists(ОсобыеУсловияТруда/ОснованиеОУТ) and ОсобыеУсловияТруда/ОснованиеОУТ != ''",
81429
- "ИсчисляемыйСтаж/ОснованиеИС": "exists(ИсчисляемыйСтаж/ОснованиеИС) and ИсчисляемыйСтаж/ОснованиеИС != ''",
81430
- "ВыслугаЛет/ОснованиеВЛ": "exists(ВыслугаЛет/ОснованиеВЛ) and ВыслугаЛет/ОснованиеВЛ != ''",
81431
- ДопСведенияИС: "exists(ДопСведенияИС) and ДопСведенияИС != ''",
81432
- "ТУ/Основание": "exists(ТУ/Основание) and ТУ/Основание != ''",
81433
- "ОУТ/Код": "exists(ОУТ/Код) and ОУТ/Код != ''",
81434
- "ИС/Основание": "exists(ИС/Основание) and ИС/Основание != ''",
81435
- "ВЛ/Основание": "exists(ВЛ/Основание) and ВЛ/Основание != ''"
81480
+ ДекретДети: "exists(ДекретДети) and ДекретДети as string != ''",
81481
+ "ТерриториальныеУсловия/ОснованиеТУ": "exists(ТерриториальныеУсловия/ОснованиеТУ) and ТерриториальныеУсловия/ОснованиеТУ as string != ''",
81482
+ "ОсобыеУсловияТруда/ОснованиеОУТ": "exists(ОсобыеУсловияТруда/ОснованиеОУТ) and ОсобыеУсловияТруда/ОснованиеОУТ as string != ''",
81483
+ "ИсчисляемыйСтаж/ОснованиеИС": "exists(ИсчисляемыйСтаж/ОснованиеИС) and ИсчисляемыйСтаж/ОснованиеИС as string != ''",
81484
+ "ВыслугаЛет/ОснованиеВЛ": "exists(ВыслугаЛет/ОснованиеВЛ) and ВыслугаЛет/ОснованиеВЛ as string != ''",
81485
+ ДопСведенияИС: "exists(ДопСведенияИС) and ДопСведенияИС as string != ''",
81486
+ "ТУ/Основание": "exists(ТУ/Основание) and ТУ/Основание as string != ''",
81487
+ "ОУТ/Код": "exists(ОУТ/Код) and ОУТ/Код as string != ''",
81488
+ "ИС/Основание": "exists(ИС/Основание) and ИС/Основание as string != ''",
81489
+ "ВЛ/Основание": "exists(ВЛ/Основание) and ВЛ/Основание as string != ''"
81436
81490
  };
81437
81491
  function convertToKCLangCondition(node, condition) {
81438
81492
  var _tryConvertToKCLangCo;
@@ -83260,6 +83314,15 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
83260
83314
  result[`${attachmentSection.path}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__.AttachmentInfoPath.toLegacyPath()}`] = {
83261
83315
  section: [attachmentSection.id]
83262
83316
  };
83317
+ result[attachmentSection.path] = {
83318
+ section: [attachmentSection.id],
83319
+ pageId: attachmentSection.id
83320
+ };
83321
+ if (attachmentSection.optional) {
83322
+ result[attachmentSection.path] = {
83323
+ optional: [true]
83324
+ };
83325
+ }
83263
83326
  });
83264
83327
  return result;
83265
83328
  }
@@ -84738,9 +84801,9 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
84738
84801
  result.children = [{
84739
84802
  model: true
84740
84803
  }, node.optional ? [] : ["0"]];
84741
- if (node.optional) {
84742
- result.optional = [true];
84743
- }
84804
+ }
84805
+ if (node.optional) {
84806
+ result.optional = [true];
84744
84807
  }
84745
84808
  const optionalFieldPath = node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_15__.OptionalSectionFilledFieldName).toLegacyPath();
84746
84809
  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);
@@ -95485,10 +95548,10 @@ function getColumnWidths(node, guessContentWidthCallback) {
95485
95548
  let maxWidth = 0;
95486
95549
  let firstCondition = undefined;
95487
95550
  for (let r = 0; r < rows.length; r++) {
95488
- var _resultRows$r$numberC, _resultRows$r$numberC2, _firstCondition, _resultRows$r;
95551
+ var _resultRows$r$numberC, _resultRows$r$numberC2, _resultRows$r;
95489
95552
  // @ts-ignore RowsWorker.rows - какая-то не понятная шняга, я не могу её победить
95490
95553
  maxWidth = Math.max(maxWidth, (_resultRows$r$numberC = (_resultRows$r$numberC2 = resultRows[r][numberCol]) === null || _resultRows$r$numberC2 === void 0 ? void 0 : _resultRows$r$numberC2.width) !== null && _resultRows$r$numberC !== void 0 ? _resultRows$r$numberC : -Infinity);
95491
- (_firstCondition = firstCondition) !== null && _firstCondition !== void 0 ? _firstCondition : firstCondition = (_resultRows$r = resultRows[r]) === null || _resultRows$r === void 0 || (_resultRows$r = _resultRows$r[numberCol]) === null || _resultRows$r === void 0 ? void 0 : _resultRows$r.visibilityConditionExpression;
95554
+ firstCondition ??= (_resultRows$r = resultRows[r]) === null || _resultRows$r === void 0 || (_resultRows$r = _resultRows$r[numberCol]) === null || _resultRows$r === void 0 ? void 0 : _resultRows$r.visibilityConditionExpression;
95492
95555
  }
95493
95556
  return {
95494
95557
  width: maxWidth,
@@ -98770,7 +98833,7 @@ let FiasValueSources = (_dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
98770
98833
  writable: true,
98771
98834
  initializer: null
98772
98835
  }), _class4)) || _class3);
98773
- let FiasExtendedField = (_dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fiasfield", "Описание дополнительных полей для фиаса"), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.required, `По этому пути в иннер будет сетится полученное значение`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("string", "guid", "kladr", "index"), `Тип для поля, string - строка значение из ответа фиаса, guid, kladr - уникальный адресный идентификатор`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.default(""), `Описание поля - будет выводиться на полях "Заполнить вручную"`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли пользователю выводиться эта строчка при просмотре адреса`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("skipDefaultValidation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Не запускать стандартную валидацию (сейчас работает только для индексов)`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("setToModel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли это поле сетиться в иннер. По умолчанию: true"`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("showInModal", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли значение показываться в модальном окне ручного ввода. По умолчанию: true`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Опциональность элемента, работает для индекса в ФСС`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Префикс для значения из иннера. Если значение есть - применяется префикс`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("valuesources", [FiasValueSources]), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("parentGuid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("region", "district", "city", "street", "garhouse", "room"), `Выгрузка родительского элемента GUID-a, применимо только к полям c type: guid`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("convertToShow", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum(_Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getMunicipalDistrictTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getUrbanSettlementTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getRegionNameByCode), `Метода для конвертации данных из модели для отображения пользователю`), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("child", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Является ли данный path - частью children`), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("clearSubstring", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Подстрока, которую нужно удалить перед показом пользователю"), _dec12(_class5 = (_class6 = class FiasExtendedField extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
98836
+ let FiasExtendedField = (_dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fiasfield", "Описание дополнительных полей для фиаса"), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.required, `По этому пути в иннер будет сетится полученное значение`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("string", "guid", "kladr", "index", "countryCode", "foreignAddress"), `Тип для поля, string - строка значение из ответа фиаса, guid, kladr - уникальный адресный идентификатор`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.default(""), `Описание поля - будет выводиться на полях "Заполнить вручную"`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли пользователю выводиться эта строчка при просмотре адреса`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("skipDefaultValidation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Не запускать стандартную валидацию (сейчас работает только для индексов)`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("setToModel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли это поле сетиться в иннер. По умолчанию: true"`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("showInModal", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли значение показываться в модальном окне ручного ввода. По умолчанию: true`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Опциональность элемента, работает для индекса в ФСС`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Префикс для значения из иннера. Если значение есть - применяется префикс`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("valuesources", [FiasValueSources]), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("parentGuid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("region", "district", "city", "street", "garhouse", "room"), `Выгрузка родительского элемента GUID-a, применимо только к полям c type: guid`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("convertToShow", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum(_Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getMunicipalDistrictTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getUrbanSettlementTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getRegionNameByCode), `Метода для конвертации данных из модели для отображения пользователю`), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("child", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Является ли данный path - частью children`), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("clearSubstring", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Подстрока, которую нужно удалить перед показом пользователю"), _dec12(_class5 = (_class6 = class FiasExtendedField extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
98774
98837
  constructor(...args) {
98775
98838
  super(...args);
98776
98839
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor10, this);
@@ -103590,6 +103653,12 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
103590
103653
  const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103591
103654
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
103592
103655
  }
103656
+ doBuildNormalizeRules(builder, __) {
103657
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103658
+ return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
103659
+ disabled: node.disabled
103660
+ })];
103661
+ }
103593
103662
  *doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
103594
103663
  const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103595
103664
  const element = formSchemaRng.getElementByPath(node.getFullPath());
@@ -104165,14 +104234,14 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
104165
104234
  }
104166
104235
  doBuildNormalizeRules(builder) {
104167
104236
  const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
104168
- return [builder.valueInitializer(node, node.dataBinding, node.disabled, "Фамилия", "surname"), ...builder.specialFieldsInitializer(node, {
104169
- disabled: node.disabled,
104237
+ return [builder.valueInitializer(node, node.dataBinding, true, "Фамилия", "surname"), ...builder.specialFieldsInitializer(node, {
104238
+ disabled: true,
104170
104239
  pathSuffix: "Фамилия"
104171
- }), builder.valueInitializer(node, node.dataBinding, node.disabled, "Имя", "name"), ...builder.specialFieldsInitializer(node, {
104172
- disabled: node.disabled,
104240
+ }), builder.valueInitializer(node, node.dataBinding, true, "Имя", "name"), ...builder.specialFieldsInitializer(node, {
104241
+ disabled: true,
104173
104242
  pathSuffix: "Имя"
104174
- }), builder.valueInitializer(node, node.dataBinding, node.disabled, "Отчество", "patronymic"), ...builder.specialFieldsInitializer(node, {
104175
- disabled: node.disabled,
104243
+ }), builder.valueInitializer(node, node.dataBinding, true, "Отчество", "patronymic"), ...builder.specialFieldsInitializer(node, {
104244
+ disabled: true,
104176
104245
  pathSuffix: "Отчество"
104177
104246
  })];
104178
104247
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.126.0-fs-8962-grouping.0",
3
+ "version": "5.126.0-fs-9219-interdocument.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,