@kontur.candy/generator 5.2.0-server-side-calculations.5 → 5.2.0-server-side-calculations.7

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 +9 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -59458,31 +59458,29 @@ class AbsoluteModelFieldPath {
59458
59458
  return this.path.isEquals(modelPath.path, eachCurrentCollision) && this.field === modelPath.field;
59459
59459
  }
59460
59460
  static createFromString(pathWithFieldName) {
59461
+ var _match$, _ref;
59461
59462
  if (pathWithFieldName.endsWith(".$errorCount")) {
59462
59463
  return new AbsoluteModelFieldPath(createAbsolute(pathWithFieldName.replace(".$errorCount", "")), "$errorCount");
59463
59464
  }
59464
59465
  if (pathWithFieldName.endsWith(".$warningCount")) {
59465
59466
  return new AbsoluteModelFieldPath(createAbsolute(pathWithFieldName.replace(".$warningCount", "")), "$warningCount");
59466
59467
  }
59467
- return new AbsoluteModelFieldPath(createAbsolute(pathWithFieldName), "value");
59468
+ const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
59469
+ const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : pathWithFieldName;
59470
+ const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : "value";
59471
+ return new AbsoluteModelFieldPath(createAbsolute(path), field);
59468
59472
  }
59469
59473
  static createFromMask(pathWithFieldName, multiplicitySymbol) {
59470
- var _match$, _ref;
59474
+ var _match$2, _ref2;
59471
59475
  if (pathWithFieldName.endsWith(".$errorCount")) {
59472
59476
  return new AbsoluteModelFieldPath(createAbsoluteFromMask(pathWithFieldName.replace(".$errorCount", ""), multiplicitySymbol), "$errorCount");
59473
59477
  }
59474
59478
  if (pathWithFieldName.endsWith(".$warningCount")) {
59475
59479
  return new AbsoluteModelFieldPath(createAbsoluteFromMask(pathWithFieldName.replace(".$warningCount", ""), multiplicitySymbol), "$warningCount");
59476
59480
  }
59477
- if (pathWithFieldName.endsWith(".errorsCount")) {
59478
- return new AbsoluteModelFieldPath(createAbsoluteFromMask(pathWithFieldName.replace(".errorsCount", ""), multiplicitySymbol), "errorsCount");
59479
- }
59480
- if (pathWithFieldName.endsWith(".warningsCount")) {
59481
- return new AbsoluteModelFieldPath(createAbsoluteFromMask(pathWithFieldName.replace(".warningsCount", ""), multiplicitySymbol), "warningsCount");
59482
- }
59483
59481
  const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
59484
- const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : pathWithFieldName;
59485
- const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : "value";
59482
+ const path = match != undefined ? (_match$2 = match[1]) !== null && _match$2 !== void 0 ? _match$2 : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : pathWithFieldName;
59483
+ const field = match != undefined ? (_ref2 = match[2]) !== null && _ref2 !== void 0 ? _ref2 : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : "value";
59486
59484
  return new AbsoluteModelFieldPath(createAbsoluteFromMask(path, multiplicitySymbol), field);
59487
59485
  }
59488
59486
  toString() {
@@ -60456,7 +60454,7 @@ function nonRegularFieldName(fieldName) {
60456
60454
  return fieldName;
60457
60455
  }
60458
60456
  function getKnownViewModelFieldNames() {
60459
- const names = ["value", "autoValue", "autoFlag", "error", "warning", "errorsCount", "warningsCount", "children", "disabled", "visible", "sum", "id", "agentValue", "city", "building", "code", "count", "description"];
60457
+ const names = ["children", "error", "warning", "description", "id", "disabled", "visible", "disabledSending", "value", "autoValue", "autoFlag", "resourcesHash", "errorsCount", "warningsCount", "code", "picklist", "normalized", "emptyUnitsVisible", "pencilOpened", "ignoreAutoFlag", "disableValueAutoInit", "index", "regionCode", "district", "city", "settlement", "street", "house", "building", "room", "bossValue", "agentValue", "senderInn", "nameorg", "sum", "count", "normalizationSource", "referencedId"];
60460
60458
  return names;
60461
60459
  }
60462
60460
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.2.0-server-side-calculations.5",
3
+ "version": "5.2.0-server-side-calculations.7",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,