@kontur.candy/generator 5.29.0-form-in-form.5 → 5.30.0-calc2-args-changed.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +826 -912
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -900,24 +900,6 @@ webpackContext.id = "./Generator/src/generators/markupGenerator/ElementProcessor
|
|
|
900
900
|
|
|
901
901
|
/***/ }),
|
|
902
902
|
|
|
903
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm sync recursive .md$":
|
|
904
|
-
/*!********************************************************************************************************!*\
|
|
905
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/ sync .md$ ***!
|
|
906
|
-
\********************************************************************************************************/
|
|
907
|
-
/***/ ((module) => {
|
|
908
|
-
|
|
909
|
-
function webpackEmptyContext(req) {
|
|
910
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
911
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
912
|
-
throw e;
|
|
913
|
-
}
|
|
914
|
-
webpackEmptyContext.keys = () => ([]);
|
|
915
|
-
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
916
|
-
webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm sync recursive .md$";
|
|
917
|
-
module.exports = webpackEmptyContext;
|
|
918
|
-
|
|
919
|
-
/***/ }),
|
|
920
|
-
|
|
921
903
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Banner sync recursive .md$":
|
|
922
904
|
/*!************************************************************************************************!*\
|
|
923
905
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Banner/ sync .md$ ***!
|
|
@@ -60985,7 +60967,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60985
60967
|
/* harmony export */ getAsyncTextResultHandler: () => (/* binding */ getAsyncTextResultHandler),
|
|
60986
60968
|
/* harmony export */ getOperands: () => (/* binding */ getOperands),
|
|
60987
60969
|
/* harmony export */ getSum: () => (/* binding */ getSum),
|
|
60988
|
-
/* harmony export */ wrapDecimalOperand: () => (/* binding */ wrapDecimalOperand)
|
|
60970
|
+
/* harmony export */ wrapDecimalOperand: () => (/* binding */ wrapDecimalOperand),
|
|
60971
|
+
/* harmony export */ wrapDecimalOrUndefined: () => (/* binding */ wrapDecimalOrUndefined)
|
|
60989
60972
|
/* harmony export */ });
|
|
60990
60973
|
/* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.mjs");
|
|
60991
60974
|
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
@@ -61075,6 +61058,18 @@ function wrapDecimalOperand(value) {
|
|
|
61075
61058
|
}
|
|
61076
61059
|
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](0);
|
|
61077
61060
|
}
|
|
61061
|
+
function wrapDecimalOrUndefined(value) {
|
|
61062
|
+
if (typeof value === "number" && isFinite(value)) {
|
|
61063
|
+
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](value);
|
|
61064
|
+
}
|
|
61065
|
+
if (typeof value === "string" && /^-?\d+[.]?\d*$/.test(value)) {
|
|
61066
|
+
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](value);
|
|
61067
|
+
}
|
|
61068
|
+
if (value instanceof big_js__WEBPACK_IMPORTED_MODULE_0__["default"]) {
|
|
61069
|
+
return value;
|
|
61070
|
+
}
|
|
61071
|
+
return undefined;
|
|
61072
|
+
}
|
|
61078
61073
|
function getSum(values) {
|
|
61079
61074
|
let allValuesIsEmpty = true;
|
|
61080
61075
|
if (values.length === 0) {
|
|
@@ -75355,85 +75350,6 @@ function validateAutoCalculationsAst(ast) {
|
|
|
75355
75350
|
|
|
75356
75351
|
/***/ }),
|
|
75357
75352
|
|
|
75358
|
-
/***/ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/Calculator2/AutoCalculationsCalculator2Generator.ts":
|
|
75359
|
-
/*!*********************************************************************************************************************************************!*\
|
|
75360
|
-
!*** ./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/Calculator2/AutoCalculationsCalculator2Generator.ts ***!
|
|
75361
|
-
\*********************************************************************************************************************************************/
|
|
75362
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
75363
|
-
|
|
75364
|
-
"use strict";
|
|
75365
|
-
__webpack_require__.r(__webpack_exports__);
|
|
75366
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
75367
|
-
/* harmony export */ AutoCalculationsCalculator2Generator: () => (/* binding */ AutoCalculationsCalculator2Generator)
|
|
75368
|
-
/* harmony export */ });
|
|
75369
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
75370
|
-
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
75371
|
-
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
75372
|
-
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../Common/Errors */ "./Common/Errors.ts");
|
|
75373
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
75374
|
-
|
|
75375
|
-
|
|
75376
|
-
|
|
75377
|
-
|
|
75378
|
-
|
|
75379
|
-
class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.KCXmlGeneratorBase {
|
|
75380
|
-
constructor(schema, dataDeclarationHelper) {
|
|
75381
|
-
super(schema);
|
|
75382
|
-
this.dataDeclarationHelper = void 0;
|
|
75383
|
-
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
75384
|
-
}
|
|
75385
|
-
generate(formulas, options) {
|
|
75386
|
-
var _ref;
|
|
75387
|
-
const compiledFormulas = (_ref = formulas !== null && formulas !== void 0 ? formulas : []) === null || _ref === void 0 ? void 0 : _ref.map(x => this.compileFormula(x, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined);
|
|
75388
|
-
const compiledAggregationFunctions = this.compileAggregationDependencies(compiledFormulas.map(x => x.dependencies).flat());
|
|
75389
|
-
const indent = " ";
|
|
75390
|
-
const allItemsText = compiledFormulas.map(x => x.compiledFunction).concat(compiledAggregationFunctions).map(x => `${indent}form.calculator2.addCalculationFunction(${x});`).join("\n");
|
|
75391
|
-
const finalText = allItemsText.length > 0 ? `\n${allItemsText}\n` : "";
|
|
75392
|
-
const result = `export default function kcXmlAutoCalculationConfigurator (
|
|
75393
|
-
{ form, ap, CalculationFunction , KCCalculation, KCSumCalculation, KCCountCalculation, PathTokens }) {${finalText}}`;
|
|
75394
|
-
return result;
|
|
75395
|
-
}
|
|
75396
|
-
compileAllItemsIsEmptyCheckBlock(innerExpression, deps) {
|
|
75397
|
-
if (deps.length === 0) {
|
|
75398
|
-
return innerExpression;
|
|
75399
|
-
}
|
|
75400
|
-
const compiledArgumentsCondition = deps.map(x => x.toLegacyPath()).map(x => `(expression.argument("${x}") === "" || expression.argument("${x}") == undefined)`).join(" && ");
|
|
75401
|
-
const compiledBlock = `(${compiledArgumentsCondition} ? undefined : ${innerExpression})`;
|
|
75402
|
-
return compiledBlock;
|
|
75403
|
-
}
|
|
75404
|
-
compileFormula(formula, options) {
|
|
75405
|
-
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(formula.match), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
|
|
75406
|
-
const target = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(formula.target), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
75407
|
-
const dependencies = [];
|
|
75408
|
-
const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, formula.expression, dependencies);
|
|
75409
|
-
if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_3__.NotSupportedError) {
|
|
75410
|
-
if (options.skipNotSupportedFunction) {
|
|
75411
|
-
return undefined;
|
|
75412
|
-
} else {
|
|
75413
|
-
throw compiledExpression;
|
|
75414
|
-
}
|
|
75415
|
-
}
|
|
75416
|
-
const defaultValue = this.dataDeclarationHelper.getDefaultValue(target.toLegacyPath());
|
|
75417
|
-
const autoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(target.toLegacyPath());
|
|
75418
|
-
const disabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(target.toLegacyPath());
|
|
75419
|
-
const compiledTarget = this.modelPathInstance(target);
|
|
75420
|
-
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.map(x => ({
|
|
75421
|
-
path: x.asDependencyModelPath(),
|
|
75422
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
|
|
75423
|
-
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()
|
|
75424
|
-
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
75425
|
-
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
75426
|
-
const compiledExpressionWithCheck = this.compileAllItemsIsEmptyCheckBlock(compiledExpression, dependencyModelPaths.filter(x => !x.isIgnoreForChecks).map(x => x.path));
|
|
75427
|
-
const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpressionWithCheck}, "${defaultValue}")`;
|
|
75428
|
-
return {
|
|
75429
|
-
compiledFunction: `new CalculationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate}, ${autoField}, ${disabled})`,
|
|
75430
|
-
dependencies: dependencies
|
|
75431
|
-
};
|
|
75432
|
-
}
|
|
75433
|
-
}
|
|
75434
|
-
|
|
75435
|
-
/***/ }),
|
|
75436
|
-
|
|
75437
75353
|
/***/ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/FormulaProcessing/DataPath.ts":
|
|
75438
75354
|
/*!***********************************************************************************************************************!*\
|
|
75439
75355
|
!*** ./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/FormulaProcessing/DataPath.ts ***!
|
|
@@ -77687,6 +77603,723 @@ function getObjectPropertyName(property) {
|
|
|
77687
77603
|
|
|
77688
77604
|
/***/ }),
|
|
77689
77605
|
|
|
77606
|
+
/***/ "./Generator/src/generators/Calculator2Generator/AutoCalculationsCalculator2Generator.ts":
|
|
77607
|
+
/*!***********************************************************************************************!*\
|
|
77608
|
+
!*** ./Generator/src/generators/Calculator2Generator/AutoCalculationsCalculator2Generator.ts ***!
|
|
77609
|
+
\***********************************************************************************************/
|
|
77610
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
77611
|
+
|
|
77612
|
+
"use strict";
|
|
77613
|
+
__webpack_require__.r(__webpack_exports__);
|
|
77614
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
77615
|
+
/* harmony export */ AutoCalculationsCalculator2Generator: () => (/* binding */ AutoCalculationsCalculator2Generator)
|
|
77616
|
+
/* harmony export */ });
|
|
77617
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
77618
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
77619
|
+
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
77620
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
77621
|
+
/* harmony import */ var _FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormulaToCalculator2FunctionConverter */ "./Generator/src/generators/Calculator2Generator/FormulaToCalculator2FunctionConverter.ts");
|
|
77622
|
+
|
|
77623
|
+
|
|
77624
|
+
|
|
77625
|
+
|
|
77626
|
+
|
|
77627
|
+
class AutoCalculationsCalculator2Generator {
|
|
77628
|
+
constructor(schema, dataDeclarationHelper) {
|
|
77629
|
+
this.dataDeclarationHelper = void 0;
|
|
77630
|
+
this.schema = void 0;
|
|
77631
|
+
this.converter = void 0;
|
|
77632
|
+
this.schema = schema;
|
|
77633
|
+
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
77634
|
+
this.converter = new _FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.FormulaToCalculator2FunctionConverter(schema);
|
|
77635
|
+
}
|
|
77636
|
+
generate(formulas, options) {
|
|
77637
|
+
var _ref;
|
|
77638
|
+
const compiledFormulas = (_ref = formulas !== null && formulas !== void 0 ? formulas : []) === null || _ref === void 0 ? void 0 : _ref.map(x => this.compileFormula(x, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrUndefined);
|
|
77639
|
+
const compiledAggregationFunctions = (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.compileAggregationDependencies)(compiledFormulas.map(x => x.dependencies).flat());
|
|
77640
|
+
const indent = " ";
|
|
77641
|
+
const allItemsText = compiledFormulas.map(x => x.compiledFunction).concat(compiledAggregationFunctions).map(x => `${indent}form.calculator2.addCalculationFunction(${x});`).join("\n");
|
|
77642
|
+
const finalText = allItemsText.length > 0 ? `\n${allItemsText}\n` : "";
|
|
77643
|
+
const result = `export default function kcXmlAutoCalculationConfigurator (
|
|
77644
|
+
{ form, ap, CalculationFunction , KCCalculation, KCSumCalculation, KCCountCalculation, PathTokens }) {${finalText}}`;
|
|
77645
|
+
return result;
|
|
77646
|
+
}
|
|
77647
|
+
compileFormula(formula, options) {
|
|
77648
|
+
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)((0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.removeAttributePrefix)(formula.match), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
|
|
77649
|
+
const target = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)((0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.removeAttributePrefix)(formula.target), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
77650
|
+
const compileResult = this.converter.compileExpressionWithUnsupportedHandled(prefix, target, formula.expression);
|
|
77651
|
+
if (compileResult instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_2__.NotSupportedError) {
|
|
77652
|
+
if (options.skipNotSupportedFunction) {
|
|
77653
|
+
return undefined;
|
|
77654
|
+
} else {
|
|
77655
|
+
throw compileResult;
|
|
77656
|
+
}
|
|
77657
|
+
}
|
|
77658
|
+
const {
|
|
77659
|
+
body: compiledExpression,
|
|
77660
|
+
deps: dependencies
|
|
77661
|
+
} = compileResult;
|
|
77662
|
+
const defaultValue = this.dataDeclarationHelper.getDefaultValue(target.toLegacyPath());
|
|
77663
|
+
const autoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(target.toLegacyPath());
|
|
77664
|
+
const disabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(target.toLegacyPath());
|
|
77665
|
+
const compiledTarget = (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.modelPathInstance)(target);
|
|
77666
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.distinctBy(dependencies.map(x => ({
|
|
77667
|
+
path: x.asDependencyModelPath(),
|
|
77668
|
+
isIgnoreForChecks: (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.isDependencyWithoutChecks)(x),
|
|
77669
|
+
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()
|
|
77670
|
+
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
77671
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_4__.modelPathInstance)(x)).join(", ");
|
|
77672
|
+
const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpression}, "${defaultValue}")`;
|
|
77673
|
+
return {
|
|
77674
|
+
compiledFunction: `new CalculationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate}, ${autoField}, ${disabled})`,
|
|
77675
|
+
dependencies: dependencies
|
|
77676
|
+
};
|
|
77677
|
+
}
|
|
77678
|
+
}
|
|
77679
|
+
|
|
77680
|
+
/***/ }),
|
|
77681
|
+
|
|
77682
|
+
/***/ "./Generator/src/generators/Calculator2Generator/FormulaToCalculator2FunctionConverter.ts":
|
|
77683
|
+
/*!************************************************************************************************!*\
|
|
77684
|
+
!*** ./Generator/src/generators/Calculator2Generator/FormulaToCalculator2FunctionConverter.ts ***!
|
|
77685
|
+
\************************************************************************************************/
|
|
77686
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
77687
|
+
|
|
77688
|
+
"use strict";
|
|
77689
|
+
__webpack_require__.r(__webpack_exports__);
|
|
77690
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
77691
|
+
/* harmony export */ AggregationDependencyModelPath: () => (/* binding */ AggregationDependencyModelPath),
|
|
77692
|
+
/* harmony export */ DependencyWithoutChecks: () => (/* binding */ DependencyWithoutChecks),
|
|
77693
|
+
/* harmony export */ FormulaToCalculator2FunctionConverter: () => (/* binding */ FormulaToCalculator2FunctionConverter),
|
|
77694
|
+
/* harmony export */ RegularDependency: () => (/* binding */ RegularDependency),
|
|
77695
|
+
/* harmony export */ compileAggregationDependencies: () => (/* binding */ compileAggregationDependencies),
|
|
77696
|
+
/* harmony export */ createDependency: () => (/* binding */ createDependency),
|
|
77697
|
+
/* harmony export */ getAggregationPaths: () => (/* binding */ getAggregationPaths),
|
|
77698
|
+
/* harmony export */ getAggregationPathsRecursively: () => (/* binding */ getAggregationPathsRecursively),
|
|
77699
|
+
/* harmony export */ getArgumentDeps: () => (/* binding */ getArgumentDeps),
|
|
77700
|
+
/* harmony export */ getCompiledFuncWithArgs: () => (/* binding */ getCompiledFuncWithArgs),
|
|
77701
|
+
/* harmony export */ getRuntimeFunctionName: () => (/* binding */ getRuntimeFunctionName),
|
|
77702
|
+
/* harmony export */ isAggregationDependencyModelPath: () => (/* binding */ isAggregationDependencyModelPath),
|
|
77703
|
+
/* harmony export */ isDependencyWithoutChecks: () => (/* binding */ isDependencyWithoutChecks),
|
|
77704
|
+
/* harmony export */ modelPathInstance: () => (/* binding */ modelPathInstance),
|
|
77705
|
+
/* harmony export */ removeAttributePrefix: () => (/* binding */ removeAttributePrefix),
|
|
77706
|
+
/* harmony export */ removeMultiplicity: () => (/* binding */ removeMultiplicity)
|
|
77707
|
+
/* harmony export */ });
|
|
77708
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
77709
|
+
/* 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");
|
|
77710
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
77711
|
+
/* harmony import */ var _markupGenerator_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
77712
|
+
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
77713
|
+
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
77714
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
77715
|
+
|
|
77716
|
+
|
|
77717
|
+
|
|
77718
|
+
|
|
77719
|
+
|
|
77720
|
+
|
|
77721
|
+
|
|
77722
|
+
class RegularDependency {
|
|
77723
|
+
constructor(currentDependencyPath, eachDependencyPath) {
|
|
77724
|
+
this.currentDependencyPath = void 0;
|
|
77725
|
+
this.eachDependencyPath = void 0;
|
|
77726
|
+
this.eachDependencyPath = eachDependencyPath;
|
|
77727
|
+
this.currentDependencyPath = currentDependencyPath;
|
|
77728
|
+
}
|
|
77729
|
+
asDependencyModelPath() {
|
|
77730
|
+
const currentPart = this.currentDependencyPath.toCurrentIteration();
|
|
77731
|
+
return this.eachDependencyPath != undefined ? currentPart.joinWith(this.eachDependencyPath) : currentPart;
|
|
77732
|
+
}
|
|
77733
|
+
}
|
|
77734
|
+
class AggregationDependencyModelPath {
|
|
77735
|
+
constructor(type, modelPath, prefixModelPath, restModelPath) {
|
|
77736
|
+
this.type = void 0;
|
|
77737
|
+
this.modelPath = void 0;
|
|
77738
|
+
this.prefixModelPath = void 0;
|
|
77739
|
+
this.restModelPath = void 0;
|
|
77740
|
+
this.type = type;
|
|
77741
|
+
this.modelPath = modelPath;
|
|
77742
|
+
this.prefixModelPath = prefixModelPath;
|
|
77743
|
+
this.restModelPath = restModelPath;
|
|
77744
|
+
}
|
|
77745
|
+
asDependencyModelPath() {
|
|
77746
|
+
return this.modelPath.toCurrentIteration();
|
|
77747
|
+
}
|
|
77748
|
+
}
|
|
77749
|
+
class DependencyWithoutChecks extends RegularDependency {}
|
|
77750
|
+
function isAggregationDependencyModelPath(path) {
|
|
77751
|
+
return path instanceof AggregationDependencyModelPath;
|
|
77752
|
+
}
|
|
77753
|
+
function isDependencyWithoutChecks(path) {
|
|
77754
|
+
return path instanceof DependencyWithoutChecks;
|
|
77755
|
+
}
|
|
77756
|
+
function getArgumentDeps(targetFullPath, selectFullPath, aggregationType) {
|
|
77757
|
+
const pathDiffInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetFullPath, selectFullPath);
|
|
77758
|
+
const restPath = pathDiffInfo.differentPath;
|
|
77759
|
+
return !restPath.isContainIteration() ? new RegularDependency(selectFullPath) : new AggregationDependencyModelPath(aggregationType, pathDiffInfo.matchedPath.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...restPath.getPathPartsAsArray().filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken(x)), aggregationType])), pathDiffInfo.matchedPath, restPath);
|
|
77760
|
+
}
|
|
77761
|
+
function getRuntimeFunctionName(functionSelector) {
|
|
77762
|
+
return (0,_markupGenerator_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_3__.extractPath)(functionSelector.toString());
|
|
77763
|
+
}
|
|
77764
|
+
function getCompiledFuncWithArgs(functionSelector, args) {
|
|
77765
|
+
const funcName = getRuntimeFunctionName(functionSelector);
|
|
77766
|
+
const funcParams = args.join(", ");
|
|
77767
|
+
return `expression.${funcName}(${funcParams})`;
|
|
77768
|
+
}
|
|
77769
|
+
function getAggregationPathsRecursively(currentParts, restParts) {
|
|
77770
|
+
if (restParts.length === 0) {
|
|
77771
|
+
return [];
|
|
77772
|
+
}
|
|
77773
|
+
const firstRestItem = restParts[1];
|
|
77774
|
+
const nextRestParts = restParts.slice(2);
|
|
77775
|
+
const nextCurrentParts = [...currentParts, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each, firstRestItem];
|
|
77776
|
+
const restWithoutMultiple = nextRestParts.filter(x => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(x));
|
|
77777
|
+
const result = {
|
|
77778
|
+
aggregationPath: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.emptyModelPath)().joinWith(...currentParts, firstRestItem, ...restWithoutMultiple),
|
|
77779
|
+
targetPath: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.emptyModelPath)().joinWith(...nextCurrentParts, ...restWithoutMultiple),
|
|
77780
|
+
isTargetFinal: restWithoutMultiple.length === 0
|
|
77781
|
+
};
|
|
77782
|
+
const nextResults = getAggregationPathsRecursively(nextCurrentParts, nextRestParts);
|
|
77783
|
+
return [result, ...nextResults];
|
|
77784
|
+
}
|
|
77785
|
+
|
|
77786
|
+
// Example: Root/B/*/C/D/*/E = Root/B/C/D/E/Sum -> Root/B/*/C/D/E/Sum -> Root/B/*/C/D/*/E
|
|
77787
|
+
function getAggregationPaths(relativePath) {
|
|
77788
|
+
const splittedPath = [...relativePath.splitByMultiplicity()];
|
|
77789
|
+
return getAggregationPathsRecursively([splittedPath[0]], splittedPath.slice(1));
|
|
77790
|
+
}
|
|
77791
|
+
function createDependency(prefixModelPath, x, aggregationType) {
|
|
77792
|
+
return {
|
|
77793
|
+
aggPath: prefixModelPath.joinWith(x.aggregationPath).joinWith(aggregationType),
|
|
77794
|
+
type: aggregationType,
|
|
77795
|
+
dependencyPath: x.isTargetFinal ? prefixModelPath.joinWith(x.targetPath) : prefixModelPath.joinWith(x.targetPath).joinWith(aggregationType),
|
|
77796
|
+
isDependencyAggregation: !x.isTargetFinal
|
|
77797
|
+
};
|
|
77798
|
+
}
|
|
77799
|
+
function compileAggregationDependencies(dependencies) {
|
|
77800
|
+
const resultItems = dependencies.filter(isAggregationDependencyModelPath).map(dep => getAggregationPaths(dep.restModelPath).map(x => {
|
|
77801
|
+
switch (dep.type) {
|
|
77802
|
+
case "Sum":
|
|
77803
|
+
return [createDependency(dep.prefixModelPath, x, "Sum"), createDependency(dep.prefixModelPath, x, "Count")];
|
|
77804
|
+
case "Count":
|
|
77805
|
+
return [createDependency(dep.prefixModelPath, x, "Count")];
|
|
77806
|
+
default:
|
|
77807
|
+
{
|
|
77808
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureNever)(dep.type);
|
|
77809
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Not supported aggregation dependency: ${dep.type}`);
|
|
77810
|
+
}
|
|
77811
|
+
}
|
|
77812
|
+
})).flat(2);
|
|
77813
|
+
const distinctiveItems = Iterator.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_6__.IterUtils.distinctBy(resultItems, x => x.aggPath.toLegacyPath()));
|
|
77814
|
+
const sumCompiledFunctions = distinctiveItems.map(x => {
|
|
77815
|
+
const compiledDep = modelPathInstance(x.dependencyPath.toCurrentIteration());
|
|
77816
|
+
const compiledAggPath = modelPathInstance(x.aggPath);
|
|
77817
|
+
const compiledCountPath = modelPathInstance(x.aggPath.getParentPath().joinWith("Count").toCurrentIteration());
|
|
77818
|
+
const compiledDelegate = x.type === "Sum" ? `context => KCSumCalculation.execute(context, ${compiledAggPath},${compiledDep}, ${compiledCountPath}, "")` : x.type === "Count" ? `context => KCCountCalculation.execute(context, ${compiledAggPath}, ${compiledDep}, ${x.isDependencyAggregation}, "")` : "";
|
|
77819
|
+
const compiledDeps = [compiledDep, ...(x.type === "Sum" ? [compiledCountPath] : [])].join(", ");
|
|
77820
|
+
return `new CalculationFunction(${compiledAggPath}, [${compiledDeps}], ${compiledDelegate}, false, false)`;
|
|
77821
|
+
});
|
|
77822
|
+
return [...sumCompiledFunctions];
|
|
77823
|
+
}
|
|
77824
|
+
function removeAttributePrefix(pathPart) {
|
|
77825
|
+
return pathPart.replace(/\@/g, "");
|
|
77826
|
+
}
|
|
77827
|
+
function removeMultiplicity(path) {
|
|
77828
|
+
return path.replace(/\/\*/g, "");
|
|
77829
|
+
}
|
|
77830
|
+
function modelPathInstance(target) {
|
|
77831
|
+
return `ap([${[...target.getPathParts()].map(x => {
|
|
77832
|
+
if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
|
|
77833
|
+
return "PathTokens.each";
|
|
77834
|
+
}
|
|
77835
|
+
if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current) {
|
|
77836
|
+
return "PathTokens.current";
|
|
77837
|
+
}
|
|
77838
|
+
return JSON.stringify(x);
|
|
77839
|
+
}).join(", ")}])`;
|
|
77840
|
+
}
|
|
77841
|
+
|
|
77842
|
+
/*
|
|
77843
|
+
Метод вычисляет зависимости для оператора.
|
|
77844
|
+
Для того, чтобы калькулятор корректно реагировал на измнения необходимо сделать корректные зависимости:
|
|
77845
|
+
1) Если исходная множественность и множественность по которой строится группа совпадают, то необходио
|
|
77846
|
+
для последней звёздочки построить зависимость не через PathTokens.current, а через PathTokens.each,
|
|
77847
|
+
т.к. в таком случае пересчёт groupSum/groupCount должен тригетрися при изменении любого элемента в множественности, а не только текущего.
|
|
77848
|
+
2) Если множественности не совпадают, то количество звёздочек (getIterationRank()) в общей части будет разным и ничего дополнительно делать не нужно,
|
|
77849
|
+
в зависимостях в CalculationFunction в данном случае все звёздочки превратятся в PathTokens.current.
|
|
77850
|
+
*/
|
|
77851
|
+
function calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourcePath) {
|
|
77852
|
+
const diffPaths = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetKeyPath, sourcePath);
|
|
77853
|
+
if (targetKeyPath.getIterationRank() > diffPaths.matchedPath.getIterationRank()) {
|
|
77854
|
+
return {
|
|
77855
|
+
currentDepsPath: diffPaths.matchedPath,
|
|
77856
|
+
eachDepsPath: diffPaths.differentPath
|
|
77857
|
+
};
|
|
77858
|
+
}
|
|
77859
|
+
const targetPathParts = diffPaths.matchedPath.getPathPartsAsArray();
|
|
77860
|
+
const lastStarIndex = targetPathParts.lastIndexOf(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
77861
|
+
const currentDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(targetPathParts.slice(0, lastStarIndex));
|
|
77862
|
+
let eachDepsPath;
|
|
77863
|
+
if (lastStarIndex === -1) {
|
|
77864
|
+
eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...diffPaths.matchedPath.getPathParts(), ...diffPaths.differentPath.getPathParts()]);
|
|
77865
|
+
} else {
|
|
77866
|
+
var _targetPathParts$last;
|
|
77867
|
+
eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([(_targetPathParts$last = targetPathParts[lastStarIndex]) !== null && _targetPathParts$last !== void 0 ? _targetPathParts$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("path in groupSum is incorrect. Cannot create DepsPath for " + targetPathParts.join("/")), ...targetPathParts.slice(lastStarIndex + 1), ...diffPaths.differentPath.getPathParts()]);
|
|
77868
|
+
}
|
|
77869
|
+
return {
|
|
77870
|
+
currentDepsPath: currentDepsPath,
|
|
77871
|
+
eachDepsPath: eachDepsPath
|
|
77872
|
+
};
|
|
77873
|
+
}
|
|
77874
|
+
function makeResult(body, newDeps) {
|
|
77875
|
+
return {
|
|
77876
|
+
body: body,
|
|
77877
|
+
deps: newDeps
|
|
77878
|
+
};
|
|
77879
|
+
}
|
|
77880
|
+
function makeUnhandledResult() {
|
|
77881
|
+
return {
|
|
77882
|
+
body: "null",
|
|
77883
|
+
deps: []
|
|
77884
|
+
};
|
|
77885
|
+
}
|
|
77886
|
+
class FormulaToCalculator2FunctionConverter {
|
|
77887
|
+
constructor(schema) {
|
|
77888
|
+
this.schema = void 0;
|
|
77889
|
+
this.schema = schema;
|
|
77890
|
+
}
|
|
77891
|
+
compileExpressionWithUnsupportedHandled(prefix, targetFullPath, expression) {
|
|
77892
|
+
try {
|
|
77893
|
+
return this.compile(prefix, targetFullPath, expression);
|
|
77894
|
+
} catch (e) {
|
|
77895
|
+
if (e instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError) {
|
|
77896
|
+
return e;
|
|
77897
|
+
}
|
|
77898
|
+
throw e;
|
|
77899
|
+
}
|
|
77900
|
+
}
|
|
77901
|
+
getAdjustedNormalizedPath(prefix, path) {
|
|
77902
|
+
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(removeMultiplicity(removeAttributePrefix(path)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
77903
|
+
return modelPath;
|
|
77904
|
+
}
|
|
77905
|
+
getModelPath(prefix, path) {
|
|
77906
|
+
return this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(removeAttributePrefix(removeMultiplicity(path)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
77907
|
+
}
|
|
77908
|
+
compile(prefix, targetFullPath, expression) {
|
|
77909
|
+
const result = this.compileExpression(prefix, targetFullPath, expression);
|
|
77910
|
+
return result;
|
|
77911
|
+
}
|
|
77912
|
+
|
|
77913
|
+
/* eslint-disable @typescript-eslint/unbound-method */
|
|
77914
|
+
compileExpression(prefix, targetFullPath, expression) {
|
|
77915
|
+
const gcf = (selector, ...args) => getCompiledFuncWithArgs(selector, args);
|
|
77916
|
+
const getCompiledArgs = expressions => {
|
|
77917
|
+
const compiledExpressions = expressions.map(arg => this.compileExpression(prefix, targetFullPath, arg));
|
|
77918
|
+
const compiledArgs = compiledExpressions.map(x => x.body);
|
|
77919
|
+
const compiledJoinedArgs = compiledArgs.join(",");
|
|
77920
|
+
const allDeps = compiledExpressions.map(x => x.deps).flat();
|
|
77921
|
+
return {
|
|
77922
|
+
compiledArgs: compiledArgs,
|
|
77923
|
+
compiledJoinedArgs: compiledJoinedArgs,
|
|
77924
|
+
allDeps: allDeps
|
|
77925
|
+
};
|
|
77926
|
+
};
|
|
77927
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArgumentExpression || expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultySumExpression) {
|
|
77928
|
+
const modelPath = this.getAdjustedNormalizedPath(prefix, expression.select);
|
|
77929
|
+
const argumentDependency = getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
77930
|
+
const finalPath = argumentDependency.asDependencyModelPath();
|
|
77931
|
+
return makeResult(gcf(x => x.argument, `"${finalPath.toLegacyPath()}"`), [argumentDependency]);
|
|
77932
|
+
}
|
|
77933
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
|
|
77934
|
+
const modelPath = this.getAdjustedNormalizedPath(prefix, expression.select);
|
|
77935
|
+
return makeResult(gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`), [new RegularDependency(modelPath)]);
|
|
77936
|
+
}
|
|
77937
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
77938
|
+
const modelPath = this.getAdjustedNormalizedPath(prefix, expression.select);
|
|
77939
|
+
return makeResult(gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`), [new RegularDependency(modelPath)]);
|
|
77940
|
+
}
|
|
77941
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
77942
|
+
const modelPath = this.getAdjustedNormalizedPath(prefix, expression.select);
|
|
77943
|
+
return makeResult(gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`), [new RegularDependency(modelPath)]);
|
|
77944
|
+
}
|
|
77945
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
77946
|
+
const modelPath = this.getAdjustedNormalizedPath(prefix, expression.select);
|
|
77947
|
+
return makeResult(gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`), [new RegularDependency(modelPath)]);
|
|
77948
|
+
}
|
|
77949
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
77950
|
+
const bikPath = this.getAdjustedNormalizedPath(prefix, expression.bik);
|
|
77951
|
+
const accountPath = this.getAdjustedNormalizedPath(prefix, expression.account);
|
|
77952
|
+
return makeResult(gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`), [new RegularDependency(bikPath), new RegularDependency(accountPath)]);
|
|
77953
|
+
}
|
|
77954
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
77955
|
+
var _expression$withNullO;
|
|
77956
|
+
const modelPath = this.getAdjustedNormalizedPath(prefix, expression.select);
|
|
77957
|
+
let finalPath = modelPath;
|
|
77958
|
+
const deps = [];
|
|
77959
|
+
if (targetFullPath.isContainIteration()) {
|
|
77960
|
+
const argumentDependency = getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
77961
|
+
deps.push(argumentDependency);
|
|
77962
|
+
finalPath = argumentDependency.asDependencyModelPath();
|
|
77963
|
+
} else {
|
|
77964
|
+
deps.push(new RegularDependency(modelPath));
|
|
77965
|
+
}
|
|
77966
|
+
return makeResult(gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`), deps);
|
|
77967
|
+
}
|
|
77968
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
77969
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
77970
|
+
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0]);
|
|
77971
|
+
const compiledBody = this.compileExpression(prefix, targetFullPath, expression.expressions[1]);
|
|
77972
|
+
return makeResult(gcf(x => x.when, compiledCondition.body, `() => ${compiledBody.body}`), [...compiledCondition.deps, ...compiledBody.deps]);
|
|
77973
|
+
}
|
|
77974
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaOrExpression) {
|
|
77975
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 1);
|
|
77976
|
+
const {
|
|
77977
|
+
compiledJoinedArgs,
|
|
77978
|
+
allDeps
|
|
77979
|
+
} = getCompiledArgs(expression.arguments);
|
|
77980
|
+
return makeResult(gcf(x => x.or, `[${compiledJoinedArgs}]`), allDeps);
|
|
77981
|
+
}
|
|
77982
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAndExpression) {
|
|
77983
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 1);
|
|
77984
|
+
const {
|
|
77985
|
+
compiledJoinedArgs,
|
|
77986
|
+
allDeps
|
|
77987
|
+
} = getCompiledArgs(expression.arguments);
|
|
77988
|
+
return makeResult(gcf(x => x.and, `[${compiledJoinedArgs}]`), allDeps);
|
|
77989
|
+
}
|
|
77990
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNotExpression) {
|
|
77991
|
+
const innerExpression = this.compileExpression(prefix, targetFullPath, expression.argument);
|
|
77992
|
+
return makeResult(gcf(x => x.not, innerExpression.body), innerExpression.deps);
|
|
77993
|
+
}
|
|
77994
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaEqExpression) {
|
|
77995
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
77996
|
+
const {
|
|
77997
|
+
compiledArgs,
|
|
77998
|
+
allDeps
|
|
77999
|
+
} = getCompiledArgs(expression.arguments);
|
|
78000
|
+
return makeResult(gcf(x => x.eq, ...compiledArgs), allDeps);
|
|
78001
|
+
}
|
|
78002
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConstExpression) {
|
|
78003
|
+
return makeResult(gcf(x => x.const, `"${expression.value}"`), []);
|
|
78004
|
+
}
|
|
78005
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGtExpression) {
|
|
78006
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
78007
|
+
const {
|
|
78008
|
+
compiledArgs,
|
|
78009
|
+
allDeps
|
|
78010
|
+
} = getCompiledArgs(expression.arguments);
|
|
78011
|
+
return makeResult(gcf(x => x.gt, ...compiledArgs), allDeps);
|
|
78012
|
+
}
|
|
78013
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGeExpression) {
|
|
78014
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
78015
|
+
const {
|
|
78016
|
+
compiledArgs,
|
|
78017
|
+
allDeps
|
|
78018
|
+
} = getCompiledArgs(expression.arguments);
|
|
78019
|
+
return makeResult(gcf(x => x.ge, ...compiledArgs), allDeps);
|
|
78020
|
+
}
|
|
78021
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaLtExpression) {
|
|
78022
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
78023
|
+
const {
|
|
78024
|
+
compiledArgs,
|
|
78025
|
+
allDeps
|
|
78026
|
+
} = getCompiledArgs(expression.arguments);
|
|
78027
|
+
return makeResult(gcf(x => x.lt, ...compiledArgs), allDeps);
|
|
78028
|
+
}
|
|
78029
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaLeExpression) {
|
|
78030
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
78031
|
+
const {
|
|
78032
|
+
compiledArgs,
|
|
78033
|
+
allDeps
|
|
78034
|
+
} = getCompiledArgs(expression.arguments);
|
|
78035
|
+
return makeResult(gcf(x => x.le, ...compiledArgs), allDeps);
|
|
78036
|
+
}
|
|
78037
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaLengthExpression) {
|
|
78038
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument);
|
|
78039
|
+
return makeResult(gcf(x => x.length, compiledArgument.body), compiledArgument.deps);
|
|
78040
|
+
}
|
|
78041
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRegexMatchExpression) {
|
|
78042
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument);
|
|
78043
|
+
const preparedPattern = expression.pattern.replace(/"/g, '\\"').replace(/\\/g, "\\\\");
|
|
78044
|
+
return makeResult(gcf(x => x.regexMatch, compiledArgument.body, `"${preparedPattern}"`), compiledArgument.deps);
|
|
78045
|
+
}
|
|
78046
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultiplyExpression) {
|
|
78047
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
78048
|
+
const {
|
|
78049
|
+
compiledJoinedArgs,
|
|
78050
|
+
allDeps
|
|
78051
|
+
} = getCompiledArgs(expression.arguments);
|
|
78052
|
+
return makeResult(gcf(x => x.multiply, `[${compiledJoinedArgs}]`), allDeps);
|
|
78053
|
+
}
|
|
78054
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDivisionExpression) {
|
|
78055
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
78056
|
+
const {
|
|
78057
|
+
compiledJoinedArgs,
|
|
78058
|
+
allDeps
|
|
78059
|
+
} = getCompiledArgs(expression.arguments);
|
|
78060
|
+
return makeResult(gcf(x => x.division, `[${compiledJoinedArgs}]`), allDeps);
|
|
78061
|
+
}
|
|
78062
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumExpression) {
|
|
78063
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 1);
|
|
78064
|
+
const {
|
|
78065
|
+
compiledJoinedArgs,
|
|
78066
|
+
allDeps
|
|
78067
|
+
} = getCompiledArgs(expression.arguments);
|
|
78068
|
+
return makeResult(gcf(x => x.sum, `[${compiledJoinedArgs}]`), allDeps);
|
|
78069
|
+
}
|
|
78070
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMinusExpression) {
|
|
78071
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78072
|
+
return makeResult(gcf(x => x.minus, compiledArgument.body), compiledArgument.deps);
|
|
78073
|
+
}
|
|
78074
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRoundExpression) {
|
|
78075
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78076
|
+
return makeResult(gcf(x => x.round, compiledArgument.body, `${expression.fractionalDigits}`), compiledArgument.deps);
|
|
78077
|
+
}
|
|
78078
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaFloorExpression) {
|
|
78079
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78080
|
+
return makeResult(gcf(x => x.floor, compiledArgument.body), compiledArgument.deps);
|
|
78081
|
+
}
|
|
78082
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAbsExpression) {
|
|
78083
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78084
|
+
return makeResult(gcf(x => x.abs, compiledArgument.body), compiledArgument.deps);
|
|
78085
|
+
}
|
|
78086
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaXAbsExpression) {
|
|
78087
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78088
|
+
return makeResult(gcf(x => x.xabs, compiledArgument.body), compiledArgument.deps);
|
|
78089
|
+
}
|
|
78090
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaChooseExpression) {
|
|
78091
|
+
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.ifNode.condition);
|
|
78092
|
+
const compiledThen = this.compileExpression(prefix, targetFullPath, expression.thenNode.expression);
|
|
78093
|
+
const compiledElse = this.compileExpression(prefix, targetFullPath, expression.elseNode.expression);
|
|
78094
|
+
return makeResult(gcf(x => x.choose, compiledCondition.body, `() => ${compiledThen.body}`, `() => ${compiledElse.body}`), [compiledCondition.deps, compiledThen.deps, compiledElse.deps].flat());
|
|
78095
|
+
}
|
|
78096
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateNowExpression) {
|
|
78097
|
+
return makeResult(gcf(x => x.dateNow), []);
|
|
78098
|
+
}
|
|
78099
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDaysInMonthExpression) {
|
|
78100
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78101
|
+
return makeResult(gcf(x => x.getDaysInMonth, compiledArgument.body), compiledArgument.deps);
|
|
78102
|
+
}
|
|
78103
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDayExpression) {
|
|
78104
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78105
|
+
return makeResult(gcf(x => x.getDay, compiledArgument.body), compiledArgument.deps);
|
|
78106
|
+
}
|
|
78107
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetMonthExpression) {
|
|
78108
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78109
|
+
return makeResult(gcf(x => x.getMonth, compiledArgument.body), compiledArgument.deps);
|
|
78110
|
+
}
|
|
78111
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetYearExpression) {
|
|
78112
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78113
|
+
return makeResult(gcf(x => x.getYear, compiledArgument.body), compiledArgument.deps);
|
|
78114
|
+
}
|
|
78115
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsDateExpression) {
|
|
78116
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78117
|
+
return makeResult(gcf(x => x.isDate, compiledArgument.body), compiledArgument.deps);
|
|
78118
|
+
}
|
|
78119
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDifferenceInMonthsExpression) {
|
|
78120
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
78121
|
+
const {
|
|
78122
|
+
compiledJoinedArgs,
|
|
78123
|
+
allDeps
|
|
78124
|
+
} = getCompiledArgs(expression.arguments);
|
|
78125
|
+
return makeResult(gcf(x => x.differenceInMonths, `[${compiledJoinedArgs}]`), allDeps);
|
|
78126
|
+
}
|
|
78127
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDifferenceInDaysExpression) {
|
|
78128
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
78129
|
+
const {
|
|
78130
|
+
compiledJoinedArgs,
|
|
78131
|
+
allDeps
|
|
78132
|
+
} = getCompiledArgs(expression.arguments);
|
|
78133
|
+
return makeResult(gcf(x => x.differenceInDays, `[${compiledJoinedArgs}]`), allDeps);
|
|
78134
|
+
}
|
|
78135
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddDaysExpression) {
|
|
78136
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78137
|
+
return makeResult(gcf(x => x.addDays, `${path.body}, ${expression.amount}`), path.deps);
|
|
78138
|
+
}
|
|
78139
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddMonthsExpression) {
|
|
78140
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78141
|
+
return makeResult(gcf(x => x.addMonths, `${path.body}, ${expression.amount}`), path.deps);
|
|
78142
|
+
}
|
|
78143
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddYearsExpression) {
|
|
78144
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78145
|
+
return makeResult(gcf(x => x.addYears, `${path.body}, ${expression.amount}`), path.deps);
|
|
78146
|
+
}
|
|
78147
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateToStringExpression) {
|
|
78148
|
+
const path = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78149
|
+
return makeResult(gcf(x => x.dateToString, `${path.body}, "${!!expression.format ? expression.format : "dd.MM.yyyy"}"`), path.deps);
|
|
78150
|
+
}
|
|
78151
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateTimeExpression) {
|
|
78152
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78153
|
+
return makeResult(gcf(x => x.dateTime, compiledArgument.body), compiledArgument.deps);
|
|
78154
|
+
}
|
|
78155
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSubstringExpression) {
|
|
78156
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrUndefined)(expression.expression);
|
|
78157
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression);
|
|
78158
|
+
return makeResult(gcf(x => x.substring, `${compiledArgument.body}`, `${expression.start}`, `${expression.length}`), compiledArgument.deps);
|
|
78159
|
+
}
|
|
78160
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumExpression) {
|
|
78161
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
78162
|
+
const {
|
|
78163
|
+
compiledJoinedArgs,
|
|
78164
|
+
allDeps
|
|
78165
|
+
} = getCompiledArgs(expression.arguments);
|
|
78166
|
+
return makeResult(gcf(x => x.sum, `[${compiledJoinedArgs}]`), allDeps);
|
|
78167
|
+
}
|
|
78168
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupSumExpression) {
|
|
78169
|
+
const targetKeys = this.compileExpression(prefix, targetFullPath, expression.targetKeys);
|
|
78170
|
+
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
78171
|
+
const sourceKeyDeps = calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceKeyPath);
|
|
78172
|
+
const sourceValuePath = this.getModelPath(prefix, expression.sourceValuePath);
|
|
78173
|
+
const sourceValueDeps = calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceValuePath);
|
|
78174
|
+
return makeResult(gcf(x => x.groupSum, `${targetKeys.body}, "${sourceKeyPath}", "${sourceValuePath}"`), [new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath), new DependencyWithoutChecks(sourceValueDeps.currentDepsPath, sourceValueDeps.eachDepsPath), ...targetKeys.deps]);
|
|
78175
|
+
}
|
|
78176
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupCountExpression) {
|
|
78177
|
+
const targetKeys = this.compileExpression(prefix, targetFullPath, expression.targetKeys);
|
|
78178
|
+
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
78179
|
+
const sourceKeyDeps = calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceKeyPath);
|
|
78180
|
+
return makeResult(gcf(x => x.groupCount, `${targetKeys.body}, "${sourceKeyPath}"`), [new DependencyWithoutChecks(targetFullPath), new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath), ...targetKeys.deps]);
|
|
78181
|
+
}
|
|
78182
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression) {
|
|
78183
|
+
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
78184
|
+
const {
|
|
78185
|
+
compiledJoinedArgs,
|
|
78186
|
+
allDeps
|
|
78187
|
+
} = getCompiledArgs(expression.arguments);
|
|
78188
|
+
return makeResult(gcf(x => x.concat, `[${compiledJoinedArgs}]`), allDeps);
|
|
78189
|
+
}
|
|
78190
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNewLineExpression) {
|
|
78191
|
+
return makeResult(gcf(x => x.const, `"\\r\\n"`), []);
|
|
78192
|
+
}
|
|
78193
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaOneOfExpression) {
|
|
78194
|
+
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument);
|
|
78195
|
+
const {
|
|
78196
|
+
compiledJoinedArgs,
|
|
78197
|
+
allDeps
|
|
78198
|
+
} = getCompiledArgs(expression.items.expressions);
|
|
78199
|
+
return makeResult(gcf(x => x.oneOf, compiledArgument.body, `[${compiledJoinedArgs}]`), [...compiledArgument.deps, ...allDeps]);
|
|
78200
|
+
}
|
|
78201
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArrayExpression) {
|
|
78202
|
+
const {
|
|
78203
|
+
compiledJoinedArgs,
|
|
78204
|
+
allDeps
|
|
78205
|
+
} = getCompiledArgs(expression.items);
|
|
78206
|
+
return makeResult(`JSON.stringify([${compiledJoinedArgs}])`, allDeps);
|
|
78207
|
+
}
|
|
78208
|
+
// -- не работает в рантайм калькуляторе
|
|
78209
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetPicklistValuesExpression) {
|
|
78210
|
+
return makeUnhandledResult();
|
|
78211
|
+
}
|
|
78212
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaFirstOrDefaultExpression) {
|
|
78213
|
+
return makeUnhandledResult();
|
|
78214
|
+
}
|
|
78215
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHashSetExpression) {
|
|
78216
|
+
return makeUnhandledResult();
|
|
78217
|
+
}
|
|
78218
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNoDepsNode) {
|
|
78219
|
+
return makeUnhandledResult();
|
|
78220
|
+
}
|
|
78221
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHasAutoFlagExpression) {
|
|
78222
|
+
return makeUnhandledResult();
|
|
78223
|
+
}
|
|
78224
|
+
// -----
|
|
78225
|
+
|
|
78226
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
78227
|
+
}
|
|
78228
|
+
/* eslint-enable @typescript-eslint/unbound-method */
|
|
78229
|
+
}
|
|
78230
|
+
|
|
78231
|
+
/***/ }),
|
|
78232
|
+
|
|
78233
|
+
/***/ "./Generator/src/generators/Calculator2Generator/ValidationsCalculator2Generator.ts":
|
|
78234
|
+
/*!******************************************************************************************!*\
|
|
78235
|
+
!*** ./Generator/src/generators/Calculator2Generator/ValidationsCalculator2Generator.ts ***!
|
|
78236
|
+
\******************************************************************************************/
|
|
78237
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
78238
|
+
|
|
78239
|
+
"use strict";
|
|
78240
|
+
__webpack_require__.r(__webpack_exports__);
|
|
78241
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
78242
|
+
/* harmony export */ ValidationsCalculator2Generator: () => (/* binding */ ValidationsCalculator2Generator)
|
|
78243
|
+
/* harmony export */ });
|
|
78244
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
78245
|
+
/* 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");
|
|
78246
|
+
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
78247
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
|
|
78248
|
+
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
78249
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
78250
|
+
/* harmony import */ var _FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FormulaToCalculator2FunctionConverter */ "./Generator/src/generators/Calculator2Generator/FormulaToCalculator2FunctionConverter.ts");
|
|
78251
|
+
|
|
78252
|
+
|
|
78253
|
+
|
|
78254
|
+
|
|
78255
|
+
|
|
78256
|
+
|
|
78257
|
+
|
|
78258
|
+
const emptyResult = `
|
|
78259
|
+
export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
|
|
78260
|
+
`;
|
|
78261
|
+
class ValidationsCalculator2Generator {
|
|
78262
|
+
constructor(schema) {
|
|
78263
|
+
this.converter = void 0;
|
|
78264
|
+
this.schema = void 0;
|
|
78265
|
+
this.schema = schema;
|
|
78266
|
+
this.converter = new _FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.FormulaToCalculator2FunctionConverter(schema);
|
|
78267
|
+
}
|
|
78268
|
+
generate(kcXmlConditions, options) {
|
|
78269
|
+
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.isNotNullOrUndefined).toArray();
|
|
78270
|
+
if (compiledConditions.length === 0) {
|
|
78271
|
+
// NOTE Просто, чтоб не падали аппрувал тесты
|
|
78272
|
+
return emptyResult;
|
|
78273
|
+
}
|
|
78274
|
+
const result = `export default function kcXmlValidationConfigurator ({ form, ap, ValidationFunction, KCCondition, PathTokens }) {
|
|
78275
|
+
${compiledConditions.map(x => `form.calculator2.addCalculationFunction(${x});`).join("\n")}
|
|
78276
|
+
}
|
|
78277
|
+
`;
|
|
78278
|
+
return result;
|
|
78279
|
+
}
|
|
78280
|
+
compileCondition(condition, options) {
|
|
78281
|
+
var _condition$descriptio, _condition$errorLevel;
|
|
78282
|
+
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)((0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.removeMultiplicity)((0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.removeAttributePrefix)(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
|
|
78283
|
+
const target = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)((0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.removeMultiplicity)((0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.removeAttributePrefix)(condition.target)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
78284
|
+
const compileResult = this.converter.compileExpressionWithUnsupportedHandled(prefix, target, condition.expression);
|
|
78285
|
+
if (compileResult instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_4__.NotSupportedError) {
|
|
78286
|
+
if (options.skipNotSupportedFunction) {
|
|
78287
|
+
return undefined;
|
|
78288
|
+
} else {
|
|
78289
|
+
throw compileResult;
|
|
78290
|
+
}
|
|
78291
|
+
}
|
|
78292
|
+
const {
|
|
78293
|
+
body: compiledExpression,
|
|
78294
|
+
deps
|
|
78295
|
+
} = compileResult;
|
|
78296
|
+
const compiledDescriptionParts = (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_3__.splitConditionDescriptionToParts)((_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message");
|
|
78297
|
+
let concatDescription;
|
|
78298
|
+
if (compiledDescriptionParts.length > 1) {
|
|
78299
|
+
concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression();
|
|
78300
|
+
concatDescription.arguments = compiledDescriptionParts;
|
|
78301
|
+
} else {
|
|
78302
|
+
concatDescription = compiledDescriptionParts[0];
|
|
78303
|
+
}
|
|
78304
|
+
const {
|
|
78305
|
+
body: compiledDescription,
|
|
78306
|
+
deps: descriptionDeps
|
|
78307
|
+
} = this.converter.compile(prefix, target, concatDescription);
|
|
78308
|
+
const allDeps = deps.concat(...descriptionDeps);
|
|
78309
|
+
const compiledTarget = (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.modelPathInstance)(target);
|
|
78310
|
+
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(allDeps.map(x => ({
|
|
78311
|
+
path: x.asDependencyModelPath(),
|
|
78312
|
+
isIgnoreForChecks: (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.isDependencyWithoutChecks)(x),
|
|
78313
|
+
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()
|
|
78314
|
+
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
78315
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => (0,_FormulaToCalculator2FunctionConverter__WEBPACK_IMPORTED_MODULE_6__.modelPathInstance)(x)).join(", ");
|
|
78316
|
+
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `(expression) => ${compiledDescription}, "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
78317
|
+
return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
|
|
78318
|
+
}
|
|
78319
|
+
}
|
|
78320
|
+
|
|
78321
|
+
/***/ }),
|
|
78322
|
+
|
|
77690
78323
|
/***/ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts":
|
|
77691
78324
|
/*!***********************************************************************************************!*\
|
|
77692
78325
|
!*** ./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts ***!
|
|
@@ -79186,553 +79819,6 @@ const statementsToCode = statements => {
|
|
|
79186
79819
|
|
|
79187
79820
|
/***/ }),
|
|
79188
79821
|
|
|
79189
|
-
/***/ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts":
|
|
79190
|
-
/*!***********************************************************************!*\
|
|
79191
|
-
!*** ./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts ***!
|
|
79192
|
-
\***********************************************************************/
|
|
79193
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
79194
|
-
|
|
79195
|
-
"use strict";
|
|
79196
|
-
__webpack_require__.r(__webpack_exports__);
|
|
79197
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
79198
|
-
/* harmony export */ AggregationDependencyModelPath: () => (/* binding */ AggregationDependencyModelPath),
|
|
79199
|
-
/* harmony export */ DependencyWithoutChecks: () => (/* binding */ DependencyWithoutChecks),
|
|
79200
|
-
/* harmony export */ KCXmlGeneratorBase: () => (/* binding */ KCXmlGeneratorBase),
|
|
79201
|
-
/* harmony export */ RegularDependency: () => (/* binding */ RegularDependency),
|
|
79202
|
-
/* harmony export */ isAggregationDependencyModelPath: () => (/* binding */ isAggregationDependencyModelPath),
|
|
79203
|
-
/* harmony export */ isDependencyWithoutChecks: () => (/* binding */ isDependencyWithoutChecks)
|
|
79204
|
-
/* harmony export */ });
|
|
79205
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
79206
|
-
/* 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");
|
|
79207
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
79208
|
-
/* harmony import */ var _markupGenerator_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
79209
|
-
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
79210
|
-
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
79211
|
-
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
79212
|
-
|
|
79213
|
-
|
|
79214
|
-
|
|
79215
|
-
|
|
79216
|
-
|
|
79217
|
-
|
|
79218
|
-
|
|
79219
|
-
class RegularDependency {
|
|
79220
|
-
constructor(currentDependencyPath, eachDependencyPath) {
|
|
79221
|
-
this.currentDependencyPath = void 0;
|
|
79222
|
-
this.eachDependencyPath = void 0;
|
|
79223
|
-
this.eachDependencyPath = eachDependencyPath;
|
|
79224
|
-
this.currentDependencyPath = currentDependencyPath;
|
|
79225
|
-
}
|
|
79226
|
-
asDependencyModelPath() {
|
|
79227
|
-
const currentPart = this.currentDependencyPath.toCurrentIteration();
|
|
79228
|
-
return this.eachDependencyPath != undefined ? currentPart.joinWith(this.eachDependencyPath) : currentPart;
|
|
79229
|
-
}
|
|
79230
|
-
}
|
|
79231
|
-
class AggregationDependencyModelPath {
|
|
79232
|
-
constructor(type, modelPath, prefixModelPath, restModelPath) {
|
|
79233
|
-
this.type = void 0;
|
|
79234
|
-
this.modelPath = void 0;
|
|
79235
|
-
this.prefixModelPath = void 0;
|
|
79236
|
-
this.restModelPath = void 0;
|
|
79237
|
-
this.type = type;
|
|
79238
|
-
this.modelPath = modelPath;
|
|
79239
|
-
this.prefixModelPath = prefixModelPath;
|
|
79240
|
-
this.restModelPath = restModelPath;
|
|
79241
|
-
}
|
|
79242
|
-
asDependencyModelPath() {
|
|
79243
|
-
return this.modelPath.toCurrentIteration();
|
|
79244
|
-
}
|
|
79245
|
-
}
|
|
79246
|
-
class DependencyWithoutChecks extends RegularDependency {}
|
|
79247
|
-
function isAggregationDependencyModelPath(path) {
|
|
79248
|
-
return path instanceof AggregationDependencyModelPath;
|
|
79249
|
-
}
|
|
79250
|
-
function isDependencyWithoutChecks(path) {
|
|
79251
|
-
return path instanceof DependencyWithoutChecks;
|
|
79252
|
-
}
|
|
79253
|
-
class KCXmlGeneratorBase {
|
|
79254
|
-
constructor(schema) {
|
|
79255
|
-
this.schema = void 0;
|
|
79256
|
-
this.schema = schema;
|
|
79257
|
-
}
|
|
79258
|
-
getRuntimeFunctionName(functionSelector) {
|
|
79259
|
-
return (0,_markupGenerator_ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_3__.extractPath)(functionSelector.toString());
|
|
79260
|
-
}
|
|
79261
|
-
getCompiledFuncWithArgs(functionSelector, args) {
|
|
79262
|
-
const funcName = this.getRuntimeFunctionName(functionSelector);
|
|
79263
|
-
const funcParams = args.join(", ");
|
|
79264
|
-
return `expression.${funcName}(${funcParams})`;
|
|
79265
|
-
}
|
|
79266
|
-
getArgumentDeps(targetFullPath, selectFullPath, aggregationType) {
|
|
79267
|
-
const pathDiffInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetFullPath, selectFullPath);
|
|
79268
|
-
const restPath = pathDiffInfo.differentPath;
|
|
79269
|
-
return !restPath.isContainIteration() ? new RegularDependency(selectFullPath) : new AggregationDependencyModelPath(aggregationType, pathDiffInfo.matchedPath.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...restPath.getPathPartsAsArray().filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken(x)), aggregationType])), pathDiffInfo.matchedPath, restPath);
|
|
79270
|
-
}
|
|
79271
|
-
getAggregationPathsRecursively(currentParts, restParts) {
|
|
79272
|
-
if (restParts.length === 0) {
|
|
79273
|
-
return [];
|
|
79274
|
-
}
|
|
79275
|
-
const firstRestItem = restParts[1];
|
|
79276
|
-
const nextRestParts = restParts.slice(2);
|
|
79277
|
-
const nextCurrentParts = [...currentParts, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each, firstRestItem];
|
|
79278
|
-
const restWithoutMultiple = nextRestParts.filter(x => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.isModelPath)(x));
|
|
79279
|
-
const result = {
|
|
79280
|
-
aggregationPath: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.emptyModelPath)().joinWith(...currentParts, firstRestItem, ...restWithoutMultiple),
|
|
79281
|
-
targetPath: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.emptyModelPath)().joinWith(...nextCurrentParts, ...restWithoutMultiple),
|
|
79282
|
-
isTargetFinal: restWithoutMultiple.length === 0
|
|
79283
|
-
};
|
|
79284
|
-
const nextResults = this.getAggregationPathsRecursively(nextCurrentParts, nextRestParts);
|
|
79285
|
-
return [result, ...nextResults];
|
|
79286
|
-
}
|
|
79287
|
-
|
|
79288
|
-
// Example: Root/B/*/C/D/*/E = Root/B/C/D/E/Sum -> Root/B/*/C/D/E/Sum -> Root/B/*/C/D/*/E
|
|
79289
|
-
getAggregationPaths(relativePath) {
|
|
79290
|
-
const splittedPath = [...relativePath.splitByMultiplicity()];
|
|
79291
|
-
return this.getAggregationPathsRecursively([splittedPath[0]], splittedPath.slice(1));
|
|
79292
|
-
}
|
|
79293
|
-
createDependency(prefixModelPath, x, aggregationType) {
|
|
79294
|
-
return {
|
|
79295
|
-
aggPath: prefixModelPath.joinWith(x.aggregationPath).joinWith(aggregationType),
|
|
79296
|
-
type: aggregationType,
|
|
79297
|
-
dependencyPath: x.isTargetFinal ? prefixModelPath.joinWith(x.targetPath) : prefixModelPath.joinWith(x.targetPath).joinWith(aggregationType),
|
|
79298
|
-
isDependencyAggregation: !x.isTargetFinal
|
|
79299
|
-
};
|
|
79300
|
-
}
|
|
79301
|
-
compileAggregationDependencies(dependencies) {
|
|
79302
|
-
const resultItems = dependencies.filter(isAggregationDependencyModelPath).map(dep => this.getAggregationPaths(dep.restModelPath).map(x => {
|
|
79303
|
-
switch (dep.type) {
|
|
79304
|
-
case "Sum":
|
|
79305
|
-
return [this.createDependency(dep.prefixModelPath, x, "Sum"), this.createDependency(dep.prefixModelPath, x, "Count")];
|
|
79306
|
-
case "Count":
|
|
79307
|
-
return [this.createDependency(dep.prefixModelPath, x, "Count")];
|
|
79308
|
-
default:
|
|
79309
|
-
{
|
|
79310
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureNever)(dep.type);
|
|
79311
|
-
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Not supported aggregation dependency: ${dep.type}`);
|
|
79312
|
-
}
|
|
79313
|
-
}
|
|
79314
|
-
})).flat(2);
|
|
79315
|
-
const distinctiveItems = Iterator.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_6__.IterUtils.distinctBy(resultItems, x => x.aggPath.toLegacyPath()));
|
|
79316
|
-
const sumCompiledFunctions = distinctiveItems.map(x => {
|
|
79317
|
-
const compiledDep = this.modelPathInstance(x.dependencyPath.toCurrentIteration());
|
|
79318
|
-
const compiledAggPath = this.modelPathInstance(x.aggPath);
|
|
79319
|
-
const compiledCountPath = this.modelPathInstance(x.aggPath.getParentPath().joinWith("Count").toCurrentIteration());
|
|
79320
|
-
const compiledDelegate = x.type === "Sum" ? `context => KCSumCalculation.execute(context, ${compiledAggPath},${compiledDep}, ${compiledCountPath}, "")` : x.type === "Count" ? `context => KCCountCalculation.execute(context, ${compiledAggPath}, ${compiledDep}, ${x.isDependencyAggregation}, "")` : "";
|
|
79321
|
-
const compiledDeps = [compiledDep, ...(x.type === "Sum" ? [compiledCountPath] : [])].join(", ");
|
|
79322
|
-
return `new CalculationFunction(${compiledAggPath}, [${compiledDeps}], ${compiledDelegate}, false, false)`;
|
|
79323
|
-
});
|
|
79324
|
-
return [...sumCompiledFunctions];
|
|
79325
|
-
}
|
|
79326
|
-
compileExpressionWithUnsupportedHandled(prefix, targetFullPath, expression, deps) {
|
|
79327
|
-
try {
|
|
79328
|
-
return this.compileExpression(prefix, targetFullPath, expression, deps);
|
|
79329
|
-
} catch (e) {
|
|
79330
|
-
if (e instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError) {
|
|
79331
|
-
return e;
|
|
79332
|
-
}
|
|
79333
|
-
throw e;
|
|
79334
|
-
}
|
|
79335
|
-
}
|
|
79336
|
-
|
|
79337
|
-
/* eslint-disable @typescript-eslint/unbound-method */
|
|
79338
|
-
compileExpression(prefix, targetFullPath, expression, deps) {
|
|
79339
|
-
const gcf = (selector, ...args) => this.getCompiledFuncWithArgs(selector, args);
|
|
79340
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArgumentExpression || expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultySumExpression) {
|
|
79341
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79342
|
-
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
79343
|
-
deps.push(argumentDependency);
|
|
79344
|
-
const finalPath = argumentDependency.asDependencyModelPath();
|
|
79345
|
-
return gcf(x => x.argument, `"${finalPath.toLegacyPath()}"`);
|
|
79346
|
-
}
|
|
79347
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
|
|
79348
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79349
|
-
deps.push(new RegularDependency(modelPath));
|
|
79350
|
-
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
79351
|
-
}
|
|
79352
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
79353
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79354
|
-
deps.push(new RegularDependency(modelPath));
|
|
79355
|
-
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
79356
|
-
}
|
|
79357
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
79358
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79359
|
-
deps.push(new RegularDependency(modelPath));
|
|
79360
|
-
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
79361
|
-
}
|
|
79362
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
79363
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79364
|
-
deps.push(new RegularDependency(modelPath));
|
|
79365
|
-
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
79366
|
-
}
|
|
79367
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
79368
|
-
const bikPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.bik)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79369
|
-
const accountPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.account)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79370
|
-
deps.push(new RegularDependency(bikPath));
|
|
79371
|
-
deps.push(new RegularDependency(accountPath));
|
|
79372
|
-
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
79373
|
-
}
|
|
79374
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaCountExpression) {
|
|
79375
|
-
var _expression$withNullO;
|
|
79376
|
-
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79377
|
-
let finalPath = modelPath;
|
|
79378
|
-
if (targetFullPath.isContainIteration()) {
|
|
79379
|
-
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
79380
|
-
deps.push(argumentDependency);
|
|
79381
|
-
finalPath = argumentDependency.asDependencyModelPath();
|
|
79382
|
-
} else {
|
|
79383
|
-
deps.push(new RegularDependency(modelPath));
|
|
79384
|
-
}
|
|
79385
|
-
return gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
79386
|
-
}
|
|
79387
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
79388
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
79389
|
-
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
|
|
79390
|
-
const compiledBody = this.compileExpression(prefix, targetFullPath, expression.expressions[1], deps);
|
|
79391
|
-
return gcf(x => x.when, compiledCondition, `() => ${compiledBody}`);
|
|
79392
|
-
}
|
|
79393
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaOrExpression) {
|
|
79394
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 1);
|
|
79395
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79396
|
-
return gcf(x => x.or, `[${compiledExpressions}]`);
|
|
79397
|
-
}
|
|
79398
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAndExpression) {
|
|
79399
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 1);
|
|
79400
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79401
|
-
return gcf(x => x.and, `[${compiledExpressions}]`);
|
|
79402
|
-
}
|
|
79403
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNotExpression) {
|
|
79404
|
-
return gcf(x => x.not, this.compileExpression(prefix, targetFullPath, expression.argument, deps));
|
|
79405
|
-
}
|
|
79406
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaEqExpression) {
|
|
79407
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79408
|
-
const compiledParts = expression.arguments.map(x => this.compileExpression(prefix, targetFullPath, x, deps));
|
|
79409
|
-
return gcf(x => x.eq, ...compiledParts);
|
|
79410
|
-
}
|
|
79411
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConstExpression) {
|
|
79412
|
-
return gcf(x => x.const, `"${expression.value}"`);
|
|
79413
|
-
}
|
|
79414
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGtExpression) {
|
|
79415
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79416
|
-
const compiledParts = expression.arguments.map(x => this.compileExpression(prefix, targetFullPath, x, deps));
|
|
79417
|
-
return gcf(x => x.gt, ...compiledParts);
|
|
79418
|
-
}
|
|
79419
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGeExpression) {
|
|
79420
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79421
|
-
const compiledParts = expression.arguments.map(x => this.compileExpression(prefix, targetFullPath, x, deps));
|
|
79422
|
-
return gcf(x => x.ge, ...compiledParts);
|
|
79423
|
-
}
|
|
79424
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaLtExpression) {
|
|
79425
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79426
|
-
const compiledParts = expression.arguments.map(x => this.compileExpression(prefix, targetFullPath, x, deps));
|
|
79427
|
-
return gcf(x => x.lt, ...compiledParts);
|
|
79428
|
-
}
|
|
79429
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaLeExpression) {
|
|
79430
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79431
|
-
const compiledParts = expression.arguments.map(x => this.compileExpression(prefix, targetFullPath, x, deps));
|
|
79432
|
-
return gcf(x => x.le, ...compiledParts);
|
|
79433
|
-
}
|
|
79434
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaLengthExpression) {
|
|
79435
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument, deps);
|
|
79436
|
-
return gcf(x => x.length, compiledArgument);
|
|
79437
|
-
}
|
|
79438
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRegexMatchExpression) {
|
|
79439
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument, deps);
|
|
79440
|
-
const preparedPattern = expression.pattern.replace(/"/g, '\\"').replace(/\\/g, "\\\\");
|
|
79441
|
-
return gcf(x => x.regexMatch, compiledArgument, `"${preparedPattern}"`);
|
|
79442
|
-
}
|
|
79443
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultiplyExpression) {
|
|
79444
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
79445
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79446
|
-
return gcf(x => x.multiply, `[${compiledExpressions}]`);
|
|
79447
|
-
}
|
|
79448
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDivisionExpression) {
|
|
79449
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
79450
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79451
|
-
return gcf(x => x.division, `[${compiledExpressions}]`);
|
|
79452
|
-
}
|
|
79453
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumExpression) {
|
|
79454
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 1);
|
|
79455
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79456
|
-
return gcf(x => x.sum, `[${compiledExpressions}]`);
|
|
79457
|
-
}
|
|
79458
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMinusExpression) {
|
|
79459
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79460
|
-
return gcf(x => x.minus, compiledArgument);
|
|
79461
|
-
}
|
|
79462
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRoundExpression) {
|
|
79463
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79464
|
-
return gcf(x => x.round, compiledArgument, `${expression.fractionalDigits}`);
|
|
79465
|
-
}
|
|
79466
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaFloorExpression) {
|
|
79467
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79468
|
-
return gcf(x => x.floor, compiledArgument);
|
|
79469
|
-
}
|
|
79470
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAbsExpression) {
|
|
79471
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79472
|
-
return gcf(x => x.abs, compiledArgument);
|
|
79473
|
-
}
|
|
79474
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaXAbsExpression) {
|
|
79475
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79476
|
-
return gcf(x => x.xabs, compiledArgument);
|
|
79477
|
-
}
|
|
79478
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaChooseExpression) {
|
|
79479
|
-
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.ifNode.condition, deps);
|
|
79480
|
-
const compiledThen = this.compileExpression(prefix, targetFullPath, expression.thenNode.expression, deps);
|
|
79481
|
-
const compiledElse = this.compileExpression(prefix, targetFullPath, expression.elseNode.expression, deps);
|
|
79482
|
-
return gcf(x => x.choose, compiledCondition, `() => ${compiledThen}`, `() => ${compiledElse}`);
|
|
79483
|
-
}
|
|
79484
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateNowExpression) {
|
|
79485
|
-
return gcf(x => x.dateNow);
|
|
79486
|
-
}
|
|
79487
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDaysInMonthExpression) {
|
|
79488
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79489
|
-
return gcf(x => x.getDaysInMonth, compiledArgument);
|
|
79490
|
-
}
|
|
79491
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetDayExpression) {
|
|
79492
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79493
|
-
return gcf(x => x.getDay, compiledArgument);
|
|
79494
|
-
}
|
|
79495
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetMonthExpression) {
|
|
79496
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79497
|
-
return gcf(x => x.getMonth, compiledArgument);
|
|
79498
|
-
}
|
|
79499
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetYearExpression) {
|
|
79500
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79501
|
-
return gcf(x => x.getYear, compiledArgument);
|
|
79502
|
-
}
|
|
79503
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsDateExpression) {
|
|
79504
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79505
|
-
return gcf(x => x.isDate, compiledArgument);
|
|
79506
|
-
}
|
|
79507
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDifferenceInMonthsExpression) {
|
|
79508
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79509
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79510
|
-
return gcf(x => x.differenceInMonths, `[${compiledExpressions}]`);
|
|
79511
|
-
}
|
|
79512
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDifferenceInDaysExpression) {
|
|
79513
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
79514
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79515
|
-
return gcf(x => x.differenceInDays, `[${compiledExpressions}]`);
|
|
79516
|
-
}
|
|
79517
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddDaysExpression) {
|
|
79518
|
-
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79519
|
-
return gcf(x => x.addDays, `${path}, ${expression.amount}`);
|
|
79520
|
-
}
|
|
79521
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddMonthsExpression) {
|
|
79522
|
-
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79523
|
-
return gcf(x => x.addMonths, `${path}, ${expression.amount}`);
|
|
79524
|
-
}
|
|
79525
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaAddYearsExpression) {
|
|
79526
|
-
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79527
|
-
return gcf(x => x.addYears, `${path}, ${expression.amount}`);
|
|
79528
|
-
}
|
|
79529
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateToStringExpression) {
|
|
79530
|
-
const path = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79531
|
-
return gcf(x => x.dateToString, `${path}, "${!!expression.format ? expression.format : "dd.MM.yyyy"}"`);
|
|
79532
|
-
}
|
|
79533
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaDateTimeExpression) {
|
|
79534
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.expression, deps);
|
|
79535
|
-
return gcf(x => x.dateTime, compiledArgument);
|
|
79536
|
-
}
|
|
79537
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSubstringExpression) {
|
|
79538
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrUndefined)(expression.expression);
|
|
79539
|
-
return `expression.substring(${this.compileExpression(prefix, targetFullPath, expression.expression, deps)}, "${expression.start}", "${expression.length}")`;
|
|
79540
|
-
}
|
|
79541
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumExpression) {
|
|
79542
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
79543
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79544
|
-
return `expression.sum([${compiledExpressions}])`;
|
|
79545
|
-
}
|
|
79546
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupSumExpression) {
|
|
79547
|
-
const targetKeys = this.compileExpression(prefix, targetFullPath, expression.targetKeys, deps);
|
|
79548
|
-
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
79549
|
-
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceKeyPath);
|
|
79550
|
-
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
79551
|
-
const sourceValuePath = this.getModelPath(prefix, expression.sourceValuePath);
|
|
79552
|
-
const sourceValueDeps = this.calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceValuePath);
|
|
79553
|
-
deps.push(new DependencyWithoutChecks(sourceValueDeps.currentDepsPath, sourceValueDeps.eachDepsPath));
|
|
79554
|
-
return gcf(x => x.groupSum, `${targetKeys}, "${sourceKeyPath}", "${sourceValuePath}"`);
|
|
79555
|
-
}
|
|
79556
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGroupCountExpression) {
|
|
79557
|
-
const targetKeys = this.compileExpression(prefix, targetFullPath, expression.targetKeys, deps);
|
|
79558
|
-
deps.push(new DependencyWithoutChecks(targetFullPath));
|
|
79559
|
-
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
79560
|
-
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(targetFullPath, sourceKeyPath);
|
|
79561
|
-
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
79562
|
-
return gcf(x => x.groupCount, `${targetKeys}, "${sourceKeyPath}"`);
|
|
79563
|
-
}
|
|
79564
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression) {
|
|
79565
|
-
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
79566
|
-
const compiledExpressions = expression.arguments.map(arg => this.compileExpression(prefix, targetFullPath, arg, deps)).join(",");
|
|
79567
|
-
return gcf(x => x.concat, `[${compiledExpressions}]`);
|
|
79568
|
-
}
|
|
79569
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNewLineExpression) {
|
|
79570
|
-
return gcf(x => x.const, `"\\r\\n"`);
|
|
79571
|
-
}
|
|
79572
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaOneOfExpression) {
|
|
79573
|
-
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument, deps);
|
|
79574
|
-
const compiledItems = expression.items.expressions.map(item => this.compileExpression(prefix, targetFullPath, item, deps)).join(",");
|
|
79575
|
-
return gcf(x => x.oneOf, compiledArgument, `[${compiledItems}]`);
|
|
79576
|
-
}
|
|
79577
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaArrayExpression) {
|
|
79578
|
-
const itemsText = expression.items.map(x => this.compileExpression(prefix, targetFullPath, x, deps)).join(", ");
|
|
79579
|
-
return `JSON.stringify([${itemsText}])`;
|
|
79580
|
-
}
|
|
79581
|
-
// -- не работает в рантайм калькуляторе
|
|
79582
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGetPicklistValuesExpression) {
|
|
79583
|
-
return "null";
|
|
79584
|
-
}
|
|
79585
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaFirstOrDefaultExpression) {
|
|
79586
|
-
return "null";
|
|
79587
|
-
}
|
|
79588
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHashSetExpression) {
|
|
79589
|
-
return "null";
|
|
79590
|
-
}
|
|
79591
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNoDepsNode) {
|
|
79592
|
-
return "null";
|
|
79593
|
-
}
|
|
79594
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHasAutoFlagExpression) {
|
|
79595
|
-
return "null";
|
|
79596
|
-
}
|
|
79597
|
-
// -----
|
|
79598
|
-
|
|
79599
|
-
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
79600
|
-
}
|
|
79601
|
-
/* eslint-enable @typescript-eslint/unbound-method */
|
|
79602
|
-
|
|
79603
|
-
/*
|
|
79604
|
-
Метод вычисляет зависимости для оператора.
|
|
79605
|
-
Для того, чтобы калькулятор корректно реагировал на измнения необходимо сделать корректные зависимости:
|
|
79606
|
-
1) Если исходная множественность и множественность по которой строится группа совпадают, то необходио
|
|
79607
|
-
для последней звёздочки построить зависимость не через PathTokens.current, а через PathTokens.each,
|
|
79608
|
-
т.к. в таком случае пересчёт groupSum/groupCount должен тригетрися при изменении любого элемента в множественности, а не только текущего.
|
|
79609
|
-
2) Если множественности не совпадают, то количество звёздочек (getIterationRank()) в общей части будет разным и ничего дополнительно делать не нужно,
|
|
79610
|
-
в зависимостях в CalculationFunction в данном случае все звёздочки превратятся в PathTokens.current.
|
|
79611
|
-
*/
|
|
79612
|
-
calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourcePath) {
|
|
79613
|
-
const diffPaths = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetKeyPath, sourcePath);
|
|
79614
|
-
if (targetKeyPath.getIterationRank() > diffPaths.matchedPath.getIterationRank()) {
|
|
79615
|
-
return {
|
|
79616
|
-
currentDepsPath: diffPaths.matchedPath,
|
|
79617
|
-
eachDepsPath: diffPaths.differentPath
|
|
79618
|
-
};
|
|
79619
|
-
}
|
|
79620
|
-
const targetPathParts = diffPaths.matchedPath.getPathPartsAsArray();
|
|
79621
|
-
const lastStarIndex = targetPathParts.lastIndexOf(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
79622
|
-
const currentDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(targetPathParts.slice(0, lastStarIndex));
|
|
79623
|
-
let eachDepsPath;
|
|
79624
|
-
if (lastStarIndex === -1) {
|
|
79625
|
-
eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...diffPaths.matchedPath.getPathParts(), ...diffPaths.differentPath.getPathParts()]);
|
|
79626
|
-
} else {
|
|
79627
|
-
var _targetPathParts$last;
|
|
79628
|
-
eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([(_targetPathParts$last = targetPathParts[lastStarIndex]) !== null && _targetPathParts$last !== void 0 ? _targetPathParts$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("path in groupSum is incorrect. Cannot create DepsPath for " + targetPathParts.join("/")), ...targetPathParts.slice(lastStarIndex + 1), ...diffPaths.differentPath.getPathParts()]);
|
|
79629
|
-
}
|
|
79630
|
-
return {
|
|
79631
|
-
currentDepsPath: currentDepsPath,
|
|
79632
|
-
eachDepsPath: eachDepsPath
|
|
79633
|
-
};
|
|
79634
|
-
}
|
|
79635
|
-
removeAttributePrefix(pathPart) {
|
|
79636
|
-
return pathPart.replace(/\@/g, "");
|
|
79637
|
-
}
|
|
79638
|
-
removeMultiplicity(path) {
|
|
79639
|
-
return path.replace(/\/\*/g, "");
|
|
79640
|
-
}
|
|
79641
|
-
getModelPath(prefix, path) {
|
|
79642
|
-
return this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(path)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
79643
|
-
}
|
|
79644
|
-
modelPathInstance(target) {
|
|
79645
|
-
return `ap([${[...target.getPathParts()].map(x => {
|
|
79646
|
-
if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
|
|
79647
|
-
return "PathTokens.each";
|
|
79648
|
-
}
|
|
79649
|
-
if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current) {
|
|
79650
|
-
return "PathTokens.current";
|
|
79651
|
-
}
|
|
79652
|
-
return JSON.stringify(x);
|
|
79653
|
-
}).join(", ")}])`;
|
|
79654
|
-
}
|
|
79655
|
-
}
|
|
79656
|
-
|
|
79657
|
-
/***/ }),
|
|
79658
|
-
|
|
79659
|
-
/***/ "./Generator/src/generators/KCXmlValidationGenerator/KCXmlValidationGenerator.ts":
|
|
79660
|
-
/*!***************************************************************************************!*\
|
|
79661
|
-
!*** ./Generator/src/generators/KCXmlValidationGenerator/KCXmlValidationGenerator.ts ***!
|
|
79662
|
-
\***************************************************************************************/
|
|
79663
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
79664
|
-
|
|
79665
|
-
"use strict";
|
|
79666
|
-
__webpack_require__.r(__webpack_exports__);
|
|
79667
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
79668
|
-
/* harmony export */ KCXmlValidationGenerator: () => (/* binding */ KCXmlValidationGenerator)
|
|
79669
|
-
/* harmony export */ });
|
|
79670
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
79671
|
-
/* 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");
|
|
79672
|
-
/* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
|
|
79673
|
-
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
79674
|
-
/* 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");
|
|
79675
|
-
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
79676
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
79677
|
-
|
|
79678
|
-
|
|
79679
|
-
|
|
79680
|
-
|
|
79681
|
-
|
|
79682
|
-
|
|
79683
|
-
|
|
79684
|
-
const emptyResult = `
|
|
79685
|
-
export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
|
|
79686
|
-
`;
|
|
79687
|
-
class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.KCXmlGeneratorBase {
|
|
79688
|
-
generate(kcXmlConditions, options) {
|
|
79689
|
-
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined).toArray();
|
|
79690
|
-
if (compiledConditions.length === 0) {
|
|
79691
|
-
// NOTE Просто, чтоб не падали аппрувал тесты
|
|
79692
|
-
return emptyResult;
|
|
79693
|
-
}
|
|
79694
|
-
const result = `export default function kcXmlValidationConfigurator ({ form, ap, ValidationFunction, KCCondition, PathTokens }) {
|
|
79695
|
-
${compiledConditions.map(x => `form.calculator2.addCalculationFunction(${x});`).join("\n")}
|
|
79696
|
-
}
|
|
79697
|
-
`;
|
|
79698
|
-
return result;
|
|
79699
|
-
}
|
|
79700
|
-
compileCondition(condition, options) {
|
|
79701
|
-
var _condition$descriptio, _condition$errorLevel;
|
|
79702
|
-
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
|
|
79703
|
-
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());
|
|
79704
|
-
const deps = [];
|
|
79705
|
-
const compiledExpression = this.compileExpressionWithUnsupportedHandled(prefix, target, condition.expression, deps);
|
|
79706
|
-
if (compiledExpression instanceof _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError) {
|
|
79707
|
-
if (options.skipNotSupportedFunction) {
|
|
79708
|
-
return undefined;
|
|
79709
|
-
} else {
|
|
79710
|
-
throw compiledExpression;
|
|
79711
|
-
}
|
|
79712
|
-
}
|
|
79713
|
-
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");
|
|
79714
|
-
let concatDescription;
|
|
79715
|
-
if (compiledDescriptionParts.length > 1) {
|
|
79716
|
-
concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression();
|
|
79717
|
-
concatDescription.arguments = compiledDescriptionParts;
|
|
79718
|
-
} else {
|
|
79719
|
-
concatDescription = compiledDescriptionParts[0];
|
|
79720
|
-
}
|
|
79721
|
-
const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
|
|
79722
|
-
const compiledTarget = this.modelPathInstance(target);
|
|
79723
|
-
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(deps.map(x => ({
|
|
79724
|
-
path: x.asDependencyModelPath(),
|
|
79725
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.isDependencyWithoutChecks)(x),
|
|
79726
|
-
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()
|
|
79727
|
-
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
79728
|
-
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
79729
|
-
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `(expression) => ${compiledDescription}, "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
79730
|
-
return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
|
|
79731
|
-
}
|
|
79732
|
-
}
|
|
79733
|
-
|
|
79734
|
-
/***/ }),
|
|
79735
|
-
|
|
79736
79822
|
/***/ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts":
|
|
79737
79823
|
/*!***********************************************************************************************!*\
|
|
79738
79824
|
!*** ./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts ***!
|
|
@@ -79918,12 +80004,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79918
80004
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
|
|
79919
80005
|
/* harmony import */ var _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./FormSourcesBuilder/FormSourcesBuilder */ "./Generator/src/generators/FormSourcesBuilder/FormSourcesBuilder.ts");
|
|
79920
80006
|
/* harmony import */ var _HelperFunctionsGenerator_HelperFunctionsGenerator__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./HelperFunctionsGenerator/HelperFunctionsGenerator */ "./Generator/src/generators/HelperFunctionsGenerator/HelperFunctionsGenerator.ts");
|
|
79921
|
-
/* harmony import */ var
|
|
80007
|
+
/* harmony import */ var _Calculator2Generator_ValidationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Calculator2Generator/ValidationsCalculator2Generator */ "./Generator/src/generators/Calculator2Generator/ValidationsCalculator2Generator.ts");
|
|
79922
80008
|
/* harmony import */ var _RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./RequisiteLIst/requisiteList */ "./Generator/src/generators/RequisiteLIst/requisiteList.ts");
|
|
79923
80009
|
/* harmony import */ var _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ServerSideFLangNormalization/NormalizationRulesGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/NormalizationRulesGenerator.ts");
|
|
79924
80010
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationGenerationTimeHelper */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationTimeHelper.ts");
|
|
79925
80011
|
/* harmony import */ var _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./AttachmentPaths/AttachmentPathsGenerator */ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts");
|
|
79926
|
-
/* harmony import */ var
|
|
80012
|
+
/* harmony import */ var _Calculator2Generator_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Calculator2Generator/AutoCalculationsCalculator2Generator */ "./Generator/src/generators/Calculator2Generator/AutoCalculationsCalculator2Generator.ts");
|
|
79927
80013
|
/* harmony import */ var _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator */ "./Generator/src/generators/LazyLoadDeclarationGenerator/LazyLoadDeclarationGenerator.ts");
|
|
79928
80014
|
/* harmony import */ var _ServerSideFLangNormalization_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./ServerSideFLangNormalization/FormulaOnlyNormalizationRuleGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/FormulaOnlyNormalizationRuleGenerator.ts");
|
|
79929
80015
|
/* harmony import */ var _HelperFunctionsGenerator_CommonHelperFunctionsGenerator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./HelperFunctionsGenerator/CommonHelperFunctionsGenerator */ "./Generator/src/generators/HelperFunctionsGenerator/CommonHelperFunctionsGenerator.ts");
|
|
@@ -80086,11 +80172,11 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
80086
80172
|
const rngSchemaValidationConfigurator = validationGenerator.generateRngSchemaValidationConfigurator();
|
|
80087
80173
|
builder.addResource("rngSchemaValidationConfigurator.js", rngSchemaValidationConfigurator);
|
|
80088
80174
|
const formulasForCalculator2 = useCalculator2 ? formulas : [];
|
|
80089
|
-
const kcXmlAutoCalcGenerator = new
|
|
80175
|
+
const kcXmlAutoCalcGenerator = new _Calculator2Generator_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_28__.AutoCalculationsCalculator2Generator(formSchemaRng, dataDeclarationHelper);
|
|
80090
80176
|
builder.addResource("kcXmlAutoCalculationConfigurator.js", kcXmlAutoCalcGenerator.generate(formulasForCalculator2, {
|
|
80091
80177
|
skipNotSupportedFunction: useServerCalculations
|
|
80092
80178
|
}));
|
|
80093
|
-
const kcXmlValidationGenerator = new
|
|
80179
|
+
const kcXmlValidationGenerator = new _Calculator2Generator_ValidationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_23__.ValidationsCalculator2Generator(formSchemaRng);
|
|
80094
80180
|
const kcXmlConditionsForCalculator2 = kcXmlConditions;
|
|
80095
80181
|
builder.addResource("kcXmlValidationConfigurator.js", kcXmlValidationGenerator.generate(kcXmlConditionsForCalculator2, {
|
|
80096
80182
|
skipNotSupportedFunction: useServerCalculations
|
|
@@ -80602,7 +80688,7 @@ class CustomKCLangToFlangRuleGenerator {
|
|
|
80602
80688
|
const defaultValue = this.dataDeclarationHelper.getDefaultValue(fullTarget.toLegacyPath());
|
|
80603
80689
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
80604
80690
|
const result = [];
|
|
80605
|
-
const getFormulaExpression = field => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.
|
|
80691
|
+
const getFormulaExpression = field => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.castOperandToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, field), x => precalculationRules.push(x)), "G29"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(defaultValue));
|
|
80606
80692
|
if (isTargetAutoField) {
|
|
80607
80693
|
result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(fullTarget, "autoValue"), getFormulaExpression("autoValue")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(fullTarget, "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoValue")), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.BuildInTypeExpression.string)));
|
|
80608
80694
|
} else {
|
|
@@ -81156,6 +81242,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81156
81242
|
/* harmony export */ StringLiteralExpression: () => (/* binding */ StringLiteralExpression),
|
|
81157
81243
|
/* harmony export */ SubstringExpression: () => (/* binding */ SubstringExpression),
|
|
81158
81244
|
/* harmony export */ SumBinaryExpression: () => (/* binding */ SumBinaryExpression),
|
|
81245
|
+
/* harmony export */ TernaryConditionalExpression: () => (/* binding */ TernaryConditionalExpression),
|
|
81159
81246
|
/* harmony export */ TrimExpression: () => (/* binding */ TrimExpression),
|
|
81160
81247
|
/* harmony export */ TypeReferenceExpression: () => (/* binding */ TypeReferenceExpression),
|
|
81161
81248
|
/* harmony export */ UnaryExpression: () => (/* binding */ UnaryExpression),
|
|
@@ -82035,6 +82122,7 @@ class ConditionalExpression extends FLangExpression {
|
|
|
82035
82122
|
return `${condition} ? ${this.trueResult.convertToString()} : ${this.falseResult.convertToString()}`;
|
|
82036
82123
|
}
|
|
82037
82124
|
}
|
|
82125
|
+
class TernaryConditionalExpression extends ConditionalExpression {}
|
|
82038
82126
|
class DateNowExpression extends DateTimeExpression {
|
|
82039
82127
|
getChildNodes() {
|
|
82040
82128
|
return [];
|
|
@@ -82428,13 +82516,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82428
82516
|
/* harmony export */ ensureOperandsOfTypeOrNull: () => (/* binding */ ensureOperandsOfTypeOrNull),
|
|
82429
82517
|
/* harmony export */ getAllExpressionChildren: () => (/* binding */ getAllExpressionChildren),
|
|
82430
82518
|
/* harmony export */ nullCoalesceWithTypeCheck: () => (/* binding */ nullCoalesceWithTypeCheck),
|
|
82431
|
-
/* harmony export */ tryExtractValueReferenceAsStringFromDecimal: () => (/* binding */ tryExtractValueReferenceAsStringFromDecimal)
|
|
82432
|
-
/* harmony export */ wrapWithArgumentsCondition: () => (/* binding */ wrapWithArgumentsCondition)
|
|
82519
|
+
/* harmony export */ tryExtractValueReferenceAsStringFromDecimal: () => (/* binding */ tryExtractValueReferenceAsStringFromDecimal)
|
|
82433
82520
|
/* harmony export */ });
|
|
82434
82521
|
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
82435
|
-
/* harmony import */ var
|
|
82436
|
-
/* harmony import */ var _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
82437
|
-
|
|
82522
|
+
/* harmony import */ var _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
82438
82523
|
|
|
82439
82524
|
|
|
82440
82525
|
function* getAllExpressionChildren(node, descendantsFilter) {
|
|
@@ -82446,69 +82531,56 @@ function* getAllExpressionChildren(node, descendantsFilter) {
|
|
|
82446
82531
|
}
|
|
82447
82532
|
}
|
|
82448
82533
|
}
|
|
82449
|
-
function wrapWithArgumentsCondition(expression) {
|
|
82450
|
-
const childFilter = node => !(node instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ReduceCallExpression || node instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.GetSumByKeysExpression || node instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NoDepsExpression);
|
|
82451
|
-
const allValueRefNodes = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat([expression], getAllExpressionChildren(expression, childFilter)).map(x => x instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression ? x : undefined).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined);
|
|
82452
|
-
const uniquePaths = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.distinctBy(allValueRefNodes, x => x.convertToString());
|
|
82453
|
-
const conditionExpression = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.reduce(uniquePaths, (acc, curr) => {
|
|
82454
|
-
const currExpr = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.AndBinaryExpression(new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NotEqExpression(new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(curr.modePath, curr.valueName), new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression()), new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NotEqExpression(new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(curr.modePath, curr.valueName), new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.StringLiteralExpression("")));
|
|
82455
|
-
return acc != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.OrBinaryExpression(acc, currExpr) : currExpr;
|
|
82456
|
-
}, undefined);
|
|
82457
|
-
if (conditionExpression == undefined) {
|
|
82458
|
-
return expression;
|
|
82459
|
-
}
|
|
82460
|
-
return new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression(conditionExpression, expression, new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression());
|
|
82461
|
-
}
|
|
82462
82534
|
function combineRulesWithOptionalSectionChecking(allRules, optionalSectionRulesBuilder) {
|
|
82463
|
-
const allUniqueRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.distinctBy(allRules, x => x instanceof
|
|
82535
|
+
const allUniqueRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.distinctBy(allRules, x => x instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement ? x.left.convertToString() : x.convertToString());
|
|
82464
82536
|
const allUniqueRulesWithOptionalChecks = Iterator.from(optionalSectionRulesBuilder.wrapRulesWithOptionalPageCheck(allUniqueRules)).map(x => x.convertToString()).reduce((x, y) => x + (x ? "\n" : "") + y, "");
|
|
82465
82537
|
return allUniqueRulesWithOptionalChecks;
|
|
82466
82538
|
}
|
|
82467
82539
|
function tryExtractValueReferenceAsStringFromDecimal(expression) {
|
|
82468
|
-
if (expression.getType() ===
|
|
82540
|
+
if (expression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.decimal && expression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression && expression.targetExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression) {
|
|
82469
82541
|
return expression.targetExpression;
|
|
82470
82542
|
}
|
|
82471
82543
|
return expression;
|
|
82472
82544
|
}
|
|
82473
82545
|
function castOperandToStringIfNeed(operandExpression, decimalFormat = "G29") {
|
|
82474
|
-
if (operandExpression instanceof
|
|
82475
|
-
return new
|
|
82546
|
+
if (operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DateTimeExpression || operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DateNowExpression) {
|
|
82547
|
+
return new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DateToStringExpression(operandExpression, new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression("dd.MM.yyyy"));
|
|
82476
82548
|
}
|
|
82477
|
-
if (operandExpression instanceof
|
|
82478
|
-
return new
|
|
82549
|
+
if (operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.HashSetExpression) {
|
|
82550
|
+
return new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SerializeEnumerationExpression(operandExpression);
|
|
82479
82551
|
}
|
|
82480
|
-
return operandExpression.getType() !=
|
|
82552
|
+
return operandExpression.getType() != _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.string ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.string, decimalFormat != undefined && operandExpression.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.decimal ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(decimalFormat) : undefined) : operandExpression;
|
|
82481
82553
|
}
|
|
82482
82554
|
function castOperandToBoolIfNeed(operandExpression) {
|
|
82483
|
-
return operandExpression.getType() !=
|
|
82555
|
+
return operandExpression.getType() != _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.bool ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.bool) : operandExpression;
|
|
82484
82556
|
}
|
|
82485
82557
|
function castOperandToDecimalIfNeed(operandExpression, defaultValue) {
|
|
82486
|
-
return operandExpression.getType() !==
|
|
82558
|
+
return operandExpression.getType() !== _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.decimal ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.decimal, defaultValue != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DecimalLiteralExpression(defaultValue) : undefined) : operandExpression;
|
|
82487
82559
|
}
|
|
82488
|
-
const decimalWrapper = (ex, needWrapped) => needWrapped ? new
|
|
82560
|
+
const decimalWrapper = (ex, needWrapped) => needWrapped ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(ex, _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.decimal) : ex;
|
|
82489
82561
|
function castOperandToDateTimeIfNeed(operandExpression) {
|
|
82490
|
-
return operandExpression.getType() !=
|
|
82562
|
+
return operandExpression.getType() != _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.dateTime ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.dateTime) : operandExpression;
|
|
82491
82563
|
}
|
|
82492
82564
|
function nullCoalesceWithTypeCheck(argument, replacement) {
|
|
82493
|
-
const isValid = argument.getType() === replacement.getType() || argument.getType() ===
|
|
82565
|
+
const isValid = argument.getType() === replacement.getType() || argument.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.null || replacement.getType() === _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.null;
|
|
82494
82566
|
if (!isValid) {
|
|
82495
82567
|
throw new Error("Couldn't build null coalesce expression: types not match");
|
|
82496
82568
|
}
|
|
82497
|
-
return new
|
|
82569
|
+
return new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullCoalesceExpression(argument, replacement);
|
|
82498
82570
|
}
|
|
82499
82571
|
function ensureOperandsOfTypeOrNull(type, ...operands) {
|
|
82500
82572
|
for (const operand of operands) {
|
|
82501
82573
|
const operandType = operand.getType();
|
|
82502
|
-
if (operandType !==
|
|
82574
|
+
if (operandType !== _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BuildInTypeExpression.null && operandType !== type) {
|
|
82503
82575
|
throw new Error(`Invalid operand type: required [${type}] but got ${operandType}`);
|
|
82504
82576
|
}
|
|
82505
82577
|
}
|
|
82506
82578
|
}
|
|
82507
82579
|
function combineByOrFlangExpr(acc, current) {
|
|
82508
|
-
return acc != undefined ? new
|
|
82580
|
+
return acc != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.OrBinaryExpression(acc, current) : current;
|
|
82509
82581
|
}
|
|
82510
82582
|
function combineByAndFlangExpr(acc, current) {
|
|
82511
|
-
return acc != undefined ? new
|
|
82583
|
+
return acc != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.AndBinaryExpression(acc, current) : current;
|
|
82512
82584
|
}
|
|
82513
82585
|
|
|
82514
82586
|
/***/ }),
|
|
@@ -82784,7 +82856,7 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
82784
82856
|
const thenExpr = this.compileExpressionToFlangExpressionInternal(expression.thenNode.expression, prefix, target, addPrecalculationRule);
|
|
82785
82857
|
const elseExpr = this.compileExpressionToFlangExpressionInternal(expression.elseNode.expression, prefix, target, addPrecalculationRule);
|
|
82786
82858
|
const castToStringRequired = thenExpr.getType() === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.string || elseExpr.getType() === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.BuildInTypeExpression.string;
|
|
82787
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.
|
|
82859
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.TernaryConditionalExpression(condExpr, castToStringRequired ? (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(thenExpr) : thenExpr, castToStringRequired ? (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_7__.castOperandToStringIfNeed)(elseExpr) : elseExpr);
|
|
82788
82860
|
}
|
|
82789
82861
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaMultiplyExpression) {
|
|
82790
82862
|
return this.compileMultiplyExpression(expression, prefix, target, addPrecalculationRule);
|
|
@@ -83098,7 +83170,7 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
83098
83170
|
if (result == undefined) {
|
|
83099
83171
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_2__.InvalidProgramStateError();
|
|
83100
83172
|
}
|
|
83101
|
-
return
|
|
83173
|
+
return result;
|
|
83102
83174
|
}
|
|
83103
83175
|
compileConcatExpression(expression, prefix, target, addPrecalculationRule) {
|
|
83104
83176
|
const result = expression.arguments.reduce((acc, curr) => {
|
|
@@ -83138,7 +83210,7 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
83138
83210
|
if (result == undefined) {
|
|
83139
83211
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_2__.InvalidProgramStateError();
|
|
83140
83212
|
}
|
|
83141
|
-
return
|
|
83213
|
+
return result;
|
|
83142
83214
|
}
|
|
83143
83215
|
compileDivisionExpression(expression, prefix, target, addPrecalculationRule) {
|
|
83144
83216
|
const makeDivision = (numerator, denominator) => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.NotEqExpression(denominator, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DecimalLiteralExpression(0)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.DivisionBinaryExpression(numerator, denominator), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_8__.NullLiteralExpression());
|
|
@@ -83149,7 +83221,7 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
83149
83221
|
if (result == undefined) {
|
|
83150
83222
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_2__.InvalidProgramStateError();
|
|
83151
83223
|
}
|
|
83152
|
-
return
|
|
83224
|
+
return result;
|
|
83153
83225
|
}
|
|
83154
83226
|
preparePathAndAdjustMultiplicity(prefix, path) {
|
|
83155
83227
|
const resultPath = this.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(path.replace(/\@/g, ""), false)).normalize());
|
|
@@ -83213,7 +83285,7 @@ class FormulaOnlyNormalizationRuleGenerator {
|
|
|
83213
83285
|
const defaultValue = this.dataDeclarationHelper.getDefaultValue(fullTarget.toLegacyPath());
|
|
83214
83286
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
83215
83287
|
const result = [];
|
|
83216
|
-
const getFormulaExpression = field => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.
|
|
83288
|
+
const getFormulaExpression = field => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.castOperandToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelFieldPath(fullTarget, field), x => precalculationRules.push(x)), "G29"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.StringLiteralExpression(defaultValue));
|
|
83217
83289
|
if (isTargetAutoField) {
|
|
83218
83290
|
result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(fullTarget, "autoValue"), getFormulaExpression("autoValue")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(fullTarget, "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoValue")), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.BuildInTypeExpression.string)));
|
|
83219
83291
|
} else {
|
|
@@ -83401,7 +83473,7 @@ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.
|
|
|
83401
83473
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
83402
83474
|
const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
|
|
83403
83475
|
const isDecimal = ((_this$formSchemaRng$g = this.formSchemaRng.getTypeNodeByPath(fullTarget.toAbsolute())) === null || _this$formSchemaRng$g === void 0 ? void 0 : _this$formSchemaRng$g.baseType) === "decimal";
|
|
83404
|
-
const getFormulaExpression = targetField => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.
|
|
83476
|
+
const getFormulaExpression = targetField => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.castOperandToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, targetField), x => precalculationRules.push(x)), "G29"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue));
|
|
83405
83477
|
const valueRule = isTargetAutoField ? isDisabled ? this.createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) : this.createValueRuleForAutoField(fullTarget, defaultValue, getFormulaExpression) : this.createRegularValueRule(fullTarget, getFormulaExpression);
|
|
83406
83478
|
const autoValueRule = isTargetAutoField ? this.createAutoValueRule(fullTarget, getFormulaExpression) : undefined;
|
|
83407
83479
|
const autoFlagRule = isTargetAutoField ? this.createAutoFlagRule(fullTarget, isDecimal) : undefined;
|
|
@@ -84289,8 +84361,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
84289
84361
|
/* harmony import */ var _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./ElementProcessors/Action/Kebab/KebabConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/Kebab/KebabConverter.ts");
|
|
84290
84362
|
/* harmony import */ var _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./ElementProcessors/Helpers/Clue/InfoBlockConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Clue/InfoBlockConverter.ts");
|
|
84291
84363
|
/* harmony import */ var _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(/*! ./ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxConverter.ts");
|
|
84292
|
-
/* harmony import */ var _ElementProcessors_FormParts_AttachmentForm_AttachmentFormConverter__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! ./ElementProcessors/FormParts/AttachmentForm/AttachmentFormConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormConverter.ts");
|
|
84293
|
-
|
|
84294
84364
|
|
|
84295
84365
|
|
|
84296
84366
|
|
|
@@ -84409,7 +84479,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
84409
84479
|
|
|
84410
84480
|
let convertersFromNodeClassMap;
|
|
84411
84481
|
function buildConvertersFromNodeClassMap() {
|
|
84412
|
-
const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_8__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_9__.AddRowButtonConverter, _ElementProcessors_FormParts_AttachmentForm_AttachmentFormConverter__WEBPACK_IMPORTED_MODULE_116__.AttachmentFormConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_10__.BlockConverter, _ElementProcessors_Layout_Minitour_MinitourConverter__WEBPACK_IMPORTED_MODULE_11__.MinitourConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_13__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_14__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_18__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_19__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_20__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_85__.TableCellConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_21__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_22__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_23__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_96__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_24__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_25__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_26__.DiadocSuggestComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_27__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_29__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_30__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_31__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_32__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_33__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_34__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_36__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_37__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_38__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_39__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_40__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_41__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_42__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_43__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_44__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_45__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_46__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_47__.IconConverter, _ElementProcessors_ControlFlow_Captions_Short_ShortConverter__WEBPACK_IMPORTED_MODULE_109__.ShortConverter, _ElementProcessors_ControlFlow_Captions_Long_LongConverter__WEBPACK_IMPORTED_MODULE_110__.LongConverter, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintConverter__WEBPACK_IMPORTED_MODULE_111__.FillHintConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_48__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_49__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_50__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_51__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_52__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_53__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_54__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_55__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_56__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_57__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_61__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_62__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_63__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_65__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_66__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_67__.PicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_68__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_69__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_70__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_71__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_72__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_73__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_74__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_75__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_76__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_77__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_86__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_87__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_95__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_91__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_92__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_93__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_64__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_94__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_90__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_89__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_12__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_35__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_15__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_16__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_17__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_88__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_78__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_83__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_79__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_81__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_80__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_82__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_84__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_2__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_1__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_6__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_5__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_100__.DropdownButtonConverter, _ElementProcessors_ValueEditors_Fias_FiasConverter__WEBPACK_IMPORTED_MODULE_0__.FiasConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_3__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_99__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_98__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_102__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_101__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_103__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_104__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_105__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_106__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_107__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_108__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_112__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_113__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_114__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_115__.SelectAllCheckboxConverter];
|
|
84482
|
+
const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_8__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_9__.AddRowButtonConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_10__.BlockConverter, _ElementProcessors_Layout_Minitour_MinitourConverter__WEBPACK_IMPORTED_MODULE_11__.MinitourConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_13__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_14__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_18__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_19__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_20__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_85__.TableCellConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_21__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_22__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_23__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_96__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_24__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_25__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_26__.DiadocSuggestComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_27__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_29__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_30__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_31__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_32__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_33__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_34__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_36__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_37__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_38__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_39__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_40__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_41__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_42__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_43__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_44__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_45__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_46__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_47__.IconConverter, _ElementProcessors_ControlFlow_Captions_Short_ShortConverter__WEBPACK_IMPORTED_MODULE_109__.ShortConverter, _ElementProcessors_ControlFlow_Captions_Long_LongConverter__WEBPACK_IMPORTED_MODULE_110__.LongConverter, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintConverter__WEBPACK_IMPORTED_MODULE_111__.FillHintConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_48__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_49__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_50__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_51__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_52__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_53__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_54__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_55__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_56__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_57__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_61__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_62__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_63__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_65__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_66__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_67__.PicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_68__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_69__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_70__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_71__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_72__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_73__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_74__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_75__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_76__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_77__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_86__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_87__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_95__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_91__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_92__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_93__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_64__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_94__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_90__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_89__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_12__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_35__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_15__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_16__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_17__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_88__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_78__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_83__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_79__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_81__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_80__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_82__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_84__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_2__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_1__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_6__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_5__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_100__.DropdownButtonConverter, _ElementProcessors_ValueEditors_Fias_FiasConverter__WEBPACK_IMPORTED_MODULE_0__.FiasConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_3__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_99__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_98__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_102__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_101__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_103__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_104__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_105__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_106__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_107__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_108__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_112__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_113__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_114__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_115__.SelectAllCheckboxConverter];
|
|
84413
84483
|
return new Map(converters.map(converterClass => [converterClass.getAcceptNodeClass(), converterClass]));
|
|
84414
84484
|
}
|
|
84415
84485
|
function getConverterByNodeClass(nodeClass) {
|
|
@@ -87968,118 +88038,6 @@ let AddPageButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
87968
88038
|
|
|
87969
88039
|
/***/ }),
|
|
87970
88040
|
|
|
87971
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormConverter.ts":
|
|
87972
|
-
/*!************************************************************************************************************************!*\
|
|
87973
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormConverter.ts ***!
|
|
87974
|
-
\************************************************************************************************************************/
|
|
87975
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
87976
|
-
|
|
87977
|
-
"use strict";
|
|
87978
|
-
__webpack_require__.r(__webpack_exports__);
|
|
87979
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
87980
|
-
/* harmony export */ AttachmentFormConverter: () => (/* binding */ AttachmentFormConverter)
|
|
87981
|
-
/* harmony export */ });
|
|
87982
|
-
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
87983
|
-
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
87984
|
-
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
87985
|
-
/* harmony import */ var _Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/FormParts/Unit/UnitId/UnitId */ "./Engine/src/Controls/FormParts/Unit/UnitId/UnitId.ts");
|
|
87986
|
-
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
87987
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
87988
|
-
/* harmony import */ var _AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AttachmentFormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormNode.ts");
|
|
87989
|
-
|
|
87990
|
-
|
|
87991
|
-
|
|
87992
|
-
|
|
87993
|
-
|
|
87994
|
-
|
|
87995
|
-
|
|
87996
|
-
class AttachmentFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
87997
|
-
static getAcceptNodeClass() {
|
|
87998
|
-
return _AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__.AttachmentFormNode;
|
|
87999
|
-
}
|
|
88000
|
-
*getAttachmentPaths() {
|
|
88001
|
-
const node = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__.AttachmentFormNode);
|
|
88002
|
-
yield (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(node.path).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.AttachmentInfoPath);
|
|
88003
|
-
}
|
|
88004
|
-
doBuildDataDeclaration(context) {
|
|
88005
|
-
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
88006
|
-
}
|
|
88007
|
-
buildChildrenDataDeclaration(context) {
|
|
88008
|
-
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
|
|
88009
|
-
}
|
|
88010
|
-
*doTraverseChildren() {
|
|
88011
|
-
// no children
|
|
88012
|
-
}
|
|
88013
|
-
doConvert(context) {
|
|
88014
|
-
const attachmentFormNode = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__.AttachmentFormNode);
|
|
88015
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("AttachmentFormUnit");
|
|
88016
|
-
markupBuilder.prop("data-tid").set("attachment-" + attachmentFormNode.gfv);
|
|
88017
|
-
markupBuilder.prop(x => x.unitId).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_3__.createUnitId)("attachment-" + attachmentFormNode.gfv));
|
|
88018
|
-
markupBuilder.prop(x => x.gfv).set(attachmentFormNode.gfv);
|
|
88019
|
-
markupBuilder.prop(x => x.caption).set(attachmentFormNode.name);
|
|
88020
|
-
markupBuilder.prop(x => x.description).set(attachmentFormNode.description);
|
|
88021
|
-
markupBuilder.prop(x => x.path).set(attachmentFormNode.path);
|
|
88022
|
-
return markupBuilder.buildConverterResult();
|
|
88023
|
-
}
|
|
88024
|
-
}
|
|
88025
|
-
|
|
88026
|
-
/***/ }),
|
|
88027
|
-
|
|
88028
|
-
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormNode.ts":
|
|
88029
|
-
/*!*******************************************************************************************************************!*\
|
|
88030
|
-
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormNode.ts ***!
|
|
88031
|
-
\*******************************************************************************************************************/
|
|
88032
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88033
|
-
|
|
88034
|
-
"use strict";
|
|
88035
|
-
__webpack_require__.r(__webpack_exports__);
|
|
88036
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88037
|
-
/* harmony export */ AttachmentFormNode: () => (/* binding */ AttachmentFormNode)
|
|
88038
|
-
/* harmony export */ });
|
|
88039
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
88040
|
-
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
88041
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
88042
|
-
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
88043
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
88044
|
-
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
88045
|
-
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
88046
|
-
|
|
88047
|
-
|
|
88048
|
-
|
|
88049
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
88050
|
-
|
|
88051
|
-
let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("attachmentform", `Встроенный редактор для формализованного приложения`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("gfv", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `ГФВ приложения`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Крактое название раздела, в который поместить форму`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Описание формы приложения`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Путь до поля с именем приложения`), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
88052
|
-
constructor(...args) {
|
|
88053
|
-
super(...args);
|
|
88054
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gfv", _descriptor, this);
|
|
88055
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor2, this);
|
|
88056
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor3, this);
|
|
88057
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor4, this);
|
|
88058
|
-
}
|
|
88059
|
-
}, (_descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "gfv", [_dec2], {
|
|
88060
|
-
configurable: true,
|
|
88061
|
-
enumerable: true,
|
|
88062
|
-
writable: true,
|
|
88063
|
-
initializer: null
|
|
88064
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "name", [_dec3], {
|
|
88065
|
-
configurable: true,
|
|
88066
|
-
enumerable: true,
|
|
88067
|
-
writable: true,
|
|
88068
|
-
initializer: null
|
|
88069
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "description", [_dec4], {
|
|
88070
|
-
configurable: true,
|
|
88071
|
-
enumerable: true,
|
|
88072
|
-
writable: true,
|
|
88073
|
-
initializer: null
|
|
88074
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec5], {
|
|
88075
|
-
configurable: true,
|
|
88076
|
-
enumerable: true,
|
|
88077
|
-
writable: true,
|
|
88078
|
-
initializer: null
|
|
88079
|
-
})), _class2)) || _class);
|
|
88080
|
-
|
|
88081
|
-
/***/ }),
|
|
88082
|
-
|
|
88083
88041
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Banner/BannerConverter.ts":
|
|
88084
88042
|
/*!********************************************************************************************************!*\
|
|
88085
88043
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Banner/BannerConverter.ts ***!
|
|
@@ -88840,9 +88798,6 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
88840
88798
|
*doTraverseChildren() {
|
|
88841
88799
|
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_21__.FormNode);
|
|
88842
88800
|
yield* node.pages;
|
|
88843
|
-
if (node.attachmentForms) {
|
|
88844
|
-
yield* node.attachmentForms;
|
|
88845
|
-
}
|
|
88846
88801
|
}
|
|
88847
88802
|
doConvert(context) {
|
|
88848
88803
|
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_21__.FormNode);
|
|
@@ -88986,9 +88941,6 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
88986
88941
|
for (const pageNode of node.pages.filter(x => !x.showOnDemand)) {
|
|
88987
88942
|
navigationBuilder.appendChild(this.buildPageUnit(node, pageNode, context));
|
|
88988
88943
|
}
|
|
88989
|
-
for (const attachmentFormNode of node.attachmentForms || []) {
|
|
88990
|
-
navigationBuilder.appendChild(this.buildAttachmentFormUnit(node, attachmentFormNode, context));
|
|
88991
|
-
}
|
|
88992
88944
|
return navigationBuilder;
|
|
88993
88945
|
}
|
|
88994
88946
|
buildPageUnit(node, pageNode, context) {
|
|
@@ -89053,16 +89005,6 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
89053
89005
|
markupBuilder.appendChildren(pageNode.pages.map(x => this.buildPageUnit(node, x, context)));
|
|
89054
89006
|
return markupBuilder;
|
|
89055
89007
|
}
|
|
89056
|
-
buildAttachmentFormUnit(node, attachmentFormNode, context) {
|
|
89057
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("AttachmentFormUnit");
|
|
89058
|
-
markupBuilder.prop("data-tid").set("attachment-" + attachmentFormNode.gfv);
|
|
89059
|
-
markupBuilder.prop(x => x.unitId).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_13__.createUnitId)("attachment-" + attachmentFormNode.gfv));
|
|
89060
|
-
markupBuilder.prop(x => x.gfv).set(attachmentFormNode.gfv);
|
|
89061
|
-
markupBuilder.prop(x => x.caption).set(attachmentFormNode.name);
|
|
89062
|
-
markupBuilder.prop(x => x.description).set(attachmentFormNode.description);
|
|
89063
|
-
markupBuilder.prop(x => x.path).set(attachmentFormNode.path);
|
|
89064
|
-
return markupBuilder;
|
|
89065
|
-
}
|
|
89066
89008
|
isPageContainsTableWithStickyElements(pageNode) {
|
|
89067
89009
|
return (0,_AllConverters__WEBPACK_IMPORTED_MODULE_4__.iterateNodesDepthFirst)(pageNode).some(x => x instanceof _Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_9__.SimpleTableNode && x.stickyHeader || x instanceof _MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_10__.StickyTableNode && (x.sticky || x.stickyHeader) || x instanceof _MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_8__.CrossfitTableNode);
|
|
89068
89010
|
}
|
|
@@ -89099,28 +89041,8 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
89099
89041
|
buildNavigationFromPages(formNode) {
|
|
89100
89042
|
const unitListBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("UnitList");
|
|
89101
89043
|
unitListBuilder.appendChildren(this.buildUnitItemsFromPages(formNode, formNode.pages));
|
|
89102
|
-
if (formNode.attachmentForms) {
|
|
89103
|
-
unitListBuilder.appendChildren(this.buildUnitItemsFromAttachmentForms(formNode, formNode.attachmentForms));
|
|
89104
|
-
}
|
|
89105
89044
|
return unitListBuilder;
|
|
89106
89045
|
}
|
|
89107
|
-
buildUnitItemsFromAttachmentForms(formNode, attachmentFormNodes) {
|
|
89108
|
-
const unitItemBuilders = [];
|
|
89109
|
-
for (const attachmentForm of attachmentFormNodes) {
|
|
89110
|
-
const unitItemBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("UnitItem");
|
|
89111
|
-
unitItemBuilder.prop("data-tid").set("attachment-" + attachmentForm.gfv);
|
|
89112
|
-
unitItemBuilder.prop(x => x.id).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_13__.createUnitId)("attachment-" + attachmentForm.gfv));
|
|
89113
|
-
unitItemBuilder.prop(x => x.name).set(attachmentForm.name);
|
|
89114
|
-
unitItemBuilder.prop(x => x.optional).set(true);
|
|
89115
|
-
unitItemBuilder.prop(x => x.multiple).set(false);
|
|
89116
|
-
unitItemBuilder.prop(x => x.multipleAppearance).set("flat");
|
|
89117
|
-
unitItemBuilder.prop(x => x.pages).set([]);
|
|
89118
|
-
unitItemBuilder.prop(x => x.clearConfirmationSettings).set({});
|
|
89119
|
-
unitItemBuilder.prop(x => x.evaluatorsContextPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(formNode));
|
|
89120
|
-
unitItemBuilders.push(unitItemBuilder);
|
|
89121
|
-
}
|
|
89122
|
-
return unitItemBuilders;
|
|
89123
|
-
}
|
|
89124
89046
|
buildUnitItemsFromPages(formNode, pages) {
|
|
89125
89047
|
const unitItemBuilders = [];
|
|
89126
89048
|
for (const page of pages.filter(x => !x.showOnDemand)) {
|
|
@@ -89207,18 +89129,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
89207
89129
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
89208
89130
|
/* harmony import */ var _SugarNodes_Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../SugarNodes/Nodes/ImportNode */ "./Generator/src/generators/markupGenerator/SugarNodes/Nodes/ImportNode.ts");
|
|
89209
89131
|
/* harmony import */ var _Page_PageNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
|
|
89210
|
-
/* harmony import */ var
|
|
89211
|
-
/* harmony import */ var
|
|
89212
|
-
/* harmony import */ var
|
|
89213
|
-
/* harmony import */ var
|
|
89214
|
-
/* harmony import */ var
|
|
89215
|
-
/* harmony import */ var
|
|
89216
|
-
/* harmony import */ var _TypeListNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TypeListNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/TypeListNode.ts");
|
|
89132
|
+
/* harmony import */ var _Tour_TourNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Tour/TourNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Tour/TourNode.ts");
|
|
89133
|
+
/* harmony import */ var _UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../UserPicklist/UserPicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts");
|
|
89134
|
+
/* harmony import */ var _Common_Enums_ButtonSettingsTypeEnum__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../../Common/Enums/ButtonSettingsTypeEnum */ "./Common/Enums/ButtonSettingsTypeEnum.ts");
|
|
89135
|
+
/* harmony import */ var _ZeroReportOptions_ZeroReportOptionsNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../ZeroReportOptions/ZeroReportOptionsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/ZeroReportOptions/ZeroReportOptionsNode.ts");
|
|
89136
|
+
/* harmony import */ var _Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Nodes/PanelNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes/PanelNode.ts");
|
|
89137
|
+
/* harmony import */ var _TypeListNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TypeListNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/TypeListNode.ts");
|
|
89217
89138
|
|
|
89218
89139
|
|
|
89219
89140
|
|
|
89220
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _class4, _class5, _descriptor2, _descriptor3, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49,
|
|
89221
|
-
|
|
89141
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _class4, _class5, _descriptor2, _descriptor3, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _class7, _class8, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46;
|
|
89222
89142
|
|
|
89223
89143
|
|
|
89224
89144
|
|
|
@@ -89259,8 +89179,8 @@ let ModalTitleNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
|
|
|
89259
89179
|
writable: true,
|
|
89260
89180
|
initializer: null
|
|
89261
89181
|
})), _class5)) || _class4);
|
|
89262
|
-
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", [
|
|
89263
|
-
После проверки фокус падает на невалидное поле, если это возможно. Например на input`),
|
|
89182
|
+
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__.deprecatedAttr)("compactActionPanel", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Removed), _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
|
|
89183
|
+
После проверки фокус падает на невалидное поле, если это возможно. Например на 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)("defaultUnitsCountForPaging", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.number, `Количество инстансов множественного раздела на котором включается паджинация раздела`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.children)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec49 = (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 {
|
|
89264
89184
|
constructor(...args) {
|
|
89265
89185
|
super(...args);
|
|
89266
89186
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor4, this);
|
|
@@ -89279,34 +89199,33 @@ let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
|
|
|
89279
89199
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "panel", _descriptor17, this);
|
|
89280
89200
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "zeroreportoptions", _descriptor18, this);
|
|
89281
89201
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pages", _descriptor19, this);
|
|
89282
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89283
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89284
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89285
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89286
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89287
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89288
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89289
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89290
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89291
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89292
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89293
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89294
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89295
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89296
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89297
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89298
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89299
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89300
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89301
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89302
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89303
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89304
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89305
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89306
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89307
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89308
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
89309
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "typeLists", _descriptor47, this);
|
|
89202
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "simple", _descriptor20, this);
|
|
89203
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "schemaValidations", _descriptor21, this);
|
|
89204
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isReadOnly", _descriptor22, this);
|
|
89205
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "ieDeprecationWarningEnabled", _descriptor23, this);
|
|
89206
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "compactActionPanel", _descriptor24, this);
|
|
89207
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "enableCustomizationButton", _descriptor25, this);
|
|
89208
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "ieSizeLimitation", _descriptor26, this);
|
|
89209
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "templates", _descriptor27, this);
|
|
89210
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "__deleteMe__enableIndentToSingleUnit", _descriptor28, this);
|
|
89211
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "plain", _descriptor29, this);
|
|
89212
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "requisite", _descriptor30, this);
|
|
89213
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor31, this);
|
|
89214
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "cssWidth", _descriptor32, this);
|
|
89215
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "buttonSettingsType", _descriptor33, this);
|
|
89216
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationBeforeSend", _descriptor34, this);
|
|
89217
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "padding", _descriptor35, this);
|
|
89218
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxUnitsCount", _descriptor36, this);
|
|
89219
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onExternalInitSection", _descriptor37, this);
|
|
89220
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "unitsCount", _descriptor38, this);
|
|
89221
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "transferText", _descriptor39, this);
|
|
89222
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationLimit", _descriptor40, this);
|
|
89223
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uploadFufButtonEnabled", _descriptor41, this);
|
|
89224
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fufSizeTooLargeErrorText", _descriptor42, this);
|
|
89225
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uploadFufLightboxHideDemandNameButton", _descriptor43, this);
|
|
89226
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "defaultUnitsCountForPaging", _descriptor44, this);
|
|
89227
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "types", _descriptor45, this);
|
|
89228
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "typeLists", _descriptor46, this);
|
|
89310
89229
|
}
|
|
89311
89230
|
getOwnPath() {
|
|
89312
89231
|
return this.dataScope.getOwnPath();
|
|
@@ -89397,142 +89316,137 @@ let FormNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
|
|
|
89397
89316
|
enumerable: true,
|
|
89398
89317
|
writable: true,
|
|
89399
89318
|
initializer: null
|
|
89400
|
-
}), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "
|
|
89401
|
-
configurable: true,
|
|
89402
|
-
enumerable: true,
|
|
89403
|
-
writable: true,
|
|
89404
|
-
initializer: null
|
|
89405
|
-
}), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "simple", [_dec24], {
|
|
89319
|
+
}), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "simple", [_dec23], {
|
|
89406
89320
|
configurable: true,
|
|
89407
89321
|
enumerable: true,
|
|
89408
89322
|
writable: true,
|
|
89409
89323
|
initializer: null
|
|
89410
|
-
}),
|
|
89324
|
+
}), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "schemaValidations", [_dec24], {
|
|
89411
89325
|
configurable: true,
|
|
89412
89326
|
enumerable: true,
|
|
89413
89327
|
writable: true,
|
|
89414
89328
|
initializer: null
|
|
89415
|
-
}),
|
|
89329
|
+
}), _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "isReadOnly", [_dec25], {
|
|
89416
89330
|
configurable: true,
|
|
89417
89331
|
enumerable: true,
|
|
89418
89332
|
writable: true,
|
|
89419
89333
|
initializer: null
|
|
89420
|
-
}),
|
|
89334
|
+
}), _descriptor23 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "ieDeprecationWarningEnabled", [_dec26], {
|
|
89421
89335
|
configurable: true,
|
|
89422
89336
|
enumerable: true,
|
|
89423
89337
|
writable: true,
|
|
89424
89338
|
initializer: null
|
|
89425
|
-
}),
|
|
89339
|
+
}), _descriptor24 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "compactActionPanel", [_dec27], {
|
|
89426
89340
|
configurable: true,
|
|
89427
89341
|
enumerable: true,
|
|
89428
89342
|
writable: true,
|
|
89429
89343
|
initializer: null
|
|
89430
|
-
}),
|
|
89344
|
+
}), _descriptor25 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "enableCustomizationButton", [_dec28], {
|
|
89431
89345
|
configurable: true,
|
|
89432
89346
|
enumerable: true,
|
|
89433
89347
|
writable: true,
|
|
89434
89348
|
initializer: null
|
|
89435
|
-
}),
|
|
89349
|
+
}), _descriptor26 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "ieSizeLimitation", [_dec29], {
|
|
89436
89350
|
configurable: true,
|
|
89437
89351
|
enumerable: true,
|
|
89438
89352
|
writable: true,
|
|
89439
89353
|
initializer: null
|
|
89440
|
-
}),
|
|
89354
|
+
}), _descriptor27 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "templates", [_dec30], {
|
|
89441
89355
|
configurable: true,
|
|
89442
89356
|
enumerable: true,
|
|
89443
89357
|
writable: true,
|
|
89444
89358
|
initializer: null
|
|
89445
|
-
}),
|
|
89359
|
+
}), _descriptor28 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "__deleteMe__enableIndentToSingleUnit", [_dec31], {
|
|
89446
89360
|
configurable: true,
|
|
89447
89361
|
enumerable: true,
|
|
89448
89362
|
writable: true,
|
|
89449
89363
|
initializer: null
|
|
89450
|
-
}),
|
|
89364
|
+
}), _descriptor29 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "plain", [_dec32], {
|
|
89451
89365
|
configurable: true,
|
|
89452
89366
|
enumerable: true,
|
|
89453
89367
|
writable: true,
|
|
89454
89368
|
initializer: null
|
|
89455
|
-
}),
|
|
89369
|
+
}), _descriptor30 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "requisite", [_dec33], {
|
|
89456
89370
|
configurable: true,
|
|
89457
89371
|
enumerable: true,
|
|
89458
89372
|
writable: true,
|
|
89459
89373
|
initializer: null
|
|
89460
|
-
}),
|
|
89374
|
+
}), _descriptor31 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "width", [_dec34], {
|
|
89461
89375
|
configurable: true,
|
|
89462
89376
|
enumerable: true,
|
|
89463
89377
|
writable: true,
|
|
89464
89378
|
initializer: null
|
|
89465
|
-
}),
|
|
89379
|
+
}), _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "cssWidth", [_dec35], {
|
|
89466
89380
|
configurable: true,
|
|
89467
89381
|
enumerable: true,
|
|
89468
89382
|
writable: true,
|
|
89469
89383
|
initializer: null
|
|
89470
|
-
}),
|
|
89384
|
+
}), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "buttonSettingsType", [_dec36], {
|
|
89471
89385
|
configurable: true,
|
|
89472
89386
|
enumerable: true,
|
|
89473
89387
|
writable: true,
|
|
89474
89388
|
initializer: null
|
|
89475
|
-
}),
|
|
89389
|
+
}), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "validationBeforeSend", [_dec37], {
|
|
89476
89390
|
configurable: true,
|
|
89477
89391
|
enumerable: true,
|
|
89478
89392
|
writable: true,
|
|
89479
89393
|
initializer: null
|
|
89480
|
-
}),
|
|
89394
|
+
}), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "padding", [_dec38], {
|
|
89481
89395
|
configurable: true,
|
|
89482
89396
|
enumerable: true,
|
|
89483
89397
|
writable: true,
|
|
89484
89398
|
initializer: null
|
|
89485
|
-
}),
|
|
89399
|
+
}), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "maxUnitsCount", [_dec39], {
|
|
89486
89400
|
configurable: true,
|
|
89487
89401
|
enumerable: true,
|
|
89488
89402
|
writable: true,
|
|
89489
89403
|
initializer: null
|
|
89490
|
-
}),
|
|
89404
|
+
}), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "onExternalInitSection", [_dec40], {
|
|
89491
89405
|
configurable: true,
|
|
89492
89406
|
enumerable: true,
|
|
89493
89407
|
writable: true,
|
|
89494
89408
|
initializer: null
|
|
89495
|
-
}),
|
|
89409
|
+
}), _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "unitsCount", [_dec41], {
|
|
89496
89410
|
configurable: true,
|
|
89497
89411
|
enumerable: true,
|
|
89498
89412
|
writable: true,
|
|
89499
89413
|
initializer: null
|
|
89500
|
-
}),
|
|
89414
|
+
}), _descriptor39 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "transferText", [_dec42], {
|
|
89501
89415
|
configurable: true,
|
|
89502
89416
|
enumerable: true,
|
|
89503
89417
|
writable: true,
|
|
89504
89418
|
initializer: null
|
|
89505
|
-
}),
|
|
89419
|
+
}), _descriptor40 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "navigationLimit", [_dec43], {
|
|
89506
89420
|
configurable: true,
|
|
89507
89421
|
enumerable: true,
|
|
89508
89422
|
writable: true,
|
|
89509
89423
|
initializer: null
|
|
89510
|
-
}),
|
|
89424
|
+
}), _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "uploadFufButtonEnabled", [_dec44], {
|
|
89511
89425
|
configurable: true,
|
|
89512
89426
|
enumerable: true,
|
|
89513
89427
|
writable: true,
|
|
89514
89428
|
initializer: null
|
|
89515
|
-
}),
|
|
89429
|
+
}), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "fufSizeTooLargeErrorText", [_dec45], {
|
|
89516
89430
|
configurable: true,
|
|
89517
89431
|
enumerable: true,
|
|
89518
89432
|
writable: true,
|
|
89519
89433
|
initializer: null
|
|
89520
|
-
}),
|
|
89434
|
+
}), _descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "uploadFufLightboxHideDemandNameButton", [_dec46], {
|
|
89521
89435
|
configurable: true,
|
|
89522
89436
|
enumerable: true,
|
|
89523
89437
|
writable: true,
|
|
89524
89438
|
initializer: null
|
|
89525
|
-
}),
|
|
89439
|
+
}), _descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "defaultUnitsCountForPaging", [_dec47], {
|
|
89526
89440
|
configurable: true,
|
|
89527
89441
|
enumerable: true,
|
|
89528
89442
|
writable: true,
|
|
89529
89443
|
initializer: null
|
|
89530
|
-
}),
|
|
89444
|
+
}), _descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "types", [_dec48], {
|
|
89531
89445
|
configurable: true,
|
|
89532
89446
|
enumerable: true,
|
|
89533
89447
|
writable: true,
|
|
89534
89448
|
initializer: null
|
|
89535
|
-
}),
|
|
89449
|
+
}), _descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "typeLists", [_dec49], {
|
|
89536
89450
|
configurable: true,
|
|
89537
89451
|
enumerable: true,
|
|
89538
89452
|
writable: true,
|