@kontur.candy/generator 5.22.0-diadoc-domain.0 → 5.22.0-fix-sourcemaps.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 +94 -44
  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) {
59175
- return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(path));
59174
+ static createFromString(pathWithFieldName, defaultFieldName) {
59175
+ return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(path), defaultFieldName);
59176
59176
  }
59177
- static createFromMask(pathWithFieldName, multiplicitySymbol) {
59178
- return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(path, multiplicitySymbol));
59177
+ static createFromMask(pathWithFieldName, multiplicitySymbol, defaultFieldName) {
59178
+ return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(path, multiplicitySymbol), defaultFieldName);
59179
59179
  }
59180
- static createFrom(pathWithFieldName, modelPathFactory) {
59180
+ static createFrom(pathWithFieldName, modelPathFactory, defaultFieldName = "value") {
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)() : "value";
59184
+ const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : defaultFieldName;
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.isInstanceToken(_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.last(this.path.getPathParts()));
59191
+ const isLastTokenAnInstance = _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isInstanceTokenOrInstancesSpec(_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,7 +59207,8 @@ 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)
59210
+ /* harmony export */ "buildIterationSequence": () => (/* binding */ buildIterationSequence),
59211
+ /* harmony export */ "buildIterationSequenceWithInstances": () => (/* binding */ buildIterationSequenceWithInstances)
59211
59212
  /* harmony export */ });
59212
59213
  /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
59213
59214
 
@@ -59225,6 +59226,24 @@ function buildIterationSequence(modelPath) {
59225
59226
  }
59226
59227
  return result;
59227
59228
  }
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
+ }
59228
59247
 
59229
59248
  /***/ }),
59230
59249
 
@@ -59290,6 +59309,8 @@ __webpack_require__.r(__webpack_exports__);
59290
59309
  /* harmony export */ "Map2": () => (/* binding */ Map2)
59291
59310
  /* harmony export */ });
59292
59311
  /* 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
+
59293
59314
 
59294
59315
  class Map2 {
59295
59316
  constructor() {
@@ -59308,6 +59329,18 @@ class Map2 {
59308
59329
  has(key) {
59309
59330
  return this.getEntryOrUndefined(key) != undefined;
59310
59331
  }
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
+ }
59311
59344
  get isEmpty() {
59312
59345
  return this.hashMap.size === 0;
59313
59346
  }
@@ -59414,6 +59447,9 @@ class PathTokens {
59414
59447
  static isInstanceToken(part) {
59415
59448
  return typeof part === "string" && /^\d+$/i.test(part);
59416
59449
  }
59450
+ static isInstanceTokenOrInstancesSpec(part) {
59451
+ return typeof part === "string" && (/^\d+$/i.test(part) || /^\[(\d+\,?)+\]$/i.test(part));
59452
+ }
59417
59453
  }
59418
59454
  PathTokens.each = EachSymbol;
59419
59455
  PathTokens.current = CurrentSymbol;
@@ -59527,6 +59563,7 @@ class ModelPathImpl {
59527
59563
  this.tokens = void 0;
59528
59564
  this.absolute = void 0;
59529
59565
  this.legacyPath = void 0;
59566
+ this.cachedHash = void 0;
59530
59567
  this.tokens = pathParts.filter(x => x !== "");
59531
59568
  this.absolute = absolute;
59532
59569
  }
@@ -59626,32 +59663,35 @@ class ModelPathImpl {
59626
59663
  * Всегда целое положительное беззнаковое 32-битное число
59627
59664
  */
59628
59665
  getHash(eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_2__.EachCurrentCollision.AreSame) {
59629
- let hash = 5381;
59630
- for (const token of (0,_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)(this.tokens)) {
59631
- let currentStr;
59632
- if (PathTokens.isSimpleToken(token)) {
59633
- currentStr = token;
59634
- } else {
59635
- if (eachCurrentCollision === _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_2__.EachCurrentCollision.AreDifferent) {
59636
- currentStr = token === PathTokens.each ? "*" : "!";
59666
+ if (this.cachedHash == undefined) {
59667
+ let hash = 5381;
59668
+ for (const token of (0,_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)(this.tokens)) {
59669
+ let currentStr;
59670
+ if (PathTokens.isSimpleToken(token)) {
59671
+ currentStr = token;
59637
59672
  } else {
59638
- currentStr = "*";
59673
+ if (eachCurrentCollision === _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_2__.EachCurrentCollision.AreDifferent) {
59674
+ currentStr = token === PathTokens.each ? "*" : "!";
59675
+ } else {
59676
+ currentStr = "*";
59677
+ }
59678
+ }
59679
+ let stringIndex = currentStr.length;
59680
+ while (stringIndex) {
59681
+ // tslint:disable-next-line:no-bitwise
59682
+ hash = hash * 33 ^ currentStr.charCodeAt(--stringIndex);
59639
59683
  }
59640
59684
  }
59641
- let stringIndex = currentStr.length;
59642
- while (stringIndex) {
59643
- // tslint:disable-next-line:no-bitwise
59644
- hash = hash * 33 ^ currentStr.charCodeAt(--stringIndex);
59645
- }
59646
- }
59647
59685
 
59648
- /*
59649
- tslint:disable-next-line:no-bitwise
59650
- JavaScript does bitwise operations (like XOR, above) on 32-bit signed
59651
- integers. Since we want the results to be always positive, convert the
59652
- signed int to an unsigned by doing an unsigned bitshift.
59653
- */
59654
- return hash >>> 0;
59686
+ /*
59687
+ tslint:disable-next-line:no-bitwise
59688
+ JavaScript does bitwise operations (like XOR, above) on 32-bit signed
59689
+ integers. Since we want the results to be always positive, convert the
59690
+ signed int to an unsigned by doing an unsigned bitshift.
59691
+ */
59692
+ this.cachedHash = hash >>> 0;
59693
+ }
59694
+ return this.cachedHash;
59655
59695
  }
59656
59696
  isIncludes(modelPath) {
59657
59697
  const targetTokens = modelPath.getPathPartsAsArray();
@@ -59791,7 +59831,7 @@ class ModelPathImpl {
59791
59831
  // @ts-expect-error
59792
59832
  return result.toPath();
59793
59833
  }
59794
- applyInstancesDirty(instances) {
59834
+ applyInstancesDirty(instances, fillWithMultiplicityIfHasNoInstance) {
59795
59835
  if (this.isResolved() || instances.length === 0) {
59796
59836
  return this;
59797
59837
  }
@@ -59800,7 +59840,8 @@ class ModelPathImpl {
59800
59840
  for (const token of this.getPathParts()) {
59801
59841
  if (PathTokens.isMultiToken(token) && instanceCounter < instances.length) {
59802
59842
  var _instances$instanceCo;
59803
- result.append((_instances$instanceCo = instances[instanceCounter]) !== null && _instances$instanceCo !== void 0 ? _instances$instanceCo : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)());
59843
+ const instanceOrEach = (_instances$instanceCo = instances[instanceCounter]) !== null && _instances$instanceCo !== void 0 ? _instances$instanceCo : fillWithMultiplicityIfHasNoInstance == true ? PathTokens.each : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)();
59844
+ result.append(instanceOrEach);
59804
59845
  instanceCounter++;
59805
59846
  } else {
59806
59847
  result.append(token);
@@ -83098,6 +83139,8 @@ __webpack_require__.r(__webpack_exports__);
83098
83139
  /* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
83099
83140
  /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
83100
83141
  /* harmony import */ var _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../Common/ModelPath/AbsoluteModelFieldPath */ "./Common/ModelPath/AbsoluteModelFieldPath.ts");
83142
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
83143
+
83101
83144
 
83102
83145
 
83103
83146
 
@@ -83129,20 +83172,27 @@ class FormulaRulesBuilder {
83129
83172
  const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
83130
83173
  const isDisabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(fullTarget.toAbsolute());
83131
83174
  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));
83132
- const result = [];
83133
- if (isTargetAutoField) {
83134
- 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")))));
83135
- if (isDisabled) {
83136
- result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value")));
83137
- } else {
83138
- 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)))));
83139
- }
83140
- } else {
83141
- result.push(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value")));
83142
- }
83143
- result.push(...precalculationRules);
83175
+ const valueRule = isTargetAutoField ? isDisabled ? this.createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) : this.createValueRuleForAutoField(fullTarget, defaultValue, getFormulaExpression) : this.createRegularValueRule(fullTarget, getFormulaExpression);
83176
+ const autoValueRule = isTargetAutoField ? this.createAutoValueRule(fullTarget, getFormulaExpression) : undefined;
83177
+ const autoFlagRule = isTargetAutoField ? this.createAutoFlagRule(fullTarget) : undefined;
83178
+ const result = [autoValueRule, autoFlagRule, valueRule].concat(...precalculationRules).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.isNotNullOrUndefined);
83144
83179
  return result;
83145
83180
  }
83181
+ createAutoValueRule(fullTarget, getFormulaExpression) {
83182
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "autoValue"), getFormulaExpression("autoValue"));
83183
+ }
83184
+ createRegularValueRule(fullTarget, getFormulaExpression) {
83185
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value"));
83186
+ }
83187
+ createAutoFlagRule(fullTarget) {
83188
+ 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"))));
83189
+ }
83190
+ createValueRuleForDisabledAutoField(fullTarget, getFormulaExpression) {
83191
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(fullTarget, "value"), getFormulaExpression("value"));
83192
+ }
83193
+ createValueRuleForAutoField(fullTarget, defaultValue, getFormulaExpression) {
83194
+ 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))));
83195
+ }
83146
83196
  adjustPathMultiplicity(path) {
83147
83197
  return (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_2__.adjustPathMultiplicityComplex)(path, this.formSchemaRng, this.dataDeclarationHelper);
83148
83198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.22.0-diadoc-domain.0",
3
+ "version": "5.22.0-fix-sourcemaps.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,