@kontur.candy/generator 4.269.0-normalization-sum-fix.1 → 4.269.0-normalization-sum-fix.2

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 +63 -71
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -121912,7 +121912,7 @@ class FormSchemaRngAttribute {
121912
121912
  }
121913
121913
 
121914
121914
  isOptional() {
121915
- return this.optional;
121915
+ return this.optional || this.parent.isOptional();
121916
121916
  }
121917
121917
 
121918
121918
  }
@@ -121926,7 +121926,6 @@ class FormSchemaRngElement {
121926
121926
  this.errorAndWarningCountRequired = void 0;
121927
121927
  this.lazyLoadingThreshold = void 0;
121928
121928
  this.innerTextType = void 0;
121929
- this.innerTextOptional = void 0;
121930
121929
  this.children = new Map();
121931
121930
  this.maxOccurs = void 0;
121932
121931
  this.attributes = new Map();
@@ -121957,10 +121956,6 @@ class FormSchemaRngElement {
121957
121956
  this.innerTextType = type;
121958
121957
  }
121959
121958
 
121960
- setInnerTextOptional(optional) {
121961
- this.innerTextOptional = optional;
121962
- }
121963
-
121964
121959
  getElementByName(name) {
121965
121960
  var _this$children$get;
121966
121961
 
@@ -121968,7 +121963,7 @@ class FormSchemaRngElement {
121968
121963
  }
121969
121964
 
121970
121965
  isOptionalOrNillable() {
121971
- return this.optional || this.nillable || this.innerTextOptional || false;
121966
+ return this.optional || this.nillable || false;
121972
121967
  }
121973
121968
 
121974
121969
  isOptional() {
@@ -122007,8 +122002,6 @@ class FormSchemaRng {
122007
122002
  if (schemaRngElement.innerText.type != undefined) {
122008
122003
  result.setInnerTextType(this.buildTypeInfo(schemaRngElement.innerText.type));
122009
122004
  }
122010
-
122011
- result.setInnerTextOptional(schemaRngElement.innerText.optional);
122012
122005
  } else {
122013
122006
  for (const attribute of schemaRngElement.attributes) {
122014
122007
  result.addAttribute(this.convertSchemaRngAttribute(attribute, result));
@@ -122405,7 +122398,7 @@ __webpack_require__.r(__webpack_exports__);
122405
122398
 
122406
122399
 
122407
122400
 
122408
- var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _class4, _class5, _descriptor2, _dec5, _dec6, _class7, _class8, _descriptor3, _dec7, _dec8, _class10, _class11, _descriptor4, _dec9, _dec10, _class13, _class14, _descriptor5, _dec11, _dec12, _class16, _class17, _descriptor6, _dec13, _dec14, _class19, _class20, _descriptor7, _dec15, _dec16, _class22, _class23, _descriptor8, _dec17, _dec18, _class25, _class26, _descriptor9, _dec19, _dec20, _class28, _class29, _descriptor10, _dec21, _dec22, _dec23, _dec24, _dec25, _class31, _class32, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _class34, _class35, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _dec34, _dec35, _dec36, _class37, _class38, _descriptor22, _descriptor23, _dec37, _dec38, _class40, _class41, _descriptor24, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _class43, _class44, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38;
122401
+ var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _class4, _class5, _descriptor2, _dec5, _dec6, _class7, _class8, _descriptor3, _dec7, _dec8, _class10, _class11, _descriptor4, _dec9, _dec10, _class13, _class14, _descriptor5, _dec11, _dec12, _class16, _class17, _descriptor6, _dec13, _dec14, _class19, _class20, _descriptor7, _dec15, _dec16, _class22, _class23, _descriptor8, _dec17, _dec18, _class25, _class26, _descriptor9, _dec19, _dec20, _class28, _class29, _descriptor10, _dec21, _dec22, _dec23, _dec24, _dec25, _class31, _class32, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _class34, _class35, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _dec34, _dec35, _class37, _class38, _descriptor22, _dec36, _dec37, _class40, _class41, _descriptor23, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _class43, _class44, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37;
122409
122402
 
122410
122403
 
122411
122404
  class SchemaRngTypeCheck extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {}
@@ -122628,138 +122621,131 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
122628
122621
  writable: true,
122629
122622
  initializer: null
122630
122623
  })), _class35)) || _class34);
122631
- let SchemaRngInnerText = (_dec34 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("innertext", ``), _dec35 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec36 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("type", [SchemaRngType]), _dec34(_class37 = (_class38 = class SchemaRngInnerText extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
122624
+ let SchemaRngInnerText = (_dec34 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("innertext", ``), _dec35 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("type", [SchemaRngType]), _dec34(_class37 = (_class38 = class SchemaRngInnerText extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
122632
122625
  constructor(...args) {
122633
122626
  super(...args);
122634
122627
 
122635
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor22, this);
122636
-
122637
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor23, this);
122628
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor22, this);
122638
122629
  }
122639
122630
 
122640
- }, (_descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "optional", [_dec35], {
122641
- configurable: true,
122642
- enumerable: true,
122643
- writable: true,
122644
- initializer: null
122645
- }), _descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "type", [_dec36], {
122631
+ }, (_descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "type", [_dec35], {
122646
122632
  configurable: true,
122647
122633
  enumerable: true,
122648
122634
  writable: true,
122649
122635
  initializer: null
122650
122636
  })), _class38)) || _class37);
122651
- let SchemaRngElementChoiceElement = (_dec37 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("choice", ``), _dec38 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("element"), _dec37(_class40 = (_class41 = class SchemaRngElementChoiceElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
122637
+ let SchemaRngElementChoiceElement = (_dec36 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("choice", ``), _dec37 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("element"), _dec36(_class40 = (_class41 = class SchemaRngElementChoiceElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
122652
122638
  constructor(...args) {
122653
122639
  super(...args);
122654
122640
 
122655
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor24, this);
122641
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor23, this);
122656
122642
  }
122657
122643
 
122658
- }, (_descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class41.prototype, "children", [_dec38], {
122644
+ }, (_descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class41.prototype, "children", [_dec37], {
122659
122645
  configurable: true,
122660
122646
  enumerable: true,
122661
122647
  writable: true,
122662
122648
  initializer: null
122663
122649
  })), _class41)) || _class40);
122664
- let SchemaRngElement = (_dec39 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("element", ``), _dec40 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, ``), _dec41 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec42 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec43 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("nillable", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec44 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec45 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("maxOccurs", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec46 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("attribute", [SchemaRngAttribute]), _dec47 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("element"), _dec48 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("choice"), _dec49 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("innertext", [SchemaRngInnerText]), _dec50 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec51 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadMode", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType["enum"]("deferred", "initial", "request"), ``), _dec52 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("errorAndWarningCountRequired", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec53 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadingThreshold", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec39(_class43 = (_class44 = class SchemaRngElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
122650
+ let SchemaRngElement = (_dec38 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("element", ``), _dec39 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, ``), _dec40 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec41 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("optional", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec42 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("nillable", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec43 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec44 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("maxOccurs", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec45 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("attribute", [SchemaRngAttribute]), _dec46 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("element"), _dec47 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("choice"), _dec48 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("innertext", [SchemaRngInnerText]), _dec49 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadAggregations", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec50 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadMode", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType["enum"]("deferred", "initial", "request"), ``), _dec51 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("errorAndWarningCountRequired", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec52 = (0,_generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("lazyLoadingThreshold", _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec38(_class43 = (_class44 = class SchemaRngElement extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
122665
122651
  constructor(...args) {
122666
122652
  super(...args);
122667
122653
 
122668
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor25, this);
122654
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor24, this);
122669
122655
 
122670
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor26, this);
122656
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor25, this);
122671
122657
 
122672
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor27, this);
122658
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor26, this);
122673
122659
 
122674
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable", _descriptor28, this);
122660
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable", _descriptor27, this);
122675
122661
 
122676
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor29, this);
122662
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor28, this);
122677
122663
 
122678
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxOccurs", _descriptor30, this);
122664
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxOccurs", _descriptor29, this);
122679
122665
 
122680
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attributes", _descriptor31, this);
122666
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attributes", _descriptor30, this);
122681
122667
 
122682
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor32, this);
122668
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor31, this);
122683
122669
 
122684
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "choices", _descriptor33, this);
122670
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "choices", _descriptor32, this);
122685
122671
 
122686
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "innerText", _descriptor34, this);
122672
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "innerText", _descriptor33, this);
122687
122673
 
122688
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations", _descriptor35, this);
122674
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations", _descriptor34, this);
122689
122675
 
122690
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode", _descriptor36, this);
122676
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode", _descriptor35, this);
122691
122677
 
122692
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorAndWarningCountRequired", _descriptor37, this);
122678
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorAndWarningCountRequired", _descriptor36, this);
122693
122679
 
122694
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadingThreshold", _descriptor38, this);
122680
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadingThreshold", _descriptor37, this);
122695
122681
  }
122696
122682
 
122697
- }, (_descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "name", [_dec40], {
122683
+ }, (_descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "name", [_dec39], {
122698
122684
  configurable: true,
122699
122685
  enumerable: true,
122700
122686
  writable: true,
122701
122687
  initializer: null
122702
- }), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "description", [_dec41], {
122688
+ }), _descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "description", [_dec40], {
122703
122689
  configurable: true,
122704
122690
  enumerable: true,
122705
122691
  writable: true,
122706
122692
  initializer: null
122707
- }), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "optional", [_dec42], {
122693
+ }), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "optional", [_dec41], {
122708
122694
  configurable: true,
122709
122695
  enumerable: true,
122710
122696
  writable: true,
122711
122697
  initializer: null
122712
- }), _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "nillable", [_dec43], {
122698
+ }), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "nillable", [_dec42], {
122713
122699
  configurable: true,
122714
122700
  enumerable: true,
122715
122701
  writable: true,
122716
122702
  initializer: null
122717
- }), _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "multiple", [_dec44], {
122703
+ }), _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "multiple", [_dec43], {
122718
122704
  configurable: true,
122719
122705
  enumerable: true,
122720
122706
  writable: true,
122721
122707
  initializer: null
122722
- }), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "maxOccurs", [_dec45], {
122708
+ }), _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "maxOccurs", [_dec44], {
122723
122709
  configurable: true,
122724
122710
  enumerable: true,
122725
122711
  writable: true,
122726
122712
  initializer: null
122727
- }), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "attributes", [_dec46], {
122713
+ }), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "attributes", [_dec45], {
122728
122714
  configurable: true,
122729
122715
  enumerable: true,
122730
122716
  writable: true,
122731
122717
  initializer: null
122732
- }), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "children", [_dec47], {
122718
+ }), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "children", [_dec46], {
122733
122719
  configurable: true,
122734
122720
  enumerable: true,
122735
122721
  writable: true,
122736
122722
  initializer: null
122737
- }), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "choices", [_dec48], {
122723
+ }), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "choices", [_dec47], {
122738
122724
  configurable: true,
122739
122725
  enumerable: true,
122740
122726
  writable: true,
122741
122727
  initializer: null
122742
- }), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "innerText", [_dec49], {
122728
+ }), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "innerText", [_dec48], {
122743
122729
  configurable: true,
122744
122730
  enumerable: true,
122745
122731
  writable: true,
122746
122732
  initializer: null
122747
- }), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadAggregations", [_dec50], {
122733
+ }), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadAggregations", [_dec49], {
122748
122734
  configurable: true,
122749
122735
  enumerable: true,
122750
122736
  writable: true,
122751
122737
  initializer: null
122752
- }), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadMode", [_dec51], {
122738
+ }), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadMode", [_dec50], {
122753
122739
  configurable: true,
122754
122740
  enumerable: true,
122755
122741
  writable: true,
122756
122742
  initializer: null
122757
- }), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "errorAndWarningCountRequired", [_dec52], {
122743
+ }), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "errorAndWarningCountRequired", [_dec51], {
122758
122744
  configurable: true,
122759
122745
  enumerable: true,
122760
122746
  writable: true,
122761
122747
  initializer: null
122762
- }), _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadingThreshold", [_dec53], {
122748
+ }), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadingThreshold", [_dec52], {
122763
122749
  configurable: true,
122764
122750
  enumerable: true,
122765
122751
  writable: true,
@@ -132403,7 +132389,7 @@ class NormalizationRulesGenerator {
132403
132389
  const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
132404
132390
  const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_14__.FLangValidationBuildContext(this.typesRegistry, this.formSchemaRng, this.useSchemaValidations);
132405
132391
  const kcRules = this.buildKcValidationRules();
132406
- const allRules = Iterator.from(converter.buildFLangValidations(context)).reduce((ctx, current) => {
132392
+ const allRules = Iterator.from(converter.buildFLangValidations(context, this.formSchemaRng)).reduce((ctx, current) => {
132407
132393
  const statement = current.statement;
132408
132394
 
132409
132395
  if (!(statement instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SetStatement)) {
@@ -150308,8 +150294,9 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
150308
150294
  })];
150309
150295
  }
150310
150296
 
150311
- doBuildFLangValidations(buildContext) {
150297
+ doBuildFLangValidations(buildContext, formSchemaRng) {
150312
150298
  const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.ComboBoxNode);
150299
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
150313
150300
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
150314
150301
  const typeNode = buildContext.getTypeNode(node.validationInfo);
150315
150302
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -150318,7 +150305,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
150318
150305
  return [];
150319
150306
  }
150320
150307
 
150321
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
150308
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional || (element === null || element === void 0 ? void 0 : element.isOptional()));
150322
150309
  }
150323
150310
 
150324
150311
  buildChildrenDataDeclaration(context) {
@@ -150789,8 +150776,9 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
150789
150776
  return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
150790
150777
  }
150791
150778
 
150792
- doBuildFLangValidations(buildContext) {
150779
+ doBuildFLangValidations(buildContext, formSchemaRng) {
150793
150780
  const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
150781
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
150794
150782
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
150795
150783
  const typeNode = buildContext.getTypeNode(node.validationInfo);
150796
150784
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -150799,7 +150787,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
150799
150787
  return [];
150800
150788
  }
150801
150789
 
150802
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
150790
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional || (element === null || element === void 0 ? void 0 : element.isOptional()));
150803
150791
  }
150804
150792
 
150805
150793
  doBuildNodeValidations(validationGenerator) {
@@ -152669,8 +152657,9 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
152669
152657
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
152670
152658
  }
152671
152659
 
152672
- doBuildFLangValidations(buildContext) {
152660
+ doBuildFLangValidations(buildContext, formSchemaRng) {
152673
152661
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
152662
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
152674
152663
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
152675
152664
  const typeNode = buildContext.getTypeNode(node.validationInfo);
152676
152665
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -152679,7 +152668,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
152679
152668
  return [];
152680
152669
  }
152681
152670
 
152682
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
152671
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional || (element === null || element === void 0 ? void 0 : element.isOptional()));
152683
152672
  }
152684
152673
 
152685
152674
  doBuildNodeValidations(validationGenerator) {
@@ -153758,8 +153747,9 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
153758
153747
  return _PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode;
153759
153748
  }
153760
153749
 
153761
- doBuildFLangValidations(buildContext) {
153750
+ doBuildFLangValidations(buildContext, formSchemaRng) {
153762
153751
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
153752
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
153763
153753
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
153764
153754
  const typeNode = buildContext.getTypeNode(node.validationInfo);
153765
153755
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -153768,7 +153758,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
153768
153758
  return [];
153769
153759
  }
153770
153760
 
153771
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
153761
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional || (element === null || element === void 0 ? void 0 : element.isOptional()));
153772
153762
  }
153773
153763
 
153774
153764
  doBuildNodeValidations(validationGenerator) {
@@ -154993,8 +154983,9 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
154993
154983
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
154994
154984
  }
154995
154985
 
154996
- doBuildFLangValidations(buildContext) {
154986
+ doBuildFLangValidations(buildContext, formSchemaRng) {
154997
154987
  const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
154988
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
154998
154989
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
154999
154990
  const typeNode = buildContext.getTypeNode(node.validationInfo);
155000
154991
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -155003,7 +154994,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
155003
154994
  return [];
155004
154995
  }
155005
154996
 
155006
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
154997
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional || (element === null || element === void 0 ? void 0 : element.isOptional()));
155007
154998
  }
155008
154999
 
155009
155000
  doBuildNodeValidations(validationGenerator) {
@@ -155213,8 +155204,9 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
155213
155204
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
155214
155205
  }
155215
155206
 
155216
- doBuildFLangValidations(buildContext) {
155207
+ doBuildFLangValidations(buildContext, formSchemaRng) {
155217
155208
  const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
155209
+ const element = formSchemaRng.getElementByPath(node.getFullPath());
155218
155210
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
155219
155211
  const typeNode = buildContext.getTypeNode(node.validationInfo);
155220
155212
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
@@ -155223,7 +155215,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
155223
155215
  return [];
155224
155216
  }
155225
155217
 
155226
- return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional);
155218
+ return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional || (element === null || element === void 0 ? void 0 : element.isOptional()));
155227
155219
  }
155228
155220
 
155229
155221
  doBuildDataDeclaration(context) {
@@ -159011,15 +159003,15 @@ class SugarNodeConverterBase {
159011
159003
  *getAttachmentPaths() {// no paths by default
159012
159004
  }
159013
159005
 
159014
- *buildFLangValidations(buildContext) {
159015
- yield* this.doBuildFLangValidations(buildContext);
159016
- yield* this.buildChildrenFLangValidations(buildContext);
159006
+ *buildFLangValidations(buildContext, formSchemaRng) {
159007
+ yield* this.doBuildFLangValidations(buildContext, formSchemaRng);
159008
+ yield* this.buildChildrenFLangValidations(buildContext, formSchemaRng);
159017
159009
  }
159018
159010
 
159019
159011
  doBuildNodeValidations(validationGenerator) {// noop
159020
159012
  }
159021
159013
 
159022
- doBuildFLangValidations(buildContext) {
159014
+ doBuildFLangValidations(buildContext, formSchemaRng) {
159023
159015
  return [];
159024
159016
  }
159025
159017
 
@@ -159141,7 +159133,7 @@ class SugarNodeConverterBase {
159141
159133
  }
159142
159134
  }
159143
159135
 
159144
- *buildChildrenFLangValidations(buildContext) {
159136
+ *buildChildrenFLangValidations(buildContext, formSchemaRng) {
159145
159137
  for (const child of this.doTraverseChildren()) {
159146
159138
  const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
159147
159139
 
@@ -159150,7 +159142,7 @@ class SugarNodeConverterBase {
159150
159142
  }
159151
159143
 
159152
159144
  const converter = new controlConverterClass(child);
159153
- yield* converter.buildFLangValidations(buildContext);
159145
+ yield* converter.buildFLangValidations(buildContext, formSchemaRng);
159154
159146
  }
159155
159147
  }
159156
159148
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.269.0-normalization-sum-fix.1",
3
+ "version": "4.269.0-normalization-sum-fix.2",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,