@kontur.candy/generator 5.58.0 → 5.59.0-fix-attachment-error-log.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 +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -76128,7 +76128,9 @@ __webpack_require__.r(__webpack_exports__);
76128
76128
  /* harmony import */ var _Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/FormParts/Unit/UnitId/UnitId */ "./Engine/src/Controls/FormParts/Unit/UnitId/UnitId.ts");
76129
76129
  /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
76130
76130
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
76131
- /* harmony import */ var _AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AttachmentFormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormNode.ts");
76131
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
76132
+ /* harmony import */ var _AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AttachmentFormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm/AttachmentFormNode.ts");
76133
+
76132
76134
 
76133
76135
 
76134
76136
 
@@ -76138,10 +76140,10 @@ __webpack_require__.r(__webpack_exports__);
76138
76140
 
76139
76141
  class AttachmentFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
76140
76142
  static getAcceptNodeClass() {
76141
- return _AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__.AttachmentFormNode;
76143
+ return _AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__.AttachmentFormNode;
76142
76144
  }
76143
76145
  *getAttachmentPaths() {
76144
- const node = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__.AttachmentFormNode);
76146
+ const node = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__.AttachmentFormNode);
76145
76147
  yield (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(node.path).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.AttachmentInfoPath);
76146
76148
  }
76147
76149
  doBuildDataDeclaration(context) {
@@ -76154,14 +76156,14 @@ class AttachmentFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
76154
76156
  // no children
76155
76157
  }
76156
76158
  doConvert(context) {
76157
- const attachmentFormNode = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_6__.AttachmentFormNode);
76159
+ const attachmentFormNode = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__.AttachmentFormNode);
76158
76160
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("AttachmentFormUnit");
76159
76161
  markupBuilder.prop("data-tid").set("attachment-" + attachmentFormNode.gfv);
76160
76162
  markupBuilder.prop(x => x.unitId).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_3__.createUnitId)("attachment-" + attachmentFormNode.gfv));
76161
76163
  markupBuilder.prop(x => x.gfv).set(attachmentFormNode.gfv);
76162
76164
  markupBuilder.prop(x => x.caption).set(attachmentFormNode.name);
76163
76165
  markupBuilder.prop(x => x.description).set(attachmentFormNode.description);
76164
- markupBuilder.prop(x => x.path).set(attachmentFormNode.path);
76166
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_6__.getNewBindingPathExpression)(attachmentFormNode, attachmentFormNode.path));
76165
76167
  return markupBuilder.buildConverterResult();
76166
76168
  }
76167
76169
  }
@@ -77248,7 +77250,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
77248
77250
  markupBuilder.prop(x => x.gfv).set(attachmentFormNode.gfv);
77249
77251
  markupBuilder.prop(x => x.caption).set(attachmentFormNode.name);
77250
77252
  markupBuilder.prop(x => x.description).set(attachmentFormNode.description);
77251
- markupBuilder.prop(x => x.path).set(attachmentFormNode.path);
77253
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(attachmentFormNode, attachmentFormNode.path));
77252
77254
  return markupBuilder;
77253
77255
  }
77254
77256
  isPageContainsTableWithStickyElements(pageNode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.58.0",
3
+ "version": "5.59.0-fix-attachment-error-log.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,