@kontur.candy/generator 5.20.0-fs-8321-server-side-calculations.4 → 5.20.0

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 +44 -94
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -59171,24 +59171,24 @@ class AbsoluteModelFieldPath {
59171
59171
  isEquals(modelPath, eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_4__.EachCurrentCollision.AreSame) {
59172
59172
  return this.path.isEquals(modelPath.path, eachCurrentCollision) && this.field === modelPath.field;
59173
59173
  }
59174
- static createFromString(pathWithFieldName, defaultFieldName) {
59175
- return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(path), defaultFieldName);
59174
+ static createFromString(pathWithFieldName) {
59175
+ return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(path));
59176
59176
  }
59177
- static createFromMask(pathWithFieldName, multiplicitySymbol, defaultFieldName) {
59178
- return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(path, multiplicitySymbol), defaultFieldName);
59177
+ static createFromMask(pathWithFieldName, multiplicitySymbol) {
59178
+ return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(path, multiplicitySymbol));
59179
59179
  }
59180
- static createFrom(pathWithFieldName, modelPathFactory, defaultFieldName = "value") {
59180
+ static createFrom(pathWithFieldName, modelPathFactory) {
59181
59181
  var _match$, _ref;
59182
59182
  const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
59183
59183
  const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : pathWithFieldName;
59184
- const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : defaultFieldName;
59184
+ const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : "value";
59185
59185
  return new AbsoluteModelFieldPath(modelPathFactory(path), field);
59186
59186
  }
59187
59187
  toString() {
59188
59188
  return `${this.path.toLegacyPath()}.${this.field}`;
59189
59189
  }
59190
59190
  toLegacyPath() {
59191
- const isLastTokenAnInstance = _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isInstanceTokenOrInstancesSpec(_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.last(this.path.getPathParts()));
59191
+ const isLastTokenAnInstance = _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isInstanceToken(_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.last(this.path.getPathParts()));
59192
59192
  const slashIfRequired = isLastTokenAnInstance ? "/" : "";
59193
59193
  return `${this.path.toLegacyPath()}${slashIfRequired}.${this.field}`;
59194
59194
  }
@@ -59207,8 +59207,7 @@ AbsoluteModelFieldPath.fieldExtractRegex = new RegExp(`^(.*)\\.(${AbsoluteModelF
59207
59207
  "use strict";
59208
59208
  __webpack_require__.r(__webpack_exports__);
59209
59209
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
59210
- /* harmony export */ "buildIterationSequence": () => (/* binding */ buildIterationSequence),
59211
- /* harmony export */ "buildIterationSequenceWithInstances": () => (/* binding */ buildIterationSequenceWithInstances)
59210
+ /* harmony export */ "buildIterationSequence": () => (/* binding */ buildIterationSequence)
59212
59211
  /* harmony export */ });
59213
59212
  /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
59214
59213
 
@@ -59226,24 +59225,6 @@ function buildIterationSequence(modelPath) {
59226
59225
  }
59227
59226
  return result;
59228
59227
  }
59229
- function buildIterationSequenceWithInstances(modelPath) {
59230
- const result = [];
59231
- const tokens = modelPath.getPathPartsAsArray();
59232
- const createPathFunc = modelPath.isAbsolute() ? _ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens : _ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens;
59233
- let currentInstances = [];
59234
- for (let i = 0; i < tokens.length; i++) {
59235
- const token = tokens[i];
59236
- if (token === _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each || _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(token)) {
59237
- currentInstances = currentInstances.concat(token);
59238
- result.push({
59239
- iterable: createPathFunc(tokens.slice(0, i).map(x => _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(x) ? _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each : x)),
59240
- suffix: (0,_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)(tokens.slice(i + 1)),
59241
- instances: currentInstances
59242
- });
59243
- }
59244
- }
59245
- return result;
59246
- }
59247
59228
 
59248
59229
  /***/ }),
59249
59230
 
@@ -59309,8 +59290,6 @@ __webpack_require__.r(__webpack_exports__);
59309
59290
  /* harmony export */ "Map2": () => (/* binding */ Map2)
59310
59291
  /* harmony export */ });
59311
59292
  /* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../TypingUtils */ "./Common/TypingUtils.ts");
59312
- /* harmony import */ var _IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IterableUtils */ "./Common/IterableUtils.ts");
59313
-
59314
59293
 
59315
59294
  class Map2 {
59316
59295
  constructor() {
@@ -59329,18 +59308,6 @@ class Map2 {
59329
59308
  has(key) {
59330
59309
  return this.getEntryOrUndefined(key) != undefined;
59331
59310
  }
59332
- remove(key) {
59333
- const hash = this.getKeyHash(key);
59334
- const list = this.hashMap.get(hash);
59335
- if (list != undefined) {
59336
- const removingEntry = Iterator.from(_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.IterUtils.iterateEntries(list)).find(([index, [itemKey, itemValue]]) => this.areKeyEqual(itemKey, key));
59337
- if (removingEntry != undefined) {
59338
- list.splice(removingEntry[0], 1);
59339
- return true;
59340
- }
59341
- }
59342
- return false;
59343
- }
59344
59311
  get isEmpty() {
59345
59312
  return this.hashMap.size === 0;
59346
59313
  }
@@ -59447,9 +59414,6 @@ class PathTokens {
59447
59414
  static isInstanceToken(part) {
59448
59415
  return typeof part === "string" && /^\d+$/i.test(part);
59449
59416
  }
59450
- static isInstanceTokenOrInstancesSpec(part) {
59451
- return typeof part === "string" && (/^\d+$/i.test(part) || /^\[(\d+\,?)+\]$/i.test(part));
59452
- }
59453
59417
  }
59454
59418
  PathTokens.each = EachSymbol;
59455
59419
  PathTokens.current = CurrentSymbol;
@@ -59563,7 +59527,6 @@ class ModelPathImpl {
59563
59527
  this.tokens = void 0;
59564
59528
  this.absolute = void 0;
59565
59529
  this.legacyPath = void 0;
59566
- this.cachedHash = void 0;
59567
59530
  this.tokens = pathParts.filter(x => x !== "");
59568
59531
  this.absolute = absolute;
59569
59532
  }
@@ -59660,35 +59623,32 @@ class ModelPathImpl {
59660
59623
  * Всегда целое положительное беззнаковое 32-битное число
59661
59624
  */
59662
59625
  getHash(eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_2__.EachCurrentCollision.AreSame) {
59663
- if (this.cachedHash == undefined) {
59664
- let hash = 5381;
59665
- for (const token of (0,_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)(this.tokens)) {
59666
- let currentStr;
59667
- if (PathTokens.isSimpleToken(token)) {
59668
- currentStr = token;
59626
+ let hash = 5381;
59627
+ for (const token of (0,_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)(this.tokens)) {
59628
+ let currentStr;
59629
+ if (PathTokens.isSimpleToken(token)) {
59630
+ currentStr = token;
59631
+ } else {
59632
+ if (eachCurrentCollision === _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_2__.EachCurrentCollision.AreDifferent) {
59633
+ currentStr = token === PathTokens.each ? "*" : "!";
59669
59634
  } else {
59670
- if (eachCurrentCollision === _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_2__.EachCurrentCollision.AreDifferent) {
59671
- currentStr = token === PathTokens.each ? "*" : "!";
59672
- } else {
59673
- currentStr = "*";
59674
- }
59675
- }
59676
- let stringIndex = currentStr.length;
59677
- while (stringIndex) {
59678
- // tslint:disable-next-line:no-bitwise
59679
- hash = hash * 33 ^ currentStr.charCodeAt(--stringIndex);
59635
+ currentStr = "*";
59680
59636
  }
59681
59637
  }
59682
-
59683
- /*
59684
- tslint:disable-next-line:no-bitwise
59685
- JavaScript does bitwise operations (like XOR, above) on 32-bit signed
59686
- integers. Since we want the results to be always positive, convert the
59687
- signed int to an unsigned by doing an unsigned bitshift.
59688
- */
59689
- this.cachedHash = hash >>> 0;
59638
+ let stringIndex = currentStr.length;
59639
+ while (stringIndex) {
59640
+ // tslint:disable-next-line:no-bitwise
59641
+ hash = hash * 33 ^ currentStr.charCodeAt(--stringIndex);
59642
+ }
59690
59643
  }
59691
- return this.cachedHash;
59644
+
59645
+ /*
59646
+ tslint:disable-next-line:no-bitwise
59647
+ JavaScript does bitwise operations (like XOR, above) on 32-bit signed
59648
+ integers. Since we want the results to be always positive, convert the
59649
+ signed int to an unsigned by doing an unsigned bitshift.
59650
+ */
59651
+ return hash >>> 0;
59692
59652
  }
59693
59653
  isIncludes(modelPath) {
59694
59654
  const targetTokens = modelPath.getPathPartsAsArray();
@@ -59828,7 +59788,7 @@ class ModelPathImpl {
59828
59788
  // @ts-expect-error
59829
59789
  return result.toPath();
59830
59790
  }
59831
- applyInstancesDirty(instances, fillWithMultiplicityIfHasNoInstance) {
59791
+ applyInstancesDirty(instances) {
59832
59792
  if (this.isResolved() || instances.length === 0) {
59833
59793
  return this;
59834
59794
  }
@@ -59837,8 +59797,7 @@ class ModelPathImpl {
59837
59797
  for (const token of this.getPathParts()) {
59838
59798
  if (PathTokens.isMultiToken(token) && instanceCounter < instances.length) {
59839
59799
  var _instances$instanceCo;
59840
- const instanceOrEach = (_instances$instanceCo = instances[instanceCounter]) !== null && _instances$instanceCo !== void 0 ? _instances$instanceCo : fillWithMultiplicityIfHasNoInstance == true ? PathTokens.each : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)();
59841
- result.append(instanceOrEach);
59800
+ result.append((_instances$instanceCo = instances[instanceCounter]) !== null && _instances$instanceCo !== void 0 ? _instances$instanceCo : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)());
59842
59801
  instanceCounter++;
59843
59802
  } else {
59844
59803
  result.append(token);
@@ -83151,8 +83110,6 @@ __webpack_require__.r(__webpack_exports__);
83151
83110
  /* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
83152
83111
  /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
83153
83112
  /* harmony import */ var _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../Common/ModelPath/AbsoluteModelFieldPath */ "./Common/ModelPath/AbsoluteModelFieldPath.ts");
83154
- /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
83155
-
83156
83113
 
83157
83114
 
83158
83115
 
@@ -83184,27 +83141,20 @@ class FormulaRulesBuilder {
83184
83141
  const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
83185
83142
  const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
83186
83143
  const getFormulaExpression = targetField => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.wrapWithArgumentsCondition)((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.castOperandToStringIfNeed)(this.formulaExprConverter.compileExpressionToFlangExpression(formula.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__.AbsoluteModelFieldPath(fullTarget, targetField), x => precalculationRules.push(x)), "G29")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue));
83187
- const valueRule = isTargetAutoField ? isDisabled ? this.createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) : this.createValueRuleForAutoField(fullTarget, defaultValue, getFormulaExpression) : this.createRegularValueRule(fullTarget, getFormulaExpression);
83188
- const autoValueRule = isTargetAutoField ? this.createAutoValueRule(fullTarget, getFormulaExpression) : undefined;
83189
- const autoFlagRule = isTargetAutoField ? this.createAutoFlagRule(fullTarget) : undefined;
83190
- const result = [autoValueRule, autoFlagRule, valueRule].concat(...precalculationRules).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.isNotNullOrUndefined);
83144
+ const result = [];
83145
+ if (isTargetAutoField) {
83146
+ result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "autoValue"), getFormulaExpression("autoValue")), 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(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(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(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoValue")), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.string), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NoDepsExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag")))));
83147
+ if (isDisabled) {
83148
+ result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value")));
83149
+ } else {
83150
+ result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NoDepsExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true")), getFormulaExpression("value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue)))));
83151
+ }
83152
+ } else {
83153
+ result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value")));
83154
+ }
83155
+ result.push(...precalculationRules);
83191
83156
  return result;
83192
83157
  }
83193
- createAutoValueRule(fullTarget, getFormulaExpression) {
83194
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "autoValue"), getFormulaExpression("autoValue"));
83195
- }
83196
- createRegularValueRule(fullTarget, getFormulaExpression) {
83197
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value"));
83198
- }
83199
- createAutoFlagRule(fullTarget) {
83200
- 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(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(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(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoValue")), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.BuildInTypeExpression.string), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NoDepsExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag"))));
83201
- }
83202
- createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) {
83203
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value"));
83204
- }
83205
- createValueRuleForAutoField(fullTarget, defaultValue, getFormulaExpression) {
83206
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NoDepsExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "autoFlag")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true")), getFormulaExpression("value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget.toCurrentIteration(), "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue))));
83207
- }
83208
83158
  adjustPathMultiplicity(path) {
83209
83159
  return (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_2__.adjustPathMultiplicityComplex)(path, this.formSchemaRng, this.dataDeclarationHelper);
83210
83160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.20.0-fs-8321-server-side-calculations.4",
3
+ "version": "5.20.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,