@kontur.candy/generator 6.12.0 → 6.12.1-ignore-auto-flag-calculation.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.
Files changed (2) hide show
  1. package/dist/index.js +359 -65
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3261,6 +3261,24 @@ module.exports = webpackEmptyContext;
3261
3261
 
3262
3262
  /***/ }),
3263
3263
 
3264
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize sync recursive .md$":
3265
+ /*!******************************************************************************************************!*\
3266
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/ sync .md$ ***!
3267
+ \******************************************************************************************************/
3268
+ /***/ ((module) => {
3269
+
3270
+ function webpackEmptyContext(req) {
3271
+ var e = new Error("Cannot find module '" + req + "'");
3272
+ e.code = 'MODULE_NOT_FOUND';
3273
+ throw e;
3274
+ }
3275
+ webpackEmptyContext.keys = () => ([]);
3276
+ webpackEmptyContext.resolve = webpackEmptyContext;
3277
+ webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize sync recursive .md$";
3278
+ module.exports = webpackEmptyContext;
3279
+
3280
+ /***/ }),
3281
+
3264
3282
  /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text sync recursive .md$":
3265
3283
  /*!*************************************************************************************************!*\
3266
3284
  !*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/ sync .md$ ***!
@@ -46817,20 +46835,58 @@ __webpack_require__.r(__webpack_exports__);
46817
46835
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46818
46836
  /* harmony export */ AbsoluteModelFieldPath: () => (/* binding */ AbsoluteModelFieldPath)
46819
46837
  /* harmony export */ });
46838
+ /* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../TypingUtils */ "./Common/TypingUtils.ts");
46839
+ /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
46840
+ /* harmony import */ var _BaseModelFieldPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseModelFieldPath */ "./Common/ModelPath/BaseModelFieldPath.ts");
46841
+
46842
+
46843
+
46844
+ class AbsoluteModelFieldPath extends _BaseModelFieldPath__WEBPACK_IMPORTED_MODULE_2__.BaseModelFieldPath {
46845
+ constructor(path, fieldName) {
46846
+ super(path, fieldName);
46847
+ }
46848
+ static createFromString(pathWithFieldName, defaultFieldName) {
46849
+ return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(path), defaultFieldName);
46850
+ }
46851
+ static createFromMask(pathWithFieldName, multiplicitySymbol, defaultFieldName) {
46852
+ return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(path, multiplicitySymbol), defaultFieldName);
46853
+ }
46854
+ static createFrom(pathWithFieldName, modelPathFactory, defaultFieldName = "value") {
46855
+ var _match$, _ref;
46856
+ const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
46857
+ const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)() : pathWithFieldName;
46858
+ const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)() : defaultFieldName;
46859
+ return new AbsoluteModelFieldPath(modelPathFactory(path), field);
46860
+ }
46861
+ }
46862
+
46863
+ /***/ }),
46864
+
46865
+ /***/ "./Common/ModelPath/BaseModelFieldPath.ts":
46866
+ /*!************************************************!*\
46867
+ !*** ./Common/ModelPath/BaseModelFieldPath.ts ***!
46868
+ \************************************************/
46869
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46870
+
46871
+ "use strict";
46872
+ __webpack_require__.r(__webpack_exports__);
46873
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46874
+ /* harmony export */ BaseModelFieldPath: () => (/* binding */ BaseModelFieldPath)
46875
+ /* harmony export */ });
46820
46876
  /* harmony import */ var _Engine_src_Engine_Core_CoreTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Engine/src/Engine/Core/CoreTypes */ "./Engine/src/Engine/Core/CoreTypes.ts");
46821
46877
  /* harmony import */ var _hashUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hashUtils */ "./Common/hashUtils.ts");
46822
- /* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TypingUtils */ "./Common/TypingUtils.ts");
46823
- /* harmony import */ var _IterableUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../IterableUtils */ "./Common/IterableUtils.ts");
46878
+ /* harmony import */ var _IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../IterableUtils */ "./Common/IterableUtils.ts");
46879
+ /* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TypingUtils */ "./Common/TypingUtils.ts");
46824
46880
  /* harmony import */ var _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EachCurrentCollision */ "./Common/ModelPath/EachCurrentCollision.ts");
46825
46881
  /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
46826
- var _AbsoluteModelFieldPath;
46882
+ var _BaseModelFieldPath;
46827
46883
 
46828
46884
 
46829
46885
 
46830
46886
 
46831
46887
 
46832
46888
 
46833
- class AbsoluteModelFieldPath {
46889
+ class BaseModelFieldPath {
46834
46890
  constructor(path, fieldName) {
46835
46891
  this.path = void 0;
46836
46892
  this.field = void 0;
@@ -46843,33 +46899,20 @@ class AbsoluteModelFieldPath {
46843
46899
  isEquals(modelPath, eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_4__.EachCurrentCollision.AreSame) {
46844
46900
  return this.path.isEquals(modelPath.path, eachCurrentCollision) && this.field === modelPath.field;
46845
46901
  }
46846
- static createFromString(pathWithFieldName, defaultFieldName) {
46847
- return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(path), defaultFieldName);
46848
- }
46849
- static createFromMask(pathWithFieldName, multiplicitySymbol, defaultFieldName) {
46850
- return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(path, multiplicitySymbol), defaultFieldName);
46851
- }
46852
- static createFrom(pathWithFieldName, modelPathFactory, defaultFieldName = "value") {
46853
- var _match$, _ref;
46854
- const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
46855
- const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : pathWithFieldName;
46856
- const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : defaultFieldName;
46857
- return new AbsoluteModelFieldPath(modelPathFactory(path), field);
46858
- }
46859
46902
  toString(includeLeadingSlash = false) {
46860
46903
  return `${includeLeadingSlash ? "/" : ""}${this.path.toLegacyPath()}.${this.field}`;
46861
46904
  }
46862
46905
  toLegacyPath(addSlashIfLastTokenIsInstanceOrMultiplicity = true) {
46863
- const lastToken = _IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.last(this.path.getPathParts());
46906
+ const lastToken = _IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.last(this.path.getPathParts());
46864
46907
  const isLastTokenAnInstanceOrMultiplicity = _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isInstanceTokenOrInstancesSpec(lastToken) || _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isMultiToken(lastToken);
46865
- const slashIfRequired = addSlashIfLastTokenIsInstanceOrMultiplicity && isLastTokenAnInstanceOrMultiplicity && (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(this.field) ? "/" : "";
46866
- const dotIfRequired = (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(this.field) ? "." : "";
46908
+ const slashIfRequired = addSlashIfLastTokenIsInstanceOrMultiplicity && isLastTokenAnInstanceOrMultiplicity && (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(this.field) ? "/" : "";
46909
+ const dotIfRequired = (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(this.field) ? "." : "";
46867
46910
  return `${this.path.toLegacyPath()}${slashIfRequired}${dotIfRequired}${this.field}`;
46868
46911
  }
46869
46912
  }
46870
- _AbsoluteModelFieldPath = AbsoluteModelFieldPath;
46871
- AbsoluteModelFieldPath.extraFieldNames = ["\\$errorCount", "\\$warningCount"];
46872
- AbsoluteModelFieldPath.fieldExtractRegex = new RegExp(`^(.*)\\.(${_AbsoluteModelFieldPath.extraFieldNames.concat(...(0,_Engine_src_Engine_Core_CoreTypes__WEBPACK_IMPORTED_MODULE_0__.getKnownViewModelFieldNames)().values()).join("|")})$`);
46913
+ _BaseModelFieldPath = BaseModelFieldPath;
46914
+ BaseModelFieldPath.extraFieldNames = ["\\$errorCount", "\\$warningCount"];
46915
+ BaseModelFieldPath.fieldExtractRegex = new RegExp(`^(.*)\\.(${_BaseModelFieldPath.extraFieldNames.concat(...(0,_Engine_src_Engine_Core_CoreTypes__WEBPACK_IMPORTED_MODULE_0__.getKnownViewModelFieldNames)().values()).join("|")})$`);
46873
46916
 
46874
46917
  /***/ }),
46875
46918
 
@@ -49180,6 +49223,7 @@ __webpack_require__.r(__webpack_exports__);
49180
49223
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
49181
49224
  /* harmony export */ ensureIsKnownViewModelFieldName: () => (/* binding */ ensureIsKnownViewModelFieldName),
49182
49225
  /* harmony export */ getKnownViewModelFieldNames: () => (/* binding */ getKnownViewModelFieldNames),
49226
+ /* harmony export */ isViewModelFieldName: () => (/* binding */ isViewModelFieldName),
49183
49227
  /* harmony export */ nonRegularFieldName: () => (/* binding */ nonRegularFieldName)
49184
49228
  /* harmony export */ });
49185
49229
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
@@ -49202,6 +49246,9 @@ const names = new Set(allKeysOfViewModelFieldName);
49202
49246
  function getKnownViewModelFieldNames() {
49203
49247
  return names;
49204
49248
  }
49249
+ function isViewModelFieldName(name) {
49250
+ return keysOfViewModelFieldName.includes(name);
49251
+ }
49205
49252
 
49206
49253
  /***/ }),
49207
49254
 
@@ -49219,6 +49266,8 @@ __webpack_require__.r(__webpack_exports__);
49219
49266
  let AggregationType = /*#__PURE__*/function (AggregationType) {
49220
49267
  AggregationType[AggregationType["Sum"] = 0] = "Sum";
49221
49268
  AggregationType[AggregationType["Count"] = 1] = "Count";
49269
+ AggregationType[AggregationType["Max"] = 2] = "Max";
49270
+ AggregationType[AggregationType["Min"] = 3] = "Min";
49222
49271
  return AggregationType;
49223
49272
  }({});
49224
49273
 
@@ -71469,6 +71518,14 @@ __webpack_require__.r(__webpack_exports__);
71469
71518
  /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../Common/Errors */ "./Common/Errors.ts");
71470
71519
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
71471
71520
  /* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
71521
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../common/KCLang/CodeDom/KCLangUtils */ "./Generator/src/common/KCLang/CodeDom/KCLangUtils.ts");
71522
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
71523
+ /* harmony import */ var _common_KCLang_CodeDom_ConditionalExpression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../common/KCLang/CodeDom/ConditionalExpression */ "./Generator/src/common/KCLang/CodeDom/ConditionalExpression.ts");
71524
+ /* harmony import */ var _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../common/KCLang/CodeDom/StringConstExpression */ "./Generator/src/common/KCLang/CodeDom/StringConstExpression.ts");
71525
+
71526
+
71527
+
71528
+
71472
71529
 
71473
71530
 
71474
71531
 
@@ -71476,9 +71533,13 @@ __webpack_require__.r(__webpack_exports__);
71476
71533
 
71477
71534
 
71478
71535
  class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.KCXmlGeneratorBase {
71479
- constructor(schema, dataDeclarationHelper, extendedSchemaInfo) {
71536
+ constructor(schema, dataDeclarationHelper, extendedSchemaInfo, kclangToJSConverter, kclangParser) {
71480
71537
  super(schema, extendedSchemaInfo);
71481
71538
  this.dataDeclarationHelper = void 0;
71539
+ this.kclangToJsConverter = void 0;
71540
+ this.kclangParser = void 0;
71541
+ this.kclangParser = kclangParser;
71542
+ this.kclangToJsConverter = kclangToJSConverter;
71482
71543
  this.dataDeclarationHelper = dataDeclarationHelper;
71483
71544
  }
71484
71545
  generate(formulas, options) {
@@ -71520,6 +71581,11 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
71520
71581
  const optional = this.dataDeclarationHelper.isNodeOptionalBySchemaOrSugar(target);
71521
71582
  const forceAutoValue = this.dataDeclarationHelper.isNodeHasForcedAutoValueEntry(target);
71522
71583
  const compiledTarget = this.modelPathInstance(target);
71584
+ const ignoreAutoFlagConditionString = this.dataDeclarationHelper.getIgnoreAutoFlagCondition(target);
71585
+ const ignoreAutoFlagConditionJsExpr = ignoreAutoFlagConditionString != undefined ? (() => {
71586
+ const ignoreAutoFlagConditionKClangExpr = new _common_KCLang_CodeDom_ConditionalExpression__WEBPACK_IMPORTED_MODULE_8__.ConditionalExpression((0,_common_KCLang_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_6__.strictCastExpression)(this.kclangParser.parseExpression(ignoreAutoFlagConditionString), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_7__.BoolType.default), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_9__.StringConstExpression("true"), new _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_9__.StringConstExpression("false"));
71587
+ return this.kclangToJsConverter.compileExpression(ignoreAutoFlagConditionKClangExpr, prefix, target, dep => dependencies.push(dep));
71588
+ })() : undefined;
71523
71589
  const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.filter(x => (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isIDependency)(x)).map(x => ({
71524
71590
  path: x.asDependencyModelPath(),
71525
71591
  isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
@@ -71528,8 +71594,11 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
71528
71594
  const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
71529
71595
  const compiledExpressionWithCheck = this.compileAllItemsIsEmptyCheckBlock(compiledExpression, dependencyModelPaths.filter(x => !x.isIgnoreForChecks).map(x => x.path));
71530
71596
  const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpressionWithCheck}, "${defaultValue}")`;
71597
+ const compiledignoreAutoFlagConditionJsDelegate = `context => KCCalculation.execute(context, expression => ${ignoreAutoFlagConditionJsExpr}, "false")`;
71598
+ const funcArguments = [compiledTarget, `[${compiledDeps}]`, compiledDelegate, autoField, disabled, optional, forceAutoValue, compiledignoreAutoFlagConditionJsDelegate];
71599
+ const funcArgumentsString = funcArguments.join(", ");
71531
71600
  return {
71532
- compiledFunction: `new CalculationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate}, ${autoField}, ${disabled}, ${optional}, ${forceAutoValue})`,
71601
+ compiledFunction: `new CalculationFunction(${funcArgumentsString})`,
71533
71602
  dependencies: dependencies
71534
71603
  };
71535
71604
  }
@@ -74106,6 +74175,13 @@ class DataDeclarationGenerationContext {
74106
74175
  this.declarationCustomizer = (objValue, srcValue, key) => {
74107
74176
  // Вся эта функция не типизируется
74108
74177
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
74178
+
74179
+ if (key == "ignoreAutoFlagCondition") {
74180
+ if (objValue == undefined || srcValue == undefined) {
74181
+ return objValue !== null && objValue !== void 0 ? objValue : srcValue;
74182
+ }
74183
+ return `(${objValue}) and (${srcValue})`;
74184
+ }
74109
74185
  if (key === "section") {
74110
74186
  const result = lodash_uniqwith__WEBPACK_IMPORTED_MODULE_1___default()([].concat(...(objValue !== null && objValue !== void 0 ? objValue : []), ...srcValue), (a, b) => {
74111
74187
  if (typeof a === "object" && typeof b === "object") {
@@ -74200,6 +74276,13 @@ class DataDeclarationGenerationContext {
74200
74276
  [(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getResolvedBindingPath)(node)]: declEntry
74201
74277
  };
74202
74278
  }
74279
+ addIgnoreAutoFlagCondition(node, condition) {
74280
+ const declEntry = {};
74281
+ declEntry.ignoreAutoFlagCondition = condition;
74282
+ return {
74283
+ [(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__.getResolvedBindingPath)(node)]: declEntry
74284
+ };
74285
+ }
74203
74286
  processChildrenDataDeclaration(children, nodeProcessor) {
74204
74287
  const childrenDataDeclaration = [];
74205
74288
  for (const child of children) {
@@ -74526,6 +74609,10 @@ class DataDeclarationGenerationTimeHelper {
74526
74609
  const entry = this.getDataDeclarationEntry(targetPath);
74527
74610
  return entry === null || entry === void 0 ? void 0 : entry.pageId;
74528
74611
  }
74612
+ getIgnoreAutoFlagCondition(targetPath) {
74613
+ const entry = this.getDataDeclarationEntry(targetPath);
74614
+ return entry === null || entry === void 0 ? void 0 : entry.ignoreAutoFlagCondition;
74615
+ }
74529
74616
  *getAllNestedPaths(nodePath) {
74530
74617
  for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.iterateKeys)(this.dataDeclaration)) {
74531
74618
  const path = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(key, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
@@ -75470,6 +75557,7 @@ function buildExtendedSchemaInfo(dataDeclaration) {
75470
75557
  props.isForceFilledOptional = props.isFilledOptionalRequired = isPage && optional && (isMultiple && singleSectionsSet.has(path) || !isMultiple) || undefined;
75471
75558
  props.fields = buildFieldsConfiguration(path, dataDeclaration);
75472
75559
  props.disableValueAutoInit = dataDeclaration.isNodeHasDisableValueAutoInitEntry(path);
75560
+ props.ignoreAutoFlagKCLangCondition = dataDeclaration.getIgnoreAutoFlagCondition(path);
75473
75561
  }
75474
75562
  return {
75475
75563
  roots: [...nodes.values()].map(x => x[0])
@@ -77517,7 +77605,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
77517
77605
  const formulaExprConverter = new _ServerSideFLangNormalization_FormulaExpressionToFlangExpressionConverter__WEBPACK_IMPORTED_MODULE_51__.FormulaExpressionToFlangExpressionConverter(path => (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_52__.adjustPathMultiplicityComplex)(path, dataDeclarationHelper), {
77518
77606
  enableGroupSumAutoConversion: (_additionalContent$fo9 = (_additionalContent$fo10 = additionalContent.formJsonSettings) === null || _additionalContent$fo10 === void 0 ? void 0 : _additionalContent$fo10.useServerSideCalculations) !== null && _additionalContent$fo9 !== void 0 ? _additionalContent$fo9 : false
77519
77607
  });
77520
- const formulaRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_FormulaRulesBuilder__WEBPACK_IMPORTED_MODULE_53__.FormulaRulesBuilder(formSchemaRng, formulas, dataDeclarationHelper, formulaExprConverter, {
77608
+ const formulaRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_FormulaRulesBuilder__WEBPACK_IMPORTED_MODULE_53__.FormulaRulesBuilder(formSchemaRng, formulas, dataDeclarationHelper, formulaExprConverter, kclangCodeDomExprToFlangConverter, {
77521
77609
  enableTypedFlang: (_additionalContent$fo11 = (_additionalContent$fo12 = additionalContent.formJsonSettings) === null || _additionalContent$fo12 === void 0 ? void 0 : _additionalContent$fo12.useServerSideCalculations) !== null && _additionalContent$fo11 !== void 0 ? _additionalContent$fo11 : false
77522
77610
  });
77523
77611
  const initializationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_InitializationRulesBuilder__WEBPACK_IMPORTED_MODULE_54__.InitializationRulesBuilder(sugarRoot, resourcesHash);
@@ -77598,7 +77686,9 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
77598
77686
  const rngSchemaValidationConfigurator = validationGenerator.generateRngSchemaValidationConfigurator();
77599
77687
  builder.addResource("rngSchemaValidationConfigurator.js", rngSchemaValidationConfigurator);
77600
77688
  const formulasForCalculator2 = useCalculator2 ? formulas : [];
77601
- const kcXmlAutoCalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_45__.AutoCalculationsCalculator2Generator(formSchemaRng, dataDeclarationHelper, extendedSchemaInfo);
77689
+ const kcXmlAutoCalcGenerator = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_Calculator2_AutoCalculationsCalculator2Generator__WEBPACK_IMPORTED_MODULE_45__.AutoCalculationsCalculator2Generator(formSchemaRng, dataDeclarationHelper, extendedSchemaInfo, new _KCLangToJsGenerator_KCLangExpressionToJsExpressionConverter__WEBPACK_IMPORTED_MODULE_74__.KCLangExpressionToJsExpressionConverter(path => (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_52__.adjustPathMultiplicity)(formSchemaRng, extendedSchemaInfo, path), {
77690
+ replaceNullPathGetterWithNullConstant: false
77691
+ }), kclLangParser);
77602
77692
  builder.addResource("kcXmlAutoCalculationConfigurator.js", kcXmlAutoCalcGenerator.generate(formulasForCalculator2, {
77603
77693
  skipNotSupportedFunction: useServerCalculations
77604
77694
  }));
@@ -81831,7 +81921,11 @@ __webpack_require__.r(__webpack_exports__);
81831
81921
  /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
81832
81922
  /* harmony import */ var _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../Common/ModelPath/AbsoluteModelFieldPath */ "./Common/ModelPath/AbsoluteModelFieldPath.ts");
81833
81923
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
81834
- /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
81924
+ /* harmony import */ var _common_KCLang_Antlr_Parser_KCLangParser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../common/KCLang/Antlr/Parser/KCLangParser */ "./Generator/src/common/KCLang/Antlr/Parser/KCLangParser.ts");
81925
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../common/KCLang/CodeDom/KCLangUtils */ "./Generator/src/common/KCLang/CodeDom/KCLangUtils.ts");
81926
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
81927
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
81928
+
81835
81929
 
81836
81930
 
81837
81931
 
@@ -81839,14 +81933,19 @@ __webpack_require__.r(__webpack_exports__);
81839
81933
 
81840
81934
 
81841
81935
 
81842
- class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.BaseRuleBuilder {
81843
- constructor(formSchemaRng, formulas, dataDeclarationHelper, formulaExprConverter, options) {
81936
+
81937
+
81938
+ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_9__.BaseRuleBuilder {
81939
+ constructor(formSchemaRng, formulas, dataDeclarationHelper, formulaExprConverter, kclangExprConverter, options) {
81844
81940
  super();
81845
81941
  this.formSchemaRng = void 0;
81846
81942
  this.formulas = void 0;
81847
81943
  this.options = void 0;
81848
81944
  this.formulaExprConverter = void 0;
81849
81945
  this.dataDeclarationHelper = void 0;
81946
+ this.kclangExprConverter = void 0;
81947
+ this.kclangParser = new _common_KCLang_Antlr_Parser_KCLangParser__WEBPACK_IMPORTED_MODULE_6__.KCLangParser();
81948
+ this.kclangExprConverter = kclangExprConverter;
81850
81949
  this.options = options;
81851
81950
  this.formulaExprConverter = formulaExprConverter;
81852
81951
  this.dataDeclarationHelper = dataDeclarationHelper;
@@ -81869,15 +81968,17 @@ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.
81869
81968
  const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
81870
81969
  const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
81871
81970
  const isDecimal = ((_this$formSchemaRng$g = this.formSchemaRng.getTypeNodeByPath(fullTarget.toAbsolute())) === null || _this$formSchemaRng$g === void 0 ? void 0 : _this$formSchemaRng$g.baseType) === "decimal";
81971
+ const ignoreAutoFlagCondition = this.dataDeclarationHelper.getIgnoreAutoFlagCondition(fullTarget.toAbsolute());
81872
81972
  const getFormulaExpression = targetField => {
81873
81973
  const result = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.castFinalExpressionToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, targetField), x => precalculationRules.push(x)), this.options.enableTypedFlang, fullTarget, "G29");
81874
81974
  const resultType = result.getType();
81875
81975
  return resultType === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.string ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.wrapWithArgumentsCondition)(result), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue)) : result;
81876
81976
  };
81977
+ const ignoreAutoFlagRule = ignoreAutoFlagCondition != undefined ? this.createIgnoreAutoFlagRule(fullTarget, prefix, ignoreAutoFlagCondition, dep => precalculationRules.push(dep)) : undefined;
81877
81978
  const valueRule = isTargetAutoField ? isDisabled ? this.createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) : this.createValueRuleForAutoField(fullTarget, defaultValue, getFormulaExpression) : this.createRegularValueRule(fullTarget, getFormulaExpression);
81878
81979
  const autoValueRule = isTargetAutoField ? this.createAutoValueRule(fullTarget, getFormulaExpression) : undefined;
81879
- const autoFlagRule = isTargetAutoField ? this.createAutoFlagRule(fullTarget, isDecimal) : undefined;
81880
- const result = [autoValueRule, autoFlagRule, valueRule].concat(...precalculationRules).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.isNotNullOrUndefined);
81980
+ const autoFlagRule = isTargetAutoField ? this.createAutoFlagRule(fullTarget, isDecimal, ignoreAutoFlagRule != undefined) : undefined;
81981
+ const result = [autoValueRule, autoFlagRule, valueRule, ignoreAutoFlagRule].concat(...precalculationRules).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.isNotNullOrUndefined);
81881
81982
  return result;
81882
81983
  }
81883
81984
  createAutoValueRule(fullTarget, getFormulaExpression) {
@@ -81886,8 +81987,17 @@ class FormulaRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_6__.
81886
81987
  createRegularValueRule(fullTarget, getFormulaExpression) {
81887
81988
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value"));
81888
81989
  }
81889
- createAutoFlagRule(fullTarget, isDecimal) {
81890
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("false"))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.decimalWrapper)((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "value"), isDecimal), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.decimalWrapper)((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "autoValue"), isDecimal)), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.string), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeNoDeps)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag"))));
81990
+ createIgnoreAutoFlagRule(fullTarget, fullPrefix, ignoreAutoFlagCondition, addPrecalculationRule) {
81991
+ const kclangExpression = (0,_common_KCLang_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_7__.strictCastExpression)(this.kclangParser.parseExpression(ignoreAutoFlagCondition), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_8__.BoolType.default);
81992
+ const flangExpression = this.kclangExprConverter.compileExpressionToFlangExpression(kclangExpression, fullPrefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, "ignoreAutoFlag"), addPrecalculationRule);
81993
+ if (flangExpression.getType() != _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.bool) {
81994
+ throw new Error(`Invalid Flang type! Expected: bool, recieved: ${flangExpression.getType()}`);
81995
+ }
81996
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "ignoreAutoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(flangExpression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("false")));
81997
+ }
81998
+ createAutoFlagRule(fullTarget, isDecimal, useIgnoreAutoFlagRule) {
81999
+ const baseAutoFlagExpr = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("false"))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.decimalWrapper)((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "value"), isDecimal), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.decimalWrapper)((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(fullTarget.toCurrentIteration(), "autoValue"), isDecimal)), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.string), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeNoDeps)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag")));
82000
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "autoFlag"), useIgnoreAutoFlagRule ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.EqExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "ignoreAutoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("false"), baseAutoFlagExpr) : baseAutoFlagExpr);
81891
82001
  }
81892
82002
  createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) {
81893
82003
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value"));
@@ -83247,6 +83357,8 @@ __webpack_require__.r(__webpack_exports__);
83247
83357
  /* harmony import */ var _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateConverter__WEBPACK_IMPORTED_MODULE_130__ = __webpack_require__(/*! ./ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateConverter.ts");
83248
83358
  /* harmony import */ var _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryConverter__WEBPACK_IMPORTED_MODULE_131__ = __webpack_require__(/*! ./ElementProcessors/MultiControls/AggregationQuery/AggregationQueryConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AggregationQuery/AggregationQueryConverter.ts");
83249
83359
  /* harmony import */ var _ElementProcessors_MultiControls_ContextVar_ExprEvalConverter__WEBPACK_IMPORTED_MODULE_132__ = __webpack_require__(/*! ./ElementProcessors/MultiControls/ContextVar/ExprEvalConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/ContextVar/ExprEvalConverter.ts");
83360
+ /* harmony import */ var _ElementProcessors_ValueViewers_Pluralize_PluralizeConverter__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(/*! ./ElementProcessors/ValueViewers/Pluralize/PluralizeConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeConverter.ts");
83361
+
83250
83362
 
83251
83363
 
83252
83364
 
@@ -83386,7 +83498,7 @@ function buildConvertersFromNodeClassMap() {
83386
83498
  // <ModalForm>
83387
83499
  _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_56__.BodyConverter, _ElementProcessors_Modal_ErrorBlock_ErrorBlockConverter__WEBPACK_IMPORTED_MODULE_57__.ErrorBlockConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_58__.FooterConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormCancelConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_61__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_62__.ModalFormLabelConverter, _ElementProcessors_Modal_ModalFormRemove_ModalFormRemoveConverter__WEBPACK_IMPORTED_MODULE_63__.ModalFormRemoveConverter,
83388
83500
  // </ModalForm>
83389
- _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_64__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_65__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_67__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_68__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_69__.PicklistConverter, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistConverter__WEBPACK_IMPORTED_MODULE_121__.TreePicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_70__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_71__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_72__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_73__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_74__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_75__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_76__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_77__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_78__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_79__.SupConverter, _ElementProcessors_Typography_Nobr_NobrConverter__WEBPACK_IMPORTED_MODULE_80__.NobrConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_89__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_90__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_99__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_95__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_96__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_97__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_66__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_98__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_94__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_93__.UnitItemConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_14__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_15__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_16__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_92__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_81__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_86__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_82__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_84__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_83__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_85__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_87__.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_104__.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_103__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_102__.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_106__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_105__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_107__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_108__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_109__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_110__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_111__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_112__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_116__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_117__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_118__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_119__.SelectAllCheckboxConverter, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxConverter__WEBPACK_IMPORTED_MODULE_123__.SelectCheckboxConverter, _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_124__.ModalHeaderConverter, _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_125__.GlobalModalsConverter, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberConverter, _ElementProcessors_Layout_OptionalBlock_OptionalBlockConverter__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockConverter, _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateConverter__WEBPACK_IMPORTED_MODULE_130__.EmptyTemplateConverter, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryConverter__WEBPACK_IMPORTED_MODULE_131__.AggregationQueryConverter, _ElementProcessors_MultiControls_ContextVar_ExprEvalConverter__WEBPACK_IMPORTED_MODULE_132__.ExprEvalConverter];
83501
+ _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_64__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_65__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_67__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_68__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_69__.PicklistConverter, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistConverter__WEBPACK_IMPORTED_MODULE_121__.TreePicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_70__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_71__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_72__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_73__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_74__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_75__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_76__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_77__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_78__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_79__.SupConverter, _ElementProcessors_Typography_Nobr_NobrConverter__WEBPACK_IMPORTED_MODULE_80__.NobrConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_89__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_90__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_99__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_95__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_96__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_97__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_66__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_98__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_94__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_93__.UnitItemConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_14__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_15__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_16__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_92__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_81__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_86__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_82__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_84__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_83__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_85__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_87__.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_104__.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_103__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_102__.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_106__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_105__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_107__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_108__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_109__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_110__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_111__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_112__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_116__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_117__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_118__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_119__.SelectAllCheckboxConverter, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxConverter__WEBPACK_IMPORTED_MODULE_123__.SelectCheckboxConverter, _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_124__.ModalHeaderConverter, _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_125__.GlobalModalsConverter, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberConverter, _ElementProcessors_Layout_OptionalBlock_OptionalBlockConverter__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockConverter, _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateConverter__WEBPACK_IMPORTED_MODULE_130__.EmptyTemplateConverter, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryConverter__WEBPACK_IMPORTED_MODULE_131__.AggregationQueryConverter, _ElementProcessors_MultiControls_ContextVar_ExprEvalConverter__WEBPACK_IMPORTED_MODULE_132__.ExprEvalConverter, _ElementProcessors_ValueViewers_Pluralize_PluralizeConverter__WEBPACK_IMPORTED_MODULE_133__.PluralizeConverter];
83390
83502
  return new Map(converters.flatMap(converterClass => {
83391
83503
  let classes = converterClass.getAcceptNodeClass();
83392
83504
  classes = Array.isArray(classes) ? classes : [classes];
@@ -95801,7 +95913,7 @@ class AddRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
95801
95913
  const element = formSchemaRng.getElementByPath(node.getFullPath());
95802
95914
 
95803
95915
  // eslint-disable-next-line no-warning-comments
95804
- // TODO(2026-04-01): Необходимо разобраться с тем, что тут конфликтят свойства в type. Подробности в задаче https://yt.skbkontur.ru/issue/FS-9234
95916
+ // TODO(2026-05-01): Необходимо разобраться с тем, что тут конфликтят свойства в type. Подробности в задаче https://yt.skbkontur.ru/issue/FS-9234
95805
95917
  const fakeNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_7__.TypeNode();
95806
95918
  fakeNode.base = "string";
95807
95919
  fakeNode.children = [];
@@ -105415,9 +105527,29 @@ __webpack_require__.r(__webpack_exports__);
105415
105527
  /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
105416
105528
  /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
105417
105529
  /* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
105418
- /* harmony import */ var _SetCurrencyProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SetCurrencyProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/SetCurrencyProps.ts");
105419
- /* harmony import */ var _InputNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./InputNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputNode.ts");
105420
- /* harmony import */ var _InputLimitations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./InputLimitations */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputLimitations.ts");
105530
+ /* harmony import */ var _KCLangCalculationsBuildContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../KCLangCalculationsBuildContext */ "./Generator/src/generators/markupGenerator/KCLangCalculationsBuildContext.ts");
105531
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangType */ "./Generator/src/common/KCLang/CodeDom/KCLangType.ts");
105532
+ /* harmony import */ var _ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../ControlFlow/If/IfNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/If/IfNode.ts");
105533
+ /* harmony import */ var _common_CastUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../common/CastUtils */ "./Generator/src/common/CastUtils.ts");
105534
+ /* harmony import */ var _ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../ControlFlow/Switch/SwitchNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/Switch/SwitchNode.ts");
105535
+ /* harmony import */ var _common_KCLang_Antlr_Parser_KCLangParser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../common/KCLang/Antlr/Parser/KCLangParser */ "./Generator/src/common/KCLang/Antlr/Parser/KCLangParser.ts");
105536
+ /* harmony import */ var _ControlFlow_If_PredefinedJsConditions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../ControlFlow/If/PredefinedJsConditions */ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/If/PredefinedJsConditions.ts");
105537
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangUtils */ "./Generator/src/common/KCLang/CodeDom/KCLangUtils.ts");
105538
+ /* harmony import */ var _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/NotExpression */ "./Generator/src/common/KCLang/CodeDom/NotExpression.ts");
105539
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
105540
+ /* harmony import */ var _SetCurrencyProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SetCurrencyProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/SetCurrencyProps.ts");
105541
+ /* harmony import */ var _InputNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./InputNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputNode.ts");
105542
+ /* harmony import */ var _InputLimitations__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./InputLimitations */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Input/InputLimitations.ts");
105543
+
105544
+
105545
+
105546
+
105547
+
105548
+
105549
+
105550
+
105551
+
105552
+
105421
105553
 
105422
105554
 
105423
105555
 
@@ -105430,14 +105562,14 @@ __webpack_require__.r(__webpack_exports__);
105430
105562
 
105431
105563
  class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
105432
105564
  static getAcceptNodeClass() {
105433
- return _InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode;
105565
+ return _InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode;
105434
105566
  }
105435
105567
  get nodePaths() {
105436
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105568
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105437
105569
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
105438
105570
  }
105439
105571
  *doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
105440
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105572
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105441
105573
  const element = formSchemaRng.getElementByPath(node.getFullPath());
105442
105574
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
105443
105575
  const typeNode = buildContext.getTypeNode(node.validationInfo);
@@ -105449,32 +105581,72 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
105449
105581
  yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.validationInfo.emptydescription);
105450
105582
  }
105451
105583
  doBuildNodeValidations(validationGenerator) {
105452
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105584
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105453
105585
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
105454
105586
  }
105455
105587
  doBuildDataDeclaration(context) {
105456
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105588
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105589
+ const ignoreAutoFlagCondition = node.auto && node.withIgnoreAutoFlag ? this.findParentConditionalNodeAndGetCondition(node) : undefined;
105457
105590
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined, node.auto && node.forceAutoValue != undefined ? ["forceAutoValue", [node.forceAutoValue]] : undefined]), context.addSpecialFieldsEntry(node, {
105458
105591
  optional: node.dataBinding.optional,
105459
105592
  disabled: node.disabled
105460
- }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
105593
+ }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addIgnoreAutoFlagCondition(node, ignoreAutoFlagCondition === null || ignoreAutoFlagCondition === void 0 ? void 0 : ignoreAutoFlagCondition.toString()));
105594
+ }
105595
+ findParentConditionalNodeAndGetCondition(node) {
105596
+ const kclangParser = new _common_KCLang_Antlr_Parser_KCLangParser__WEBPACK_IMPORTED_MODULE_12__.KCLangParser();
105597
+ const convertConditionToKClangExpr = (originNode, rawCondition) => {
105598
+ const kclangStringExpr = (0,_ControlFlow_If_PredefinedJsConditions__WEBPACK_IMPORTED_MODULE_13__.convertToKCLangCondition)(originNode, rawCondition);
105599
+ return (0,_common_KCLang_CodeDom_KCLangUtils__WEBPACK_IMPORTED_MODULE_14__.strictCastExpression)(kclangParser.parseExpression(kclangStringExpr), _common_KCLang_CodeDom_KCLangType__WEBPACK_IMPORTED_MODULE_8__.BoolType.default);
105600
+ };
105601
+ const conditionsByParentNodes = Iterator.from(node.getParentsRecursive()).map(x => {
105602
+ if (x instanceof _ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_9__.ThenNode) {
105603
+ const parentIfNode = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)(x.parent, _ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode);
105604
+ if (parentIfNode != undefined) {
105605
+ var _parentIfNode$conditi;
105606
+ return new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_15__.NotExpression(convertConditionToKClangExpr(parentIfNode, (_parentIfNode$conditi = parentIfNode.condition) !== null && _parentIfNode$conditi !== void 0 ? _parentIfNode$conditi : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_16__.reject)("Condition in <if /> must be non-empty!")));
105607
+ }
105608
+ }
105609
+ if (x instanceof _ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_9__.ElseNode) {
105610
+ const parentIfNode = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)(x.parent, _ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode);
105611
+ if (parentIfNode != undefined) {
105612
+ var _parentIfNode$conditi2;
105613
+ return convertConditionToKClangExpr(parentIfNode, (_parentIfNode$conditi2 = parentIfNode.condition) !== null && _parentIfNode$conditi2 !== void 0 ? _parentIfNode$conditi2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_16__.reject)("Condition in <if /> must be non-empty!"));
105614
+ }
105615
+ }
105616
+ if (x instanceof _ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_9__.IfNode && x.then == undefined && x.else == undefined) {
105617
+ var _x$condition;
105618
+ return new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_15__.NotExpression(convertConditionToKClangExpr(x, (_x$condition = x.condition) !== null && _x$condition !== void 0 ? _x$condition : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_16__.reject)("Condition in <if /> must be non-empty!")));
105619
+ }
105620
+ if (x instanceof _ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_11__.SwitchCaseNode) {
105621
+ return new _common_KCLang_CodeDom_NotExpression__WEBPACK_IMPORTED_MODULE_15__.NotExpression(convertConditionToKClangExpr(x, x.condition));
105622
+ }
105623
+ if (x instanceof _ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_11__.SwitchDefaultNode) {
105624
+ const parentSwitchNode = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_10__.safeCast)(x.parent, _ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_11__.SwitchNode);
105625
+ if (parentSwitchNode != undefined) {
105626
+ const nestedConditions = parentSwitchNode.cases.map(caseNode => convertConditionToKClangExpr(caseNode, caseNode.condition));
105627
+ return nestedConditions.reduce(_KCLangCalculationsBuildContext__WEBPACK_IMPORTED_MODULE_7__.combineByOrKCLangExpr, undefined);
105628
+ }
105629
+ }
105630
+ return undefined;
105631
+ }).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_16__.isNotNullOrUndefined).reduce(_KCLangCalculationsBuildContext__WEBPACK_IMPORTED_MODULE_7__.combineByAndKCLangExpr, undefined);
105632
+ return conditionsByParentNodes;
105461
105633
  }
105462
105634
  doBuildNormalizeRules(builder) {
105463
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105635
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105464
105636
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
105465
105637
  disabled: node.disabled
105466
105638
  })];
105467
105639
  }
105468
105640
  buildChildrenDataDeclaration(context) {
105469
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105641
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105470
105642
  return context.processChildrenDataDeclaration(node.helpNodes);
105471
105643
  }
105472
105644
  *doTraverseChildren() {
105473
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105645
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105474
105646
  yield* node.helpNodes;
105475
105647
  }
105476
105648
  doConvert(context) {
105477
- const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_8__.InputNode);
105649
+ const node = this.getCurrentNodeAs(_InputNode__WEBPACK_IMPORTED_MODULE_18__.InputNode);
105478
105650
  this.ensurePathExists(node, node.dataBinding.path);
105479
105651
  if (node.auto) {
105480
105652
  return this.buildFxInput(context, node);
@@ -105523,9 +105695,9 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
105523
105695
  markupBuilder.prop(x => x.width).set(node.width);
105524
105696
  markupBuilder.prop(x => x.noReadonlyPadding).set(node.noReadonlyPadding);
105525
105697
  markupBuilder.prop(x => x.removeReadonlyBackground).set(node.removeReadonlyBackground);
105526
- (0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_7__.setCurrencyProps)(markupBuilder, context, node);
105698
+ (0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_17__.setCurrencyProps)(markupBuilder, context, node);
105527
105699
  (0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
105528
- const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_9__.getInputLimitations)(typeNode, schemaTypeInfo);
105700
+ const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_19__.getInputLimitations)(typeNode, schemaTypeInfo);
105529
105701
  if (inputLimitations !== null) {
105530
105702
  markupBuilder.prop(x => x.inputLimit).set(inputLimitations);
105531
105703
  }
@@ -105568,9 +105740,9 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
105568
105740
  markupBuilder.prop(x => x.noReadonlyPadding).set(node.noReadonlyPadding);
105569
105741
  markupBuilder.prop(x => x.removeReadonlyBackground).set(node.removeReadonlyBackground);
105570
105742
  markupBuilder.prop("data-tid").set(node.tid);
105571
- (0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_7__.setCurrencyProps)(markupBuilder, context, node);
105743
+ (0,_SetCurrencyProps__WEBPACK_IMPORTED_MODULE_17__.setCurrencyProps)(markupBuilder, context, node);
105572
105744
  (0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
105573
- const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_9__.getInputLimitations)(typeNode, schemaTypeInfo);
105745
+ const inputLimitations = (0,_InputLimitations__WEBPACK_IMPORTED_MODULE_19__.getInputLimitations)(typeNode, schemaTypeInfo);
105574
105746
  if (inputLimitations !== null) {
105575
105747
  markupBuilder.prop(x => x.inputLimit).set(inputLimitations);
105576
105748
  }
@@ -107849,9 +108021,17 @@ __webpack_require__.r(__webpack_exports__);
107849
108021
  /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
107850
108022
  /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
107851
108023
  /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
107852
- /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
107853
- /* harmony import */ var _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../ServerSideFLangNormalization/FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
107854
- /* harmony import */ var _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
108024
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
108025
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
108026
+ /* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
108027
+ /* harmony import */ var _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/FormulaStatement */ "./Generator/src/common/KCLang/CodeDom/FormulaStatement.ts");
108028
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
108029
+ /* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
108030
+ /* harmony import */ var _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
108031
+
108032
+
108033
+
108034
+
107855
108035
 
107856
108036
 
107857
108037
 
@@ -107861,32 +108041,32 @@ __webpack_require__.r(__webpack_exports__);
107861
108041
 
107862
108042
  class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
107863
108043
  static getAcceptNodeClass() {
107864
- return _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode;
108044
+ return _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__.SelectAllCheckboxNode;
107865
108045
  }
107866
108046
  get nodePaths() {
107867
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
108047
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__.SelectAllCheckboxNode);
107868
108048
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
107869
108049
  }
107870
108050
  doBuildDataDeclaration() {
107871
108051
  return {};
107872
108052
  }
107873
- doBuildNormalizeRules() {
108053
+ buildSugarKCLangCalculations(_buildContext, _formSchemaRng, _prefixPath) {
107874
108054
  var _node$pathToChecked;
107875
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
108055
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__.SelectAllCheckboxNode);
107876
108056
  const pathToCheckedArray = (0,_Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__.buildDirtyPathForMultiplicityAndCheckboxPath)(node.getFullPath(), (_node$pathToChecked = node.pathToChecked) !== null && _node$pathToChecked !== void 0 ? _node$pathToChecked : "checked");
107877
- return node.dirtyModeInstancesCount != undefined ? [new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.ValueReferenceExpression(pathToCheckedArray, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_5__.NullLiteralExpression())] : [];
108057
+ return node.dirtyModeInstancesCount != undefined ? [new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_7__.FormulaStatement(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(pathToCheckedArray), new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createRelativeFromTokens)(["null"])))))] : [];
107878
108058
  }
107879
108059
  buildChildrenDataDeclaration(context) {
107880
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
108060
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__.SelectAllCheckboxNode);
107881
108061
  return context.processChildrenDataDeclaration(node.children);
107882
108062
  }
107883
108063
  *doTraverseChildren() {
107884
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
108064
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__.SelectAllCheckboxNode);
107885
108065
  yield* node.children;
107886
108066
  }
107887
108067
  doConvert(context) {
107888
108068
  var _node$filteredUniqKey, _node$uncheckedValue, _node$checkedValue;
107889
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectAllCheckboxNode);
108069
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_10__.SelectAllCheckboxNode);
107890
108070
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SelectAllCheckbox");
107891
108071
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
107892
108072
  markupBuilder.prop(x => x.pathToChecked).set(node.getPathToChecked());
@@ -107896,7 +108076,7 @@ class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_M
107896
108076
  markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : "true");
107897
108077
  markupBuilder.prop(x => x.dirtyModeInstancesCount).set(node.dirtyModeInstancesCount);
107898
108078
  if (node.disabled2 != undefined) {
107899
- markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
108079
+ markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
107900
108080
  if (this.getLegacyNode().getParent() != undefined) {
107901
108081
  markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
107902
108082
  }
@@ -110160,6 +110340,117 @@ class LinetextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
110160
110340
 
110161
110341
  /***/ }),
110162
110342
 
110343
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeConverter.ts":
110344
+ /*!*****************************************************************************************************************!*\
110345
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeConverter.ts ***!
110346
+ \*****************************************************************************************************************/
110347
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
110348
+
110349
+ "use strict";
110350
+ __webpack_require__.r(__webpack_exports__);
110351
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
110352
+ /* harmony export */ PluralizeConverter: () => (/* binding */ PluralizeConverter)
110353
+ /* harmony export */ });
110354
+ /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
110355
+ /* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
110356
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
110357
+ /* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
110358
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
110359
+ /* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
110360
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
110361
+ /* harmony import */ var _PluralizeNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PluralizeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts");
110362
+
110363
+
110364
+
110365
+
110366
+
110367
+
110368
+
110369
+
110370
+ class PluralizeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
110371
+ static getAcceptNodeClass() {
110372
+ return _PluralizeNode__WEBPACK_IMPORTED_MODULE_7__.PluralizeNode;
110373
+ }
110374
+ doBuildDataDeclaration() {
110375
+ return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection;
110376
+ }
110377
+ buildChildrenDataDeclaration() {
110378
+ return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection;
110379
+ }
110380
+ *doTraverseChildren() {
110381
+ // no children
110382
+ }
110383
+ doConvert(_context) {
110384
+ var _node$expression;
110385
+ const node = this.getCurrentNodeAs(_PluralizeNode__WEBPACK_IMPORTED_MODULE_7__.PluralizeNode);
110386
+ const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Pluralize");
110387
+ markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
110388
+ const expressionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__.convertConditionToJsOrFailWithFriendlySugarError)((_node$expression = node.expression) !== null && _node$expression !== void 0 ? _node$expression : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)(), "path", "count", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__.KCLangRuntimeUtils.kcLangUtilsName, node, "expression");
110389
+ markupBuilder.prop(x => x.expression).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(expressionWithDependencies.condition, expressionWithDependencies.dependencies));
110390
+ markupBuilder.prop(x => x.oneElementWordForm).set(node.oneElementWordForm);
110391
+ markupBuilder.prop(x => x.fourElementsWordForm).set(node.fourElementsWordForm);
110392
+ markupBuilder.prop(x => x.fiveElementsWordForm).set(node.fiveElementsWordForm);
110393
+ return markupBuilder.buildConverterResult();
110394
+ }
110395
+ }
110396
+
110397
+ /***/ }),
110398
+
110399
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts":
110400
+ /*!************************************************************************************************************!*\
110401
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts ***!
110402
+ \************************************************************************************************************/
110403
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
110404
+
110405
+ "use strict";
110406
+ __webpack_require__.r(__webpack_exports__);
110407
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
110408
+ /* harmony export */ PluralizeNode: () => (/* binding */ PluralizeNode)
110409
+ /* harmony export */ });
110410
+ /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
110411
+ /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
110412
+ /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
110413
+ /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
110414
+ /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
110415
+ /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
110416
+ /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
110417
+
110418
+
110419
+
110420
+ var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
110421
+
110422
+ let PluralizeNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("pluralize", `Возвращает нужную форму существительного в зависимости от числа`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("expression", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression.required, "Выражение для получения числа"), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("oneElementWordForm", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Форма для одного элемента. Например, 1 _яблоко_`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("fourElementsWordForm", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Форма для двух или четырех элементов. Например, 4 _яблока_`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("fiveElementsWordForm", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Форма для пяти элементов. Например, 5 _яблок_`), _dec(_class = (_class2 = class PluralizeNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
110423
+ constructor(...args) {
110424
+ super(...args);
110425
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor, this);
110426
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "oneElementWordForm", _descriptor2, this);
110427
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fourElementsWordForm", _descriptor3, this);
110428
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiveElementsWordForm", _descriptor4, this);
110429
+ }
110430
+ }, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "expression", [_dec2], {
110431
+ configurable: true,
110432
+ enumerable: true,
110433
+ writable: true,
110434
+ initializer: null
110435
+ }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "oneElementWordForm", [_dec3], {
110436
+ configurable: true,
110437
+ enumerable: true,
110438
+ writable: true,
110439
+ initializer: null
110440
+ }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "fourElementsWordForm", [_dec4], {
110441
+ configurable: true,
110442
+ enumerable: true,
110443
+ writable: true,
110444
+ initializer: null
110445
+ }), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "fiveElementsWordForm", [_dec5], {
110446
+ configurable: true,
110447
+ enumerable: true,
110448
+ writable: true,
110449
+ initializer: null
110450
+ }), _class2)) || _class);
110451
+
110452
+ /***/ }),
110453
+
110163
110454
  /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/TextConverter.ts":
110164
110455
  /*!*******************************************************************************************************!*\
110165
110456
  !*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/TextConverter.ts ***!
@@ -113389,6 +113680,8 @@ __webpack_require__.r(__webpack_exports__);
113389
113680
  /* harmony import */ var _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateNode__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(/*! ../ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateNode.ts");
113390
113681
  /* harmony import */ var _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_134__ = __webpack_require__(/*! ../ElementProcessors/MultiControls/AggregationQuery/AggregationQueryNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AggregationQuery/AggregationQueryNode.ts");
113391
113682
  /* harmony import */ var _ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_135__ = __webpack_require__(/*! ../ElementProcessors/MultiControls/ContextVar/ExprEvalNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/ContextVar/ExprEvalNode.ts");
113683
+ /* harmony import */ var _ElementProcessors_ValueViewers_Pluralize_PluralizeNode__WEBPACK_IMPORTED_MODULE_136__ = __webpack_require__(/*! ../ElementProcessors/ValueViewers/Pluralize/PluralizeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts");
113684
+
113392
113685
 
113393
113686
 
113394
113687
 
@@ -113653,6 +113946,7 @@ function registerDefaultSugarNodes(result) {
113653
113946
  result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_134__.AggregationQuerySelectNode);
113654
113947
  result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_134__.AggregationQueryContentNode);
113655
113948
  result.registerNode(_ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_135__.ExprEvalNode);
113949
+ result.registerNode(_ElementProcessors_ValueViewers_Pluralize_PluralizeNode__WEBPACK_IMPORTED_MODULE_136__.PluralizeNode);
113656
113950
  }
113657
113951
  function createDefaultSugarSerializer() {
113658
113952
  const result = new _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_109__.SugarSerializer({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "6.12.0",
3
+ "version": "6.12.1-ignore-auto-flag-calculation.1",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,