@kontur.candy/generator 5.86.0-nds-8941.0 → 5.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +431 -471
- 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
|
|
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$
|
|
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$
|
|
50656
|
-
const startParam = (_params$
|
|
50657
|
-
const lengthParam = (_params$
|
|
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$
|
|
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$
|
|
50681
|
-
const sourceKeyPathParam = (_params$
|
|
50682
|
-
const sourceValuePathParam = (_params$
|
|
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$
|
|
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$
|
|
50705
|
-
const sourceKeyPathParam = (_params$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
50860
|
-
const amountParam = (_params$
|
|
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$
|
|
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$
|
|
50882
|
-
const amountParam = (_params$
|
|
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$
|
|
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$
|
|
50904
|
-
const amountParam = (_params$
|
|
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$
|
|
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$
|
|
50926
|
-
const formatParam = (_params$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
50977
|
-
const sourceValuePathParam = (_params$
|
|
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$
|
|
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$
|
|
50995
|
-
const targetKeysParam = (_params$
|
|
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$
|
|
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$
|
|
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":
|
|
@@ -61649,6 +61702,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
61649
61702
|
return `<m:count select="${printPath(expression.select)}" />`;
|
|
61650
61703
|
case "instanceCount":
|
|
61651
61704
|
return `<m:instanceCount select="${printPath(expression.select)}" />`;
|
|
61705
|
+
case "isEqualToAutoCalculated":
|
|
61706
|
+
return `<m:isEqualToAutoCalculated select="${printPath(expression.select)}" type="${expression.targetType}" />`;
|
|
61652
61707
|
case "join":
|
|
61653
61708
|
return [`<m:join>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.array, prefixPath), 2), `</m:join>`].join("\n");
|
|
61654
61709
|
case "property":
|
|
@@ -61788,6 +61843,11 @@ function guessConditionTarget(condition) {
|
|
|
61788
61843
|
result = node.select;
|
|
61789
61844
|
}
|
|
61790
61845
|
}
|
|
61846
|
+
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
61847
|
+
if (result == undefined) {
|
|
61848
|
+
result = node.select;
|
|
61849
|
+
}
|
|
61850
|
+
}
|
|
61791
61851
|
}
|
|
61792
61852
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
61793
61853
|
return result;
|
|
@@ -61853,6 +61913,11 @@ function inferConditionTarget(condition, targetValue) {
|
|
|
61853
61913
|
result = node.select;
|
|
61854
61914
|
}
|
|
61855
61915
|
}
|
|
61916
|
+
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
61917
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
61918
|
+
result = node.select;
|
|
61919
|
+
}
|
|
61920
|
+
}
|
|
61856
61921
|
}
|
|
61857
61922
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
61858
61923
|
return result;
|
|
@@ -62053,12 +62118,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62053
62118
|
/* harmony export */ });
|
|
62054
62119
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
62055
62120
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
62056
|
-
/* harmony import */ var
|
|
62057
|
-
/* harmony import */ var
|
|
62058
|
-
/* harmony import */ var
|
|
62059
|
-
/* harmony import */ var
|
|
62060
|
-
/* harmony import */ var _SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SchemaRngSerializer */ "./Generator/src/common/SchemaRng/SchemaRngSerializer.ts");
|
|
62061
|
-
|
|
62121
|
+
/* harmony import */ var _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPathBuilder */ "./Common/ModelPath/ModelPathBuilder.ts");
|
|
62122
|
+
/* harmony import */ var _generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../generators/validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
62123
|
+
/* harmony import */ var _Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
62124
|
+
/* harmony import */ var _SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SchemaRngSerializer */ "./Generator/src/common/SchemaRng/SchemaRngSerializer.ts");
|
|
62062
62125
|
|
|
62063
62126
|
|
|
62064
62127
|
|
|
@@ -62181,7 +62244,7 @@ class FormSchemaRng {
|
|
|
62181
62244
|
return this.createFromSchemaRng(`<element name="Root" />`);
|
|
62182
62245
|
}
|
|
62183
62246
|
static createFromSchemaRng(schemaRngXmlContent) {
|
|
62184
|
-
const schemaRngElement = (0,
|
|
62247
|
+
const schemaRngElement = (0,_SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_5__.deserializeSchemaRng)(schemaRngXmlContent);
|
|
62185
62248
|
return new FormSchemaRng(this.convertSchemaRngElement(schemaRngElement, RootParent));
|
|
62186
62249
|
}
|
|
62187
62250
|
static convertSchemaRngElement(schemaRngElement, parent) {
|
|
@@ -62213,23 +62276,23 @@ class FormSchemaRng {
|
|
|
62213
62276
|
const result = new FormSchemaRngTypeInfo(this.toCandyBaseType(type));
|
|
62214
62277
|
result.description = type.description;
|
|
62215
62278
|
result.requiredDescription = type.requiredDescription;
|
|
62216
|
-
const enumerations = type.children.filter((0,
|
|
62279
|
+
const enumerations = type.children.filter((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.EnumerationTypeCheck));
|
|
62217
62280
|
if (enumerations.length > 0) {
|
|
62218
62281
|
result.enumeration = enumerations.map(x => x.value);
|
|
62219
62282
|
}
|
|
62220
|
-
const patternTypeChecks = type.children.filter((0,
|
|
62283
|
+
const patternTypeChecks = type.children.filter((0,_generators_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.ofType)(_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_4__.PatternTypeCheck));
|
|
62221
62284
|
if (patternTypeChecks.length > 0) {
|
|
62222
62285
|
result.patterns = patternTypeChecks.map(x => x.value);
|
|
62223
62286
|
}
|
|
62224
|
-
result.length = (_type$children$find = type.children.find((0,
|
|
62225
|
-
result.minLength = (_type$children$find2 = type.children.find((0,
|
|
62226
|
-
result.valueEqlAutoValue = (_type$children$find3 = type.children.find((0,
|
|
62227
|
-
result.maxLength = (_type$children$find4 = type.children.find((0,
|
|
62228
|
-
result.totalDigits = (_type$children$find5 = type.children.find((0,
|
|
62229
|
-
result.integerDigits = (_type$children$find6 = type.children.find((0,
|
|
62230
|
-
result.fractionDigits = (_type$children$find7 = type.children.find((0,
|
|
62231
|
-
result.minInclusive = (_type$children$find8 = type.children.find((0,
|
|
62232
|
-
result.maxInclusive = (_type$children$find9 = type.children.find((0,
|
|
62287
|
+
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;
|
|
62288
|
+
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;
|
|
62289
|
+
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;
|
|
62290
|
+
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;
|
|
62291
|
+
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;
|
|
62292
|
+
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;
|
|
62293
|
+
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;
|
|
62294
|
+
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;
|
|
62295
|
+
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
62296
|
return result;
|
|
62234
62297
|
}
|
|
62235
62298
|
static toCandyBaseType(type) {
|
|
@@ -62248,7 +62311,7 @@ class FormSchemaRng {
|
|
|
62248
62311
|
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
62312
|
}
|
|
62250
62313
|
adjustPathMultiplicity(path) {
|
|
62251
|
-
const result = new
|
|
62314
|
+
const result = new _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_2__.ModelPathBuilder(true);
|
|
62252
62315
|
let currentElement;
|
|
62253
62316
|
for (const pathToken of path.getPathParts()) {
|
|
62254
62317
|
var _currentElement;
|
|
@@ -62435,14 +62498,6 @@ class FormSchemaRngTypeInfo {
|
|
|
62435
62498
|
this.valueEqlAutoValue = void 0;
|
|
62436
62499
|
this.baseType = baseType;
|
|
62437
62500
|
}
|
|
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
62501
|
}
|
|
62447
62502
|
|
|
62448
62503
|
/***/ }),
|
|
@@ -67227,6 +67282,10 @@ function traverseFormulaExpression(expression, visitor) {
|
|
|
67227
67282
|
visitor.beforeInstanceCountExpression(expression);
|
|
67228
67283
|
visitor.afterInstanceCountExpression(expression);
|
|
67229
67284
|
}
|
|
67285
|
+
if (expression instanceof _KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsEqualToAutoCalculatedExpression) {
|
|
67286
|
+
visitor.beforeIsEqualToAutoCalculatedExpression(expression);
|
|
67287
|
+
visitor.afterIsEqualToAutoCalculatedExpression(expression);
|
|
67288
|
+
}
|
|
67230
67289
|
}
|
|
67231
67290
|
|
|
67232
67291
|
/***/ }),
|
|
@@ -67301,6 +67360,13 @@ class FormulaProcessor {
|
|
|
67301
67360
|
const argumentName = this.addDependency(expression.select);
|
|
67302
67361
|
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
67303
67362
|
}
|
|
67363
|
+
beforeIsEqualToAutoCalculatedExpression(expression) {
|
|
67364
|
+
// noop
|
|
67365
|
+
}
|
|
67366
|
+
afterIsEqualToAutoCalculatedExpression(expression) {
|
|
67367
|
+
const argumentName = this.addDependency(expression.select);
|
|
67368
|
+
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
67369
|
+
}
|
|
67304
67370
|
beforeMultySumExpression(expression) {
|
|
67305
67371
|
// noop
|
|
67306
67372
|
}
|
|
@@ -67818,6 +67884,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
67818
67884
|
/* harmony export */ FormulaHashSetExpression: () => (/* binding */ FormulaHashSetExpression),
|
|
67819
67885
|
/* harmony export */ FormulaInstanceCountExpression: () => (/* binding */ FormulaInstanceCountExpression),
|
|
67820
67886
|
/* harmony export */ FormulaIsDateExpression: () => (/* binding */ FormulaIsDateExpression),
|
|
67887
|
+
/* harmony export */ FormulaIsEqualToAutoCalculatedExpression: () => (/* binding */ FormulaIsEqualToAutoCalculatedExpression),
|
|
67821
67888
|
/* harmony export */ FormulaIsInnExpression: () => (/* binding */ FormulaIsInnExpression),
|
|
67822
67889
|
/* harmony export */ FormulaIsOgrnExpression: () => (/* binding */ FormulaIsOgrnExpression),
|
|
67823
67890
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
@@ -67862,7 +67929,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
67862
67929
|
|
|
67863
67930
|
|
|
67864
67931
|
|
|
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,
|
|
67932
|
+
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
67933
|
|
|
67867
67934
|
|
|
67868
67935
|
|
|
@@ -68731,223 +68798,240 @@ let FormulaInstanceCountExpression = (_dec138 = (0,_markupGenerator_Serializer_S
|
|
|
68731
68798
|
writable: true,
|
|
68732
68799
|
initializer: null
|
|
68733
68800
|
}), _class120)) || _class119);
|
|
68734
|
-
let
|
|
68801
|
+
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
68802
|
constructor(...args) {
|
|
68736
68803
|
super(...args);
|
|
68737
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68804
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor79, this);
|
|
68805
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor80, this);
|
|
68738
68806
|
}
|
|
68739
|
-
}, _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "
|
|
68807
|
+
}, _descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "select", [_dec141], {
|
|
68808
|
+
configurable: true,
|
|
68809
|
+
enumerable: true,
|
|
68810
|
+
writable: true,
|
|
68811
|
+
initializer: null
|
|
68812
|
+
}), _descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "type", [_dec142], {
|
|
68740
68813
|
configurable: true,
|
|
68741
68814
|
enumerable: true,
|
|
68742
68815
|
writable: true,
|
|
68743
68816
|
initializer: null
|
|
68744
68817
|
}), _class122)) || _class121);
|
|
68745
|
-
let
|
|
68818
|
+
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
68819
|
constructor(...args) {
|
|
68747
68820
|
super(...args);
|
|
68748
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68821
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor81, this);
|
|
68749
68822
|
}
|
|
68750
|
-
},
|
|
68823
|
+
}, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "array", [_dec144], {
|
|
68751
68824
|
configurable: true,
|
|
68752
68825
|
enumerable: true,
|
|
68753
68826
|
writable: true,
|
|
68754
68827
|
initializer: null
|
|
68755
68828
|
}), _class124)) || _class123);
|
|
68756
|
-
let
|
|
68829
|
+
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
68830
|
constructor(...args) {
|
|
68758
68831
|
super(...args);
|
|
68759
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68832
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor82, this);
|
|
68760
68833
|
}
|
|
68761
|
-
},
|
|
68834
|
+
}, _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "name", [_dec146], {
|
|
68762
68835
|
configurable: true,
|
|
68763
68836
|
enumerable: true,
|
|
68764
68837
|
writable: true,
|
|
68765
68838
|
initializer: null
|
|
68766
68839
|
}), _class126)) || _class125);
|
|
68767
|
-
let
|
|
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 {
|
|
68840
|
+
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
68841
|
constructor(...args) {
|
|
68770
68842
|
super(...args);
|
|
68771
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(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);
|
|
68843
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor83, this);
|
|
68774
68844
|
}
|
|
68775
|
-
},
|
|
68845
|
+
}, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "arguments", [_dec148], {
|
|
68776
68846
|
configurable: true,
|
|
68777
68847
|
enumerable: true,
|
|
68778
68848
|
writable: true,
|
|
68779
68849
|
initializer: null
|
|
68780
|
-
}),
|
|
68850
|
+
}), _class128)) || _class127);
|
|
68851
|
+
let FormulaNewLineExpression = (_dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec149(_class129 = class FormulaNewLineExpression extends FormulaExpression {}) || _class129);
|
|
68852
|
+
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 {
|
|
68853
|
+
constructor(...args) {
|
|
68854
|
+
super(...args);
|
|
68855
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor84, this);
|
|
68856
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor85, this);
|
|
68857
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor86, this);
|
|
68858
|
+
}
|
|
68859
|
+
}, _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "match", [_dec151], {
|
|
68781
68860
|
configurable: true,
|
|
68782
68861
|
enumerable: true,
|
|
68783
68862
|
writable: true,
|
|
68784
68863
|
initializer: null
|
|
68785
|
-
}),
|
|
68864
|
+
}), _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "target", [_dec152], {
|
|
68786
68865
|
configurable: true,
|
|
68787
68866
|
enumerable: true,
|
|
68788
68867
|
writable: true,
|
|
68789
68868
|
initializer: null
|
|
68790
|
-
}),
|
|
68791
|
-
|
|
68869
|
+
}), _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "expression", [_dec153], {
|
|
68870
|
+
configurable: true,
|
|
68871
|
+
enumerable: true,
|
|
68872
|
+
writable: true,
|
|
68873
|
+
initializer: null
|
|
68874
|
+
}), _class131)) || _class130);
|
|
68875
|
+
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
68876
|
constructor(...args) {
|
|
68793
68877
|
super(...args);
|
|
68794
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
68878
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor87, this);
|
|
68795
68879
|
}
|
|
68796
|
-
},
|
|
68880
|
+
}, _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec155], {
|
|
68797
68881
|
configurable: true,
|
|
68798
68882
|
enumerable: true,
|
|
68799
68883
|
writable: true,
|
|
68800
68884
|
initializer: null
|
|
68801
|
-
}),
|
|
68802
|
-
let Formulas = (
|
|
68885
|
+
}), _class133)) || _class132);
|
|
68886
|
+
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
68887
|
constructor(...args) {
|
|
68804
68888
|
super(...args);
|
|
68805
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
68889
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor88, this);
|
|
68806
68890
|
}
|
|
68807
|
-
},
|
|
68891
|
+
}, _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec157], {
|
|
68808
68892
|
configurable: true,
|
|
68809
68893
|
enumerable: true,
|
|
68810
68894
|
writable: true,
|
|
68811
68895
|
initializer: null
|
|
68812
|
-
}),
|
|
68813
|
-
let ConditionNode = (
|
|
68896
|
+
}), _class135)) || _class134);
|
|
68897
|
+
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
68898
|
constructor(...args) {
|
|
68815
68899
|
super(...args);
|
|
68816
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
68817
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
68818
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
68819
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
68820
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
68900
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor89, this);
|
|
68901
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor90, this);
|
|
68902
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor91, this);
|
|
68903
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor92, this);
|
|
68904
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor93, this);
|
|
68821
68905
|
}
|
|
68822
|
-
},
|
|
68906
|
+
}, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "match", [_dec159], {
|
|
68823
68907
|
configurable: true,
|
|
68824
68908
|
enumerable: true,
|
|
68825
68909
|
writable: true,
|
|
68826
68910
|
initializer: null
|
|
68827
|
-
}),
|
|
68911
|
+
}), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "target", [_dec160], {
|
|
68828
68912
|
configurable: true,
|
|
68829
68913
|
enumerable: true,
|
|
68830
68914
|
writable: true,
|
|
68831
68915
|
initializer: null
|
|
68832
|
-
}),
|
|
68916
|
+
}), _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "description", [_dec161], {
|
|
68833
68917
|
configurable: true,
|
|
68834
68918
|
enumerable: true,
|
|
68835
68919
|
writable: true,
|
|
68836
68920
|
initializer: null
|
|
68837
|
-
}),
|
|
68921
|
+
}), _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "errorLevel", [_dec162], {
|
|
68838
68922
|
configurable: true,
|
|
68839
68923
|
enumerable: true,
|
|
68840
68924
|
writable: true,
|
|
68841
68925
|
initializer: null
|
|
68842
|
-
}),
|
|
68926
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "expression", [_dec163], {
|
|
68843
68927
|
configurable: true,
|
|
68844
68928
|
enumerable: true,
|
|
68845
68929
|
writable: true,
|
|
68846
68930
|
initializer: null
|
|
68847
|
-
}),
|
|
68848
|
-
let ConditionsNode = (
|
|
68931
|
+
}), _class137)) || _class136);
|
|
68932
|
+
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
68933
|
constructor(...args) {
|
|
68850
68934
|
super(...args);
|
|
68851
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
68935
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor94, this);
|
|
68852
68936
|
}
|
|
68853
|
-
},
|
|
68937
|
+
}, _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "items", [_dec165], {
|
|
68854
68938
|
configurable: true,
|
|
68855
68939
|
enumerable: true,
|
|
68856
68940
|
writable: true,
|
|
68857
68941
|
initializer: null
|
|
68858
|
-
}),
|
|
68859
|
-
let MathContainer = (
|
|
68942
|
+
}), _class139)) || _class138);
|
|
68943
|
+
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
68944
|
constructor(...args) {
|
|
68861
68945
|
super(...args);
|
|
68862
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
68863
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
68946
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor95, this);
|
|
68947
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor96, this);
|
|
68864
68948
|
}
|
|
68865
|
-
},
|
|
68949
|
+
}, _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "formulas", [_dec167], {
|
|
68866
68950
|
configurable: true,
|
|
68867
68951
|
enumerable: true,
|
|
68868
68952
|
writable: true,
|
|
68869
68953
|
initializer: null
|
|
68870
|
-
}),
|
|
68954
|
+
}), _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "conditions", [_dec168], {
|
|
68871
68955
|
configurable: true,
|
|
68872
68956
|
enumerable: true,
|
|
68873
68957
|
writable: true,
|
|
68874
68958
|
initializer: null
|
|
68875
|
-
}),
|
|
68876
|
-
let FormulaMakeDictExpression = (
|
|
68959
|
+
}), _class141)) || _class140);
|
|
68960
|
+
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
68961
|
constructor(...args) {
|
|
68878
68962
|
super(...args);
|
|
68879
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
68880
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression",
|
|
68963
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor97, this);
|
|
68964
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor98, this);
|
|
68881
68965
|
}
|
|
68882
|
-
},
|
|
68966
|
+
}, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec170], {
|
|
68883
68967
|
configurable: true,
|
|
68884
68968
|
enumerable: true,
|
|
68885
68969
|
writable: true,
|
|
68886
68970
|
initializer: null
|
|
68887
|
-
}),
|
|
68971
|
+
}), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValueExpression", [_dec171], {
|
|
68888
68972
|
configurable: true,
|
|
68889
68973
|
enumerable: true,
|
|
68890
68974
|
writable: true,
|
|
68891
68975
|
initializer: null
|
|
68892
|
-
}),
|
|
68893
|
-
let FormulaGetSumByKeysExpression = (
|
|
68976
|
+
}), _class143)) || _class142);
|
|
68977
|
+
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
68978
|
constructor(...args) {
|
|
68895
68979
|
super(...args);
|
|
68896
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
68897
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
68980
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor99, this);
|
|
68981
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor100, this);
|
|
68898
68982
|
}
|
|
68899
|
-
},
|
|
68983
|
+
}, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "dictPath", [_dec173], {
|
|
68900
68984
|
configurable: true,
|
|
68901
68985
|
enumerable: true,
|
|
68902
68986
|
writable: true,
|
|
68903
68987
|
initializer: null
|
|
68904
|
-
}),
|
|
68988
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec174], {
|
|
68905
68989
|
configurable: true,
|
|
68906
68990
|
enumerable: true,
|
|
68907
68991
|
writable: true,
|
|
68908
68992
|
initializer: null
|
|
68909
|
-
}),
|
|
68910
|
-
let FormulaGroupSumExpression = (
|
|
68993
|
+
}), _class145)) || _class144);
|
|
68994
|
+
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
68995
|
constructor(...args) {
|
|
68912
68996
|
super(...args);
|
|
68913
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
68914
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
68915
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath",
|
|
68997
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor101, this);
|
|
68998
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor102, this);
|
|
68999
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor103, this);
|
|
68916
69000
|
}
|
|
68917
|
-
},
|
|
69001
|
+
}, _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "targetKeys", [_dec176], {
|
|
68918
69002
|
configurable: true,
|
|
68919
69003
|
enumerable: true,
|
|
68920
69004
|
writable: true,
|
|
68921
69005
|
initializer: null
|
|
68922
|
-
}),
|
|
69006
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec177], {
|
|
68923
69007
|
configurable: true,
|
|
68924
69008
|
enumerable: true,
|
|
68925
69009
|
writable: true,
|
|
68926
69010
|
initializer: null
|
|
68927
|
-
}),
|
|
69011
|
+
}), _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceValuePath", [_dec178], {
|
|
68928
69012
|
configurable: true,
|
|
68929
69013
|
enumerable: true,
|
|
68930
69014
|
writable: true,
|
|
68931
69015
|
initializer: null
|
|
68932
|
-
}),
|
|
68933
|
-
let FormulaGroupCountExpression = (
|
|
69016
|
+
}), _class147)) || _class146);
|
|
69017
|
+
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
69018
|
constructor(...args) {
|
|
68935
69019
|
super(...args);
|
|
68936
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
68937
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
69020
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor104, this);
|
|
69021
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor105, this);
|
|
68938
69022
|
}
|
|
68939
|
-
},
|
|
69023
|
+
}, _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "targetKeys", [_dec180], {
|
|
68940
69024
|
configurable: true,
|
|
68941
69025
|
enumerable: true,
|
|
68942
69026
|
writable: true,
|
|
68943
69027
|
initializer: null
|
|
68944
|
-
}),
|
|
69028
|
+
}), _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "sourceKeyPath", [_dec181], {
|
|
68945
69029
|
configurable: true,
|
|
68946
69030
|
enumerable: true,
|
|
68947
69031
|
writable: true,
|
|
68948
69032
|
initializer: null
|
|
68949
|
-
}),
|
|
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];
|
|
69033
|
+
}), _class149)) || _class148);
|
|
69034
|
+
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
69035
|
|
|
68952
69036
|
/***/ }),
|
|
68953
69037
|
|
|
@@ -69312,7 +69396,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
69312
69396
|
}
|
|
69313
69397
|
const defaultValue = dataDeclaration.getDefaultValue(path);
|
|
69314
69398
|
const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
|
|
69315
|
-
const autoValidationInfo = dataDeclaration.getValueEqlAutoValueValidationInfo(path);
|
|
69316
69399
|
const node = getOrCreateNode(nodes, path);
|
|
69317
69400
|
if (isMultiple) {
|
|
69318
69401
|
var _node$properties;
|
|
@@ -69324,13 +69407,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
69324
69407
|
(_node$properties2 = node.properties) !== null && _node$properties2 !== void 0 ? _node$properties2 : node.properties = {};
|
|
69325
69408
|
node.properties.defaultValue = defaultValue;
|
|
69326
69409
|
}
|
|
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
69410
|
}
|
|
69335
69411
|
if (nodes.size == 1) {
|
|
69336
69412
|
var _;
|
|
@@ -69412,22 +69488,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69412
69488
|
/* harmony import */ var lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mergewith__WEBPACK_IMPORTED_MODULE_0__);
|
|
69413
69489
|
/* harmony import */ var lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash.uniqwith */ "./node_modules/lodash.uniqwith/index.js");
|
|
69414
69490
|
/* harmony import */ var lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1__);
|
|
69415
|
-
/* harmony import */ var
|
|
69416
|
-
/* harmony import */ var
|
|
69417
|
-
/* harmony import */ var
|
|
69418
|
-
/* harmony import */ var
|
|
69419
|
-
/* harmony import */ var
|
|
69420
|
-
/* harmony import */ var
|
|
69491
|
+
/* harmony import */ var _Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/CommonConstants/SectionNames */ "./Common/CommonConstants/SectionNames.ts");
|
|
69492
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
69493
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
69494
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
69495
|
+
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
69496
|
+
/* 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
69497
|
/* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
69422
|
-
/* harmony import */ var
|
|
69423
|
-
/* harmony import */ var
|
|
69424
|
-
/* harmony import */ var
|
|
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
|
-
|
|
69498
|
+
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
69499
|
+
/* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
|
|
69500
|
+
/* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
|
|
69431
69501
|
|
|
69432
69502
|
|
|
69433
69503
|
|
|
@@ -69480,22 +69550,22 @@ class DataDeclarationGenerationContext {
|
|
|
69480
69550
|
return;
|
|
69481
69551
|
}
|
|
69482
69552
|
const objVal = objDataValue[objDataValue.length - 1];
|
|
69483
|
-
const nodeWithSettings =
|
|
69553
|
+
const nodeWithSettings = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.SETTINGS);
|
|
69484
69554
|
if (nodeWithSettings) {
|
|
69485
69555
|
return nodeWithSettings;
|
|
69486
69556
|
}
|
|
69487
|
-
if (objDataValue.sequenceType ===
|
|
69557
|
+
if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
|
|
69488
69558
|
if (objVal) {
|
|
69489
69559
|
const res = lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default()(objValue, srcValue);
|
|
69490
69560
|
res.value[res.value.length - 1] = objVal;
|
|
69491
69561
|
return res;
|
|
69492
69562
|
}
|
|
69493
|
-
} else if (srcDataValue.sequenceType ===
|
|
69563
|
+
} else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
|
|
69494
69564
|
return srcValue;
|
|
69495
|
-
} else if (objDataValue.sequenceType ===
|
|
69565
|
+
} else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
|
|
69496
69566
|
return objValue;
|
|
69497
69567
|
}
|
|
69498
|
-
const nodeDisabled =
|
|
69568
|
+
const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DISABLED);
|
|
69499
69569
|
if (nodeDisabled) {
|
|
69500
69570
|
return nodeDisabled;
|
|
69501
69571
|
}
|
|
@@ -69509,32 +69579,12 @@ class DataDeclarationGenerationContext {
|
|
|
69509
69579
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
69510
69580
|
this.typesRegistry = typesRegistry;
|
|
69511
69581
|
}
|
|
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
69582
|
isMultipleNodeOptionalFromScheme(path) {
|
|
69533
69583
|
if (!this.schemeValidations) {
|
|
69534
69584
|
return undefined;
|
|
69535
69585
|
}
|
|
69536
69586
|
const schemaNode = this.formSchemaRng.getElementByPath(path);
|
|
69537
|
-
if (schemaNode instanceof
|
|
69587
|
+
if (schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__.FormSchemaRngElement) {
|
|
69538
69588
|
var _schemaNode$isOptiona;
|
|
69539
69589
|
return (_schemaNode$isOptiona = schemaNode.isOptionalOrNillable()) !== null && _schemaNode$isOptiona !== void 0 ? _schemaNode$isOptiona : false;
|
|
69540
69590
|
}
|
|
@@ -69569,7 +69619,7 @@ class DataDeclarationGenerationContext {
|
|
|
69569
69619
|
return {};
|
|
69570
69620
|
}
|
|
69571
69621
|
const declEntry = {};
|
|
69572
|
-
const nodePath = ((_node$parent = node.parent) !== null && _node$parent !== void 0 ? _node$parent : (0,
|
|
69622
|
+
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
69623
|
declEntry.section = this.getSections(node, requisite);
|
|
69574
69624
|
return {
|
|
69575
69625
|
[nodePath.normalize().toLegacyPath()]: declEntry
|
|
@@ -69590,7 +69640,7 @@ class DataDeclarationGenerationContext {
|
|
|
69590
69640
|
}
|
|
69591
69641
|
addPathDeclEntry(sugarNode, fieldNames) {
|
|
69592
69642
|
const declEntry = {};
|
|
69593
|
-
for (const [fieldName, option] of fieldNames.filter(
|
|
69643
|
+
for (const [fieldName, option] of fieldNames.filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) {
|
|
69594
69644
|
// @ts-ignore
|
|
69595
69645
|
declEntry[fieldName] = option;
|
|
69596
69646
|
}
|
|
@@ -69628,7 +69678,7 @@ class DataDeclarationGenerationContext {
|
|
|
69628
69678
|
addChildPathSectionDeclarationEntry(sugarNode, childPath, requisite) {
|
|
69629
69679
|
const declEntry = {};
|
|
69630
69680
|
declEntry.section = this.getSections(sugarNode, requisite);
|
|
69631
|
-
if ((0,
|
|
69681
|
+
if ((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.isModelPath)(childPath)) {
|
|
69632
69682
|
return {
|
|
69633
69683
|
[(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getNewBindingPathExpression)(sugarNode).joinWith(childPath).toLegacyPath()]: declEntry
|
|
69634
69684
|
};
|
|
@@ -69673,7 +69723,7 @@ class DataDeclarationGenerationContext {
|
|
|
69673
69723
|
*getAllParentPages(node) {
|
|
69674
69724
|
let currentNode = node;
|
|
69675
69725
|
while (currentNode != undefined) {
|
|
69676
|
-
const parent = currentNode.findParentOfType(
|
|
69726
|
+
const parent = currentNode.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode);
|
|
69677
69727
|
if (parent != undefined) {
|
|
69678
69728
|
yield parent;
|
|
69679
69729
|
}
|
|
@@ -69681,13 +69731,13 @@ class DataDeclarationGenerationContext {
|
|
|
69681
69731
|
}
|
|
69682
69732
|
}
|
|
69683
69733
|
getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
|
|
69684
|
-
const page = node instanceof
|
|
69734
|
+
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
69735
|
const pageName = page === null || page === void 0 ? void 0 : page.id;
|
|
69686
69736
|
const pageRequiresResolution = page != undefined && (page.multiple || Iterator.from(this.getAllParentPages(page)).some(x => {
|
|
69687
69737
|
var _x$multiple;
|
|
69688
69738
|
return (_x$multiple = x.multiple) !== null && _x$multiple !== void 0 ? _x$multiple : false;
|
|
69689
69739
|
}));
|
|
69690
|
-
if (!(node instanceof
|
|
69740
|
+
if (!(node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode)) {
|
|
69691
69741
|
if (pageRequiresResolution) {
|
|
69692
69742
|
return [{
|
|
69693
69743
|
fn: `#getSectionFunction('${pageName}')#`
|
|
@@ -69697,22 +69747,22 @@ class DataDeclarationGenerationContext {
|
|
|
69697
69747
|
const sections = pageName != undefined ? [pageName] : [];
|
|
69698
69748
|
if (requisiteMode === RequisiteSectionMode.AsRequisiteAttribute) {
|
|
69699
69749
|
if (requisite) {
|
|
69700
|
-
sections.push(
|
|
69750
|
+
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
|
|
69701
69751
|
}
|
|
69702
69752
|
}
|
|
69703
69753
|
if (requisiteMode === RequisiteSectionMode.ForceAdd) {
|
|
69704
|
-
sections.push(
|
|
69754
|
+
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
|
|
69705
69755
|
}
|
|
69706
|
-
sections.push(
|
|
69756
|
+
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.defaultSection);
|
|
69707
69757
|
return sections;
|
|
69708
69758
|
}
|
|
69709
69759
|
buildNodeDataDeclaration(child, fieldNameToDeclInfo, nodeProcessor) {
|
|
69710
|
-
const controlConverterClass = (0,
|
|
69760
|
+
const controlConverterClass = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.getNodeClass)(child));
|
|
69711
69761
|
if (controlConverterClass == undefined) {
|
|
69712
|
-
if (child instanceof
|
|
69762
|
+
if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.UnknownSugarNode && child.name === "type") {
|
|
69713
69763
|
return emptyDataDeclarationCollection;
|
|
69714
69764
|
}
|
|
69715
|
-
if (child instanceof
|
|
69765
|
+
if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.UnknownSugarNode) {
|
|
69716
69766
|
const customControl = this.controlCustomizationContext.tryGetCustomRegularControl(child.name);
|
|
69717
69767
|
if (customControl != undefined) {
|
|
69718
69768
|
const hasBindingPath = customControl.properties.find(x => x.name === "path" && x.type === "bindingPath");
|
|
@@ -69722,7 +69772,7 @@ class DataDeclarationGenerationContext {
|
|
|
69722
69772
|
const result = nodeProcessor === null || nodeProcessor === void 0 ? void 0 : nodeProcessor(child);
|
|
69723
69773
|
if (result == undefined) {
|
|
69724
69774
|
// eslint-disable-next-line no-console
|
|
69725
|
-
console.error(`Cannot process node of type ${(0,
|
|
69775
|
+
console.error(`Cannot process node of type ${(0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.getNodeClass)(child).name}`);
|
|
69726
69776
|
return emptyDataDeclarationCollection;
|
|
69727
69777
|
}
|
|
69728
69778
|
return result;
|
|
@@ -69759,10 +69809,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69759
69809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
69760
69810
|
/* harmony export */ DataDeclarationGenerationTimeHelper: () => (/* binding */ DataDeclarationGenerationTimeHelper)
|
|
69761
69811
|
/* harmony export */ });
|
|
69762
|
-
/* harmony import */ var
|
|
69763
|
-
/* harmony import */ var
|
|
69764
|
-
/* harmony import */ var
|
|
69765
|
-
/* harmony import */ var
|
|
69812
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
69813
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
69814
|
+
/* harmony import */ var _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/Set2 */ "./Common/ModelPath/Set/Set2.ts");
|
|
69815
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
69766
69816
|
|
|
69767
69817
|
|
|
69768
69818
|
|
|
@@ -69778,22 +69828,6 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
69778
69828
|
var _this$getDataDeclarat, _this$getDataDeclarat2;
|
|
69779
69829
|
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
69830
|
}
|
|
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
69831
|
hasMask(targetPath) {
|
|
69798
69832
|
return this.getDataDeclarationEntry(targetPath) != undefined;
|
|
69799
69833
|
}
|
|
@@ -69832,21 +69866,21 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
69832
69866
|
return optionalBySugar == undefined ? optionalBySchema : optionalBySugar;
|
|
69833
69867
|
}
|
|
69834
69868
|
getDataDeclarationEntry(targetPath) {
|
|
69835
|
-
return this.dataDeclaration[(0,
|
|
69869
|
+
return this.dataDeclaration[(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.convertToLegacyPath)(targetPath)];
|
|
69836
69870
|
}
|
|
69837
69871
|
getOptionalSections() {
|
|
69838
69872
|
var _this$dataDeclaration, _this$dataDeclaration2;
|
|
69839
69873
|
const anyPath = Object.keys(this.dataDeclaration)[0];
|
|
69840
69874
|
if (anyPath == undefined) {
|
|
69841
|
-
return (0,
|
|
69875
|
+
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.reject)();
|
|
69842
69876
|
}
|
|
69843
|
-
const absolutePath = (0,
|
|
69844
|
-
const root =
|
|
69877
|
+
const absolutePath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(anyPath);
|
|
69878
|
+
const root = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.first(absolutePath.getPathParts());
|
|
69845
69879
|
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
69880
|
}
|
|
69847
69881
|
*getAllPaths() {
|
|
69848
|
-
for (const key of (0,
|
|
69849
|
-
yield (0,
|
|
69882
|
+
for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.iterateKeys)(this.dataDeclaration)) {
|
|
69883
|
+
yield (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(key, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
69850
69884
|
}
|
|
69851
69885
|
}
|
|
69852
69886
|
getAllPathsBySection() {
|
|
@@ -69856,16 +69890,16 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
69856
69890
|
};
|
|
69857
69891
|
const section2Path = Object.entries(this.dataDeclaration).map(current => {
|
|
69858
69892
|
var _pathData$section;
|
|
69859
|
-
const path = (0,
|
|
69893
|
+
const path = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(current[0], _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
69860
69894
|
const pathData = current[1];
|
|
69861
|
-
const allSections =
|
|
69895
|
+
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
69896
|
section: x,
|
|
69863
69897
|
path: path
|
|
69864
69898
|
})), x => x.section);
|
|
69865
69899
|
return [...allSections];
|
|
69866
69900
|
}).flat(1).reduce((acc, current) => {
|
|
69867
69901
|
var _acc$get;
|
|
69868
|
-
const currentPaths = (_acc$get = acc.get(current.section)) !== null && _acc$get !== void 0 ? _acc$get : new
|
|
69902
|
+
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
69903
|
currentPaths.add(current.path);
|
|
69870
69904
|
acc.set(current.section, currentPaths);
|
|
69871
69905
|
return acc;
|
|
@@ -70681,44 +70715,6 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
|
|
|
70681
70715
|
|
|
70682
70716
|
/***/ }),
|
|
70683
70717
|
|
|
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
70718
|
/***/ "./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts":
|
|
70723
70719
|
/*!***************************************************************************!*\
|
|
70724
70720
|
!*** ./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts ***!
|
|
@@ -71379,6 +71375,12 @@ class KCXmlGeneratorBase {
|
|
|
71379
71375
|
deps.push(new DependencyWithoutChecks(finalPath));
|
|
71380
71376
|
return gcf(x => x.instanceCount, `"${finalPath.toLegacyPath()}"`);
|
|
71381
71377
|
}
|
|
71378
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsEqualToAutoCalculatedExpression) {
|
|
71379
|
+
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());
|
|
71380
|
+
const finalPath = modelPath.trimLastStarIfLastToken();
|
|
71381
|
+
deps.push(new DependencyWithoutChecks(finalPath));
|
|
71382
|
+
return gcf(x => x.isValueEqlAutoValue, `"${finalPath.toLegacyPath()}"`);
|
|
71383
|
+
}
|
|
71382
71384
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
71383
71385
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
71384
71386
|
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
|
|
@@ -71683,23 +71685,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71683
71685
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
71684
71686
|
/* harmony export */ KCXmlValidationGenerator: () => (/* binding */ KCXmlValidationGenerator)
|
|
71685
71687
|
/* harmony export */ });
|
|
71686
|
-
/* harmony import */ var
|
|
71687
|
-
/* harmony import */ var
|
|
71688
|
-
/* harmony import */ var
|
|
71689
|
-
/* harmony import */ var
|
|
71690
|
-
/* harmony import */ var
|
|
71691
|
-
/* harmony import */ var
|
|
71692
|
-
/* harmony import */ var
|
|
71688
|
+
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
71689
|
+
/* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
|
|
71690
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
71691
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
71692
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
71693
|
+
/* 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");
|
|
71694
|
+
/* 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
71695
|
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
71694
|
-
/* harmony import */ var
|
|
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
|
-
|
|
71696
|
+
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
71703
71697
|
|
|
71704
71698
|
|
|
71705
71699
|
|
|
@@ -71712,14 +71706,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71712
71706
|
const emptyResult = `
|
|
71713
71707
|
export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
|
|
71714
71708
|
`;
|
|
71715
|
-
class KCXmlValidationGenerator extends
|
|
71709
|
+
class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.KCXmlGeneratorBase {
|
|
71716
71710
|
generateConfigurationFunction(kcXmlConditions, options) {
|
|
71717
71711
|
var _this$generateCalcula;
|
|
71718
71712
|
const configuration = (_this$generateCalcula = this.generateCalculatorConfiguration(kcXmlConditions, options)) !== null && _this$generateCalcula !== void 0 ? _this$generateCalcula : "";
|
|
71719
71713
|
if (configuration === undefined) {
|
|
71720
71714
|
return emptyResult;
|
|
71721
71715
|
}
|
|
71722
|
-
return [`({ form, ap, ValidationFunction, KCCondition, PathTokens }) => {`, (0,
|
|
71716
|
+
return [`({ form, ap, ValidationFunction, KCCondition, PathTokens }) => {`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_1__.indent)(configuration, 1), `}`].join("\n");
|
|
71723
71717
|
}
|
|
71724
71718
|
generate(kcXmlConditions, options) {
|
|
71725
71719
|
const configuration = this.generateCalculatorConfiguration(kcXmlConditions, options);
|
|
@@ -71732,86 +71726,42 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
71732
71726
|
`;
|
|
71733
71727
|
}
|
|
71734
71728
|
generateCalculatorConfiguration(kcXmlConditions, options) {
|
|
71735
|
-
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(
|
|
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
|
-
});
|
|
71729
|
+
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined).toArray();
|
|
71767
71730
|
if (compiledConditions.length === 0) {
|
|
71768
71731
|
return undefined;
|
|
71769
71732
|
}
|
|
71770
71733
|
return compiledConditions.map(x => `form.calculator2.addCalculationFunction(${x});`).join("\n");
|
|
71771
71734
|
}
|
|
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
71735
|
skipGetPicklistValues() {
|
|
71786
71736
|
return false;
|
|
71787
71737
|
}
|
|
71788
71738
|
compileCondition(condition, options) {
|
|
71789
71739
|
var _condition$descriptio, _condition$errorLevel;
|
|
71790
|
-
const prefix = (0,
|
|
71791
|
-
const target = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,
|
|
71740
|
+
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();
|
|
71741
|
+
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
71742
|
const deps = [];
|
|
71793
71743
|
const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, condition.expression, deps);
|
|
71794
|
-
if (compiledExpression instanceof
|
|
71744
|
+
if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.NotSupportedError) {
|
|
71795
71745
|
if (options.skipNotSupportedFunction) {
|
|
71796
71746
|
return undefined;
|
|
71797
71747
|
} else {
|
|
71798
71748
|
throw compiledExpression;
|
|
71799
71749
|
}
|
|
71800
71750
|
}
|
|
71801
|
-
const compiledDescriptionParts = (0,
|
|
71751
|
+
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
71752
|
let concatDescription;
|
|
71803
71753
|
if (compiledDescriptionParts.length > 1) {
|
|
71804
|
-
concatDescription = new
|
|
71754
|
+
concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_5__.FormulaConcatExpression();
|
|
71805
71755
|
concatDescription.arguments = compiledDescriptionParts;
|
|
71806
71756
|
} else {
|
|
71807
71757
|
concatDescription = compiledDescriptionParts[0];
|
|
71808
71758
|
}
|
|
71809
71759
|
const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
|
|
71810
71760
|
const compiledTarget = this.modelPathInstance(target);
|
|
71811
|
-
const dependencyModelPaths = Array.from(
|
|
71761
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
|
|
71812
71762
|
path: x.asDependencyModelPath(),
|
|
71813
|
-
isIgnoreForChecks: (0,
|
|
71814
|
-
pathString: (0,
|
|
71763
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.isDependencyWithoutChecks)(x),
|
|
71764
|
+
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
71765
|
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
71816
71766
|
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
71817
71767
|
const conditionFunc = this.isAsync(compiledExpression) ? `async expression => ${compiledExpression}` : `expression => ${compiledExpression}`;
|
|
@@ -74824,6 +74774,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
74824
74774
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
74825
74775
|
return this.compiledInstanceCountExpression(prefix, target, expression.select, addPrecalculationRule);
|
|
74826
74776
|
}
|
|
74777
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsEqualToAutoCalculatedExpression) {
|
|
74778
|
+
return this.compileIsEqualToAutoCalculatedExpression(prefix, target, expression.select, expression.type, addPrecalculationRule);
|
|
74779
|
+
}
|
|
74827
74780
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
|
|
74828
74781
|
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
74782
|
}
|
|
@@ -75210,6 +75163,21 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75210
75163
|
throw new Error(`Instance count with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
|
|
75211
75164
|
}
|
|
75212
75165
|
}
|
|
75166
|
+
compileIsEqualToAutoCalculatedExpression(prefix, target, selectPath, selectType, addPrecalculationRule) {
|
|
75167
|
+
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
75168
|
+
const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
|
|
75169
|
+
if (!splitInfo.differentPath.isContainIteration()) {
|
|
75170
|
+
const valueRefExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(adjustedSelectPath.toCurrentIteration().normalize(), "value");
|
|
75171
|
+
const autoValueRefExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(adjustedSelectPath.toCurrentIteration().normalize(), "autoValue");
|
|
75172
|
+
if (selectType == "string") {
|
|
75173
|
+
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));
|
|
75174
|
+
} else {
|
|
75175
|
+
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));
|
|
75176
|
+
}
|
|
75177
|
+
} else {
|
|
75178
|
+
throw new Error(`IsEqualToAutoCalculated with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
|
|
75179
|
+
}
|
|
75180
|
+
}
|
|
75213
75181
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
75214
75182
|
const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
|
|
75215
75183
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
@@ -96971,7 +96939,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
96971
96939
|
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
96940
|
optional: node.dataBinding.optional,
|
|
96973
96941
|
disabled: node.disabled
|
|
96974
|
-
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite)
|
|
96942
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
96975
96943
|
}
|
|
96976
96944
|
doBuildNormalizeRules(builder) {
|
|
96977
96945
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
@@ -102476,39 +102444,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102476
102444
|
/* harmony export */ KCLangCalculationsBuildContext: () => (/* binding */ KCLangCalculationsBuildContext),
|
|
102477
102445
|
/* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
|
|
102478
102446
|
/* harmony export */ });
|
|
102479
|
-
/* harmony import */ var
|
|
102480
|
-
/* harmony import */ var
|
|
102481
|
-
/* harmony import */ var
|
|
102482
|
-
/* harmony import */ var
|
|
102483
|
-
/* harmony import */ var
|
|
102484
|
-
/* harmony import */ var
|
|
102485
|
-
/* harmony import */ var
|
|
102486
|
-
/* harmony import */ var
|
|
102487
|
-
/* harmony import */ var
|
|
102488
|
-
/* harmony import */ var
|
|
102489
|
-
/* harmony import */ var
|
|
102490
|
-
/* harmony import */ var
|
|
102491
|
-
/* harmony import */ var
|
|
102492
|
-
/* harmony import */ var
|
|
102493
|
-
/* harmony import */ var
|
|
102494
|
-
/* harmony import */ var
|
|
102495
|
-
/* harmony import */ var
|
|
102496
|
-
/* harmony import */ var
|
|
102497
|
-
/* harmony import */ var
|
|
102498
|
-
/* harmony import */ var
|
|
102499
|
-
/* harmony import */ var
|
|
102500
|
-
/* harmony import */ var
|
|
102501
|
-
/* harmony import */ var
|
|
102502
|
-
/* harmony import */ var
|
|
102503
|
-
/* harmony import */ var
|
|
102504
|
-
/* harmony import */ var
|
|
102505
|
-
/* harmony import */ var
|
|
102506
|
-
/* harmony import */ var
|
|
102507
|
-
/* harmony import */ var
|
|
102508
|
-
/* harmony import */ var
|
|
102509
|
-
/* harmony import */ var
|
|
102510
|
-
/* harmony import */ var
|
|
102511
|
-
/* harmony import */ var
|
|
102447
|
+
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
102448
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
102449
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
102450
|
+
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
102451
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
102452
|
+
/* harmony import */ var _common_KCLang_CodeDom_AndExpression__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/AndExpression */ "./Generator/src/common/KCLang/CodeDom/AndExpression.ts");
|
|
102453
|
+
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
102454
|
+
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
102455
|
+
/* harmony import */ var _common_KCLang_CodeDom_DecimalConstExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DecimalConstExpression */ "./Generator/src/common/KCLang/CodeDom/DecimalConstExpression.ts");
|
|
102456
|
+
/* harmony import */ var _common_KCLang_CodeDom_DescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/DescriptionText */ "./Generator/src/common/KCLang/CodeDom/DescriptionText.ts");
|
|
102457
|
+
/* harmony import */ var _common_KCLang_CodeDom_EqExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/EqExpression */ "./Generator/src/common/KCLang/CodeDom/EqExpression.ts");
|
|
102458
|
+
/* 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");
|
|
102459
|
+
/* 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");
|
|
102460
|
+
/* 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");
|
|
102461
|
+
/* 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");
|
|
102462
|
+
/* 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");
|
|
102463
|
+
/* harmony import */ var _common_KCLang_CodeDom_GeExpression__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/GeExpression */ "./Generator/src/common/KCLang/CodeDom/GeExpression.ts");
|
|
102464
|
+
/* harmony import */ var _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/IfStatement */ "./Generator/src/common/KCLang/CodeDom/IfStatement.ts");
|
|
102465
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
102466
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
102467
|
+
/* harmony import */ var _common_KCLang_CodeDom_LeExpression__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/LeExpression */ "./Generator/src/common/KCLang/CodeDom/LeExpression.ts");
|
|
102468
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotEqExpression__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotEqExpression */ "./Generator/src/common/KCLang/CodeDom/NotEqExpression.ts");
|
|
102469
|
+
/* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
|
|
102470
|
+
/* harmony import */ var _common_KCLang_CodeDom_OneOfExpression__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OneOfExpression */ "./Generator/src/common/KCLang/CodeDom/OneOfExpression.ts");
|
|
102471
|
+
/* harmony import */ var _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/OrExpression */ "./Generator/src/common/KCLang/CodeDom/OrExpression.ts");
|
|
102472
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringArrayConstExpression__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringArrayConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringArrayConstExpression.ts");
|
|
102473
|
+
/* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
|
|
102474
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
102475
|
+
/* harmony import */ var _common_KCLang_CodeDom_WithBlock__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/WithBlock */ "./Generator/src/common/KCLang/CodeDom/WithBlock.ts");
|
|
102476
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
102477
|
+
/* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
102478
|
+
/* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
|
|
102479
|
+
/* harmony import */ var _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../validationGenerator/MaxOptionalChildrenLimit */ "./Generator/src/generators/validationGenerator/MaxOptionalChildrenLimit.ts");
|
|
102480
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
102481
|
+
/* 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");
|
|
102482
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangRawStringExpression__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangRawStringExpression */ "./Generator/src/common/KCLang/CodeDom/KCLangRawStringExpression.ts");
|
|
102483
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
102484
|
+
|
|
102485
|
+
|
|
102486
|
+
|
|
102487
|
+
|
|
102512
102488
|
|
|
102513
102489
|
|
|
102514
102490
|
|
|
@@ -102561,7 +102537,7 @@ class KCLangCalculationsBuildContext {
|
|
|
102561
102537
|
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
102538
|
const valueChecks = [];
|
|
102563
102539
|
if (baseName != undefined) {
|
|
102564
|
-
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,
|
|
102540
|
+
valueChecks.push(...Iterator.from(this.createBaseTypeValidation(targetPath, baseName, (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_36__.omitLocalization)(baseDescription))).toArray());
|
|
102565
102541
|
}
|
|
102566
102542
|
valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
|
|
102567
102543
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
@@ -102569,24 +102545,24 @@ class KCLangCalculationsBuildContext {
|
|
|
102569
102545
|
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2, _IterUtils$last;
|
|
102570
102546
|
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
102547
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
102572
|
-
let allChildrenPaths = parentNode instanceof
|
|
102573
|
-
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) >
|
|
102548
|
+
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;
|
|
102549
|
+
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
102550
|
allChildrenPaths = undefined;
|
|
102575
102551
|
}
|
|
102576
|
-
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new
|
|
102577
|
-
const checkRequiredStatement = new
|
|
102552
|
+
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);
|
|
102553
|
+
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
102554
|
if (restChecks != undefined) {
|
|
102579
|
-
yield new
|
|
102555
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(restChecks, [checkRequiredStatement]);
|
|
102580
102556
|
} else {
|
|
102581
102557
|
yield checkRequiredStatement;
|
|
102582
102558
|
}
|
|
102583
102559
|
}
|
|
102584
|
-
yield new
|
|
102560
|
+
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
102561
|
}
|
|
102586
102562
|
getFirstAcceptedParent(schemaNode) {
|
|
102587
102563
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
102588
102564
|
while (parentNode != undefined) {
|
|
102589
|
-
if (parentNode instanceof
|
|
102565
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement) {
|
|
102590
102566
|
var _parentNode$multiple;
|
|
102591
102567
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
102592
102568
|
return parentNode;
|
|
@@ -102603,174 +102579,158 @@ class KCLangCalculationsBuildContext {
|
|
|
102603
102579
|
}
|
|
102604
102580
|
createCheck(targetPath, condition, message, checkType) {
|
|
102605
102581
|
var _IterUtils$last2;
|
|
102606
|
-
const withBlocks = [new
|
|
102582
|
+
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
102583
|
if (checkType == "warning") {
|
|
102608
|
-
withBlocks.push(new
|
|
102584
|
+
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
102585
|
}
|
|
102610
|
-
return new
|
|
102586
|
+
return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(condition, withBlocks);
|
|
102611
102587
|
}
|
|
102612
102588
|
*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;
|
|
102589
|
+
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
102590
|
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
|
|
102616
|
-
const enumerationItems = (0,
|
|
102591
|
+
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 : [];
|
|
102592
|
+
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
102593
|
const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
|
|
102618
102594
|
var _ref5, _ref6, _ref7, _omitLocalization;
|
|
102619
|
-
return (_ref5 = (_ref6 = (_ref7 = (_omitLocalization = (0,
|
|
102595
|
+
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
102596
|
};
|
|
102621
|
-
const valueReferenceExpression = new
|
|
102622
|
-
const stringValueReference = new
|
|
102623
|
-
if ((0,
|
|
102624
|
-
yield this.createCheck(targetPath, new
|
|
102597
|
+
const valueReferenceExpression = new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_27__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath));
|
|
102598
|
+
const stringValueReference = new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_6__.CastExpression(valueReferenceExpression, _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_19__.StringType.default);
|
|
102599
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(enumerationItems)) {
|
|
102600
|
+
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
102601
|
enumerationAllowedValues: enumerationItems
|
|
102626
102602
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
102627
102603
|
}
|
|
102628
|
-
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(
|
|
102604
|
+
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_33__.DigestcheckTypeCheckNode).find(x => x);
|
|
102629
102605
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
102630
|
-
if ((0,
|
|
102606
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrEmpty)(gId) && digest != undefined) {
|
|
102631
102607
|
var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
|
|
102632
102608
|
// const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
|
|
102633
|
-
const ruleBody = new
|
|
102634
|
-
yield this.createCheck(targetPath, ruleBody, (0,
|
|
102609
|
+
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("")));
|
|
102610
|
+
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
102611
|
}
|
|
102636
|
-
const typeNodeLength = typeNode === null || typeNode === void 0 || (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,
|
|
102612
|
+
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
102613
|
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
102614
|
if (lengthValue != undefined) {
|
|
102639
102615
|
var _typeNodeLength$check;
|
|
102640
|
-
yield this.createCheck(targetPath, new
|
|
102616
|
+
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
102617
|
length: lengthValue
|
|
102642
102618
|
}, 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
102619
|
}
|
|
102644
102620
|
const valueReference = stringValueReference;
|
|
102645
102621
|
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,
|
|
102622
|
+
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
102623
|
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,
|
|
102624
|
+
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
102625
|
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
102626
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
102651
102627
|
var _typeNodeMinLength$de;
|
|
102652
|
-
const lengthExprRuleBody = new
|
|
102628
|
+
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
102629
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
102654
102630
|
minLength: minLengthValue,
|
|
102655
102631
|
maxLength: maxLengthValue
|
|
102656
102632
|
}, (_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
102633
|
} else if (minLengthValue != undefined) {
|
|
102658
|
-
const lengthExprRuleBody = new
|
|
102634
|
+
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
102635
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
102660
102636
|
minLength: minLengthValue
|
|
102661
102637
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
102662
102638
|
} else if (maxLengthValue != undefined) {
|
|
102663
|
-
const lengthExprRuleBody = new
|
|
102639
|
+
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
102640
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
102665
102641
|
maxLength: maxLengthValue
|
|
102666
102642
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
102667
102643
|
}
|
|
102668
|
-
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,
|
|
102644
|
+
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
102645
|
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
102646
|
if (minInclusiveValue != undefined) {
|
|
102671
|
-
const minInclusiveRuleBody = new
|
|
102647
|
+
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
102648
|
yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
|
|
102673
102649
|
minInclusive: minInclusiveValue
|
|
102674
102650
|
}, 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
102651
|
}
|
|
102676
|
-
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 || (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,
|
|
102652
|
+
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
102653
|
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
102654
|
if (maxInclusiveValue != undefined) {
|
|
102679
|
-
const maxInclusiveRuleBody = new
|
|
102655
|
+
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
102656
|
yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
|
|
102681
102657
|
maxInclusive: maxInclusiveValue
|
|
102682
102658
|
}, 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
102659
|
}
|
|
102684
|
-
const isDecimalCondition = new
|
|
102685
|
-
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 || (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,
|
|
102660
|
+
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+$)|($))"));
|
|
102661
|
+
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
102662
|
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
102663
|
if (totalDigitsValue != undefined) {
|
|
102688
|
-
const totalDigitsRuleBody = new
|
|
102689
|
-
yield new
|
|
102664
|
+
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() + "}$"));
|
|
102665
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, totalDigitsRuleBody, makeMessage({
|
|
102690
102666
|
totalDigitsMaxCount: totalDigitsValue
|
|
102691
102667
|
}, 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
102668
|
}
|
|
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,
|
|
102694
|
-
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 || (_typeNode$children9 = _typeNode$children9.filter((0,
|
|
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,
|
|
102696
|
-
const stringPatterns = ((0,
|
|
102697
|
-
const patterns = stringPatterns.map(pattern => new
|
|
102669
|
+
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 : [];
|
|
102670
|
+
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;
|
|
102671
|
+
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;
|
|
102672
|
+
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);
|
|
102673
|
+
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
102674
|
if (patterns != undefined) {
|
|
102699
102675
|
const stringPatternsRuleBody = patterns;
|
|
102700
102676
|
yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
|
|
102701
102677
|
patterns: stringPatterns
|
|
102702
102678
|
}, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
|
|
102703
102679
|
}
|
|
102704
|
-
const typeNodeInteger = typeNode === null || typeNode === void 0 || (_typeNode$children11 = typeNode.children) === null || _typeNode$children11 === void 0 ? void 0 : _typeNode$children11.find((0,
|
|
102680
|
+
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
102681
|
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
102682
|
if (integerDigits != undefined) {
|
|
102707
|
-
const integerDigitsRuleBody = new
|
|
102708
|
-
yield new
|
|
102683
|
+
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+$)|($))"));
|
|
102684
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, integerDigitsRuleBody, makeMessage({
|
|
102709
102685
|
integerDigitsMaxCount: integerDigits
|
|
102710
102686
|
}, 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
102687
|
}
|
|
102712
|
-
const typeNodeFractional = typeNode === null || typeNode === void 0 || (_typeNode$children12 = typeNode.children) === null || _typeNode$children12 === void 0 ? void 0 : _typeNode$children12.find((0,
|
|
102688
|
+
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
102689
|
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
102690
|
if (fractionalDigits != undefined) {
|
|
102715
|
-
const fractionalDigitsRuleBody = new
|
|
102716
|
-
yield new
|
|
102691
|
+
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() + "}$)|($))"));
|
|
102692
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(isDecimalCondition, [this.createCheck(targetPath, fractionalDigitsRuleBody, makeMessage({
|
|
102717
102693
|
fractionalDigitsMaxCount: fractionalDigits
|
|
102718
102694
|
}, 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
102695
|
}
|
|
102720
|
-
|
|
102721
|
-
|
|
102722
|
-
|
|
102723
|
-
|
|
102724
|
-
|
|
102725
|
-
|
|
102726
|
-
|
|
102727
|
-
|
|
102728
|
-
|
|
102729
|
-
|
|
102730
|
-
|
|
102731
|
-
|
|
102732
|
-
|
|
102733
|
-
|
|
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
|
-
// }
|
|
102696
|
+
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;
|
|
102697
|
+
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;
|
|
102698
|
+
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
102699
|
+
var _typeNode$children$fi5, _typeNode$children15, _typeNode$children16, _typeNode$children$fi6, _typeNode$children17, _typeNode$children18;
|
|
102700
|
+
const isDecimal = baseName == "decimal";
|
|
102701
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
102702
|
+
(_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;
|
|
102703
|
+
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;
|
|
102704
|
+
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);
|
|
102705
|
+
if (validationCondition != undefined) {
|
|
102706
|
+
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]);
|
|
102707
|
+
}
|
|
102708
|
+
yield result;
|
|
102709
|
+
}
|
|
102750
102710
|
}
|
|
102751
102711
|
*createBaseTypeValidation(targetPath, baseType, baseDescription) {
|
|
102752
102712
|
var _IterUtils$last3, _IterUtils$last4, _IterUtils$last5, _IterUtils$last6, _IterUtils$last7;
|
|
102753
|
-
const targetAttributeName = Iterator.from(targetPath.getPathParts()).filter(
|
|
102754
|
-
const path =
|
|
102713
|
+
const targetAttributeName = Iterator.from(targetPath.getPathParts()).filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.isSimpleToken);
|
|
102714
|
+
const path = _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_18__.KCLangPath.fromModelPath(targetPath);
|
|
102755
102715
|
switch (baseType) {
|
|
102756
102716
|
case "string":
|
|
102757
102717
|
case "pattern":
|
|
102758
102718
|
case "boolean":
|
|
102759
102719
|
return;
|
|
102760
102720
|
case "integer":
|
|
102761
|
-
yield new
|
|
102721
|
+
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
102722
|
break;
|
|
102763
102723
|
case "decimal":
|
|
102764
|
-
yield new
|
|
102724
|
+
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
102725
|
break;
|
|
102766
102726
|
case "date":
|
|
102767
|
-
yield new
|
|
102727
|
+
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
102728
|
break;
|
|
102769
102729
|
case "gYear":
|
|
102770
|
-
yield new
|
|
102730
|
+
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
102731
|
break;
|
|
102772
102732
|
case "gMonth":
|
|
102773
|
-
yield new
|
|
102733
|
+
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
102734
|
break;
|
|
102775
102735
|
default:
|
|
102776
102736
|
throw new Error(`Unknown base type name: '${baseType}'`);
|
|
@@ -102779,7 +102739,7 @@ class KCLangCalculationsBuildContext {
|
|
|
102779
102739
|
}
|
|
102780
102740
|
}
|
|
102781
102741
|
function combineByAndKCLangExpr(acc, current) {
|
|
102782
|
-
return acc != undefined ? new
|
|
102742
|
+
return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(acc, current) : current;
|
|
102783
102743
|
}
|
|
102784
102744
|
|
|
102785
102745
|
/***/ }),
|