@kontur.candy/generator 4.269.0-normalization-sum-fix.0 → 4.269.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 +92 -149
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -121911,10 +121911,6 @@ class FormSchemaRngAttribute {
121911
121911
  return this.optional || this.nillable || false;
121912
121912
  }
121913
121913
 
121914
- isOptional() {
121915
- return this.optional;
121916
- }
121917
-
121918
121914
  }
121919
121915
  const RootParent = Symbol.for("__ROOT_ELEMENT_PARENT__");
121920
121916
  class FormSchemaRngElement {
@@ -121926,7 +121922,6 @@ class FormSchemaRngElement {
121926
121922
  this.errorAndWarningCountRequired = void 0;
121927
121923
  this.lazyLoadingThreshold = void 0;
121928
121924
  this.innerTextType = void 0;
121929
- this.innerTextOptional = void 0;
121930
121925
  this.children = new Map();
121931
121926
  this.maxOccurs = void 0;
121932
121927
  this.attributes = new Map();
@@ -121957,10 +121952,6 @@ class FormSchemaRngElement {
121957
121952
  this.innerTextType = type;
121958
121953
  }
121959
121954
 
121960
- setInnerTextOptional(optional) {
121961
- this.innerTextOptional = optional;
121962
- }
121963
-
121964
121955
  getElementByName(name) {
121965
121956
  var _this$children$get;
121966
121957
 
@@ -121968,11 +121959,7 @@ class FormSchemaRngElement {
121968
121959
  }
121969
121960
 
121970
121961
  isOptionalOrNillable() {
121971
- return this.optional || this.nillable || this.innerTextOptional || false;
121972
- }
121973
-
121974
- isOptional() {
121975
- return this.optional;
121962
+ return this.optional || this.nillable || false;
121976
121963
  }
121977
121964
 
121978
121965
  getChildren() {
@@ -122007,8 +121994,6 @@ class FormSchemaRng {
122007
121994
  if (schemaRngElement.innerText.type != undefined) {
122008
121995
  result.setInnerTextType(this.buildTypeInfo(schemaRngElement.innerText.type));
122009
121996
  }
122010
-
122011
- result.setInnerTextOptional(schemaRngElement.innerText.optional);
122012
121997
  } else {
122013
121998
  for (const attribute of schemaRngElement.attributes) {
122014
121999
  result.addAttribute(this.convertSchemaRngAttribute(attribute, result));
@@ -122405,7 +122390,7 @@ __webpack_require__.r(__webpack_exports__);
122405
122390
 
122406
122391
 
122407
122392
 
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;
122393
+ 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
122394
 
122410
122395
 
122411
122396
  class SchemaRngTypeCheck extends _generators_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {}
@@ -122628,138 +122613,131 @@ let SchemaRngAttribute = (_dec26 = (0,_generators_markupGenerator_Serializer_Sug
122628
122613
  writable: true,
122629
122614
  initializer: null
122630
122615
  })), _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 {
122616
+ 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
122617
  constructor(...args) {
122633
122618
  super(...args);
122634
122619
 
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);
122620
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor22, this);
122638
122621
  }
122639
122622
 
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], {
122623
+ }, (_descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class38.prototype, "type", [_dec35], {
122646
122624
  configurable: true,
122647
122625
  enumerable: true,
122648
122626
  writable: true,
122649
122627
  initializer: null
122650
122628
  })), _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 {
122629
+ 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
122630
  constructor(...args) {
122653
122631
  super(...args);
122654
122632
 
122655
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor24, this);
122633
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor23, this);
122656
122634
  }
122657
122635
 
122658
- }, (_descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class41.prototype, "children", [_dec38], {
122636
+ }, (_descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class41.prototype, "children", [_dec37], {
122659
122637
  configurable: true,
122660
122638
  enumerable: true,
122661
122639
  writable: true,
122662
122640
  initializer: null
122663
122641
  })), _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 {
122642
+ 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
122643
  constructor(...args) {
122666
122644
  super(...args);
122667
122645
 
122668
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor25, this);
122646
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor24, this);
122669
122647
 
122670
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor26, this);
122648
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor25, this);
122671
122649
 
122672
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor27, this);
122650
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor26, this);
122673
122651
 
122674
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable", _descriptor28, this);
122652
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "nillable", _descriptor27, this);
122675
122653
 
122676
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor29, this);
122654
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor28, this);
122677
122655
 
122678
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxOccurs", _descriptor30, this);
122656
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxOccurs", _descriptor29, this);
122679
122657
 
122680
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attributes", _descriptor31, this);
122658
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attributes", _descriptor30, this);
122681
122659
 
122682
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor32, this);
122660
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor31, this);
122683
122661
 
122684
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "choices", _descriptor33, this);
122662
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "choices", _descriptor32, this);
122685
122663
 
122686
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "innerText", _descriptor34, this);
122664
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "innerText", _descriptor33, this);
122687
122665
 
122688
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations", _descriptor35, this);
122666
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadAggregations", _descriptor34, this);
122689
122667
 
122690
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode", _descriptor36, this);
122668
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadMode", _descriptor35, this);
122691
122669
 
122692
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorAndWarningCountRequired", _descriptor37, this);
122670
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorAndWarningCountRequired", _descriptor36, this);
122693
122671
 
122694
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadingThreshold", _descriptor38, this);
122672
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lazyLoadingThreshold", _descriptor37, this);
122695
122673
  }
122696
122674
 
122697
- }, (_descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "name", [_dec40], {
122675
+ }, (_descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "name", [_dec39], {
122698
122676
  configurable: true,
122699
122677
  enumerable: true,
122700
122678
  writable: true,
122701
122679
  initializer: null
122702
- }), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "description", [_dec41], {
122680
+ }), _descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "description", [_dec40], {
122703
122681
  configurable: true,
122704
122682
  enumerable: true,
122705
122683
  writable: true,
122706
122684
  initializer: null
122707
- }), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "optional", [_dec42], {
122685
+ }), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "optional", [_dec41], {
122708
122686
  configurable: true,
122709
122687
  enumerable: true,
122710
122688
  writable: true,
122711
122689
  initializer: null
122712
- }), _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "nillable", [_dec43], {
122690
+ }), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "nillable", [_dec42], {
122713
122691
  configurable: true,
122714
122692
  enumerable: true,
122715
122693
  writable: true,
122716
122694
  initializer: null
122717
- }), _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "multiple", [_dec44], {
122695
+ }), _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "multiple", [_dec43], {
122718
122696
  configurable: true,
122719
122697
  enumerable: true,
122720
122698
  writable: true,
122721
122699
  initializer: null
122722
- }), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "maxOccurs", [_dec45], {
122700
+ }), _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "maxOccurs", [_dec44], {
122723
122701
  configurable: true,
122724
122702
  enumerable: true,
122725
122703
  writable: true,
122726
122704
  initializer: null
122727
- }), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "attributes", [_dec46], {
122705
+ }), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "attributes", [_dec45], {
122728
122706
  configurable: true,
122729
122707
  enumerable: true,
122730
122708
  writable: true,
122731
122709
  initializer: null
122732
- }), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "children", [_dec47], {
122710
+ }), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "children", [_dec46], {
122733
122711
  configurable: true,
122734
122712
  enumerable: true,
122735
122713
  writable: true,
122736
122714
  initializer: null
122737
- }), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "choices", [_dec48], {
122715
+ }), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "choices", [_dec47], {
122738
122716
  configurable: true,
122739
122717
  enumerable: true,
122740
122718
  writable: true,
122741
122719
  initializer: null
122742
- }), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "innerText", [_dec49], {
122720
+ }), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "innerText", [_dec48], {
122743
122721
  configurable: true,
122744
122722
  enumerable: true,
122745
122723
  writable: true,
122746
122724
  initializer: null
122747
- }), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadAggregations", [_dec50], {
122725
+ }), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadAggregations", [_dec49], {
122748
122726
  configurable: true,
122749
122727
  enumerable: true,
122750
122728
  writable: true,
122751
122729
  initializer: null
122752
- }), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadMode", [_dec51], {
122730
+ }), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadMode", [_dec50], {
122753
122731
  configurable: true,
122754
122732
  enumerable: true,
122755
122733
  writable: true,
122756
122734
  initializer: null
122757
- }), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "errorAndWarningCountRequired", [_dec52], {
122735
+ }), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "errorAndWarningCountRequired", [_dec51], {
122758
122736
  configurable: true,
122759
122737
  enumerable: true,
122760
122738
  writable: true,
122761
122739
  initializer: null
122762
- }), _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadingThreshold", [_dec53], {
122740
+ }), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class44.prototype, "lazyLoadingThreshold", [_dec52], {
122763
122741
  configurable: true,
122764
122742
  enumerable: true,
122765
122743
  writable: true,
@@ -132091,7 +132069,7 @@ class NormalizationRulesGenerator {
132091
132069
  buildSugarFLangRules() {
132092
132070
  const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
132093
132071
  const builder = new _markupGenerator_FLangNormalizationRulesBuilder__WEBPACK_IMPORTED_MODULE_8__.FLangNormalizationRulesBuilder(this.controlCustomizationContext);
132094
- return converter.buildNormalizeRules(builder, this.formSchemaRng);
132072
+ return converter.buildNormalizeRules(builder);
132095
132073
  }
132096
132074
 
132097
132075
  *buildFormulaFLangRules() {
@@ -132279,35 +132257,15 @@ class NormalizationRulesGenerator {
132279
132257
  }
132280
132258
 
132281
132259
  compileSumExpression(expression, prefix, target, addPrecalculationRule) {
132282
- const args = this.getFlatArgumentExpressions(expression.arguments);
132283
- const conditionExpression = args.reduce((acc, curr) => {
132284
- const currExpr = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NotEqExpression(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
132285
- return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(acc, currExpr) : currExpr;
132286
- }, undefined);
132287
-
132288
- if (conditionExpression == undefined) {
132289
- const result = expression.arguments.reduce((acc, curr) => {
132290
- const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
132291
- return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
132292
- }, undefined);
132293
-
132294
- if (result == undefined) {
132295
- throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
132296
- }
132297
-
132298
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
132299
- }
132300
-
132301
- const trueResultExpression = expression.arguments.reduce((acc, curr) => {
132302
- const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), 0);
132260
+ const result = expression.arguments.reduce((acc, curr) => {
132261
+ const currExpr = this.castOperandToDecimalIfNeed(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
132303
132262
  return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
132304
132263
  }, undefined);
132305
132264
 
132306
- if (trueResultExpression == undefined) {
132265
+ if (result == undefined) {
132307
132266
  throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.InvalidProgramStateError();
132308
132267
  }
132309
132268
 
132310
- const result = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(conditionExpression, trueResultExpression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
132311
132269
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
132312
132270
  }
132313
132271
 
@@ -132377,26 +132335,12 @@ class NormalizationRulesGenerator {
132377
132335
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
132378
132336
  }
132379
132337
 
132380
- getFlatArgumentExpressions(expressions) {
132381
- return expressions.reduce((acc, curr) => {
132382
- if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaArgumentExpression) {
132383
- return acc.concat(curr);
132384
- }
132385
-
132386
- if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaSumExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaDivisionExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaMultiplyExpression) {
132387
- return acc.concat(this.getFlatArgumentExpressions(curr.arguments));
132388
- }
132389
-
132390
- return acc;
132391
- }, []);
132392
- }
132393
-
132394
132338
  castOperandToStringIfNeed(operandExpression) {
132395
132339
  return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression || operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression && operandExpression.getTargetType() == "string" ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "string");
132396
132340
  }
132397
132341
 
132398
- castOperandToDecimalIfNeed(operandExpression, defaultValue) {
132399
- return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "decimal", defaultValue != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(defaultValue) : undefined);
132342
+ castOperandToDecimalIfNeed(operandExpression) {
132343
+ return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "decimal");
132400
132344
  }
132401
132345
 
132402
132346
  *buildSugarValidationRules() {
@@ -137783,18 +137727,19 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
137783
137727
  return false;
137784
137728
  }
137785
137729
 
137786
- *doBuildNormalizeRules(builder, formSchemaRng) {
137730
+ *doBuildNormalizeRules(builder) {
137787
137731
  const node = this.getCurrentNodeAs(_PageNode__WEBPACK_IMPORTED_MODULE_14__.PageNode);
137788
- const element = formSchemaRng.getElementByPath(node.getFullPath());
137789
137732
 
137790
137733
  if (node.path == undefined) {
137791
137734
  return;
137792
137735
  }
137793
137736
 
137794
137737
  if (node.multiple) {
137795
- const isOptional = node.optional || (element === null || element === void 0 ? void 0 : element.isOptional());
137796
- yield* builder.childrenInitializer(node, isOptional !== null && isOptional !== void 0 ? isOptional : false);
137738
+ var _node$optional;
137739
+
137740
+ yield* builder.childrenInitializer(node, (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false);
137797
137741
  yield* builder.specialFieldsInitializer(node, {
137742
+ optional: node.optional,
137798
137743
  disabled: undefined
137799
137744
  });
137800
137745
  }
@@ -143769,6 +143714,7 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
143769
143714
 
143770
143715
  yield* builder.childrenInitializer(rowNode, (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : false, rowNode.defaultChildren);
143771
143716
  yield* builder.specialFieldsInitializer(rowNode, {
143717
+ optional: rowNode.optional,
143772
143718
  disabled: undefined
143773
143719
  });
143774
143720
  }
@@ -147085,20 +147031,6 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
147085
147031
  return _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode;
147086
147032
  }
147087
147033
 
147088
- *doBuildNormalizeRules(builder, formSchemaRng) {
147089
- const node = this.getCurrentNodeAs(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode);
147090
-
147091
- for (const row of node.rows) {
147092
- if (row instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableMultilineNode) {
147093
- var _ref;
147094
-
147095
- const element = formSchemaRng.getElementByPath(row.getFullPath());
147096
- const isOptional = (_ref = row.optional || (element === null || element === void 0 ? void 0 : element.isOptional())) !== null && _ref !== void 0 ? _ref : false;
147097
- yield* builder.childrenInitializer(row, isOptional);
147098
- }
147099
- }
147100
- }
147101
-
147102
147034
  *doTraverseChildren() {
147103
147035
  const node = this.getCurrentNodeAs(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableNode);
147104
147036
 
@@ -147206,9 +147138,9 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
147206
147138
 
147207
147139
  processMultilineNode(context, rowNode) {
147208
147140
  if (rowNode instanceof _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableMultilineNode) {
147209
- var _ref2, _rowNode$optional;
147141
+ var _ref, _rowNode$optional;
147210
147142
 
147211
- return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_ref2 = (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : context.isMultipleNodeOptionalFromScheme(rowNode.getFullPath())) !== null && _ref2 !== void 0 ? _ref2 : false, rowNode.defaultChildren)]]), rowNode.maxOccurs != undefined && /^\d+$/.test(rowNode.maxOccurs) && context.maxOccurs(rowNode.getFullPath(), rowNode.maxOccurs), context.addSpecialFieldsEntry(rowNode, {
147143
+ return context.mergeDataDeclaration(context.addPathDeclEntry(rowNode, [["children", context.initSequenceFactory.children((_ref = (_rowNode$optional = rowNode.optional) !== null && _rowNode$optional !== void 0 ? _rowNode$optional : context.isMultipleNodeOptionalFromScheme(rowNode.getFullPath())) !== null && _ref !== void 0 ? _ref : false, rowNode.defaultChildren)]]), rowNode.maxOccurs != undefined && /^\d+$/.test(rowNode.maxOccurs) && context.maxOccurs(rowNode.getFullPath(), rowNode.maxOccurs), context.addSpecialFieldsEntry(rowNode, {
147212
147144
  optional: rowNode.optional
147213
147145
  }), context.addPathSectionDeclarationEntry(rowNode), context.addVisibilityPathDeclEntryNew(rowNode), context.processChildrenDataDeclaration(rowNode.rows, rowNode2 => this.processMultilineRowNode(context, rowNode2)));
147214
147146
  }
@@ -147281,11 +147213,11 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
147281
147213
  const sideSize = (_node$side2 = node.side) !== null && _node$side2 !== void 0 ? _node$side2 : 0;
147282
147214
 
147283
147215
  if (this.isSimpleForm()) {
147284
- var _ref3, _node$deprecatedDiado;
147216
+ var _ref2, _node$deprecatedDiado;
147285
147217
 
147286
147218
  mb.prop(x => x.maxWidth).set(orientation === "landscape" ? maxWidth : undefined);
147287
147219
  mb.prop(x => x.sideSize).set(this.hasActionButton(node) && sideSize !== 0 ? sideSize + 1 : sideSize);
147288
- const width = (_ref3 = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref3 !== void 0 ? _ref3 : maxWidthSimpleForm;
147220
+ const width = (_ref2 = (_node$deprecatedDiado = node.deprecatedDiadocWidth) !== null && _node$deprecatedDiado !== void 0 ? _node$deprecatedDiado : node.width) !== null && _ref2 !== void 0 ? _ref2 : maxWidthSimpleForm;
147289
147221
  mb.prop(x => x.width).set(width);
147290
147222
  mb.prop(x => x.footerHeight).set(160);
147291
147223
  } else {
@@ -147574,10 +147506,10 @@ BindingPath: ${errorPath}`));
147574
147506
  if (this.isSimpleForm()) {
147575
147507
  mb.prop(x => x.buttonType).set(undefined);
147576
147508
  } else {
147577
- var _multiline$rowmenu, _ref4, _tableNode$removeButt;
147509
+ var _multiline$rowmenu, _ref3, _tableNode$removeButt;
147578
147510
 
147579
147511
  const rowMenu = (_multiline$rowmenu = multiline.rowmenu) !== null && _multiline$rowmenu !== void 0 ? _multiline$rowmenu : false;
147580
- const removebutton = (_ref4 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true;
147512
+ const removebutton = (_ref3 = (_tableNode$removeButt = tableNode.removeButton) !== null && _tableNode$removeButt !== void 0 ? _tableNode$removeButt : multiline.removebutton) !== null && _ref3 !== void 0 ? _ref3 : true;
147581
147513
  mb.prop(x => x.buttonType).set(rowMenu ? "RowMenu" : removebutton ? "RemoveRowButton" : undefined);
147582
147514
  }
147583
147515
 
@@ -147600,7 +147532,7 @@ BindingPath: ${errorPath}`));
147600
147532
  }
147601
147533
 
147602
147534
  getMultiline(context, node, multiline, start, end = Infinity) {
147603
- var _ref5, _node$removeButton, _multiline$rowmenu2, _ref6, _node$removeButton2, _context$popPathsCont2;
147535
+ var _ref4, _node$removeButton, _multiline$rowmenu2, _ref5, _node$removeButton2, _context$popPathsCont2;
147604
147536
 
147605
147537
  const overrideInfo = multiline.override ? context.controlCustomizationContext.getControlCustomizationInfo("multiline", multiline.override) : undefined;
147606
147538
  const mb = overrideInfo == undefined ? (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("MultiLine") : (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)(overrideInfo.dependencies, overrideInfo.controlName);
@@ -147614,7 +147546,7 @@ BindingPath: ${errorPath}`));
147614
147546
  mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_13__.getNewBindingPathExpression)(multiline));
147615
147547
  mb.prop(x => x.showRowBorder).set(multiline.showRowBorder);
147616
147548
  mb.prop(x => x.onRowCLick).set(context.generateHelperFunctionExpression(multiline, "onRowClick", multiline.onRowClick));
147617
- const hasRemoveButton = ((_ref5 = (_node$removeButton = node.removeButton) !== null && _node$removeButton !== void 0 ? _node$removeButton : multiline.removebutton) !== null && _ref5 !== void 0 ? _ref5 : true) || ((_multiline$rowmenu2 = multiline.rowmenu) !== null && _multiline$rowmenu2 !== void 0 ? _multiline$rowmenu2 : false);
147549
+ const hasRemoveButton = ((_ref4 = (_node$removeButton = node.removeButton) !== null && _node$removeButton !== void 0 ? _node$removeButton : multiline.removebutton) !== null && _ref4 !== void 0 ? _ref4 : true) || ((_multiline$rowmenu2 = multiline.rowmenu) !== null && _multiline$rowmenu2 !== void 0 ? _multiline$rowmenu2 : false);
147618
147550
  const needAddButton = multiline.addbutton !== "false";
147619
147551
 
147620
147552
  if (this.isSimpleForm()) {
@@ -147627,7 +147559,7 @@ BindingPath: ${errorPath}`));
147627
147559
  mb.prop(x => x.removeButtonPosition).set(undefined);
147628
147560
  }
147629
147561
 
147630
- mb.prop(x => x.disableScroll).set(needAddButton || ((_ref6 = (_node$removeButton2 = node.removeButton) !== null && _node$removeButton2 !== void 0 ? _node$removeButton2 : multiline.removebutton) !== null && _ref6 !== void 0 ? _ref6 : true) ? undefined : true);
147562
+ mb.prop(x => x.disableScroll).set(needAddButton || ((_ref5 = (_node$removeButton2 = node.removeButton) !== null && _node$removeButton2 !== void 0 ? _node$removeButton2 : multiline.removebutton) !== null && _ref5 !== void 0 ? _ref5 : true) ? undefined : true);
147631
147563
  context.pushPathsContext();
147632
147564
 
147633
147565
  if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.arrayHasLength)(multiline.rows, 1)) {
@@ -147653,9 +147585,9 @@ BindingPath: ${errorPath}`));
147653
147585
  hasActionButton(node) {
147654
147586
  const multilines = node.rows.map(child => (0,_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.isMultilineNode)(child) ? child : child.columns.find(_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.isMultilineNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined);
147655
147587
  return multilines.some(multiline => {
147656
- var _ref7, _node$removeButton3;
147588
+ var _ref6, _node$removeButton3;
147657
147589
 
147658
- return ((_ref7 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref7 !== void 0 ? _ref7 : true) || multiline.rowmenu;
147590
+ return ((_ref6 = (_node$removeButton3 = node.removeButton) !== null && _node$removeButton3 !== void 0 ? _node$removeButton3 : multiline.removebutton) !== null && _ref6 !== void 0 ? _ref6 : true) || multiline.rowmenu;
147659
147591
  });
147660
147592
  }
147661
147593
 
@@ -147906,13 +147838,13 @@ class Table2MultirowConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
147906
147838
  return markupBuilder.buildConverterResult();
147907
147839
  }
147908
147840
 
147909
- *doBuildNormalizeRules(builder, formSchemaRng) {
147910
- var _ref2;
147841
+ *doBuildNormalizeRules(builder) {
147842
+ var _node$optional2;
147911
147843
 
147912
147844
  const node = this.getCurrentNodeAs(_Table2Node__WEBPACK_IMPORTED_MODULE_3__.Table2MultirowNode);
147913
- const element = formSchemaRng.getElementByPath(node.getFullPath());
147914
- yield* builder.childrenInitializer(node, (_ref2 = node.optional || (element === null || element === void 0 ? void 0 : element.isOptional())) !== null && _ref2 !== void 0 ? _ref2 : false);
147845
+ yield* builder.childrenInitializer(node, (_node$optional2 = node.optional) !== null && _node$optional2 !== void 0 ? _node$optional2 : false);
147915
147846
  yield* builder.specialFieldsInitializer(node, {
147847
+ optional: node.optional,
147916
147848
  disabled: undefined
147917
147849
  });
147918
147850
  }
@@ -148727,12 +148659,13 @@ class TabsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
148727
148659
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref !== void 0 ? _ref : false)]]), context.maxOccurs(node.getFullPath(), node.maxOccurs), context.addPathSectionDeclarationEntry(node));
148728
148660
  }
148729
148661
 
148730
- *doBuildNormalizeRules(builder, formSchemaRng) {
148662
+ *doBuildNormalizeRules(builder) {
148663
+ var _node$optional2;
148664
+
148731
148665
  const node = this.getCurrentNodeAs(_TabsNode__WEBPACK_IMPORTED_MODULE_4__.TabsNode);
148732
- const element = formSchemaRng.getElementByPath(node.getFullPath());
148733
- const isOptional = node.optional || (element === null || element === void 0 ? void 0 : element.isOptional());
148734
- yield* builder.childrenInitializer(node, isOptional !== null && isOptional !== void 0 ? isOptional : false);
148666
+ yield* builder.childrenInitializer(node, (_node$optional2 = node.optional) !== null && _node$optional2 !== void 0 ? _node$optional2 : false);
148735
148667
  yield* builder.specialFieldsInitializer(node, {
148668
+ optional: node.optional,
148736
148669
  disabled: undefined
148737
148670
  });
148738
148671
  }
@@ -150061,6 +149994,7 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
150061
149994
  doBuildNormalizeRules(builder) {
150062
149995
  const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
150063
149996
  return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
149997
+ optional: node.dataBinding.optional,
150064
149998
  disabled: false
150065
149999
  })];
150066
150000
  }
@@ -150292,6 +150226,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
150292
150226
  doBuildNormalizeRules(builder) {
150293
150227
  const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.ComboBoxNode);
150294
150228
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
150229
+ optional: node.dataBinding.optional,
150295
150230
  disabled: node.disabled
150296
150231
  })];
150297
150232
  }
@@ -150803,6 +150738,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
150803
150738
  doBuildNormalizeRules(builder) {
150804
150739
  const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
150805
150740
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
150741
+ optional: node.dataBinding.optional,
150806
150742
  disabled: node.disabled
150807
150743
  })];
150808
150744
  }
@@ -152686,6 +152622,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
152686
152622
  doBuildNormalizeRules(builder) {
152687
152623
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_7__.InputNode);
152688
152624
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
152625
+ optional: node.dataBinding.optional,
152689
152626
  disabled: node.disabled
152690
152627
  })];
152691
152628
  }
@@ -153764,25 +153701,27 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
153764
153701
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
153765
153702
  }
153766
153703
 
153767
- *doBuildNormalizeRules(builder, formSchemaRng) {
153704
+ *doBuildNormalizeRules(builder) {
153768
153705
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
153769
- const element = formSchemaRng.getElementByPath(node.getFullPath());
153770
153706
  yield builder.valueInitializer(node, node.dataBinding, false);
153771
- const isOptional = node.dataBinding.optional || (element === null || element === void 0 ? void 0 : element.isOptional());
153772
- yield* builder.specialFieldsInitializer(node, {});
153707
+ yield* builder.specialFieldsInitializer(node, {
153708
+ optional: node.dataBinding.optional
153709
+ });
153773
153710
 
153774
153711
  if (node.multiple) {
153775
- yield* builder.childrenInitializerForPicklist(node, isOptional !== null && isOptional !== void 0 ? isOptional : false);
153712
+ var _node$dataBinding$opt;
153713
+
153714
+ yield* builder.childrenInitializerForPicklist(node, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false);
153776
153715
  }
153777
153716
  }
153778
153717
 
153779
153718
  doBuildDataDeclaration(context) {
153780
- var _node$dataBinding$opt;
153719
+ var _node$dataBinding$opt2;
153781
153720
 
153782
153721
  const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
153783
153722
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
153784
153723
  optional: node.dataBinding.optional
153785
- }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false, node.dataBinding.requisite));
153724
+ }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt2 = node.dataBinding.optional) !== null && _node$dataBinding$opt2 !== void 0 ? _node$dataBinding$opt2 : false, node.dataBinding.requisite));
153786
153725
  }
153787
153726
 
153788
153727
  get nodePaths() {
@@ -154222,7 +154161,9 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
154222
154161
 
154223
154162
  doBuildNormalizeRules(builder) {
154224
154163
  const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_5__.RadioGroupNode);
154225
- return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {})];
154164
+ return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
154165
+ optional: node.dataBinding.optional
154166
+ })];
154226
154167
  }
154227
154168
 
154228
154169
  doBuildDataDeclaration(context) {
@@ -155008,7 +154949,9 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
155008
154949
 
155009
154950
  doBuildNormalizeRules(builder) {
155010
154951
  const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
155011
- return [builder.valueInitializer(node, node.dataBinding, undefined), ...builder.specialFieldsInitializer(node, {})];
154952
+ return [builder.valueInitializer(node, node.dataBinding, undefined), ...builder.specialFieldsInitializer(node, {
154953
+ optional: node.dataBinding.optional
154954
+ })];
155012
154955
  }
155013
154956
 
155014
154957
  buildChildrenDataDeclaration(context) {
@@ -159058,8 +159001,8 @@ class SugarNodeConverterBase {
159058
159001
  return this.node.sourceXmlNode;
159059
159002
  }
159060
159003
 
159061
- *buildNormalizeRules(builder, formSchemaRng) {
159062
- yield* this.doBuildNormalizeRules(builder, formSchemaRng);
159004
+ *buildNormalizeRules(builder) {
159005
+ yield* this.doBuildNormalizeRules(builder);
159063
159006
 
159064
159007
  for (const child of this.traverseChildren()) {
159065
159008
  const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_3__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.getNodeClass)(child));
@@ -159076,12 +159019,12 @@ class SugarNodeConverterBase {
159076
159019
  }
159077
159020
  } else {
159078
159021
  const converter = new controlConverterClass(child);
159079
- yield* converter.buildNormalizeRules(builder, formSchemaRng);
159022
+ yield* converter.buildNormalizeRules(builder);
159080
159023
  }
159081
159024
  }
159082
159025
  }
159083
159026
 
159084
- doBuildNormalizeRules(builder, formSchemaRng) {
159027
+ doBuildNormalizeRules(builder) {
159085
159028
  return [];
159086
159029
  }
159087
159030
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.269.0-normalization-sum-fix.0",
3
+ "version": "4.269.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,