@kontur.candy/generator 5.86.0-nds-8941.1 → 5.86.0-nds-8941.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 +436 -472
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50222,6 +50222,7 @@ __webpack_require__.r(__webpack_exports__);
50222
50222
  /* harmony export */ hashSetKCLangFunction: () => (/* binding */ hashSetKCLangFunction),
50223
50223
  /* harmony export */ instanceCountKCLangFunction: () => (/* binding */ instanceCountKCLangFunction),
50224
50224
  /* harmony export */ isDateInMonthKCLangFunction: () => (/* binding */ isDateInMonthKCLangFunction),
50225
+ /* harmony export */ isEqualToAutoCalculatedFunction: () => (/* binding */ isEqualToAutoCalculatedFunction),
50225
50226
  /* harmony export */ isInnKCLangFunction: () => (/* binding */ isInnKCLangFunction),
50226
50227
  /* harmony export */ isOgrnKCLangFunction: () => (/* binding */ isOgrnKCLangFunction),
50227
50228
  /* harmony export */ isRegNumSfrKCLangFunction: () => (/* binding */ isRegNumSfrKCLangFunction),
@@ -50240,6 +50241,8 @@ __webpack_require__.r(__webpack_exports__);
50240
50241
  /* harmony export */ sumOfDayWeightsKCLangFunction: () => (/* binding */ sumOfDayWeightsKCLangFunction),
50241
50242
  /* harmony export */ xabsKCLangFunction: () => (/* binding */ xabsKCLangFunction)
50242
50243
  /* harmony export */ });
50244
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
50245
+
50243
50246
  class ArgumentValidationError {
50244
50247
  constructor(validationMessage) {
50245
50248
  this.validationMessage = void 0;
@@ -50617,13 +50620,28 @@ const instanceCountKCLangFunction = params => {
50617
50620
  }
50618
50621
  throw new Error("Invalid parameters!");
50619
50622
  };
50620
- const sumKCLangFunction = params => {
50623
+ const isEqualToAutoCalculatedFunction = params => {
50621
50624
  var _params$26;
50622
50625
  const errors = Array.from(validateParams(params, 1));
50623
50626
  if (errors.length > 0) {
50624
50627
  return new FunctionValidationErrorCollection(errors);
50625
50628
  }
50626
50629
  const argumentExpr = (_params$26 = params[0]) === null || _params$26 === void 0 ? void 0 : _params$26.value;
50630
+ const selectPath = (argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument" ? argumentExpr.select : (argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "cast" && argumentExpr.expression.type == "argument" ? argumentExpr.expression.select : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("isEqualToAutoCalculated argument must be plain path");
50631
+ const targetType = (argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "cast" ? argumentExpr.targetType : "decimal";
50632
+ return {
50633
+ type: "isEqualToAutoCalculated",
50634
+ select: selectPath,
50635
+ targetType: targetType
50636
+ };
50637
+ };
50638
+ const sumKCLangFunction = params => {
50639
+ var _params$27;
50640
+ const errors = Array.from(validateParams(params, 1));
50641
+ if (errors.length > 0) {
50642
+ return new FunctionValidationErrorCollection(errors);
50643
+ }
50644
+ const argumentExpr = (_params$27 = params[0]) === null || _params$27 === void 0 ? void 0 : _params$27.value;
50627
50645
  if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
50628
50646
  const param = argumentExpr.select;
50629
50647
  if (param == undefined) {
@@ -50647,14 +50665,14 @@ const sumKCLangFunction = params => {
50647
50665
  throw new Error("Invalid parameters!");
50648
50666
  };
50649
50667
  const substringKCLangFunction = params => {
50650
- var _params$27, _params$28, _params$29;
50668
+ var _params$28, _params$29, _params$30;
50651
50669
  const errors = Array.from(validateParams(params, 2, 1));
50652
50670
  if (errors.length > 0) {
50653
50671
  return new FunctionValidationErrorCollection(errors);
50654
50672
  }
50655
- const exprParam = (_params$27 = params[0]) === null || _params$27 === void 0 ? void 0 : _params$27.value;
50656
- const startParam = (_params$28 = params[1]) === null || _params$28 === void 0 ? void 0 : _params$28.value;
50657
- const lengthParam = (_params$29 = params[2]) === null || _params$29 === void 0 ? void 0 : _params$29.value;
50673
+ const exprParam = (_params$28 = params[0]) === null || _params$28 === void 0 ? void 0 : _params$28.value;
50674
+ const startParam = (_params$29 = params[1]) === null || _params$29 === void 0 ? void 0 : _params$29.value;
50675
+ const lengthParam = (_params$30 = params[2]) === null || _params$30 === void 0 ? void 0 : _params$30.value;
50658
50676
  if (exprParam == undefined) {
50659
50677
  throw new Error("Unexpected error!");
50660
50678
  }
@@ -50672,14 +50690,14 @@ const substringKCLangFunction = params => {
50672
50690
  };
50673
50691
  };
50674
50692
  const groupSumKCLangFunction = params => {
50675
- var _params$30, _params$31, _params$32;
50693
+ var _params$31, _params$32, _params$33;
50676
50694
  const errors = Array.from(validateParams(params, 3));
50677
50695
  if (errors.length > 0) {
50678
50696
  return new FunctionValidationErrorCollection(errors);
50679
50697
  }
50680
- const targetKeysParam = (_params$30 = params[0]) === null || _params$30 === void 0 ? void 0 : _params$30.value;
50681
- const sourceKeyPathParam = (_params$31 = params[1]) === null || _params$31 === void 0 ? void 0 : _params$31.value;
50682
- const sourceValuePathParam = (_params$32 = params[2]) === null || _params$32 === void 0 ? void 0 : _params$32.value;
50698
+ const targetKeysParam = (_params$31 = params[0]) === null || _params$31 === void 0 ? void 0 : _params$31.value;
50699
+ const sourceKeyPathParam = (_params$32 = params[1]) === null || _params$32 === void 0 ? void 0 : _params$32.value;
50700
+ const sourceValuePathParam = (_params$33 = params[2]) === null || _params$33 === void 0 ? void 0 : _params$33.value;
50683
50701
  if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || (sourceValuePathParam === null || sourceValuePathParam === void 0 ? void 0 : sourceValuePathParam.type) !== "argument") {
50684
50702
  const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeys, sourceKeyPath, sourceValuePath");
50685
50703
  return new FunctionValidationErrorCollection([argumentsValidationError]);
@@ -50696,13 +50714,13 @@ const groupSumKCLangFunction = params => {
50696
50714
  };
50697
50715
  };
50698
50716
  const groupCountKCLangFunction = params => {
50699
- var _params$33, _params$34;
50717
+ var _params$34, _params$35;
50700
50718
  const errors = Array.from(validateParams(params, 2));
50701
50719
  if (errors.length > 0) {
50702
50720
  return new FunctionValidationErrorCollection(errors);
50703
50721
  }
50704
- const targetKeysParam = (_params$33 = params[0]) === null || _params$33 === void 0 ? void 0 : _params$33.value;
50705
- const sourceKeyPathParam = (_params$34 = params[1]) === null || _params$34 === void 0 ? void 0 : _params$34.value;
50722
+ const targetKeysParam = (_params$34 = params[0]) === null || _params$34 === void 0 ? void 0 : _params$34.value;
50723
+ const sourceKeyPathParam = (_params$35 = params[1]) === null || _params$35 === void 0 ? void 0 : _params$35.value;
50706
50724
  if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
50707
50725
  const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
50708
50726
  return new FunctionValidationErrorCollection([argumentsValidationError]);
@@ -50746,12 +50764,12 @@ const dateNowKCLangFunction = params => {
50746
50764
  };
50747
50765
  };
50748
50766
  const getDaysInMonthKCLangFunction = params => {
50749
- var _params$35;
50767
+ var _params$36;
50750
50768
  const errors = Array.from(validateParams(params, 1));
50751
50769
  if (errors.length > 0) {
50752
50770
  return new FunctionValidationErrorCollection(errors);
50753
50771
  }
50754
- const param = (_params$35 = params[0]) === null || _params$35 === void 0 ? void 0 : _params$35.value;
50772
+ const param = (_params$36 = params[0]) === null || _params$36 === void 0 ? void 0 : _params$36.value;
50755
50773
  if (param == undefined) {
50756
50774
  throw new Error("Unexpected error!");
50757
50775
  }
@@ -50761,12 +50779,12 @@ const getDaysInMonthKCLangFunction = params => {
50761
50779
  };
50762
50780
  };
50763
50781
  const getDayKCLangFunction = params => {
50764
- var _params$36;
50782
+ var _params$37;
50765
50783
  const errors = Array.from(validateParams(params, 1));
50766
50784
  if (errors.length > 0) {
50767
50785
  return new FunctionValidationErrorCollection(errors);
50768
50786
  }
50769
- const param = (_params$36 = params[0]) === null || _params$36 === void 0 ? void 0 : _params$36.value;
50787
+ const param = (_params$37 = params[0]) === null || _params$37 === void 0 ? void 0 : _params$37.value;
50770
50788
  if (param == undefined) {
50771
50789
  throw new Error("Unexpected error!");
50772
50790
  }
@@ -50776,12 +50794,12 @@ const getDayKCLangFunction = params => {
50776
50794
  };
50777
50795
  };
50778
50796
  const getMonthKCLangFunction = params => {
50779
- var _params$37;
50797
+ var _params$38;
50780
50798
  const errors = Array.from(validateParams(params, 1));
50781
50799
  if (errors.length > 0) {
50782
50800
  return new FunctionValidationErrorCollection(errors);
50783
50801
  }
50784
- const param = (_params$37 = params[0]) === null || _params$37 === void 0 ? void 0 : _params$37.value;
50802
+ const param = (_params$38 = params[0]) === null || _params$38 === void 0 ? void 0 : _params$38.value;
50785
50803
  if (param == undefined) {
50786
50804
  throw new Error("Unexpected error!");
50787
50805
  }
@@ -50791,12 +50809,12 @@ const getMonthKCLangFunction = params => {
50791
50809
  };
50792
50810
  };
50793
50811
  const getYearKCLangFunction = params => {
50794
- var _params$38;
50812
+ var _params$39;
50795
50813
  const errors = Array.from(validateParams(params, 1));
50796
50814
  if (errors.length > 0) {
50797
50815
  return new FunctionValidationErrorCollection(errors);
50798
50816
  }
50799
- const param = (_params$38 = params[0]) === null || _params$38 === void 0 ? void 0 : _params$38.value;
50817
+ const param = (_params$39 = params[0]) === null || _params$39 === void 0 ? void 0 : _params$39.value;
50800
50818
  if (param == undefined) {
50801
50819
  throw new Error("Unexpected error!");
50802
50820
  }
@@ -50806,12 +50824,12 @@ const getYearKCLangFunction = params => {
50806
50824
  };
50807
50825
  };
50808
50826
  const isDateInMonthKCLangFunction = params => {
50809
- var _params$39;
50827
+ var _params$40;
50810
50828
  const errors = Array.from(validateParams(params, 1));
50811
50829
  if (errors.length > 0) {
50812
50830
  return new FunctionValidationErrorCollection(errors);
50813
50831
  }
50814
- const param = (_params$39 = params[0]) === null || _params$39 === void 0 ? void 0 : _params$39.value;
50832
+ const param = (_params$40 = params[0]) === null || _params$40 === void 0 ? void 0 : _params$40.value;
50815
50833
  if (param == undefined) {
50816
50834
  throw new Error("Unexpected error!");
50817
50835
  }
@@ -50851,13 +50869,13 @@ const sumOfDayWeightsKCLangFunction = params => {
50851
50869
  };
50852
50870
  };
50853
50871
  const addDaysKCLangFunction = params => {
50854
- var _params$40, _params$41;
50872
+ var _params$41, _params$42;
50855
50873
  const errors = Array.from(validateParams(params, 2));
50856
50874
  if (errors.length > 0) {
50857
50875
  return new FunctionValidationErrorCollection(errors);
50858
50876
  }
50859
- const exprParam = (_params$40 = params[0]) === null || _params$40 === void 0 ? void 0 : _params$40.value;
50860
- const amountParam = (_params$41 = params[1]) === null || _params$41 === void 0 ? void 0 : _params$41.value;
50877
+ const exprParam = (_params$41 = params[0]) === null || _params$41 === void 0 ? void 0 : _params$41.value;
50878
+ const amountParam = (_params$42 = params[1]) === null || _params$42 === void 0 ? void 0 : _params$42.value;
50861
50879
  if (exprParam == undefined) {
50862
50880
  throw new Error("Expected expression for addDays().");
50863
50881
  }
@@ -50873,13 +50891,13 @@ const addDaysKCLangFunction = params => {
50873
50891
  };
50874
50892
  };
50875
50893
  const addMonthsKCLangFunction = params => {
50876
- var _params$42, _params$43;
50894
+ var _params$43, _params$44;
50877
50895
  const errors = Array.from(validateParams(params, 2));
50878
50896
  if (errors.length > 0) {
50879
50897
  return new FunctionValidationErrorCollection(errors);
50880
50898
  }
50881
- const exprParam = (_params$42 = params[0]) === null || _params$42 === void 0 ? void 0 : _params$42.value;
50882
- const amountParam = (_params$43 = params[1]) === null || _params$43 === void 0 ? void 0 : _params$43.value;
50899
+ const exprParam = (_params$43 = params[0]) === null || _params$43 === void 0 ? void 0 : _params$43.value;
50900
+ const amountParam = (_params$44 = params[1]) === null || _params$44 === void 0 ? void 0 : _params$44.value;
50883
50901
  if (exprParam == undefined) {
50884
50902
  throw new Error("Expected expression for addMonths().");
50885
50903
  }
@@ -50895,13 +50913,13 @@ const addMonthsKCLangFunction = params => {
50895
50913
  };
50896
50914
  };
50897
50915
  const addYearsKCLangFunction = params => {
50898
- var _params$44, _params$45;
50916
+ var _params$45, _params$46;
50899
50917
  const errors = Array.from(validateParams(params, 2));
50900
50918
  if (errors.length > 0) {
50901
50919
  return new FunctionValidationErrorCollection(errors);
50902
50920
  }
50903
- const exprParam = (_params$44 = params[0]) === null || _params$44 === void 0 ? void 0 : _params$44.value;
50904
- const amountParam = (_params$45 = params[1]) === null || _params$45 === void 0 ? void 0 : _params$45.value;
50921
+ const exprParam = (_params$45 = params[0]) === null || _params$45 === void 0 ? void 0 : _params$45.value;
50922
+ const amountParam = (_params$46 = params[1]) === null || _params$46 === void 0 ? void 0 : _params$46.value;
50905
50923
  if (exprParam == undefined) {
50906
50924
  throw new Error("Expected expression for addYears().");
50907
50925
  }
@@ -50917,13 +50935,13 @@ const addYearsKCLangFunction = params => {
50917
50935
  };
50918
50936
  };
50919
50937
  const dateToStringKCLangFunction = params => {
50920
- var _params$46, _params$47;
50938
+ var _params$47, _params$48;
50921
50939
  const errors = Array.from(validateParams(params, 1, 2));
50922
50940
  if (errors.length > 0) {
50923
50941
  return new FunctionValidationErrorCollection(errors);
50924
50942
  }
50925
- const exprParam = (_params$46 = params[0]) === null || _params$46 === void 0 ? void 0 : _params$46.value;
50926
- const formatParam = (_params$47 = params[1]) === null || _params$47 === void 0 ? void 0 : _params$47.value;
50943
+ const exprParam = (_params$47 = params[0]) === null || _params$47 === void 0 ? void 0 : _params$47.value;
50944
+ const formatParam = (_params$48 = params[1]) === null || _params$48 === void 0 ? void 0 : _params$48.value;
50927
50945
  if (exprParam == undefined) {
50928
50946
  throw new Error("Expected expression for dateToString().");
50929
50947
  }
@@ -50938,12 +50956,12 @@ const dateToStringKCLangFunction = params => {
50938
50956
  };
50939
50957
  };
50940
50958
  const dateTimeKCLangFunction = params => {
50941
- var _params$48;
50959
+ var _params$49;
50942
50960
  const errors = Array.from(validateParams(params, 1));
50943
50961
  if (errors.length > 0) {
50944
50962
  return new FunctionValidationErrorCollection(errors);
50945
50963
  }
50946
- const param = (_params$48 = params[0]) === null || _params$48 === void 0 ? void 0 : _params$48.value;
50964
+ const param = (_params$49 = params[0]) === null || _params$49 === void 0 ? void 0 : _params$49.value;
50947
50965
  if (param == undefined) {
50948
50966
  throw new Error("Unexpected error!");
50949
50967
  }
@@ -50953,12 +50971,12 @@ const dateTimeKCLangFunction = params => {
50953
50971
  };
50954
50972
  };
50955
50973
  const hasAutoFlagKCLangFunction = params => {
50956
- var _params$49;
50974
+ var _params$50;
50957
50975
  const errors = Array.from(validateParams(params, 1));
50958
50976
  if (errors.length > 0) {
50959
50977
  return new FunctionValidationErrorCollection(errors);
50960
50978
  }
50961
- const param = (_params$49 = params[0]) === null || _params$49 === void 0 ? void 0 : _params$49.value;
50979
+ const param = (_params$50 = params[0]) === null || _params$50 === void 0 ? void 0 : _params$50.value;
50962
50980
  if (param == undefined) {
50963
50981
  throw new Error("Unexpected error!");
50964
50982
  }
@@ -50968,13 +50986,13 @@ const hasAutoFlagKCLangFunction = params => {
50968
50986
  };
50969
50987
  };
50970
50988
  const makeDictKCLangFunction = params => {
50971
- var _params$50, _params$51;
50989
+ var _params$51, _params$52;
50972
50990
  const errors = Array.from(validateParams(params, 2));
50973
50991
  if (errors.length > 0) {
50974
50992
  return new FunctionValidationErrorCollection(errors);
50975
50993
  }
50976
- const sourceKeyPathParam = (_params$50 = params[0]) === null || _params$50 === void 0 ? void 0 : _params$50.value;
50977
- const sourceValuePathParam = (_params$51 = params[1]) === null || _params$51 === void 0 ? void 0 : _params$51.value;
50994
+ const sourceKeyPathParam = (_params$51 = params[0]) === null || _params$51 === void 0 ? void 0 : _params$51.value;
50995
+ const sourceValuePathParam = (_params$52 = params[1]) === null || _params$52 === void 0 ? void 0 : _params$52.value;
50978
50996
  if ((sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || sourceValuePathParam == undefined) {
50979
50997
  const argumentsValidationError = new ArgumentValidationError("Invalid argument sourceKeyPath");
50980
50998
  return new FunctionValidationErrorCollection([argumentsValidationError]);
@@ -50986,13 +51004,13 @@ const makeDictKCLangFunction = params => {
50986
51004
  };
50987
51005
  };
50988
51006
  const getSumByKeysKCLangFunction = params => {
50989
- var _params$52, _params$53;
51007
+ var _params$53, _params$54;
50990
51008
  const errors = Array.from(validateParams(params, 2));
50991
51009
  if (errors.length > 0) {
50992
51010
  return new FunctionValidationErrorCollection(errors);
50993
51011
  }
50994
- const dictPathParam = (_params$52 = params[0]) === null || _params$52 === void 0 ? void 0 : _params$52.value;
50995
- const targetKeysParam = (_params$53 = params[1]) === null || _params$53 === void 0 ? void 0 : _params$53.value;
51012
+ const dictPathParam = (_params$53 = params[0]) === null || _params$53 === void 0 ? void 0 : _params$53.value;
51013
+ const targetKeysParam = (_params$54 = params[1]) === null || _params$54 === void 0 ? void 0 : _params$54.value;
50996
51014
  if (targetKeysParam == undefined || (dictPathParam === null || dictPathParam === void 0 ? void 0 : dictPathParam.type) !== "argument") {
50997
51015
  const argumentsValidationError = new ArgumentValidationError("Invalid arguments dictPathParam, targetKeysParam");
50998
51016
  return new FunctionValidationErrorCollection([argumentsValidationError]);
@@ -51008,12 +51026,12 @@ const getSumByKeysKCLangFunction = params => {
51008
51026
  };
51009
51027
  };
51010
51028
  const joinKCLangFunction = params => {
51011
- var _params$54;
51029
+ var _params$55;
51012
51030
  const errors = Array.from(validateParams(params, 1));
51013
51031
  if (errors.length > 0) {
51014
51032
  return new FunctionValidationErrorCollection(errors);
51015
51033
  }
51016
- const arrayParam = (_params$54 = params[0]) === null || _params$54 === void 0 ? void 0 : _params$54.value;
51034
+ const arrayParam = (_params$55 = params[0]) === null || _params$55 === void 0 ? void 0 : _params$55.value;
51017
51035
  if (arrayParam == undefined) {
51018
51036
  const argumentsValidationError = new ArgumentValidationError("Invalid arguments arrayParam");
51019
51037
  return new FunctionValidationErrorCollection([argumentsValidationError]);
@@ -51099,7 +51117,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
51099
51117
  hasAutoFlag: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.hasAutoFlagKCLangFunction],
51100
51118
  makeDict: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.makeDictKCLangFunction],
51101
51119
  getSumByKeys: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getSumByKeysKCLangFunction],
51102
- join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction]
51120
+ join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction],
51121
+ isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
51103
51122
  });
51104
51123
  class KCLangAntlrParser {
51105
51124
  static parse(code) {
@@ -59844,6 +59863,32 @@ class GetPicklistValuesFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODU
59844
59863
 
59845
59864
  /***/ }),
59846
59865
 
59866
+ /***/ "./Generator/src/common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall.ts":
59867
+ /*!**********************************************************************************************!*\
59868
+ !*** ./Generator/src/common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall.ts ***!
59869
+ \**********************************************************************************************/
59870
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
59871
+
59872
+ "use strict";
59873
+ __webpack_require__.r(__webpack_exports__);
59874
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
59875
+ /* harmony export */ IsEqualToAutoCalculatedFunctionCall: () => (/* binding */ IsEqualToAutoCalculatedFunctionCall)
59876
+ /* harmony export */ });
59877
+ /* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
59878
+ /* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
59879
+
59880
+
59881
+ class IsEqualToAutoCalculatedFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
59882
+ constructor(expr) {
59883
+ super("isEqualToAutoCalculated", [expr]);
59884
+ }
59885
+ getType() {
59886
+ return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.BoolType.default;
59887
+ }
59888
+ }
59889
+
59890
+ /***/ }),
59891
+
59847
59892
  /***/ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts":
59848
59893
  /*!***************************************************************************!*\
59849
59894
  !*** ./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts ***!
@@ -60820,6 +60865,9 @@ function traverseKCLangExpression(node, visitor) {
60820
60865
  case "instanceCount":
60821
60866
  visitor.visitInstanceCountKCLangNode(node);
60822
60867
  break;
60868
+ case "isEqualToAutoCalculated":
60869
+ visitor.visitIsEqualToAutoCalculatedKCLangNode(node);
60870
+ break;
60823
60871
  case "or":
60824
60872
  for (const expression of node.expressions) {
60825
60873
  traverseKCLangExpression(expression, visitor);
@@ -61033,6 +61081,9 @@ class DefaultKCLangExpressionVisitor {
61033
61081
  visitInstanceCountKCLangNode(node) {
61034
61082
  // default empty implementation
61035
61083
  }
61084
+ visitIsEqualToAutoCalculatedKCLangNode(node) {
61085
+ // default empty implementation
61086
+ }
61036
61087
  visitSubstringKCLangNode(node) {
61037
61088
  // default empty implementation
61038
61089
  }
@@ -61266,6 +61317,8 @@ const getGenerateJsExpressionFunc = options => {
61266
61317
  return `${countFnName}("${expression.select}")`;
61267
61318
  case "instanceCount":
61268
61319
  return `${countFnName}("${expression.select}")`;
61320
+ case "isEqualToAutoCalculated":
61321
+ return `isEqualToAutoCalculated("${expression.select}")`;
61269
61322
  case "multiply":
61270
61323
  case "division":
61271
61324
  case "noteq":
@@ -61631,7 +61684,11 @@ function generateKCXmlExpression(expression, prefixPath = "") {
61631
61684
  case "newline":
61632
61685
  return `<m:newline />`;
61633
61686
  case "regexMatch":
61634
- return [`<m:regexMatch pattern="${escapeHtmlCharacters(expression.pattern)}">`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:regexMatch>`].join("\n");
61687
+ {
61688
+ const escapedPattern = escapeHtmlCharacters(expression.pattern);
61689
+ const pattern = escapedPattern.match(/[\^\$]/g) != undefined ? escapedPattern : `^(${escapedPattern})$`;
61690
+ return [`<m:regexMatch pattern="${pattern}">`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:regexMatch>`].join("\n");
61691
+ }
61635
61692
  case "choose":
61636
61693
  return [`<m:choose>`, ` <m:if>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.if, prefixPath), 2), ` </m:if>`, ` <m:then>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.then, prefixPath), 2), ` </m:then>`, ` <m:else>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.else, prefixPath), 2), ` </m:else>`, `</m:choose>`].join("\n");
61637
61694
  break;
@@ -61649,6 +61706,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
61649
61706
  return `<m:count select="${printPath(expression.select)}" />`;
61650
61707
  case "instanceCount":
61651
61708
  return `<m:instanceCount select="${printPath(expression.select)}" />`;
61709
+ case "isEqualToAutoCalculated":
61710
+ return `<m:isEqualToAutoCalculated select="${printPath(expression.select)}" type="${expression.targetType}" />`;
61652
61711
  case "join":
61653
61712
  return [`<m:join>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.array, prefixPath), 2), `</m:join>`].join("\n");
61654
61713
  case "property":
@@ -61788,6 +61847,11 @@ function guessConditionTarget(condition) {
61788
61847
  result = node.select;
61789
61848
  }
61790
61849
  }
61850
+ visitIsEqualToAutoCalculatedKCLangNode(node) {
61851
+ if (result == undefined) {
61852
+ result = node.select;
61853
+ }
61854
+ }
61791
61855
  }
61792
61856
  (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
61793
61857
  return result;
@@ -61853,6 +61917,11 @@ function inferConditionTarget(condition, targetValue) {
61853
61917
  result = node.select;
61854
61918
  }
61855
61919
  }
61920
+ visitIsEqualToAutoCalculatedKCLangNode(node) {
61921
+ if (result == undefined && node.select.endsWith(this.path)) {
61922
+ result = node.select;
61923
+ }
61924
+ }
61856
61925
  }
61857
61926
  (0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
61858
61927
  return result;
@@ -62053,12 +62122,10 @@ __webpack_require__.r(__webpack_exports__);
62053
62122
  /* harmony export */ });
62054
62123
  /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
62055
62124
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
62056
- /* harmony import */ var _generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../generators/validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
62057
- /* harmony import */ var _CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CodeGeneration/ClassInstanceBuilder */ "./Generator/src/common/CodeGeneration/ClassInstanceBuilder.ts");
62058
- /* harmony import */ var _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPathBuilder */ "./Common/ModelPath/ModelPathBuilder.ts");
62059
- /* harmony import */ var _Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
62060
- /* harmony import */ var _SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SchemaRngSerializer */ "./Generator/src/common/SchemaRng/SchemaRngSerializer.ts");
62061
-
62125
+ /* harmony import */ var _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPathBuilder */ "./Common/ModelPath/ModelPathBuilder.ts");
62126
+ /* harmony import */ var _generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../generators/validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
62127
+ /* harmony import */ var _Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
62128
+ /* harmony import */ var _SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SchemaRngSerializer */ "./Generator/src/common/SchemaRng/SchemaRngSerializer.ts");
62062
62129
 
62063
62130
 
62064
62131
 
@@ -62181,7 +62248,7 @@ class FormSchemaRng {
62181
62248
  return this.createFromSchemaRng(`<element name="Root" />`);
62182
62249
  }
62183
62250
  static createFromSchemaRng(schemaRngXmlContent) {
62184
- const schemaRngElement = (0,_SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_6__.deserializeSchemaRng)(schemaRngXmlContent);
62251
+ const schemaRngElement = (0,_SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_5__.deserializeSchemaRng)(schemaRngXmlContent);
62185
62252
  return new FormSchemaRng(this.convertSchemaRngElement(schemaRngElement, RootParent));
62186
62253
  }
62187
62254
  static convertSchemaRngElement(schemaRngElement, parent) {
@@ -62213,23 +62280,23 @@ class FormSchemaRng {
62213
62280
  const result = new FormSchemaRngTypeInfo(this.toCandyBaseType(type));
62214
62281
  result.description = type.description;
62215
62282
  result.requiredDescription = type.requiredDescription;
62216
- const enumerations = type.children.filter((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.EnumerationTypeCheck));
62283
+ const enumerations = type.children.filter((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.EnumerationTypeCheck));
62217
62284
  if (enumerations.length > 0) {
62218
62285
  result.enumeration = enumerations.map(x => x.value);
62219
62286
  }
62220
- const patternTypeChecks = type.children.filter((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.PatternTypeCheck));
62287
+ const patternTypeChecks = type.children.filter((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.PatternTypeCheck));
62221
62288
  if (patternTypeChecks.length > 0) {
62222
62289
  result.patterns = patternTypeChecks.map(x => x.value);
62223
62290
  }
62224
- result.length = (_type$children$find = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.LengthTypeCheck))) === null || _type$children$find === void 0 ? void 0 : _type$children$find.value;
62225
- result.minLength = (_type$children$find2 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.MinlengthTypeCheck))) === null || _type$children$find2 === void 0 ? void 0 : _type$children$find2.value;
62226
- result.valueEqlAutoValue = (_type$children$find3 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.ValueEqlAutoValueTypeCheck))) === null || _type$children$find3 === void 0 ? void 0 : _type$children$find3.level;
62227
- result.maxLength = (_type$children$find4 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.MaxlengthTypeCheck))) === null || _type$children$find4 === void 0 ? void 0 : _type$children$find4.value;
62228
- result.totalDigits = (_type$children$find5 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.TotaldigitsTypeCheck))) === null || _type$children$find5 === void 0 ? void 0 : _type$children$find5.value;
62229
- result.integerDigits = (_type$children$find6 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.IntegerdigitsTypeCheck))) === null || _type$children$find6 === void 0 ? void 0 : _type$children$find6.value;
62230
- result.fractionDigits = (_type$children$find7 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.FractiondigitsTypeCheck))) === null || _type$children$find7 === void 0 ? void 0 : _type$children$find7.value;
62231
- result.minInclusive = (_type$children$find8 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.MininclusiveTypeCheck))) === null || _type$children$find8 === void 0 ? void 0 : _type$children$find8.value;
62232
- result.maxInclusive = (_type$children$find9 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_5__.MaxinclusiveTypeCheck))) === null || _type$children$find9 === void 0 ? void 0 : _type$children$find9.value;
62291
+ result.length = (_type$children$find = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.LengthTypeCheck))) === null || _type$children$find === void 0 ? void 0 : _type$children$find.value;
62292
+ result.minLength = (_type$children$find2 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.MinlengthTypeCheck))) === null || _type$children$find2 === void 0 ? void 0 : _type$children$find2.value;
62293
+ result.valueEqlAutoValue = (_type$children$find3 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.ValueEqlAutoValueTypeCheck))) === null || _type$children$find3 === void 0 ? void 0 : _type$children$find3.level;
62294
+ result.maxLength = (_type$children$find4 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.MaxlengthTypeCheck))) === null || _type$children$find4 === void 0 ? void 0 : _type$children$find4.value;
62295
+ result.totalDigits = (_type$children$find5 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.TotaldigitsTypeCheck))) === null || _type$children$find5 === void 0 ? void 0 : _type$children$find5.value;
62296
+ result.integerDigits = (_type$children$find6 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.IntegerdigitsTypeCheck))) === null || _type$children$find6 === void 0 ? void 0 : _type$children$find6.value;
62297
+ result.fractionDigits = (_type$children$find7 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.FractiondigitsTypeCheck))) === null || _type$children$find7 === void 0 ? void 0 : _type$children$find7.value;
62298
+ result.minInclusive = (_type$children$find8 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.MininclusiveTypeCheck))) === null || _type$children$find8 === void 0 ? void 0 : _type$children$find8.value;
62299
+ result.maxInclusive = (_type$children$find9 = type.children.find((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.MaxinclusiveTypeCheck))) === null || _type$children$find9 === void 0 ? void 0 : _type$children$find9.value;
62233
62300
  return result;
62234
62301
  }
62235
62302
  static toCandyBaseType(type) {
@@ -62248,7 +62315,7 @@ class FormSchemaRng {
62248
62315
  return new FormSchemaRngAttribute(attribute.name, attribute.description, this.buildTypeInfo(attribute.type), attribute.optional, attribute.nillable, parent, attribute.lazyLoadMode, attribute.lazyLoadAggregations, attribute.disableValueAutoInit, attribute.editorOnly);
62249
62316
  }
62250
62317
  adjustPathMultiplicity(path) {
62251
- const result = new _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_4__.ModelPathBuilder(true);
62318
+ const result = new _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_2__.ModelPathBuilder(true);
62252
62319
  let currentElement;
62253
62320
  for (const pathToken of path.getPathParts()) {
62254
62321
  var _currentElement;
@@ -62435,14 +62502,6 @@ class FormSchemaRngTypeInfo {
62435
62502
  this.valueEqlAutoValue = void 0;
62436
62503
  this.baseType = baseType;
62437
62504
  }
62438
- *buildValidators(description) {
62439
- if (this.valueEqlAutoValue != undefined) {
62440
- var _this$valueEqlAutoVal;
62441
- const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.AutoValueEqualValueValidator");
62442
- builder.set(0, (_this$valueEqlAutoVal = this.valueEqlAutoValue) !== null && _this$valueEqlAutoVal !== void 0 ? _this$valueEqlAutoVal : "error");
62443
- yield builder;
62444
- }
62445
- }
62446
62505
  }
62447
62506
 
62448
62507
  /***/ }),
@@ -67227,6 +67286,10 @@ function traverseFormulaExpression(expression, visitor) {
67227
67286
  visitor.beforeInstanceCountExpression(expression);
67228
67287
  visitor.afterInstanceCountExpression(expression);
67229
67288
  }
67289
+ if (expression instanceof _KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsEqualToAutoCalculatedExpression) {
67290
+ visitor.beforeIsEqualToAutoCalculatedExpression(expression);
67291
+ visitor.afterIsEqualToAutoCalculatedExpression(expression);
67292
+ }
67230
67293
  }
67231
67294
 
67232
67295
  /***/ }),
@@ -67301,6 +67364,13 @@ class FormulaProcessor {
67301
67364
  const argumentName = this.addDependency(expression.select);
67302
67365
  this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
67303
67366
  }
67367
+ beforeIsEqualToAutoCalculatedExpression(expression) {
67368
+ // noop
67369
+ }
67370
+ afterIsEqualToAutoCalculatedExpression(expression) {
67371
+ const argumentName = this.addDependency(expression.select);
67372
+ this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
67373
+ }
67304
67374
  beforeMultySumExpression(expression) {
67305
67375
  // noop
67306
67376
  }
@@ -67818,6 +67888,7 @@ __webpack_require__.r(__webpack_exports__);
67818
67888
  /* harmony export */ FormulaHashSetExpression: () => (/* binding */ FormulaHashSetExpression),
67819
67889
  /* harmony export */ FormulaInstanceCountExpression: () => (/* binding */ FormulaInstanceCountExpression),
67820
67890
  /* harmony export */ FormulaIsDateExpression: () => (/* binding */ FormulaIsDateExpression),
67891
+ /* harmony export */ FormulaIsEqualToAutoCalculatedExpression: () => (/* binding */ FormulaIsEqualToAutoCalculatedExpression),
67821
67892
  /* harmony export */ FormulaIsInnExpression: () => (/* binding */ FormulaIsInnExpression),
67822
67893
  /* harmony export */ FormulaIsOgrnExpression: () => (/* binding */ FormulaIsOgrnExpression),
67823
67894
  /* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
@@ -67862,7 +67933,7 @@ __webpack_require__.r(__webpack_exports__);
67862
67933
 
67863
67934
 
67864
67935
 
67865
- var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _class95, _class96, _descriptor60, _dec110, _dec111, _dec112, _class97, _class98, _descriptor61, _descriptor62, _dec113, _dec114, _dec115, _class99, _class100, _descriptor63, _descriptor64, _dec116, _dec117, _class101, _class102, _descriptor65, _dec118, _dec119, _class103, _class104, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _dec124, _dec125, _dec126, _class107, _class108, _descriptor68, _descriptor69, _descriptor70, _descriptor71, _dec127, _dec128, _class109, _class110, _descriptor72, _dec129, _dec130, _class111, _class112, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _dec137, _class117, _class118, _descriptor76, _descriptor77, _dec138, _dec139, _class119, _class120, _descriptor78, _dec140, _dec141, _class121, _class122, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _dec145, _class125, _class126, _descriptor81, _dec146, _class127, _dec147, _dec148, _dec149, _dec150, _class128, _class129, _descriptor82, _descriptor83, _descriptor84, _dec151, _dec152, _class130, _class131, _descriptor85, _dec153, _dec154, _class132, _class133, _descriptor86, _dec155, _dec156, _dec157, _dec158, _dec159, _dec160, _class134, _class135, _descriptor87, _descriptor88, _descriptor89, _descriptor90, _descriptor91, _dec161, _dec162, _class136, _class137, _descriptor92, _dec163, _dec164, _dec165, _class138, _class139, _descriptor93, _descriptor94, _dec166, _dec167, _dec168, _class140, _class141, _descriptor95, _descriptor96, _dec169, _dec170, _dec171, _class142, _class143, _descriptor97, _descriptor98, _dec172, _dec173, _dec174, _dec175, _class144, _class145, _descriptor99, _descriptor100, _descriptor101, _dec176, _dec177, _dec178, _class146, _class147, _descriptor102, _descriptor103;
67936
+ var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _class95, _class96, _descriptor60, _dec110, _dec111, _dec112, _class97, _class98, _descriptor61, _descriptor62, _dec113, _dec114, _dec115, _class99, _class100, _descriptor63, _descriptor64, _dec116, _dec117, _class101, _class102, _descriptor65, _dec118, _dec119, _class103, _class104, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _dec124, _dec125, _dec126, _class107, _class108, _descriptor68, _descriptor69, _descriptor70, _descriptor71, _dec127, _dec128, _class109, _class110, _descriptor72, _dec129, _dec130, _class111, _class112, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _dec137, _class117, _class118, _descriptor76, _descriptor77, _dec138, _dec139, _class119, _class120, _descriptor78, _dec140, _dec141, _dec142, _class121, _class122, _descriptor79, _descriptor80, _dec143, _dec144, _class123, _class124, _descriptor81, _dec145, _dec146, _class125, _class126, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _class129, _dec150, _dec151, _dec152, _dec153, _class130, _class131, _descriptor84, _descriptor85, _descriptor86, _dec154, _dec155, _class132, _class133, _descriptor87, _dec156, _dec157, _class134, _class135, _descriptor88, _dec158, _dec159, _dec160, _dec161, _dec162, _dec163, _class136, _class137, _descriptor89, _descriptor90, _descriptor91, _descriptor92, _descriptor93, _dec164, _dec165, _class138, _class139, _descriptor94, _dec166, _dec167, _dec168, _class140, _class141, _descriptor95, _descriptor96, _dec169, _dec170, _dec171, _class142, _class143, _descriptor97, _descriptor98, _dec172, _dec173, _dec174, _class144, _class145, _descriptor99, _descriptor100, _dec175, _dec176, _dec177, _dec178, _class146, _class147, _descriptor101, _descriptor102, _descriptor103, _dec179, _dec180, _dec181, _class148, _class149, _descriptor104, _descriptor105;
67866
67937
 
67867
67938
 
67868
67939
 
@@ -68731,223 +68802,240 @@ let FormulaInstanceCountExpression = (_dec138 = (0,_markupGenerator_Serializer_S
68731
68802
  writable: true,
68732
68803
  initializer: null
68733
68804
  }), _class120)) || _class119);
68734
- let FormulaJoinExpression = (_dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("join", `TODO`), _dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec140(_class121 = (_class122 = class FormulaJoinExpression extends FormulaExpression {
68805
+ let FormulaIsEqualToAutoCalculatedExpression = (_dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isequaltoautocalculated", `TODO`), _dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("decimal", "string"), ``), _dec140(_class121 = (_class122 = class FormulaIsEqualToAutoCalculatedExpression extends FormulaExpression {
68735
68806
  constructor(...args) {
68736
68807
  super(...args);
68737
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor79, this);
68808
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor79, this);
68809
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor80, this);
68738
68810
  }
68739
- }, _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "array", [_dec141], {
68811
+ }, _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "select", [_dec141], {
68812
+ configurable: true,
68813
+ enumerable: true,
68814
+ writable: true,
68815
+ initializer: null
68816
+ }), _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "type", [_dec142], {
68740
68817
  configurable: true,
68741
68818
  enumerable: true,
68742
68819
  writable: true,
68743
68820
  initializer: null
68744
68821
  }), _class122)) || _class121);
68745
- let FormulaPropertyByNameExpression = (_dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("property", `TODO`), _dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec142(_class123 = (_class124 = class FormulaPropertyByNameExpression extends FormulaExpression {
68822
+ let FormulaJoinExpression = (_dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("join", `TODO`), _dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec143(_class123 = (_class124 = class FormulaJoinExpression extends FormulaExpression {
68746
68823
  constructor(...args) {
68747
68824
  super(...args);
68748
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor80, this);
68825
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor81, this);
68749
68826
  }
68750
- }, _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "name", [_dec143], {
68827
+ }, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "array", [_dec144], {
68751
68828
  configurable: true,
68752
68829
  enumerable: true,
68753
68830
  writable: true,
68754
68831
  initializer: null
68755
68832
  }), _class124)) || _class123);
68756
- let FormulaConcatExpression = (_dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec144(_class125 = (_class126 = class FormulaConcatExpression extends FormulaExpression {
68833
+ let FormulaPropertyByNameExpression = (_dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("property", `TODO`), _dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec145(_class125 = (_class126 = class FormulaPropertyByNameExpression extends FormulaExpression {
68757
68834
  constructor(...args) {
68758
68835
  super(...args);
68759
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor81, this);
68836
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor82, this);
68760
68837
  }
68761
- }, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "arguments", [_dec145], {
68838
+ }, _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "name", [_dec146], {
68762
68839
  configurable: true,
68763
68840
  enumerable: true,
68764
68841
  writable: true,
68765
68842
  initializer: null
68766
68843
  }), _class126)) || _class125);
68767
- let FormulaNewLineExpression = (_dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec146(_class127 = class FormulaNewLineExpression extends FormulaExpression {}) || _class127);
68768
- let Formula = (_dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec147(_class128 = (_class129 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68844
+ let FormulaConcatExpression = (_dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec147(_class127 = (_class128 = class FormulaConcatExpression extends FormulaExpression {
68769
68845
  constructor(...args) {
68770
68846
  super(...args);
68771
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor82, this);
68772
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor83, this);
68773
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor84, this);
68847
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor83, this);
68774
68848
  }
68775
- }, _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class129.prototype, "match", [_dec148], {
68849
+ }, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "arguments", [_dec148], {
68776
68850
  configurable: true,
68777
68851
  enumerable: true,
68778
68852
  writable: true,
68779
68853
  initializer: null
68780
- }), _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class129.prototype, "target", [_dec149], {
68854
+ }), _class128)) || _class127);
68855
+ let FormulaNewLineExpression = (_dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec149(_class129 = class FormulaNewLineExpression extends FormulaExpression {}) || _class129);
68856
+ let Formula = (_dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec150(_class130 = (_class131 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68857
+ constructor(...args) {
68858
+ super(...args);
68859
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor84, this);
68860
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor85, this);
68861
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor86, this);
68862
+ }
68863
+ }, _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "match", [_dec151], {
68781
68864
  configurable: true,
68782
68865
  enumerable: true,
68783
68866
  writable: true,
68784
68867
  initializer: null
68785
- }), _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class129.prototype, "expression", [_dec150], {
68868
+ }), _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "target", [_dec152], {
68786
68869
  configurable: true,
68787
68870
  enumerable: true,
68788
68871
  writable: true,
68789
68872
  initializer: null
68790
- }), _class129)) || _class128);
68791
- let FormulaNoDepsNode = (_dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec151(_class130 = (_class131 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68873
+ }), _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "expression", [_dec153], {
68874
+ configurable: true,
68875
+ enumerable: true,
68876
+ writable: true,
68877
+ initializer: null
68878
+ }), _class131)) || _class130);
68879
+ let FormulaNoDepsNode = (_dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec154(_class132 = (_class133 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68792
68880
  constructor(...args) {
68793
68881
  super(...args);
68794
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor85, this);
68882
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor87, this);
68795
68883
  }
68796
- }, _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "expression", [_dec152], {
68884
+ }, _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec155], {
68797
68885
  configurable: true,
68798
68886
  enumerable: true,
68799
68887
  writable: true,
68800
68888
  initializer: null
68801
- }), _class131)) || _class130);
68802
- let Formulas = (_dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec153(_class132 = (_class133 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68889
+ }), _class133)) || _class132);
68890
+ let Formulas = (_dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec157 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec156(_class134 = (_class135 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68803
68891
  constructor(...args) {
68804
68892
  super(...args);
68805
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor86, this);
68893
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor88, this);
68806
68894
  }
68807
- }, _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "items", [_dec154], {
68895
+ }, _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec157], {
68808
68896
  configurable: true,
68809
68897
  enumerable: true,
68810
68898
  writable: true,
68811
68899
  initializer: null
68812
- }), _class133)) || _class132);
68813
- let ConditionNode = (_dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec157 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec158 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec155(_class134 = (_class135 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68900
+ }), _class135)) || _class134);
68901
+ let ConditionNode = (_dec158 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec163 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec158(_class136 = (_class137 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68814
68902
  constructor(...args) {
68815
68903
  super(...args);
68816
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor87, this);
68817
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor88, this);
68818
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor89, this);
68819
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor90, this);
68820
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor91, this);
68904
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor89, this);
68905
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor90, this);
68906
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor91, this);
68907
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor92, this);
68908
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor93, this);
68821
68909
  }
68822
- }, _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "match", [_dec156], {
68910
+ }, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "match", [_dec159], {
68823
68911
  configurable: true,
68824
68912
  enumerable: true,
68825
68913
  writable: true,
68826
68914
  initializer: null
68827
- }), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "target", [_dec157], {
68915
+ }), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "target", [_dec160], {
68828
68916
  configurable: true,
68829
68917
  enumerable: true,
68830
68918
  writable: true,
68831
68919
  initializer: null
68832
- }), _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "description", [_dec158], {
68920
+ }), _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "description", [_dec161], {
68833
68921
  configurable: true,
68834
68922
  enumerable: true,
68835
68923
  writable: true,
68836
68924
  initializer: null
68837
- }), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "errorLevel", [_dec159], {
68925
+ }), _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "errorLevel", [_dec162], {
68838
68926
  configurable: true,
68839
68927
  enumerable: true,
68840
68928
  writable: true,
68841
68929
  initializer: null
68842
- }), _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "expression", [_dec160], {
68930
+ }), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "expression", [_dec163], {
68843
68931
  configurable: true,
68844
68932
  enumerable: true,
68845
68933
  writable: true,
68846
68934
  initializer: null
68847
- }), _class135)) || _class134);
68848
- let ConditionsNode = (_dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec161(_class136 = (_class137 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68935
+ }), _class137)) || _class136);
68936
+ let ConditionsNode = (_dec164 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec165 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec164(_class138 = (_class139 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68849
68937
  constructor(...args) {
68850
68938
  super(...args);
68851
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor92, this);
68939
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor94, this);
68852
68940
  }
68853
- }, _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "items", [_dec162], {
68941
+ }, _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "items", [_dec165], {
68854
68942
  configurable: true,
68855
68943
  enumerable: true,
68856
68944
  writable: true,
68857
68945
  initializer: null
68858
- }), _class137)) || _class136);
68859
- let MathContainer = (_dec163 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec164 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec165 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec163(_class138 = (_class139 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68946
+ }), _class139)) || _class138);
68947
+ let MathContainer = (_dec166 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec167 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec168 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec166(_class140 = (_class141 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
68860
68948
  constructor(...args) {
68861
68949
  super(...args);
68862
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor93, this);
68863
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor94, this);
68950
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor95, this);
68951
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor96, this);
68864
68952
  }
68865
- }, _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "formulas", [_dec164], {
68953
+ }, _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "formulas", [_dec167], {
68866
68954
  configurable: true,
68867
68955
  enumerable: true,
68868
68956
  writable: true,
68869
68957
  initializer: null
68870
- }), _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "conditions", [_dec165], {
68958
+ }), _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "conditions", [_dec168], {
68871
68959
  configurable: true,
68872
68960
  enumerable: true,
68873
68961
  writable: true,
68874
68962
  initializer: null
68875
- }), _class139)) || _class138);
68876
- let FormulaMakeDictExpression = (_dec166 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("makedict", `Получение словаря по ключу-значению из иннера`), _dec167 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ`), _dec168 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(undefined, [FormulaArgumentExpression, FormulaConstExpression, FormulaCastExpression], `Путь откуда брать значение или константа`), _dec166(_class140 = (_class141 = class FormulaMakeDictExpression extends FormulaExpression {
68963
+ }), _class141)) || _class140);
68964
+ let FormulaMakeDictExpression = (_dec169 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("makedict", `Получение словаря по ключу-значению из иннера`), _dec170 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ`), _dec171 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(undefined, [FormulaArgumentExpression, FormulaConstExpression, FormulaCastExpression], `Путь откуда брать значение или константа`), _dec169(_class142 = (_class143 = class FormulaMakeDictExpression extends FormulaExpression {
68877
68965
  constructor(...args) {
68878
68966
  super(...args);
68879
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor95, this);
68880
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor96, this);
68967
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor97, this);
68968
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor98, this);
68881
68969
  }
68882
- }, _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "sourceKeyPath", [_dec167], {
68970
+ }, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec170], {
68883
68971
  configurable: true,
68884
68972
  enumerable: true,
68885
68973
  writable: true,
68886
68974
  initializer: null
68887
- }), _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "sourceValueExpression", [_dec168], {
68975
+ }), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValueExpression", [_dec171], {
68888
68976
  configurable: true,
68889
68977
  enumerable: true,
68890
68978
  writable: true,
68891
68979
  initializer: null
68892
- }), _class141)) || _class140);
68893
- let FormulaGetSumByKeysExpression = (_dec169 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getsumbykeys", `Вычисление суммы с группировкой в разных множественностях`), _dec170 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dictPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь к словарю`), _dec171 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec169(_class142 = (_class143 = class FormulaGetSumByKeysExpression extends FormulaExpression {
68980
+ }), _class143)) || _class142);
68981
+ let FormulaGetSumByKeysExpression = (_dec172 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getsumbykeys", `Вычисление суммы с группировкой в разных множественностях`), _dec173 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dictPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь к словарю`), _dec174 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec172(_class144 = (_class145 = class FormulaGetSumByKeysExpression extends FormulaExpression {
68894
68982
  constructor(...args) {
68895
68983
  super(...args);
68896
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor97, this);
68897
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor98, this);
68984
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor99, this);
68985
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor100, this);
68898
68986
  }
68899
- }, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "dictPath", [_dec170], {
68987
+ }, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "dictPath", [_dec173], {
68900
68988
  configurable: true,
68901
68989
  enumerable: true,
68902
68990
  writable: true,
68903
68991
  initializer: null
68904
- }), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "targetKeys", [_dec171], {
68992
+ }), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec174], {
68905
68993
  configurable: true,
68906
68994
  enumerable: true,
68907
68995
  writable: true,
68908
68996
  initializer: null
68909
- }), _class143)) || _class142);
68910
- let FormulaGroupSumExpression = (_dec172 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _dec173 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec174 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec175 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec172(_class144 = (_class145 = class FormulaGroupSumExpression extends FormulaExpression {
68997
+ }), _class145)) || _class144);
68998
+ let FormulaGroupSumExpression = (_dec175 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _dec176 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec177 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec178 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec175(_class146 = (_class147 = class FormulaGroupSumExpression extends FormulaExpression {
68911
68999
  constructor(...args) {
68912
69000
  super(...args);
68913
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor99, this);
68914
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor100, this);
68915
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor101, this);
69001
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor101, this);
69002
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor102, this);
69003
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor103, this);
68916
69004
  }
68917
- }, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec173], {
69005
+ }, _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "targetKeys", [_dec176], {
68918
69006
  configurable: true,
68919
69007
  enumerable: true,
68920
69008
  writable: true,
68921
69009
  initializer: null
68922
- }), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "sourceKeyPath", [_dec174], {
69010
+ }), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec177], {
68923
69011
  configurable: true,
68924
69012
  enumerable: true,
68925
69013
  writable: true,
68926
69014
  initializer: null
68927
- }), _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "sourceValuePath", [_dec175], {
69015
+ }), _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceValuePath", [_dec178], {
68928
69016
  configurable: true,
68929
69017
  enumerable: true,
68930
69018
  writable: true,
68931
69019
  initializer: null
68932
- }), _class145)) || _class144);
68933
- let FormulaGroupCountExpression = (_dec176 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec177 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec178 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec176(_class146 = (_class147 = class FormulaGroupCountExpression extends FormulaExpression {
69020
+ }), _class147)) || _class146);
69021
+ let FormulaGroupCountExpression = (_dec179 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec180 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec181 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec179(_class148 = (_class149 = class FormulaGroupCountExpression extends FormulaExpression {
68934
69022
  constructor(...args) {
68935
69023
  super(...args);
68936
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor102, this);
68937
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor103, this);
69024
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor104, this);
69025
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor105, this);
68938
69026
  }
68939
- }, _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "targetKeys", [_dec177], {
69027
+ }, _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "targetKeys", [_dec180], {
68940
69028
  configurable: true,
68941
69029
  enumerable: true,
68942
69030
  writable: true,
68943
69031
  initializer: null
68944
- }), _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec178], {
69032
+ }), _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "sourceKeyPath", [_dec181], {
68945
69033
  configurable: true,
68946
69034
  enumerable: true,
68947
69035
  writable: true,
68948
69036
  initializer: null
68949
- }), _class147)) || _class146);
68950
- const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsOgrnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression];
69037
+ }), _class149)) || _class148);
69038
+ const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaIsEqualToAutoCalculatedExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsOgrnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression];
68951
69039
 
68952
69040
  /***/ }),
68953
69041
 
@@ -69312,7 +69400,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
69312
69400
  }
69313
69401
  const defaultValue = dataDeclaration.getDefaultValue(path);
69314
69402
  const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
69315
- const autoValidationInfo = dataDeclaration.getValueEqlAutoValueValidationInfo(path);
69316
69403
  const node = getOrCreateNode(nodes, path);
69317
69404
  if (isMultiple) {
69318
69405
  var _node$properties;
@@ -69324,13 +69411,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
69324
69411
  (_node$properties2 = node.properties) !== null && _node$properties2 !== void 0 ? _node$properties2 : node.properties = {};
69325
69412
  node.properties.defaultValue = defaultValue;
69326
69413
  }
69327
- if (autoValidationInfo != undefined) {
69328
- var _node$properties3, _autoValidationInfo$c, _autoValidationInfo$c2;
69329
- (_node$properties3 = node.properties) !== null && _node$properties3 !== void 0 ? _node$properties3 : node.properties = {};
69330
- node.properties.valueEqlAutoValue = autoValidationInfo.severity;
69331
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
69332
- node.properties.valueEqlAutoValueCondition = (_autoValidationInfo$c = autoValidationInfo.condition) === null || _autoValidationInfo$c === void 0 ? void 0 : _autoValidationInfo$c.expression, node.properties.valueEqlAutoValueConditionContextPath = (_autoValidationInfo$c2 = autoValidationInfo.condition) === null || _autoValidationInfo$c2 === void 0 ? void 0 : _autoValidationInfo$c2.contextPath.toLegacyPath(), node.properties.valueEqlAutoValueErrorMessage = autoValidationInfo.message;
69333
- }
69334
69414
  }
69335
69415
  if (nodes.size == 1) {
69336
69416
  var _;
@@ -69412,22 +69492,16 @@ __webpack_require__.r(__webpack_exports__);
69412
69492
  /* harmony import */ var lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mergewith__WEBPACK_IMPORTED_MODULE_0__);
69413
69493
  /* harmony import */ var lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash.uniqwith */ "./node_modules/lodash.uniqwith/index.js");
69414
69494
  /* harmony import */ var lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1__);
69415
- /* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
69416
- /* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
69417
- /* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
69418
- /* harmony import */ var _Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/CommonConstants/SectionNames */ "./Common/CommonConstants/SectionNames.ts");
69419
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
69420
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
69495
+ /* harmony import */ var _Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/CommonConstants/SectionNames */ "./Common/CommonConstants/SectionNames.ts");
69496
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
69497
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
69498
+ /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
69499
+ /* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
69500
+ /* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../markupGenerator/ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
69421
69501
  /* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
69422
- /* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../markupGenerator/ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
69423
- /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
69424
- /* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
69425
- /* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
69426
- /* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
69427
- /* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
69428
-
69429
-
69430
-
69502
+ /* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
69503
+ /* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
69504
+ /* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
69431
69505
 
69432
69506
 
69433
69507
 
@@ -69480,22 +69554,22 @@ class DataDeclarationGenerationContext {
69480
69554
  return;
69481
69555
  }
69482
69556
  const objVal = objDataValue[objDataValue.length - 1];
69483
- const nodeWithSettings = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_14__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__.DataDeclarationInitSourceValueSequence.SETTINGS);
69557
+ const nodeWithSettings = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.SETTINGS);
69484
69558
  if (nodeWithSettings) {
69485
69559
  return nodeWithSettings;
69486
69560
  }
69487
- if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69561
+ if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69488
69562
  if (objVal) {
69489
69563
  const res = lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default()(objValue, srcValue);
69490
69564
  res.value[res.value.length - 1] = objVal;
69491
69565
  return res;
69492
69566
  }
69493
- } else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69567
+ } else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69494
69568
  return srcValue;
69495
- } else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69569
+ } else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69496
69570
  return objValue;
69497
69571
  }
69498
- const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_14__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__.DataDeclarationInitSourceValueSequence.DISABLED);
69572
+ const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DISABLED);
69499
69573
  if (nodeDisabled) {
69500
69574
  return nodeDisabled;
69501
69575
  }
@@ -69509,32 +69583,12 @@ class DataDeclarationGenerationContext {
69509
69583
  this.controlCustomizationContext = controlCustomizationContext;
69510
69584
  this.typesRegistry = typesRegistry;
69511
69585
  }
69512
- addValueEqlAutoValue(node, typeInfo, contextPath) {
69513
- var _ref, _typeNode$children$fi, _typeNode$children, _typeNode$children2;
69514
- const typeNode = this.getTypeNode(typeInfo);
69515
- const schemaTypeNode = this.formSchemaRng.getTypeNodeByPath(node.getFullPath());
69516
- const valueEqlAutoValueErrorLevel = (_ref = (_typeNode$children$fi = typeNode === null || typeNode === void 0 || (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 || (_typeNode$children = _typeNode$children.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_11__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children === void 0 ? void 0 : _typeNode$children.level) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 || (_typeNode$children2 = _typeNode$children2.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.level) !== null && _ref !== void 0 ? _ref : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.valueEqlAutoValue;
69517
- if (valueEqlAutoValueErrorLevel != undefined) {
69518
- var _typeNode$children$fi2, _typeNode$children3, _typeNode$children4, _omitLocalization, _typeNode$children5;
69519
- const declEntry = {};
69520
- const validationCondition = (_typeNode$children$fi2 = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 || (_typeNode$children3 = _typeNode$children3.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_11__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.condition) !== null && _typeNode$children$fi2 !== void 0 ? _typeNode$children$fi2 : typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 || (_typeNode$children4 = _typeNode$children4.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.condition;
69521
- const validationErrorMessage = (_omitLocalization = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.omitLocalization)(typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 || (_typeNode$children5 = _typeNode$children5.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_4__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.description)) !== null && _omitLocalization !== void 0 ? _omitLocalization : _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_12__.AutoValidationMessage;
69522
- declEntry.valueEqlAutoValue = valueEqlAutoValueErrorLevel;
69523
- declEntry.valueEqlAutoValueCondition = validationCondition;
69524
- declEntry.valueEqlAutoValueConditionContextPath = contextPath.toLegacyPath();
69525
- declEntry.valueEqlAutoValueErrorMessage = validationErrorMessage;
69526
- return {
69527
- [(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getResolvedBindingPath)(node)]: declEntry
69528
- };
69529
- }
69530
- return {};
69531
- }
69532
69586
  isMultipleNodeOptionalFromScheme(path) {
69533
69587
  if (!this.schemeValidations) {
69534
69588
  return undefined;
69535
69589
  }
69536
69590
  const schemaNode = this.formSchemaRng.getElementByPath(path);
69537
- if (schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_10__.FormSchemaRngElement) {
69591
+ if (schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__.FormSchemaRngElement) {
69538
69592
  var _schemaNode$isOptiona;
69539
69593
  return (_schemaNode$isOptiona = schemaNode.isOptionalOrNillable()) !== null && _schemaNode$isOptiona !== void 0 ? _schemaNode$isOptiona : false;
69540
69594
  }
@@ -69569,7 +69623,7 @@ class DataDeclarationGenerationContext {
69569
69623
  return {};
69570
69624
  }
69571
69625
  const declEntry = {};
69572
- const nodePath = ((_node$parent = node.parent) !== null && _node$parent !== void 0 ? _node$parent : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)()).getFullPathForChildren().joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createFromMask)(node.visibilityPath, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each));
69626
+ const nodePath = ((_node$parent = node.parent) !== null && _node$parent !== void 0 ? _node$parent : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()).getFullPathForChildren().joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createFromMask)(node.visibilityPath, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each));
69573
69627
  declEntry.section = this.getSections(node, requisite);
69574
69628
  return {
69575
69629
  [nodePath.normalize().toLegacyPath()]: declEntry
@@ -69590,7 +69644,7 @@ class DataDeclarationGenerationContext {
69590
69644
  }
69591
69645
  addPathDeclEntry(sugarNode, fieldNames) {
69592
69646
  const declEntry = {};
69593
- for (const [fieldName, option] of fieldNames.filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined)) {
69647
+ for (const [fieldName, option] of fieldNames.filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) {
69594
69648
  // @ts-ignore
69595
69649
  declEntry[fieldName] = option;
69596
69650
  }
@@ -69628,7 +69682,7 @@ class DataDeclarationGenerationContext {
69628
69682
  addChildPathSectionDeclarationEntry(sugarNode, childPath, requisite) {
69629
69683
  const declEntry = {};
69630
69684
  declEntry.section = this.getSections(sugarNode, requisite);
69631
- if ((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.isModelPath)(childPath)) {
69685
+ if ((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.isModelPath)(childPath)) {
69632
69686
  return {
69633
69687
  [(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getNewBindingPathExpression)(sugarNode).joinWith(childPath).toLegacyPath()]: declEntry
69634
69688
  };
@@ -69673,7 +69727,7 @@ class DataDeclarationGenerationContext {
69673
69727
  *getAllParentPages(node) {
69674
69728
  let currentNode = node;
69675
69729
  while (currentNode != undefined) {
69676
- const parent = currentNode.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_9__.PageNode);
69730
+ const parent = currentNode.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode);
69677
69731
  if (parent != undefined) {
69678
69732
  yield parent;
69679
69733
  }
@@ -69681,13 +69735,13 @@ class DataDeclarationGenerationContext {
69681
69735
  }
69682
69736
  }
69683
69737
  getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
69684
- const page = node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_9__.PageNode ? node : node.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_9__.PageNode);
69738
+ const page = node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode ? node : node.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode);
69685
69739
  const pageName = page === null || page === void 0 ? void 0 : page.id;
69686
69740
  const pageRequiresResolution = page != undefined && (page.multiple || Iterator.from(this.getAllParentPages(page)).some(x => {
69687
69741
  var _x$multiple;
69688
69742
  return (_x$multiple = x.multiple) !== null && _x$multiple !== void 0 ? _x$multiple : false;
69689
69743
  }));
69690
- if (!(node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_9__.PageNode)) {
69744
+ if (!(node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode)) {
69691
69745
  if (pageRequiresResolution) {
69692
69746
  return [{
69693
69747
  fn: `#getSectionFunction('${pageName}')#`
@@ -69697,22 +69751,22 @@ class DataDeclarationGenerationContext {
69697
69751
  const sections = pageName != undefined ? [pageName] : [];
69698
69752
  if (requisiteMode === RequisiteSectionMode.AsRequisiteAttribute) {
69699
69753
  if (requisite) {
69700
- sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_5__.SectionNames.requisitesSection);
69754
+ sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
69701
69755
  }
69702
69756
  }
69703
69757
  if (requisiteMode === RequisiteSectionMode.ForceAdd) {
69704
- sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_5__.SectionNames.requisitesSection);
69758
+ sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
69705
69759
  }
69706
- sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_5__.SectionNames.defaultSection);
69760
+ sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.defaultSection);
69707
69761
  return sections;
69708
69762
  }
69709
69763
  buildNodeDataDeclaration(child, fieldNameToDeclInfo, nodeProcessor) {
69710
- const controlConverterClass = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_2__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(child));
69764
+ const controlConverterClass = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.getNodeClass)(child));
69711
69765
  if (controlConverterClass == undefined) {
69712
- if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.UnknownSugarNode && child.name === "type") {
69766
+ if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.UnknownSugarNode && child.name === "type") {
69713
69767
  return emptyDataDeclarationCollection;
69714
69768
  }
69715
- if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.UnknownSugarNode) {
69769
+ if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.UnknownSugarNode) {
69716
69770
  const customControl = this.controlCustomizationContext.tryGetCustomRegularControl(child.name);
69717
69771
  if (customControl != undefined) {
69718
69772
  const hasBindingPath = customControl.properties.find(x => x.name === "path" && x.type === "bindingPath");
@@ -69722,7 +69776,7 @@ class DataDeclarationGenerationContext {
69722
69776
  const result = nodeProcessor === null || nodeProcessor === void 0 ? void 0 : nodeProcessor(child);
69723
69777
  if (result == undefined) {
69724
69778
  // eslint-disable-next-line no-console
69725
- console.error(`Cannot process node of type ${(0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(child).name}`);
69779
+ console.error(`Cannot process node of type ${(0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.getNodeClass)(child).name}`);
69726
69780
  return emptyDataDeclarationCollection;
69727
69781
  }
69728
69782
  return result;
@@ -69759,10 +69813,10 @@ __webpack_require__.r(__webpack_exports__);
69759
69813
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
69760
69814
  /* harmony export */ DataDeclarationGenerationTimeHelper: () => (/* binding */ DataDeclarationGenerationTimeHelper)
69761
69815
  /* harmony export */ });
69762
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
69763
- /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
69764
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
69765
- /* harmony import */ var _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/Set2 */ "./Common/ModelPath/Set/Set2.ts");
69816
+ /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
69817
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
69818
+ /* harmony import */ var _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/Set2 */ "./Common/ModelPath/Set/Set2.ts");
69819
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
69766
69820
 
69767
69821
 
69768
69822
 
@@ -69778,22 +69832,6 @@ class DataDeclarationGenerationTimeHelper {
69778
69832
  var _this$getDataDeclarat, _this$getDataDeclarat2;
69779
69833
  return (_this$getDataDeclarat = (_this$getDataDeclarat2 = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat2 === void 0 || (_this$getDataDeclarat2 = _this$getDataDeclarat2.errorAndWarningCountRequired) === null || _this$getDataDeclarat2 === void 0 ? void 0 : _this$getDataDeclarat2[0]) !== null && _this$getDataDeclarat !== void 0 ? _this$getDataDeclarat : false;
69780
69834
  }
69781
- getValueEqlAutoValueValidationInfo(targetPath) {
69782
- const dataDeclarationEntry = this.getDataDeclarationEntry(targetPath);
69783
- const valueEqlAutoValueSeverity = dataDeclarationEntry === null || dataDeclarationEntry === void 0 ? void 0 : dataDeclarationEntry.valueEqlAutoValue;
69784
- if (dataDeclarationEntry != undefined && valueEqlAutoValueSeverity != undefined) {
69785
- var _dataDeclarationEntry;
69786
- return {
69787
- severity: valueEqlAutoValueSeverity,
69788
- condition: dataDeclarationEntry.valueEqlAutoValueCondition != undefined ? {
69789
- expression: dataDeclarationEntry.valueEqlAutoValueCondition,
69790
- contextPath: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)((_dataDeclarationEntry = dataDeclarationEntry.valueEqlAutoValueConditionContextPath) !== null && _dataDeclarationEntry !== void 0 ? _dataDeclarationEntry : "/", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)
69791
- } : undefined,
69792
- message: dataDeclarationEntry.valueEqlAutoValueErrorMessage
69793
- };
69794
- }
69795
- return undefined;
69796
- }
69797
69835
  hasMask(targetPath) {
69798
69836
  return this.getDataDeclarationEntry(targetPath) != undefined;
69799
69837
  }
@@ -69832,21 +69870,21 @@ class DataDeclarationGenerationTimeHelper {
69832
69870
  return optionalBySugar == undefined ? optionalBySchema : optionalBySugar;
69833
69871
  }
69834
69872
  getDataDeclarationEntry(targetPath) {
69835
- return this.dataDeclaration[(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.convertToLegacyPath)(targetPath)];
69873
+ return this.dataDeclaration[(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.convertToLegacyPath)(targetPath)];
69836
69874
  }
69837
69875
  getOptionalSections() {
69838
69876
  var _this$dataDeclaration, _this$dataDeclaration2;
69839
69877
  const anyPath = Object.keys(this.dataDeclaration)[0];
69840
69878
  if (anyPath == undefined) {
69841
- return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)();
69879
+ return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.reject)();
69842
69880
  }
69843
- const absolutePath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsolute)(anyPath);
69844
- const root = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.first(absolutePath.getPathParts());
69881
+ const absolutePath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(anyPath);
69882
+ const root = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.first(absolutePath.getPathParts());
69845
69883
  return (_this$dataDeclaration = (_this$dataDeclaration2 = this.dataDeclaration[root !== null && root !== void 0 ? root : ""]) === null || _this$dataDeclaration2 === void 0 ? void 0 : _this$dataDeclaration2.optionalSections) !== null && _this$dataDeclaration !== void 0 ? _this$dataDeclaration : [];
69846
69884
  }
69847
69885
  *getAllPaths() {
69848
- for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateKeys)(this.dataDeclaration)) {
69849
- yield (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(key, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
69886
+ for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.iterateKeys)(this.dataDeclaration)) {
69887
+ yield (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(key, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
69850
69888
  }
69851
69889
  }
69852
69890
  getAllPathsBySection() {
@@ -69856,16 +69894,16 @@ class DataDeclarationGenerationTimeHelper {
69856
69894
  };
69857
69895
  const section2Path = Object.entries(this.dataDeclaration).map(current => {
69858
69896
  var _pathData$section;
69859
- const path = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(current[0], _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
69897
+ const path = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(current[0], _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
69860
69898
  const pathData = current[1];
69861
- const allSections = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.distinctBy(((_pathData$section = pathData.section) !== null && _pathData$section !== void 0 ? _pathData$section : []).map(section => typeof section === "string" || Array.isArray(section) ? section : typeof section === "object" && "fn" in section && typeof section.fn === "string" ? unpackSectionNameFromFn(section.fn) : undefined).flat(1).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrUndefined).map(x => ({
69899
+ const allSections = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.distinctBy(((_pathData$section = pathData.section) !== null && _pathData$section !== void 0 ? _pathData$section : []).map(section => typeof section === "string" || Array.isArray(section) ? section : typeof section === "object" && "fn" in section && typeof section.fn === "string" ? unpackSectionNameFromFn(section.fn) : undefined).flat(1).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined).map(x => ({
69862
69900
  section: x,
69863
69901
  path: path
69864
69902
  })), x => x.section);
69865
69903
  return [...allSections];
69866
69904
  }).flat(1).reduce((acc, current) => {
69867
69905
  var _acc$get;
69868
- const currentPaths = (_acc$get = acc.get(current.section)) !== null && _acc$get !== void 0 ? _acc$get : new _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_3__.Set2();
69906
+ const currentPaths = (_acc$get = acc.get(current.section)) !== null && _acc$get !== void 0 ? _acc$get : new _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_2__.Set2();
69869
69907
  currentPaths.add(current.path);
69870
69908
  acc.set(current.section, currentPaths);
69871
69909
  return acc;
@@ -70681,44 +70719,6 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
70681
70719
 
70682
70720
  /***/ }),
70683
70721
 
70684
- /***/ "./Generator/src/generators/ExtendedSchemaInfo.ts":
70685
- /*!********************************************************!*\
70686
- !*** ./Generator/src/generators/ExtendedSchemaInfo.ts ***!
70687
- \********************************************************/
70688
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
70689
-
70690
- "use strict";
70691
- __webpack_require__.r(__webpack_exports__);
70692
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
70693
- /* harmony export */ traverseExtendedSchemaInfo: () => (/* binding */ traverseExtendedSchemaInfo)
70694
- /* harmony export */ });
70695
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
70696
-
70697
- function traverseExtendedSchemaInfo(schemaInfo, func) {
70698
- if (schemaInfo.root != undefined) {
70699
- if (Array.isArray(schemaInfo.root)) {
70700
- for (const root of schemaInfo.root) {
70701
- traverseExtendedSchemaInfoInternal(root, func, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)([]));
70702
- }
70703
- } else {
70704
- traverseExtendedSchemaInfoInternal(schemaInfo.root, func, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)([]));
70705
- }
70706
- }
70707
- }
70708
- function traverseExtendedSchemaInfoInternal(node, func, parentPath) {
70709
- var _node$properties;
70710
- let currentPath = parentPath.joinWith(node.name);
70711
- if ((_node$properties = node.properties) !== null && _node$properties !== void 0 && _node$properties.multiple) {
70712
- currentPath = currentPath.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
70713
- }
70714
- func(currentPath, node);
70715
- for (const child of node.children) {
70716
- traverseExtendedSchemaInfoInternal(child, func, currentPath);
70717
- }
70718
- }
70719
-
70720
- /***/ }),
70721
-
70722
70722
  /***/ "./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts":
70723
70723
  /*!***************************************************************************!*\
70724
70724
  !*** ./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts ***!
@@ -71379,6 +71379,12 @@ class KCXmlGeneratorBase {
71379
71379
  deps.push(new DependencyWithoutChecks(finalPath));
71380
71380
  return gcf(x => x.instanceCount, `"${finalPath.toLegacyPath()}"`);
71381
71381
  }
71382
+ if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsEqualToAutoCalculatedExpression) {
71383
+ const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
71384
+ const finalPath = modelPath.trimLastStarIfLastToken();
71385
+ deps.push(new DependencyWithoutChecks(finalPath));
71386
+ return gcf(x => x.isValueEqlAutoValue, `"${finalPath.toLegacyPath()}"`);
71387
+ }
71382
71388
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
71383
71389
  (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
71384
71390
  const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
@@ -71683,23 +71689,15 @@ __webpack_require__.r(__webpack_exports__);
71683
71689
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
71684
71690
  /* harmony export */ KCXmlValidationGenerator: () => (/* binding */ KCXmlValidationGenerator)
71685
71691
  /* harmony export */ });
71686
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
71687
- /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
71688
- /* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
71689
- /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
71690
- /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
71691
- /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
71692
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
71692
+ /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
71693
+ /* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
71694
+ /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
71695
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
71696
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
71697
+ /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
71698
+ /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
71693
71699
  /* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
71694
- /* harmony import */ var _ExtendedSchemaInfo__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ExtendedSchemaInfo */ "./Generator/src/generators/ExtendedSchemaInfo.ts");
71695
- /* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
71696
- /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader.ts");
71697
- /* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
71698
- /* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
71699
-
71700
-
71701
-
71702
-
71700
+ /* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
71703
71701
 
71704
71702
 
71705
71703
 
@@ -71712,14 +71710,14 @@ __webpack_require__.r(__webpack_exports__);
71712
71710
  const emptyResult = `
71713
71711
  export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
71714
71712
  `;
71715
- class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.KCXmlGeneratorBase {
71713
+ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.KCXmlGeneratorBase {
71716
71714
  generateConfigurationFunction(kcXmlConditions, options) {
71717
71715
  var _this$generateCalcula;
71718
71716
  const configuration = (_this$generateCalcula = this.generateCalculatorConfiguration(kcXmlConditions, options)) !== null && _this$generateCalcula !== void 0 ? _this$generateCalcula : "";
71719
71717
  if (configuration === undefined) {
71720
71718
  return emptyResult;
71721
71719
  }
71722
- return [`({ form, ap, ValidationFunction, KCCondition, PathTokens }) => {`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_12__.indent)(configuration, 1), `}`].join("\n");
71720
+ return [`({ form, ap, ValidationFunction, KCCondition, PathTokens }) => {`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_1__.indent)(configuration, 1), `}`].join("\n");
71723
71721
  }
71724
71722
  generate(kcXmlConditions, options) {
71725
71723
  const configuration = this.generateCalculatorConfiguration(kcXmlConditions, options);
@@ -71732,86 +71730,42 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
71732
71730
  `;
71733
71731
  }
71734
71732
  generateCalculatorConfiguration(kcXmlConditions, options) {
71735
- const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined).toArray();
71736
- (0,_ExtendedSchemaInfo__WEBPACK_IMPORTED_MODULE_8__.traverseExtendedSchemaInfo)(this.extendedSchemaInfo, (path, node) => {
71737
- var _node$properties;
71738
- if (((_node$properties = node.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.valueEqlAutoValue) != undefined) {
71739
- var _node$properties2, _node$properties$valu, _node$properties3, _node$properties4;
71740
- const severity = ((_node$properties2 = node.properties) === null || _node$properties2 === void 0 ? void 0 : _node$properties2.valueEqlAutoValue) == "warning" ? "Warning" : "Error";
71741
- const errorMessage = (_node$properties$valu = (_node$properties3 = node.properties) === null || _node$properties3 === void 0 ? void 0 : _node$properties3.valueEqlAutoValueErrorMessage) !== null && _node$properties$valu !== void 0 ? _node$properties$valu : _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_9__.AutoValidationMessage;
71742
- const compiledDescription = `expression => ${JSON.stringify(errorMessage)}`;
71743
- const target = this.modelPathInstance(path);
71744
- let compiledValidation = `expression.isValueEqlAutoValue(${target})`;
71745
- let deps = [path];
71746
- if (((_node$properties4 = node.properties) === null || _node$properties4 === void 0 ? void 0 : _node$properties4.valueEqlAutoValueCondition) != undefined) {
71747
- var _node$properties$valu2, _node$properties5, _node$properties6;
71748
- const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)((_node$properties$valu2 = (_node$properties5 = node.properties) === null || _node$properties5 === void 0 ? void 0 : _node$properties5.valueEqlAutoValueConditionContextPath) !== null && _node$properties$valu2 !== void 0 ? _node$properties$valu2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)("Context path must be defined for valueEqlAutoValueCondition"), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
71749
- const conditionDeps = [];
71750
- const formulaExpression = this.getKCXmlExpressionFromKCLangCondition(prefix, (_node$properties6 = node.properties) === null || _node$properties6 === void 0 ? void 0 : _node$properties6.valueEqlAutoValueCondition);
71751
- const kcLangPrefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(Iterator.from(prefix.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken).toArray());
71752
- const compiledCondition = this.compileExpression(kcLangPrefix, path, formulaExpression, conditionDeps);
71753
- const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(conditionDeps.map(x => ({
71754
- path: x.asDependencyModelPath(),
71755
- isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.isDependencyWithoutChecks)(x),
71756
- pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
71757
- })).filter(x => !x.path.isEquals(path)), x => x.pathString));
71758
- deps = [...deps, ...dependencyModelPaths.map(x => x.path)];
71759
- compiledValidation = `expression.when(${compiledCondition}, () => ${compiledValidation})`;
71760
- }
71761
- const compiledDeps = deps.map(x => this.modelPathInstance(x)).join(", ");
71762
- const compiledEvaluator = `context => KCCondition.execute(context, expression => ${compiledValidation}, ${compiledDescription}, ${JSON.stringify(severity)})`;
71763
- const fn = `new ValidationFunction(${target}, [${compiledDeps}], ${compiledEvaluator})`;
71764
- compiledConditions.push(fn);
71765
- }
71766
- });
71733
+ const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined).toArray();
71767
71734
  if (compiledConditions.length === 0) {
71768
71735
  return undefined;
71769
71736
  }
71770
71737
  return compiledConditions.map(x => `form.calculator2.addCalculationFunction(${x});`).join("\n");
71771
71738
  }
71772
- getKCXmlExpressionFromKCLangCondition(prefix, condition) {
71773
- var _kcLangMathContainer$, _kcLangMathContainer$2;
71774
- const kcLangPrefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(Iterator.from(prefix.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken).toArray());
71775
- const fullKcLangExpr = `
71776
- in ${kcLangPrefix.toLegacyPath()} {
71777
- check Test === (${condition}) ? 1 : 0;
71778
- }
71779
- `;
71780
- const formulaReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_10__.FormulaReader();
71781
- const kcLangMathContainer = formulaReader.readFormulas(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_11__.KCLangToXmlTranspiler.transpile(fullKcLangExpr));
71782
- const formulaNode = (_kcLangMathContainer$ = kcLangMathContainer === null || kcLangMathContainer === void 0 || (_kcLangMathContainer$2 = kcLangMathContainer.formulas) === null || _kcLangMathContainer$2 === void 0 || (_kcLangMathContainer$2 = _kcLangMathContainer$2.items) === null || _kcLangMathContainer$2 === void 0 ? void 0 : _kcLangMathContainer$2[0]) !== null && _kcLangMathContainer$ !== void 0 ? _kcLangMathContainer$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)();
71783
- return formulaNode.expression.ifNode.condition;
71784
- }
71785
71739
  skipGetPicklistValues() {
71786
71740
  return false;
71787
71741
  }
71788
71742
  compileCondition(condition, options) {
71789
71743
  var _condition$descriptio, _condition$errorLevel;
71790
- const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
71791
- const target = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
71744
+ const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each).toAbsolute();
71745
+ const target = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each)).normalize());
71792
71746
  const deps = [];
71793
71747
  const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, condition.expression, deps);
71794
- if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError) {
71748
+ if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.NotSupportedError) {
71795
71749
  if (options.skipNotSupportedFunction) {
71796
71750
  return undefined;
71797
71751
  } else {
71798
71752
  throw compiledExpression;
71799
71753
  }
71800
71754
  }
71801
- const compiledDescriptionParts = (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_4__.splitConditionDescriptionToParts)((_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message");
71755
+ const compiledDescriptionParts = (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_6__.splitConditionDescriptionToParts)((_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message");
71802
71756
  let concatDescription;
71803
71757
  if (compiledDescriptionParts.length > 1) {
71804
- concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression();
71758
+ concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_5__.FormulaConcatExpression();
71805
71759
  concatDescription.arguments = compiledDescriptionParts;
71806
71760
  } else {
71807
71761
  concatDescription = compiledDescriptionParts[0];
71808
71762
  }
71809
71763
  const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
71810
71764
  const compiledTarget = this.modelPathInstance(target);
71811
- const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(deps.map(x => ({
71765
+ const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
71812
71766
  path: x.asDependencyModelPath(),
71813
- isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.isDependencyWithoutChecks)(x),
71814
- pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
71767
+ isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.isDependencyWithoutChecks)(x),
71768
+ pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.current ? "!" : token)).toLegacyPath()
71815
71769
  })).filter(x => !x.path.isEquals(target)), x => x.pathString));
71816
71770
  const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
71817
71771
  const conditionFunc = this.isAsync(compiledExpression) ? `async expression => ${compiledExpression}` : `expression => ${compiledExpression}`;
@@ -74824,6 +74778,9 @@ class FormulaExpressionToFlangExpressionConverter {
74824
74778
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
74825
74779
  return this.compiledInstanceCountExpression(prefix, target, expression.select, addPrecalculationRule);
74826
74780
  }
74781
+ if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsEqualToAutoCalculatedExpression) {
74782
+ return this.compileIsEqualToAutoCalculatedExpression(prefix, target, expression.select, expression.type, addPrecalculationRule);
74783
+ }
74827
74784
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
74828
74785
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.LenExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.argument, prefix, target, addPrecalculationRule)));
74829
74786
  }
@@ -75210,6 +75167,21 @@ class FormulaExpressionToFlangExpressionConverter {
75210
75167
  throw new Error(`Instance count with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
75211
75168
  }
75212
75169
  }
75170
+ compileIsEqualToAutoCalculatedExpression(prefix, target, selectPath, selectType, addPrecalculationRule) {
75171
+ const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
75172
+ const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
75173
+ if (!splitInfo.differentPath.isContainIteration()) {
75174
+ const valueRefExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(adjustedSelectPath.toCurrentIteration().normalize(), "value");
75175
+ const autoValueRefExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(adjustedSelectPath.toCurrentIteration().normalize(), "autoValue");
75176
+ if (selectType == "string") {
75177
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(valueRefExpression), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(autoValueRefExpression));
75178
+ } else {
75179
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(valueRefExpression), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(autoValueRefExpression));
75180
+ }
75181
+ } else {
75182
+ throw new Error(`IsEqualToAutoCalculated with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
75183
+ }
75184
+ }
75213
75185
  compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
75214
75186
  const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
75215
75187
  const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
@@ -96971,7 +96943,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
96971
96943
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
96972
96944
  optional: node.dataBinding.optional,
96973
96945
  disabled: node.disabled
96974
- }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addValueEqlAutoValue(node, node.validationInfo, this.getEvaluatorsContextPathExpression()));
96946
+ }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
96975
96947
  }
96976
96948
  doBuildNormalizeRules(builder) {
96977
96949
  const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
@@ -102476,39 +102448,47 @@ __webpack_require__.r(__webpack_exports__);
102476
102448
  /* harmony export */ KCLangCalculationsBuildContext: () => (/* binding */ KCLangCalculationsBuildContext),
102477
102449
  /* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
102478
102450
  /* harmony export */ });
102479
- /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
102480
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
102481
- /* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
102482
- /* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
102483
- /* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
102484
- /* harmony import */ var _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/RegexMatchFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/RegexMatchFunctionCall.ts");
102485
- /* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
102486
- /* harmony import */ var _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DescriptionText */ "./Generator/src/common/KCLang/CodeDom/DescriptionText.ts");
102487
- /* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
102488
- /* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
102489
- /* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
102490
- /* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
102491
- /* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
102492
- /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
102493
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
102494
- /* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
102495
- /* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
102496
- /* harmony import */ var _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/ExistsFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts");
102497
- /* harmony import */ var _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/AndExpression */ "./Generator/src/common/KCLang/CodeDom/AndExpression.ts");
102498
- /* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
102499
- /* harmony import */ var _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/EqExpression */ "./Generator/src/common/KCLang/CodeDom/EqExpression.ts");
102500
- /* harmony import */ var _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/LengthFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/LengthFunctionCall.ts");
102501
- /* harmony import */ var _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DecimalConstExpression */ "./Generator/src/common/KCLang/CodeDom/DecimalConstExpression.ts");
102502
- /* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
102503
- /* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
102504
- /* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
102505
- /* harmony import */ var _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/JoinFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts");
102506
- /* harmony import */ var _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts");
102507
- /* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
102508
- /* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
102509
- /* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
102510
- /* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
102511
- /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
102451
+ /* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
102452
+ /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
102453
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
102454
+ /* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
102455
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
102456
+ /* harmony import */ var _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/AndExpression */ "./Generator/src/common/KCLang/CodeDom/AndExpression.ts");
102457
+ /* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
102458
+ /* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
102459
+ /* harmony import */ var _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DecimalConstExpression */ "./Generator/src/common/KCLang/CodeDom/DecimalConstExpression.ts");
102460
+ /* harmony import */ var _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DescriptionText */ "./Generator/src/common/KCLang/CodeDom/DescriptionText.ts");
102461
+ /* harmony import */ var _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/EqExpression */ "./Generator/src/common/KCLang/CodeDom/EqExpression.ts");
102462
+ /* harmony import */ var _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/ExistsFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts");
102463
+ /* harmony import */ var _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts");
102464
+ /* harmony import */ var _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/JoinFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts");
102465
+ /* harmony import */ var _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/LengthFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/LengthFunctionCall.ts");
102466
+ /* harmony import */ var _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/RegexMatchFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/RegexMatchFunctionCall.ts");
102467
+ /* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
102468
+ /* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
102469
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
102470
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
102471
+ /* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
102472
+ /* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
102473
+ /* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
102474
+ /* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
102475
+ /* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
102476
+ /* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
102477
+ /* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
102478
+ /* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
102479
+ /* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
102480
+ /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
102481
+ /* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
102482
+ /* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
102483
+ /* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
102484
+ /* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
102485
+ /* harmony import */ var _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/IsEqualToAutoCalculatedFunctionCall.ts");
102486
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangRawStringExpression */ "./Generator/src/common/KCLang/CodeDom/KCLangRawStringExpression.ts");
102487
+ /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
102488
+
102489
+
102490
+
102491
+
102512
102492
 
102513
102493
 
102514
102494
 
@@ -102561,7 +102541,7 @@ class KCLangCalculationsBuildContext {
102561
102541
  const baseDescription = (_typeNode$description = typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _typeNode$description !== void 0 ? _typeNode$description : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description;
102562
102542
  const valueChecks = [];
102563
102543
  if (baseName != undefined) {
102564
- valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__.omitLocalization)(baseDescription))).toArray());
102544
+ valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)(baseDescription))).toArray());
102565
102545
  }
102566
102546
  valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
102567
102547
  const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
@@ -102569,24 +102549,24 @@ class KCLangCalculationsBuildContext {
102569
102549
  var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2, _IterUtils$last;
102570
102550
  const requiredDescription = (_ref = (_ref2 = (_ref3 = (_ref4 = highOrderDescription !== null && highOrderDescription !== void 0 ? highOrderDescription : typeNode === null || typeNode === void 0 ? void 0 : typeNode.requiredDescription) !== null && _ref4 !== void 0 ? _ref4 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.requiredDescription) !== null && _ref3 !== void 0 ? _ref3 : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref2 !== void 0 ? _ref2 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _ref !== void 0 ? _ref : "Поле должно быть заполнено";
102571
102551
  const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
102572
- let allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__.FormSchemaRngElement ? this.schemaRng.getAllChildValueNodes(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_30__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration()) : undefined;
102573
- if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) > _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_31__.maxOptionalChildrenLimit) {
102552
+ let allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement ? this.schemaRng.getAllChildValueNodes(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_3__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration()) : undefined;
102553
+ if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) > _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_32__.maxOptionalChildrenLimit) {
102574
102554
  allChildrenPaths = undefined;
102575
102555
  }
102576
- const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_18__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_17__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_16__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("")))).reduce(combineByAndKCLangExpr, undefined);
102577
- const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_18__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_17__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(targetPath))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_16__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(targetPath)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression(""))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__.omitLocalization)(requiredDescription))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken))) !== null && _IterUtils$last !== void 0 ? _IterUtils$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))]);
102556
+ const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(childPath, true))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(childPath, true)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("")))).reduce(combineByAndKCLangExpr, undefined);
102557
+ const checkRequiredStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(""))), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)(requiredDescription))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken))) !== null && _IterUtils$last !== void 0 ? _IterUtils$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
102578
102558
  if (restChecks != undefined) {
102579
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_15__.IfStatement(restChecks, [checkRequiredStatement]);
102559
+ yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(restChecks, [checkRequiredStatement]);
102580
102560
  } else {
102581
102561
  yield checkRequiredStatement;
102582
102562
  }
102583
102563
  }
102584
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_15__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_18__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_17__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(targetPath))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_16__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(targetPath)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression(""))), valueChecks);
102564
+ yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(""))), valueChecks);
102585
102565
  }
102586
102566
  getFirstAcceptedParent(schemaNode) {
102587
102567
  let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
102588
102568
  while (parentNode != undefined) {
102589
- if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__.FormSchemaRngElement) {
102569
+ if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement) {
102590
102570
  var _parentNode$multiple;
102591
102571
  if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
102592
102572
  return parentNode;
@@ -102603,174 +102583,158 @@ class KCLangCalculationsBuildContext {
102603
102583
  }
102604
102584
  createCheck(targetPath, condition, message, checkType) {
102605
102585
  var _IterUtils$last2;
102606
- const withBlocks = [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText(message.replace(/\[/gi, "\\[").replace(/]/gi, "\\]"))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last2 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken))) !== null && _IterUtils$last2 !== void 0 ? _IterUtils$last2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))];
102586
+ const withBlocks = [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(message.replace(/\[/gi, "\\[").replace(/]/gi, "\\]"))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last2 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken))) !== null && _IterUtils$last2 !== void 0 ? _IterUtils$last2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))];
102607
102587
  if (checkType == "warning") {
102608
- withBlocks.push(new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("errorLevel", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText("Warning")));
102588
+ withBlocks.push(new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("errorLevel", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText("Warning")));
102609
102589
  }
102610
- return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(condition, withBlocks);
102590
+ return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(condition, withBlocks);
102611
102591
  }
102612
102592
  *createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId) {
102613
- var _typeNode$checkType, _typeNode$children$fi, _typeNode$children, _schemaTypeNode$enume, _digest$gId, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMaxInclusive, _typeNode$children7, _typeNodeTotalDigits$, _typeNode$children$fi2, _typeNode$children8, _typeNode$children9, _typeNode$children$fi3, _typeNode$children10, _schemaTypeNode$patte, _typeNode$children11, _typeNodeInteger$valu, _typeNode$children12, _typeNodeFractional$v;
102593
+ var _typeNode$checkType, _typeNode$children$fi, _typeNode$children, _schemaTypeNode$enume, _digest$gId, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMaxInclusive, _typeNode$children7, _typeNodeTotalDigits$, _typeNode$children$fi2, _typeNode$children8, _typeNode$children9, _typeNode$children$fi3, _typeNode$children10, _schemaTypeNode$patte, _typeNode$children11, _typeNodeInteger$valu, _typeNode$children12, _typeNodeFractional$v, _ref10, _typeNode$children$fi4, _typeNode$children13, _typeNode$children14, _typeNode$base2;
102614
102594
  const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
102615
- const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 || (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 || (_typeNode$children = _typeNode$children.filter(x => x instanceof _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.EnumerationTypeCheckNode)) === null || _typeNode$children === void 0 ? void 0 : _typeNode$children.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
102616
- const enumerationItems = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.arrayIsNotEmpty)(typeNodeEnumerations) ? typeNodeEnumerations : (_schemaTypeNode$enume = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.enumeration) !== null && _schemaTypeNode$enume !== void 0 ? _schemaTypeNode$enume : [];
102595
+ const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 || (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 || (_typeNode$children = _typeNode$children.filter(x => x instanceof _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.EnumerationTypeCheckNode)) === null || _typeNode$children === void 0 ? void 0 : _typeNode$children.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
102596
+ const enumerationItems = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(typeNodeEnumerations) ? typeNodeEnumerations : (_schemaTypeNode$enume = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.enumeration) !== null && _schemaTypeNode$enume !== void 0 ? _schemaTypeNode$enume : [];
102617
102597
  const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
102618
102598
  var _ref5, _ref6, _ref7, _omitLocalization;
102619
- return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref5 !== void 0 ? _ref5 : "Поле должно быть заполнено";
102599
+ return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)(sugarTypeCheckDescription)) !== null && _omitLocalization !== void 0 ? _omitLocalization : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)(sugarTypeDescription)) !== null && _ref7 !== void 0 ? _ref7 : (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)(schemaTypeDescription)) !== null && _ref6 !== void 0 ? _ref6 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref5 !== void 0 ? _ref5 : "Поле должно быть заполнено";
102620
102600
  };
102621
- const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(targetPath));
102622
- const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default);
102623
- if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.arrayIsNotEmpty)(enumerationItems)) {
102624
- yield this.createCheck(targetPath, new _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_19__.OneOfExpression(stringValueReference, enumerationItems.map(item => new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression(item))), makeMessage({
102601
+ const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath));
102602
+ const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default);
102603
+ if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(enumerationItems)) {
102604
+ yield this.createCheck(targetPath, new _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_23__.OneOfExpression(stringValueReference, enumerationItems.map(item => new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(item))), makeMessage({
102625
102605
  enumerationAllowedValues: enumerationItems
102626
102606
  }, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
102627
102607
  }
102628
- const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.DigestcheckTypeCheckNode).find(x => x);
102608
+ const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.DigestcheckTypeCheckNode).find(x => x);
102629
102609
  const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
102630
- if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.isNotNullOrEmpty)(gId) && digest != undefined) {
102610
+ if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrEmpty)(gId) && digest != undefined) {
102631
102611
  var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
102632
102612
  // const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
102633
- const ruleBody = new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_29__.NotExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_17__.ExistsFunctionCall(valueReferenceExpression)), new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_20__.EqExpression(stringValueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression(""))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_16__.NotEqExpression(new _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_26__.JoinFunctionCall(new _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_27__.GetPicklistValuesFunctionCall(gId, [(_digest$keyColumnName = digest.keyColumnName) !== null && _digest$keyColumnName !== void 0 ? _digest$keyColumnName : "code"], new _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_28__.StringArrayConstExpression([stringValueReference]), (_digest$keyColumnName2 = digest.keyColumnName) !== null && _digest$keyColumnName2 !== void 0 ? _digest$keyColumnName2 : "code")), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("")));
102634
- yield this.createCheck(targetPath, ruleBody, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_32__.omitLocalization)((_ref8 = (_digest$description = digest.description) !== null && _digest$description !== void 0 ? _digest$description : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref8 !== void 0 ? _ref8 : "Поле заполнено не по справочнику"), (_ref9 = (_digest$checkType = digest.checkType) !== null && _digest$checkType !== void 0 ? _digest$checkType : typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _ref9 !== void 0 ? _ref9 : "error");
102613
+ const ruleBody = new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_22__.NotExpression(new _common_KCLang_CodeDom_Functions_ExistsFunctionCall__WEBPACK_IMPORTED_MODULE_11__.ExistsFunctionCall(valueReferenceExpression)), new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__.EqExpression(stringValueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(""))), new _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__.NotEqExpression(new _common_KCLang_CodeDom_Functions_JoinFunctionCall__WEBPACK_IMPORTED_MODULE_13__.JoinFunctionCall(new _common_KCLang_CodeDom_Functions_GetPicklistValuesFunctionCall__WEBPACK_IMPORTED_MODULE_12__.GetPicklistValuesFunctionCall(gId, [(_digest$keyColumnName = digest.keyColumnName) !== null && _digest$keyColumnName !== void 0 ? _digest$keyColumnName : "code"], new _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_25__.StringArrayConstExpression([stringValueReference]), (_digest$keyColumnName2 = digest.keyColumnName) !== null && _digest$keyColumnName2 !== void 0 ? _digest$keyColumnName2 : "code")), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("")));
102614
+ yield this.createCheck(targetPath, ruleBody, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)((_ref8 = (_digest$description = digest.description) !== null && _digest$description !== void 0 ? _digest$description : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref8 !== void 0 ? _ref8 : "Поле заполнено не по справочнику"), (_ref9 = (_digest$checkType = digest.checkType) !== null && _digest$checkType !== void 0 ? _digest$checkType : typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _ref9 !== void 0 ? _ref9 : "error");
102635
102615
  }
102636
- const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.LengthTypeCheckNode));
102616
+ const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.LengthTypeCheckNode));
102637
102617
  const lengthValue = (_typeNodeLength$value = typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.value) !== null && _typeNodeLength$value !== void 0 ? _typeNodeLength$value : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.length;
102638
102618
  if (lengthValue != undefined) {
102639
102619
  var _typeNodeLength$check;
102640
- yield this.createCheck(targetPath, new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_20__.EqExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_21__.LengthFunctionCall(stringValueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(lengthValue)), makeMessage({
102620
+ yield this.createCheck(targetPath, new _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__.EqExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(stringValueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(lengthValue)), makeMessage({
102641
102621
  length: lengthValue
102642
102622
  }, typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), (_typeNodeLength$check = typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.checkType) !== null && _typeNodeLength$check !== void 0 ? _typeNodeLength$check : checkType);
102643
102623
  }
102644
102624
  const valueReference = stringValueReference;
102645
102625
  const decimalValueReference = valueReferenceExpression;
102646
- const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MinlengthTypeCheckNode));
102626
+ const typeNodeMinLength = typeNode === null || typeNode === void 0 || (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MinlengthTypeCheckNode));
102647
102627
  const minLengthValue = (_typeNodeMinLength$va = typeNodeMinLength === null || typeNodeMinLength === void 0 ? void 0 : typeNodeMinLength.value) !== null && _typeNodeMinLength$va !== void 0 ? _typeNodeMinLength$va : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minLength;
102648
- const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxlengthTypeCheckNode));
102628
+ const typeNodeMaxLength = typeNode === null || typeNode === void 0 || (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MaxlengthTypeCheckNode));
102649
102629
  const maxLengthValue = (_typeNodeMaxLength$va = typeNodeMaxLength === null || typeNodeMaxLength === void 0 ? void 0 : typeNodeMaxLength.value) !== null && _typeNodeMaxLength$va !== void 0 ? _typeNodeMaxLength$va : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxLength;
102650
102630
  if (minLengthValue != undefined && maxLengthValue != undefined) {
102651
102631
  var _typeNodeMinLength$de;
102652
- const lengthExprRuleBody = new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_18__.AndExpression(new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_23__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_21__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(minLengthValue)), new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_24__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_21__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(maxLengthValue)));
102632
+ const lengthExprRuleBody = new _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__.AndExpression(new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minLengthValue)), new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxLengthValue)));
102653
102633
  yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
102654
102634
  minLength: minLengthValue,
102655
102635
  maxLength: maxLengthValue
102656
102636
  }, (_typeNodeMinLength$de = typeNodeMinLength === null || typeNodeMinLength === void 0 ? void 0 : typeNodeMinLength.description) !== null && _typeNodeMinLength$de !== void 0 ? _typeNodeMinLength$de : typeNodeMaxLength === null || typeNodeMaxLength === void 0 ? void 0 : typeNodeMaxLength.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
102657
102637
  } else if (minLengthValue != undefined) {
102658
- const lengthExprRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_23__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_21__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(minLengthValue));
102638
+ const lengthExprRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__.GeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minLengthValue));
102659
102639
  yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
102660
102640
  minLength: minLengthValue
102661
102641
  }, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
102662
102642
  } else if (maxLengthValue != undefined) {
102663
- const lengthExprRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_24__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_21__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(maxLengthValue));
102643
+ const lengthExprRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__.LeExpression(new _common_KCLang_CodeDom_Functions_LengthFunctionCall__WEBPACK_IMPORTED_MODULE_14__.LengthFunctionCall(valueReference), new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxLengthValue));
102664
102644
  yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
102665
102645
  maxLength: maxLengthValue
102666
102646
  }, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
102667
102647
  }
102668
- const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MininclusiveTypeCheckNode));
102648
+ const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MininclusiveTypeCheckNode));
102669
102649
  const minInclusiveValue = (_typeNodeMinInclusive = typeNodeMinInclusive === null || typeNodeMinInclusive === void 0 ? void 0 : typeNodeMinInclusive.value) !== null && _typeNodeMinInclusive !== void 0 ? _typeNodeMinInclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minInclusive;
102670
102650
  if (minInclusiveValue != undefined) {
102671
- const minInclusiveRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_23__.GeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(minInclusiveValue));
102651
+ const minInclusiveRuleBody = new _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__.GeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(minInclusiveValue));
102672
102652
  yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
102673
102653
  minInclusive: minInclusiveValue
102674
102654
  }, typeNodeMinInclusive === null || typeNodeMinInclusive === void 0 ? void 0 : typeNodeMinInclusive.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
102675
102655
  }
102676
- const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxinclusiveTypeCheckNode));
102656
+ const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.MaxinclusiveTypeCheckNode));
102677
102657
  const maxInclusiveValue = (_typeNodeMaxInclusive = typeNodeMaxInclusive === null || typeNodeMaxInclusive === void 0 ? void 0 : typeNodeMaxInclusive.value) !== null && _typeNodeMaxInclusive !== void 0 ? _typeNodeMaxInclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxInclusive;
102678
102658
  if (maxInclusiveValue != undefined) {
102679
- const maxInclusiveRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_24__.LeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_22__.DecimalConstExpression(maxInclusiveValue));
102659
+ const maxInclusiveRuleBody = new _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__.LeExpression(decimalValueReference, new _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__.DecimalConstExpression(maxInclusiveValue));
102680
102660
  yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
102681
102661
  maxInclusive: maxInclusiveValue
102682
102662
  }, typeNodeMaxInclusive === null || typeNodeMaxInclusive === void 0 ? void 0 : typeNodeMaxInclusive.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
102683
102663
  }
102684
- const isDecimalCondition = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))"));
102685
- const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.TotaldigitsTypeCheckNode));
102664
+ const isDecimalCondition = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))"));
102665
+ const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.TotaldigitsTypeCheckNode));
102686
102666
  const totalDigitsValue = (_typeNodeTotalDigits$ = typeNodeTotalDigits === null || typeNodeTotalDigits === void 0 ? void 0 : typeNodeTotalDigits.value) !== null && _typeNodeTotalDigits$ !== void 0 ? _typeNodeTotalDigits$ : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.totalDigits;
102687
102667
  if (totalDigitsValue != undefined) {
102688
- const totalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^-?(\\.?\\d){0," + totalDigitsValue.toString() + "}$"));
102689
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_15__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
102668
+ const totalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?(\\.?\\d){0," + totalDigitsValue.toString() + "}$"));
102669
+ yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
102690
102670
  totalDigitsMaxCount: totalDigitsValue
102691
102671
  }, typeNodeTotalDigits === null || typeNodeTotalDigits === void 0 ? void 0 : typeNodeTotalDigits.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType)]);
102692
102672
  }
102693
- const typeNodePatterns = (_typeNode$children$fi2 = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.PatternTypeCheckNode)).map(x => x.value).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.isNotNullOrUndefined)) !== null && _typeNode$children$fi2 !== void 0 ? _typeNode$children$fi2 : [];
102694
- const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 || (_typeNode$children9 = _typeNode$children9.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.isNotNullOrUndefined)) === null || _typeNode$children9 === void 0 || (_typeNode$children9 = _typeNode$children9[0]) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.description;
102695
- const firstItemCheckType = (_typeNode$children$fi3 = typeNode === null || typeNode === void 0 || (_typeNode$children10 = typeNode.children) === null || _typeNode$children10 === void 0 || (_typeNode$children10 = _typeNode$children10.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.isNotNullOrUndefined)) === null || _typeNode$children10 === void 0 || (_typeNode$children10 = _typeNode$children10[0]) === null || _typeNode$children10 === void 0 ? void 0 : _typeNode$children10.checkType) !== null && _typeNode$children$fi3 !== void 0 ? _typeNode$children$fi3 : checkType;
102696
- const stringPatterns = ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.arrayIsNotEmpty)(typeNodePatterns) ? typeNodePatterns : (_schemaTypeNode$patte = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.patterns) !== null && _schemaTypeNode$patte !== void 0 ? _schemaTypeNode$patte : []).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.isNotNullOrUndefined);
102697
- const patterns = stringPatterns.map(pattern => new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression(pattern))).reduce((acc, current) => acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(acc, current) : current, undefined);
102673
+ const typeNodePatterns = (_typeNode$children$fi2 = typeNode === null || typeNode === void 0 || (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.PatternTypeCheckNode)).map(x => x.value).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) !== null && _typeNode$children$fi2 !== void 0 ? _typeNode$children$fi2 : [];
102674
+ const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 || (_typeNode$children9 = _typeNode$children9.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) === null || _typeNode$children9 === void 0 || (_typeNode$children9 = _typeNode$children9[0]) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.description;
102675
+ const firstItemCheckType = (_typeNode$children$fi3 = typeNode === null || typeNode === void 0 || (_typeNode$children10 = typeNode.children) === null || _typeNode$children10 === void 0 || (_typeNode$children10 = _typeNode$children10.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.PatternTypeCheckNode)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) === null || _typeNode$children10 === void 0 || (_typeNode$children10 = _typeNode$children10[0]) === null || _typeNode$children10 === void 0 ? void 0 : _typeNode$children10.checkType) !== null && _typeNode$children$fi3 !== void 0 ? _typeNode$children$fi3 : checkType;
102676
+ const stringPatterns = ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(typeNodePatterns) ? typeNodePatterns : (_schemaTypeNode$patte = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.patterns) !== null && _schemaTypeNode$patte !== void 0 ? _schemaTypeNode$patte : []).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined);
102677
+ const patterns = stringPatterns.map(pattern => new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression(pattern))).reduce((acc, current) => acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(acc, current) : current, undefined);
102698
102678
  if (patterns != undefined) {
102699
102679
  const stringPatternsRuleBody = patterns;
102700
102680
  yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
102701
102681
  patterns: stringPatterns
102702
102682
  }, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
102703
102683
  }
102704
- const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 ? void 0 : _typeNode$children11.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.IntegerdigitsTypeCheckNode));
102684
+ const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 ? void 0 : _typeNode$children11.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.IntegerdigitsTypeCheckNode));
102705
102685
  const integerDigits = (_typeNodeInteger$valu = typeNodeInteger === null || typeNodeInteger === void 0 ? void 0 : typeNodeInteger.value) !== null && _typeNodeInteger$valu !== void 0 ? _typeNodeInteger$valu : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.integerDigits;
102706
102686
  if (integerDigits != undefined) {
102707
- const integerDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^-?\\d{0," + integerDigits.toString() + "}(([.]\\d+$)|($))"));
102708
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_15__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
102687
+ const integerDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d{0," + integerDigits.toString() + "}(([.]\\d+$)|($))"));
102688
+ yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
102709
102689
  integerDigitsMaxCount: integerDigits
102710
102690
  }, typeNodeInteger === null || typeNodeInteger === void 0 ? void 0 : typeNodeInteger.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType)]);
102711
102691
  }
102712
- const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children12 = typeNode.children) === null || _typeNode$children12 === void 0 ? void 0 : _typeNode$children12.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.FractiondigitsTypeCheckNode));
102692
+ const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children12 = typeNode.children) === null || _typeNode$children12 === void 0 ? void 0 : _typeNode$children12.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.FractiondigitsTypeCheckNode));
102713
102693
  const fractionalDigits = (_typeNodeFractional$v = typeNodeFractional === null || typeNodeFractional === void 0 ? void 0 : typeNodeFractional.value) !== null && _typeNodeFractional$v !== void 0 ? _typeNodeFractional$v : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.fractionDigits;
102714
102694
  if (fractionalDigits != undefined) {
102715
- const fractionalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^-?\\d+(([.]\\d{0," + fractionalDigits.toString() + "}$)|($))"));
102716
- yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_15__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
102695
+ const fractionalDigitsRuleBody = new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(valueReference, new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+(([.]\\d{0," + fractionalDigits.toString() + "}$)|($))"));
102696
+ yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
102717
102697
  fractionalDigitsMaxCount: fractionalDigits
102718
102698
  }, typeNodeFractional === null || typeNodeFractional === void 0 ? void 0 : typeNodeFractional.description, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType)]);
102719
102699
  }
102720
-
102721
- // const valueEqlAutoValueErrorLevel =
102722
- // typeNode?.children?.find(ofType(ValueEqlAutoValueTypeCheck))?.level ??
102723
- // typeNode?.children?.find(ofType(ValueEqlAutoValueTypeCheckNode))?.level ??
102724
- // schemaTypeNode?.valueEqlAutoValue;
102725
- //
102726
- // if (valueEqlAutoValueErrorLevel != undefined) {
102727
- // const isDecimal = schemaTypeNode?.baseType === "decimal";
102728
- // const validationCondition =
102729
- // typeNode?.children?.find(ofType(ValueEqlAutoValueTypeCheck))?.condition ??
102730
- // typeNode?.children?.find(ofType(ValueEqlAutoValueTypeCheckNode))?.condition;
102731
- //
102732
- // const condition = this.wrapVisibleSugarNodeConditionIfNeed(
102733
- // new NegateUnaryExpression(
102734
- // new IsEqualsBinaryExpression(
102735
- // decimalWrapper(valueReference, isDecimal),
102736
- // decimalWrapper(autoValueReference, isDecimal)
102737
- // )
102738
- // ),
102739
- // targetPath,
102740
- // valueEqlAutoValueErrorLevel,
102741
- // validationCondition
102742
- // );
102743
- //
102744
- // yield {
102745
- // condition: condition,
102746
- // message: makeMessage({ autoValue: true }),
102747
- // checkType: valueEqlAutoValueErrorLevel,
102748
- // };
102749
- // }
102700
+ const valueEqlAutoValueErrorLevel = (_ref10 = (_typeNode$children$fi4 = typeNode === null || typeNode === void 0 || (_typeNode$children13 = typeNode.children) === null || _typeNode$children13 === void 0 || (_typeNode$children13 = _typeNode$children13.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children13 === void 0 ? void 0 : _typeNode$children13.level) !== null && _typeNode$children$fi4 !== void 0 ? _typeNode$children$fi4 : typeNode === null || typeNode === void 0 || (_typeNode$children14 = typeNode.children) === null || _typeNode$children14 === void 0 || (_typeNode$children14 = _typeNode$children14.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children14 === void 0 ? void 0 : _typeNode$children14.level) !== null && _ref10 !== void 0 ? _ref10 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.valueEqlAutoValue;
102701
+ const baseName = (_typeNode$base2 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base2 !== void 0 ? _typeNode$base2 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.baseType;
102702
+ if (valueEqlAutoValueErrorLevel != undefined) {
102703
+ var _typeNode$children$fi5, _typeNode$children15, _typeNode$children16, _typeNode$children$fi6, _typeNode$children17, _typeNode$children18;
102704
+ const isDecimal = baseName == "decimal";
102705
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
102706
+ (_typeNode$children$fi5 = typeNode === null || typeNode === void 0 || (_typeNode$children15 = typeNode.children) === null || _typeNode$children15 === void 0 || (_typeNode$children15 = _typeNode$children15.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children15 === void 0 ? void 0 : _typeNode$children15.condition) !== null && _typeNode$children$fi5 !== void 0 ? _typeNode$children$fi5 : typeNode === null || typeNode === void 0 || (_typeNode$children16 = typeNode.children) === null || _typeNode$children16 === void 0 || (_typeNode$children16 = _typeNode$children16.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children16 === void 0 ? void 0 : _typeNode$children16.condition;
102707
+ const validationCondition = (_typeNode$children$fi6 = typeNode === null || typeNode === void 0 || (_typeNode$children17 = typeNode.children) === null || _typeNode$children17 === void 0 || (_typeNode$children17 = _typeNode$children17.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__.ValueEqlAutoValueTypeCheck))) === null || _typeNode$children17 === void 0 ? void 0 : _typeNode$children17.condition) !== null && _typeNode$children$fi6 !== void 0 ? _typeNode$children$fi6 : typeNode === null || typeNode === void 0 || (_typeNode$children18 = typeNode.children) === null || _typeNode$children18 === void 0 || (_typeNode$children18 = _typeNode$children18.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.ValueEqlAutoValueTypeCheckNode))) === null || _typeNode$children18 === void 0 ? void 0 : _typeNode$children18.condition;
102708
+ let result = this.createCheck(targetPath, new _common_KCLang_CodeDom_Functions_IsEqualToAutoCalculatedFunctionCall__WEBPACK_IMPORTED_MODULE_34__.IsEqualToAutoCalculatedFunctionCall(isDecimal ? new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.DecimalType.default) : new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default)), _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__.AutoValidationMessage, valueEqlAutoValueErrorLevel !== null && valueEqlAutoValueErrorLevel !== void 0 ? valueEqlAutoValueErrorLevel : checkType);
102709
+ if (validationCondition != undefined) {
102710
+ result = new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(new _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_35__.KCLangRawStringExpression(validationCondition, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.BoolType.default), [result]);
102711
+ }
102712
+ yield result;
102713
+ }
102750
102714
  }
102751
102715
  *createBaseTypeValidation(targetPath, baseType, baseDescription) {
102752
102716
  var _IterUtils$last3, _IterUtils$last4, _IterUtils$last5, _IterUtils$last6, _IterUtils$last7;
102753
- const targetAttributeName = Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isSimpleToken);
102754
- const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(targetPath);
102717
+ const targetAttributeName = Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken);
102718
+ const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath);
102755
102719
  switch (baseType) {
102756
102720
  case "string":
102757
102721
  case "pattern":
102758
102722
  case "boolean":
102759
102723
  return;
102760
102724
  case "integer":
102761
- yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^-?\\d+$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last3 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last3 !== void 0 ? _IterUtils$last3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))]);
102725
+ yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last3 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last3 !== void 0 ? _IterUtils$last3 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
102762
102726
  break;
102763
102727
  case "decimal":
102764
- yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last4 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last4 !== void 0 ? _IterUtils$last4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))]);
102728
+ yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^-?\\d+(([.]\\d+$)|($))")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last4 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last4 !== void 0 ? _IterUtils$last4 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
102765
102729
  break;
102766
102730
  case "date":
102767
- yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^(0[1-9]|[12][0-9]|3[01])\\.(0[1-9]|1[012])\\.(19|20)[0-9]{2}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last5 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last5 !== void 0 ? _IterUtils$last5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))]);
102731
+ yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^(0[1-9]|[12][0-9]|3[01])\\.(0[1-9]|1[012])\\.(19|20)[0-9]{2}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last5 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last5 !== void 0 ? _IterUtils$last5 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
102768
102732
  break;
102769
102733
  case "gYear":
102770
- yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^\\d{4}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last6 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last6 !== void 0 ? _IterUtils$last6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))]);
102734
+ yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^\\d{4}$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last6 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last6 !== void 0 ? _IterUtils$last6 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
102771
102735
  break;
102772
102736
  case "gMonth":
102773
- yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_4__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_5__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_10__.StringConstExpression("^(--(0[1-9]|1[0-2]))$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_3__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_6__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_7__.DescriptionText((_IterUtils$last7 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_13__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last7 !== void 0 ? _IterUtils$last7 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_14__.reject)()))]);
102737
+ yield new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_Functions_RegexMatchFunctionCall__WEBPACK_IMPORTED_MODULE_15__.RegexMatchFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(path), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__.StringConstExpression("^(--(0[1-9]|1[0-2]))$")), [new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("description", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))), new _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__.WithBlock("target", new _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__.DescriptionText((_IterUtils$last7 = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.last(targetAttributeName)) !== null && _IterUtils$last7 !== void 0 ? _IterUtils$last7 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)()))]);
102774
102738
  break;
102775
102739
  default:
102776
102740
  throw new Error(`Unknown base type name: '${baseType}'`);
@@ -102779,7 +102743,7 @@ class KCLangCalculationsBuildContext {
102779
102743
  }
102780
102744
  }
102781
102745
  function combineByAndKCLangExpr(acc, current) {
102782
- return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_25__.OrExpression(acc, current) : current;
102746
+ return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(acc, current) : current;
102783
102747
  }
102784
102748
 
102785
102749
  /***/ }),