@kontur.candy/generator 5.41.0-relatives-import.5 → 5.41.0-relatives-import.8

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 +25 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -92949,19 +92949,22 @@ __webpack_require__.r(__webpack_exports__);
92949
92949
  /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
92950
92950
  /* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
92951
92951
  /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
92952
- /* harmony import */ var _RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./RelativesComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/RelativesComboBox/RelativesComboBoxNode.ts");
92952
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
92953
+ /* harmony import */ var _RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RelativesComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/RelativesComboBox/RelativesComboBoxNode.ts");
92954
+
92953
92955
 
92954
92956
 
92955
92957
 
92956
92958
 
92957
92959
  class RelativesComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
92958
92960
  static getAcceptNodeClass() {
92959
- return _RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_3__.RelativesComboBoxNode;
92961
+ return _RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_4__.RelativesComboBoxNode;
92960
92962
  }
92961
92963
  doConvert(context) {
92962
- const node = this.getCurrentNodeAs(_RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_3__.RelativesComboBoxNode);
92964
+ const node = this.getCurrentNodeAs(_RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_4__.RelativesComboBoxNode);
92963
92965
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("RelativesComboBox");
92964
92966
  markupBuilder.prop(x => x.employeeIdPath).set(node.employeeIdPath);
92967
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
92965
92968
  markupBuilder.prop(x => x.onAdd).set(context.generateHelperFunctionExpression(node, "onAdd", node.onAdd));
92966
92969
  markupBuilder.prop(x => x.onSelect).set(context.generateHelperFunctionExpression(node, "onSelect", node.onSelect));
92967
92970
  return markupBuilder.buildConverterResult();
@@ -92998,30 +93001,41 @@ __webpack_require__.r(__webpack_exports__);
92998
93001
  /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
92999
93002
  /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
93000
93003
  /* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
93004
+ /* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
93001
93005
 
93002
93006
 
93003
93007
 
93004
- var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
93008
+ var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
93005
93009
 
93006
93010
 
93007
- let RelativesComboBoxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("relativescombobox", "Комбобокс для выбора ребенка/родственника.", __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/RelativesComboBox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("employeeIdPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.modelPath, `Путь до поля, в котором лежит employeeId. Нужно для запроса в сервис сотрудников.`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("onAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при добавлении родственника"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("onSelect", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при выборе родственника"), _dec(_class = (_class2 = class RelativesComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
93011
+
93012
+ let RelativesComboBoxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("relativescombobox", "Комбобокс для выбора ребенка/родственника.", __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/RelativesComboBox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__.DataReferenceMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("employeeIdPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.modelPath, `Путь до поля, в котором лежит employeeId. Нужно для запроса в сервис сотрудников.`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("onAdd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при добавлении родственника"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("onSelect", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при выборе родственника"), _dec(_class = (_class2 = class RelativesComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
93008
93013
  constructor(...args) {
93009
93014
  super(...args);
93010
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "employeeIdPath", _descriptor, this);
93011
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onAdd", _descriptor2, this);
93012
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onSelect", _descriptor3, this);
93015
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataReference", _descriptor, this);
93016
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "employeeIdPath", _descriptor2, this);
93017
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onAdd", _descriptor3, this);
93018
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onSelect", _descriptor4, this);
93013
93019
  }
93014
- }, (_descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "employeeIdPath", [_dec2], {
93020
+ getOwnPath() {
93021
+ return this.dataReference.getOwnPath();
93022
+ }
93023
+ }, (_descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataReference", [_dec2], {
93024
+ configurable: true,
93025
+ enumerable: true,
93026
+ writable: true,
93027
+ initializer: null
93028
+ }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "employeeIdPath", [_dec3], {
93015
93029
  configurable: true,
93016
93030
  enumerable: true,
93017
93031
  writable: true,
93018
93032
  initializer: null
93019
- }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onAdd", [_dec3], {
93033
+ }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onAdd", [_dec4], {
93020
93034
  configurable: true,
93021
93035
  enumerable: true,
93022
93036
  writable: true,
93023
93037
  initializer: null
93024
- }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onSelect", [_dec4], {
93038
+ }), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onSelect", [_dec5], {
93025
93039
  configurable: true,
93026
93040
  enumerable: true,
93027
93041
  writable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.41.0-relatives-import.5",
3
+ "version": "5.41.0-relatives-import.8",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,