@kontur.candy/generator 5.84.0-extended-schema.1 → 5.84.0-extended-schema.2
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 +54 -68
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70017,27 +70017,46 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
|
|
|
70017
70017
|
|
|
70018
70018
|
/***/ }),
|
|
70019
70019
|
|
|
70020
|
-
/***/ "./Generator/src/generators/ExtendedSchema/
|
|
70020
|
+
/***/ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts":
|
|
70021
70021
|
/*!****************************************************************************!*\
|
|
70022
|
-
!*** ./Generator/src/generators/ExtendedSchema/
|
|
70022
|
+
!*** ./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts ***!
|
|
70023
70023
|
\****************************************************************************/
|
|
70024
70024
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
70025
70025
|
|
|
70026
70026
|
"use strict";
|
|
70027
70027
|
__webpack_require__.r(__webpack_exports__);
|
|
70028
70028
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
70029
|
-
/* harmony export */ buildExtendedSchemaInfo: () => (/* binding */ buildExtendedSchemaInfo)
|
|
70029
|
+
/* harmony export */ buildExtendedSchemaInfo: () => (/* binding */ buildExtendedSchemaInfo),
|
|
70030
|
+
/* harmony export */ traverseExtendedSchemaInfo: () => (/* binding */ traverseExtendedSchemaInfo)
|
|
70030
70031
|
/* harmony export */ });
|
|
70031
70032
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
70032
|
-
/* harmony import */ var
|
|
70033
|
-
/* harmony import */ var
|
|
70033
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataDeclarationGenerator/DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
|
|
70034
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
70034
70035
|
|
|
70035
70036
|
|
|
70036
70037
|
|
|
70038
|
+
function traverseExtendedSchemaInfo(schemaInfo, func) {
|
|
70039
|
+
if (schemaInfo.roots != undefined) {
|
|
70040
|
+
for (const root of schemaInfo.roots) {
|
|
70041
|
+
traverseExtendedSchemaInfoInternal(root, func, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)([]));
|
|
70042
|
+
}
|
|
70043
|
+
}
|
|
70044
|
+
}
|
|
70045
|
+
function traverseExtendedSchemaInfoInternal(node, func, parentPath) {
|
|
70046
|
+
var _node$properties;
|
|
70047
|
+
let currentPath = parentPath.joinWith(node.name);
|
|
70048
|
+
if ((_node$properties = node.properties) !== null && _node$properties !== void 0 && _node$properties.multiple) {
|
|
70049
|
+
currentPath = currentPath.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
70050
|
+
}
|
|
70051
|
+
func(currentPath, node);
|
|
70052
|
+
for (const child of node.children) {
|
|
70053
|
+
traverseExtendedSchemaInfoInternal(child, func, currentPath);
|
|
70054
|
+
}
|
|
70055
|
+
}
|
|
70037
70056
|
function buildExtendedSchemaInfo(dataDeclaration) {
|
|
70038
70057
|
const nodes = new Map();
|
|
70039
70058
|
for (const path of dataDeclaration.getAllPaths()) {
|
|
70040
|
-
var _node$
|
|
70059
|
+
var _node$properties2;
|
|
70041
70060
|
if (path.isEmpty() || path.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each]))) {
|
|
70042
70061
|
continue;
|
|
70043
70062
|
}
|
|
@@ -70045,7 +70064,7 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
70045
70064
|
const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
|
|
70046
70065
|
const optional = dataDeclaration.isNodeOptional(path);
|
|
70047
70066
|
const node = getOrCreateNode(nodes, path);
|
|
70048
|
-
const props = (_node$
|
|
70067
|
+
const props = (_node$properties2 = node.properties) !== null && _node$properties2 !== void 0 ? _node$properties2 : node.properties = {};
|
|
70049
70068
|
if (isMultiple) {
|
|
70050
70069
|
props.multiple = true;
|
|
70051
70070
|
props.errorAndWarningCountRequired = true;
|
|
@@ -70065,25 +70084,25 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
70065
70084
|
const fields = dataDeclaration.getInitializationSteps(path);
|
|
70066
70085
|
const resultFields = Object.fromEntries(Object.entries(fields).map(([key, value]) => {
|
|
70067
70086
|
const convertedSequence = Array.isArray(value) ? value.map(x => {
|
|
70068
|
-
if ((0,
|
|
70087
|
+
if ((0,_DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__.isFetchFunctionValueSource)(x)) {
|
|
70069
70088
|
return {
|
|
70070
70089
|
type: "fetchFunction",
|
|
70071
70090
|
fnName: x.fnName,
|
|
70072
70091
|
propName: x.fnPropName
|
|
70073
70092
|
};
|
|
70074
70093
|
}
|
|
70075
|
-
if ((0,
|
|
70094
|
+
if ((0,_DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__.isTakeFromModelValueSource)(x)) {
|
|
70076
70095
|
return {
|
|
70077
70096
|
type: "model"
|
|
70078
70097
|
};
|
|
70079
70098
|
}
|
|
70080
|
-
if ((0,
|
|
70099
|
+
if ((0,_DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__.isConstValueSource)(x)) {
|
|
70081
70100
|
return {
|
|
70082
70101
|
type: "constant",
|
|
70083
70102
|
value: x
|
|
70084
70103
|
};
|
|
70085
70104
|
}
|
|
70086
|
-
return (0,
|
|
70105
|
+
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("Unknown init step");
|
|
70087
70106
|
}) : [{
|
|
70088
70107
|
type: "constant",
|
|
70089
70108
|
value: value
|
|
@@ -70133,41 +70152,7 @@ function getOrCreateNode(nodes, path) {
|
|
|
70133
70152
|
currentMap = nextMap;
|
|
70134
70153
|
}
|
|
70135
70154
|
}
|
|
70136
|
-
return (_currentNode = currentNode) !== null && _currentNode !== void 0 ? _currentNode : (0,
|
|
70137
|
-
}
|
|
70138
|
-
|
|
70139
|
-
/***/ }),
|
|
70140
|
-
|
|
70141
|
-
/***/ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfo.ts":
|
|
70142
|
-
/*!***********************************************************************!*\
|
|
70143
|
-
!*** ./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfo.ts ***!
|
|
70144
|
-
\***********************************************************************/
|
|
70145
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
70146
|
-
|
|
70147
|
-
"use strict";
|
|
70148
|
-
__webpack_require__.r(__webpack_exports__);
|
|
70149
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
70150
|
-
/* harmony export */ traverseExtendedSchemaInfo: () => (/* binding */ traverseExtendedSchemaInfo)
|
|
70151
|
-
/* harmony export */ });
|
|
70152
|
-
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
70153
|
-
|
|
70154
|
-
function traverseExtendedSchemaInfo(schemaInfo, func) {
|
|
70155
|
-
if (schemaInfo.roots != undefined) {
|
|
70156
|
-
for (const root of schemaInfo.roots) {
|
|
70157
|
-
traverseExtendedSchemaInfoInternal(root, func, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)([]));
|
|
70158
|
-
}
|
|
70159
|
-
}
|
|
70160
|
-
}
|
|
70161
|
-
function traverseExtendedSchemaInfoInternal(node, func, parentPath) {
|
|
70162
|
-
var _node$properties;
|
|
70163
|
-
let currentPath = parentPath.joinWith(node.name);
|
|
70164
|
-
if ((_node$properties = node.properties) !== null && _node$properties !== void 0 && _node$properties.multiple) {
|
|
70165
|
-
currentPath = currentPath.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
70166
|
-
}
|
|
70167
|
-
func(currentPath, node);
|
|
70168
|
-
for (const child of node.children) {
|
|
70169
|
-
traverseExtendedSchemaInfoInternal(child, func, currentPath);
|
|
70170
|
-
}
|
|
70155
|
+
return (_currentNode = currentNode) !== null && _currentNode !== void 0 ? _currentNode : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("Invalid state");
|
|
70171
70156
|
}
|
|
70172
70157
|
|
|
70173
70158
|
/***/ }),
|
|
@@ -71143,11 +71128,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71143
71128
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
71144
71129
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
71145
71130
|
/* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
|
|
71146
|
-
/* harmony import */ var
|
|
71147
|
-
/* harmony import */ var
|
|
71148
|
-
/* harmony import */ var
|
|
71149
|
-
/* harmony import */ var
|
|
71150
|
-
/* harmony import */ var
|
|
71131
|
+
/* harmony import */ var _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../Common/AutoValidationUtils */ "./Common/AutoValidationUtils.ts");
|
|
71132
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader.ts");
|
|
71133
|
+
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
71134
|
+
/* harmony import */ var _Common_IndentString__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../Common/IndentString */ "./Common/IndentString.ts");
|
|
71135
|
+
/* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
|
|
71151
71136
|
|
|
71152
71137
|
|
|
71153
71138
|
|
|
@@ -71171,7 +71156,7 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
71171
71156
|
if (configuration === undefined) {
|
|
71172
71157
|
return emptyResult;
|
|
71173
71158
|
}
|
|
71174
|
-
return [`({ form, ap, ValidationFunction, KCCondition, PathTokens }) => {`, (0,
|
|
71159
|
+
return [`({ form, ap, ValidationFunction, KCCondition, PathTokens }) => {`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_11__.indent)(configuration, 1), `}`].join("\n");
|
|
71175
71160
|
}
|
|
71176
71161
|
generate(kcXmlConditions, options) {
|
|
71177
71162
|
const configuration = this.generateCalculatorConfiguration(kcXmlConditions, options);
|
|
@@ -71185,12 +71170,12 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
71185
71170
|
}
|
|
71186
71171
|
generateCalculatorConfiguration(kcXmlConditions, options) {
|
|
71187
71172
|
const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition, options)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.isNotNullOrUndefined).toArray();
|
|
71188
|
-
(0,
|
|
71173
|
+
(0,_ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_12__.traverseExtendedSchemaInfo)(this.extendedSchemaInfo, (path, node) => {
|
|
71189
71174
|
var _node$properties;
|
|
71190
71175
|
if (((_node$properties = node.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.valueEqlAutoValue) != undefined) {
|
|
71191
71176
|
var _node$properties2, _node$properties$valu, _node$properties3, _node$properties4;
|
|
71192
71177
|
const severity = ((_node$properties2 = node.properties) === null || _node$properties2 === void 0 ? void 0 : _node$properties2.valueEqlAutoValue) == "warning" ? "Warning" : "Error";
|
|
71193
|
-
const errorMessage = (_node$properties$valu = (_node$properties3 = node.properties) === null || _node$properties3 === void 0 ? void 0 : _node$properties3.valueEqlAutoValueErrorMessage) !== null && _node$properties$valu !== void 0 ? _node$properties$valu :
|
|
71178
|
+
const errorMessage = (_node$properties$valu = (_node$properties3 = node.properties) === null || _node$properties3 === void 0 ? void 0 : _node$properties3.valueEqlAutoValueErrorMessage) !== null && _node$properties$valu !== void 0 ? _node$properties$valu : _Common_AutoValidationUtils__WEBPACK_IMPORTED_MODULE_8__.AutoValidationMessage;
|
|
71194
71179
|
const compiledDescription = `expression => ${JSON.stringify(errorMessage)}`;
|
|
71195
71180
|
const target = this.modelPathInstance(path);
|
|
71196
71181
|
let compiledValidation = `expression.isValueEqlAutoValue(${target})`;
|
|
@@ -71229,8 +71214,8 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
71229
71214
|
check Test === (${condition}) ? 1 : 0;
|
|
71230
71215
|
}
|
|
71231
71216
|
`;
|
|
71232
|
-
const formulaReader = new
|
|
71233
|
-
const kcLangMathContainer = formulaReader.readFormulas(
|
|
71217
|
+
const formulaReader = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaReader__WEBPACK_IMPORTED_MODULE_9__.FormulaReader();
|
|
71218
|
+
const kcLangMathContainer = formulaReader.readFormulas(_common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_10__.KCLangToXmlTranspiler.transpile(fullKcLangExpr));
|
|
71234
71219
|
const formulaNode = (_kcLangMathContainer$ = kcLangMathContainer === null || kcLangMathContainer === void 0 || (_kcLangMathContainer$2 = kcLangMathContainer.formulas) === null || _kcLangMathContainer$2 === void 0 || (_kcLangMathContainer$2 = _kcLangMathContainer$2.items) === null || _kcLangMathContainer$2 === void 0 ? void 0 : _kcLangMathContainer$2[0]) !== null && _kcLangMathContainer$ !== void 0 ? _kcLangMathContainer$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)();
|
|
71235
71220
|
return formulaNode.expression.ifNode.condition;
|
|
71236
71221
|
}
|
|
@@ -71502,7 +71487,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71502
71487
|
/* harmony import */ var _ServerSideFLangNormalization_Normalizers_AutoValueForValueByDefaultNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./ServerSideFLangNormalization/Normalizers/AutoValueForValueByDefaultNormalizationRuleGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/Normalizers/AutoValueForValueByDefaultNormalizationRuleGenerator.ts");
|
|
71503
71488
|
/* harmony import */ var _markupGenerator_KCLangCalculationsBuildContext__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./markupGenerator/KCLangCalculationsBuildContext */ "./Generator/src/generators/markupGenerator/KCLangCalculationsBuildContext.ts");
|
|
71504
71489
|
/* harmony import */ var _ServerSideFLangNormalization_NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./ServerSideFLangNormalization/NodeTypeInfoHelper */ "./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts");
|
|
71505
|
-
/* harmony import */ var
|
|
71490
|
+
/* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
|
|
71506
71491
|
|
|
71507
71492
|
|
|
71508
71493
|
|
|
@@ -71567,6 +71552,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
71567
71552
|
const kcLangFromSugar = extractKCLangFromSugar(sugarRoot, formSchemaRng, new _ServerSideFLangNormalization_NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_47__.NodeTypeInfoHelper(formSchemaRng, typeRegistry, useSchemaValidations)).map(x => x.toString()).join("\n");
|
|
71568
71553
|
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_21__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
71569
71554
|
builder.addBuildOutput("Sugar.generated.kclang", kcLangFromSugar);
|
|
71555
|
+
builder.addServerSideResource("Sugar.generated.kclang", kcLangFromSugar);
|
|
71570
71556
|
const mathContainerFromSugar = _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_6__.KCLangToXmlTranspiler.transpileAsMathContainer(kcLangFromSugar);
|
|
71571
71557
|
const formulas = ((_kxXmlMathContainer$f = kxXmlMathContainer === null || kxXmlMathContainer === void 0 || (_kxXmlMathContainer$f2 = kxXmlMathContainer.formulas) === null || _kxXmlMathContainer$f2 === void 0 ? void 0 : _kxXmlMathContainer$f2.items) !== null && _kxXmlMathContainer$f !== void 0 ? _kxXmlMathContainer$f : []).concat((_kcLangMathContainer$ = kcLangMathContainer === null || kcLangMathContainer === void 0 || (_kcLangMathContainer$2 = kcLangMathContainer.formulas) === null || _kcLangMathContainer$2 === void 0 ? void 0 : _kcLangMathContainer$2.items) !== null && _kcLangMathContainer$ !== void 0 ? _kcLangMathContainer$ : []).concat((_mathContainerFromSug = mathContainerFromSugar === null || mathContainerFromSugar === void 0 || (_mathContainerFromSug2 = mathContainerFromSugar.formulas) === null || _mathContainerFromSug2 === void 0 ? void 0 : _mathContainerFromSug2.items) !== null && _mathContainerFromSug !== void 0 ? _mathContainerFromSug : []);
|
|
71572
71558
|
const useServerCalculations = (_additionalContent$fo = (_additionalContent$fo2 = additionalContent.formJsonSettings) === null || _additionalContent$fo2 === void 0 ? void 0 : _additionalContent$fo2.useServerSideCalculations) !== null && _additionalContent$fo !== void 0 ? _additionalContent$fo : false;
|
|
@@ -71590,7 +71576,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
71590
71576
|
dataDeclaration
|
|
71591
71577
|
} = dataDeclarationGenerator.generate();
|
|
71592
71578
|
const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_26__.DataDeclarationGenerationTimeHelper(dataDeclaration, formSchemaRng);
|
|
71593
|
-
const extendedSchemaInfo = (0,
|
|
71579
|
+
const extendedSchemaInfo = (0,_ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_48__.buildExtendedSchemaInfo)(dataDeclarationHelper);
|
|
71594
71580
|
const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_16__.ValidationGenerator(sugarRoot, typeRegistry, controlCustomizationContext, formSchemaRng, useSchemaValidations, additionalContent.validationsContent, additionalContent.formJsonSettings);
|
|
71595
71581
|
const lazyLoadGenerator = new _LazyLoadDeclarationGenerator_LazyLoadDeclarationGenerator__WEBPACK_IMPORTED_MODULE_29__.LazyLoadDeclarationGenerator(sugarRoot, formSchemaRng);
|
|
71596
71582
|
const lazyLoadGeneratorResult = lazyLoadGenerator.generate();
|
|
@@ -83210,11 +83196,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
83210
83196
|
/* harmony import */ var _ProcessFormSources__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../ProcessFormSources */ "./Generator/src/generators/ProcessFormSources.ts");
|
|
83211
83197
|
/* harmony import */ var _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../common/KCLang/KCLangToXmlTranspiler */ "./Generator/src/common/KCLang/KCLangToXmlTranspiler.ts");
|
|
83212
83198
|
/* harmony import */ var _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../KCXmlValidationGenerator/KCXmlValidationGenerator */ "./Generator/src/generators/KCXmlValidationGenerator/KCXmlValidationGenerator.ts");
|
|
83213
|
-
/* harmony import */ var
|
|
83214
|
-
/* harmony import */ var
|
|
83215
|
-
/* harmony import */ var
|
|
83216
|
-
/* harmony import */ var
|
|
83217
|
-
/* harmony import */ var
|
|
83199
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationTimeHelper */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationTimeHelper.ts");
|
|
83200
|
+
/* harmony import */ var _common_KCLang_CodeDom_InBlock__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/InBlock */ "./Generator/src/common/KCLang/CodeDom/InBlock.ts");
|
|
83201
|
+
/* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
|
|
83202
|
+
/* harmony import */ var _UserPicklistNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./UserPicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts");
|
|
83203
|
+
/* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
|
|
83218
83204
|
|
|
83219
83205
|
|
|
83220
83206
|
|
|
@@ -83242,7 +83228,7 @@ function getUserPicklistComponentName(node) {
|
|
|
83242
83228
|
}
|
|
83243
83229
|
class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
|
|
83244
83230
|
static getAcceptNodeClass() {
|
|
83245
|
-
return
|
|
83231
|
+
return _UserPicklistNode__WEBPACK_IMPORTED_MODULE_20__.UserPicklistNode;
|
|
83246
83232
|
}
|
|
83247
83233
|
applyVisibilityPathProcessing() {
|
|
83248
83234
|
return false;
|
|
@@ -83261,7 +83247,7 @@ class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
83261
83247
|
}
|
|
83262
83248
|
doConvert(context) {
|
|
83263
83249
|
var _findSugarNodeBases$, _mathContainerFromSug, _mathContainerFromSug2;
|
|
83264
|
-
const node = this.getCurrentNodeAs(
|
|
83250
|
+
const node = this.getCurrentNodeAs(_UserPicklistNode__WEBPACK_IMPORTED_MODULE_20__.UserPicklistNode);
|
|
83265
83251
|
const userPicklistDeclarationBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_4__.componentMarkupBuilder)("UserPicklistDeclaration");
|
|
83266
83252
|
userPicklistDeclarationBuilder.prop(x => x.name).set(node.name);
|
|
83267
83253
|
userPicklistDeclarationBuilder.prop(x => x.columns).set(node.columns);
|
|
@@ -83279,13 +83265,13 @@ class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
83279
83265
|
const useSchemaValidations = false;
|
|
83280
83266
|
const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationGenerator(sugarRoot, new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory(_common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__.FetchFunctions.empty()), context.controlCustomizationContext, typeRegistry, _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_7__.FormSchemaRng.createEmpty(), false);
|
|
83281
83267
|
let kcLangStatements = (0,_ProcessFormSources__WEBPACK_IMPORTED_MODULE_14__.extractKCLangFromSugar)(sugarRoot, formSchemaRng, new _ServerSideFLangNormalization_NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_13__.NodeTypeInfoHelper(formSchemaRng, typeRegistry, useSchemaValidations));
|
|
83282
|
-
kcLangStatements = [new
|
|
83268
|
+
kcLangStatements = [new _common_KCLang_CodeDom_InBlock__WEBPACK_IMPORTED_MODULE_18__.InBlock(new _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.KCLangPath(false, [new _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_19__.PathElement(".")]), kcLangStatements)];
|
|
83283
83269
|
const kcLangFromSugar = kcLangStatements.map(x => x.toString()).join("\n");
|
|
83284
83270
|
const {
|
|
83285
83271
|
dataDeclaration
|
|
83286
83272
|
} = dataDeclarationGenerator.generate();
|
|
83287
|
-
const dataDeclarationHelper = new
|
|
83288
|
-
const extendedSchemaInfo = (0,
|
|
83273
|
+
const dataDeclarationHelper = new _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_17__.DataDeclarationGenerationTimeHelper(dataDeclaration, formSchemaRng);
|
|
83274
|
+
const extendedSchemaInfo = (0,_ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_21__.buildExtendedSchemaInfo)(dataDeclarationHelper);
|
|
83289
83275
|
const mathContainerFromSugar = _common_KCLang_KCLangToXmlTranspiler__WEBPACK_IMPORTED_MODULE_15__.KCLangToXmlTranspiler.transpileAsMathContainer(kcLangFromSugar);
|
|
83290
83276
|
const kcXmlValidationGenerator = new _KCXmlValidationGenerator_KCXmlValidationGenerator__WEBPACK_IMPORTED_MODULE_16__.KCXmlValidationGenerator(formSchemaRng, extendedSchemaInfo);
|
|
83291
83277
|
const kcXmlValidationConfiguratorFunction = kcXmlValidationGenerator.generateConfigurationFunction((_mathContainerFromSug = (_mathContainerFromSug2 = mathContainerFromSugar.conditions) === null || _mathContainerFromSug2 === void 0 ? void 0 : _mathContainerFromSug2.items) !== null && _mathContainerFromSug !== void 0 ? _mathContainerFromSug : [], {
|