@kontur.candy/generator 5.7.0-fix-lazy-loading.4 → 5.7.0-fs-7964-multiple-keys-groupsum.9
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 +302 -259
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61728,7 +61728,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61728
61728
|
/* harmony export */ "groupCountKCLangFunction": () => (/* binding */ groupCountKCLangFunction),
|
|
61729
61729
|
/* harmony export */ "concatKCLangFunction": () => (/* binding */ concatKCLangFunction),
|
|
61730
61730
|
/* harmony export */ "newlineKCLangFunction": () => (/* binding */ newlineKCLangFunction),
|
|
61731
|
-
/* harmony export */ "dateNowKCLangFunction": () => (/* binding */ dateNowKCLangFunction)
|
|
61731
|
+
/* harmony export */ "dateNowKCLangFunction": () => (/* binding */ dateNowKCLangFunction),
|
|
61732
|
+
/* harmony export */ "listOfKCLangFunction": () => (/* binding */ listOfKCLangFunction)
|
|
61732
61733
|
/* harmony export */ });
|
|
61733
61734
|
class ArgumentValidationError {
|
|
61734
61735
|
constructor(validationMessage) {
|
|
@@ -62025,16 +62026,20 @@ const groupSumKCLangFunction = params => {
|
|
|
62025
62026
|
if (errors.length > 0) {
|
|
62026
62027
|
return new FunctionValidationErrorCollection(errors);
|
|
62027
62028
|
}
|
|
62028
|
-
const
|
|
62029
|
+
const targetKeysParam = (_params$20 = params[0]) === null || _params$20 === void 0 ? void 0 : _params$20.value;
|
|
62029
62030
|
const sourceKeyPathParam = (_params$21 = params[1]) === null || _params$21 === void 0 ? void 0 : _params$21.value;
|
|
62030
62031
|
const sourceValuePathParam = (_params$22 = params[2]) === null || _params$22 === void 0 ? void 0 : _params$22.value;
|
|
62031
|
-
if (
|
|
62032
|
-
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments:
|
|
62032
|
+
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || (sourceValuePathParam === null || sourceValuePathParam === void 0 ? void 0 : sourceValuePathParam.type) !== "argument") {
|
|
62033
|
+
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeys, sourceKeyPath, sourceValuePath");
|
|
62033
62034
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
62034
62035
|
}
|
|
62036
|
+
const targetKeys = targetKeysParam.type === "array" ? targetKeysParam : {
|
|
62037
|
+
type: "array",
|
|
62038
|
+
items: [targetKeysParam]
|
|
62039
|
+
};
|
|
62035
62040
|
return {
|
|
62036
62041
|
type: "groupSum",
|
|
62037
|
-
|
|
62042
|
+
targetKeys: targetKeys,
|
|
62038
62043
|
sourceKeyPath: sourceKeyPathParam.select,
|
|
62039
62044
|
sourceValuePath: sourceValuePathParam.select
|
|
62040
62045
|
};
|
|
@@ -62045,15 +62050,19 @@ const groupCountKCLangFunction = params => {
|
|
|
62045
62050
|
if (errors.length > 0) {
|
|
62046
62051
|
return new FunctionValidationErrorCollection(errors);
|
|
62047
62052
|
}
|
|
62048
|
-
const
|
|
62053
|
+
const targetKeysParam = (_params$23 = params[0]) === null || _params$23 === void 0 ? void 0 : _params$23.value;
|
|
62049
62054
|
const sourceKeyPathParam = (_params$24 = params[1]) === null || _params$24 === void 0 ? void 0 : _params$24.value;
|
|
62050
|
-
if (
|
|
62055
|
+
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
|
|
62051
62056
|
const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
|
|
62052
62057
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
62053
62058
|
}
|
|
62059
|
+
const targetKeys = targetKeysParam.type === "array" ? targetKeysParam : {
|
|
62060
|
+
type: "array",
|
|
62061
|
+
items: [targetKeysParam]
|
|
62062
|
+
};
|
|
62054
62063
|
return {
|
|
62055
62064
|
type: "groupCount",
|
|
62056
|
-
|
|
62065
|
+
targetKeys: targetKeys,
|
|
62057
62066
|
sourceKeyPath: sourceKeyPathParam.select
|
|
62058
62067
|
};
|
|
62059
62068
|
};
|
|
@@ -62085,6 +62094,16 @@ const dateNowKCLangFunction = params => {
|
|
|
62085
62094
|
type: "dateNow"
|
|
62086
62095
|
};
|
|
62087
62096
|
};
|
|
62097
|
+
const listOfKCLangFunction = params => {
|
|
62098
|
+
const errors = Array.from(validateParams(params, 0, 1000));
|
|
62099
|
+
if (errors.length > 0) {
|
|
62100
|
+
return new FunctionValidationErrorCollection(errors);
|
|
62101
|
+
}
|
|
62102
|
+
return {
|
|
62103
|
+
type: "array",
|
|
62104
|
+
items: params.map(x => x.value)
|
|
62105
|
+
};
|
|
62106
|
+
};
|
|
62088
62107
|
|
|
62089
62108
|
/***/ }),
|
|
62090
62109
|
|
|
@@ -62130,7 +62149,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
62130
62149
|
groupCount: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.groupCountKCLangFunction],
|
|
62131
62150
|
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.concatKCLangFunction],
|
|
62132
62151
|
newline: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.newlineKCLangFunction],
|
|
62133
|
-
dateNow: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateNowKCLangFunction]
|
|
62152
|
+
dateNow: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateNowKCLangFunction],
|
|
62153
|
+
listOf: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.listOfKCLangFunction]
|
|
62134
62154
|
});
|
|
62135
62155
|
class ErrorListener {
|
|
62136
62156
|
constructor() {
|
|
@@ -69591,6 +69611,8 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
69591
69611
|
case "dateNow":
|
|
69592
69612
|
visitor.visitDateNowKCLangNode(node);
|
|
69593
69613
|
break;
|
|
69614
|
+
case "array":
|
|
69615
|
+
break;
|
|
69594
69616
|
default:
|
|
69595
69617
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
69596
69618
|
break;
|
|
@@ -69690,6 +69712,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
69690
69712
|
visitDateNowKCLangNode(node) {
|
|
69691
69713
|
// default empty implementation
|
|
69692
69714
|
}
|
|
69715
|
+
visitArrayKCLangNode(node) {
|
|
69716
|
+
// default empty implementation
|
|
69717
|
+
}
|
|
69693
69718
|
}
|
|
69694
69719
|
|
|
69695
69720
|
/***/ }),
|
|
@@ -70031,6 +70056,8 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
70031
70056
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
70032
70057
|
case "dateNow":
|
|
70033
70058
|
return `${utilsName}.dateNow()`;
|
|
70059
|
+
case "array":
|
|
70060
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
70034
70061
|
default:
|
|
70035
70062
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
70036
70063
|
}
|
|
@@ -70105,9 +70132,9 @@ function generateKCXmlExpression(expression) {
|
|
|
70105
70132
|
case "isValidAccountNumber":
|
|
70106
70133
|
return `<m:${expression.type} bik="${expression.bik}" account="${expression.account}" />`;
|
|
70107
70134
|
case "groupSum":
|
|
70108
|
-
return `<m:${expression.type}
|
|
70135
|
+
return [`<m:${expression.type} sourceKeyPath="${expression.sourceKeyPath}" sourceValuePath="${expression.sourceValuePath}" >`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.targetKeys), 1), `</m:${expression.type}>`].join("\n");
|
|
70109
70136
|
case "groupCount":
|
|
70110
|
-
return `<m:${expression.type}
|
|
70137
|
+
return [`<m:${expression.type} sourceKeyPath="${expression.sourceKeyPath}" >`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.targetKeys), 1), `</m:${expression.type}>`].join("\n");
|
|
70111
70138
|
case "cast":
|
|
70112
70139
|
if (expression.expression.type === "argument") {
|
|
70113
70140
|
return `<m:argument select="${expression.expression.select}" type="${expression.targetType}" />`;
|
|
@@ -70172,6 +70199,11 @@ function generateKCXmlExpression(expression) {
|
|
|
70172
70199
|
const enumerationItems = expression.expressions.items.map(generateKCXmlExpression);
|
|
70173
70200
|
return [`<m:oneof>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(testExpr, 1), [`<m:oneofitems>`, enumerationItems.map(x => (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(x, 1)), `</m:oneofitems>`].flat().map(x => (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(x, 1)).join("\n"), `</m:oneof>`].join("\n");
|
|
70174
70201
|
}
|
|
70202
|
+
case "array":
|
|
70203
|
+
{
|
|
70204
|
+
const enumerationItems = expression.items.map(generateKCXmlExpression);
|
|
70205
|
+
return [`<m:oneofitems>`, enumerationItems.map(x => (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(x, 1)), `</m:oneofitems>`].flat().map(x => (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(x, 1)).join("\n");
|
|
70206
|
+
}
|
|
70175
70207
|
default:
|
|
70176
70208
|
// @ts-ignore
|
|
70177
70209
|
throw new Error(`Expression of type '${expression.type}' is not supported`);
|
|
@@ -75467,12 +75499,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75467
75499
|
/* harmony export */ "FormulaWhenExpression": () => (/* binding */ FormulaWhenExpression),
|
|
75468
75500
|
/* harmony export */ "DummyContent": () => (/* binding */ DummyContent),
|
|
75469
75501
|
/* harmony export */ "FormulaSumExpression": () => (/* binding */ FormulaSumExpression),
|
|
75502
|
+
/* harmony export */ "FormulaOneOfItemsExpression": () => (/* binding */ FormulaOneOfItemsExpression),
|
|
75470
75503
|
/* harmony export */ "FormulaGroupSumExpression": () => (/* binding */ FormulaGroupSumExpression),
|
|
75471
75504
|
/* harmony export */ "FormulaGroupCountExpression": () => (/* binding */ FormulaGroupCountExpression),
|
|
75472
75505
|
/* harmony export */ "FormulaAndExpression": () => (/* binding */ FormulaAndExpression),
|
|
75473
75506
|
/* harmony export */ "FormulaOrExpression": () => (/* binding */ FormulaOrExpression),
|
|
75474
75507
|
/* harmony export */ "FormulaGtExpression": () => (/* binding */ FormulaGtExpression),
|
|
75475
|
-
/* harmony export */ "FormulaOneOfItemsExpression": () => (/* binding */ FormulaOneOfItemsExpression),
|
|
75476
75508
|
/* harmony export */ "FormulaOneOfExpression": () => (/* binding */ FormulaOneOfExpression),
|
|
75477
75509
|
/* harmony export */ "FormulaRegexMatchExpression": () => (/* binding */ FormulaRegexMatchExpression),
|
|
75478
75510
|
/* harmony export */ "FormulaLengthExpression": () => (/* binding */ FormulaLengthExpression),
|
|
@@ -75525,7 +75557,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75525
75557
|
|
|
75526
75558
|
|
|
75527
75559
|
|
|
75528
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class4, _dec4, _dec5, _class5, _class6, _descriptor2, _dec6, _dec7,
|
|
75560
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class4, _dec4, _dec5, _class5, _class6, _descriptor2, _dec6, _dec7, _class8, _class9, _descriptor3, _dec8, _dec9, _dec10, _dec11, _class11, _class12, _descriptor4, _descriptor5, _descriptor6, _dec12, _dec13, _dec14, _class14, _class15, _descriptor7, _descriptor8, _dec15, _dec16, _class17, _class18, _descriptor9, _dec17, _dec18, _class20, _class21, _descriptor10, _dec19, _dec20, _class23, _class24, _descriptor11, _dec21, _dec22, _dec23, _class26, _class27, _descriptor12, _descriptor13, _dec24, _dec25, _dec26, _class29, _class30, _descriptor14, _descriptor15, _dec27, _dec28, _class32, _class33, _descriptor16, _dec29, _dec30, _class35, _class36, _descriptor17, _dec31, _dec32, _class38, _class39, _descriptor18, _dec33, _dec34, _class41, _class42, _descriptor19, _dec35, _dec36, _class44, _class45, _descriptor20, _dec37, _dec38, _class47, _class48, _descriptor21, _dec39, _dec40, _class50, _class51, _descriptor22, _dec41, _dec42, _class53, _class54, _descriptor23, _dec43, _dec44, _class56, _class57, _descriptor24, _dec45, _dec46, _dec47, _dec48, _class59, _class60, _descriptor25, _descriptor26, _descriptor27, _dec49, _dec50, _class62, _class63, _descriptor28, _dec51, _dec52, _class65, _class66, _descriptor29, _dec53, _dec54, _dec55, _class68, _class69, _descriptor30, _descriptor31, _dec56, _dec57, _class71, _class72, _descriptor32, _dec58, _dec59, _class74, _class75, _descriptor33, _dec60, _dec61, _class77, _class78, _descriptor34, _dec62, _dec63, _class80, _class81, _descriptor35, _dec64, _dec65, _dec66, _class83, _class84, _descriptor36, _descriptor37, _dec67, _dec68, _dec69, _dec70, _class86, _class87, _descriptor38, _descriptor39, _descriptor40, _dec71, _dec72, _dec73, _class89, _class90, _descriptor41, _descriptor42, _dec74, _class92, _dec75, _dec76, _class93, _class94, _descriptor43, _dec77, _dec78, _class96, _class97, _descriptor44, _dec79, _dec80, _class99, _class100, _descriptor45, _dec81, _dec82, _dec83, _class102, _class103, _descriptor46, _descriptor47, _dec84, _dec85, _dec86, _class105, _class106, _descriptor48, _descriptor49, _dec87, _dec88, _class108, _class109, _descriptor50, _dec89, _dec90, _class111, _class112, _descriptor51, _dec91, _dec92, _dec93, _class114, _class115, _descriptor52, _descriptor53, _dec94, _dec95, _class117, _class118, _descriptor54, _dec96, _class120, _dec97, _dec98, _dec99, _dec100, _class121, _class122, _descriptor55, _descriptor56, _descriptor57, _dec101, _dec102, _class124, _class125, _descriptor58, _dec103, _dec104, _dec105, _dec106, _dec107, _dec108, _class127, _class128, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _dec109, _dec110, _class130, _class131, _descriptor64, _dec111, _dec112, _dec113, _class133, _class134, _descriptor65, _descriptor66;
|
|
75529
75561
|
|
|
75530
75562
|
|
|
75531
75563
|
|
|
@@ -75568,67 +75600,64 @@ let FormulaSumExpression = (_dec4 = (0,_markupGenerator_Serializer_SugarSerializ
|
|
|
75568
75600
|
writable: true,
|
|
75569
75601
|
initializer: null
|
|
75570
75602
|
})), _class6)) || _class5);
|
|
75571
|
-
let
|
|
75603
|
+
let FormulaOneOfItemsExpression = (_dec6 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("oneofitems", `TODO`), _dec7 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec6(_class8 = (_class9 = class FormulaOneOfItemsExpression extends FormulaExpression {
|
|
75572
75604
|
constructor(...args) {
|
|
75573
75605
|
super(...args);
|
|
75574
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
75575
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor4, this);
|
|
75576
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor5, this);
|
|
75606
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expressions", _descriptor3, this);
|
|
75577
75607
|
}
|
|
75578
|
-
}, (_descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class9.prototype, "
|
|
75579
|
-
configurable: true,
|
|
75580
|
-
enumerable: true,
|
|
75581
|
-
writable: true,
|
|
75582
|
-
initializer: null
|
|
75583
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class9.prototype, "sourceKeyPath", [_dec8], {
|
|
75584
|
-
configurable: true,
|
|
75585
|
-
enumerable: true,
|
|
75586
|
-
writable: true,
|
|
75587
|
-
initializer: null
|
|
75588
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class9.prototype, "sourceValuePath", [_dec9], {
|
|
75608
|
+
}, (_descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class9.prototype, "expressions", [_dec7], {
|
|
75589
75609
|
configurable: true,
|
|
75590
75610
|
enumerable: true,
|
|
75591
75611
|
writable: true,
|
|
75592
75612
|
initializer: null
|
|
75593
75613
|
})), _class9)) || _class8);
|
|
75594
|
-
let
|
|
75614
|
+
let FormulaGroupSumExpression = (_dec8 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _dec9 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("oneofitems", [FormulaOneOfItemsExpression]), _dec10 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec11 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec8(_class11 = (_class12 = class FormulaGroupSumExpression extends FormulaExpression {
|
|
75595
75615
|
constructor(...args) {
|
|
75596
75616
|
super(...args);
|
|
75597
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
75598
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
75617
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor4, this);
|
|
75618
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor5, this);
|
|
75619
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor6, this);
|
|
75599
75620
|
}
|
|
75600
|
-
}, (
|
|
75621
|
+
}, (_descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class12.prototype, "targetKeys", [_dec9], {
|
|
75601
75622
|
configurable: true,
|
|
75602
75623
|
enumerable: true,
|
|
75603
75624
|
writable: true,
|
|
75604
75625
|
initializer: null
|
|
75605
|
-
}),
|
|
75626
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class12.prototype, "sourceKeyPath", [_dec10], {
|
|
75627
|
+
configurable: true,
|
|
75628
|
+
enumerable: true,
|
|
75629
|
+
writable: true,
|
|
75630
|
+
initializer: null
|
|
75631
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class12.prototype, "sourceValuePath", [_dec11], {
|
|
75606
75632
|
configurable: true,
|
|
75607
75633
|
enumerable: true,
|
|
75608
75634
|
writable: true,
|
|
75609
75635
|
initializer: null
|
|
75610
75636
|
})), _class12)) || _class11);
|
|
75611
|
-
let
|
|
75637
|
+
let FormulaGroupCountExpression = (_dec12 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec13 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("oneofitems", [FormulaOneOfItemsExpression]), _dec14 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec12(_class14 = (_class15 = class FormulaGroupCountExpression extends FormulaExpression {
|
|
75612
75638
|
constructor(...args) {
|
|
75613
75639
|
super(...args);
|
|
75614
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
75615
|
-
|
|
75616
|
-
getLegacyExpressionTypeForFunctionName() {
|
|
75617
|
-
return "and";
|
|
75640
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor7, this);
|
|
75641
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor8, this);
|
|
75618
75642
|
}
|
|
75619
|
-
}, (
|
|
75643
|
+
}, (_descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class15.prototype, "targetKeys", [_dec13], {
|
|
75644
|
+
configurable: true,
|
|
75645
|
+
enumerable: true,
|
|
75646
|
+
writable: true,
|
|
75647
|
+
initializer: null
|
|
75648
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class15.prototype, "sourceKeyPath", [_dec14], {
|
|
75620
75649
|
configurable: true,
|
|
75621
75650
|
enumerable: true,
|
|
75622
75651
|
writable: true,
|
|
75623
75652
|
initializer: null
|
|
75624
75653
|
})), _class15)) || _class14);
|
|
75625
|
-
let
|
|
75654
|
+
let FormulaAndExpression = (_dec15 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("and", `TODO`), _dec16 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec15(_class17 = (_class18 = class FormulaAndExpression extends FormulaExpression {
|
|
75626
75655
|
constructor(...args) {
|
|
75627
75656
|
super(...args);
|
|
75628
75657
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor9, this);
|
|
75629
75658
|
}
|
|
75630
75659
|
getLegacyExpressionTypeForFunctionName() {
|
|
75631
|
-
return "
|
|
75660
|
+
return "and";
|
|
75632
75661
|
}
|
|
75633
75662
|
}, (_descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class18.prototype, "arguments", [_dec16], {
|
|
75634
75663
|
configurable: true,
|
|
@@ -75636,13 +75665,13 @@ let FormulaOrExpression = (_dec15 = (0,_markupGenerator_Serializer_SugarSerializ
|
|
|
75636
75665
|
writable: true,
|
|
75637
75666
|
initializer: null
|
|
75638
75667
|
})), _class18)) || _class17);
|
|
75639
|
-
let
|
|
75668
|
+
let FormulaOrExpression = (_dec17 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("or", `TODO`), _dec18 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec17(_class20 = (_class21 = class FormulaOrExpression extends FormulaExpression {
|
|
75640
75669
|
constructor(...args) {
|
|
75641
75670
|
super(...args);
|
|
75642
75671
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor10, this);
|
|
75643
75672
|
}
|
|
75644
75673
|
getLegacyExpressionTypeForFunctionName() {
|
|
75645
|
-
return "
|
|
75674
|
+
return "or";
|
|
75646
75675
|
}
|
|
75647
75676
|
}, (_descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class21.prototype, "arguments", [_dec18], {
|
|
75648
75677
|
configurable: true,
|
|
@@ -75650,12 +75679,15 @@ let FormulaGtExpression = (_dec17 = (0,_markupGenerator_Serializer_SugarSerializ
|
|
|
75650
75679
|
writable: true,
|
|
75651
75680
|
initializer: null
|
|
75652
75681
|
})), _class21)) || _class20);
|
|
75653
|
-
let
|
|
75682
|
+
let FormulaGtExpression = (_dec19 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("gt", `TODO`), _dec20 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec19(_class23 = (_class24 = class FormulaGtExpression extends FormulaExpression {
|
|
75654
75683
|
constructor(...args) {
|
|
75655
75684
|
super(...args);
|
|
75656
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
75685
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor11, this);
|
|
75686
|
+
}
|
|
75687
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
75688
|
+
return "gt";
|
|
75657
75689
|
}
|
|
75658
|
-
}, (_descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class24.prototype, "
|
|
75690
|
+
}, (_descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class24.prototype, "arguments", [_dec20], {
|
|
75659
75691
|
configurable: true,
|
|
75660
75692
|
enumerable: true,
|
|
75661
75693
|
writable: true,
|
|
@@ -76234,7 +76266,52 @@ let MathContainer = (_dec111 = (0,_markupGenerator_Serializer_SugarSerializer__W
|
|
|
76234
76266
|
writable: true,
|
|
76235
76267
|
initializer: null
|
|
76236
76268
|
})), _class134)) || _class133);
|
|
76237
|
-
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, FormulaDateNowExpression, FormulaIsSnilsExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression];
|
|
76269
|
+
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, FormulaDateNowExpression, FormulaIsSnilsExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaOneOfItemsExpression];
|
|
76270
|
+
|
|
76271
|
+
/***/ }),
|
|
76272
|
+
|
|
76273
|
+
/***/ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts":
|
|
76274
|
+
/*!************************************************************************************************************************************!*\
|
|
76275
|
+
!*** ./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts ***!
|
|
76276
|
+
\************************************************************************************************************************************/
|
|
76277
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
76278
|
+
|
|
76279
|
+
"use strict";
|
|
76280
|
+
__webpack_require__.r(__webpack_exports__);
|
|
76281
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
76282
|
+
/* harmony export */ "splitConditionDescriptionToParts": () => (/* binding */ splitConditionDescriptionToParts)
|
|
76283
|
+
/* harmony export */ });
|
|
76284
|
+
/* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
76285
|
+
|
|
76286
|
+
function splitConditionDescriptionToParts(description) {
|
|
76287
|
+
const reg = new RegExp(/\('|'\)/g);
|
|
76288
|
+
const words = description.split(reg);
|
|
76289
|
+
const splitWords = words.map(item => {
|
|
76290
|
+
if (item.includes("{")) {
|
|
76291
|
+
const word = item.substring(1, item.length - 1);
|
|
76292
|
+
const argument = new _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression();
|
|
76293
|
+
argument.select = word;
|
|
76294
|
+
argument.type = "string";
|
|
76295
|
+
return argument;
|
|
76296
|
+
} else {
|
|
76297
|
+
return item;
|
|
76298
|
+
}
|
|
76299
|
+
});
|
|
76300
|
+
const wordsInFormulas = splitWords.map(part => {
|
|
76301
|
+
if (part instanceof _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression) {
|
|
76302
|
+
const formulaPart = new _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression();
|
|
76303
|
+
formulaPart.select = part.select;
|
|
76304
|
+
formulaPart.type = "string";
|
|
76305
|
+
return formulaPart;
|
|
76306
|
+
} else {
|
|
76307
|
+
const stringPart = new _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaConstExpression();
|
|
76308
|
+
stringPart.type = "string";
|
|
76309
|
+
stringPart.value = part;
|
|
76310
|
+
return stringPart;
|
|
76311
|
+
}
|
|
76312
|
+
});
|
|
76313
|
+
return wordsInFormulas;
|
|
76314
|
+
}
|
|
76238
76315
|
|
|
76239
76316
|
/***/ }),
|
|
76240
76317
|
|
|
@@ -78319,24 +78396,27 @@ class KCXmlGeneratorBase {
|
|
|
78319
78396
|
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
78320
78397
|
return `expression.sum([${compiledExpressions}])`;
|
|
78321
78398
|
}
|
|
78399
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaOneOfItemsExpression) {
|
|
78400
|
+
const itemsText = expression.expressions.map(x => this.compileExpression(prefix, targetFullPath, x, deps)).join(", ");
|
|
78401
|
+
return `JSON.stringify([${itemsText}])`;
|
|
78402
|
+
}
|
|
78322
78403
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupSumExpression) {
|
|
78323
|
-
const
|
|
78324
|
-
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
78404
|
+
const targetKeys = this.compileExpression(prefix, targetFullPath, expression.targetKeys, deps);
|
|
78325
78405
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
78326
|
-
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(
|
|
78406
|
+
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceKeyPath);
|
|
78327
78407
|
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
78328
78408
|
const sourceValuePath = this.getModelPath(prefix, expression.sourceValuePath);
|
|
78329
|
-
const sourceValueDeps = this.calculatedGroupSumDependencyForSourcePath(
|
|
78409
|
+
const sourceValueDeps = this.calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceValuePath);
|
|
78330
78410
|
deps.push(new DependencyWithoutChecks(sourceValueDeps.currentDepsPath, sourceValueDeps.eachDepsPath));
|
|
78331
|
-
return gcf(x => x.groupSum,
|
|
78411
|
+
return gcf(x => x.groupSum, `${targetKeys}, "${sourceKeyPath}", "${sourceValuePath}"`);
|
|
78332
78412
|
}
|
|
78333
78413
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupCountExpression) {
|
|
78334
|
-
const
|
|
78335
|
-
deps.push(new DependencyWithoutChecks(
|
|
78414
|
+
const targetKeys = this.compileExpression(prefix, targetFullPath, expression.targetKeys, deps);
|
|
78415
|
+
deps.push(new DependencyWithoutChecks(targetFullPath));
|
|
78336
78416
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
78337
|
-
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(
|
|
78417
|
+
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceKeyPath);
|
|
78338
78418
|
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
78339
|
-
return gcf(x => x.groupCount,
|
|
78419
|
+
return gcf(x => x.groupCount, `${targetKeys}, "${sourceKeyPath}"`);
|
|
78340
78420
|
}
|
|
78341
78421
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression) {
|
|
78342
78422
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
@@ -78418,15 +78498,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
78418
78498
|
/* harmony export */ "KCXmlValidationGenerator": () => (/* binding */ KCXmlValidationGenerator)
|
|
78419
78499
|
/* harmony export */ });
|
|
78420
78500
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
78421
|
-
/* harmony import */ var
|
|
78422
|
-
/* harmony import */ var
|
|
78501
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
78502
|
+
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
78503
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
78504
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
|
|
78505
|
+
|
|
78506
|
+
|
|
78423
78507
|
|
|
78424
78508
|
|
|
78425
78509
|
|
|
78426
78510
|
const emptyResult = `
|
|
78427
78511
|
export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
|
|
78428
78512
|
`;
|
|
78429
|
-
class KCXmlValidationGenerator extends
|
|
78513
|
+
class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.KCXmlGeneratorBase {
|
|
78430
78514
|
generate(kcXmlConditions) {
|
|
78431
78515
|
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition)).toArray();
|
|
78432
78516
|
if (compiledConditions.length === 0) {
|
|
@@ -78445,15 +78529,23 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
78445
78529
|
const target = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
78446
78530
|
const deps = [];
|
|
78447
78531
|
const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
|
|
78532
|
+
const compiledDescriptionParts = (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_4__.splitConditionDescriptionToParts)((_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : ["Error Message"]);
|
|
78533
|
+
let concatDescription;
|
|
78534
|
+
if (compiledDescriptionParts.length > 1) {
|
|
78535
|
+
concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression();
|
|
78536
|
+
concatDescription.arguments = compiledDescriptionParts;
|
|
78537
|
+
} else {
|
|
78538
|
+
concatDescription = compiledDescriptionParts[0];
|
|
78539
|
+
}
|
|
78540
|
+
const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
|
|
78448
78541
|
const compiledTarget = this.modelPathInstance(target);
|
|
78449
|
-
const dependencyModelPaths = Array.from(
|
|
78542
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(deps.map(x => ({
|
|
78450
78543
|
path: x.asDependencyModelPath(),
|
|
78451
|
-
isIgnoreForChecks: (0,
|
|
78544
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.isDependencyWithoutChecks)(x),
|
|
78452
78545
|
pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
|
|
78453
78546
|
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
78454
78547
|
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
78455
|
-
const
|
|
78456
|
-
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `() => "${compiledDescription}", "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
78548
|
+
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `(expression) => ${compiledDescription}, "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
78457
78549
|
return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
|
|
78458
78550
|
}
|
|
78459
78551
|
}
|
|
@@ -78478,8 +78570,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
78478
78570
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
78479
78571
|
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
78480
78572
|
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
78481
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
78482
|
-
|
|
78483
78573
|
|
|
78484
78574
|
|
|
78485
78575
|
|
|
@@ -78527,19 +78617,15 @@ class LazyLoadDeclarationGenerator {
|
|
|
78527
78617
|
}
|
|
78528
78618
|
*processElement(path, element) {
|
|
78529
78619
|
if (element.lazyLoadMode != undefined) {
|
|
78530
|
-
const
|
|
78531
|
-
const
|
|
78532
|
-
|
|
78533
|
-
|
|
78534
|
-
|
|
78535
|
-
|
|
78536
|
-
lazyLoadMode: (_element$lazyLoadMode = element.lazyLoadMode) !== null && _element$lazyLoadMode !== void 0 ? _element$lazyLoadMode : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)()
|
|
78537
|
-
};
|
|
78538
|
-
}).map(item => element.lazyLoadingThreshold != undefined ? {
|
|
78620
|
+
const currentPath = element.multiple ? path.joinWith(element.name) : path.joinWith(element.name + ".value");
|
|
78621
|
+
const item = {
|
|
78622
|
+
path: this.formSchemaRng.adjustPathMultiplicity(currentPath),
|
|
78623
|
+
lazyLoadMode: element.lazyLoadMode
|
|
78624
|
+
};
|
|
78625
|
+
yield element.lazyLoadingThreshold != undefined ? {
|
|
78539
78626
|
...item,
|
|
78540
78627
|
thresholdValue: element.lazyLoadingThreshold
|
|
78541
|
-
} : item
|
|
78542
|
-
yield* items;
|
|
78628
|
+
} : item;
|
|
78543
78629
|
if (element.multiple) {
|
|
78544
78630
|
const additionalFields = ["children", "errorsCount", "warningsCount"];
|
|
78545
78631
|
const additionalItems = additionalFields.map(field => ({
|
|
@@ -78714,7 +78800,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
78714
78800
|
|
|
78715
78801
|
function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
78716
78802
|
try {
|
|
78717
|
-
var _kxXmlMathContainer$f, _kxXmlMathContainer$f2, _kcLangMathContainer$, _kcLangMathContainer$2, _additionalContent$fo, _additionalContent$fo2, _Iterator$from$map$fl, _generationOptions$in, _generationOptions$in2, _sugarRoot$schemaVali, _sugarRoot$schemaVali2, _generationOptions$re, _sugarRoot$schemaVali3, _sugarRoot$schemaVali4,
|
|
78803
|
+
var _kxXmlMathContainer$f, _kxXmlMathContainer$f2, _kcLangMathContainer$, _kcLangMathContainer$2, _additionalContent$fo, _additionalContent$fo2, _Iterator$from$map$fl, _generationOptions$in, _generationOptions$in2, _sugarRoot$schemaVali, _sugarRoot$schemaVali2, _generationOptions$re, _sugarRoot$schemaVali3, _sugarRoot$schemaVali4, _additionalContent$fo3, _additionalContent$fo4;
|
|
78718
78804
|
const sugarAst = (0,_common_SugarXmlParser_SugarParser__WEBPACK_IMPORTED_MODULE_4__.parseSugar)(formSugarContent, additionalContent.preprocessor || {});
|
|
78719
78805
|
const serializer = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_13__.createDefaultSugarSerializer)();
|
|
78720
78806
|
const sugarRoot = (0,_markupGenerator_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_14__.strictCastNode)(serializer.deserializeFromSugarXmlNode(sugarAst), _markupGenerator_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_11__.FormNode);
|
|
@@ -78752,14 +78838,14 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
78752
78838
|
const formulaRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_FormulaRulesBuilder__WEBPACK_IMPORTED_MODULE_36__.FormulaRulesBuilder(formSchemaRng, formulas, dataDeclarationHelper, formulaExprConverter);
|
|
78753
78839
|
const initializationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_InitializationRulesBuilder__WEBPACK_IMPORTED_MODULE_37__.InitializationRulesBuilder(sugarRoot, resourcesHash);
|
|
78754
78840
|
const lazyLoadingRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_LazyLoadingRulesBuilder__WEBPACK_IMPORTED_MODULE_38__.LazyLoadingRulesBuilder(sugarRoot, lazyLoadGeneratorResult.declaration);
|
|
78755
|
-
const sugarRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_SugarRulesBuilder__WEBPACK_IMPORTED_MODULE_39__.SugarRulesBuilder(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions
|
|
78756
|
-
const validationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_ValidationRulesBuilder__WEBPACK_IMPORTED_MODULE_40__.ValidationRulesBuilder(sugarRoot, dataDeclarationHelper, formSchemaRng, formulaExprConverter, kcXmlConditions, typeRegistry, (_sugarRoot$
|
|
78841
|
+
const sugarRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_SugarRulesBuilder__WEBPACK_IMPORTED_MODULE_39__.SugarRulesBuilder(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions);
|
|
78842
|
+
const validationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_ValidationRulesBuilder__WEBPACK_IMPORTED_MODULE_40__.ValidationRulesBuilder(sugarRoot, dataDeclarationHelper, formSchemaRng, formulaExprConverter, kcXmlConditions, typeRegistry, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
|
|
78757
78843
|
const optionalSectionRuleBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalSectionRulesBuilder__WEBPACK_IMPORTED_MODULE_33__.OptionalSectionRulesBuilder(sugarRoot, dataDeclarationHelper);
|
|
78758
78844
|
const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_25__.NormalizationRulesGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng);
|
|
78759
78845
|
const formulaOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_30__.FormulaOnlyNormalizationRuleGenerator(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter);
|
|
78760
78846
|
const formulaAndInitOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_FormulaAndInitOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_41__.FormulaAndInitOnlyNormalizationRuleGenerator(sugarRulesBuilder, formulaRulesBuilder, optionalSectionRuleBuilder, formSchemaRng);
|
|
78761
78847
|
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_21__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
78762
|
-
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_12__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$
|
|
78848
|
+
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_12__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$schemaVali4 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali4 !== void 0 ? _sugarRoot$schemaVali4 : false);
|
|
78763
78849
|
markupGenerator.generate(sugarRoot, builder);
|
|
78764
78850
|
builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_9__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings, additionalContent.formJsonSettings));
|
|
78765
78851
|
builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_24__.getRequisiteList)(sugarRoot, fetchFunctions));
|
|
@@ -79355,19 +79441,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79355
79441
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
79356
79442
|
/* harmony export */ "FLangValidationBuildContext": () => (/* binding */ FLangValidationBuildContext)
|
|
79357
79443
|
/* harmony export */ });
|
|
79358
|
-
/* harmony import */ var
|
|
79444
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
79359
79445
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
79360
|
-
/* harmony import */ var
|
|
79361
|
-
/* harmony import */ var
|
|
79362
|
-
/* harmony import */ var
|
|
79363
|
-
/* harmony import */ var
|
|
79446
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
79447
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
79448
|
+
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
79449
|
+
/* harmony import */ var _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/AbsoluteModelPathSet */ "./Common/ModelPath/Set/AbsoluteModelPathSet.ts");
|
|
79364
79450
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
79365
|
-
/* harmony import */ var
|
|
79451
|
+
/* harmony import */ var _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/SchemaRng/StringTypeMessageGenerator */ "./Generator/src/common/SchemaRng/StringTypeMessageGenerator.ts");
|
|
79366
79452
|
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
79367
|
-
/* harmony import */ var
|
|
79368
|
-
/* harmony import */ var
|
|
79369
|
-
/* harmony import */ var
|
|
79453
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader.ts");
|
|
79454
|
+
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
79455
|
+
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
79370
79456
|
/* harmony import */ var _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
79457
|
+
/* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
|
|
79458
|
+
|
|
79371
79459
|
|
|
79372
79460
|
|
|
79373
79461
|
|
|
@@ -79384,18 +79472,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79384
79472
|
const makeArrayLiteral = text => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression(`["${text}"]`);
|
|
79385
79473
|
const makeMessage = (constraints, sugarTypeDescription, schemaTypeDescription) => {
|
|
79386
79474
|
var _ref, _ref2;
|
|
79387
|
-
return makeArrayLiteral((_ref = (_ref2 = sugarTypeDescription !== null && sugarTypeDescription !== void 0 ? sugarTypeDescription : schemaTypeDescription) !== null && _ref2 !== void 0 ? _ref2 :
|
|
79475
|
+
return makeArrayLiteral((_ref = (_ref2 = sugarTypeDescription !== null && sugarTypeDescription !== void 0 ? sugarTypeDescription : schemaTypeDescription) !== null && _ref2 !== void 0 ? _ref2 : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__.StringTypeMessageGenerator.generate(constraints !== null && constraints !== void 0 ? constraints : {})) !== null && _ref !== void 0 ? _ref : "Поле должно быть заполнено");
|
|
79388
79476
|
};
|
|
79389
79477
|
class FLangValidationBuildContext {
|
|
79390
|
-
constructor(schemaRng,
|
|
79391
|
-
this.
|
|
79392
|
-
this.
|
|
79478
|
+
constructor(typesRegistry, schemaRng, useSchemaValidations, formulaExprConverter) {
|
|
79479
|
+
this.typesRegistry = void 0;
|
|
79480
|
+
this.pathsWithValidations = new _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_5__.AbsoluteModelPathSet();
|
|
79393
79481
|
this.formulaExprConverter = void 0;
|
|
79394
79482
|
this.schemaRng = void 0;
|
|
79483
|
+
this.useSchemaValidations = void 0;
|
|
79395
79484
|
this.visibilityConditions = [];
|
|
79396
|
-
this.nodeTypeInfoHelper = nodeTypeInfoHelper;
|
|
79397
79485
|
this.formulaExprConverter = formulaExprConverter;
|
|
79486
|
+
this.useSchemaValidations = useSchemaValidations;
|
|
79398
79487
|
this.schemaRng = schemaRng;
|
|
79488
|
+
this.typesRegistry = typesRegistry;
|
|
79399
79489
|
}
|
|
79400
79490
|
pushVisibilityCondition(condition, path, invertRequired) {
|
|
79401
79491
|
this.visibilityConditions.push({
|
|
@@ -79407,12 +79497,6 @@ class FLangValidationBuildContext {
|
|
|
79407
79497
|
popVisibilityCondition() {
|
|
79408
79498
|
this.visibilityConditions.pop();
|
|
79409
79499
|
}
|
|
79410
|
-
getTypeNode(node) {
|
|
79411
|
-
return this.nodeTypeInfoHelper.getTypeNode(node);
|
|
79412
|
-
}
|
|
79413
|
-
getSchemaTypeInfo(targetPath) {
|
|
79414
|
-
return this.nodeTypeInfoHelper.getSchemaTypeInfo(targetPath);
|
|
79415
|
-
}
|
|
79416
79500
|
buildBasicValidations(targetPath, typeNode, schemaTypeNode, optional, highOrderDescription, nodeGId) {
|
|
79417
79501
|
var _typeNode$base, _typeNode$description;
|
|
79418
79502
|
const validations = [];
|
|
@@ -79435,10 +79519,10 @@ class FLangValidationBuildContext {
|
|
|
79435
79519
|
this.pathsWithValidations.add(targetPath);
|
|
79436
79520
|
const schemaNode = this.schemaRng.getElementByPath(targetPath);
|
|
79437
79521
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
79438
|
-
const allChildrenPaths = parentNode instanceof
|
|
79439
|
-
const restChecks = allChildrenPaths === null || allChildrenPaths === void 0 ? void 0 : allChildrenPaths.map(childPath => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.EqExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ValueReferenceExpression(childPath.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression(""))).reduce(
|
|
79522
|
+
const allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__.FormSchemaRngElement ? this.schemaRng.getAllChildren(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_11__.getMatchedAndDifferentModelPaths)(targetPath, x).differentPath.isContainIteration()) : undefined;
|
|
79523
|
+
const restChecks = allChildrenPaths === null || allChildrenPaths === void 0 ? void 0 : allChildrenPaths.map(childPath => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.EqExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ValueReferenceExpression(childPath.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression(""))).reduce(_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.combineByAndFlangExpr, undefined);
|
|
79440
79524
|
const errorValidations = validations.filter(x => !x.checkType || x.checkType === "error");
|
|
79441
|
-
const errorExpression = this.createFlangExpression((0,
|
|
79525
|
+
const errorExpression = this.createFlangExpression((0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.reverseArray)(errorValidations), targetPath, valueReference, "error", highOrderDescription !== null && highOrderDescription !== void 0 ? highOrderDescription : typeNode === null || typeNode === void 0 ? void 0 : typeNode.requiredDescription, optional, parentNode, restChecks);
|
|
79442
79526
|
const result = [];
|
|
79443
79527
|
result.push({
|
|
79444
79528
|
statement: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ValueReferenceExpression(targetPath, "error"), errorExpression),
|
|
@@ -79456,12 +79540,12 @@ class FLangValidationBuildContext {
|
|
|
79456
79540
|
return result;
|
|
79457
79541
|
}
|
|
79458
79542
|
createFlangExpression(validations, targetPath, valueReference, checkType, requiredDescription, optional, parentNode, restChecks) {
|
|
79459
|
-
let expression =
|
|
79543
|
+
let expression = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.reduce(validations, (result, {
|
|
79460
79544
|
condition,
|
|
79461
79545
|
message
|
|
79462
79546
|
}) => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ConditionalExpression(condition, message, result), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NullLiteralExpression());
|
|
79463
79547
|
if (!optional) {
|
|
79464
|
-
if (parentNode instanceof
|
|
79548
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__.FormSchemaRngElement) {
|
|
79465
79549
|
const requiredExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.IsEqualsBinaryExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.IsEqualsBinaryExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression(""))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("[" + JSON.stringify(requiredDescription !== null && requiredDescription !== void 0 ? requiredDescription : "Поле должно быть заполнено") + "]"), expression);
|
|
79466
79550
|
const targetCheck = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.EqExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.EqExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("")));
|
|
79467
79551
|
if (restChecks != undefined) {
|
|
@@ -79492,15 +79576,15 @@ class FLangValidationBuildContext {
|
|
|
79492
79576
|
`;
|
|
79493
79577
|
try {
|
|
79494
79578
|
var _kcLangMathContainer$, _kcLangMathContainer$2, _kcLangMathContainer$3;
|
|
79495
|
-
const formulaReader = new
|
|
79579
|
+
const formulaReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_9__.FormulaReader();
|
|
79496
79580
|
const kcLangMathContainer = formulaReader.readFormulas(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_8__.KCLangToXmlTranspiler.transpile(fullKcLangExpr));
|
|
79497
79581
|
const formulaNode = (_kcLangMathContainer$ = kcLangMathContainer === null || kcLangMathContainer === void 0 ? void 0 : (_kcLangMathContainer$2 = kcLangMathContainer.formulas) === null || _kcLangMathContainer$2 === void 0 ? void 0 : (_kcLangMathContainer$3 = _kcLangMathContainer$2.items) === null || _kcLangMathContainer$3 === void 0 ? void 0 : _kcLangMathContainer$3[0]) !== null && _kcLangMathContainer$ !== void 0 ? _kcLangMathContainer$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)();
|
|
79498
79582
|
const formulaExpr = this.formulaExprConverter.compileExpressionToFlangExpression(formulaNode.expression, prefix, target, value => {
|
|
79499
|
-
throw new
|
|
79583
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_10__.NotSupportedError("In contextual KcLang conditions should not be summation.");
|
|
79500
79584
|
});
|
|
79501
79585
|
const flangExpr = formulaExpr instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ConditionalExpression ? formulaExpr.condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)();
|
|
79502
79586
|
const getTypeCorrectedExpression = () => {
|
|
79503
|
-
const argExpr = (0,
|
|
79587
|
+
const argExpr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.castOperandToStringIfNeed)((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.tryExtractValueReferenceAsStringFromDecimal)(flangExpr));
|
|
79504
79588
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.AndBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NotEqExpression(argExpr, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NotEqExpression(argExpr, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("")));
|
|
79505
79589
|
};
|
|
79506
79590
|
const correctedFLangExpr = flangExpr.getType() === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.BuildInTypeExpression.bool ? flangExpr : getTypeCorrectedExpression();
|
|
@@ -79531,7 +79615,7 @@ class FLangValidationBuildContext {
|
|
|
79531
79615
|
case "!==":
|
|
79532
79616
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NotEqExpression(len, argument);
|
|
79533
79617
|
default:
|
|
79534
|
-
throw new
|
|
79618
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_10__.NotImplementedError();
|
|
79535
79619
|
}
|
|
79536
79620
|
};
|
|
79537
79621
|
return invertRequired ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(getOperation()) : getOperation();
|
|
@@ -79548,7 +79632,7 @@ class FLangValidationBuildContext {
|
|
|
79548
79632
|
*createTypeValidations(valueReference, typeNode, schemaTypeNode, nodeGId) {
|
|
79549
79633
|
var _typeNode$checkType, _typeNode$children$fi, _typeNode$children, _typeNode$children$fi2, _schemaTypeNode$enume, _digest$gId, _typeNode$children2, _typeNodeLength$value, _typeNode$children3, _typeNodeMinLength$va, _typeNode$children4, _typeNodeMaxLength$va, _typeNode$children5, _typeNodeMinInclusive, _typeNode$children6, _typeNodeMaxInclusive, _typeNode$children7, _typeNodeTotalDigits$, _typeNode$children$fi3, _typeNode$children8, _schemaTypeNode$patte, _typeNode$children9, _typeNodeInteger$valu, _typeNode$children10, _typeNodeFractional$v;
|
|
79550
79634
|
const checkType = (_typeNode$checkType = typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _typeNode$checkType !== void 0 ? _typeNode$checkType : "error";
|
|
79551
|
-
const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 ? void 0 : (_typeNode$children$fi2 = _typeNode$children.filter(x => x instanceof
|
|
79635
|
+
const typeNodeEnumerations = (_typeNode$children$fi = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children = typeNode.children) === null || _typeNode$children === void 0 ? void 0 : (_typeNode$children$fi2 = _typeNode$children.filter(x => x instanceof _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.EnumerationTypeCheckNode)) === null || _typeNode$children$fi2 === void 0 ? void 0 : _typeNode$children$fi2.map(x => x.value)) !== null && _typeNode$children$fi !== void 0 ? _typeNode$children$fi : [];
|
|
79552
79636
|
const enumerationItems = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.arrayIsNotEmpty)(typeNodeEnumerations) ? typeNodeEnumerations : (_schemaTypeNode$enume = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.enumeration) !== null && _schemaTypeNode$enume !== void 0 ? _schemaTypeNode$enume : [];
|
|
79553
79637
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.arrayIsNotEmpty)(enumerationItems)) {
|
|
79554
79638
|
const enumerationRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.OneOfExpression(valueReference, enumerationItems.map(item => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression(item)));
|
|
@@ -79560,7 +79644,7 @@ class FLangValidationBuildContext {
|
|
|
79560
79644
|
checkType: checkType
|
|
79561
79645
|
};
|
|
79562
79646
|
}
|
|
79563
|
-
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(
|
|
79647
|
+
const digest = typeNode === null || typeNode === void 0 ? void 0 : typeNode.getValidations(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.DigestcheckTypeCheckNode).find(x => x);
|
|
79564
79648
|
const gId = (_digest$gId = digest === null || digest === void 0 ? void 0 : digest.gId) !== null && _digest$gId !== void 0 ? _digest$gId : nodeGId;
|
|
79565
79649
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrEmpty)(gId) && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.arrayHasLength)(enumerationItems, 0)) {
|
|
79566
79650
|
var _ref3, _digest$description, _ref4, _digest$checkType;
|
|
@@ -79571,7 +79655,7 @@ class FLangValidationBuildContext {
|
|
|
79571
79655
|
checkType: (_ref4 = (_digest$checkType = digest === null || digest === void 0 ? void 0 : digest.checkType) !== null && _digest$checkType !== void 0 ? _digest$checkType : typeNode === null || typeNode === void 0 ? void 0 : typeNode.checkType) !== null && _ref4 !== void 0 ? _ref4 : "error"
|
|
79572
79656
|
};
|
|
79573
79657
|
}
|
|
79574
|
-
const typeNodeLength = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,
|
|
79658
|
+
const typeNodeLength = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children2 = typeNode.children) === null || _typeNode$children2 === void 0 ? void 0 : _typeNode$children2.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.LengthTypeCheckNode));
|
|
79575
79659
|
const lengthValue = (_typeNodeLength$value = typeNodeLength === null || typeNodeLength === void 0 ? void 0 : typeNodeLength.value) !== null && _typeNodeLength$value !== void 0 ? _typeNodeLength$value : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.length;
|
|
79576
79660
|
if (lengthValue != undefined) {
|
|
79577
79661
|
const lengthExprRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.EqExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(lengthValue)));
|
|
@@ -79583,9 +79667,9 @@ class FLangValidationBuildContext {
|
|
|
79583
79667
|
checkType: checkType
|
|
79584
79668
|
};
|
|
79585
79669
|
}
|
|
79586
|
-
const typeNodeMinLength = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,
|
|
79670
|
+
const typeNodeMinLength = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children3 = typeNode.children) === null || _typeNode$children3 === void 0 ? void 0 : _typeNode$children3.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MinlengthTypeCheckNode));
|
|
79587
79671
|
const minLengthValue = (_typeNodeMinLength$va = typeNodeMinLength === null || typeNodeMinLength === void 0 ? void 0 : typeNodeMinLength.value) !== null && _typeNodeMinLength$va !== void 0 ? _typeNodeMinLength$va : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minLength;
|
|
79588
|
-
const typeNodeMaxLength = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,
|
|
79672
|
+
const typeNodeMaxLength = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children4 = typeNode.children) === null || _typeNode$children4 === void 0 ? void 0 : _typeNode$children4.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxlengthTypeCheckNode));
|
|
79589
79673
|
const maxLengthValue = (_typeNodeMaxLength$va = typeNodeMaxLength === null || typeNodeMaxLength === void 0 ? void 0 : typeNodeMaxLength.value) !== null && _typeNodeMaxLength$va !== void 0 ? _typeNodeMaxLength$va : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxLength;
|
|
79590
79674
|
if (minLengthValue != undefined && maxLengthValue != undefined) {
|
|
79591
79675
|
const lengthExprRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.AndBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.GeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(minLengthValue)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(maxLengthValue))));
|
|
@@ -79616,10 +79700,10 @@ class FLangValidationBuildContext {
|
|
|
79616
79700
|
checkType: checkType
|
|
79617
79701
|
};
|
|
79618
79702
|
}
|
|
79619
|
-
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,
|
|
79703
|
+
const typeNodeMinInclusive = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children5 = typeNode.children) === null || _typeNode$children5 === void 0 ? void 0 : _typeNode$children5.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MininclusiveTypeCheckNode));
|
|
79620
79704
|
const minInclusiveValue = (_typeNodeMinInclusive = typeNodeMinInclusive === null || typeNodeMinInclusive === void 0 ? void 0 : typeNodeMinInclusive.value) !== null && _typeNodeMinInclusive !== void 0 ? _typeNodeMinInclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.minInclusive;
|
|
79621
79705
|
if (minInclusiveValue != undefined) {
|
|
79622
|
-
const minInclusiveRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.GeExpression((0,
|
|
79706
|
+
const minInclusiveRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.GeExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.castOperandToDecimalIfNeed)(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(minInclusiveValue)));
|
|
79623
79707
|
yield {
|
|
79624
79708
|
condition: minInclusiveRuleBody,
|
|
79625
79709
|
message: makeMessage({
|
|
@@ -79628,10 +79712,10 @@ class FLangValidationBuildContext {
|
|
|
79628
79712
|
checkType: checkType
|
|
79629
79713
|
};
|
|
79630
79714
|
}
|
|
79631
|
-
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,
|
|
79715
|
+
const typeNodeMaxInclusive = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children6 = typeNode.children) === null || _typeNode$children6 === void 0 ? void 0 : _typeNode$children6.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxinclusiveTypeCheckNode));
|
|
79632
79716
|
const maxInclusiveValue = (_typeNodeMaxInclusive = typeNodeMaxInclusive === null || typeNodeMaxInclusive === void 0 ? void 0 : typeNodeMaxInclusive.value) !== null && _typeNodeMaxInclusive !== void 0 ? _typeNodeMaxInclusive : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.maxInclusive;
|
|
79633
79717
|
if (maxInclusiveValue != undefined) {
|
|
79634
|
-
const maxInclusiveRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression((0,
|
|
79718
|
+
const maxInclusiveRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.castOperandToDecimalIfNeed)(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(maxInclusiveValue)));
|
|
79635
79719
|
yield {
|
|
79636
79720
|
condition: maxInclusiveRuleBody,
|
|
79637
79721
|
message: makeMessage({
|
|
@@ -79640,7 +79724,7 @@ class FLangValidationBuildContext {
|
|
|
79640
79724
|
checkType: checkType
|
|
79641
79725
|
};
|
|
79642
79726
|
}
|
|
79643
|
-
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,
|
|
79727
|
+
const typeNodeTotalDigits = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children7 = typeNode.children) === null || _typeNode$children7 === void 0 ? void 0 : _typeNode$children7.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.TotaldigitsTypeCheckNode));
|
|
79644
79728
|
const totalDigitsValue = (_typeNodeTotalDigits$ = typeNodeTotalDigits === null || typeNodeTotalDigits === void 0 ? void 0 : typeNodeTotalDigits.value) !== null && _typeNodeTotalDigits$ !== void 0 ? _typeNodeTotalDigits$ : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.totalDigits;
|
|
79645
79729
|
if (totalDigitsValue != undefined) {
|
|
79646
79730
|
const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NumLenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(totalDigitsValue)));
|
|
@@ -79652,7 +79736,7 @@ class FLangValidationBuildContext {
|
|
|
79652
79736
|
checkType: checkType
|
|
79653
79737
|
};
|
|
79654
79738
|
}
|
|
79655
|
-
const typeNodePatterns = (_typeNode$children$fi3 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.filter((0,
|
|
79739
|
+
const typeNodePatterns = (_typeNode$children$fi3 = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children8 = typeNode.children) === null || _typeNode$children8 === void 0 ? void 0 : _typeNode$children8.filter((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.PatternTypeCheckNode)).map(x => x.value).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined)) !== null && _typeNode$children$fi3 !== void 0 ? _typeNode$children$fi3 : [];
|
|
79656
79740
|
const stringPatterns = ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.arrayIsNotEmpty)(typeNodePatterns) ? typeNodePatterns : (_schemaTypeNode$patte = schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.patterns) !== null && _schemaTypeNode$patte !== void 0 ? _schemaTypeNode$patte : []).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined);
|
|
79657
79741
|
const patterns = stringPatterns.map(pattern => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.RegexMatchExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression(pattern))).reduce((acc, current) => acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.OrBinaryExpression(acc, current) : current, undefined);
|
|
79658
79742
|
if (patterns != undefined) {
|
|
@@ -79665,10 +79749,10 @@ class FLangValidationBuildContext {
|
|
|
79665
79749
|
checkType: checkType
|
|
79666
79750
|
};
|
|
79667
79751
|
}
|
|
79668
|
-
const typeNodeInteger = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,
|
|
79752
|
+
const typeNodeInteger = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children9 = typeNode.children) === null || _typeNode$children9 === void 0 ? void 0 : _typeNode$children9.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.IntegerdigitsTypeCheckNode));
|
|
79669
79753
|
const integerDigits = (_typeNodeInteger$valu = typeNodeInteger === null || typeNodeInteger === void 0 ? void 0 : typeNodeInteger.value) !== null && _typeNodeInteger$valu !== void 0 ? _typeNodeInteger$valu : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.integerDigits;
|
|
79670
79754
|
if (integerDigits != undefined) {
|
|
79671
|
-
const integerDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.MinusBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NumLenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.FractionalLenExpression((0,
|
|
79755
|
+
const integerDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.MinusBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NumLenExpression(valueReference), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.FractionalLenExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.castOperandToDecimalIfNeed)(valueReference))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(integerDigits)));
|
|
79672
79756
|
yield {
|
|
79673
79757
|
condition: integerDigitsRuleBody,
|
|
79674
79758
|
message: makeMessage({
|
|
@@ -79677,10 +79761,10 @@ class FLangValidationBuildContext {
|
|
|
79677
79761
|
checkType: checkType
|
|
79678
79762
|
};
|
|
79679
79763
|
}
|
|
79680
|
-
const typeNodeFractional = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children10 = typeNode.children) === null || _typeNode$children10 === void 0 ? void 0 : _typeNode$children10.find((0,
|
|
79764
|
+
const typeNodeFractional = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$children10 = typeNode.children) === null || _typeNode$children10 === void 0 ? void 0 : _typeNode$children10.find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.FractiondigitsTypeCheckNode));
|
|
79681
79765
|
const fractionalDigits = (_typeNodeFractional$v = typeNodeFractional === null || typeNodeFractional === void 0 ? void 0 : typeNodeFractional.value) !== null && _typeNodeFractional$v !== void 0 ? _typeNodeFractional$v : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.fractionDigits;
|
|
79682
79766
|
if (fractionalDigits != undefined) {
|
|
79683
|
-
const fractionalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.FractionalLenExpression((0,
|
|
79767
|
+
const fractionalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.LeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.FractionalLenExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_13__.castOperandToDecimalIfNeed)(valueReference)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.DecimalLiteralExpression(fractionalDigits)));
|
|
79684
79768
|
yield {
|
|
79685
79769
|
condition: fractionalDigitsRuleBody,
|
|
79686
79770
|
message: makeMessage({
|
|
@@ -79700,35 +79784,35 @@ class FLangValidationBuildContext {
|
|
|
79700
79784
|
{
|
|
79701
79785
|
return {
|
|
79702
79786
|
condition: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.RegexMatchExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("^-?\\d+$"))),
|
|
79703
|
-
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription :
|
|
79787
|
+
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))
|
|
79704
79788
|
};
|
|
79705
79789
|
}
|
|
79706
79790
|
case "decimal":
|
|
79707
79791
|
{
|
|
79708
79792
|
return {
|
|
79709
79793
|
condition: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.RegexMatchExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("^-?\\d+(([.]\\d+$)|($))"))),
|
|
79710
|
-
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription :
|
|
79794
|
+
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))
|
|
79711
79795
|
};
|
|
79712
79796
|
}
|
|
79713
79797
|
case "date":
|
|
79714
79798
|
{
|
|
79715
79799
|
return {
|
|
79716
79800
|
condition: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.RegexMatchExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("^(0[1-9]|[12][0-9]|3[01])\\.(0[1-9]|1[012])\\.(19|20)[0-9]{2}$"))),
|
|
79717
|
-
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription :
|
|
79801
|
+
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))
|
|
79718
79802
|
};
|
|
79719
79803
|
}
|
|
79720
79804
|
case "gYear":
|
|
79721
79805
|
{
|
|
79722
79806
|
return {
|
|
79723
79807
|
condition: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.RegexMatchExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("^\\d{4}$"))),
|
|
79724
|
-
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription :
|
|
79808
|
+
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))
|
|
79725
79809
|
};
|
|
79726
79810
|
}
|
|
79727
79811
|
case "gMonth":
|
|
79728
79812
|
{
|
|
79729
79813
|
return {
|
|
79730
79814
|
condition: new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.RegexMatchExpression(valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.StringLiteralExpression("^(--(0[1-9]|1[0-2]))$"))),
|
|
79731
|
-
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription :
|
|
79815
|
+
message: makeArrayLiteral(baseDescription !== null && baseDescription !== void 0 ? baseDescription : _common_SchemaRng_StringTypeMessageGenerator__WEBPACK_IMPORTED_MODULE_7__.StringTypeMessageGenerator.getBaseTypeMessage(baseType))
|
|
79732
79816
|
};
|
|
79733
79817
|
}
|
|
79734
79818
|
default:
|
|
@@ -79738,7 +79822,7 @@ class FLangValidationBuildContext {
|
|
|
79738
79822
|
getFirstAcceptedParent(schemaNode) {
|
|
79739
79823
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
79740
79824
|
while (parentNode != undefined) {
|
|
79741
|
-
if (parentNode instanceof
|
|
79825
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_0__.FormSchemaRngElement) {
|
|
79742
79826
|
var _parentNode$multiple;
|
|
79743
79827
|
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
79744
79828
|
return undefined;
|
|
@@ -79756,6 +79840,26 @@ class FLangValidationBuildContext {
|
|
|
79756
79840
|
getAllPathsWithValidations() {
|
|
79757
79841
|
return this.pathsWithValidations.values();
|
|
79758
79842
|
}
|
|
79843
|
+
addErrorCondition(targetPath, errorCondition) {
|
|
79844
|
+
const errorReference = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.ValueReferenceExpression(targetPath, "error");
|
|
79845
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_12__.SetStatement(errorReference, errorCondition);
|
|
79846
|
+
}
|
|
79847
|
+
getSchemaTypeInfo(bindingPath) {
|
|
79848
|
+
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath) : undefined;
|
|
79849
|
+
}
|
|
79850
|
+
getTypeNode(node) {
|
|
79851
|
+
if (node.anonymousType != undefined) {
|
|
79852
|
+
return node.anonymousType;
|
|
79853
|
+
}
|
|
79854
|
+
if (node.type != undefined) {
|
|
79855
|
+
const result = this.typesRegistry.getByName(node.type);
|
|
79856
|
+
if (result == undefined) {
|
|
79857
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__.SugarAttributeReadError(`Type with name '${node.type}' not found`, node, "type");
|
|
79858
|
+
}
|
|
79859
|
+
return result;
|
|
79860
|
+
}
|
|
79861
|
+
return undefined;
|
|
79862
|
+
}
|
|
79759
79863
|
}
|
|
79760
79864
|
|
|
79761
79865
|
/***/ }),
|
|
@@ -79836,8 +79940,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79836
79940
|
/* harmony export */ "OneOfExpression": () => (/* binding */ OneOfExpression),
|
|
79837
79941
|
/* harmony export */ "NoDepsExpression": () => (/* binding */ NoDepsExpression),
|
|
79838
79942
|
/* harmony export */ "HasPicklistValueExpression": () => (/* binding */ HasPicklistValueExpression),
|
|
79839
|
-
/* harmony export */ "
|
|
79840
|
-
/* harmony export */ "PrepareNumberExpression": () => (/* binding */ PrepareNumberExpression),
|
|
79943
|
+
/* harmony export */ "ArrayStringExpression": () => (/* binding */ ArrayStringExpression),
|
|
79841
79944
|
/* harmony export */ "FLangStatement": () => (/* binding */ FLangStatement),
|
|
79842
79945
|
/* harmony export */ "SetStatement": () => (/* binding */ SetStatement)
|
|
79843
79946
|
/* harmony export */ });
|
|
@@ -80681,36 +80784,21 @@ class HasPicklistValueExpression extends FLangExpression {
|
|
|
80681
80784
|
return `hasPicklistValue(${expression}, ${this.gidExpression})`;
|
|
80682
80785
|
}
|
|
80683
80786
|
}
|
|
80684
|
-
class
|
|
80685
|
-
constructor(
|
|
80686
|
-
super();
|
|
80687
|
-
this.expression = void 0;
|
|
80688
|
-
this.expression = expression;
|
|
80689
|
-
}
|
|
80690
|
-
*getChildNodes() {
|
|
80691
|
-
yield this.expression;
|
|
80692
|
-
}
|
|
80693
|
-
getType() {
|
|
80694
|
-
return BuildInTypeExpression.string;
|
|
80695
|
-
}
|
|
80696
|
-
convertToString() {
|
|
80697
|
-
return `trim(${this.expression.convertToString()})`;
|
|
80698
|
-
}
|
|
80699
|
-
}
|
|
80700
|
-
class PrepareNumberExpression extends FLangExpression {
|
|
80701
|
-
constructor(expression) {
|
|
80787
|
+
class ArrayStringExpression extends FLangExpression {
|
|
80788
|
+
constructor(expressions) {
|
|
80702
80789
|
super();
|
|
80703
|
-
this.
|
|
80704
|
-
this.
|
|
80790
|
+
this.expressions = void 0;
|
|
80791
|
+
this.expressions = expressions;
|
|
80705
80792
|
}
|
|
80706
80793
|
*getChildNodes() {
|
|
80707
|
-
yield this.
|
|
80794
|
+
yield* this.expressions;
|
|
80708
80795
|
}
|
|
80709
80796
|
getType() {
|
|
80710
80797
|
return BuildInTypeExpression.string;
|
|
80711
80798
|
}
|
|
80712
80799
|
convertToString() {
|
|
80713
|
-
|
|
80800
|
+
const stringItems = this.expressions.map(x => x.convertToString()).join(", ");
|
|
80801
|
+
return `"[" ${stringItems} "]"`;
|
|
80714
80802
|
}
|
|
80715
80803
|
}
|
|
80716
80804
|
class FLangStatement extends FLangNode {}
|
|
@@ -81216,6 +81304,10 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81216
81304
|
const items = expression.items.expressions.map(item => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(item, prefix, target, addPrecalculationRule)));
|
|
81217
81305
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.OneOfExpression(arg, items);
|
|
81218
81306
|
}
|
|
81307
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaOneOfItemsExpression) {
|
|
81308
|
+
const items = expression.expressions.map(item => this.compileExpressionToFlangExpressionInternal(item, prefix, target, addPrecalculationRule));
|
|
81309
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArrayStringExpression(items);
|
|
81310
|
+
}
|
|
81219
81311
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}`);
|
|
81220
81312
|
}
|
|
81221
81313
|
compileEqExpression(prefix, target, expression, addPrecalculationRule) {
|
|
@@ -81229,7 +81321,7 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81229
81321
|
}
|
|
81230
81322
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(left), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(right));
|
|
81231
81323
|
}
|
|
81232
|
-
compileGroupSumExpressionWithCustomValueExpression(prefix, target,
|
|
81324
|
+
compileGroupSumExpressionWithCustomValueExpression(prefix, target, targetKeys, sourceKeyPath, sourceValueExpression, addPrecalculationRule) {
|
|
81233
81325
|
const matchPaths = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, sourceKeyPath);
|
|
81234
81326
|
const sourceKeyParts = sourceKeyPath.getPathPartsAsArray();
|
|
81235
81327
|
const firstPart = matchPaths.matchedPath.toCurrentIteration();
|
|
@@ -81239,21 +81331,29 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81239
81331
|
const secondPartFinalParts = secondPartParts.slice(0, lastStarIndexSecondPart);
|
|
81240
81332
|
const finalIterPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)([...firstPart.getPathParts(), ...secondPartFinalParts]).trimLastStarIfLastToken();
|
|
81241
81333
|
const reduceExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ReduceCallExpression(finalIterPath, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.dict)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.AddSumExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ValueReferenceExpression(sourceKeyPath.toCurrentIteration(), "value"), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToDecimalIfNeed)(sourceValueExpression))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DictLiteralExpression());
|
|
81242
|
-
|
|
81243
|
-
|
|
81334
|
+
if (reduceExpression == undefined) {
|
|
81335
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_2__.NotSupportedError("Target and source must be in different collections! " + "\n" + `Target: ${target}` + "\n" + `SourceKey: ${sourceKeyPath}`);
|
|
81336
|
+
}
|
|
81337
|
+
if (targetKeys instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ArrayStringExpression && targetKeys.expressions.length === 1) {
|
|
81338
|
+
var _targetKeys$expressio;
|
|
81339
|
+
const finalValueExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.GetExpression(reduceExpression, (_targetKeys$expressio = targetKeys.expressions[0]) !== null && _targetKeys$expressio !== void 0 ? _targetKeys$expressio : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)());
|
|
81340
|
+
return finalValueExpression;
|
|
81341
|
+
} else {
|
|
81342
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_2__.NotSupportedError("Server normalization does not support multiple keys in groupSum operator");
|
|
81343
|
+
}
|
|
81244
81344
|
}
|
|
81245
81345
|
compileGroupSumExpression(prefix, target, expression, addPrecalculationRule) {
|
|
81246
|
-
const
|
|
81346
|
+
const targetKeys = this.compileExpressionToFlangExpressionInternal(expression.targetKeys, prefix, target, addPrecalculationRule);
|
|
81247
81347
|
const sourceKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceKeyPath);
|
|
81248
81348
|
const sourceValuePath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceValuePath);
|
|
81249
81349
|
const sourceValueExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ValueReferenceExpression(sourceValuePath.toCurrentIteration(), "value");
|
|
81250
|
-
return this.compileGroupSumExpressionWithCustomValueExpression(prefix, target,
|
|
81350
|
+
return this.compileGroupSumExpressionWithCustomValueExpression(prefix, target, targetKeys, sourceKeyPath, sourceValueExpression, addPrecalculationRule);
|
|
81251
81351
|
}
|
|
81252
81352
|
compileGroupCountExpression(prefix, target, expression, addPrecalculationRule) {
|
|
81253
|
-
const
|
|
81353
|
+
const targetKeys = this.compileExpressionToFlangExpressionInternal(expression.targetKeys, prefix, target, addPrecalculationRule);
|
|
81254
81354
|
const sourceKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceKeyPath);
|
|
81255
81355
|
const sourceValueExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DecimalLiteralExpression(1);
|
|
81256
|
-
return this.compileGroupSumExpressionWithCustomValueExpression(prefix, target,
|
|
81356
|
+
return this.compileGroupSumExpressionWithCustomValueExpression(prefix, target, targetKeys, sourceKeyPath, sourceValueExpression, addPrecalculationRule);
|
|
81257
81357
|
}
|
|
81258
81358
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
81259
81359
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
@@ -81306,6 +81406,19 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
81306
81406
|
}
|
|
81307
81407
|
return result;
|
|
81308
81408
|
}
|
|
81409
|
+
|
|
81410
|
+
// private makeConcat(expressions: FLangExpression[]) {
|
|
81411
|
+
// const result = expressions.reduce<FLangExpression | undefined>((acc, curr) => {
|
|
81412
|
+
// const currExpr = castOperandToStringIfNeed(curr);
|
|
81413
|
+
// return acc != undefined ? new ConcatStringsExpression(acc, currExpr) : currExpr;
|
|
81414
|
+
// }, undefined);
|
|
81415
|
+
//
|
|
81416
|
+
// if (result == undefined) {
|
|
81417
|
+
// throw new InvalidProgramStateError();
|
|
81418
|
+
// }
|
|
81419
|
+
// return result;
|
|
81420
|
+
// }
|
|
81421
|
+
|
|
81309
81422
|
compileOrExpression(expression, prefix, target, addPrecalculationRule) {
|
|
81310
81423
|
const result = expression.arguments.reduce((acc, curr) => {
|
|
81311
81424
|
const currExpr = this.compileExpressionToFlangExpressionInternal(curr, prefix, target, addPrecalculationRule);
|
|
@@ -81422,48 +81535,6 @@ class FormulaOnlyNormalizationRuleGenerator {
|
|
|
81422
81535
|
|
|
81423
81536
|
/***/ }),
|
|
81424
81537
|
|
|
81425
|
-
/***/ "./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts":
|
|
81426
|
-
/*!*************************************************************************************!*\
|
|
81427
|
-
!*** ./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts ***!
|
|
81428
|
-
\*************************************************************************************/
|
|
81429
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
81430
|
-
|
|
81431
|
-
"use strict";
|
|
81432
|
-
__webpack_require__.r(__webpack_exports__);
|
|
81433
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
81434
|
-
/* harmony export */ "NodeTypeInfoHelper": () => (/* binding */ NodeTypeInfoHelper)
|
|
81435
|
-
/* harmony export */ });
|
|
81436
|
-
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
81437
|
-
|
|
81438
|
-
class NodeTypeInfoHelper {
|
|
81439
|
-
constructor(schemaRng, typesRegistry, useSchemaValidations) {
|
|
81440
|
-
this.schemaRng = void 0;
|
|
81441
|
-
this.useSchemaValidations = void 0;
|
|
81442
|
-
this.typesRegistry = void 0;
|
|
81443
|
-
this.useSchemaValidations = useSchemaValidations;
|
|
81444
|
-
this.schemaRng = schemaRng;
|
|
81445
|
-
this.typesRegistry = typesRegistry;
|
|
81446
|
-
}
|
|
81447
|
-
getSchemaTypeInfo(bindingPath) {
|
|
81448
|
-
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath) : undefined;
|
|
81449
|
-
}
|
|
81450
|
-
getTypeNode(node) {
|
|
81451
|
-
if (node.anonymousType != undefined) {
|
|
81452
|
-
return node.anonymousType;
|
|
81453
|
-
}
|
|
81454
|
-
if (node.type != undefined) {
|
|
81455
|
-
const result = this.typesRegistry.getByName(node.type);
|
|
81456
|
-
if (result == undefined) {
|
|
81457
|
-
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Type with name '${node.type}' not found`, node, "type");
|
|
81458
|
-
}
|
|
81459
|
-
return result;
|
|
81460
|
-
}
|
|
81461
|
-
return undefined;
|
|
81462
|
-
}
|
|
81463
|
-
}
|
|
81464
|
-
|
|
81465
|
-
/***/ }),
|
|
81466
|
-
|
|
81467
81538
|
/***/ "./Generator/src/generators/ServerSideFLangNormalization/NormalizationRulesGenerator.ts":
|
|
81468
81539
|
/*!**********************************************************************************************!*\
|
|
81469
81540
|
!*** ./Generator/src/generators/ServerSideFLangNormalization/NormalizationRulesGenerator.ts ***!
|
|
@@ -81651,7 +81722,7 @@ class LazyLoadingRulesBuilder {
|
|
|
81651
81722
|
const thresholdEntryPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createFromMask)(`/${thresholdEntry[0]}`, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
81652
81723
|
const thresholdValue = (_thresholdEntry$1$thr = (_thresholdEntry$ = thresholdEntry[1]) === null || _thresholdEntry$ === void 0 ? void 0 : _thresholdEntry$.thresholdValue) !== null && _thresholdEntry$1$thr !== void 0 ? _thresholdEntry$1$thr : 0;
|
|
81653
81724
|
const lazyLoadingEnabledRef = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(formRoot).joinWith("LazyLoadingEnabled"), "value");
|
|
81654
|
-
const statement = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(lazyLoadingEnabledRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.GeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ReduceCallExpression(thresholdEntryPath.trimLastStarIfLastToken(), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.decimal, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.decimal)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SumBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.DecimalLiteralExpression(1))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.DecimalLiteralExpression(0)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.DecimalLiteralExpression(thresholdValue)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("false")));
|
|
81725
|
+
const statement = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(lazyLoadingEnabledRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.GeExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ReduceCallExpression(thresholdEntryPath.trimLastStarIfLastToken().toCurrentIteration(), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.decimal, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.decimal)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SumBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.DecimalLiteralExpression(1))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.DecimalLiteralExpression(0)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.DecimalLiteralExpression(thresholdValue)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("false")));
|
|
81655
81726
|
yield statement;
|
|
81656
81727
|
}
|
|
81657
81728
|
}
|
|
@@ -81783,21 +81854,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81783
81854
|
/* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../markupGenerator/ElementProcessors/FormParts/Form/FormConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormConverter.ts");
|
|
81784
81855
|
/* harmony import */ var _markupGenerator_FLangNormalizationRulesBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../markupGenerator/FLangNormalizationRulesBuilder */ "./Generator/src/generators/markupGenerator/FLangNormalizationRulesBuilder.ts");
|
|
81785
81856
|
/* harmony import */ var _FetchFunctionToFlangConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FetchFunctionToFlangConverter */ "./Generator/src/generators/ServerSideFLangNormalization/FetchFunctionToFlangConverter.ts");
|
|
81786
|
-
/* harmony import */ var _NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../NodeTypeInfoHelper */ "./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts");
|
|
81787
|
-
|
|
81788
81857
|
|
|
81789
81858
|
|
|
81790
81859
|
|
|
81791
81860
|
class SugarRulesBuilder {
|
|
81792
|
-
constructor(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions
|
|
81861
|
+
constructor(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions) {
|
|
81793
81862
|
this.sugarRoot = void 0;
|
|
81794
81863
|
this.controlCustomizationContext = void 0;
|
|
81795
81864
|
this.fetchFunctions = void 0;
|
|
81796
81865
|
this.formSchemaRng = void 0;
|
|
81797
|
-
this.useSchemaValidations = void 0;
|
|
81798
|
-
this.typeRegistry = void 0;
|
|
81799
|
-
this.useSchemaValidations = useSchemaValidations;
|
|
81800
|
-
this.typeRegistry = typeRegistry;
|
|
81801
81866
|
this.formSchemaRng = formSchemaRng;
|
|
81802
81867
|
this.fetchFunctions = fetchFunctions;
|
|
81803
81868
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
@@ -81805,7 +81870,7 @@ class SugarRulesBuilder {
|
|
|
81805
81870
|
}
|
|
81806
81871
|
buildRules() {
|
|
81807
81872
|
const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_0__.FormConverter(this.sugarRoot);
|
|
81808
|
-
const builder = new _markupGenerator_FLangNormalizationRulesBuilder__WEBPACK_IMPORTED_MODULE_1__.FLangNormalizationRulesBuilder(this.controlCustomizationContext, this.fetchFunctions, new _FetchFunctionToFlangConverter__WEBPACK_IMPORTED_MODULE_2__.FetchFunctionToFlangConverter()
|
|
81873
|
+
const builder = new _markupGenerator_FLangNormalizationRulesBuilder__WEBPACK_IMPORTED_MODULE_1__.FLangNormalizationRulesBuilder(this.controlCustomizationContext, this.fetchFunctions, new _FetchFunctionToFlangConverter__WEBPACK_IMPORTED_MODULE_2__.FetchFunctionToFlangConverter());
|
|
81809
81874
|
return converter.buildNormalizeRules(builder, this.formSchemaRng);
|
|
81810
81875
|
}
|
|
81811
81876
|
}
|
|
@@ -81832,7 +81897,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81832
81897
|
/* harmony import */ var _Common_ModelPath_EachCurrentCollision__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../Common/ModelPath/EachCurrentCollision */ "./Common/ModelPath/EachCurrentCollision.ts");
|
|
81833
81898
|
/* harmony import */ var _markupGenerator_getRootPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../markupGenerator/getRootPath */ "./Generator/src/generators/markupGenerator/getRootPath.ts");
|
|
81834
81899
|
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
81835
|
-
/* harmony import */ var
|
|
81900
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
|
|
81836
81901
|
|
|
81837
81902
|
|
|
81838
81903
|
|
|
@@ -81871,7 +81936,7 @@ class ValidationRulesBuilder {
|
|
|
81871
81936
|
return {
|
|
81872
81937
|
target: fullTarget,
|
|
81873
81938
|
checkExpression: this.formulaExprConverter.compileExpressionToFlangExpression(condition.expression, prefix, new _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.AbsoluteModelFieldPath(fullTarget, condition.errorLevel === "Error" ? "error" : "warning"), x => precalculationRules.push(x)),
|
|
81874
|
-
message: condition.description,
|
|
81939
|
+
message: (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_9__.splitConditionDescriptionToParts)(condition.description).map(item => this.formulaExprConverter.compileExpressionToFlangExpression(item, prefix, new _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.AbsoluteModelFieldPath(fullTarget, condition.errorLevel === "Error" ? "error" : "warning"), x => precalculationRules.push(x))),
|
|
81875
81940
|
errorLevel: condition.errorLevel,
|
|
81876
81941
|
precalculationRules: precalculationRules
|
|
81877
81942
|
};
|
|
@@ -81882,7 +81947,8 @@ class ValidationRulesBuilder {
|
|
|
81882
81947
|
const path = current.target.toLegacyPath();
|
|
81883
81948
|
const targetCtx = current.errorLevel === "Warning" ? ctx.warnings : ctx.errors;
|
|
81884
81949
|
const currentExpression = (_targetCtx$path = targetCtx[path]) !== null && _targetCtx$path !== void 0 ? _targetCtx$path : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression();
|
|
81885
|
-
const
|
|
81950
|
+
const concatDescription = current.message.reduce((curr, item) => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConcatStringsExpression(curr, item));
|
|
81951
|
+
const condition = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NegateUnaryExpression(current.checkExpression), concatDescription, currentExpression);
|
|
81886
81952
|
targetCtx[path] = condition;
|
|
81887
81953
|
return ctx;
|
|
81888
81954
|
}, {
|
|
@@ -81893,7 +81959,7 @@ class ValidationRulesBuilder {
|
|
|
81893
81959
|
}
|
|
81894
81960
|
*buildSugarValidationRules() {
|
|
81895
81961
|
const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
|
|
81896
|
-
const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_3__.FLangValidationBuildContext(this.
|
|
81962
|
+
const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_3__.FLangValidationBuildContext(this.typesRegistry, this.formSchemaRng, this.useSchemaValidations, this.formulaExprConverter);
|
|
81897
81963
|
const sugarRules = Iterator.from(converter.buildFLangValidations(context, this.formSchemaRng)).reduce((ctx, current) => {
|
|
81898
81964
|
const statement = current.statement;
|
|
81899
81965
|
if (!(statement instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement)) {
|
|
@@ -87212,7 +87278,7 @@ let ModalTitleNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
|
|
|
87212
87278
|
writable: true,
|
|
87213
87279
|
initializer: null
|
|
87214
87280
|
})), _class5)) || _class4);
|
|
87215
|
-
let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("form", `Корневой элемент формы.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form sync recursive .md$")), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("userpicklist", [_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_10__.UserPicklistNode]), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("tour", [_Tour_TourNode__WEBPACK_IMPORTED_MODULE_9__.TourNode]), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("fetchfunctions", [FetchFunctionsReferenceNode]), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("modalIE8", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Removed), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("m", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("uf", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("forceNavigate", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("hideUnitsAdder", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("hasRegionalForms", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.UntypedUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("controls"), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("modalheader", [ModalTitleNode]), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("import", [_SugarNodes_Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_7__.ImportNode]), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("panel", [_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_13__.PanelNode]), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("zeroreportoptions", [_ZeroReportOptions_ZeroReportOptionsNode__WEBPACK_IMPORTED_MODULE_12__.ZeroReportOptionsNode]), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("page", [_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode]), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("simple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("schemaValidations", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("isReadOnly", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отобразить форму в режиме чтения - все редактирование будет отключено (включая интерактивные элементы - валидации, фокус, подсветки тултипы и тд)"), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("ieDeprecationWarningEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отображать окно с предупреждением, что некоторые функции в ie не работают, с предложением скачать другие браузеры. Не блокирует взаимодействие"), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.
|
|
87281
|
+
let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("form", `Корневой элемент формы.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form sync recursive .md$")), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingScopeMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("userpicklist", [_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_10__.UserPicklistNode]), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("tour", [_Tour_TourNode__WEBPACK_IMPORTED_MODULE_9__.TourNode]), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("fetchfunctions", [FetchFunctionsReferenceNode]), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("modalIE8", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Removed), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("m", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("uf", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("forceNavigate", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("hideUnitsAdder", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.deprecatedAttr)("hasRegionalForms", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.UntypedUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("controls"), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("modalheader", [ModalTitleNode]), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("import", [_SugarNodes_Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_7__.ImportNode]), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("panel", [_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_13__.PanelNode]), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.singleChild)("zeroreportoptions", [_ZeroReportOptions_ZeroReportOptionsNode__WEBPACK_IMPORTED_MODULE_12__.ZeroReportOptionsNode]), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("page", [_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode]), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("simple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("schemaValidations", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("isReadOnly", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отобразить форму в режиме чтения - все редактирование будет отключено (включая интерактивные элементы - валидации, фокус, подсветки тултипы и тд)"), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("ieDeprecationWarningEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отображать окно с предупреждением, что некоторые функции в ie не работают, с предложением скачать другие браузеры. Не блокирует взаимодействие"), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("compactActionPanel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Отображать компактную плашку (без надписей) на панели действий слева"), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("enableCustomizationButton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, "Включить кнопку настройки оформления"), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("ieSizeLimitation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Это флаг включает отображение заглушки для IE, если фуф больше определенного размера`), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("templates", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Управляет влючение возможность создавать и применять шаблоны keweb-а (кнопка в меню)`), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("__deleteMe__enableIndentToSingleUnit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включить несогласованные с дизайнером отступы, которые использовались для ЕФС`), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("plain", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Форма без боковой панели, которая будет содержать один раздел`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("requisite", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Есть подозрение что это свойство не используется`), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, ``), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("cssWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Более преоритетный чем обычный width, задается как css`), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("buttonSettingsType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType["enum"](_Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.Revise, _Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.DigitalWarrant), `Разные настройки кнопок отправить и действий с формой. Сейчас есть только ${_Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.Revise} / ${_Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__.ButtonSettingsTypeEnum.DigitalWarrant} который будет делать кнопки в плашке для simple form как у ИОН или Сверке ФСС`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("validationBeforeSend", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Локальная проверка, которая не даст отправить форму, если есть невалидные поля.\n
|
|
87216
87282
|
После проверки фокус падает на невалидное поле, если это возможно. Например на input`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("padding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.lengthUnit, ``), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("maxunitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `По дефолту 15. Если количество разделов превышает \`maxunitscount\`, начинает работать частичный рендеринг. Отрисовывается столько разделов вниз от текущего, сколько задано в настройке, а при скроллинге вниз рендерятся следующие. Используется для больших форм с множественными разделами (напр, ЕНВД, Прибыль), помогает облегчить загрузку редактора`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("onExternalInitSection", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.helperFunctionName, `Выполнение хелпер функции при вызове keweb-ого лайтбокса от внешних ребят. Когда редактор открывается из Контур Бухагалтерии или ТО. Чтобы вызвать - надо в query params передать initSectionLightbox="Path" где Path - путь до раздела`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("unitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, ``), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("transferText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.localizedString, `Текст в лайтбоксе, который появляется по кнопке "Перенести данные"`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Количество множественных разделов при котором навигация сворачивается (в левой колонке отображаются не все экземпляры), как выглядит можешь посмотреть в ЕНВД при количестве разделов 2 больше 15`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadFufButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включает кнопку загрузить отчет в "Другие действия" в панели слева.`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.markupAttr)("fufSizeTooLargeErrorText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Описание ошибки для большого размера файла`), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadFufLightboxHideDemandNameButton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Отключает кнопку "Показать имя требования" внутри лайтбокса Загрузки файла.`), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("uploadInquiryButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.boolean, `Включает кнопку загрузить справки в панели слева. (только для 6ндфл и РСВ)`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("defaultUnitsCountForPaging", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Количество инстансов множественного раздела на котором включается паджинация раздела`), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("types", [_TypeListNode__WEBPACK_IMPORTED_MODULE_14__.TypeListNode]), _dec6(_class7 = (_class8 = class FormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.SugarNodeBase {
|
|
87217
87283
|
constructor(...args) {
|
|
87218
87284
|
super(...args);
|
|
@@ -99084,6 +99150,7 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
99084
99150
|
markupBuilder.prop(x => x.checkedValue).set(node.checkedValue);
|
|
99085
99151
|
markupBuilder.prop("data-tid").set(node.tid);
|
|
99086
99152
|
markupBuilder.prop(x => x.uncheckedValue).set(node.uncheckedValue);
|
|
99153
|
+
markupBuilder.prop(x => x.otherValue).set(node.otherValue);
|
|
99087
99154
|
if (node.disabled2 != undefined) {
|
|
99088
99155
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
|
|
99089
99156
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
@@ -99126,7 +99193,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
99126
99193
|
|
|
99127
99194
|
|
|
99128
99195
|
|
|
99129
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
99196
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
99130
99197
|
|
|
99131
99198
|
|
|
99132
99199
|
|
|
@@ -99135,7 +99202,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
|
|
|
99135
99202
|
|
|
99136
99203
|
|
|
99137
99204
|
|
|
99138
|
-
let CheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("checkbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Checkbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__.FocusManagementNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class CheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
|
|
99205
|
+
let CheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("checkbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Checkbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__.FocusManagementNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("otherValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class CheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
|
|
99139
99206
|
constructor(...args) {
|
|
99140
99207
|
super(...args);
|
|
99141
99208
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
|
|
@@ -99147,7 +99214,8 @@ let CheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
99147
99214
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor7, this);
|
|
99148
99215
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor8, this);
|
|
99149
99216
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor9, this);
|
|
99150
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
99217
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "otherValue", _descriptor10, this);
|
|
99218
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
|
|
99151
99219
|
}
|
|
99152
99220
|
getOwnPath() {
|
|
99153
99221
|
return this.dataBinding.getOwnPath();
|
|
@@ -99197,7 +99265,12 @@ let CheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
99197
99265
|
enumerable: true,
|
|
99198
99266
|
writable: true,
|
|
99199
99267
|
initializer: null
|
|
99200
|
-
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
99268
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "otherValue", [_dec11], {
|
|
99269
|
+
configurable: true,
|
|
99270
|
+
enumerable: true,
|
|
99271
|
+
writable: true,
|
|
99272
|
+
initializer: null
|
|
99273
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
|
|
99201
99274
|
configurable: true,
|
|
99202
99275
|
enumerable: true,
|
|
99203
99276
|
writable: true,
|
|
@@ -105713,21 +105786,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
105713
105786
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
105714
105787
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
105715
105788
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
105716
|
-
/* harmony import */ var _ElementProcessors_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ElementProcessors/CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
105717
|
-
|
|
105718
105789
|
|
|
105719
105790
|
|
|
105720
105791
|
|
|
105721
105792
|
|
|
105722
105793
|
class FLangNormalizationRulesBuilder {
|
|
105723
|
-
constructor(controlCustomizationContext, fetchFunctions, fetchFuncToFlangConverter
|
|
105794
|
+
constructor(controlCustomizationContext, fetchFunctions, fetchFuncToFlangConverter) {
|
|
105724
105795
|
this.controlCustomizationContext = void 0;
|
|
105725
105796
|
this.fetchFunctions = void 0;
|
|
105726
|
-
this.schemaRng = void 0;
|
|
105727
|
-
this.nodeTypeInfoHelper = void 0;
|
|
105728
105797
|
this.fetchFuncToFlangConverter = void 0;
|
|
105729
|
-
this.nodeTypeInfoHelper = nodeTypeInfoHelper;
|
|
105730
|
-
this.schemaRng = schemaRng;
|
|
105731
105798
|
this.fetchFuncToFlangConverter = fetchFuncToFlangConverter;
|
|
105732
105799
|
this.fetchFunctions = fetchFunctions;
|
|
105733
105800
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
@@ -105743,29 +105810,28 @@ class FLangNormalizationRulesBuilder {
|
|
|
105743
105810
|
valueInitializer(node, dataBinding, disabled, pathSuffix, fetchFunctionSuffix) {
|
|
105744
105811
|
var _dataBinding$defaultV;
|
|
105745
105812
|
const targetPathReference = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createFromMask)((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getResolvedBindingPath)(node), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each).joinWith((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(pathSuffix) ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createFromMask)(pathSuffix, false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.emptyModelPath)());
|
|
105746
|
-
const
|
|
105747
|
-
const sourceValueReference = this.getSourceValueReferenceWithCorrection(node, targetPathReference);
|
|
105813
|
+
const currentValueReference = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NoDepsExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference.toCurrentIteration(), "value"));
|
|
105748
105814
|
const defaultValue = (_dataBinding$defaultV = dataBinding.defaultValue) !== null && _dataBinding$defaultV !== void 0 ? _dataBinding$defaultV : "";
|
|
105749
105815
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(dataBinding.fetchfn)) {
|
|
105750
105816
|
try {
|
|
105751
105817
|
var _this$fetchFunctions$, _this$fetchFunctions$2;
|
|
105752
105818
|
const fetchFnText = (_this$fetchFunctions$ = (_this$fetchFunctions$2 = this.fetchFunctions.getFetchFunction(dataBinding.fetchfn + (fetchFunctionSuffix !== null && fetchFunctionSuffix !== void 0 ? fetchFunctionSuffix : ""))) === null || _this$fetchFunctions$2 === void 0 ? void 0 : _this$fetchFunctions$2.toString()) !== null && _this$fetchFunctions$ !== void 0 ? _this$fetchFunctions$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)();
|
|
105753
105819
|
const flangExpression = this.fetchFuncToFlangConverter.convert(`const x = ${fetchFnText}`);
|
|
105754
|
-
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NotEqExpression(
|
|
105820
|
+
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NotEqExpression(currentValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), currentValueReference, flangExpression), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue)));
|
|
105755
105821
|
} catch (e) {
|
|
105756
105822
|
// eslint-disable-next-line no-console
|
|
105757
105823
|
console.error(`fetchfn = "${dataBinding.fetchfn}". Не удалось преобразовать fetch-функцию во FLANG-выражение!`);
|
|
105758
105824
|
// eslint-disable-next-line no-console
|
|
105759
105825
|
console.error(e instanceof Error ? e.message : e);
|
|
105760
|
-
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"),
|
|
105826
|
+
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), currentValueReference);
|
|
105761
105827
|
}
|
|
105762
105828
|
}
|
|
105763
105829
|
let valueExpression = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue);
|
|
105764
105830
|
if (dataBinding.settings) {
|
|
105765
|
-
valueExpression = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(
|
|
105831
|
+
valueExpression = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(currentValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), valueExpression, currentValueReference);
|
|
105766
105832
|
}
|
|
105767
105833
|
if (!disabled && !dataBinding.settings) {
|
|
105768
|
-
valueExpression = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(
|
|
105834
|
+
valueExpression = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(currentValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), valueExpression, currentValueReference);
|
|
105769
105835
|
}
|
|
105770
105836
|
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), valueExpression);
|
|
105771
105837
|
}
|
|
@@ -105775,24 +105841,6 @@ class FLangNormalizationRulesBuilder {
|
|
|
105775
105841
|
yield new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "disabled"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true"));
|
|
105776
105842
|
}
|
|
105777
105843
|
}
|
|
105778
|
-
wrapExpressionWithCorrectionExpression(baseType, expr) {
|
|
105779
|
-
switch (baseType) {
|
|
105780
|
-
case "decimal":
|
|
105781
|
-
case "integer":
|
|
105782
|
-
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.PrepareNumberExpression(expr);
|
|
105783
|
-
default:
|
|
105784
|
-
return expr;
|
|
105785
|
-
}
|
|
105786
|
-
}
|
|
105787
|
-
getSourceValueReferenceWithCorrection(node, targetPathReference) {
|
|
105788
|
-
var _typeNode$base, _this$schemaRng$getTy;
|
|
105789
|
-
// eslint-disable-next-line
|
|
105790
|
-
const validationInfoSource = node === null || node === void 0 ? void 0 : node.validationInfo;
|
|
105791
|
-
const typeNode = validationInfoSource instanceof _ElementProcessors_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode ? this.nodeTypeInfoHelper.getTypeNode(validationInfoSource) : undefined;
|
|
105792
|
-
const baseType = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : (_this$schemaRng$getTy = this.schemaRng.getTypeNodeByPath(targetPathReference)) === null || _this$schemaRng$getTy === void 0 ? void 0 : _this$schemaRng$getTy.baseType;
|
|
105793
|
-
const sourceValueReference = new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NoDepsExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference.toCurrentIteration(), "value"));
|
|
105794
|
-
return baseType != undefined ? this.wrapExpressionWithCorrectionExpression(baseType, sourceValueReference) : sourceValueReference;
|
|
105795
|
-
}
|
|
105796
105844
|
}
|
|
105797
105845
|
|
|
105798
105846
|
/***/ }),
|
|
@@ -107744,8 +107792,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
107744
107792
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
107745
107793
|
/* harmony export */ "createDefaultSugarSerializer": () => (/* binding */ createDefaultSugarSerializer),
|
|
107746
107794
|
/* harmony export */ "getAllSugarValidationNodeClasses": () => (/* binding */ getAllSugarValidationNodeClasses),
|
|
107747
|
-
/* harmony export */ "getAllSugarNodeClasses": () => (/* binding */ getAllSugarNodeClasses)
|
|
107748
|
-
/* harmony export */ "getAllSchemaRngNodeClasses": () => (/* binding */ getAllSchemaRngNodeClasses)
|
|
107795
|
+
/* harmony export */ "getAllSugarNodeClasses": () => (/* binding */ getAllSugarNodeClasses)
|
|
107749
107796
|
/* harmony export */ });
|
|
107750
107797
|
/* harmony import */ var _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ElementProcessors/ValueEditors/Fias/FiasNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias/FiasNode.ts");
|
|
107751
107798
|
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
@@ -107868,8 +107915,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
107868
107915
|
/* harmony import */ var _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_118__ = __webpack_require__(/*! ../ElementProcessors/Action/Kebab/KebabNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/Kebab/KebabNode.ts");
|
|
107869
107916
|
/* harmony import */ var _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_119__ = __webpack_require__(/*! ../ElementProcessors/Helpers/Clue/InfoBlockNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Clue/InfoBlockNode.ts");
|
|
107870
107917
|
/* harmony import */ var _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_120__ = __webpack_require__(/*! ../ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
|
|
107871
|
-
/* harmony import */ var _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(/*! ../../../common/SchemaRng/Nodes/SchemaRngRoot */ "./Generator/src/common/SchemaRng/Nodes/SchemaRngRoot.ts");
|
|
107872
|
-
|
|
107873
107918
|
|
|
107874
107919
|
|
|
107875
107920
|
|
|
@@ -108116,9 +108161,6 @@ function getAllSugarValidationNodeClasses() {
|
|
|
108116
108161
|
function getAllSugarNodeClasses() {
|
|
108117
108162
|
return [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_95__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_90__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_90__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_90__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_31__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_32__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode, _ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_14__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_15__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_16__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_17__.ButtonNode, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_18__.DownloadExcelButtonNode, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_19__.DropDownButtonLoadExcelNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_20__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_21__.CheckboxNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_22__.ChoiceNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_23__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_24__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_91__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_25__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_26__.DateNode, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_28__.DiadocSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_29__.EntityNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_30__.ExpertNoteNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_38__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_39__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_40__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_41__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_42__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_43__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_44__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_49__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_45__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_50__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_51__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_52__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_54__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_53__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_56__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_55__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_57__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_58__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_59__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_61__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_62__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_63__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_64__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_66__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_68__.LinkNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_65__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_69__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_33__.MenuNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_71__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_72__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_73__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_70__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_74__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_75__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_76__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_77__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_48__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_78__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_79__.PicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_80__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_34__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_82__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_35__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_36__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_83__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_92__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_84__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_81__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_85__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_93__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_86__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_88__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_87__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_89__.SupNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_96__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_103__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_97__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_98__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_99__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_37__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_100__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_101__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_102__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_30__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_30__.MessageBoxNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_68__.LinkNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_30__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_67__.LineTextNode, _ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_114__.ShortNode, _ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_113__.LongNode, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_115__.FillHintNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_60__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_60__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_60__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_92__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_92__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_93__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode, _ElementProcessors_Action_Common_ActionNode__WEBPACK_IMPORTED_MODULE_117__.ActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode, _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_106__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_106__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_107__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_108__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_109__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_110__.UserPicklistNode, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_111__.TaxRebateNode, _ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_112__.BannerNode, _ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_116__.DateViewNode, _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_118__.KebabNode, _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_119__.InfoBlockNode, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_120__.SelectAllCheckboxNode];
|
|
108118
108163
|
}
|
|
108119
|
-
function getAllSchemaRngNodeClasses() {
|
|
108120
|
-
return [_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.SchemaRngElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.SchemaRngElementChoiceElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.SchemaRngInnerText, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.SchemaRngAttribute, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.SchemaRngType, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.MaxinclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.MininclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.FractiondigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.IntegerdigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.TotaldigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.MaxlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.MinlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.LengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.EnumerationTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_121__.PatternTypeCheck];
|
|
108121
|
-
}
|
|
108122
108164
|
|
|
108123
108165
|
/***/ }),
|
|
108124
108166
|
|
|
@@ -108590,6 +108632,7 @@ function getSettings(sugarRoot, gfv, additionalSettings, formJsonSettings) {
|
|
|
108590
108632
|
useExtendedErrorLog: false,
|
|
108591
108633
|
regions: [],
|
|
108592
108634
|
ieDeprecationWarningEnabled: sugarRoot.ieDeprecationWarningEnabled,
|
|
108635
|
+
compactActionPanel: sugarRoot.compactActionPanel,
|
|
108593
108636
|
enableCustomizationButton: sugarRoot.enableCustomizationButton,
|
|
108594
108637
|
__deleteMe__enableIndentToSingleUnit: sugarRoot.__deleteMe__enableIndentToSingleUnit,
|
|
108595
108638
|
isReadOnly: (_sugarRoot$isReadOnly = sugarRoot.isReadOnly) !== null && _sugarRoot$isReadOnly !== void 0 ? _sugarRoot$isReadOnly : false,
|