@kontur.candy/generator 5.115.0 → 5.115.1-enhanced-server-filters.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 +255 -42
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49478,6 +49478,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49478
49478
|
/* harmony export */ isValidDate: () => (/* binding */ isValidDate),
|
|
49479
49479
|
/* harmony export */ isValidStringDate: () => (/* binding */ isValidStringDate),
|
|
49480
49480
|
/* harmony export */ parseDateString: () => (/* binding */ parseDateString),
|
|
49481
|
+
/* harmony export */ parseDateStringAsDate: () => (/* binding */ parseDateStringAsDate),
|
|
49481
49482
|
/* harmony export */ tryGetValidDateShape: () => (/* binding */ tryGetValidDateShape)
|
|
49482
49483
|
/* harmony export */ });
|
|
49483
49484
|
/* harmony import */ var _Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Engine/ValidationHelper/ValidationHelper */ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts");
|
|
@@ -49512,6 +49513,10 @@ function tryGetValidDateShape(x) {
|
|
|
49512
49513
|
}
|
|
49513
49514
|
return undefined;
|
|
49514
49515
|
}
|
|
49516
|
+
function parseDateStringAsDate(value) {
|
|
49517
|
+
const shape = tryGetValidDateShape(parseDateString(value));
|
|
49518
|
+
return shape != undefined ? new Date(Date.UTC(shape.year, shape.month, shape.date)) : undefined;
|
|
49519
|
+
}
|
|
49515
49520
|
const comparator = (a, b) => {
|
|
49516
49521
|
if (a.year < b.year) {
|
|
49517
49522
|
return -1;
|
|
@@ -49655,7 +49660,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49655
49660
|
/* harmony export */ });
|
|
49656
49661
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
49657
49662
|
/* harmony import */ var _DateHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DateHelpers */ "./Engine/src/Helpers/DateHelpers.ts");
|
|
49658
|
-
/* harmony import */ var
|
|
49663
|
+
/* harmony import */ var _AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AutocalcCommonFunctions */ "./Engine/src/Helpers/AutocalcCommonFunctions.ts");
|
|
49664
|
+
/* harmony import */ var _FilterExpression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FilterExpression */ "./Engine/src/Helpers/FilterExpressions/FilterExpression.ts");
|
|
49665
|
+
|
|
49659
49666
|
|
|
49660
49667
|
|
|
49661
49668
|
|
|
@@ -49666,22 +49673,26 @@ function compileFilterExpression(expression) {
|
|
|
49666
49673
|
class FilterExpressionTransduceVisitor {
|
|
49667
49674
|
transformExpression(expression) {
|
|
49668
49675
|
switch (expression.operator) {
|
|
49669
|
-
case
|
|
49676
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.Or:
|
|
49670
49677
|
return this.transformOrExpression(expression);
|
|
49671
|
-
case
|
|
49678
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.And:
|
|
49672
49679
|
return this.transformAndExpression(expression);
|
|
49673
|
-
case
|
|
49680
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.Equal:
|
|
49674
49681
|
return this.transformEqualExpression(expression);
|
|
49675
|
-
case
|
|
49682
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.StartDate:
|
|
49676
49683
|
return this.transformStartDateExpression(expression);
|
|
49677
|
-
case
|
|
49684
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.EndDate:
|
|
49678
49685
|
return this.transformEndDateExpression(expression);
|
|
49679
|
-
case
|
|
49686
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.Substring:
|
|
49680
49687
|
return this.transformSubstringExpression(expression);
|
|
49681
|
-
case
|
|
49688
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.UnaryNot:
|
|
49682
49689
|
return this.transformUnaryNotExpression(expression);
|
|
49683
|
-
case
|
|
49690
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.ByInstances:
|
|
49684
49691
|
return this.transformByInstancesExpression(expression);
|
|
49692
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.LessOrEqual:
|
|
49693
|
+
return this.transformLessOrEqualExpression(expression);
|
|
49694
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.GreaterOrEqual:
|
|
49695
|
+
return this.transformGreaterOrEqualExpression(expression);
|
|
49685
49696
|
default:
|
|
49686
49697
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
49687
49698
|
return this.createDefaultResult();
|
|
@@ -49729,6 +49740,20 @@ class CompileFilterExpressionTransduceVisitor extends FilterExpressionTransduceV
|
|
|
49729
49740
|
return expression.condition.instances.some(x => x === instance);
|
|
49730
49741
|
};
|
|
49731
49742
|
}
|
|
49743
|
+
transformLessOrEqualExpression(expression) {
|
|
49744
|
+
const conditionValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(this.transformConditionValueExpression(expression.condition));
|
|
49745
|
+
return getModelValuesFn => getModelValuesFn(expression.condition.dataPath).some(x => {
|
|
49746
|
+
const typedDataPathValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(x);
|
|
49747
|
+
return conditionValue != undefined && typedDataPathValue != undefined ? typedDataPathValue.lte(conditionValue) : false;
|
|
49748
|
+
});
|
|
49749
|
+
}
|
|
49750
|
+
transformGreaterOrEqualExpression(expression) {
|
|
49751
|
+
const conditionValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(this.transformConditionValueExpression(expression.condition));
|
|
49752
|
+
return getModelValuesFn => getModelValuesFn(expression.condition.dataPath).some(x => {
|
|
49753
|
+
const typedDataPathValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(x);
|
|
49754
|
+
return conditionValue != undefined && typedDataPathValue != undefined ? typedDataPathValue.gte(conditionValue) : false;
|
|
49755
|
+
});
|
|
49756
|
+
}
|
|
49732
49757
|
}
|
|
49733
49758
|
function stringNormalize(str) {
|
|
49734
49759
|
return str.trim().toLocaleLowerCase();
|
|
@@ -49785,6 +49810,8 @@ let OperatorType = /*#__PURE__*/function (OperatorType) {
|
|
|
49785
49810
|
OperatorType["EndDate"] = "endDate";
|
|
49786
49811
|
OperatorType["Substring"] = "substring";
|
|
49787
49812
|
OperatorType["ByInstances"] = "byInstances";
|
|
49813
|
+
OperatorType["LessOrEqual"] = "lessOrEqual";
|
|
49814
|
+
OperatorType["GreaterOrEqual"] = "greaterOrEqual";
|
|
49788
49815
|
return OperatorType;
|
|
49789
49816
|
}({});
|
|
49790
49817
|
let FilterType = /*#__PURE__*/function (FilterType) {
|
|
@@ -49883,6 +49910,24 @@ class FilterExpressionResolveBindingPaths extends _CompileFilterExpression__WEBP
|
|
|
49883
49910
|
condition: this.transformExpression(expression.condition)
|
|
49884
49911
|
};
|
|
49885
49912
|
}
|
|
49913
|
+
transformLessOrEqualExpression(expression) {
|
|
49914
|
+
return {
|
|
49915
|
+
...expression,
|
|
49916
|
+
condition: {
|
|
49917
|
+
...expression.condition,
|
|
49918
|
+
dataPath: this.pathResolver(expression.condition.dataPath)
|
|
49919
|
+
}
|
|
49920
|
+
};
|
|
49921
|
+
}
|
|
49922
|
+
transformGreaterOrEqualExpression(expression) {
|
|
49923
|
+
return {
|
|
49924
|
+
...expression,
|
|
49925
|
+
condition: {
|
|
49926
|
+
...expression.condition,
|
|
49927
|
+
dataPath: this.pathResolver(expression.condition.dataPath)
|
|
49928
|
+
}
|
|
49929
|
+
};
|
|
49930
|
+
}
|
|
49886
49931
|
}
|
|
49887
49932
|
|
|
49888
49933
|
/***/ }),
|
|
@@ -50564,6 +50609,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50564
50609
|
/* harmony export */ existsKCLangFunction: () => (/* binding */ existsKCLangFunction),
|
|
50565
50610
|
/* harmony export */ firstOrDefaultKCLangFunction: () => (/* binding */ firstOrDefaultKCLangFunction),
|
|
50566
50611
|
/* harmony export */ floorKCLangFunction: () => (/* binding */ floorKCLangFunction),
|
|
50612
|
+
/* harmony export */ getDateTimeTicksKCLangFunction: () => (/* binding */ getDateTimeTicksKCLangFunction),
|
|
50567
50613
|
/* harmony export */ getDayKCLangFunction: () => (/* binding */ getDayKCLangFunction),
|
|
50568
50614
|
/* harmony export */ getDaysInMonthKCLangFunction: () => (/* binding */ getDaysInMonthKCLangFunction),
|
|
50569
50615
|
/* harmony export */ getMonthKCLangFunction: () => (/* binding */ getMonthKCLangFunction),
|
|
@@ -51352,6 +51398,22 @@ const joinKCLangFunction = params => {
|
|
|
51352
51398
|
array: arrayParam
|
|
51353
51399
|
};
|
|
51354
51400
|
};
|
|
51401
|
+
const getDateTimeTicksKCLangFunction = params => {
|
|
51402
|
+
var _params$56;
|
|
51403
|
+
const errors = Array.from(validateParams(params, 1));
|
|
51404
|
+
if (errors.length > 0) {
|
|
51405
|
+
return new FunctionValidationErrorCollection(errors);
|
|
51406
|
+
}
|
|
51407
|
+
const expr = (_params$56 = params[0]) === null || _params$56 === void 0 ? void 0 : _params$56.value;
|
|
51408
|
+
if (expr == undefined) {
|
|
51409
|
+
const argumentsValidationError = new ArgumentValidationError("Invalid arguments expression");
|
|
51410
|
+
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
51411
|
+
}
|
|
51412
|
+
return {
|
|
51413
|
+
type: "getDateTimeTicks",
|
|
51414
|
+
expression: expr
|
|
51415
|
+
};
|
|
51416
|
+
};
|
|
51355
51417
|
|
|
51356
51418
|
/***/ }),
|
|
51357
51419
|
|
|
@@ -51429,7 +51491,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
51429
51491
|
makeDict: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.makeDictKCLangFunction],
|
|
51430
51492
|
getSumByKeys: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getSumByKeysKCLangFunction],
|
|
51431
51493
|
join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction],
|
|
51432
|
-
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
|
|
51494
|
+
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction],
|
|
51495
|
+
getDateTimeTicks: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getDateTimeTicksKCLangFunction]
|
|
51433
51496
|
});
|
|
51434
51497
|
class KCLangAntlrParser {
|
|
51435
51498
|
static parse(code) {
|
|
@@ -51824,7 +51887,7 @@ class KCLangAntlrVisitor {
|
|
|
51824
51887
|
dataType = "array";
|
|
51825
51888
|
break;
|
|
51826
51889
|
default:
|
|
51827
|
-
throw Error(
|
|
51890
|
+
throw Error(`visitType syntax incorrect: ${contextName} is not supported!`);
|
|
51828
51891
|
}
|
|
51829
51892
|
return {
|
|
51830
51893
|
type: "CastDataTypeNode",
|
|
@@ -60126,6 +60189,32 @@ class FunctionCall extends _KCLangExpression__WEBPACK_IMPORTED_MODULE_0__.KCLang
|
|
|
60126
60189
|
|
|
60127
60190
|
/***/ }),
|
|
60128
60191
|
|
|
60192
|
+
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts":
|
|
60193
|
+
/*!*******************************************************************************!*\
|
|
60194
|
+
!*** ./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts ***!
|
|
60195
|
+
\*******************************************************************************/
|
|
60196
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60197
|
+
|
|
60198
|
+
"use strict";
|
|
60199
|
+
__webpack_require__.r(__webpack_exports__);
|
|
60200
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60201
|
+
/* harmony export */ DateTimeFunctionCall: () => (/* binding */ DateTimeFunctionCall)
|
|
60202
|
+
/* harmony export */ });
|
|
60203
|
+
/* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
|
|
60204
|
+
/* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
60205
|
+
|
|
60206
|
+
|
|
60207
|
+
class DateTimeFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
60208
|
+
constructor(expr) {
|
|
60209
|
+
super("dateTime", [expr]);
|
|
60210
|
+
}
|
|
60211
|
+
getType() {
|
|
60212
|
+
return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.DateType.default;
|
|
60213
|
+
}
|
|
60214
|
+
}
|
|
60215
|
+
|
|
60216
|
+
/***/ }),
|
|
60217
|
+
|
|
60129
60218
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts":
|
|
60130
60219
|
/*!*****************************************************************************!*\
|
|
60131
60220
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts ***!
|
|
@@ -60152,6 +60241,32 @@ class ExistsFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.Func
|
|
|
60152
60241
|
|
|
60153
60242
|
/***/ }),
|
|
60154
60243
|
|
|
60244
|
+
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts":
|
|
60245
|
+
/*!***************************************************************************************!*\
|
|
60246
|
+
!*** ./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts ***!
|
|
60247
|
+
\***************************************************************************************/
|
|
60248
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60249
|
+
|
|
60250
|
+
"use strict";
|
|
60251
|
+
__webpack_require__.r(__webpack_exports__);
|
|
60252
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60253
|
+
/* harmony export */ GetDateTimeTicksFunctionCall: () => (/* binding */ GetDateTimeTicksFunctionCall)
|
|
60254
|
+
/* harmony export */ });
|
|
60255
|
+
/* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
|
|
60256
|
+
/* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
60257
|
+
|
|
60258
|
+
|
|
60259
|
+
class GetDateTimeTicksFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
60260
|
+
constructor(expr) {
|
|
60261
|
+
super("getDateTimeTicks", [expr]);
|
|
60262
|
+
}
|
|
60263
|
+
getType() {
|
|
60264
|
+
return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.DecimalType.default;
|
|
60265
|
+
}
|
|
60266
|
+
}
|
|
60267
|
+
|
|
60268
|
+
/***/ }),
|
|
60269
|
+
|
|
60155
60270
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts":
|
|
60156
60271
|
/*!****************************************************************************************!*\
|
|
60157
60272
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts ***!
|
|
@@ -62036,9 +62151,10 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
62036
62151
|
throw new Error(`One of supports only array literal on the right`);
|
|
62037
62152
|
}
|
|
62038
62153
|
}
|
|
62154
|
+
case "getDateTimeTicks":
|
|
62155
|
+
return [`<m:getDateTimeTicks>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:getDateTimeTicks>`].join("\n");
|
|
62039
62156
|
default:
|
|
62040
|
-
|
|
62041
|
-
throw new Error(`Expression of type '${expression.type}' is not supported`);
|
|
62157
|
+
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(`Expression '${expression}' is not supported`);
|
|
62042
62158
|
}
|
|
62043
62159
|
}
|
|
62044
62160
|
function isPathPrefix(contextBlock) {
|
|
@@ -68178,6 +68294,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68178
68294
|
/* harmony export */ FormulaFirstOrDefaultExpression: () => (/* binding */ FormulaFirstOrDefaultExpression),
|
|
68179
68295
|
/* harmony export */ FormulaFloorExpression: () => (/* binding */ FormulaFloorExpression),
|
|
68180
68296
|
/* harmony export */ FormulaGeExpression: () => (/* binding */ FormulaGeExpression),
|
|
68297
|
+
/* harmony export */ FormulaGetDateTimeTicksExpression: () => (/* binding */ FormulaGetDateTimeTicksExpression),
|
|
68181
68298
|
/* harmony export */ FormulaGetDayExpression: () => (/* binding */ FormulaGetDayExpression),
|
|
68182
68299
|
/* harmony export */ FormulaGetDaysInMonthExpression: () => (/* binding */ FormulaGetDaysInMonthExpression),
|
|
68183
68300
|
/* harmony export */ FormulaGetMonthExpression: () => (/* binding */ FormulaGetMonthExpression),
|
|
@@ -68238,7 +68355,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68238
68355
|
|
|
68239
68356
|
|
|
68240
68357
|
|
|
68241
|
-
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;
|
|
68358
|
+
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, _dec186, _dec187, _class154, _class155, _descriptor108;
|
|
68242
68359
|
|
|
68243
68360
|
|
|
68244
68361
|
|
|
@@ -69369,7 +69486,21 @@ let FormulaGroupCountExpression = (_dec183 = (0,_markupGenerator_Serializer_Suga
|
|
|
69369
69486
|
writable: true,
|
|
69370
69487
|
initializer: null
|
|
69371
69488
|
}), _class153)) || _class152);
|
|
69372
|
-
|
|
69489
|
+
let FormulaGetDateTimeTicksExpression = (_dec186 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getdatetimeticks", `Получить количество тиков от 01.01.0001`), _dec187 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec186(_class154 = (_class155 = class FormulaGetDateTimeTicksExpression extends FormulaExpression {
|
|
69490
|
+
constructor(...args) {
|
|
69491
|
+
super(...args);
|
|
69492
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor108, this);
|
|
69493
|
+
}
|
|
69494
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
69495
|
+
return "getDateTimeTicks";
|
|
69496
|
+
}
|
|
69497
|
+
}, _descriptor108 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class155.prototype, "expression", [_dec187], {
|
|
69498
|
+
configurable: true,
|
|
69499
|
+
enumerable: true,
|
|
69500
|
+
writable: true,
|
|
69501
|
+
initializer: null
|
|
69502
|
+
}), _class155)) || _class154);
|
|
69503
|
+
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];
|
|
69373
69504
|
|
|
69374
69505
|
/***/ }),
|
|
69375
69506
|
|
|
@@ -72070,6 +72201,9 @@ class KCXmlGeneratorBase {
|
|
|
72070
72201
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumOfDayWeightsExpression) {
|
|
72071
72202
|
return "null";
|
|
72072
72203
|
}
|
|
72204
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDateTimeTicksExpression) {
|
|
72205
|
+
return "null";
|
|
72206
|
+
}
|
|
72073
72207
|
// -----
|
|
72074
72208
|
|
|
72075
72209
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
@@ -73278,6 +73412,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73278
73412
|
/* harmony export */ FloorExpression: () => (/* binding */ FloorExpression),
|
|
73279
73413
|
/* harmony export */ FractionalLenExpression: () => (/* binding */ FractionalLenExpression),
|
|
73280
73414
|
/* harmony export */ GeExpression: () => (/* binding */ GeExpression),
|
|
73415
|
+
/* harmony export */ GetDateTimeTicksExpression: () => (/* binding */ GetDateTimeTicksExpression),
|
|
73281
73416
|
/* harmony export */ GetDayExpression: () => (/* binding */ GetDayExpression),
|
|
73282
73417
|
/* harmony export */ GetDaysInMonthExpression: () => (/* binding */ GetDaysInMonthExpression),
|
|
73283
73418
|
/* harmony export */ GetExternalInfoExpression: () => (/* binding */ GetExternalInfoExpression),
|
|
@@ -74002,6 +74137,19 @@ class RoundExpression extends FLangDecimalExpression {
|
|
|
74002
74137
|
return `round(${this.expression.convertToString()}, ${fractionalPart})`;
|
|
74003
74138
|
}
|
|
74004
74139
|
}
|
|
74140
|
+
class GetDateTimeTicksExpression extends FLangDecimalExpression {
|
|
74141
|
+
constructor(expression) {
|
|
74142
|
+
super();
|
|
74143
|
+
this.expression = void 0;
|
|
74144
|
+
this.expression = expression;
|
|
74145
|
+
}
|
|
74146
|
+
*getChildNodes() {
|
|
74147
|
+
yield this.expression;
|
|
74148
|
+
}
|
|
74149
|
+
convertToString() {
|
|
74150
|
+
return `getDateTimeTicks(${this.expression.convertToString()})`;
|
|
74151
|
+
}
|
|
74152
|
+
}
|
|
74005
74153
|
class FloorExpression extends FLangDecimalExpression {
|
|
74006
74154
|
constructor(expression) {
|
|
74007
74155
|
super();
|
|
@@ -74768,6 +74916,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74768
74916
|
/* harmony export */ combineByOrFlangExpr: () => (/* binding */ combineByOrFlangExpr),
|
|
74769
74917
|
/* harmony export */ combineRulesWithOptionalSectionChecking: () => (/* binding */ combineRulesWithOptionalSectionChecking),
|
|
74770
74918
|
/* harmony export */ composeFlangExpressionsByOr: () => (/* binding */ composeFlangExpressionsByOr),
|
|
74919
|
+
/* harmony export */ decimalFieldNameSuffix: () => (/* binding */ decimalFieldNameSuffix),
|
|
74771
74920
|
/* harmony export */ decimalWrapper: () => (/* binding */ decimalWrapper),
|
|
74772
74921
|
/* harmony export */ dictFieldNameSuffix: () => (/* binding */ dictFieldNameSuffix),
|
|
74773
74922
|
/* harmony export */ ensureCorrectFieldNameByExpressionType: () => (/* binding */ ensureCorrectFieldNameByExpressionType),
|
|
@@ -74802,6 +74951,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74802
74951
|
|
|
74803
74952
|
|
|
74804
74953
|
|
|
74954
|
+
const decimalFieldNameSuffix = "_decimal";
|
|
74805
74955
|
const dictFieldNameSuffix = "_dict";
|
|
74806
74956
|
const arrayFieldNameSuffix = "_array";
|
|
74807
74957
|
const hashSetFieldNameSuffix = "_hashSet";
|
|
@@ -74896,8 +75046,8 @@ function tryExtractValueReferenceAsStringFromDecimal(expression) {
|
|
|
74896
75046
|
}
|
|
74897
75047
|
return expression;
|
|
74898
75048
|
}
|
|
74899
|
-
function castFinalExpressionToStringIfNeed(operandExpression, enableTypedExpression, decimalFormat = "G29") {
|
|
74900
|
-
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)) {
|
|
75049
|
+
function castFinalExpressionToStringIfNeed(operandExpression, enableTypedExpression, fullTarget, decimalFormat = "G29") {
|
|
75050
|
+
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 || operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.decimal && fullTarget.toString().endsWith(decimalFieldNameSuffix))) {
|
|
74901
75051
|
return operandExpression;
|
|
74902
75052
|
}
|
|
74903
75053
|
return castOperandToStringIfNeed(operandExpression, decimalFormat);
|
|
@@ -75018,8 +75168,11 @@ function ensureCorrectFieldNameByExpressionType(statement) {
|
|
|
75018
75168
|
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.array && !lastStringPart.endsWith(arrayFieldNameSuffix)) {
|
|
75019
75169
|
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must be "${arrayFieldNameSuffix}"`);
|
|
75020
75170
|
}
|
|
75021
|
-
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.
|
|
75022
|
-
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must
|
|
75171
|
+
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.decimal && !lastStringPart.endsWith(decimalFieldNameSuffix)) {
|
|
75172
|
+
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must be "${decimalFieldNameSuffix}"`);
|
|
75173
|
+
}
|
|
75174
|
+
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.string && (lastStringPart.endsWith(arrayFieldNameSuffix) || lastStringPart.endsWith(hashSetFieldNameSuffix) || lastStringPart.endsWith(dictFieldNameSuffix) || lastStringPart.endsWith(decimalFieldNameSuffix))) {
|
|
75175
|
+
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must NOT be "${arrayFieldNameSuffix}", "${hashSetFieldNameSuffix}", "${decimalFieldNameSuffix}" or "${dictFieldNameSuffix}"`);
|
|
75023
75176
|
}
|
|
75024
75177
|
}
|
|
75025
75178
|
}
|
|
@@ -75533,6 +75686,10 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75533
75686
|
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule));
|
|
75534
75687
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandIfNeed)(arg, targetType);
|
|
75535
75688
|
}
|
|
75689
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGetDateTimeTicksExpression) {
|
|
75690
|
+
const arg = this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule);
|
|
75691
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.GetDateTimeTicksExpression(arg);
|
|
75692
|
+
}
|
|
75536
75693
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}, ${expression.sourceXmlNode.name}`);
|
|
75537
75694
|
}
|
|
75538
75695
|
castOperandForComparisonExpression(formulaExpression, flangExpression) {
|
|
@@ -76123,7 +76280,7 @@ class FormulaOnlyNormalizationRuleGenerator {
|
|
|
76123
76280
|
const defaultValue = this.dataDeclarationHelper.getDefaultValue(fullTarget.toLegacyPath());
|
|
76124
76281
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
76125
76282
|
const getFormulaExpression = field => {
|
|
76126
|
-
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");
|
|
76283
|
+
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, fullTarget, "G29");
|
|
76127
76284
|
const resultType = result.getType();
|
|
76128
76285
|
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;
|
|
76129
76286
|
};
|
|
@@ -76294,7 +76451,7 @@ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.
|
|
|
76294
76451
|
const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
|
|
76295
76452
|
const isDecimal = ((_this$formSchemaRng$g = this.formSchemaRng.getTypeNodeByPath(fullTarget.toAbsolute())) === null || _this$formSchemaRng$g === void 0 ? void 0 : _this$formSchemaRng$g.baseType) === "decimal";
|
|
76296
76453
|
const getFormulaExpression = targetField => {
|
|
76297
|
-
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");
|
|
76454
|
+
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, fullTarget, "G29");
|
|
76298
76455
|
const resultType = result.getType();
|
|
76299
76456
|
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;
|
|
76300
76457
|
};
|
|
@@ -91916,7 +92073,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
91916
92073
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
91917
92074
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
91918
92075
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
91919
|
-
/* harmony import */ var
|
|
92076
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
92077
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
92078
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
92079
|
+
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
92080
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
92081
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
92082
|
+
/* harmony import */ var _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/FormulaStatement */ "./Generator/src/common/KCLang/CodeDom/FormulaStatement.ts");
|
|
92083
|
+
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
92084
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
92085
|
+
/* 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");
|
|
92086
|
+
/* 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");
|
|
92087
|
+
/* harmony import */ var _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./FilterDateRangeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/FilterDateRange/FilterDateRangeNode.ts");
|
|
92088
|
+
|
|
92089
|
+
|
|
92090
|
+
|
|
92091
|
+
|
|
92092
|
+
|
|
92093
|
+
|
|
92094
|
+
|
|
92095
|
+
|
|
92096
|
+
|
|
92097
|
+
|
|
92098
|
+
|
|
91920
92099
|
|
|
91921
92100
|
|
|
91922
92101
|
|
|
@@ -91924,7 +92103,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
91924
92103
|
|
|
91925
92104
|
class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
91926
92105
|
static getAcceptNodeClass() {
|
|
91927
|
-
return
|
|
92106
|
+
return _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode;
|
|
91928
92107
|
}
|
|
91929
92108
|
doBuildDataDeclaration() {
|
|
91930
92109
|
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
@@ -91935,11 +92114,45 @@ class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
|
|
|
91935
92114
|
*doTraverseChildren() {
|
|
91936
92115
|
// no children
|
|
91937
92116
|
}
|
|
91938
|
-
|
|
91939
|
-
const node = this.getCurrentNodeAs(
|
|
92117
|
+
getServerFiltersIsUsed(formSchemaRng) {
|
|
92118
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92119
|
+
const multilinePath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node);
|
|
92120
|
+
const multilineElementSchemaInfo = formSchemaRng.getElementByPath(multilinePath);
|
|
92121
|
+
const useServerFilters = multilineElementSchemaInfo instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_4__.FormSchemaRngElement && multilineElementSchemaInfo.useServerFilters == true;
|
|
92122
|
+
return useServerFilters;
|
|
92123
|
+
}
|
|
92124
|
+
getNameForExtraField(fieldName) {
|
|
92125
|
+
return `cf_${fieldName}_decimal`;
|
|
92126
|
+
}
|
|
92127
|
+
getExtraFieldDataPath(dataPath) {
|
|
92128
|
+
var _tokens;
|
|
92129
|
+
const tokens = dataPath.getPathPartsAsArray();
|
|
92130
|
+
const tokensWithoutLastToken = tokens.slice(0, tokens.length - 1);
|
|
92131
|
+
const lastToken = (_tokens = tokens[tokens.length - 1]) !== null && _tokens !== void 0 ? _tokens : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
92132
|
+
const lastTokenAsDecimal = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.isSimpleToken(lastToken) ? this.getNameForExtraField(lastToken) : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
92133
|
+
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]);
|
|
92134
|
+
// @ts-ignore
|
|
92135
|
+
return extraFilteringFieldPath;
|
|
92136
|
+
}
|
|
92137
|
+
doBuildKCLangCalculations(_buildContext, formSchemaRng, _prefixPath) {
|
|
92138
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92139
|
+
const useServerFilters = this.getServerFiltersIsUsed(formSchemaRng);
|
|
92140
|
+
if (useServerFilters) {
|
|
92141
|
+
const dataPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createRelativeFromMask)(node.dataPath, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).getPathWithoutIterations();
|
|
92142
|
+
const extraFilteringFieldPath = this.getExtraFieldDataPath(dataPath).getPathWithoutIterations();
|
|
92143
|
+
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)))));
|
|
92144
|
+
return [extraFieldStatement];
|
|
92145
|
+
}
|
|
92146
|
+
return [];
|
|
92147
|
+
}
|
|
92148
|
+
doConvert(context) {
|
|
92149
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92150
|
+
const useServerFilters = this.getServerFiltersIsUsed(context.schemaRng);
|
|
92151
|
+
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
92152
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("FilterDateRange");
|
|
91941
|
-
markupBuilder.prop(x => x.dataPath).set(
|
|
92153
|
+
markupBuilder.prop(x => x.dataPath).set(dataPath);
|
|
91942
92154
|
markupBuilder.prop(x => x.filteredUniqKey).set(node.filteredUniqKey);
|
|
92155
|
+
markupBuilder.prop(x => x.convertDateToTicksInFilterExpression).set(useServerFilters);
|
|
91943
92156
|
return markupBuilder.buildConverterResult();
|
|
91944
92157
|
}
|
|
91945
92158
|
}
|
|
@@ -97061,7 +97274,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
97061
97274
|
disabled: node.disabled
|
|
97062
97275
|
})];
|
|
97063
97276
|
}
|
|
97064
|
-
*
|
|
97277
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
97065
97278
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97066
97279
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97067
97280
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
@@ -97586,7 +97799,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
97586
97799
|
static getAcceptNodeClass() {
|
|
97587
97800
|
return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
|
|
97588
97801
|
}
|
|
97589
|
-
*
|
|
97802
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
97590
97803
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
97591
97804
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97592
97805
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
|
|
@@ -97848,7 +98061,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
97848
98061
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
97849
98062
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
97850
98063
|
}
|
|
97851
|
-
*
|
|
98064
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
97852
98065
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
97853
98066
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97854
98067
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -99387,7 +99600,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
99387
99600
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99388
99601
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
|
|
99389
99602
|
}
|
|
99390
|
-
*
|
|
99603
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
99391
99604
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99392
99605
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
99393
99606
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -100160,7 +100373,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
|
|
|
100160
100373
|
static getAcceptNodeClass() {
|
|
100161
100374
|
return _KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode;
|
|
100162
100375
|
}
|
|
100163
|
-
*
|
|
100376
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
100164
100377
|
const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode);
|
|
100165
100378
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100166
100379
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each);
|
|
@@ -100466,7 +100679,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100466
100679
|
static getAcceptNodeClass() {
|
|
100467
100680
|
return _PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode;
|
|
100468
100681
|
}
|
|
100469
|
-
*
|
|
100682
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
100470
100683
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100471
100684
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100472
100685
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -100944,7 +101157,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
100944
101157
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
100945
101158
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
100946
101159
|
}
|
|
100947
|
-
*
|
|
101160
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
100948
101161
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
100949
101162
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100950
101163
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -101463,7 +101676,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
|
|
|
101463
101676
|
disabled: node.disabled
|
|
101464
101677
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
101465
101678
|
}
|
|
101466
|
-
*
|
|
101679
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
101467
101680
|
const node = this.getCurrentNodeAs(_SelectNode__WEBPACK_IMPORTED_MODULE_6__.SelectNode);
|
|
101468
101681
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101469
101682
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -102212,7 +102425,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
102212
102425
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
102213
102426
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
|
|
102214
102427
|
}
|
|
102215
|
-
*
|
|
102428
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
102216
102429
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
102217
102430
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102218
102431
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -102469,7 +102682,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
102469
102682
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102470
102683
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
102471
102684
|
}
|
|
102472
|
-
*
|
|
102685
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
102473
102686
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102474
102687
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102475
102688
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -103184,7 +103397,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
103184
103397
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103185
103398
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
103186
103399
|
}
|
|
103187
|
-
*
|
|
103400
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
103188
103401
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103189
103402
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103190
103403
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -103749,7 +103962,7 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
|
|
|
103749
103962
|
pathSuffix: "Отчество"
|
|
103750
103963
|
})];
|
|
103751
103964
|
}
|
|
103752
|
-
|
|
103965
|
+
doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
103753
103966
|
var _node$getOwnPathForKC;
|
|
103754
103967
|
const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
|
|
103755
103968
|
const minlengthTypeCheckNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode();
|
|
@@ -104088,7 +104301,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
104088
104301
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
104089
104302
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
104090
104303
|
}
|
|
104091
|
-
*
|
|
104304
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
104092
104305
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
104093
104306
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
104094
104307
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
@@ -104817,11 +105030,11 @@ class MarkupBuildingContext {
|
|
|
104817
105030
|
this.formSourcesPath = void 0;
|
|
104818
105031
|
this.helpers = void 0;
|
|
104819
105032
|
this.pathsContext = void 0;
|
|
104820
|
-
this.schemaRng = void 0;
|
|
104821
105033
|
this.useSchemaValidations = void 0;
|
|
104822
105034
|
this.dataDeclarationHelper = void 0;
|
|
104823
105035
|
this.typesRegistry = void 0;
|
|
104824
105036
|
this.uniqueControlIdIncrement = new Map();
|
|
105037
|
+
this.schemaRng = void 0;
|
|
104825
105038
|
this.controlCustomizationContext = void 0;
|
|
104826
105039
|
this.tourSteps = void 0;
|
|
104827
105040
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
@@ -106923,7 +107136,7 @@ class SugarNodeConverterBase {
|
|
|
106923
107136
|
}
|
|
106924
107137
|
buildSugarKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
106925
107138
|
const result = [];
|
|
106926
|
-
result.push(...this.
|
|
107139
|
+
result.push(...this.doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath));
|
|
106927
107140
|
const children = this.buildChildrenKCLangValidations(buildContext, formSchemaRng);
|
|
106928
107141
|
const childrenArray = Iterator.from(children).toArray();
|
|
106929
107142
|
const ownPath = this.node.getOwnPathForKCLang();
|
|
@@ -107059,7 +107272,7 @@ class SugarNodeConverterBase {
|
|
|
107059
107272
|
processFocusManagementAttributes(converterResult) {
|
|
107060
107273
|
return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_11__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
|
|
107061
107274
|
}
|
|
107062
|
-
|
|
107275
|
+
doBuildKCLangCalculations(_buildContext, _formSchemaRng, _prefixPath) {
|
|
107063
107276
|
return [];
|
|
107064
107277
|
}
|
|
107065
107278
|
}
|