@kontur.candy/generator 5.115.1-enhanced-server-filters.1 → 5.116.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 +44 -257
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49480,7 +49480,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49480
49480
|
/* harmony export */ isValidDate: () => (/* binding */ isValidDate),
|
|
49481
49481
|
/* harmony export */ isValidStringDate: () => (/* binding */ isValidStringDate),
|
|
49482
49482
|
/* harmony export */ parseDateString: () => (/* binding */ parseDateString),
|
|
49483
|
-
/* harmony export */ parseDateStringAsDate: () => (/* binding */ parseDateStringAsDate),
|
|
49484
49483
|
/* harmony export */ tryGetValidDateShape: () => (/* binding */ tryGetValidDateShape)
|
|
49485
49484
|
/* harmony export */ });
|
|
49486
49485
|
/* harmony import */ var _Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Engine/ValidationHelper/ValidationHelper */ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts");
|
|
@@ -49515,10 +49514,6 @@ function tryGetValidDateShape(x) {
|
|
|
49515
49514
|
}
|
|
49516
49515
|
return undefined;
|
|
49517
49516
|
}
|
|
49518
|
-
function parseDateStringAsDate(value) {
|
|
49519
|
-
const shape = tryGetValidDateShape(parseDateString(value));
|
|
49520
|
-
return shape != undefined ? new Date(Date.UTC(shape.year, shape.month, shape.date)) : undefined;
|
|
49521
|
-
}
|
|
49522
49517
|
const comparator = (a, b) => {
|
|
49523
49518
|
if (a.year < b.year) {
|
|
49524
49519
|
return -1;
|
|
@@ -49662,9 +49657,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49662
49657
|
/* harmony export */ });
|
|
49663
49658
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
49664
49659
|
/* harmony import */ var _DateHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DateHelpers */ "./Engine/src/Helpers/DateHelpers.ts");
|
|
49665
|
-
/* harmony import */ var
|
|
49666
|
-
/* harmony import */ var _FilterExpression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FilterExpression */ "./Engine/src/Helpers/FilterExpressions/FilterExpression.ts");
|
|
49667
|
-
|
|
49660
|
+
/* harmony import */ var _FilterExpression__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FilterExpression */ "./Engine/src/Helpers/FilterExpressions/FilterExpression.ts");
|
|
49668
49661
|
|
|
49669
49662
|
|
|
49670
49663
|
|
|
@@ -49675,26 +49668,22 @@ function compileFilterExpression(expression) {
|
|
|
49675
49668
|
class FilterExpressionTransduceVisitor {
|
|
49676
49669
|
transformExpression(expression) {
|
|
49677
49670
|
switch (expression.operator) {
|
|
49678
|
-
case
|
|
49671
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.Or:
|
|
49679
49672
|
return this.transformOrExpression(expression);
|
|
49680
|
-
case
|
|
49673
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.And:
|
|
49681
49674
|
return this.transformAndExpression(expression);
|
|
49682
|
-
case
|
|
49675
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.Equal:
|
|
49683
49676
|
return this.transformEqualExpression(expression);
|
|
49684
|
-
case
|
|
49677
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.StartDate:
|
|
49685
49678
|
return this.transformStartDateExpression(expression);
|
|
49686
|
-
case
|
|
49679
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.EndDate:
|
|
49687
49680
|
return this.transformEndDateExpression(expression);
|
|
49688
|
-
case
|
|
49681
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.Substring:
|
|
49689
49682
|
return this.transformSubstringExpression(expression);
|
|
49690
|
-
case
|
|
49683
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.UnaryNot:
|
|
49691
49684
|
return this.transformUnaryNotExpression(expression);
|
|
49692
|
-
case
|
|
49685
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_2__.OperatorType.ByInstances:
|
|
49693
49686
|
return this.transformByInstancesExpression(expression);
|
|
49694
|
-
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.LessOrEqual:
|
|
49695
|
-
return this.transformLessOrEqualExpression(expression);
|
|
49696
|
-
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.GreaterOrEqual:
|
|
49697
|
-
return this.transformGreaterOrEqualExpression(expression);
|
|
49698
49687
|
default:
|
|
49699
49688
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
49700
49689
|
return this.createDefaultResult();
|
|
@@ -49742,20 +49731,6 @@ class CompileFilterExpressionTransduceVisitor extends FilterExpressionTransduceV
|
|
|
49742
49731
|
return expression.condition.instances.some(x => x === instance);
|
|
49743
49732
|
};
|
|
49744
49733
|
}
|
|
49745
|
-
transformLessOrEqualExpression(expression) {
|
|
49746
|
-
const conditionValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(this.transformConditionValueExpression(expression.condition));
|
|
49747
|
-
return getModelValuesFn => getModelValuesFn(expression.condition.dataPath).some(x => {
|
|
49748
|
-
const typedDataPathValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(x);
|
|
49749
|
-
return conditionValue != undefined && typedDataPathValue != undefined ? typedDataPathValue.lte(conditionValue) : false;
|
|
49750
|
-
});
|
|
49751
|
-
}
|
|
49752
|
-
transformGreaterOrEqualExpression(expression) {
|
|
49753
|
-
const conditionValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(this.transformConditionValueExpression(expression.condition));
|
|
49754
|
-
return getModelValuesFn => getModelValuesFn(expression.condition.dataPath).some(x => {
|
|
49755
|
-
const typedDataPathValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(x);
|
|
49756
|
-
return conditionValue != undefined && typedDataPathValue != undefined ? typedDataPathValue.gte(conditionValue) : false;
|
|
49757
|
-
});
|
|
49758
|
-
}
|
|
49759
49734
|
}
|
|
49760
49735
|
function stringNormalize(str) {
|
|
49761
49736
|
return str.trim().toLocaleLowerCase();
|
|
@@ -49812,8 +49787,6 @@ let OperatorType = /*#__PURE__*/function (OperatorType) {
|
|
|
49812
49787
|
OperatorType["EndDate"] = "endDate";
|
|
49813
49788
|
OperatorType["Substring"] = "substring";
|
|
49814
49789
|
OperatorType["ByInstances"] = "byInstances";
|
|
49815
|
-
OperatorType["LessOrEqual"] = "lessOrEqual";
|
|
49816
|
-
OperatorType["GreaterOrEqual"] = "greaterOrEqual";
|
|
49817
49790
|
return OperatorType;
|
|
49818
49791
|
}({});
|
|
49819
49792
|
let FilterType = /*#__PURE__*/function (FilterType) {
|
|
@@ -49912,24 +49885,6 @@ class FilterExpressionResolveBindingPaths extends _CompileFilterExpression__WEBP
|
|
|
49912
49885
|
condition: this.transformExpression(expression.condition)
|
|
49913
49886
|
};
|
|
49914
49887
|
}
|
|
49915
|
-
transformLessOrEqualExpression(expression) {
|
|
49916
|
-
return {
|
|
49917
|
-
...expression,
|
|
49918
|
-
condition: {
|
|
49919
|
-
...expression.condition,
|
|
49920
|
-
dataPath: this.pathResolver(expression.condition.dataPath)
|
|
49921
|
-
}
|
|
49922
|
-
};
|
|
49923
|
-
}
|
|
49924
|
-
transformGreaterOrEqualExpression(expression) {
|
|
49925
|
-
return {
|
|
49926
|
-
...expression,
|
|
49927
|
-
condition: {
|
|
49928
|
-
...expression.condition,
|
|
49929
|
-
dataPath: this.pathResolver(expression.condition.dataPath)
|
|
49930
|
-
}
|
|
49931
|
-
};
|
|
49932
|
-
}
|
|
49933
49888
|
}
|
|
49934
49889
|
|
|
49935
49890
|
/***/ }),
|
|
@@ -50611,7 +50566,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50611
50566
|
/* harmony export */ existsKCLangFunction: () => (/* binding */ existsKCLangFunction),
|
|
50612
50567
|
/* harmony export */ firstOrDefaultKCLangFunction: () => (/* binding */ firstOrDefaultKCLangFunction),
|
|
50613
50568
|
/* harmony export */ floorKCLangFunction: () => (/* binding */ floorKCLangFunction),
|
|
50614
|
-
/* harmony export */ getDateTimeTicksKCLangFunction: () => (/* binding */ getDateTimeTicksKCLangFunction),
|
|
50615
50569
|
/* harmony export */ getDayKCLangFunction: () => (/* binding */ getDayKCLangFunction),
|
|
50616
50570
|
/* harmony export */ getDaysInMonthKCLangFunction: () => (/* binding */ getDaysInMonthKCLangFunction),
|
|
50617
50571
|
/* harmony export */ getMonthKCLangFunction: () => (/* binding */ getMonthKCLangFunction),
|
|
@@ -51400,22 +51354,6 @@ const joinKCLangFunction = params => {
|
|
|
51400
51354
|
array: arrayParam
|
|
51401
51355
|
};
|
|
51402
51356
|
};
|
|
51403
|
-
const getDateTimeTicksKCLangFunction = params => {
|
|
51404
|
-
var _params$56;
|
|
51405
|
-
const errors = Array.from(validateParams(params, 1));
|
|
51406
|
-
if (errors.length > 0) {
|
|
51407
|
-
return new FunctionValidationErrorCollection(errors);
|
|
51408
|
-
}
|
|
51409
|
-
const expr = (_params$56 = params[0]) === null || _params$56 === void 0 ? void 0 : _params$56.value;
|
|
51410
|
-
if (expr == undefined) {
|
|
51411
|
-
const argumentsValidationError = new ArgumentValidationError("Invalid arguments expression");
|
|
51412
|
-
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
51413
|
-
}
|
|
51414
|
-
return {
|
|
51415
|
-
type: "getDateTimeTicks",
|
|
51416
|
-
expression: expr
|
|
51417
|
-
};
|
|
51418
|
-
};
|
|
51419
51357
|
|
|
51420
51358
|
/***/ }),
|
|
51421
51359
|
|
|
@@ -51493,8 +51431,7 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
51493
51431
|
makeDict: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.makeDictKCLangFunction],
|
|
51494
51432
|
getSumByKeys: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getSumByKeysKCLangFunction],
|
|
51495
51433
|
join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction],
|
|
51496
|
-
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
|
|
51497
|
-
getDateTimeTicks: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getDateTimeTicksKCLangFunction]
|
|
51434
|
+
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
|
|
51498
51435
|
});
|
|
51499
51436
|
class KCLangAntlrParser {
|
|
51500
51437
|
static parse(code) {
|
|
@@ -51889,7 +51826,7 @@ class KCLangAntlrVisitor {
|
|
|
51889
51826
|
dataType = "array";
|
|
51890
51827
|
break;
|
|
51891
51828
|
default:
|
|
51892
|
-
throw Error(
|
|
51829
|
+
throw Error("visitType syntax incorrect");
|
|
51893
51830
|
}
|
|
51894
51831
|
return {
|
|
51895
51832
|
type: "CastDataTypeNode",
|
|
@@ -60191,32 +60128,6 @@ class FunctionCall extends _KCLangExpression__WEBPACK_IMPORTED_MODULE_0__.KCLang
|
|
|
60191
60128
|
|
|
60192
60129
|
/***/ }),
|
|
60193
60130
|
|
|
60194
|
-
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts":
|
|
60195
|
-
/*!*******************************************************************************!*\
|
|
60196
|
-
!*** ./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts ***!
|
|
60197
|
-
\*******************************************************************************/
|
|
60198
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60199
|
-
|
|
60200
|
-
"use strict";
|
|
60201
|
-
__webpack_require__.r(__webpack_exports__);
|
|
60202
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60203
|
-
/* harmony export */ DateTimeFunctionCall: () => (/* binding */ DateTimeFunctionCall)
|
|
60204
|
-
/* harmony export */ });
|
|
60205
|
-
/* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
|
|
60206
|
-
/* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
60207
|
-
|
|
60208
|
-
|
|
60209
|
-
class DateTimeFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
60210
|
-
constructor(expr) {
|
|
60211
|
-
super("dateTime", [expr]);
|
|
60212
|
-
}
|
|
60213
|
-
getType() {
|
|
60214
|
-
return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.DateType.default;
|
|
60215
|
-
}
|
|
60216
|
-
}
|
|
60217
|
-
|
|
60218
|
-
/***/ }),
|
|
60219
|
-
|
|
60220
60131
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts":
|
|
60221
60132
|
/*!*****************************************************************************!*\
|
|
60222
60133
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts ***!
|
|
@@ -60243,32 +60154,6 @@ class ExistsFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.Func
|
|
|
60243
60154
|
|
|
60244
60155
|
/***/ }),
|
|
60245
60156
|
|
|
60246
|
-
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts":
|
|
60247
|
-
/*!***************************************************************************************!*\
|
|
60248
|
-
!*** ./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts ***!
|
|
60249
|
-
\***************************************************************************************/
|
|
60250
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60251
|
-
|
|
60252
|
-
"use strict";
|
|
60253
|
-
__webpack_require__.r(__webpack_exports__);
|
|
60254
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60255
|
-
/* harmony export */ GetDateTimeTicksFunctionCall: () => (/* binding */ GetDateTimeTicksFunctionCall)
|
|
60256
|
-
/* harmony export */ });
|
|
60257
|
-
/* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
|
|
60258
|
-
/* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
60259
|
-
|
|
60260
|
-
|
|
60261
|
-
class GetDateTimeTicksFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
60262
|
-
constructor(expr) {
|
|
60263
|
-
super("getDateTimeTicks", [expr]);
|
|
60264
|
-
}
|
|
60265
|
-
getType() {
|
|
60266
|
-
return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.DecimalType.default;
|
|
60267
|
-
}
|
|
60268
|
-
}
|
|
60269
|
-
|
|
60270
|
-
/***/ }),
|
|
60271
|
-
|
|
60272
60157
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts":
|
|
60273
60158
|
/*!****************************************************************************************!*\
|
|
60274
60159
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts ***!
|
|
@@ -62153,10 +62038,9 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
62153
62038
|
throw new Error(`One of supports only array literal on the right`);
|
|
62154
62039
|
}
|
|
62155
62040
|
}
|
|
62156
|
-
case "getDateTimeTicks":
|
|
62157
|
-
return [`<m:getDateTimeTicks>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:getDateTimeTicks>`].join("\n");
|
|
62158
62041
|
default:
|
|
62159
|
-
|
|
62042
|
+
// @ts-ignore
|
|
62043
|
+
throw new Error(`Expression of type '${expression.type}' is not supported`);
|
|
62160
62044
|
}
|
|
62161
62045
|
}
|
|
62162
62046
|
function isPathPrefix(contextBlock) {
|
|
@@ -68296,7 +68180,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68296
68180
|
/* harmony export */ FormulaFirstOrDefaultExpression: () => (/* binding */ FormulaFirstOrDefaultExpression),
|
|
68297
68181
|
/* harmony export */ FormulaFloorExpression: () => (/* binding */ FormulaFloorExpression),
|
|
68298
68182
|
/* harmony export */ FormulaGeExpression: () => (/* binding */ FormulaGeExpression),
|
|
68299
|
-
/* harmony export */ FormulaGetDateTimeTicksExpression: () => (/* binding */ FormulaGetDateTimeTicksExpression),
|
|
68300
68183
|
/* harmony export */ FormulaGetDayExpression: () => (/* binding */ FormulaGetDayExpression),
|
|
68301
68184
|
/* harmony export */ FormulaGetDaysInMonthExpression: () => (/* binding */ FormulaGetDaysInMonthExpression),
|
|
68302
68185
|
/* harmony export */ FormulaGetMonthExpression: () => (/* binding */ FormulaGetMonthExpression),
|
|
@@ -68357,7 +68240,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68357
68240
|
|
|
68358
68241
|
|
|
68359
68242
|
|
|
68360
|
-
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, _class97, _class98, _descriptor61, _dec112, _dec113, _class99, _class100, _descriptor62, _dec114, _dec115, _dec116, _class101, _class102, _descriptor63, _descriptor64, _dec117, _dec118, _dec119, _class103, _class104, _descriptor65, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _class107, _class108, _descriptor68, _dec124, _dec125, _class109, _class110, _descriptor69, _dec126, _dec127, _dec128, _dec129, _dec130, _class111, _class112, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _class117, _class118, _descriptor76, _dec137, _dec138, _class119, _class120, _descriptor77, _dec139, _dec140, _dec141, _class121, _class122, _descriptor78, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _dec145, _dec146, _class125, _class126, _descriptor81, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _dec150, _class129, _class130, _descriptor84, _dec151, _dec152, _class131, _class132, _descriptor85, _dec153, _class133, _dec154, _dec155, _dec156, _dec157, _class134, _class135, _descriptor86, _descriptor87, _descriptor88, _dec158, _dec159, _class136, _class137, _descriptor89, _dec160, _dec161, _class138, _class139, _descriptor90, _dec162, _dec163, _dec164, _dec165, _dec166, _dec167, _class140, _class141, _descriptor91, _descriptor92, _descriptor93, _descriptor94, _descriptor95, _dec168, _dec169, _class142, _class143, _descriptor96, _dec170, _dec171, _dec172, _class144, _class145, _descriptor97, _descriptor98, _dec173, _dec174, _dec175, _class146, _class147, _descriptor99, _descriptor100, _dec176, _dec177, _dec178, _class148, _class149, _descriptor101, _descriptor102, _dec179, _dec180, _dec181, _dec182, _class150, _class151, _descriptor103, _descriptor104, _descriptor105, _dec183, _dec184, _dec185, _class152, _class153, _descriptor106, _descriptor107
|
|
68243
|
+
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, _class97, _class98, _descriptor61, _dec112, _dec113, _class99, _class100, _descriptor62, _dec114, _dec115, _dec116, _class101, _class102, _descriptor63, _descriptor64, _dec117, _dec118, _dec119, _class103, _class104, _descriptor65, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _class107, _class108, _descriptor68, _dec124, _dec125, _class109, _class110, _descriptor69, _dec126, _dec127, _dec128, _dec129, _dec130, _class111, _class112, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _class117, _class118, _descriptor76, _dec137, _dec138, _class119, _class120, _descriptor77, _dec139, _dec140, _dec141, _class121, _class122, _descriptor78, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _dec145, _dec146, _class125, _class126, _descriptor81, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _dec150, _class129, _class130, _descriptor84, _dec151, _dec152, _class131, _class132, _descriptor85, _dec153, _class133, _dec154, _dec155, _dec156, _dec157, _class134, _class135, _descriptor86, _descriptor87, _descriptor88, _dec158, _dec159, _class136, _class137, _descriptor89, _dec160, _dec161, _class138, _class139, _descriptor90, _dec162, _dec163, _dec164, _dec165, _dec166, _dec167, _class140, _class141, _descriptor91, _descriptor92, _descriptor93, _descriptor94, _descriptor95, _dec168, _dec169, _class142, _class143, _descriptor96, _dec170, _dec171, _dec172, _class144, _class145, _descriptor97, _descriptor98, _dec173, _dec174, _dec175, _class146, _class147, _descriptor99, _descriptor100, _dec176, _dec177, _dec178, _class148, _class149, _descriptor101, _descriptor102, _dec179, _dec180, _dec181, _dec182, _class150, _class151, _descriptor103, _descriptor104, _descriptor105, _dec183, _dec184, _dec185, _class152, _class153, _descriptor106, _descriptor107;
|
|
68361
68244
|
|
|
68362
68245
|
|
|
68363
68246
|
|
|
@@ -69488,21 +69371,7 @@ let FormulaGroupCountExpression = (_dec183 = (0,_markupGenerator_Serializer_Suga
|
|
|
69488
69371
|
writable: true,
|
|
69489
69372
|
initializer: null
|
|
69490
69373
|
}), _class153)) || _class152);
|
|
69491
|
-
|
|
69492
|
-
constructor(...args) {
|
|
69493
|
-
super(...args);
|
|
69494
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor108, this);
|
|
69495
|
-
}
|
|
69496
|
-
getLegacyExpressionTypeForFunctionName() {
|
|
69497
|
-
return "getDateTimeTicks";
|
|
69498
|
-
}
|
|
69499
|
-
}, _descriptor108 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class155.prototype, "expression", [_dec187], {
|
|
69500
|
-
configurable: true,
|
|
69501
|
-
enumerable: true,
|
|
69502
|
-
writable: true,
|
|
69503
|
-
initializer: null
|
|
69504
|
-
}), _class155)) || _class154);
|
|
69505
|
-
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, FormulaGetDateTimeTicksExpression];
|
|
69374
|
+
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];
|
|
69506
69375
|
|
|
69507
69376
|
/***/ }),
|
|
69508
69377
|
|
|
@@ -72203,9 +72072,6 @@ class KCXmlGeneratorBase {
|
|
|
72203
72072
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumOfDayWeightsExpression) {
|
|
72204
72073
|
return "null";
|
|
72205
72074
|
}
|
|
72206
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDateTimeTicksExpression) {
|
|
72207
|
-
return "null";
|
|
72208
|
-
}
|
|
72209
72075
|
// -----
|
|
72210
72076
|
|
|
72211
72077
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
@@ -73414,7 +73280,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73414
73280
|
/* harmony export */ FloorExpression: () => (/* binding */ FloorExpression),
|
|
73415
73281
|
/* harmony export */ FractionalLenExpression: () => (/* binding */ FractionalLenExpression),
|
|
73416
73282
|
/* harmony export */ GeExpression: () => (/* binding */ GeExpression),
|
|
73417
|
-
/* harmony export */ GetDateTimeTicksExpression: () => (/* binding */ GetDateTimeTicksExpression),
|
|
73418
73283
|
/* harmony export */ GetDayExpression: () => (/* binding */ GetDayExpression),
|
|
73419
73284
|
/* harmony export */ GetDaysInMonthExpression: () => (/* binding */ GetDaysInMonthExpression),
|
|
73420
73285
|
/* harmony export */ GetExternalInfoExpression: () => (/* binding */ GetExternalInfoExpression),
|
|
@@ -74139,19 +74004,6 @@ class RoundExpression extends FLangDecimalExpression {
|
|
|
74139
74004
|
return `round(${this.expression.convertToString()}, ${fractionalPart})`;
|
|
74140
74005
|
}
|
|
74141
74006
|
}
|
|
74142
|
-
class GetDateTimeTicksExpression extends FLangDecimalExpression {
|
|
74143
|
-
constructor(expression) {
|
|
74144
|
-
super();
|
|
74145
|
-
this.expression = void 0;
|
|
74146
|
-
this.expression = expression;
|
|
74147
|
-
}
|
|
74148
|
-
*getChildNodes() {
|
|
74149
|
-
yield this.expression;
|
|
74150
|
-
}
|
|
74151
|
-
convertToString() {
|
|
74152
|
-
return `getDateTimeTicks(${this.expression.convertToString()})`;
|
|
74153
|
-
}
|
|
74154
|
-
}
|
|
74155
74007
|
class FloorExpression extends FLangDecimalExpression {
|
|
74156
74008
|
constructor(expression) {
|
|
74157
74009
|
super();
|
|
@@ -74918,7 +74770,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74918
74770
|
/* harmony export */ combineByOrFlangExpr: () => (/* binding */ combineByOrFlangExpr),
|
|
74919
74771
|
/* harmony export */ combineRulesWithOptionalSectionChecking: () => (/* binding */ combineRulesWithOptionalSectionChecking),
|
|
74920
74772
|
/* harmony export */ composeFlangExpressionsByOr: () => (/* binding */ composeFlangExpressionsByOr),
|
|
74921
|
-
/* harmony export */ decimalFieldNameSuffix: () => (/* binding */ decimalFieldNameSuffix),
|
|
74922
74773
|
/* harmony export */ decimalWrapper: () => (/* binding */ decimalWrapper),
|
|
74923
74774
|
/* harmony export */ dictFieldNameSuffix: () => (/* binding */ dictFieldNameSuffix),
|
|
74924
74775
|
/* harmony export */ ensureCorrectFieldNameByExpressionType: () => (/* binding */ ensureCorrectFieldNameByExpressionType),
|
|
@@ -74953,7 +74804,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74953
74804
|
|
|
74954
74805
|
|
|
74955
74806
|
|
|
74956
|
-
const decimalFieldNameSuffix = "_decimal";
|
|
74957
74807
|
const dictFieldNameSuffix = "_dict";
|
|
74958
74808
|
const arrayFieldNameSuffix = "_array";
|
|
74959
74809
|
const hashSetFieldNameSuffix = "_hashSet";
|
|
@@ -75048,8 +74898,8 @@ function tryExtractValueReferenceAsStringFromDecimal(expression) {
|
|
|
75048
74898
|
}
|
|
75049
74899
|
return expression;
|
|
75050
74900
|
}
|
|
75051
|
-
function castFinalExpressionToStringIfNeed(operandExpression, enableTypedExpression,
|
|
75052
|
-
if (enableTypedExpression && (operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.dict || operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.array || operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.hashSet
|
|
74901
|
+
function castFinalExpressionToStringIfNeed(operandExpression, enableTypedExpression, decimalFormat = "G29") {
|
|
74902
|
+
if (enableTypedExpression && (operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.dict || operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.array || operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.hashSet)) {
|
|
75053
74903
|
return operandExpression;
|
|
75054
74904
|
}
|
|
75055
74905
|
return castOperandToStringIfNeed(operandExpression, decimalFormat);
|
|
@@ -75170,11 +75020,8 @@ function ensureCorrectFieldNameByExpressionType(statement) {
|
|
|
75170
75020
|
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.array && !lastStringPart.endsWith(arrayFieldNameSuffix)) {
|
|
75171
75021
|
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must be "${arrayFieldNameSuffix}"`);
|
|
75172
75022
|
}
|
|
75173
|
-
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.
|
|
75174
|
-
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must be "${
|
|
75175
|
-
}
|
|
75176
|
-
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.string && (lastStringPart.endsWith(arrayFieldNameSuffix) || lastStringPart.endsWith(hashSetFieldNameSuffix) || lastStringPart.endsWith(dictFieldNameSuffix) || lastStringPart.endsWith(decimalFieldNameSuffix))) {
|
|
75177
|
-
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must NOT be "${arrayFieldNameSuffix}", "${hashSetFieldNameSuffix}", "${decimalFieldNameSuffix}" or "${dictFieldNameSuffix}"`);
|
|
75023
|
+
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.string && (lastStringPart.endsWith(arrayFieldNameSuffix) || lastStringPart.endsWith(hashSetFieldNameSuffix) || lastStringPart.endsWith(dictFieldNameSuffix))) {
|
|
75024
|
+
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must NOT be "${arrayFieldNameSuffix}", "${hashSetFieldNameSuffix}" or "${dictFieldNameSuffix}"`);
|
|
75178
75025
|
}
|
|
75179
75026
|
}
|
|
75180
75027
|
}
|
|
@@ -75688,10 +75535,6 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75688
75535
|
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule));
|
|
75689
75536
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandIfNeed)(arg, targetType);
|
|
75690
75537
|
}
|
|
75691
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGetDateTimeTicksExpression) {
|
|
75692
|
-
const arg = this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule);
|
|
75693
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.GetDateTimeTicksExpression(arg);
|
|
75694
|
-
}
|
|
75695
75538
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}, ${expression.sourceXmlNode.name}`);
|
|
75696
75539
|
}
|
|
75697
75540
|
castOperandForComparisonExpression(formulaExpression, flangExpression) {
|
|
@@ -76282,7 +76125,7 @@ class FormulaOnlyNormalizationRuleGenerator {
|
|
|
76282
76125
|
const defaultValue = this.dataDeclarationHelper.getDefaultValue(fullTarget.toLegacyPath());
|
|
76283
76126
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
76284
76127
|
const getFormulaExpression = field => {
|
|
76285
|
-
const result = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.castFinalExpressionToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelFieldPath(fullTarget, field), x => precalculationRules.push(x)), this.options.enableTypedFlang,
|
|
76128
|
+
const result = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.castFinalExpressionToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelFieldPath(fullTarget, field), x => precalculationRules.push(x)), this.options.enableTypedFlang, "G29");
|
|
76286
76129
|
const resultType = result.getType();
|
|
76287
76130
|
return resultType === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.BuildInTypeExpression.string ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.wrapWithArgumentsCondition)(result), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.StringLiteralExpression(defaultValue)) : result;
|
|
76288
76131
|
};
|
|
@@ -76453,7 +76296,7 @@ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.
|
|
|
76453
76296
|
const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
|
|
76454
76297
|
const isDecimal = ((_this$formSchemaRng$g = this.formSchemaRng.getTypeNodeByPath(fullTarget.toAbsolute())) === null || _this$formSchemaRng$g === void 0 ? void 0 : _this$formSchemaRng$g.baseType) === "decimal";
|
|
76455
76298
|
const getFormulaExpression = targetField => {
|
|
76456
|
-
const result = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.castFinalExpressionToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, targetField), x => precalculationRules.push(x)), this.options.enableTypedFlang,
|
|
76299
|
+
const result = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.castFinalExpressionToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, targetField), x => precalculationRules.push(x)), this.options.enableTypedFlang, "G29");
|
|
76457
76300
|
const resultType = result.getType();
|
|
76458
76301
|
return resultType === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.string ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.wrapWithArgumentsCondition)(result), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue)) : result;
|
|
76459
76302
|
};
|
|
@@ -92075,29 +91918,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92075
91918
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
92076
91919
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
92077
91920
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
92078
|
-
/* harmony import */ var
|
|
92079
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
92080
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
92081
|
-
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
92082
|
-
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
92083
|
-
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
92084
|
-
/* harmony import */ var _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/FormulaStatement */ "./Generator/src/common/KCLang/CodeDom/FormulaStatement.ts");
|
|
92085
|
-
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
92086
|
-
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
92087
|
-
/* harmony import */ var _common_KCLang_CodeDom_Functions_GetDateTimeTicksFunctionCall__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts");
|
|
92088
|
-
/* harmony import */ var _common_KCLang_CodeDom_Functions_DateTimeFunctionCall__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/Functions/DateTimeFunctionCall */ "./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts");
|
|
92089
|
-
/* harmony import */ var _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./FilterDateRangeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/FilterDateRange/FilterDateRangeNode.ts");
|
|
92090
|
-
|
|
92091
|
-
|
|
92092
|
-
|
|
92093
|
-
|
|
92094
|
-
|
|
92095
|
-
|
|
92096
|
-
|
|
92097
|
-
|
|
92098
|
-
|
|
92099
|
-
|
|
92100
|
-
|
|
91921
|
+
/* harmony import */ var _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FilterDateRangeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/FilterDateRange/FilterDateRangeNode.ts");
|
|
92101
91922
|
|
|
92102
91923
|
|
|
92103
91924
|
|
|
@@ -92105,7 +91926,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92105
91926
|
|
|
92106
91927
|
class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
92107
91928
|
static getAcceptNodeClass() {
|
|
92108
|
-
return
|
|
91929
|
+
return _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_4__.FilterDateRangeNode;
|
|
92109
91930
|
}
|
|
92110
91931
|
doBuildDataDeclaration() {
|
|
92111
91932
|
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
@@ -92116,45 +91937,11 @@ class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
|
|
|
92116
91937
|
*doTraverseChildren() {
|
|
92117
91938
|
// no children
|
|
92118
91939
|
}
|
|
92119
|
-
|
|
92120
|
-
const node = this.getCurrentNodeAs(
|
|
92121
|
-
const multilinePath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node);
|
|
92122
|
-
const multilineElementSchemaInfo = formSchemaRng.getElementByPath(multilinePath);
|
|
92123
|
-
const useServerFilters = multilineElementSchemaInfo instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_4__.FormSchemaRngElement && multilineElementSchemaInfo.useServerFilters == true;
|
|
92124
|
-
return useServerFilters;
|
|
92125
|
-
}
|
|
92126
|
-
getNameForExtraField(fieldName) {
|
|
92127
|
-
return `cf_${fieldName}_decimal`;
|
|
92128
|
-
}
|
|
92129
|
-
getExtraFieldDataPath(dataPath) {
|
|
92130
|
-
var _tokens;
|
|
92131
|
-
const tokens = dataPath.getPathPartsAsArray();
|
|
92132
|
-
const tokensWithoutLastToken = tokens.slice(0, tokens.length - 1);
|
|
92133
|
-
const lastToken = (_tokens = tokens[tokens.length - 1]) !== null && _tokens !== void 0 ? _tokens : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
92134
|
-
const lastTokenAsDecimal = this.getNameForExtraField(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.isSimpleToken(lastToken) ? lastToken : "this");
|
|
92135
|
-
const extraFilteringFieldPath = dataPath.isAbsolute() ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromTokens)([...tokensWithoutLastToken, lastTokenAsDecimal]) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createRelativeFromTokens)([...tokensWithoutLastToken, lastTokenAsDecimal]);
|
|
92136
|
-
// @ts-ignore
|
|
92137
|
-
return extraFilteringFieldPath;
|
|
92138
|
-
}
|
|
92139
|
-
doBuildKCLangCalculations(_buildContext, formSchemaRng, _prefixPath) {
|
|
92140
|
-
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92141
|
-
const useServerFilters = this.getServerFiltersIsUsed(formSchemaRng);
|
|
92142
|
-
if (useServerFilters) {
|
|
92143
|
-
const dataPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createRelativeFromMask)(node.dataPath, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).getPathWithoutIterations();
|
|
92144
|
-
const extraFilteringFieldPath = this.getExtraFieldDataPath(dataPath).getPathWithoutIterations();
|
|
92145
|
-
const extraFieldStatement = new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_10__.FormulaStatement(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__.KCLangPath.fromModelPath(extraFilteringFieldPath), new _common_KCLang_CodeDom_Functions_GetDateTimeTicksFunctionCall__WEBPACK_IMPORTED_MODULE_13__.GetDateTimeTicksFunctionCall(new _common_KCLang_CodeDom_Functions_DateTimeFunctionCall__WEBPACK_IMPORTED_MODULE_14__.DateTimeFunctionCall(new _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__.CastExpression(new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_8__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__.KCLangPath.fromModelPath(dataPath)), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__.StringType.default)))));
|
|
92146
|
-
return [extraFieldStatement];
|
|
92147
|
-
}
|
|
92148
|
-
return [];
|
|
92149
|
-
}
|
|
92150
|
-
doConvert(context) {
|
|
92151
|
-
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92152
|
-
const useServerFilters = this.getServerFiltersIsUsed(context.schemaRng);
|
|
92153
|
-
const dataPath = useServerFilters ? this.getExtraFieldDataPath((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node, node.dataPath)) : (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node, node.dataPath);
|
|
91940
|
+
doConvert() {
|
|
91941
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_4__.FilterDateRangeNode);
|
|
92154
91942
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("FilterDateRange");
|
|
92155
|
-
markupBuilder.prop(x => x.dataPath).set(dataPath);
|
|
91943
|
+
markupBuilder.prop(x => x.dataPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node, node.dataPath));
|
|
92156
91944
|
markupBuilder.prop(x => x.filteredUniqKey).set(node.filteredUniqKey);
|
|
92157
|
-
markupBuilder.prop(x => x.convertDateToTicksInFilterExpression).set(useServerFilters);
|
|
92158
91945
|
return markupBuilder.buildConverterResult();
|
|
92159
91946
|
}
|
|
92160
91947
|
}
|
|
@@ -97283,7 +97070,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
97283
97070
|
disabled: node.disabled
|
|
97284
97071
|
})];
|
|
97285
97072
|
}
|
|
97286
|
-
*
|
|
97073
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
97287
97074
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
|
|
97288
97075
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97289
97076
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
@@ -97829,7 +97616,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
97829
97616
|
static getAcceptNodeClass() {
|
|
97830
97617
|
return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
|
|
97831
97618
|
}
|
|
97832
|
-
*
|
|
97619
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
97833
97620
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
97834
97621
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97835
97622
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
|
|
@@ -98091,7 +97878,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
98091
97878
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
98092
97879
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
98093
97880
|
}
|
|
98094
|
-
*
|
|
97881
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
98095
97882
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
98096
97883
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
98097
97884
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -99630,7 +99417,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
99630
99417
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99631
99418
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
|
|
99632
99419
|
}
|
|
99633
|
-
*
|
|
99420
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
99634
99421
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99635
99422
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
99636
99423
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -100403,7 +100190,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
|
|
|
100403
100190
|
static getAcceptNodeClass() {
|
|
100404
100191
|
return _KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode;
|
|
100405
100192
|
}
|
|
100406
|
-
*
|
|
100193
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
100407
100194
|
const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode);
|
|
100408
100195
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100409
100196
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each);
|
|
@@ -100711,7 +100498,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100711
100498
|
static getAcceptNodeClass() {
|
|
100712
100499
|
return _PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode;
|
|
100713
100500
|
}
|
|
100714
|
-
*
|
|
100501
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
100715
100502
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
|
|
100716
100503
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100717
100504
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -101180,7 +100967,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
101180
100967
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
101181
100968
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
101182
100969
|
}
|
|
101183
|
-
*
|
|
100970
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
101184
100971
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
101185
100972
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101186
100973
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -101699,7 +101486,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
|
|
|
101699
101486
|
disabled: node.disabled
|
|
101700
101487
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
101701
101488
|
}
|
|
101702
|
-
*
|
|
101489
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
101703
101490
|
const node = this.getCurrentNodeAs(_SelectNode__WEBPACK_IMPORTED_MODULE_6__.SelectNode);
|
|
101704
101491
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101705
101492
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -102448,7 +102235,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
102448
102235
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
102449
102236
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
|
|
102450
102237
|
}
|
|
102451
|
-
*
|
|
102238
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
102452
102239
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
102453
102240
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102454
102241
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -102705,7 +102492,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
102705
102492
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102706
102493
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
102707
102494
|
}
|
|
102708
|
-
*
|
|
102495
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
102709
102496
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102710
102497
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102711
102498
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -103415,7 +103202,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
103415
103202
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
|
|
103416
103203
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
103417
103204
|
}
|
|
103418
|
-
*
|
|
103205
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
103419
103206
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
|
|
103420
103207
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103421
103208
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -104001,7 +103788,7 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
|
|
|
104001
103788
|
pathSuffix: "Отчество"
|
|
104002
103789
|
})];
|
|
104003
103790
|
}
|
|
104004
|
-
|
|
103791
|
+
doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
104005
103792
|
var _node$getOwnPathForKC;
|
|
104006
103793
|
const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
|
|
104007
103794
|
const minlengthTypeCheckNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode();
|
|
@@ -104340,7 +104127,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
104340
104127
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
104341
104128
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
104342
104129
|
}
|
|
104343
|
-
*
|
|
104130
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
104344
104131
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
104345
104132
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
104346
104133
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
@@ -105069,11 +104856,11 @@ class MarkupBuildingContext {
|
|
|
105069
104856
|
this.formSourcesPath = void 0;
|
|
105070
104857
|
this.helpers = void 0;
|
|
105071
104858
|
this.pathsContext = void 0;
|
|
104859
|
+
this.schemaRng = void 0;
|
|
105072
104860
|
this.useSchemaValidations = void 0;
|
|
105073
104861
|
this.dataDeclarationHelper = void 0;
|
|
105074
104862
|
this.typesRegistry = void 0;
|
|
105075
104863
|
this.uniqueControlIdIncrement = new Map();
|
|
105076
|
-
this.schemaRng = void 0;
|
|
105077
104864
|
this.controlCustomizationContext = void 0;
|
|
105078
104865
|
this.tourSteps = void 0;
|
|
105079
104866
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
@@ -105349,8 +105136,8 @@ class KCLangCalculationsBuildContext {
|
|
|
105349
105136
|
getFirstAcceptedParent(schemaNode) {
|
|
105350
105137
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
105351
105138
|
while (parentNode != undefined) {
|
|
105352
|
-
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement) {
|
|
105353
|
-
if (parentNode.isOptional()
|
|
105139
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement && !parentNode.multiple) {
|
|
105140
|
+
if (parentNode.isOptional()) {
|
|
105354
105141
|
return parentNode;
|
|
105355
105142
|
}
|
|
105356
105143
|
parentNode = parentNode.parent;
|
|
@@ -107175,7 +106962,7 @@ class SugarNodeConverterBase {
|
|
|
107175
106962
|
}
|
|
107176
106963
|
buildSugarKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
107177
106964
|
const result = [];
|
|
107178
|
-
result.push(...this.
|
|
106965
|
+
result.push(...this.doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath));
|
|
107179
106966
|
const children = this.buildChildrenKCLangValidations(buildContext, formSchemaRng);
|
|
107180
106967
|
const childrenArray = Iterator.from(children).toArray();
|
|
107181
106968
|
const ownPath = this.node.getOwnPathForKCLang();
|
|
@@ -107311,7 +107098,7 @@ class SugarNodeConverterBase {
|
|
|
107311
107098
|
processFocusManagementAttributes(converterResult) {
|
|
107312
107099
|
return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_11__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
|
|
107313
107100
|
}
|
|
107314
|
-
|
|
107101
|
+
doBuildKCLangValidations(_buildContext, _formSchemaRng, _prefixPath) {
|
|
107315
107102
|
return [];
|
|
107316
107103
|
}
|
|
107317
107104
|
}
|