@kontur.candy/generator 4.241.0-server-norm.13 → 4.241.0-server-norm.15

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 +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -132857,6 +132857,10 @@ class KCXmlGeneratorBase {
132857
132857
  return pathPart.replace(/\@/g, "");
132858
132858
  }
132859
132859
 
132860
+ removeMultiplicity(path) {
132861
+ return path.replace(/\/\*/g, "");
132862
+ }
132863
+
132860
132864
  modelPathInstance(target) {
132861
132865
  return `new ModelPath([${[...target.getPathParts()].map(x => {
132862
132866
  if (x === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
@@ -132947,8 +132951,8 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
132947
132951
  compileCondition(condition) {
132948
132952
  var _condition$descriptio, _condition$errorLevel;
132949
132953
 
132950
- const prefix = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(condition.match), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
132951
- const target = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeAttributePrefix(condition.target), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132954
+ const prefix = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeMultiplicity(this.removeAttributePrefix(condition.match)), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each).toAbsolute();
132955
+ const target = this.schema.adjustPathMultiplicity(prefix.joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.ModelPath.createFromMask(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
132952
132956
  const deps = [];
132953
132957
  const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
132954
132958
  const compiledTarget = this.modelPathInstance(target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.241.0-server-norm.13",
3
+ "version": "4.241.0-server-norm.15",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,