@kontur.candy/generator 5.127.0-mini-modal-icon.0 → 5.127.0-test-new-npm-token.1
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 +286 -44
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47473,7 +47473,7 @@ class ModelPathImpl {
|
|
|
47473
47473
|
}
|
|
47474
47474
|
return this;
|
|
47475
47475
|
}
|
|
47476
|
-
|
|
47476
|
+
trimFirstStarIfFirstToken() {
|
|
47477
47477
|
const firstItem = _IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.first(this.tokens);
|
|
47478
47478
|
if (firstItem != undefined && PathTokens.isMultiToken(firstItem)) {
|
|
47479
47479
|
return new ModelPathImpl(this.tokens.slice(1), this.absolute);
|
|
@@ -47512,6 +47512,26 @@ class ModelPathImpl {
|
|
|
47512
47512
|
// @ts-expect-error
|
|
47513
47513
|
return result.toPath();
|
|
47514
47514
|
}
|
|
47515
|
+
applyCommonInstancesFromAnotherPath(modelPath) {
|
|
47516
|
+
const anotherTokens = modelPath.getPathPartsAsArray();
|
|
47517
|
+
const updatedTokens = this.tokens.reduce((acc, token, index) => {
|
|
47518
|
+
const anotherToken = anotherTokens[index];
|
|
47519
|
+
const nextTokenInfo = acc.matching && (PathTokens.isMultiToken(token) && PathTokens.isInstanceToken(anotherToken) || PathTokens.isSimpleToken(token) && PathTokens.isSimpleToken(anotherToken) && token === anotherToken) ? {
|
|
47520
|
+
nextToken: anotherToken,
|
|
47521
|
+
matching: true
|
|
47522
|
+
} : {
|
|
47523
|
+
nextToken: token,
|
|
47524
|
+
matching: false
|
|
47525
|
+
};
|
|
47526
|
+
acc.matching = nextTokenInfo.matching;
|
|
47527
|
+
acc.tokens[index] = nextTokenInfo.nextToken;
|
|
47528
|
+
return acc;
|
|
47529
|
+
}, {
|
|
47530
|
+
tokens: Array.from(this.tokens),
|
|
47531
|
+
matching: true
|
|
47532
|
+
}).tokens;
|
|
47533
|
+
return new ModelPathImpl(updatedTokens, this.absolute);
|
|
47534
|
+
}
|
|
47515
47535
|
pathPartToString(pathPart) {
|
|
47516
47536
|
if (typeof pathPart === "string") {
|
|
47517
47537
|
return pathPart;
|
|
@@ -49691,6 +49711,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49691
49711
|
/* harmony export */ isValidDate: () => (/* binding */ isValidDate),
|
|
49692
49712
|
/* harmony export */ isValidStringDate: () => (/* binding */ isValidStringDate),
|
|
49693
49713
|
/* harmony export */ parseDateString: () => (/* binding */ parseDateString),
|
|
49714
|
+
/* harmony export */ parseDateStringAsDate: () => (/* binding */ parseDateStringAsDate),
|
|
49694
49715
|
/* harmony export */ tryGetValidDateShape: () => (/* binding */ tryGetValidDateShape)
|
|
49695
49716
|
/* harmony export */ });
|
|
49696
49717
|
/* harmony import */ var _Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Engine/ValidationHelper/ValidationHelper */ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts");
|
|
@@ -49725,6 +49746,10 @@ function tryGetValidDateShape(x) {
|
|
|
49725
49746
|
}
|
|
49726
49747
|
return undefined;
|
|
49727
49748
|
}
|
|
49749
|
+
function parseDateStringAsDate(value) {
|
|
49750
|
+
const shape = tryGetValidDateShape(parseDateString(value));
|
|
49751
|
+
return shape != undefined ? new Date(Date.UTC(shape.year, shape.month, shape.date)) : undefined;
|
|
49752
|
+
}
|
|
49728
49753
|
const comparator = (a, b) => {
|
|
49729
49754
|
if (a.year < b.year) {
|
|
49730
49755
|
return -1;
|
|
@@ -49868,7 +49893,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49868
49893
|
/* harmony export */ });
|
|
49869
49894
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
49870
49895
|
/* harmony import */ var _DateHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DateHelpers */ "./Engine/src/Helpers/DateHelpers.ts");
|
|
49871
|
-
/* harmony import */ var
|
|
49896
|
+
/* harmony import */ var _AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AutocalcCommonFunctions */ "./Engine/src/Helpers/AutocalcCommonFunctions.ts");
|
|
49897
|
+
/* harmony import */ var _FilterExpression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FilterExpression */ "./Engine/src/Helpers/FilterExpressions/FilterExpression.ts");
|
|
49898
|
+
|
|
49872
49899
|
|
|
49873
49900
|
|
|
49874
49901
|
|
|
@@ -49879,22 +49906,26 @@ function compileFilterExpression(expression) {
|
|
|
49879
49906
|
class FilterExpressionTransduceVisitor {
|
|
49880
49907
|
transformExpression(expression) {
|
|
49881
49908
|
switch (expression.operator) {
|
|
49882
|
-
case
|
|
49909
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.Or:
|
|
49883
49910
|
return this.transformOrExpression(expression);
|
|
49884
|
-
case
|
|
49911
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.And:
|
|
49885
49912
|
return this.transformAndExpression(expression);
|
|
49886
|
-
case
|
|
49913
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.Equal:
|
|
49887
49914
|
return this.transformEqualExpression(expression);
|
|
49888
|
-
case
|
|
49915
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.StartDate:
|
|
49889
49916
|
return this.transformStartDateExpression(expression);
|
|
49890
|
-
case
|
|
49917
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.EndDate:
|
|
49891
49918
|
return this.transformEndDateExpression(expression);
|
|
49892
|
-
case
|
|
49919
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.Substring:
|
|
49893
49920
|
return this.transformSubstringExpression(expression);
|
|
49894
|
-
case
|
|
49921
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.UnaryNot:
|
|
49895
49922
|
return this.transformUnaryNotExpression(expression);
|
|
49896
|
-
case
|
|
49923
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.ByInstances:
|
|
49897
49924
|
return this.transformByInstancesExpression(expression);
|
|
49925
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.LessOrEqual:
|
|
49926
|
+
return this.transformLessOrEqualExpression(expression);
|
|
49927
|
+
case _FilterExpression__WEBPACK_IMPORTED_MODULE_3__.OperatorType.GreaterOrEqual:
|
|
49928
|
+
return this.transformGreaterOrEqualExpression(expression);
|
|
49898
49929
|
default:
|
|
49899
49930
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
49900
49931
|
return this.createDefaultResult();
|
|
@@ -49942,6 +49973,20 @@ class CompileFilterExpressionTransduceVisitor extends FilterExpressionTransduceV
|
|
|
49942
49973
|
return expression.condition.instances.some(x => x === instance);
|
|
49943
49974
|
};
|
|
49944
49975
|
}
|
|
49976
|
+
transformLessOrEqualExpression(expression) {
|
|
49977
|
+
const conditionValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(this.transformConditionValueExpression(expression.condition));
|
|
49978
|
+
return getModelValuesFn => getModelValuesFn(expression.condition.dataPath).some(x => {
|
|
49979
|
+
const typedDataPathValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(x);
|
|
49980
|
+
return conditionValue != undefined && typedDataPathValue != undefined ? typedDataPathValue.lte(conditionValue) : false;
|
|
49981
|
+
});
|
|
49982
|
+
}
|
|
49983
|
+
transformGreaterOrEqualExpression(expression) {
|
|
49984
|
+
const conditionValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(this.transformConditionValueExpression(expression.condition));
|
|
49985
|
+
return getModelValuesFn => getModelValuesFn(expression.condition.dataPath).some(x => {
|
|
49986
|
+
const typedDataPathValue = (0,_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOrUndefined)(x);
|
|
49987
|
+
return conditionValue != undefined && typedDataPathValue != undefined ? typedDataPathValue.gte(conditionValue) : false;
|
|
49988
|
+
});
|
|
49989
|
+
}
|
|
49945
49990
|
}
|
|
49946
49991
|
function stringNormalize(str) {
|
|
49947
49992
|
return str.trim().toLocaleLowerCase();
|
|
@@ -49998,6 +50043,8 @@ let OperatorType = /*#__PURE__*/function (OperatorType) {
|
|
|
49998
50043
|
OperatorType["EndDate"] = "endDate";
|
|
49999
50044
|
OperatorType["Substring"] = "substring";
|
|
50000
50045
|
OperatorType["ByInstances"] = "byInstances";
|
|
50046
|
+
OperatorType["LessOrEqual"] = "lessOrEqual";
|
|
50047
|
+
OperatorType["GreaterOrEqual"] = "greaterOrEqual";
|
|
50001
50048
|
return OperatorType;
|
|
50002
50049
|
}({});
|
|
50003
50050
|
let FilterType = /*#__PURE__*/function (FilterType) {
|
|
@@ -50096,6 +50143,24 @@ class FilterExpressionResolveBindingPaths extends _CompileFilterExpression__WEBP
|
|
|
50096
50143
|
condition: this.transformExpression(expression.condition)
|
|
50097
50144
|
};
|
|
50098
50145
|
}
|
|
50146
|
+
transformLessOrEqualExpression(expression) {
|
|
50147
|
+
return {
|
|
50148
|
+
...expression,
|
|
50149
|
+
condition: {
|
|
50150
|
+
...expression.condition,
|
|
50151
|
+
dataPath: this.pathResolver(expression.condition.dataPath)
|
|
50152
|
+
}
|
|
50153
|
+
};
|
|
50154
|
+
}
|
|
50155
|
+
transformGreaterOrEqualExpression(expression) {
|
|
50156
|
+
return {
|
|
50157
|
+
...expression,
|
|
50158
|
+
condition: {
|
|
50159
|
+
...expression.condition,
|
|
50160
|
+
dataPath: this.pathResolver(expression.condition.dataPath)
|
|
50161
|
+
}
|
|
50162
|
+
};
|
|
50163
|
+
}
|
|
50099
50164
|
}
|
|
50100
50165
|
|
|
50101
50166
|
/***/ }),
|
|
@@ -50778,6 +50843,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50778
50843
|
/* harmony export */ existsKCLangFunction: () => (/* binding */ existsKCLangFunction),
|
|
50779
50844
|
/* harmony export */ firstOrDefaultKCLangFunction: () => (/* binding */ firstOrDefaultKCLangFunction),
|
|
50780
50845
|
/* harmony export */ floorKCLangFunction: () => (/* binding */ floorKCLangFunction),
|
|
50846
|
+
/* harmony export */ getDateTimeTicksKCLangFunction: () => (/* binding */ getDateTimeTicksKCLangFunction),
|
|
50781
50847
|
/* harmony export */ getDayKCLangFunction: () => (/* binding */ getDayKCLangFunction),
|
|
50782
50848
|
/* harmony export */ getDaysInMonthKCLangFunction: () => (/* binding */ getDaysInMonthKCLangFunction),
|
|
50783
50849
|
/* harmony export */ getMonthKCLangFunction: () => (/* binding */ getMonthKCLangFunction),
|
|
@@ -51597,6 +51663,22 @@ const denominatorKCLangFunction = params => {
|
|
|
51597
51663
|
expression: param
|
|
51598
51664
|
};
|
|
51599
51665
|
};
|
|
51666
|
+
const getDateTimeTicksKCLangFunction = params => {
|
|
51667
|
+
var _params$58;
|
|
51668
|
+
const errors = Array.from(validateParams(params, 1));
|
|
51669
|
+
if (errors.length > 0) {
|
|
51670
|
+
return new FunctionValidationErrorCollection(errors);
|
|
51671
|
+
}
|
|
51672
|
+
const expr = (_params$58 = params[0]) === null || _params$58 === void 0 ? void 0 : _params$58.value;
|
|
51673
|
+
if (expr == undefined) {
|
|
51674
|
+
const argumentsValidationError = new ArgumentValidationError("Invalid arguments expression");
|
|
51675
|
+
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
51676
|
+
}
|
|
51677
|
+
return {
|
|
51678
|
+
type: "getDateTimeTicks",
|
|
51679
|
+
expression: expr
|
|
51680
|
+
};
|
|
51681
|
+
};
|
|
51600
51682
|
|
|
51601
51683
|
/***/ }),
|
|
51602
51684
|
|
|
@@ -51676,7 +51758,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
51676
51758
|
join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction],
|
|
51677
51759
|
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction],
|
|
51678
51760
|
numerator: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.numeratorKCLangFunction],
|
|
51679
|
-
denominator: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.denominatorKCLangFunction]
|
|
51761
|
+
denominator: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.denominatorKCLangFunction],
|
|
51762
|
+
getDateTimeTicks: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getDateTimeTicksKCLangFunction]
|
|
51680
51763
|
});
|
|
51681
51764
|
class KCLangAntlrParser {
|
|
51682
51765
|
static parse(code) {
|
|
@@ -52071,7 +52154,7 @@ class KCLangAntlrVisitor {
|
|
|
52071
52154
|
dataType = "array";
|
|
52072
52155
|
break;
|
|
52073
52156
|
default:
|
|
52074
|
-
throw Error(
|
|
52157
|
+
throw Error(`visitType syntax incorrect: ${contextName} is not supported!`);
|
|
52075
52158
|
}
|
|
52076
52159
|
return {
|
|
52077
52160
|
type: "CastDataTypeNode",
|
|
@@ -60373,6 +60456,32 @@ class FunctionCall extends _KCLangExpression__WEBPACK_IMPORTED_MODULE_0__.KCLang
|
|
|
60373
60456
|
|
|
60374
60457
|
/***/ }),
|
|
60375
60458
|
|
|
60459
|
+
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts":
|
|
60460
|
+
/*!*******************************************************************************!*\
|
|
60461
|
+
!*** ./Generator/src/common/KCLang/CodeDom/Functions/DateTimeFunctionCall.ts ***!
|
|
60462
|
+
\*******************************************************************************/
|
|
60463
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60464
|
+
|
|
60465
|
+
"use strict";
|
|
60466
|
+
__webpack_require__.r(__webpack_exports__);
|
|
60467
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60468
|
+
/* harmony export */ DateTimeFunctionCall: () => (/* binding */ DateTimeFunctionCall)
|
|
60469
|
+
/* harmony export */ });
|
|
60470
|
+
/* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
|
|
60471
|
+
/* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
60472
|
+
|
|
60473
|
+
|
|
60474
|
+
class DateTimeFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
60475
|
+
constructor(expr) {
|
|
60476
|
+
super("dateTime", [expr]);
|
|
60477
|
+
}
|
|
60478
|
+
getType() {
|
|
60479
|
+
return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.DateType.default;
|
|
60480
|
+
}
|
|
60481
|
+
}
|
|
60482
|
+
|
|
60483
|
+
/***/ }),
|
|
60484
|
+
|
|
60376
60485
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts":
|
|
60377
60486
|
/*!*****************************************************************************!*\
|
|
60378
60487
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/ExistsFunctionCall.ts ***!
|
|
@@ -60399,6 +60508,32 @@ class ExistsFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.Func
|
|
|
60399
60508
|
|
|
60400
60509
|
/***/ }),
|
|
60401
60510
|
|
|
60511
|
+
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts":
|
|
60512
|
+
/*!***************************************************************************************!*\
|
|
60513
|
+
!*** ./Generator/src/common/KCLang/CodeDom/Functions/GetDateTimeTicksFunctionCall.ts ***!
|
|
60514
|
+
\***************************************************************************************/
|
|
60515
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60516
|
+
|
|
60517
|
+
"use strict";
|
|
60518
|
+
__webpack_require__.r(__webpack_exports__);
|
|
60519
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60520
|
+
/* harmony export */ GetDateTimeTicksFunctionCall: () => (/* binding */ GetDateTimeTicksFunctionCall)
|
|
60521
|
+
/* harmony export */ });
|
|
60522
|
+
/* harmony import */ var _FunctionCall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../FunctionCall */ "./Generator/src/common/KCLang/CodeDom/FunctionCall.ts");
|
|
60523
|
+
/* harmony import */ var _KCLangType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
60524
|
+
|
|
60525
|
+
|
|
60526
|
+
class GetDateTimeTicksFunctionCall extends _FunctionCall__WEBPACK_IMPORTED_MODULE_0__.FunctionCall {
|
|
60527
|
+
constructor(expr) {
|
|
60528
|
+
super("getDateTimeTicks", [expr]);
|
|
60529
|
+
}
|
|
60530
|
+
getType() {
|
|
60531
|
+
return _KCLangType__WEBPACK_IMPORTED_MODULE_1__.DecimalType.default;
|
|
60532
|
+
}
|
|
60533
|
+
}
|
|
60534
|
+
|
|
60535
|
+
/***/ }),
|
|
60536
|
+
|
|
60402
60537
|
/***/ "./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts":
|
|
60403
60538
|
/*!****************************************************************************************!*\
|
|
60404
60539
|
!*** ./Generator/src/common/KCLang/CodeDom/Functions/GetPicklistValuesFunctionCall.ts ***!
|
|
@@ -61583,6 +61718,9 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
61583
61718
|
case "denominator":
|
|
61584
61719
|
visitor.visitDenominatorKCLangNode(node);
|
|
61585
61720
|
break;
|
|
61721
|
+
case "getDateTimeTicks":
|
|
61722
|
+
visitor.visitGetDateTimeTicksNode(node);
|
|
61723
|
+
break;
|
|
61586
61724
|
default:
|
|
61587
61725
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
61588
61726
|
break;
|
|
@@ -61592,6 +61730,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
61592
61730
|
visitAbsKCLangNode(_node) {
|
|
61593
61731
|
// default empty implementation
|
|
61594
61732
|
}
|
|
61733
|
+
visitGetDateTimeTicksNode(_node) {
|
|
61734
|
+
// default empty implementation
|
|
61735
|
+
}
|
|
61595
61736
|
visitArrayKCLangNode(_node) {
|
|
61596
61737
|
// default empty implementation
|
|
61597
61738
|
}
|
|
@@ -62112,6 +62253,7 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
62112
62253
|
case "makeDict":
|
|
62113
62254
|
case "getSumByKeys":
|
|
62114
62255
|
case "join":
|
|
62256
|
+
case "getDateTimeTicks":
|
|
62115
62257
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
62116
62258
|
default:
|
|
62117
62259
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
@@ -62303,9 +62445,10 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
62303
62445
|
throw new Error(`One of supports only array literal on the right`);
|
|
62304
62446
|
}
|
|
62305
62447
|
}
|
|
62448
|
+
case "getDateTimeTicks":
|
|
62449
|
+
return [`<m:getDateTimeTicks>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:getDateTimeTicks>`].join("\n");
|
|
62306
62450
|
default:
|
|
62307
|
-
|
|
62308
|
-
throw new Error(`Expression of type '${expression.type}' is not supported`);
|
|
62451
|
+
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(`Expression '${expression}' is not supported`);
|
|
62309
62452
|
}
|
|
62310
62453
|
}
|
|
62311
62454
|
function isPathPrefix(contextBlock) {
|
|
@@ -68447,6 +68590,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68447
68590
|
/* harmony export */ FormulaFirstOrDefaultExpression: () => (/* binding */ FormulaFirstOrDefaultExpression),
|
|
68448
68591
|
/* harmony export */ FormulaFloorExpression: () => (/* binding */ FormulaFloorExpression),
|
|
68449
68592
|
/* harmony export */ FormulaGeExpression: () => (/* binding */ FormulaGeExpression),
|
|
68593
|
+
/* harmony export */ FormulaGetDateTimeTicksExpression: () => (/* binding */ FormulaGetDateTimeTicksExpression),
|
|
68450
68594
|
/* harmony export */ FormulaGetDayExpression: () => (/* binding */ FormulaGetDayExpression),
|
|
68451
68595
|
/* harmony export */ FormulaGetDaysInMonthExpression: () => (/* binding */ FormulaGetDaysInMonthExpression),
|
|
68452
68596
|
/* harmony export */ FormulaGetMonthExpression: () => (/* binding */ FormulaGetMonthExpression),
|
|
@@ -68508,7 +68652,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68508
68652
|
|
|
68509
68653
|
|
|
68510
68654
|
|
|
68511
|
-
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, _dec188, _dec189, _class156, _class157, _descriptor109;
|
|
68655
|
+
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, _dec188, _dec189, _class156, _class157, _descriptor109, _dec190, _dec191, _class158, _class159, _descriptor110;
|
|
68512
68656
|
|
|
68513
68657
|
|
|
68514
68658
|
|
|
@@ -69661,7 +69805,21 @@ let FormulaDenominatorExpression = (_dec188 = (0,_markupGenerator_Serializer_Sug
|
|
|
69661
69805
|
writable: true,
|
|
69662
69806
|
initializer: null
|
|
69663
69807
|
}), _class157)) || _class156);
|
|
69664
|
-
|
|
69808
|
+
let FormulaGetDateTimeTicksExpression = (_dec190 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getdatetimeticks", `Получить количество тиков от 01.01.0001`), _dec191 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec190(_class158 = (_class159 = class FormulaGetDateTimeTicksExpression extends FormulaExpression {
|
|
69809
|
+
constructor(...args) {
|
|
69810
|
+
super(...args);
|
|
69811
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor110, this);
|
|
69812
|
+
}
|
|
69813
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
69814
|
+
return "getDateTimeTicks";
|
|
69815
|
+
}
|
|
69816
|
+
}, _descriptor110 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class159.prototype, "expression", [_dec191], {
|
|
69817
|
+
configurable: true,
|
|
69818
|
+
enumerable: true,
|
|
69819
|
+
writable: true,
|
|
69820
|
+
initializer: null
|
|
69821
|
+
}), _class159)) || _class158);
|
|
69822
|
+
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, FormulaNumeratorExpression, FormulaDenominatorExpression, FormulaGetDateTimeTicksExpression];
|
|
69665
69823
|
|
|
69666
69824
|
/***/ }),
|
|
69667
69825
|
|
|
@@ -72369,6 +72527,9 @@ class KCXmlGeneratorBase {
|
|
|
72369
72527
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumOfDayWeightsExpression) {
|
|
72370
72528
|
return "null";
|
|
72371
72529
|
}
|
|
72530
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDateTimeTicksExpression) {
|
|
72531
|
+
return "null";
|
|
72532
|
+
}
|
|
72372
72533
|
// -----
|
|
72373
72534
|
|
|
72374
72535
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
@@ -73604,6 +73765,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73604
73765
|
/* harmony export */ FloorExpression: () => (/* binding */ FloorExpression),
|
|
73605
73766
|
/* harmony export */ FractionalLenExpression: () => (/* binding */ FractionalLenExpression),
|
|
73606
73767
|
/* harmony export */ GeExpression: () => (/* binding */ GeExpression),
|
|
73768
|
+
/* harmony export */ GetDateTimeTicksExpression: () => (/* binding */ GetDateTimeTicksExpression),
|
|
73607
73769
|
/* harmony export */ GetDayExpression: () => (/* binding */ GetDayExpression),
|
|
73608
73770
|
/* harmony export */ GetDaysInMonthExpression: () => (/* binding */ GetDaysInMonthExpression),
|
|
73609
73771
|
/* harmony export */ GetExternalInfoExpression: () => (/* binding */ GetExternalInfoExpression),
|
|
@@ -74329,6 +74491,19 @@ class RoundExpression extends FLangDecimalExpression {
|
|
|
74329
74491
|
return `round(${this.expression.convertToString()}, ${fractionalPart})`;
|
|
74330
74492
|
}
|
|
74331
74493
|
}
|
|
74494
|
+
class GetDateTimeTicksExpression extends FLangDecimalExpression {
|
|
74495
|
+
constructor(expression) {
|
|
74496
|
+
super();
|
|
74497
|
+
this.expression = void 0;
|
|
74498
|
+
this.expression = expression;
|
|
74499
|
+
}
|
|
74500
|
+
*getChildNodes() {
|
|
74501
|
+
yield this.expression;
|
|
74502
|
+
}
|
|
74503
|
+
convertToString() {
|
|
74504
|
+
return `getDateTimeTicks(${this.expression.convertToString()})`;
|
|
74505
|
+
}
|
|
74506
|
+
}
|
|
74332
74507
|
class FloorExpression extends FLangDecimalExpression {
|
|
74333
74508
|
constructor(expression) {
|
|
74334
74509
|
super();
|
|
@@ -75105,6 +75280,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75105
75280
|
/* harmony export */ combineByOrFlangExpr: () => (/* binding */ combineByOrFlangExpr),
|
|
75106
75281
|
/* harmony export */ combineRulesWithOptionalSectionChecking: () => (/* binding */ combineRulesWithOptionalSectionChecking),
|
|
75107
75282
|
/* harmony export */ composeFlangExpressionsByOr: () => (/* binding */ composeFlangExpressionsByOr),
|
|
75283
|
+
/* harmony export */ decimalFieldNameSuffix: () => (/* binding */ decimalFieldNameSuffix),
|
|
75108
75284
|
/* harmony export */ decimalWrapper: () => (/* binding */ decimalWrapper),
|
|
75109
75285
|
/* harmony export */ dictFieldNameSuffix: () => (/* binding */ dictFieldNameSuffix),
|
|
75110
75286
|
/* harmony export */ ensureCorrectFieldNameByExpressionType: () => (/* binding */ ensureCorrectFieldNameByExpressionType),
|
|
@@ -75139,6 +75315,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75139
75315
|
|
|
75140
75316
|
|
|
75141
75317
|
|
|
75318
|
+
const decimalFieldNameSuffix = "_decimal";
|
|
75142
75319
|
const dictFieldNameSuffix = "_dict";
|
|
75143
75320
|
const arrayFieldNameSuffix = "_array";
|
|
75144
75321
|
const hashSetFieldNameSuffix = "_hashSet";
|
|
@@ -75233,8 +75410,8 @@ function tryExtractValueReferenceAsStringFromDecimal(expression) {
|
|
|
75233
75410
|
}
|
|
75234
75411
|
return expression;
|
|
75235
75412
|
}
|
|
75236
|
-
function castFinalExpressionToStringIfNeed(operandExpression, enableTypedExpression, decimalFormat = "G29") {
|
|
75237
|
-
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)) {
|
|
75413
|
+
function castFinalExpressionToStringIfNeed(operandExpression, enableTypedExpression, fullTarget, decimalFormat = "G29") {
|
|
75414
|
+
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))) {
|
|
75238
75415
|
return operandExpression;
|
|
75239
75416
|
}
|
|
75240
75417
|
return castOperandToStringIfNeed(operandExpression, decimalFormat);
|
|
@@ -75355,8 +75532,11 @@ function ensureCorrectFieldNameByExpressionType(statement) {
|
|
|
75355
75532
|
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.array && !lastStringPart.endsWith(arrayFieldNameSuffix)) {
|
|
75356
75533
|
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must be "${arrayFieldNameSuffix}"`);
|
|
75357
75534
|
}
|
|
75358
|
-
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.
|
|
75359
|
-
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must
|
|
75535
|
+
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.decimal && !lastStringPart.endsWith(decimalFieldNameSuffix)) {
|
|
75536
|
+
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must be "${decimalFieldNameSuffix}"`);
|
|
75537
|
+
}
|
|
75538
|
+
if (statement.right.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.string && (lastStringPart.endsWith(arrayFieldNameSuffix) || lastStringPart.endsWith(hashSetFieldNameSuffix) || lastStringPart.endsWith(dictFieldNameSuffix) || lastStringPart.endsWith(decimalFieldNameSuffix))) {
|
|
75539
|
+
throw new Error(`Suffix of path ${statement.left.modePath.toString()} must NOT be "${arrayFieldNameSuffix}", "${hashSetFieldNameSuffix}", "${decimalFieldNameSuffix}" or "${dictFieldNameSuffix}"`);
|
|
75360
75540
|
}
|
|
75361
75541
|
}
|
|
75362
75542
|
}
|
|
@@ -75876,6 +76056,10 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75876
76056
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDenominatorExpression) {
|
|
75877
76057
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.DenominatorExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
75878
76058
|
}
|
|
76059
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaGetDateTimeTicksExpression) {
|
|
76060
|
+
const arg = this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule);
|
|
76061
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.GetDateTimeTicksExpression(arg);
|
|
76062
|
+
}
|
|
75879
76063
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}, ${expression.sourceXmlNode.name}`);
|
|
75880
76064
|
}
|
|
75881
76065
|
castOperandForComparisonExpression(formulaExpression, flangExpression) {
|
|
@@ -76467,7 +76651,7 @@ class FormulaOnlyNormalizationRuleGenerator {
|
|
|
76467
76651
|
const defaultValue = this.dataDeclarationHelper.getDefaultValue(fullTarget.toLegacyPath());
|
|
76468
76652
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
76469
76653
|
const getFormulaExpression = field => {
|
|
76470
|
-
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");
|
|
76654
|
+
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");
|
|
76471
76655
|
const resultType = result.getType();
|
|
76472
76656
|
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;
|
|
76473
76657
|
};
|
|
@@ -76638,7 +76822,7 @@ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.
|
|
|
76638
76822
|
const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
|
|
76639
76823
|
const isDecimal = ((_this$formSchemaRng$g = this.formSchemaRng.getTypeNodeByPath(fullTarget.toAbsolute())) === null || _this$formSchemaRng$g === void 0 ? void 0 : _this$formSchemaRng$g.baseType) === "decimal";
|
|
76640
76824
|
const getFormulaExpression = targetField => {
|
|
76641
|
-
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");
|
|
76825
|
+
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");
|
|
76642
76826
|
const resultType = result.getType();
|
|
76643
76827
|
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;
|
|
76644
76828
|
};
|
|
@@ -92276,7 +92460,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92276
92460
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
92277
92461
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
92278
92462
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
92279
|
-
/* harmony import */ var
|
|
92463
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
92464
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
92465
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
92466
|
+
/* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
|
|
92467
|
+
/* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
|
|
92468
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
92469
|
+
/* harmony import */ var _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/FormulaStatement */ "./Generator/src/common/KCLang/CodeDom/FormulaStatement.ts");
|
|
92470
|
+
/* harmony import */ var _common_KCLang_CodeDom_CastExpression__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CastExpression */ "./Generator/src/common/KCLang/CodeDom/CastExpression.ts");
|
|
92471
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
|
|
92472
|
+
/* 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");
|
|
92473
|
+
/* 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");
|
|
92474
|
+
/* harmony import */ var _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./FilterDateRangeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/FilterDateRange/FilterDateRangeNode.ts");
|
|
92475
|
+
|
|
92476
|
+
|
|
92477
|
+
|
|
92478
|
+
|
|
92479
|
+
|
|
92480
|
+
|
|
92481
|
+
|
|
92482
|
+
|
|
92483
|
+
|
|
92484
|
+
|
|
92485
|
+
|
|
92280
92486
|
|
|
92281
92487
|
|
|
92282
92488
|
|
|
@@ -92284,7 +92490,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92284
92490
|
|
|
92285
92491
|
class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
92286
92492
|
static getAcceptNodeClass() {
|
|
92287
|
-
return
|
|
92493
|
+
return _FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode;
|
|
92288
92494
|
}
|
|
92289
92495
|
doBuildDataDeclaration() {
|
|
92290
92496
|
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
@@ -92295,11 +92501,47 @@ class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
|
|
|
92295
92501
|
*doTraverseChildren() {
|
|
92296
92502
|
// no children
|
|
92297
92503
|
}
|
|
92298
|
-
|
|
92299
|
-
const node = this.getCurrentNodeAs(
|
|
92504
|
+
getServerFiltersIsUsed(formSchemaRng) {
|
|
92505
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92506
|
+
const multilinePath = (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node);
|
|
92507
|
+
const multilineElementSchemaInfo = formSchemaRng.getElementByPath(multilinePath);
|
|
92508
|
+
const useServerFilters = multilineElementSchemaInfo instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_4__.FormSchemaRngElement && multilineElementSchemaInfo.useServerFilters == true;
|
|
92509
|
+
return useServerFilters;
|
|
92510
|
+
}
|
|
92511
|
+
getNameForExtraField(fieldName) {
|
|
92512
|
+
return `cf_${fieldName}_decimal`;
|
|
92513
|
+
}
|
|
92514
|
+
getExtraFieldDataPath(dataPath) {
|
|
92515
|
+
var _tokens;
|
|
92516
|
+
const tokens = dataPath.getPathPartsAsArray();
|
|
92517
|
+
const tokensWithoutLastToken = tokens.slice(0, tokens.length - 1);
|
|
92518
|
+
const lastToken = (_tokens = tokens[tokens.length - 1]) !== null && _tokens !== void 0 ? _tokens : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
92519
|
+
const lastTokenAsDecimal = this.getNameForExtraField(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.isSimpleToken(lastToken) ? lastToken : "this");
|
|
92520
|
+
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]);
|
|
92521
|
+
// @ts-ignore
|
|
92522
|
+
return extraFilteringFieldPath;
|
|
92523
|
+
}
|
|
92524
|
+
doBuildKCLangCalculations(_buildContext, formSchemaRng, _prefixPath) {
|
|
92525
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92526
|
+
const useServerFilters = this.getServerFiltersIsUsed(formSchemaRng);
|
|
92527
|
+
if (useServerFilters) {
|
|
92528
|
+
const dataPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createRelativeFromMask)(node.dataPath, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).getPathWithoutIterations();
|
|
92529
|
+
const extraFilteringFieldPath = this.getExtraFieldDataPath(dataPath).getPathWithoutIterations();
|
|
92530
|
+
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)))));
|
|
92531
|
+
return [extraFieldStatement];
|
|
92532
|
+
}
|
|
92533
|
+
return [];
|
|
92534
|
+
}
|
|
92535
|
+
doConvert(context) {
|
|
92536
|
+
const node = this.getCurrentNodeAs(_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_15__.FilterDateRangeNode);
|
|
92537
|
+
const useServerFilters = this.getServerFiltersIsUsed(context.schemaRng);
|
|
92538
|
+
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);
|
|
92300
92539
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("FilterDateRange");
|
|
92301
|
-
markupBuilder.prop(x => x.dataPath).set(
|
|
92540
|
+
markupBuilder.prop(x => x.dataPath).set(dataPath);
|
|
92302
92541
|
markupBuilder.prop(x => x.filteredUniqKey).set(node.filteredUniqKey);
|
|
92542
|
+
if (useServerFilters) {
|
|
92543
|
+
markupBuilder.prop(x => x.convertDateToTicksInFilterExpression).set(useServerFilters);
|
|
92544
|
+
}
|
|
92303
92545
|
return markupBuilder.buildConverterResult();
|
|
92304
92546
|
}
|
|
92305
92547
|
}
|
|
@@ -97430,7 +97672,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
97430
97672
|
disabled: node.disabled
|
|
97431
97673
|
})];
|
|
97432
97674
|
}
|
|
97433
|
-
*
|
|
97675
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
97434
97676
|
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
|
|
97435
97677
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97436
97678
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
@@ -97976,7 +98218,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
97976
98218
|
static getAcceptNodeClass() {
|
|
97977
98219
|
return _DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode;
|
|
97978
98220
|
}
|
|
97979
|
-
*
|
|
98221
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
97980
98222
|
const node = this.getCurrentNodeAs(_DateNode__WEBPACK_IMPORTED_MODULE_6__.DateNode);
|
|
97981
98223
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97982
98224
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each);
|
|
@@ -98238,7 +98480,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
98238
98480
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
98239
98481
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
98240
98482
|
}
|
|
98241
|
-
*
|
|
98483
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
98242
98484
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_7__.DiadocSuggestComboBoxNode);
|
|
98243
98485
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
98244
98486
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -98668,7 +98910,7 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98668
98910
|
markupBuilder.prop(x => x.extendedFields).set(parsedExtendFields);
|
|
98669
98911
|
return markupBuilder.buildConverterResult();
|
|
98670
98912
|
}
|
|
98671
|
-
*
|
|
98913
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
98672
98914
|
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98673
98915
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
98674
98916
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
@@ -99904,7 +100146,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
99904
100146
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99905
100147
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
|
|
99906
100148
|
}
|
|
99907
|
-
*
|
|
100149
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
99908
100150
|
const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
|
|
99909
100151
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
99910
100152
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -100677,7 +100919,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
|
|
|
100677
100919
|
static getAcceptNodeClass() {
|
|
100678
100920
|
return _KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode;
|
|
100679
100921
|
}
|
|
100680
|
-
*
|
|
100922
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
100681
100923
|
const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_8__.KladrNode);
|
|
100682
100924
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100683
100925
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each);
|
|
@@ -100985,7 +101227,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100985
101227
|
static getAcceptNodeClass() {
|
|
100986
101228
|
return _PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode;
|
|
100987
101229
|
}
|
|
100988
|
-
*
|
|
101230
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
100989
101231
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
|
|
100990
101232
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100991
101233
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -101454,7 +101696,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
101454
101696
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
101455
101697
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
101456
101698
|
}
|
|
101457
|
-
*
|
|
101699
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
101458
101700
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
101459
101701
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101460
101702
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -101973,7 +102215,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
|
|
|
101973
102215
|
disabled: node.disabled
|
|
101974
102216
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
101975
102217
|
}
|
|
101976
|
-
*
|
|
102218
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
101977
102219
|
const node = this.getCurrentNodeAs(_SelectNode__WEBPACK_IMPORTED_MODULE_6__.SelectNode);
|
|
101978
102220
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
101979
102221
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -102722,7 +102964,7 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
102722
102964
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
102723
102965
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
|
|
102724
102966
|
}
|
|
102725
|
-
*
|
|
102967
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
102726
102968
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
102727
102969
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102728
102970
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
@@ -102979,7 +103221,7 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
102979
103221
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102980
103222
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
102981
103223
|
}
|
|
102982
|
-
*
|
|
103224
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
102983
103225
|
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_8__.TextAreaNode);
|
|
102984
103226
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102985
103227
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -103702,7 +103944,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
103702
103944
|
disabled: node.disabled
|
|
103703
103945
|
})];
|
|
103704
103946
|
}
|
|
103705
|
-
*
|
|
103947
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
103706
103948
|
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
|
|
103707
103949
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103708
103950
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
@@ -104288,7 +104530,7 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
|
|
|
104288
104530
|
pathSuffix: "Отчество"
|
|
104289
104531
|
})];
|
|
104290
104532
|
}
|
|
104291
|
-
|
|
104533
|
+
doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
104292
104534
|
var _node$getOwnPathForKC;
|
|
104293
104535
|
const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_7__.FIONode);
|
|
104294
104536
|
const minlengthTypeCheckNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode();
|
|
@@ -104627,7 +104869,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
104627
104869
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
104628
104870
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
104629
104871
|
}
|
|
104630
|
-
*
|
|
104872
|
+
*doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
104631
104873
|
const node = this.getCurrentNodeAs(_TextNode__WEBPACK_IMPORTED_MODULE_7__.TextNode);
|
|
104632
104874
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
104633
104875
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
@@ -105359,11 +105601,11 @@ class MarkupBuildingContext {
|
|
|
105359
105601
|
this.formSourcesPath = void 0;
|
|
105360
105602
|
this.helpers = void 0;
|
|
105361
105603
|
this.pathsContext = void 0;
|
|
105362
|
-
this.schemaRng = void 0;
|
|
105363
105604
|
this.useSchemaValidations = void 0;
|
|
105364
105605
|
this.dataDeclarationHelper = void 0;
|
|
105365
105606
|
this.typesRegistry = void 0;
|
|
105366
105607
|
this.uniqueControlIdIncrement = new Map();
|
|
105608
|
+
this.schemaRng = void 0;
|
|
105367
105609
|
this.controlCustomizationContext = void 0;
|
|
105368
105610
|
this.tourSteps = void 0;
|
|
105369
105611
|
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
@@ -107469,7 +107711,7 @@ class SugarNodeConverterBase {
|
|
|
107469
107711
|
}
|
|
107470
107712
|
buildSugarKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
|
|
107471
107713
|
const result = [];
|
|
107472
|
-
result.push(...this.
|
|
107714
|
+
result.push(...this.doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath));
|
|
107473
107715
|
const children = this.buildChildrenKCLangValidations(buildContext, formSchemaRng);
|
|
107474
107716
|
const childrenArray = Iterator.from(children).toArray();
|
|
107475
107717
|
const ownPath = this.node.getOwnPathForKCLang();
|
|
@@ -107605,7 +107847,7 @@ class SugarNodeConverterBase {
|
|
|
107605
107847
|
processFocusManagementAttributes(converterResult) {
|
|
107606
107848
|
return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_11__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
|
|
107607
107849
|
}
|
|
107608
|
-
|
|
107850
|
+
doBuildKCLangCalculations(_buildContext, _formSchemaRng, _prefixPath) {
|
|
107609
107851
|
return [];
|
|
107610
107852
|
}
|
|
107611
107853
|
}
|