@kontur.candy/generator 4.250.0-sauron.2 → 4.250.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 +46 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113468,6 +113468,7 @@ function assertIs(value) {// noop
113468
113468
  "use strict";
113469
113469
  __webpack_require__.r(__webpack_exports__);
113470
113470
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
113471
+ /* harmony export */ "unitWithoutInstance": () => (/* binding */ unitWithoutInstance),
113471
113472
  /* harmony export */ "isUnitIdEquals": () => (/* binding */ isUnitIdEquals),
113472
113473
  /* harmony export */ "sectionNameToUnitId": () => (/* binding */ sectionNameToUnitId),
113473
113474
  /* harmony export */ "unitIdToLegacyUnitId": () => (/* binding */ unitIdToLegacyUnitId),
@@ -113477,8 +113478,19 @@ __webpack_require__.r(__webpack_exports__);
113477
113478
  /* harmony import */ var fbjs_lib_areEqual__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fbjs/lib/areEqual */ "./node_modules/fbjs/lib/areEqual.js");
113478
113479
  /* harmony import */ var fbjs_lib_areEqual__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fbjs_lib_areEqual__WEBPACK_IMPORTED_MODULE_0__);
113479
113480
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
113481
+ /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
113480
113482
 
113481
113483
 
113484
+
113485
+ function unitWithoutInstance(unitId) {
113486
+ if (unitId.instance == undefined) {
113487
+ return unitId;
113488
+ }
113489
+
113490
+ return { ...unitId,
113491
+ instance: undefined
113492
+ };
113493
+ }
113482
113494
  function isUnitIdEquals(left, right) {
113483
113495
  var _left$instance, _right$instance, _left$parentInstances, _right$parentInstance;
113484
113496
 
@@ -113493,11 +113505,28 @@ function isUnitIdEquals(left, right) {
113493
113505
  return left.pageId === right.pageId && ((_left$instance = left.instance) !== null && _left$instance !== void 0 ? _left$instance : undefined) === ((_right$instance = right.instance) !== null && _right$instance !== void 0 ? _right$instance : undefined) && fbjs_lib_areEqual__WEBPACK_IMPORTED_MODULE_0___default()((_left$parentInstances = left.parentInstances) !== null && _left$parentInstances !== void 0 ? _left$parentInstances : [], (_right$parentInstance = right.parentInstances) !== null && _right$parentInstance !== void 0 ? _right$parentInstance : []);
113494
113506
  }
113495
113507
  function sectionNameToUnitId(sectionName) {
113496
- const [id, instance] = sectionName.split("-");
113497
- return {
113498
- pageId: id !== null && id !== void 0 ? id : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(),
113499
- instance: instance
113500
- };
113508
+ const [id, ...instances] = sectionName.split("-");
113509
+
113510
+ if (instances.length === 0) {
113511
+ return {
113512
+ pageId: id !== null && id !== void 0 ? id : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)()
113513
+ };
113514
+ } else if (instances.length === 1) {
113515
+ var _instances$;
113516
+
113517
+ return {
113518
+ pageId: id !== null && id !== void 0 ? id : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(),
113519
+ instance: (_instances$ = instances[0]) !== null && _instances$ !== void 0 ? _instances$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)()
113520
+ };
113521
+ } else {
113522
+ var _IterUtils$last;
113523
+
113524
+ return {
113525
+ pageId: id !== null && id !== void 0 ? id : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(),
113526
+ parentInstances: instances.slice(0, -1),
113527
+ instance: (_IterUtils$last = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.last(instances)) !== null && _IterUtils$last !== void 0 ? _IterUtils$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)()
113528
+ };
113529
+ }
113501
113530
  }
113502
113531
  function unitIdToLegacyUnitId(unitId) {
113503
113532
  if (unitId == undefined) {
@@ -121302,7 +121331,7 @@ class FormSchemaRngTypeInfo {
121302
121331
  const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.EnumerationValueValidator");
121303
121332
  builder.set(0, this.enumeration);
121304
121333
  builder.set(1, "error");
121305
- builder.set(2, description !== null && description !== void 0 ? description : this.buildDefaultDescription());
121334
+ builder.set(2, description);
121306
121335
  yield builder;
121307
121336
  }
121308
121337
 
@@ -146798,7 +146827,6 @@ class HeaderPanelConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_
146798
146827
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("HeaderPanel");
146799
146828
  markupBuilder.appendChild(context.convertChildNodes(node.children));
146800
146829
  markupBuilder.prop(x => x.onBackButtonClick).set(context.generateHelperFunctionExpression(node, "onBackButtonClick", node.onBackButtonClick));
146801
- markupBuilder.prop(x => x.bindingPath).set(node.getFullPath());
146802
146830
  markupBuilder.prop(x => x.backButtonHint).set(node.backButtonHint);
146803
146831
  return markupBuilder.buildConverterResult();
146804
146832
  }
@@ -148385,6 +148413,7 @@ class FiasFssConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.
148385
148413
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("FiasFss");
148386
148414
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node));
148387
148415
  markupBuilder.prop(x => x.postalTransfer).set(node.postalTransfer || false);
148416
+ markupBuilder.prop(x => x.optionalIndex).set(node.optionalIndex || false);
148388
148417
  return markupBuilder.buildConverterResult();
148389
148418
  }
148390
148419
 
@@ -148415,17 +148444,19 @@ __webpack_require__.r(__webpack_exports__);
148415
148444
 
148416
148445
 
148417
148446
 
148418
- var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
148447
+ var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
148419
148448
 
148420
148449
 
148421
148450
 
148422
- let FiasFssNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fiasfss", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FiasFss sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("postalTransfer", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Адрес для перевода выплаты по почте"), _dec(_class = (_class2 = class FiasFssNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
148451
+ let FiasFssNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fiasfss", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/FiasFss sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("postalTransfer", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Адрес для перевода выплаты по почте"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optionalIndex", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Опциональный индекс. По умолчание - false (не опциональный)"), _dec(_class = (_class2 = class FiasFssNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
148423
148452
  constructor(...args) {
148424
148453
  super(...args);
148425
148454
 
148426
148455
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
148427
148456
 
148428
148457
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "postalTransfer", _descriptor2, this);
148458
+
148459
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optionalIndex", _descriptor3, this);
148429
148460
  }
148430
148461
 
148431
148462
  getOwnPath() {
@@ -148442,6 +148473,11 @@ let FiasFssNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODUL
148442
148473
  enumerable: true,
148443
148474
  writable: true,
148444
148475
  initializer: null
148476
+ }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "optionalIndex", [_dec4], {
148477
+ configurable: true,
148478
+ enumerable: true,
148479
+ writable: true,
148480
+ initializer: null
148445
148481
  })), _class2)) || _class);
148446
148482
 
148447
148483
  /***/ }),
@@ -148586,7 +148622,7 @@ class FiasPfrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.
148586
148622
 
148587
148623
  doBuildDataDeclaration(context) {
148588
148624
  const node = this.getCurrentNodeAs(_FiasPfrNode__WEBPACK_IMPORTED_MODULE_4__.FiasPfrNode);
148589
- return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addChildPathSectionDeclarationEntry(node, "InternalFiasId", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ТипАдреса", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "Индекс", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Регион/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Регион/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Район/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Район/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Город/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Город/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/НаселенныйПункт/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/НаселенныйПункт/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Улица/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Улица/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Дом/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Дом/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Корпус/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Корпус/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Квартира/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Квартира/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИностранныйАдрес/КодСтраны", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИностранныйАдрес/НазваниеСтраны", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИностранныйАдрес/Адрес", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "НеструктурированныйАдрес/Адрес", node.dataBinding.requisite));
148625
+ return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addChildPathSectionDeclarationEntry(node, "InternalFiasId", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ТипАдреса", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "Индекс", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Регион/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Регион/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Район/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Район/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Город/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Город/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/НаселенныйПункт/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/НаселенныйПункт/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Улица/ГеографическоеНазвание", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Улица/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Дом/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Дом/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Корпус/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Корпус/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Квартира/Сокращение", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "РоссийскийАдрес/Квартира/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИностранныйАдрес/КодСтраны", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИностранныйАдрес/НазваниеСтраны", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИностранныйАдрес/Адрес", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "НеструктурированныйАдрес/Адрес", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "fullAddress", node.dataBinding.requisite));
148590
148626
  }
148591
148627
 
148592
148628
  buildChildrenDataDeclaration(context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.250.0-sauron.2",
3
+ "version": "4.250.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,