@kontur.candy/generator 5.85.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 +474 -481
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47961,6 +47961,27 @@ function createUnitId(id, instance) {
|
|
|
47961
47961
|
|
|
47962
47962
|
/***/ }),
|
|
47963
47963
|
|
|
47964
|
+
/***/ "./Engine/src/Controls/Helpers/InfoBlock/InfoBlockType.tsx":
|
|
47965
|
+
/*!*****************************************************************!*\
|
|
47966
|
+
!*** ./Engine/src/Controls/Helpers/InfoBlock/InfoBlockType.tsx ***!
|
|
47967
|
+
\*****************************************************************/
|
|
47968
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
47969
|
+
|
|
47970
|
+
"use strict";
|
|
47971
|
+
__webpack_require__.r(__webpack_exports__);
|
|
47972
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
47973
|
+
/* harmony export */ InfoBlockType: () => (/* binding */ InfoBlockType)
|
|
47974
|
+
/* harmony export */ });
|
|
47975
|
+
let InfoBlockType = /*#__PURE__*/function (InfoBlockType) {
|
|
47976
|
+
InfoBlockType[InfoBlockType["info"] = 0] = "info";
|
|
47977
|
+
InfoBlockType[InfoBlockType["error"] = 1] = "error";
|
|
47978
|
+
InfoBlockType[InfoBlockType["warning"] = 2] = "warning";
|
|
47979
|
+
InfoBlockType[InfoBlockType["success"] = 3] = "success";
|
|
47980
|
+
return InfoBlockType;
|
|
47981
|
+
}({});
|
|
47982
|
+
|
|
47983
|
+
/***/ }),
|
|
47984
|
+
|
|
47964
47985
|
/***/ "./Engine/src/Controls/Layout/SubHeader/SubHeaderTypes.ts":
|
|
47965
47986
|
/*!****************************************************************!*\
|
|
47966
47987
|
!*** ./Engine/src/Controls/Layout/SubHeader/SubHeaderTypes.ts ***!
|
|
@@ -50201,6 +50222,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50201
50222
|
/* harmony export */ hashSetKCLangFunction: () => (/* binding */ hashSetKCLangFunction),
|
|
50202
50223
|
/* harmony export */ instanceCountKCLangFunction: () => (/* binding */ instanceCountKCLangFunction),
|
|
50203
50224
|
/* harmony export */ isDateInMonthKCLangFunction: () => (/* binding */ isDateInMonthKCLangFunction),
|
|
50225
|
+
/* harmony export */ isEqualToAutoCalculatedFunction: () => (/* binding */ isEqualToAutoCalculatedFunction),
|
|
50204
50226
|
/* harmony export */ isInnKCLangFunction: () => (/* binding */ isInnKCLangFunction),
|
|
50205
50227
|
/* harmony export */ isOgrnKCLangFunction: () => (/* binding */ isOgrnKCLangFunction),
|
|
50206
50228
|
/* harmony export */ isRegNumSfrKCLangFunction: () => (/* binding */ isRegNumSfrKCLangFunction),
|
|
@@ -50219,6 +50241,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50219
50241
|
/* harmony export */ sumOfDayWeightsKCLangFunction: () => (/* binding */ sumOfDayWeightsKCLangFunction),
|
|
50220
50242
|
/* harmony export */ xabsKCLangFunction: () => (/* binding */ xabsKCLangFunction)
|
|
50221
50243
|
/* harmony export */ });
|
|
50244
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
50245
|
+
|
|
50222
50246
|
class ArgumentValidationError {
|
|
50223
50247
|
constructor(validationMessage) {
|
|
50224
50248
|
this.validationMessage = void 0;
|
|
@@ -50596,13 +50620,28 @@ const instanceCountKCLangFunction = params => {
|
|
|
50596
50620
|
}
|
|
50597
50621
|
throw new Error("Invalid parameters!");
|
|
50598
50622
|
};
|
|
50599
|
-
const
|
|
50623
|
+
const isEqualToAutoCalculatedFunction = params => {
|
|
50600
50624
|
var _params$26;
|
|
50601
50625
|
const errors = Array.from(validateParams(params, 1));
|
|
50602
50626
|
if (errors.length > 0) {
|
|
50603
50627
|
return new FunctionValidationErrorCollection(errors);
|
|
50604
50628
|
}
|
|
50605
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;
|
|
50606
50645
|
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
50607
50646
|
const param = argumentExpr.select;
|
|
50608
50647
|
if (param == undefined) {
|
|
@@ -50626,14 +50665,14 @@ const sumKCLangFunction = params => {
|
|
|
50626
50665
|
throw new Error("Invalid parameters!");
|
|
50627
50666
|
};
|
|
50628
50667
|
const substringKCLangFunction = params => {
|
|
50629
|
-
var _params$
|
|
50668
|
+
var _params$28, _params$29, _params$30;
|
|
50630
50669
|
const errors = Array.from(validateParams(params, 2, 1));
|
|
50631
50670
|
if (errors.length > 0) {
|
|
50632
50671
|
return new FunctionValidationErrorCollection(errors);
|
|
50633
50672
|
}
|
|
50634
|
-
const exprParam = (_params$
|
|
50635
|
-
const startParam = (_params$
|
|
50636
|
-
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;
|
|
50637
50676
|
if (exprParam == undefined) {
|
|
50638
50677
|
throw new Error("Unexpected error!");
|
|
50639
50678
|
}
|
|
@@ -50651,14 +50690,14 @@ const substringKCLangFunction = params => {
|
|
|
50651
50690
|
};
|
|
50652
50691
|
};
|
|
50653
50692
|
const groupSumKCLangFunction = params => {
|
|
50654
|
-
var _params$
|
|
50693
|
+
var _params$31, _params$32, _params$33;
|
|
50655
50694
|
const errors = Array.from(validateParams(params, 3));
|
|
50656
50695
|
if (errors.length > 0) {
|
|
50657
50696
|
return new FunctionValidationErrorCollection(errors);
|
|
50658
50697
|
}
|
|
50659
|
-
const targetKeysParam = (_params$
|
|
50660
|
-
const sourceKeyPathParam = (_params$
|
|
50661
|
-
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;
|
|
50662
50701
|
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || (sourceValuePathParam === null || sourceValuePathParam === void 0 ? void 0 : sourceValuePathParam.type) !== "argument") {
|
|
50663
50702
|
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeys, sourceKeyPath, sourceValuePath");
|
|
50664
50703
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -50675,13 +50714,13 @@ const groupSumKCLangFunction = params => {
|
|
|
50675
50714
|
};
|
|
50676
50715
|
};
|
|
50677
50716
|
const groupCountKCLangFunction = params => {
|
|
50678
|
-
var _params$
|
|
50717
|
+
var _params$34, _params$35;
|
|
50679
50718
|
const errors = Array.from(validateParams(params, 2));
|
|
50680
50719
|
if (errors.length > 0) {
|
|
50681
50720
|
return new FunctionValidationErrorCollection(errors);
|
|
50682
50721
|
}
|
|
50683
|
-
const targetKeysParam = (_params$
|
|
50684
|
-
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;
|
|
50685
50724
|
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
|
|
50686
50725
|
const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
|
|
50687
50726
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -50725,12 +50764,12 @@ const dateNowKCLangFunction = params => {
|
|
|
50725
50764
|
};
|
|
50726
50765
|
};
|
|
50727
50766
|
const getDaysInMonthKCLangFunction = params => {
|
|
50728
|
-
var _params$
|
|
50767
|
+
var _params$36;
|
|
50729
50768
|
const errors = Array.from(validateParams(params, 1));
|
|
50730
50769
|
if (errors.length > 0) {
|
|
50731
50770
|
return new FunctionValidationErrorCollection(errors);
|
|
50732
50771
|
}
|
|
50733
|
-
const param = (_params$
|
|
50772
|
+
const param = (_params$36 = params[0]) === null || _params$36 === void 0 ? void 0 : _params$36.value;
|
|
50734
50773
|
if (param == undefined) {
|
|
50735
50774
|
throw new Error("Unexpected error!");
|
|
50736
50775
|
}
|
|
@@ -50740,12 +50779,12 @@ const getDaysInMonthKCLangFunction = params => {
|
|
|
50740
50779
|
};
|
|
50741
50780
|
};
|
|
50742
50781
|
const getDayKCLangFunction = params => {
|
|
50743
|
-
var _params$
|
|
50782
|
+
var _params$37;
|
|
50744
50783
|
const errors = Array.from(validateParams(params, 1));
|
|
50745
50784
|
if (errors.length > 0) {
|
|
50746
50785
|
return new FunctionValidationErrorCollection(errors);
|
|
50747
50786
|
}
|
|
50748
|
-
const param = (_params$
|
|
50787
|
+
const param = (_params$37 = params[0]) === null || _params$37 === void 0 ? void 0 : _params$37.value;
|
|
50749
50788
|
if (param == undefined) {
|
|
50750
50789
|
throw new Error("Unexpected error!");
|
|
50751
50790
|
}
|
|
@@ -50755,12 +50794,12 @@ const getDayKCLangFunction = params => {
|
|
|
50755
50794
|
};
|
|
50756
50795
|
};
|
|
50757
50796
|
const getMonthKCLangFunction = params => {
|
|
50758
|
-
var _params$
|
|
50797
|
+
var _params$38;
|
|
50759
50798
|
const errors = Array.from(validateParams(params, 1));
|
|
50760
50799
|
if (errors.length > 0) {
|
|
50761
50800
|
return new FunctionValidationErrorCollection(errors);
|
|
50762
50801
|
}
|
|
50763
|
-
const param = (_params$
|
|
50802
|
+
const param = (_params$38 = params[0]) === null || _params$38 === void 0 ? void 0 : _params$38.value;
|
|
50764
50803
|
if (param == undefined) {
|
|
50765
50804
|
throw new Error("Unexpected error!");
|
|
50766
50805
|
}
|
|
@@ -50770,12 +50809,12 @@ const getMonthKCLangFunction = params => {
|
|
|
50770
50809
|
};
|
|
50771
50810
|
};
|
|
50772
50811
|
const getYearKCLangFunction = params => {
|
|
50773
|
-
var _params$
|
|
50812
|
+
var _params$39;
|
|
50774
50813
|
const errors = Array.from(validateParams(params, 1));
|
|
50775
50814
|
if (errors.length > 0) {
|
|
50776
50815
|
return new FunctionValidationErrorCollection(errors);
|
|
50777
50816
|
}
|
|
50778
|
-
const param = (_params$
|
|
50817
|
+
const param = (_params$39 = params[0]) === null || _params$39 === void 0 ? void 0 : _params$39.value;
|
|
50779
50818
|
if (param == undefined) {
|
|
50780
50819
|
throw new Error("Unexpected error!");
|
|
50781
50820
|
}
|
|
@@ -50785,12 +50824,12 @@ const getYearKCLangFunction = params => {
|
|
|
50785
50824
|
};
|
|
50786
50825
|
};
|
|
50787
50826
|
const isDateInMonthKCLangFunction = params => {
|
|
50788
|
-
var _params$
|
|
50827
|
+
var _params$40;
|
|
50789
50828
|
const errors = Array.from(validateParams(params, 1));
|
|
50790
50829
|
if (errors.length > 0) {
|
|
50791
50830
|
return new FunctionValidationErrorCollection(errors);
|
|
50792
50831
|
}
|
|
50793
|
-
const param = (_params$
|
|
50832
|
+
const param = (_params$40 = params[0]) === null || _params$40 === void 0 ? void 0 : _params$40.value;
|
|
50794
50833
|
if (param == undefined) {
|
|
50795
50834
|
throw new Error("Unexpected error!");
|
|
50796
50835
|
}
|
|
@@ -50830,13 +50869,13 @@ const sumOfDayWeightsKCLangFunction = params => {
|
|
|
50830
50869
|
};
|
|
50831
50870
|
};
|
|
50832
50871
|
const addDaysKCLangFunction = params => {
|
|
50833
|
-
var _params$
|
|
50872
|
+
var _params$41, _params$42;
|
|
50834
50873
|
const errors = Array.from(validateParams(params, 2));
|
|
50835
50874
|
if (errors.length > 0) {
|
|
50836
50875
|
return new FunctionValidationErrorCollection(errors);
|
|
50837
50876
|
}
|
|
50838
|
-
const exprParam = (_params$
|
|
50839
|
-
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;
|
|
50840
50879
|
if (exprParam == undefined) {
|
|
50841
50880
|
throw new Error("Expected expression for addDays().");
|
|
50842
50881
|
}
|
|
@@ -50852,13 +50891,13 @@ const addDaysKCLangFunction = params => {
|
|
|
50852
50891
|
};
|
|
50853
50892
|
};
|
|
50854
50893
|
const addMonthsKCLangFunction = params => {
|
|
50855
|
-
var _params$
|
|
50894
|
+
var _params$43, _params$44;
|
|
50856
50895
|
const errors = Array.from(validateParams(params, 2));
|
|
50857
50896
|
if (errors.length > 0) {
|
|
50858
50897
|
return new FunctionValidationErrorCollection(errors);
|
|
50859
50898
|
}
|
|
50860
|
-
const exprParam = (_params$
|
|
50861
|
-
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;
|
|
50862
50901
|
if (exprParam == undefined) {
|
|
50863
50902
|
throw new Error("Expected expression for addMonths().");
|
|
50864
50903
|
}
|
|
@@ -50874,13 +50913,13 @@ const addMonthsKCLangFunction = params => {
|
|
|
50874
50913
|
};
|
|
50875
50914
|
};
|
|
50876
50915
|
const addYearsKCLangFunction = params => {
|
|
50877
|
-
var _params$
|
|
50916
|
+
var _params$45, _params$46;
|
|
50878
50917
|
const errors = Array.from(validateParams(params, 2));
|
|
50879
50918
|
if (errors.length > 0) {
|
|
50880
50919
|
return new FunctionValidationErrorCollection(errors);
|
|
50881
50920
|
}
|
|
50882
|
-
const exprParam = (_params$
|
|
50883
|
-
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;
|
|
50884
50923
|
if (exprParam == undefined) {
|
|
50885
50924
|
throw new Error("Expected expression for addYears().");
|
|
50886
50925
|
}
|
|
@@ -50896,13 +50935,13 @@ const addYearsKCLangFunction = params => {
|
|
|
50896
50935
|
};
|
|
50897
50936
|
};
|
|
50898
50937
|
const dateToStringKCLangFunction = params => {
|
|
50899
|
-
var _params$
|
|
50938
|
+
var _params$47, _params$48;
|
|
50900
50939
|
const errors = Array.from(validateParams(params, 1, 2));
|
|
50901
50940
|
if (errors.length > 0) {
|
|
50902
50941
|
return new FunctionValidationErrorCollection(errors);
|
|
50903
50942
|
}
|
|
50904
|
-
const exprParam = (_params$
|
|
50905
|
-
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;
|
|
50906
50945
|
if (exprParam == undefined) {
|
|
50907
50946
|
throw new Error("Expected expression for dateToString().");
|
|
50908
50947
|
}
|
|
@@ -50917,12 +50956,12 @@ const dateToStringKCLangFunction = params => {
|
|
|
50917
50956
|
};
|
|
50918
50957
|
};
|
|
50919
50958
|
const dateTimeKCLangFunction = params => {
|
|
50920
|
-
var _params$
|
|
50959
|
+
var _params$49;
|
|
50921
50960
|
const errors = Array.from(validateParams(params, 1));
|
|
50922
50961
|
if (errors.length > 0) {
|
|
50923
50962
|
return new FunctionValidationErrorCollection(errors);
|
|
50924
50963
|
}
|
|
50925
|
-
const param = (_params$
|
|
50964
|
+
const param = (_params$49 = params[0]) === null || _params$49 === void 0 ? void 0 : _params$49.value;
|
|
50926
50965
|
if (param == undefined) {
|
|
50927
50966
|
throw new Error("Unexpected error!");
|
|
50928
50967
|
}
|
|
@@ -50932,12 +50971,12 @@ const dateTimeKCLangFunction = params => {
|
|
|
50932
50971
|
};
|
|
50933
50972
|
};
|
|
50934
50973
|
const hasAutoFlagKCLangFunction = params => {
|
|
50935
|
-
var _params$
|
|
50974
|
+
var _params$50;
|
|
50936
50975
|
const errors = Array.from(validateParams(params, 1));
|
|
50937
50976
|
if (errors.length > 0) {
|
|
50938
50977
|
return new FunctionValidationErrorCollection(errors);
|
|
50939
50978
|
}
|
|
50940
|
-
const param = (_params$
|
|
50979
|
+
const param = (_params$50 = params[0]) === null || _params$50 === void 0 ? void 0 : _params$50.value;
|
|
50941
50980
|
if (param == undefined) {
|
|
50942
50981
|
throw new Error("Unexpected error!");
|
|
50943
50982
|
}
|
|
@@ -50947,13 +50986,13 @@ const hasAutoFlagKCLangFunction = params => {
|
|
|
50947
50986
|
};
|
|
50948
50987
|
};
|
|
50949
50988
|
const makeDictKCLangFunction = params => {
|
|
50950
|
-
var _params$
|
|
50989
|
+
var _params$51, _params$52;
|
|
50951
50990
|
const errors = Array.from(validateParams(params, 2));
|
|
50952
50991
|
if (errors.length > 0) {
|
|
50953
50992
|
return new FunctionValidationErrorCollection(errors);
|
|
50954
50993
|
}
|
|
50955
|
-
const sourceKeyPathParam = (_params$
|
|
50956
|
-
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;
|
|
50957
50996
|
if ((sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || sourceValuePathParam == undefined) {
|
|
50958
50997
|
const argumentsValidationError = new ArgumentValidationError("Invalid argument sourceKeyPath");
|
|
50959
50998
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -50965,13 +51004,13 @@ const makeDictKCLangFunction = params => {
|
|
|
50965
51004
|
};
|
|
50966
51005
|
};
|
|
50967
51006
|
const getSumByKeysKCLangFunction = params => {
|
|
50968
|
-
var _params$
|
|
51007
|
+
var _params$53, _params$54;
|
|
50969
51008
|
const errors = Array.from(validateParams(params, 2));
|
|
50970
51009
|
if (errors.length > 0) {
|
|
50971
51010
|
return new FunctionValidationErrorCollection(errors);
|
|
50972
51011
|
}
|
|
50973
|
-
const dictPathParam = (_params$
|
|
50974
|
-
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;
|
|
50975
51014
|
if (targetKeysParam == undefined || (dictPathParam === null || dictPathParam === void 0 ? void 0 : dictPathParam.type) !== "argument") {
|
|
50976
51015
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments dictPathParam, targetKeysParam");
|
|
50977
51016
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -50987,12 +51026,12 @@ const getSumByKeysKCLangFunction = params => {
|
|
|
50987
51026
|
};
|
|
50988
51027
|
};
|
|
50989
51028
|
const joinKCLangFunction = params => {
|
|
50990
|
-
var _params$
|
|
51029
|
+
var _params$55;
|
|
50991
51030
|
const errors = Array.from(validateParams(params, 1));
|
|
50992
51031
|
if (errors.length > 0) {
|
|
50993
51032
|
return new FunctionValidationErrorCollection(errors);
|
|
50994
51033
|
}
|
|
50995
|
-
const arrayParam = (_params$
|
|
51034
|
+
const arrayParam = (_params$55 = params[0]) === null || _params$55 === void 0 ? void 0 : _params$55.value;
|
|
50996
51035
|
if (arrayParam == undefined) {
|
|
50997
51036
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments arrayParam");
|
|
50998
51037
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -51078,7 +51117,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
51078
51117
|
hasAutoFlag: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.hasAutoFlagKCLangFunction],
|
|
51079
51118
|
makeDict: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.makeDictKCLangFunction],
|
|
51080
51119
|
getSumByKeys: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getSumByKeysKCLangFunction],
|
|
51081
|
-
join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction]
|
|
51120
|
+
join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction],
|
|
51121
|
+
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
|
|
51082
51122
|
});
|
|
51083
51123
|
class KCLangAntlrParser {
|
|
51084
51124
|
static parse(code) {
|
|
@@ -59823,6 +59863,32 @@ class GetPicklistValuesFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODU
|
|
|
59823
59863
|
|
|
59824
59864
|
/***/ }),
|
|
59825
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
|
+
|
|
59826
59892
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts":
|
|
59827
59893
|
/*!***************************************************************************!*\
|
|
59828
59894
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/JoinFunctionCall.ts ***!
|
|
@@ -60799,6 +60865,9 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
60799
60865
|
case "instanceCount":
|
|
60800
60866
|
visitor.visitInstanceCountKCLangNode(node);
|
|
60801
60867
|
break;
|
|
60868
|
+
case "isEqualToAutoCalculated":
|
|
60869
|
+
visitor.visitIsEqualToAutoCalculatedKCLangNode(node);
|
|
60870
|
+
break;
|
|
60802
60871
|
case "or":
|
|
60803
60872
|
for (const expression of node.expressions) {
|
|
60804
60873
|
traverseKCLangExpression(expression, visitor);
|
|
@@ -61012,6 +61081,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
61012
61081
|
visitInstanceCountKCLangNode(node) {
|
|
61013
61082
|
// default empty implementation
|
|
61014
61083
|
}
|
|
61084
|
+
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
61085
|
+
// default empty implementation
|
|
61086
|
+
}
|
|
61015
61087
|
visitSubstringKCLangNode(node) {
|
|
61016
61088
|
// default empty implementation
|
|
61017
61089
|
}
|
|
@@ -61245,6 +61317,8 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
61245
61317
|
return `${countFnName}("${expression.select}")`;
|
|
61246
61318
|
case "instanceCount":
|
|
61247
61319
|
return `${countFnName}("${expression.select}")`;
|
|
61320
|
+
case "isEqualToAutoCalculated":
|
|
61321
|
+
return `isEqualToAutoCalculated("${expression.select}")`;
|
|
61248
61322
|
case "multiply":
|
|
61249
61323
|
case "division":
|
|
61250
61324
|
case "noteq":
|
|
@@ -61628,6 +61702,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
61628
61702
|
return `<m:count select="${printPath(expression.select)}" />`;
|
|
61629
61703
|
case "instanceCount":
|
|
61630
61704
|
return `<m:instanceCount select="${printPath(expression.select)}" />`;
|
|
61705
|
+
case "isEqualToAutoCalculated":
|
|
61706
|
+
return `<m:isEqualToAutoCalculated select="${printPath(expression.select)}" type="${expression.targetType}" />`;
|
|
61631
61707
|
case "join":
|
|
61632
61708
|
return [`<m:join>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.array, prefixPath), 2), `</m:join>`].join("\n");
|
|
61633
61709
|
case "property":
|
|
@@ -61767,6 +61843,11 @@ function guessConditionTarget(condition) {
|
|
|
61767
61843
|
result = node.select;
|
|
61768
61844
|
}
|
|
61769
61845
|
}
|
|
61846
|
+
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
61847
|
+
if (result == undefined) {
|
|
61848
|
+
result = node.select;
|
|
61849
|
+
}
|
|
61850
|
+
}
|
|
61770
61851
|
}
|
|
61771
61852
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
61772
61853
|
return result;
|
|
@@ -61832,6 +61913,11 @@ function inferConditionTarget(condition, targetValue) {
|
|
|
61832
61913
|
result = node.select;
|
|
61833
61914
|
}
|
|
61834
61915
|
}
|
|
61916
|
+
visitIsEqualToAutoCalculatedKCLangNode(node) {
|
|
61917
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
61918
|
+
result = node.select;
|
|
61919
|
+
}
|
|
61920
|
+
}
|
|
61835
61921
|
}
|
|
61836
61922
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
61837
61923
|
return result;
|
|
@@ -62032,12 +62118,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62032
62118
|
/* harmony export */ });
|
|
62033
62119
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
62034
62120
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
62035
|
-
/* harmony import */ var
|
|
62036
|
-
/* harmony import */ var
|
|
62037
|
-
/* harmony import */ var
|
|
62038
|
-
/* harmony import */ var
|
|
62039
|
-
/* harmony import */ var _SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SchemaRngSerializer */ "./Generator/src/common/SchemaRng/SchemaRngSerializer.ts");
|
|
62040
|
-
|
|
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");
|
|
62041
62125
|
|
|
62042
62126
|
|
|
62043
62127
|
|
|
@@ -62160,7 +62244,7 @@ class FormSchemaRng {
|
|
|
62160
62244
|
return this.createFromSchemaRng(`<element name="Root" />`);
|
|
62161
62245
|
}
|
|
62162
62246
|
static createFromSchemaRng(schemaRngXmlContent) {
|
|
62163
|
-
const schemaRngElement = (0,
|
|
62247
|
+
const schemaRngElement = (0,_SchemaRngSerializer__WEBPACK_IMPORTED_MODULE_5__.deserializeSchemaRng)(schemaRngXmlContent);
|
|
62164
62248
|
return new FormSchemaRng(this.convertSchemaRngElement(schemaRngElement, RootParent));
|
|
62165
62249
|
}
|
|
62166
62250
|
static convertSchemaRngElement(schemaRngElement, parent) {
|
|
@@ -62192,23 +62276,23 @@ class FormSchemaRng {
|
|
|
62192
62276
|
const result = new FormSchemaRngTypeInfo(this.toCandyBaseType(type));
|
|
62193
62277
|
result.description = type.description;
|
|
62194
62278
|
result.requiredDescription = type.requiredDescription;
|
|
62195
|
-
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));
|
|
62196
62280
|
if (enumerations.length > 0) {
|
|
62197
62281
|
result.enumeration = enumerations.map(x => x.value);
|
|
62198
62282
|
}
|
|
62199
|
-
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));
|
|
62200
62284
|
if (patternTypeChecks.length > 0) {
|
|
62201
62285
|
result.patterns = patternTypeChecks.map(x => x.value);
|
|
62202
62286
|
}
|
|
62203
|
-
result.length = (_type$children$find = type.children.find((0,
|
|
62204
|
-
result.minLength = (_type$children$find2 = type.children.find((0,
|
|
62205
|
-
result.valueEqlAutoValue = (_type$children$find3 = type.children.find((0,
|
|
62206
|
-
result.maxLength = (_type$children$find4 = type.children.find((0,
|
|
62207
|
-
result.totalDigits = (_type$children$find5 = type.children.find((0,
|
|
62208
|
-
result.integerDigits = (_type$children$find6 = type.children.find((0,
|
|
62209
|
-
result.fractionDigits = (_type$children$find7 = type.children.find((0,
|
|
62210
|
-
result.minInclusive = (_type$children$find8 = type.children.find((0,
|
|
62211
|
-
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;
|
|
62212
62296
|
return result;
|
|
62213
62297
|
}
|
|
62214
62298
|
static toCandyBaseType(type) {
|
|
@@ -62227,7 +62311,7 @@ class FormSchemaRng {
|
|
|
62227
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);
|
|
62228
62312
|
}
|
|
62229
62313
|
adjustPathMultiplicity(path) {
|
|
62230
|
-
const result = new
|
|
62314
|
+
const result = new _Common_ModelPath_ModelPathBuilder__WEBPACK_IMPORTED_MODULE_2__.ModelPathBuilder(true);
|
|
62231
62315
|
let currentElement;
|
|
62232
62316
|
for (const pathToken of path.getPathParts()) {
|
|
62233
62317
|
var _currentElement;
|
|
@@ -62414,14 +62498,6 @@ class FormSchemaRngTypeInfo {
|
|
|
62414
62498
|
this.valueEqlAutoValue = void 0;
|
|
62415
62499
|
this.baseType = baseType;
|
|
62416
62500
|
}
|
|
62417
|
-
*buildValidators(description) {
|
|
62418
|
-
if (this.valueEqlAutoValue != undefined) {
|
|
62419
|
-
var _this$valueEqlAutoVal;
|
|
62420
|
-
const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.AutoValueEqualValueValidator");
|
|
62421
|
-
builder.set(0, (_this$valueEqlAutoVal = this.valueEqlAutoValue) !== null && _this$valueEqlAutoVal !== void 0 ? _this$valueEqlAutoVal : "error");
|
|
62422
|
-
yield builder;
|
|
62423
|
-
}
|
|
62424
|
-
}
|
|
62425
62501
|
}
|
|
62426
62502
|
|
|
62427
62503
|
/***/ }),
|
|
@@ -67206,6 +67282,10 @@ function traverseFormulaExpression(expression, visitor) {
|
|
|
67206
67282
|
visitor.beforeInstanceCountExpression(expression);
|
|
67207
67283
|
visitor.afterInstanceCountExpression(expression);
|
|
67208
67284
|
}
|
|
67285
|
+
if (expression instanceof _KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsEqualToAutoCalculatedExpression) {
|
|
67286
|
+
visitor.beforeIsEqualToAutoCalculatedExpression(expression);
|
|
67287
|
+
visitor.afterIsEqualToAutoCalculatedExpression(expression);
|
|
67288
|
+
}
|
|
67209
67289
|
}
|
|
67210
67290
|
|
|
67211
67291
|
/***/ }),
|
|
@@ -67280,6 +67360,13 @@ class FormulaProcessor {
|
|
|
67280
67360
|
const argumentName = this.addDependency(expression.select);
|
|
67281
67361
|
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
67282
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
|
+
}
|
|
67283
67370
|
beforeMultySumExpression(expression) {
|
|
67284
67371
|
// noop
|
|
67285
67372
|
}
|
|
@@ -67797,6 +67884,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
67797
67884
|
/* harmony export */ FormulaHashSetExpression: () => (/* binding */ FormulaHashSetExpression),
|
|
67798
67885
|
/* harmony export */ FormulaInstanceCountExpression: () => (/* binding */ FormulaInstanceCountExpression),
|
|
67799
67886
|
/* harmony export */ FormulaIsDateExpression: () => (/* binding */ FormulaIsDateExpression),
|
|
67887
|
+
/* harmony export */ FormulaIsEqualToAutoCalculatedExpression: () => (/* binding */ FormulaIsEqualToAutoCalculatedExpression),
|
|
67800
67888
|
/* harmony export */ FormulaIsInnExpression: () => (/* binding */ FormulaIsInnExpression),
|
|
67801
67889
|
/* harmony export */ FormulaIsOgrnExpression: () => (/* binding */ FormulaIsOgrnExpression),
|
|
67802
67890
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
@@ -67841,7 +67929,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
67841
67929
|
|
|
67842
67930
|
|
|
67843
67931
|
|
|
67844
|
-
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;
|
|
67845
67933
|
|
|
67846
67934
|
|
|
67847
67935
|
|
|
@@ -68710,223 +68798,240 @@ let FormulaInstanceCountExpression = (_dec138 = (0,_markupGenerator_Serializer_S
|
|
|
68710
68798
|
writable: true,
|
|
68711
68799
|
initializer: null
|
|
68712
68800
|
}), _class120)) || _class119);
|
|
68713
|
-
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 {
|
|
68714
68802
|
constructor(...args) {
|
|
68715
68803
|
super(...args);
|
|
68716
|
-
_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);
|
|
68717
68806
|
}
|
|
68718
|
-
}, _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], {
|
|
68719
68813
|
configurable: true,
|
|
68720
68814
|
enumerable: true,
|
|
68721
68815
|
writable: true,
|
|
68722
68816
|
initializer: null
|
|
68723
68817
|
}), _class122)) || _class121);
|
|
68724
|
-
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 {
|
|
68725
68819
|
constructor(...args) {
|
|
68726
68820
|
super(...args);
|
|
68727
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68821
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor81, this);
|
|
68728
68822
|
}
|
|
68729
|
-
},
|
|
68823
|
+
}, _descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "array", [_dec144], {
|
|
68730
68824
|
configurable: true,
|
|
68731
68825
|
enumerable: true,
|
|
68732
68826
|
writable: true,
|
|
68733
68827
|
initializer: null
|
|
68734
68828
|
}), _class124)) || _class123);
|
|
68735
|
-
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 {
|
|
68736
68830
|
constructor(...args) {
|
|
68737
68831
|
super(...args);
|
|
68738
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
68832
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor82, this);
|
|
68739
68833
|
}
|
|
68740
|
-
},
|
|
68834
|
+
}, _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class126.prototype, "name", [_dec146], {
|
|
68741
68835
|
configurable: true,
|
|
68742
68836
|
enumerable: true,
|
|
68743
68837
|
writable: true,
|
|
68744
68838
|
initializer: null
|
|
68745
68839
|
}), _class126)) || _class125);
|
|
68746
|
-
let
|
|
68747
|
-
|
|
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 {
|
|
68841
|
+
constructor(...args) {
|
|
68842
|
+
super(...args);
|
|
68843
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor83, this);
|
|
68844
|
+
}
|
|
68845
|
+
}, _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class128.prototype, "arguments", [_dec148], {
|
|
68846
|
+
configurable: true,
|
|
68847
|
+
enumerable: true,
|
|
68848
|
+
writable: true,
|
|
68849
|
+
initializer: null
|
|
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 {
|
|
68748
68853
|
constructor(...args) {
|
|
68749
68854
|
super(...args);
|
|
68750
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
68751
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
68752
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
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);
|
|
68753
68858
|
}
|
|
68754
|
-
},
|
|
68859
|
+
}, _descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "match", [_dec151], {
|
|
68755
68860
|
configurable: true,
|
|
68756
68861
|
enumerable: true,
|
|
68757
68862
|
writable: true,
|
|
68758
68863
|
initializer: null
|
|
68759
|
-
}),
|
|
68864
|
+
}), _descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "target", [_dec152], {
|
|
68760
68865
|
configurable: true,
|
|
68761
68866
|
enumerable: true,
|
|
68762
68867
|
writable: true,
|
|
68763
68868
|
initializer: null
|
|
68764
|
-
}),
|
|
68869
|
+
}), _descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "expression", [_dec153], {
|
|
68765
68870
|
configurable: true,
|
|
68766
68871
|
enumerable: true,
|
|
68767
68872
|
writable: true,
|
|
68768
68873
|
initializer: null
|
|
68769
|
-
}),
|
|
68770
|
-
let FormulaNoDepsNode = (
|
|
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 {
|
|
68771
68876
|
constructor(...args) {
|
|
68772
68877
|
super(...args);
|
|
68773
|
-
_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);
|
|
68774
68879
|
}
|
|
68775
|
-
},
|
|
68880
|
+
}, _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec155], {
|
|
68776
68881
|
configurable: true,
|
|
68777
68882
|
enumerable: true,
|
|
68778
68883
|
writable: true,
|
|
68779
68884
|
initializer: null
|
|
68780
|
-
}),
|
|
68781
|
-
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 {
|
|
68782
68887
|
constructor(...args) {
|
|
68783
68888
|
super(...args);
|
|
68784
|
-
_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);
|
|
68785
68890
|
}
|
|
68786
|
-
},
|
|
68891
|
+
}, _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec157], {
|
|
68787
68892
|
configurable: true,
|
|
68788
68893
|
enumerable: true,
|
|
68789
68894
|
writable: true,
|
|
68790
68895
|
initializer: null
|
|
68791
|
-
}),
|
|
68792
|
-
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 {
|
|
68793
68898
|
constructor(...args) {
|
|
68794
68899
|
super(...args);
|
|
68795
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
68796
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
68797
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
68798
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
68799
|
-
_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);
|
|
68800
68905
|
}
|
|
68801
|
-
},
|
|
68906
|
+
}, _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "match", [_dec159], {
|
|
68802
68907
|
configurable: true,
|
|
68803
68908
|
enumerable: true,
|
|
68804
68909
|
writable: true,
|
|
68805
68910
|
initializer: null
|
|
68806
|
-
}),
|
|
68911
|
+
}), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "target", [_dec160], {
|
|
68807
68912
|
configurable: true,
|
|
68808
68913
|
enumerable: true,
|
|
68809
68914
|
writable: true,
|
|
68810
68915
|
initializer: null
|
|
68811
|
-
}),
|
|
68916
|
+
}), _descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "description", [_dec161], {
|
|
68812
68917
|
configurable: true,
|
|
68813
68918
|
enumerable: true,
|
|
68814
68919
|
writable: true,
|
|
68815
68920
|
initializer: null
|
|
68816
|
-
}),
|
|
68921
|
+
}), _descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "errorLevel", [_dec162], {
|
|
68817
68922
|
configurable: true,
|
|
68818
68923
|
enumerable: true,
|
|
68819
68924
|
writable: true,
|
|
68820
68925
|
initializer: null
|
|
68821
|
-
}),
|
|
68926
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "expression", [_dec163], {
|
|
68822
68927
|
configurable: true,
|
|
68823
68928
|
enumerable: true,
|
|
68824
68929
|
writable: true,
|
|
68825
68930
|
initializer: null
|
|
68826
|
-
}),
|
|
68827
|
-
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 {
|
|
68828
68933
|
constructor(...args) {
|
|
68829
68934
|
super(...args);
|
|
68830
|
-
_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);
|
|
68831
68936
|
}
|
|
68832
|
-
},
|
|
68937
|
+
}, _descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "items", [_dec165], {
|
|
68833
68938
|
configurable: true,
|
|
68834
68939
|
enumerable: true,
|
|
68835
68940
|
writable: true,
|
|
68836
68941
|
initializer: null
|
|
68837
|
-
}),
|
|
68838
|
-
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 {
|
|
68839
68944
|
constructor(...args) {
|
|
68840
68945
|
super(...args);
|
|
68841
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
68842
|
-
_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);
|
|
68843
68948
|
}
|
|
68844
|
-
},
|
|
68949
|
+
}, _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "formulas", [_dec167], {
|
|
68845
68950
|
configurable: true,
|
|
68846
68951
|
enumerable: true,
|
|
68847
68952
|
writable: true,
|
|
68848
68953
|
initializer: null
|
|
68849
|
-
}),
|
|
68954
|
+
}), _descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "conditions", [_dec168], {
|
|
68850
68955
|
configurable: true,
|
|
68851
68956
|
enumerable: true,
|
|
68852
68957
|
writable: true,
|
|
68853
68958
|
initializer: null
|
|
68854
|
-
}),
|
|
68855
|
-
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 {
|
|
68856
68961
|
constructor(...args) {
|
|
68857
68962
|
super(...args);
|
|
68858
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
68859
|
-
_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);
|
|
68860
68965
|
}
|
|
68861
|
-
},
|
|
68966
|
+
}, _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec170], {
|
|
68862
68967
|
configurable: true,
|
|
68863
68968
|
enumerable: true,
|
|
68864
68969
|
writable: true,
|
|
68865
68970
|
initializer: null
|
|
68866
|
-
}),
|
|
68971
|
+
}), _descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValueExpression", [_dec171], {
|
|
68867
68972
|
configurable: true,
|
|
68868
68973
|
enumerable: true,
|
|
68869
68974
|
writable: true,
|
|
68870
68975
|
initializer: null
|
|
68871
|
-
}),
|
|
68872
|
-
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 {
|
|
68873
68978
|
constructor(...args) {
|
|
68874
68979
|
super(...args);
|
|
68875
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
68876
|
-
_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);
|
|
68877
68982
|
}
|
|
68878
|
-
},
|
|
68983
|
+
}, _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "dictPath", [_dec173], {
|
|
68879
68984
|
configurable: true,
|
|
68880
68985
|
enumerable: true,
|
|
68881
68986
|
writable: true,
|
|
68882
68987
|
initializer: null
|
|
68883
|
-
}),
|
|
68988
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec174], {
|
|
68884
68989
|
configurable: true,
|
|
68885
68990
|
enumerable: true,
|
|
68886
68991
|
writable: true,
|
|
68887
68992
|
initializer: null
|
|
68888
|
-
}),
|
|
68889
|
-
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 {
|
|
68890
68995
|
constructor(...args) {
|
|
68891
68996
|
super(...args);
|
|
68892
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
68893
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
68894
|
-
_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);
|
|
68895
69000
|
}
|
|
68896
|
-
},
|
|
69001
|
+
}, _descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "targetKeys", [_dec176], {
|
|
68897
69002
|
configurable: true,
|
|
68898
69003
|
enumerable: true,
|
|
68899
69004
|
writable: true,
|
|
68900
69005
|
initializer: null
|
|
68901
|
-
}),
|
|
69006
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceKeyPath", [_dec177], {
|
|
68902
69007
|
configurable: true,
|
|
68903
69008
|
enumerable: true,
|
|
68904
69009
|
writable: true,
|
|
68905
69010
|
initializer: null
|
|
68906
|
-
}),
|
|
69011
|
+
}), _descriptor103 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class147.prototype, "sourceValuePath", [_dec178], {
|
|
68907
69012
|
configurable: true,
|
|
68908
69013
|
enumerable: true,
|
|
68909
69014
|
writable: true,
|
|
68910
69015
|
initializer: null
|
|
68911
|
-
}),
|
|
68912
|
-
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 {
|
|
68913
69018
|
constructor(...args) {
|
|
68914
69019
|
super(...args);
|
|
68915
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
68916
|
-
_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);
|
|
68917
69022
|
}
|
|
68918
|
-
},
|
|
69023
|
+
}, _descriptor104 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "targetKeys", [_dec180], {
|
|
68919
69024
|
configurable: true,
|
|
68920
69025
|
enumerable: true,
|
|
68921
69026
|
writable: true,
|
|
68922
69027
|
initializer: null
|
|
68923
|
-
}),
|
|
69028
|
+
}), _descriptor105 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class149.prototype, "sourceKeyPath", [_dec181], {
|
|
68924
69029
|
configurable: true,
|
|
68925
69030
|
enumerable: true,
|
|
68926
69031
|
writable: true,
|
|
68927
69032
|
initializer: null
|
|
68928
|
-
}),
|
|
68929
|
-
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];
|
|
68930
69035
|
|
|
68931
69036
|
/***/ }),
|
|
68932
69037
|
|
|
@@ -69291,7 +69396,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
69291
69396
|
}
|
|
69292
69397
|
const defaultValue = dataDeclaration.getDefaultValue(path);
|
|
69293
69398
|
const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
|
|
69294
|
-
const autoValidationInfo = dataDeclaration.getValueEqlAutoValueValidationInfo(path);
|
|
69295
69399
|
const node = getOrCreateNode(nodes, path);
|
|
69296
69400
|
if (isMultiple) {
|
|
69297
69401
|
var _node$properties;
|
|
@@ -69303,13 +69407,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
69303
69407
|
(_node$properties2 = node.properties) !== null && _node$properties2 !== void 0 ? _node$properties2 : node.properties = {};
|
|
69304
69408
|
node.properties.defaultValue = defaultValue;
|
|
69305
69409
|
}
|
|
69306
|
-
if (autoValidationInfo != undefined) {
|
|
69307
|
-
var _node$properties3, _autoValidationInfo$c, _autoValidationInfo$c2;
|
|
69308
|
-
(_node$properties3 = node.properties) !== null && _node$properties3 !== void 0 ? _node$properties3 : node.properties = {};
|
|
69309
|
-
node.properties.valueEqlAutoValue = autoValidationInfo.severity;
|
|
69310
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
69311
|
-
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;
|
|
69312
|
-
}
|
|
69313
69410
|
}
|
|
69314
69411
|
if (nodes.size == 1) {
|
|
69315
69412
|
var _;
|
|
@@ -69391,22 +69488,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69391
69488
|
/* harmony import */ var lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mergewith__WEBPACK_IMPORTED_MODULE_0__);
|
|
69392
69489
|
/* harmony import */ var lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash.uniqwith */ "./node_modules/lodash.uniqwith/index.js");
|
|
69393
69490
|
/* harmony import */ var lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1__);
|
|
69394
|
-
/* harmony import */ var
|
|
69395
|
-
/* harmony import */ var
|
|
69396
|
-
/* harmony import */ var
|
|
69397
|
-
/* harmony import */ var
|
|
69398
|
-
/* harmony import */ var
|
|
69399
|
-
/* 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");
|
|
69400
69497
|
/* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
69401
|
-
/* harmony import */ var
|
|
69402
|
-
/* harmony import */ var
|
|
69403
|
-
/* harmony import */ var
|
|
69404
|
-
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
69405
|
-
/* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
|
|
69406
|
-
/* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
|
|
69407
|
-
|
|
69408
|
-
|
|
69409
|
-
|
|
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");
|
|
69410
69501
|
|
|
69411
69502
|
|
|
69412
69503
|
|
|
@@ -69459,22 +69550,22 @@ class DataDeclarationGenerationContext {
|
|
|
69459
69550
|
return;
|
|
69460
69551
|
}
|
|
69461
69552
|
const objVal = objDataValue[objDataValue.length - 1];
|
|
69462
|
-
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);
|
|
69463
69554
|
if (nodeWithSettings) {
|
|
69464
69555
|
return nodeWithSettings;
|
|
69465
69556
|
}
|
|
69466
|
-
if (objDataValue.sequenceType ===
|
|
69557
|
+
if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
|
|
69467
69558
|
if (objVal) {
|
|
69468
69559
|
const res = lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default()(objValue, srcValue);
|
|
69469
69560
|
res.value[res.value.length - 1] = objVal;
|
|
69470
69561
|
return res;
|
|
69471
69562
|
}
|
|
69472
|
-
} else if (srcDataValue.sequenceType ===
|
|
69563
|
+
} else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
|
|
69473
69564
|
return srcValue;
|
|
69474
|
-
} else if (objDataValue.sequenceType ===
|
|
69565
|
+
} else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
|
|
69475
69566
|
return objValue;
|
|
69476
69567
|
}
|
|
69477
|
-
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);
|
|
69478
69569
|
if (nodeDisabled) {
|
|
69479
69570
|
return nodeDisabled;
|
|
69480
69571
|
}
|
|
@@ -69488,32 +69579,12 @@ class DataDeclarationGenerationContext {
|
|
|
69488
69579
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
69489
69580
|
this.typesRegistry = typesRegistry;
|
|
69490
69581
|
}
|
|
69491
|
-
addValueEqlAutoValue(node, typeInfo, contextPath) {
|
|
69492
|
-
var _ref, _typeNode$children$fi, _typeNode$children, _typeNode$children2;
|
|
69493
|
-
const typeNode = this.getTypeNode(typeInfo);
|
|
69494
|
-
const schemaTypeNode = this.formSchemaRng.getTypeNodeByPath(node.getFullPath());
|
|
69495
|
-
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;
|
|
69496
|
-
if (valueEqlAutoValueErrorLevel != undefined) {
|
|
69497
|
-
var _typeNode$children$fi2, _typeNode$children3, _typeNode$children4, _omitLocalization, _typeNode$children5;
|
|
69498
|
-
const declEntry = {};
|
|
69499
|
-
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;
|
|
69500
|
-
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;
|
|
69501
|
-
declEntry.valueEqlAutoValue = valueEqlAutoValueErrorLevel;
|
|
69502
|
-
declEntry.valueEqlAutoValueCondition = validationCondition;
|
|
69503
|
-
declEntry.valueEqlAutoValueConditionContextPath = contextPath.toLegacyPath();
|
|
69504
|
-
declEntry.valueEqlAutoValueErrorMessage = validationErrorMessage;
|
|
69505
|
-
return {
|
|
69506
|
-
[(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getResolvedBindingPath)(node)]: declEntry
|
|
69507
|
-
};
|
|
69508
|
-
}
|
|
69509
|
-
return {};
|
|
69510
|
-
}
|
|
69511
69582
|
isMultipleNodeOptionalFromScheme(path) {
|
|
69512
69583
|
if (!this.schemeValidations) {
|
|
69513
69584
|
return undefined;
|
|
69514
69585
|
}
|
|
69515
69586
|
const schemaNode = this.formSchemaRng.getElementByPath(path);
|
|
69516
|
-
if (schemaNode instanceof
|
|
69587
|
+
if (schemaNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__.FormSchemaRngElement) {
|
|
69517
69588
|
var _schemaNode$isOptiona;
|
|
69518
69589
|
return (_schemaNode$isOptiona = schemaNode.isOptionalOrNillable()) !== null && _schemaNode$isOptiona !== void 0 ? _schemaNode$isOptiona : false;
|
|
69519
69590
|
}
|
|
@@ -69548,7 +69619,7 @@ class DataDeclarationGenerationContext {
|
|
|
69548
69619
|
return {};
|
|
69549
69620
|
}
|
|
69550
69621
|
const declEntry = {};
|
|
69551
|
-
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));
|
|
69552
69623
|
declEntry.section = this.getSections(node, requisite);
|
|
69553
69624
|
return {
|
|
69554
69625
|
[nodePath.normalize().toLegacyPath()]: declEntry
|
|
@@ -69569,7 +69640,7 @@ class DataDeclarationGenerationContext {
|
|
|
69569
69640
|
}
|
|
69570
69641
|
addPathDeclEntry(sugarNode, fieldNames) {
|
|
69571
69642
|
const declEntry = {};
|
|
69572
|
-
for (const [fieldName, option] of fieldNames.filter(
|
|
69643
|
+
for (const [fieldName, option] of fieldNames.filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined)) {
|
|
69573
69644
|
// @ts-ignore
|
|
69574
69645
|
declEntry[fieldName] = option;
|
|
69575
69646
|
}
|
|
@@ -69607,7 +69678,7 @@ class DataDeclarationGenerationContext {
|
|
|
69607
69678
|
addChildPathSectionDeclarationEntry(sugarNode, childPath, requisite) {
|
|
69608
69679
|
const declEntry = {};
|
|
69609
69680
|
declEntry.section = this.getSections(sugarNode, requisite);
|
|
69610
|
-
if ((0,
|
|
69681
|
+
if ((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.isModelPath)(childPath)) {
|
|
69611
69682
|
return {
|
|
69612
69683
|
[(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getNewBindingPathExpression)(sugarNode).joinWith(childPath).toLegacyPath()]: declEntry
|
|
69613
69684
|
};
|
|
@@ -69652,7 +69723,7 @@ class DataDeclarationGenerationContext {
|
|
|
69652
69723
|
*getAllParentPages(node) {
|
|
69653
69724
|
let currentNode = node;
|
|
69654
69725
|
while (currentNode != undefined) {
|
|
69655
|
-
const parent = currentNode.findParentOfType(
|
|
69726
|
+
const parent = currentNode.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode);
|
|
69656
69727
|
if (parent != undefined) {
|
|
69657
69728
|
yield parent;
|
|
69658
69729
|
}
|
|
@@ -69660,13 +69731,13 @@ class DataDeclarationGenerationContext {
|
|
|
69660
69731
|
}
|
|
69661
69732
|
}
|
|
69662
69733
|
getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
|
|
69663
|
-
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);
|
|
69664
69735
|
const pageName = page === null || page === void 0 ? void 0 : page.id;
|
|
69665
69736
|
const pageRequiresResolution = page != undefined && (page.multiple || Iterator.from(this.getAllParentPages(page)).some(x => {
|
|
69666
69737
|
var _x$multiple;
|
|
69667
69738
|
return (_x$multiple = x.multiple) !== null && _x$multiple !== void 0 ? _x$multiple : false;
|
|
69668
69739
|
}));
|
|
69669
|
-
if (!(node instanceof
|
|
69740
|
+
if (!(node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode)) {
|
|
69670
69741
|
if (pageRequiresResolution) {
|
|
69671
69742
|
return [{
|
|
69672
69743
|
fn: `#getSectionFunction('${pageName}')#`
|
|
@@ -69676,22 +69747,22 @@ class DataDeclarationGenerationContext {
|
|
|
69676
69747
|
const sections = pageName != undefined ? [pageName] : [];
|
|
69677
69748
|
if (requisiteMode === RequisiteSectionMode.AsRequisiteAttribute) {
|
|
69678
69749
|
if (requisite) {
|
|
69679
|
-
sections.push(
|
|
69750
|
+
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
|
|
69680
69751
|
}
|
|
69681
69752
|
}
|
|
69682
69753
|
if (requisiteMode === RequisiteSectionMode.ForceAdd) {
|
|
69683
|
-
sections.push(
|
|
69754
|
+
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
|
|
69684
69755
|
}
|
|
69685
|
-
sections.push(
|
|
69756
|
+
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.defaultSection);
|
|
69686
69757
|
return sections;
|
|
69687
69758
|
}
|
|
69688
69759
|
buildNodeDataDeclaration(child, fieldNameToDeclInfo, nodeProcessor) {
|
|
69689
|
-
const controlConverterClass = (0,
|
|
69760
|
+
const controlConverterClass = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_6__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.getNodeClass)(child));
|
|
69690
69761
|
if (controlConverterClass == undefined) {
|
|
69691
|
-
if (child instanceof
|
|
69762
|
+
if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.UnknownSugarNode && child.name === "type") {
|
|
69692
69763
|
return emptyDataDeclarationCollection;
|
|
69693
69764
|
}
|
|
69694
|
-
if (child instanceof
|
|
69765
|
+
if (child instanceof _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__.UnknownSugarNode) {
|
|
69695
69766
|
const customControl = this.controlCustomizationContext.tryGetCustomRegularControl(child.name);
|
|
69696
69767
|
if (customControl != undefined) {
|
|
69697
69768
|
const hasBindingPath = customControl.properties.find(x => x.name === "path" && x.type === "bindingPath");
|
|
@@ -69701,7 +69772,7 @@ class DataDeclarationGenerationContext {
|
|
|
69701
69772
|
const result = nodeProcessor === null || nodeProcessor === void 0 ? void 0 : nodeProcessor(child);
|
|
69702
69773
|
if (result == undefined) {
|
|
69703
69774
|
// eslint-disable-next-line no-console
|
|
69704
|
-
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}`);
|
|
69705
69776
|
return emptyDataDeclarationCollection;
|
|
69706
69777
|
}
|
|
69707
69778
|
return result;
|
|
@@ -69738,10 +69809,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69738
69809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
69739
69810
|
/* harmony export */ DataDeclarationGenerationTimeHelper: () => (/* binding */ DataDeclarationGenerationTimeHelper)
|
|
69740
69811
|
/* harmony export */ });
|
|
69741
|
-
/* harmony import */ var
|
|
69742
|
-
/* harmony import */ var
|
|
69743
|
-
/* harmony import */ var
|
|
69744
|
-
/* 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");
|
|
69745
69816
|
|
|
69746
69817
|
|
|
69747
69818
|
|
|
@@ -69757,22 +69828,6 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
69757
69828
|
var _this$getDataDeclarat, _this$getDataDeclarat2;
|
|
69758
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;
|
|
69759
69830
|
}
|
|
69760
|
-
getValueEqlAutoValueValidationInfo(targetPath) {
|
|
69761
|
-
const dataDeclarationEntry = this.getDataDeclarationEntry(targetPath);
|
|
69762
|
-
const valueEqlAutoValueSeverity = dataDeclarationEntry === null || dataDeclarationEntry === void 0 ? void 0 : dataDeclarationEntry.valueEqlAutoValue;
|
|
69763
|
-
if (dataDeclarationEntry != undefined && valueEqlAutoValueSeverity != undefined) {
|
|
69764
|
-
var _dataDeclarationEntry;
|
|
69765
|
-
return {
|
|
69766
|
-
severity: valueEqlAutoValueSeverity,
|
|
69767
|
-
condition: dataDeclarationEntry.valueEqlAutoValueCondition != undefined ? {
|
|
69768
|
-
expression: dataDeclarationEntry.valueEqlAutoValueCondition,
|
|
69769
|
-
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)
|
|
69770
|
-
} : undefined,
|
|
69771
|
-
message: dataDeclarationEntry.valueEqlAutoValueErrorMessage
|
|
69772
|
-
};
|
|
69773
|
-
}
|
|
69774
|
-
return undefined;
|
|
69775
|
-
}
|
|
69776
69831
|
hasMask(targetPath) {
|
|
69777
69832
|
return this.getDataDeclarationEntry(targetPath) != undefined;
|
|
69778
69833
|
}
|
|
@@ -69811,21 +69866,21 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
69811
69866
|
return optionalBySugar == undefined ? optionalBySchema : optionalBySugar;
|
|
69812
69867
|
}
|
|
69813
69868
|
getDataDeclarationEntry(targetPath) {
|
|
69814
|
-
return this.dataDeclaration[(0,
|
|
69869
|
+
return this.dataDeclaration[(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.convertToLegacyPath)(targetPath)];
|
|
69815
69870
|
}
|
|
69816
69871
|
getOptionalSections() {
|
|
69817
69872
|
var _this$dataDeclaration, _this$dataDeclaration2;
|
|
69818
69873
|
const anyPath = Object.keys(this.dataDeclaration)[0];
|
|
69819
69874
|
if (anyPath == undefined) {
|
|
69820
|
-
return (0,
|
|
69875
|
+
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.reject)();
|
|
69821
69876
|
}
|
|
69822
|
-
const absolutePath = (0,
|
|
69823
|
-
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());
|
|
69824
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 : [];
|
|
69825
69880
|
}
|
|
69826
69881
|
*getAllPaths() {
|
|
69827
|
-
for (const key of (0,
|
|
69828
|
-
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);
|
|
69829
69884
|
}
|
|
69830
69885
|
}
|
|
69831
69886
|
getAllPathsBySection() {
|
|
@@ -69835,16 +69890,16 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
69835
69890
|
};
|
|
69836
69891
|
const section2Path = Object.entries(this.dataDeclaration).map(current => {
|
|
69837
69892
|
var _pathData$section;
|
|
69838
|
-
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);
|
|
69839
69894
|
const pathData = current[1];
|
|
69840
|
-
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 => ({
|
|
69841
69896
|
section: x,
|
|
69842
69897
|
path: path
|
|
69843
69898
|
})), x => x.section);
|
|
69844
69899
|
return [...allSections];
|
|
69845
69900
|
}).flat(1).reduce((acc, current) => {
|
|
69846
69901
|
var _acc$get;
|
|
69847
|
-
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();
|
|
69848
69903
|
currentPaths.add(current.path);
|
|
69849
69904
|
acc.set(current.section, currentPaths);
|
|
69850
69905
|
return acc;
|
|
@@ -70660,44 +70715,6 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
|
|
|
70660
70715
|
|
|
70661
70716
|
/***/ }),
|
|
70662
70717
|
|
|
70663
|
-
/***/ "./Generator/src/generators/ExtendedSchemaInfo.ts":
|
|
70664
|
-
/*!********************************************************!*\
|
|
70665
|
-
!*** ./Generator/src/generators/ExtendedSchemaInfo.ts ***!
|
|
70666
|
-
\********************************************************/
|
|
70667
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
70668
|
-
|
|
70669
|
-
"use strict";
|
|
70670
|
-
__webpack_require__.r(__webpack_exports__);
|
|
70671
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
70672
|
-
/* harmony export */ traverseExtendedSchemaInfo: () => (/* binding */ traverseExtendedSchemaInfo)
|
|
70673
|
-
/* harmony export */ });
|
|
70674
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
70675
|
-
|
|
70676
|
-
function traverseExtendedSchemaInfo(schemaInfo, func) {
|
|
70677
|
-
if (schemaInfo.root != undefined) {
|
|
70678
|
-
if (Array.isArray(schemaInfo.root)) {
|
|
70679
|
-
for (const root of schemaInfo.root) {
|
|
70680
|
-
traverseExtendedSchemaInfoInternal(root, func, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)([]));
|
|
70681
|
-
}
|
|
70682
|
-
} else {
|
|
70683
|
-
traverseExtendedSchemaInfoInternal(schemaInfo.root, func, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)([]));
|
|
70684
|
-
}
|
|
70685
|
-
}
|
|
70686
|
-
}
|
|
70687
|
-
function traverseExtendedSchemaInfoInternal(node, func, parentPath) {
|
|
70688
|
-
var _node$properties;
|
|
70689
|
-
let currentPath = parentPath.joinWith(node.name);
|
|
70690
|
-
if ((_node$properties = node.properties) !== null && _node$properties !== void 0 && _node$properties.multiple) {
|
|
70691
|
-
currentPath = currentPath.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
70692
|
-
}
|
|
70693
|
-
func(currentPath, node);
|
|
70694
|
-
for (const child of node.children) {
|
|
70695
|
-
traverseExtendedSchemaInfoInternal(child, func, currentPath);
|
|
70696
|
-
}
|
|
70697
|
-
}
|
|
70698
|
-
|
|
70699
|
-
/***/ }),
|
|
70700
|
-
|
|
70701
70718
|
/***/ "./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts":
|
|
70702
70719
|
/*!***************************************************************************!*\
|
|
70703
70720
|
!*** ./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts ***!
|
|
@@ -71358,6 +71375,12 @@ class KCXmlGeneratorBase {
|
|
|
71358
71375
|
deps.push(new DependencyWithoutChecks(finalPath));
|
|
71359
71376
|
return gcf(x => x.instanceCount, `"${finalPath.toLegacyPath()}"`);
|
|
71360
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
|
+
}
|
|
71361
71384
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
71362
71385
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
71363
71386
|
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
|
|
@@ -71662,23 +71685,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71662
71685
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
71663
71686
|
/* harmony export */ KCXmlValidationGenerator: () => (/* binding */ KCXmlValidationGenerator)
|
|
71664
71687
|
/* harmony export */ });
|
|
71665
|
-
/* harmony import */ var
|
|
71666
|
-
/* harmony import */ var
|
|
71667
|
-
/* harmony import */ var
|
|
71668
|
-
/* harmony import */ var
|
|
71669
|
-
/* harmony import */ var
|
|
71670
|
-
/* harmony import */ var
|
|
71671
|
-
/* 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");
|
|
71672
71695
|
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
71673
|
-
/* harmony import */ var
|
|
71674
|
-
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
71675
|
-
/* 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");
|
|
71676
|
-
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
71677
|
-
/* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
|
|
71678
|
-
|
|
71679
|
-
|
|
71680
|
-
|
|
71681
|
-
|
|
71696
|
+
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
71682
71697
|
|
|
71683
71698
|
|
|
71684
71699
|
|
|
@@ -71691,14 +71706,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71691
71706
|
const emptyResult = `
|
|
71692
71707
|
export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
|
|
71693
71708
|
`;
|
|
71694
|
-
class KCXmlValidationGenerator extends
|
|
71709
|
+
class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_8__.KCXmlGeneratorBase {
|
|
71695
71710
|
generateConfigurationFunction(kcXmlConditions, options) {
|
|
71696
71711
|
var _this$generateCalcula;
|
|
71697
71712
|
const configuration = (_this$generateCalcula = this.generateCalculatorConfiguration(kcXmlConditions, options)) !== null && _this$generateCalcula !== void 0 ? _this$generateCalcula : "";
|
|
71698
71713
|
if (configuration === undefined) {
|
|
71699
71714
|
return emptyResult;
|
|
71700
71715
|
}
|
|
71701
|
-
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");
|
|
71702
71717
|
}
|
|
71703
71718
|
generate(kcXmlConditions, options) {
|
|
71704
71719
|
const configuration = this.generateCalculatorConfiguration(kcXmlConditions, options);
|
|
@@ -71711,86 +71726,42 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
71711
71726
|
`;
|
|
71712
71727
|
}
|
|
71713
71728
|
generateCalculatorConfiguration(kcXmlConditions, options) {
|
|
71714
|
-
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(
|
|
71715
|
-
(0,_ExtendedSchemaInfo__WEBPACK_IMPORTED_MODULE_8__.traverseExtendedSchemaInfo)(this.extendedSchemaInfo, (path, node) => {
|
|
71716
|
-
var _node$properties;
|
|
71717
|
-
if (((_node$properties = node.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.valueEqlAutoValue) != undefined) {
|
|
71718
|
-
var _node$properties2, _node$properties$valu, _node$properties3, _node$properties4;
|
|
71719
|
-
const severity = ((_node$properties2 = node.properties) === null || _node$properties2 === void 0 ? void 0 : _node$properties2.valueEqlAutoValue) == "warning" ? "Warning" : "Error";
|
|
71720
|
-
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;
|
|
71721
|
-
const compiledDescription = `expression => ${JSON.stringify(errorMessage)}`;
|
|
71722
|
-
const target = this.modelPathInstance(path);
|
|
71723
|
-
let compiledValidation = `expression.isValueEqlAutoValue(${target})`;
|
|
71724
|
-
let deps = [path];
|
|
71725
|
-
if (((_node$properties4 = node.properties) === null || _node$properties4 === void 0 ? void 0 : _node$properties4.valueEqlAutoValueCondition) != undefined) {
|
|
71726
|
-
var _node$properties$valu2, _node$properties5, _node$properties6;
|
|
71727
|
-
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);
|
|
71728
|
-
const conditionDeps = [];
|
|
71729
|
-
const formulaExpression = this.getKCXmlExpressionFromKCLangCondition(prefix, (_node$properties6 = node.properties) === null || _node$properties6 === void 0 ? void 0 : _node$properties6.valueEqlAutoValueCondition);
|
|
71730
|
-
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());
|
|
71731
|
-
const compiledCondition = this.compileExpression(kcLangPrefix, path, formulaExpression, conditionDeps);
|
|
71732
|
-
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(conditionDeps.map(x => ({
|
|
71733
|
-
path: x.asDependencyModelPath(),
|
|
71734
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.isDependencyWithoutChecks)(x),
|
|
71735
|
-
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()
|
|
71736
|
-
})).filter(x => !x.path.isEquals(path)), x => x.pathString));
|
|
71737
|
-
deps = [...deps, ...dependencyModelPaths.map(x => x.path)];
|
|
71738
|
-
compiledValidation = `expression.when(${compiledCondition}, () => ${compiledValidation})`;
|
|
71739
|
-
}
|
|
71740
|
-
const compiledDeps = deps.map(x => this.modelPathInstance(x)).join(", ");
|
|
71741
|
-
const compiledEvaluator = `context => KCCondition.execute(context, expression => ${compiledValidation}, ${compiledDescription}, ${JSON.stringify(severity)})`;
|
|
71742
|
-
const fn = `new ValidationFunction(${target}, [${compiledDeps}], ${compiledEvaluator})`;
|
|
71743
|
-
compiledConditions.push(fn);
|
|
71744
|
-
}
|
|
71745
|
-
});
|
|
71729
|
+
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined).toArray();
|
|
71746
71730
|
if (compiledConditions.length === 0) {
|
|
71747
71731
|
return undefined;
|
|
71748
71732
|
}
|
|
71749
71733
|
return compiledConditions.map(x => `form.calculator2.addCalculationFunction(${x});`).join("\n");
|
|
71750
71734
|
}
|
|
71751
|
-
getKCXmlExpressionFromKCLangCondition(prefix, condition) {
|
|
71752
|
-
var _kcLangMathContainer$, _kcLangMathContainer$2;
|
|
71753
|
-
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());
|
|
71754
|
-
const fullKcLangExpr = `
|
|
71755
|
-
in ${kcLangPrefix.toLegacyPath()} {
|
|
71756
|
-
check Test === (${condition}) ? 1 : 0;
|
|
71757
|
-
}
|
|
71758
|
-
`;
|
|
71759
|
-
const formulaReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_10__.FormulaReader();
|
|
71760
|
-
const kcLangMathContainer = formulaReader.readFormulas(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_11__.KCLangToXmlTranspiler.transpile(fullKcLangExpr));
|
|
71761
|
-
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)();
|
|
71762
|
-
return formulaNode.expression.ifNode.condition;
|
|
71763
|
-
}
|
|
71764
71735
|
skipGetPicklistValues() {
|
|
71765
71736
|
return false;
|
|
71766
71737
|
}
|
|
71767
71738
|
compileCondition(condition, options) {
|
|
71768
71739
|
var _condition$descriptio, _condition$errorLevel;
|
|
71769
|
-
const prefix = (0,
|
|
71770
|
-
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());
|
|
71771
71742
|
const deps = [];
|
|
71772
71743
|
const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, condition.expression, deps);
|
|
71773
|
-
if (compiledExpression instanceof
|
|
71744
|
+
if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_0__.NotSupportedError) {
|
|
71774
71745
|
if (options.skipNotSupportedFunction) {
|
|
71775
71746
|
return undefined;
|
|
71776
71747
|
} else {
|
|
71777
71748
|
throw compiledExpression;
|
|
71778
71749
|
}
|
|
71779
71750
|
}
|
|
71780
|
-
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");
|
|
71781
71752
|
let concatDescription;
|
|
71782
71753
|
if (compiledDescriptionParts.length > 1) {
|
|
71783
|
-
concatDescription = new
|
|
71754
|
+
concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_5__.FormulaConcatExpression();
|
|
71784
71755
|
concatDescription.arguments = compiledDescriptionParts;
|
|
71785
71756
|
} else {
|
|
71786
71757
|
concatDescription = compiledDescriptionParts[0];
|
|
71787
71758
|
}
|
|
71788
71759
|
const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
|
|
71789
71760
|
const compiledTarget = this.modelPathInstance(target);
|
|
71790
|
-
const dependencyModelPaths = Array.from(
|
|
71761
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
|
|
71791
71762
|
path: x.asDependencyModelPath(),
|
|
71792
|
-
isIgnoreForChecks: (0,
|
|
71793
|
-
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()
|
|
71794
71765
|
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
71795
71766
|
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
71796
71767
|
const conditionFunc = this.isAsync(compiledExpression) ? `async expression => ${compiledExpression}` : `expression => ${compiledExpression}`;
|
|
@@ -74803,6 +74774,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
74803
74774
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
74804
74775
|
return this.compiledInstanceCountExpression(prefix, target, expression.select, addPrecalculationRule);
|
|
74805
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
|
+
}
|
|
74806
74780
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
|
|
74807
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)));
|
|
74808
74782
|
}
|
|
@@ -75189,6 +75163,21 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75189
75163
|
throw new Error(`Instance count with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
|
|
75190
75164
|
}
|
|
75191
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
|
+
}
|
|
75192
75181
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
75193
75182
|
const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
|
|
75194
75183
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
@@ -83971,7 +83960,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
83971
83960
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
83972
83961
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
83973
83962
|
/* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
|
|
83974
|
-
/* harmony import */ var
|
|
83963
|
+
/* harmony import */ var _Engine_src_Controls_Helpers_InfoBlock_InfoBlockType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/Helpers/InfoBlock/InfoBlockType */ "./Engine/src/Controls/Helpers/InfoBlock/InfoBlockType.tsx");
|
|
83964
|
+
/* harmony import */ var _InfoBlockNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./InfoBlockNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Clue/InfoBlockNode.ts");
|
|
83965
|
+
|
|
83975
83966
|
|
|
83976
83967
|
|
|
83977
83968
|
|
|
@@ -83979,24 +83970,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
83979
83970
|
|
|
83980
83971
|
class InfoBlockConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
83981
83972
|
static getAcceptNodeClass() {
|
|
83982
|
-
return
|
|
83973
|
+
return _InfoBlockNode__WEBPACK_IMPORTED_MODULE_5__.InfoBlockNode;
|
|
83983
83974
|
}
|
|
83984
|
-
doBuildDataDeclaration(
|
|
83975
|
+
doBuildDataDeclaration() {
|
|
83985
83976
|
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
83986
83977
|
}
|
|
83987
83978
|
buildChildrenDataDeclaration(context) {
|
|
83988
|
-
const node = this.getCurrentNodeAs(
|
|
83979
|
+
const node = this.getCurrentNodeAs(_InfoBlockNode__WEBPACK_IMPORTED_MODULE_5__.InfoBlockNode);
|
|
83989
83980
|
return context.processChildrenDataDeclaration(node.children);
|
|
83990
83981
|
}
|
|
83991
83982
|
*doTraverseChildren() {
|
|
83992
|
-
const node = this.getCurrentNodeAs(
|
|
83983
|
+
const node = this.getCurrentNodeAs(_InfoBlockNode__WEBPACK_IMPORTED_MODULE_5__.InfoBlockNode);
|
|
83993
83984
|
yield* node.children;
|
|
83994
83985
|
}
|
|
83995
83986
|
doConvert(context) {
|
|
83996
83987
|
var _node$icon;
|
|
83997
|
-
const node = this.getCurrentNodeAs(
|
|
83988
|
+
const node = this.getCurrentNodeAs(_InfoBlockNode__WEBPACK_IMPORTED_MODULE_5__.InfoBlockNode);
|
|
83998
83989
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("InfoBlock");
|
|
83999
83990
|
markupBuilder.prop(x => x.header).set(node.header);
|
|
83991
|
+
if (node.type !== undefined) {
|
|
83992
|
+
var _InfoBlockType$node$t;
|
|
83993
|
+
markupBuilder.prop(x => x.type).set((_InfoBlockType$node$t = _Engine_src_Controls_Helpers_InfoBlock_InfoBlockType__WEBPACK_IMPORTED_MODULE_4__.InfoBlockType[node.type]) !== null && _InfoBlockType$node$t !== void 0 ? _InfoBlockType$node$t : _Engine_src_Controls_Helpers_InfoBlock_InfoBlockType__WEBPACK_IMPORTED_MODULE_4__.InfoBlockType.info);
|
|
83994
|
+
}
|
|
84000
83995
|
markupBuilder.prop(x => x.icon).set((0,_Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_3__.getIconName)(node, (_node$icon = node.icon) !== null && _node$icon !== void 0 ? _node$icon : "QuestionCircleIcon"));
|
|
84001
83996
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
84002
83997
|
return markupBuilder.buildConverterResult();
|
|
@@ -84026,14 +84021,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
84026
84021
|
|
|
84027
84022
|
|
|
84028
84023
|
|
|
84029
|
-
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
84024
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
84030
84025
|
|
|
84031
|
-
let InfoBlockNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("infoblock", `Плашка с подсказкой`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Clue sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("header", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Заголовок`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("icon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Иконка. По умолчанию -- вопросик. Если иконка не нужна, указать пустую строку"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class InfoBlockNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
84026
|
+
let InfoBlockNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("infoblock", `Плашка с подсказкой`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Clue sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("header", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Заголовок`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("icon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Иконка. По умолчанию -- вопросик. Если иконка не нужна, указать пустую строку"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("info", "error", "warning", "success"), "Тип блока. По умолчанию info. Различные типы блоков различаются только цветом фона"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class InfoBlockNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
84032
84027
|
constructor(...args) {
|
|
84033
84028
|
super(...args);
|
|
84034
84029
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "header", _descriptor, this);
|
|
84035
84030
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "icon", _descriptor2, this);
|
|
84036
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
84031
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor3, this);
|
|
84032
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor4, this);
|
|
84037
84033
|
}
|
|
84038
84034
|
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "header", [_dec2], {
|
|
84039
84035
|
configurable: true,
|
|
@@ -84045,7 +84041,12 @@ let InfoBlockNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
84045
84041
|
enumerable: true,
|
|
84046
84042
|
writable: true,
|
|
84047
84043
|
initializer: null
|
|
84048
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
84044
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "type", [_dec4], {
|
|
84045
|
+
configurable: true,
|
|
84046
|
+
enumerable: true,
|
|
84047
|
+
writable: true,
|
|
84048
|
+
initializer: null
|
|
84049
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec5], {
|
|
84049
84050
|
configurable: true,
|
|
84050
84051
|
enumerable: true,
|
|
84051
84052
|
writable: true,
|
|
@@ -96938,7 +96939,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
96938
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, {
|
|
96939
96940
|
optional: node.dataBinding.optional,
|
|
96940
96941
|
disabled: node.disabled
|
|
96941
|
-
}), 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));
|
|
96942
96943
|
}
|
|
96943
96944
|
doBuildNormalizeRules(builder) {
|
|
96944
96945
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
@@ -102443,39 +102444,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102443
102444
|
/* harmony export */ KCLangCalculationsBuildContext: () => (/* binding */ KCLangCalculationsBuildContext),
|
|
102444
102445
|
/* harmony export */ combineByAndKCLangExpr: () => (/* binding */ combineByAndKCLangExpr)
|
|
102445
102446
|
/* harmony export */ });
|
|
102446
|
-
/* harmony import */ var
|
|
102447
|
-
/* harmony import */ var
|
|
102448
|
-
/* harmony import */ var
|
|
102449
|
-
/* harmony import */ var
|
|
102450
|
-
/* harmony import */ var
|
|
102451
|
-
/* harmony import */ var
|
|
102452
|
-
/* harmony import */ var
|
|
102453
|
-
/* harmony import */ var
|
|
102454
|
-
/* harmony import */ var
|
|
102455
|
-
/* harmony import */ var
|
|
102456
|
-
/* harmony import */ var
|
|
102457
|
-
/* harmony import */ var
|
|
102458
|
-
/* harmony import */ var
|
|
102459
|
-
/* harmony import */ var
|
|
102460
|
-
/* harmony import */ var
|
|
102461
|
-
/* harmony import */ var
|
|
102462
|
-
/* harmony import */ var
|
|
102463
|
-
/* harmony import */ var
|
|
102464
|
-
/* harmony import */ var
|
|
102465
|
-
/* harmony import */ var
|
|
102466
|
-
/* harmony import */ var
|
|
102467
|
-
/* harmony import */ var
|
|
102468
|
-
/* harmony import */ var
|
|
102469
|
-
/* harmony import */ var
|
|
102470
|
-
/* harmony import */ var
|
|
102471
|
-
/* harmony import */ var
|
|
102472
|
-
/* harmony import */ var
|
|
102473
|
-
/* harmony import */ var
|
|
102474
|
-
/* harmony import */ var
|
|
102475
|
-
/* harmony import */ var
|
|
102476
|
-
/* harmony import */ var
|
|
102477
|
-
/* harmony import */ var
|
|
102478
|
-
/* 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
|
+
|
|
102479
102488
|
|
|
102480
102489
|
|
|
102481
102490
|
|
|
@@ -102528,7 +102537,7 @@ class KCLangCalculationsBuildContext {
|
|
|
102528
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;
|
|
102529
102538
|
const valueChecks = [];
|
|
102530
102539
|
if (baseName != undefined) {
|
|
102531
|
-
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());
|
|
102532
102541
|
}
|
|
102533
102542
|
valueChecks.push(...Iterator.from(this.createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId)).toArray());
|
|
102534
102543
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
@@ -102536,24 +102545,24 @@ class KCLangCalculationsBuildContext {
|
|
|
102536
102545
|
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2, _IterUtils$last;
|
|
102537
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 : "Поле должно быть заполнено";
|
|
102538
102547
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
102539
|
-
let allChildrenPaths = parentNode instanceof
|
|
102540
|
-
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) {
|
|
102541
102550
|
allChildrenPaths = undefined;
|
|
102542
102551
|
}
|
|
102543
|
-
const restChecks = (_allChildrenPaths2 = allChildrenPaths) === null || _allChildrenPaths2 === void 0 ? void 0 : _allChildrenPaths2.map(childPath => new
|
|
102544
|
-
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)()))]);
|
|
102545
102554
|
if (restChecks != undefined) {
|
|
102546
|
-
yield new
|
|
102555
|
+
yield new _common_KCLang_CodeDom_IfStatement__WEBPACK_IMPORTED_MODULE_17__.IfStatement(restChecks, [checkRequiredStatement]);
|
|
102547
102556
|
} else {
|
|
102548
102557
|
yield checkRequiredStatement;
|
|
102549
102558
|
}
|
|
102550
102559
|
}
|
|
102551
|
-
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);
|
|
102552
102561
|
}
|
|
102553
102562
|
getFirstAcceptedParent(schemaNode) {
|
|
102554
102563
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
102555
102564
|
while (parentNode != undefined) {
|
|
102556
|
-
if (parentNode instanceof
|
|
102565
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement) {
|
|
102557
102566
|
var _parentNode$multiple;
|
|
102558
102567
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
102559
102568
|
return parentNode;
|
|
@@ -102570,174 +102579,158 @@ class KCLangCalculationsBuildContext {
|
|
|
102570
102579
|
}
|
|
102571
102580
|
createCheck(targetPath, condition, message, checkType) {
|
|
102572
102581
|
var _IterUtils$last2;
|
|
102573
|
-
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)()))];
|
|
102574
102583
|
if (checkType == "warning") {
|
|
102575
|
-
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")));
|
|
102576
102585
|
}
|
|
102577
|
-
return new
|
|
102586
|
+
return new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(condition, withBlocks);
|
|
102578
102587
|
}
|
|
102579
102588
|
*createTypeValidations(targetPath, typeNode, schemaTypeNode, nodeGId) {
|
|
102580
|
-
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;
|
|
102581
102590
|
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
102582
|
-
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
|
|
102583
|
-
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 : [];
|
|
102584
102593
|
const makeMessage = (constraints, sugarTypeCheckDescription, sugarTypeDescription, schemaTypeDescription) => {
|
|
102585
102594
|
var _ref5, _ref6, _ref7, _omitLocalization;
|
|
102586
|
-
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 : "Поле должно быть заполнено";
|
|
102587
102596
|
};
|
|
102588
|
-
const valueReferenceExpression = new
|
|
102589
|
-
const stringValueReference = new
|
|
102590
|
-
if ((0,
|
|
102591
|
-
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({
|
|
102592
102601
|
enumerationAllowedValues: enumerationItems
|
|
102593
102602
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
102594
102603
|
}
|
|
102595
|
-
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);
|
|
102596
102605
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
102597
|
-
if ((0,
|
|
102606
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrEmpty)(gId) && digest != undefined) {
|
|
102598
102607
|
var _digest$keyColumnName, _digest$keyColumnName2, _ref8, _digest$description, _ref9, _digest$checkType;
|
|
102599
102608
|
// const isIgnoreCase = typeNode?.isCaseIndependentValid ?? false;
|
|
102600
|
-
const ruleBody = new
|
|
102601
|
-
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");
|
|
102602
102611
|
}
|
|
102603
|
-
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));
|
|
102604
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;
|
|
102605
102614
|
if (lengthValue != undefined) {
|
|
102606
102615
|
var _typeNodeLength$check;
|
|
102607
|
-
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({
|
|
102608
102617
|
length: lengthValue
|
|
102609
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);
|
|
102610
102619
|
}
|
|
102611
102620
|
const valueReference = stringValueReference;
|
|
102612
102621
|
const decimalValueReference = valueReferenceExpression;
|
|
102613
|
-
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));
|
|
102614
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;
|
|
102615
|
-
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));
|
|
102616
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;
|
|
102617
102626
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
102618
102627
|
var _typeNodeMinLength$de;
|
|
102619
|
-
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)));
|
|
102620
102629
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
102621
102630
|
minLength: minLengthValue,
|
|
102622
102631
|
maxLength: maxLengthValue
|
|
102623
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);
|
|
102624
102633
|
} else if (minLengthValue != undefined) {
|
|
102625
|
-
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));
|
|
102626
102635
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
102627
102636
|
minLength: minLengthValue
|
|
102628
102637
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
102629
102638
|
} else if (maxLengthValue != undefined) {
|
|
102630
|
-
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));
|
|
102631
102640
|
yield this.createCheck(targetPath, lengthExprRuleBody, makeMessage({
|
|
102632
102641
|
maxLength: maxLengthValue
|
|
102633
102642
|
}, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), checkType);
|
|
102634
102643
|
}
|
|
102635
|
-
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));
|
|
102636
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;
|
|
102637
102646
|
if (minInclusiveValue != undefined) {
|
|
102638
|
-
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));
|
|
102639
102648
|
yield this.createCheck(targetPath, minInclusiveRuleBody, makeMessage({
|
|
102640
102649
|
minInclusive: minInclusiveValue
|
|
102641
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);
|
|
102642
102651
|
}
|
|
102643
|
-
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));
|
|
102644
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;
|
|
102645
102654
|
if (maxInclusiveValue != undefined) {
|
|
102646
|
-
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));
|
|
102647
102656
|
yield this.createCheck(targetPath, maxInclusiveRuleBody, makeMessage({
|
|
102648
102657
|
maxInclusive: maxInclusiveValue
|
|
102649
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);
|
|
102650
102659
|
}
|
|
102651
|
-
const isDecimalCondition = new
|
|
102652
|
-
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));
|
|
102653
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;
|
|
102654
102663
|
if (totalDigitsValue != undefined) {
|
|
102655
|
-
const totalDigitsRuleBody = new
|
|
102656
|
-
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({
|
|
102657
102666
|
totalDigitsMaxCount: totalDigitsValue
|
|
102658
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)]);
|
|
102659
102668
|
}
|
|
102660
|
-
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,
|
|
102661
|
-
const firstItemDescription = typeNode === null || typeNode === void 0 || (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 || (_typeNode$children9 = _typeNode$children9.filter((0,
|
|
102662
|
-
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,
|
|
102663
|
-
const stringPatterns = ((0,
|
|
102664
|
-
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);
|
|
102665
102674
|
if (patterns != undefined) {
|
|
102666
102675
|
const stringPatternsRuleBody = patterns;
|
|
102667
102676
|
yield this.createCheck(targetPath, stringPatternsRuleBody, makeMessage({
|
|
102668
102677
|
patterns: stringPatterns
|
|
102669
102678
|
}, firstItemDescription, typeNode === null || typeNode === void 0 ? void 0 : typeNode.description, schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description), firstItemCheckType);
|
|
102670
102679
|
}
|
|
102671
|
-
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));
|
|
102672
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;
|
|
102673
102682
|
if (integerDigits != undefined) {
|
|
102674
|
-
const integerDigitsRuleBody = new
|
|
102675
|
-
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({
|
|
102676
102685
|
integerDigitsMaxCount: integerDigits
|
|
102677
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)]);
|
|
102678
102687
|
}
|
|
102679
|
-
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));
|
|
102680
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;
|
|
102681
102690
|
if (fractionalDigits != undefined) {
|
|
102682
|
-
const fractionalDigitsRuleBody = new
|
|
102683
|
-
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({
|
|
102684
102693
|
fractionalDigitsMaxCount: fractionalDigits
|
|
102685
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)]);
|
|
102686
102695
|
}
|
|
102687
|
-
|
|
102688
|
-
|
|
102689
|
-
|
|
102690
|
-
|
|
102691
|
-
|
|
102692
|
-
|
|
102693
|
-
|
|
102694
|
-
|
|
102695
|
-
|
|
102696
|
-
|
|
102697
|
-
|
|
102698
|
-
|
|
102699
|
-
|
|
102700
|
-
|
|
102701
|
-
// new IsEqualsBinaryExpression(
|
|
102702
|
-
// decimalWrapper(valueReference, isDecimal),
|
|
102703
|
-
// decimalWrapper(autoValueReference, isDecimal)
|
|
102704
|
-
// )
|
|
102705
|
-
// ),
|
|
102706
|
-
// targetPath,
|
|
102707
|
-
// valueEqlAutoValueErrorLevel,
|
|
102708
|
-
// validationCondition
|
|
102709
|
-
// );
|
|
102710
|
-
//
|
|
102711
|
-
// yield {
|
|
102712
|
-
// condition: condition,
|
|
102713
|
-
// message: makeMessage({ autoValue: true }),
|
|
102714
|
-
// checkType: valueEqlAutoValueErrorLevel,
|
|
102715
|
-
// };
|
|
102716
|
-
// }
|
|
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
|
+
}
|
|
102717
102710
|
}
|
|
102718
102711
|
*createBaseTypeValidation(targetPath, baseType, baseDescription) {
|
|
102719
102712
|
var _IterUtils$last3, _IterUtils$last4, _IterUtils$last5, _IterUtils$last6, _IterUtils$last7;
|
|
102720
|
-
const targetAttributeName = Iterator.from(targetPath.getPathParts()).filter(
|
|
102721
|
-
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);
|
|
102722
102715
|
switch (baseType) {
|
|
102723
102716
|
case "string":
|
|
102724
102717
|
case "pattern":
|
|
102725
102718
|
case "boolean":
|
|
102726
102719
|
return;
|
|
102727
102720
|
case "integer":
|
|
102728
|
-
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)()))]);
|
|
102729
102722
|
break;
|
|
102730
102723
|
case "decimal":
|
|
102731
|
-
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)()))]);
|
|
102732
102725
|
break;
|
|
102733
102726
|
case "date":
|
|
102734
|
-
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)()))]);
|
|
102735
102728
|
break;
|
|
102736
102729
|
case "gYear":
|
|
102737
|
-
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)()))]);
|
|
102738
102731
|
break;
|
|
102739
102732
|
case "gMonth":
|
|
102740
|
-
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)()))]);
|
|
102741
102734
|
break;
|
|
102742
102735
|
default:
|
|
102743
102736
|
throw new Error(`Unknown base type name: '${baseType}'`);
|
|
@@ -102746,7 +102739,7 @@ class KCLangCalculationsBuildContext {
|
|
|
102746
102739
|
}
|
|
102747
102740
|
}
|
|
102748
102741
|
function combineByAndKCLangExpr(acc, current) {
|
|
102749
|
-
return acc != undefined ? new
|
|
102742
|
+
return acc != undefined ? new _common_KCLang_CodeDom_OrExpression__WEBPACK_IMPORTED_MODULE_24__.OrExpression(acc, current) : current;
|
|
102750
102743
|
}
|
|
102751
102744
|
|
|
102752
102745
|
/***/ }),
|