@kontur.candy/generator 5.115.1-enhanced-server-filters.0 → 5.115.1-enhanced-server-filters.1

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 +155 -92
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -45829,12 +45829,14 @@ const DEFAULT_STAFF_SERVICE_URL = "https://api.kontur.ru/staff";
45829
45829
  const DEFAULT_PICKLIST_URL = "";
45830
45830
  const DEFAULT_NIDUS_URL = "";
45831
45831
  const DEFAULT_FSPRINTER_URL = "";
45832
+ const DEFAULT_CONTRACTORS_URL = "";
45832
45833
  const defaultServicesUrls = {
45833
45834
  keformsUrl: DEFAULT_KEFORMS_URL,
45834
45835
  staffServiceUrl: DEFAULT_STAFF_SERVICE_URL,
45835
45836
  picklistUrl: DEFAULT_PICKLIST_URL,
45836
45837
  nidusUrl: DEFAULT_NIDUS_URL,
45837
- fsPrinterUrl: DEFAULT_FSPRINTER_URL
45838
+ fsPrinterUrl: DEFAULT_FSPRINTER_URL,
45839
+ contractorsApiUrl: DEFAULT_CONTRACTORS_URL
45838
45840
  };
45839
45841
 
45840
45842
  /***/ }),
@@ -92129,7 +92131,7 @@ class FilterDateRangeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
92129
92131
  const tokens = dataPath.getPathPartsAsArray();
92130
92132
  const tokensWithoutLastToken = tokens.slice(0, tokens.length - 1);
92131
92133
  const lastToken = (_tokens = tokens[tokens.length - 1]) !== null && _tokens !== void 0 ? _tokens : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
92132
- const lastTokenAsDecimal = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.isSimpleToken(lastToken) ? this.getNameForExtraField(lastToken) : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
92134
+ const lastTokenAsDecimal = this.getNameForExtraField(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.isSimpleToken(lastToken) ? lastToken : "this");
92133
92135
  const extraFilteringFieldPath = dataPath.isAbsolute() ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromTokens)([...tokensWithoutLastToken, lastTokenAsDecimal]) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createRelativeFromTokens)([...tokensWithoutLastToken, lastTokenAsDecimal]);
92134
92136
  // @ts-ignore
92135
92137
  return extraFilteringFieldPath;
@@ -97235,7 +97237,11 @@ __webpack_require__.r(__webpack_exports__);
97235
97237
  /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
97236
97238
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
97237
97239
  /* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
97238
- /* harmony import */ var _ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox/ComboBoxNode.ts");
97240
+ /* harmony import */ var _binding__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../binding */ "./Generator/src/generators/markupGenerator/binding.ts");
97241
+ /* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
97242
+ /* harmony import */ var _ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox/ComboBoxNode.ts");
97243
+
97244
+
97239
97245
 
97240
97246
 
97241
97247
 
@@ -97247,35 +97253,38 @@ __webpack_require__.r(__webpack_exports__);
97247
97253
 
97248
97254
  class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
97249
97255
  static getAcceptNodeClass() {
97250
- return _ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode;
97256
+ return _ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode;
97251
97257
  }
97252
97258
  doBuildNodeValidations(validationGenerator) {
97253
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97259
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97254
97260
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
97255
97261
  }
97256
97262
  doGetRequisites() {
97257
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97263
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97258
97264
  return (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_0__.getRequisitesFromEvaluableProps)(node.filter, node.mostLikelyFilter, node.emptyValueFilter);
97259
97265
  }
97260
97266
  get nodePaths() {
97261
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97262
- return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
97267
+ var _node$binding$map, _node$binding;
97268
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97269
+ const paths = (_node$binding$map = (_node$binding = node.binding) === null || _node$binding === void 0 ? void 0 : _node$binding.map(([path]) => (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewRelativePathExpression)(node, path))) !== null && _node$binding$map !== void 0 ? _node$binding$map : [];
97270
+ paths.push((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
97271
+ return paths;
97263
97272
  }
97264
97273
  doBuildDataDeclaration(context) {
97265
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97274
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97266
97275
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
97267
97276
  optional: node.dataBinding.optional,
97268
97277
  disabled: node.disabled
97269
97278
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
97270
97279
  }
97271
97280
  doBuildNormalizeRules(builder) {
97272
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97281
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97273
97282
  return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
97274
97283
  disabled: node.disabled
97275
97284
  })];
97276
97285
  }
97277
97286
  *doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
97278
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97287
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97279
97288
  const element = formSchemaRng.getElementByPath(node.getFullPath());
97280
97289
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
97281
97290
  const typeNode = buildContext.getTypeNode(node.validationInfo);
@@ -97287,15 +97296,15 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
97287
97296
  yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId, node.validationInfo.emptydescription);
97288
97297
  }
97289
97298
  buildChildrenDataDeclaration(context) {
97290
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97299
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97291
97300
  return context.processChildrenDataDeclaration(node.helpNodes);
97292
97301
  }
97293
97302
  *doTraverseChildren() {
97294
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97303
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97295
97304
  yield* node.helpNodes;
97296
97305
  }
97297
97306
  doConvert(context) {
97298
- const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
97307
+ const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__.ComboBoxNode);
97299
97308
  this.ensurePathExists(node, node.dataBinding.path);
97300
97309
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("ComboBox");
97301
97310
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
@@ -97312,6 +97321,21 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
97312
97321
  markupBuilder.prop(x => x.valueToSaveColumnName).set(node.valueToSaveColumnName);
97313
97322
  markupBuilder.prop(x => x.isEnableCaseIndependentValidation).set(node.isEnableCaseIndependentValidation);
97314
97323
  markupBuilder.prop(x => x.greyPicklistValues).set(node.greyPicklistValues);
97324
+ const binding = node.binding;
97325
+ if (binding) {
97326
+ markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => (0,_binding__WEBPACK_IMPORTED_MODULE_8__.getBindingSourceField)(field)));
97327
+ const dependencies = binding === null || binding === void 0 ? void 0 : binding.map(([path, field]) => ({
97328
+ path: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewRelativePathExpression)(node, path),
97329
+ field: (0,_binding__WEBPACK_IMPORTED_MODULE_8__.getBindingSourceField)(field),
97330
+ value: (0,_binding__WEBPACK_IMPORTED_MODULE_8__.getBindingSourceValue)(field)
97331
+ }));
97332
+ markupBuilder.prop(x => x.dependencies).set(dependencies);
97333
+ const nodePath = this.getLegacyNode().attrAsStringStrict("path");
97334
+ const bindingForCurrentPath = binding.find(([path, _field]) => path === nodePath);
97335
+ if (bindingForCurrentPath == undefined) {
97336
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__.SugarAttributeReadError("Значение пути в атрибуте binding должно в точности совпадать со значнием в path", node, "binding");
97337
+ }
97338
+ }
97315
97339
  const reference = (0,_Select_PicklistReference__WEBPACK_IMPORTED_MODULE_3__.extractPicklistReference)(node);
97316
97340
  if (reference != undefined && reference.type === _Select_PicklistReference__WEBPACK_IMPORTED_MODULE_3__.PicklistReferenceType.GlobalPicklist) {
97317
97341
  markupBuilder.prop(x => x.gId).set(reference.id);
@@ -97423,7 +97447,7 @@ __webpack_require__.r(__webpack_exports__);
97423
97447
 
97424
97448
 
97425
97449
 
97426
- var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _class3, _class4, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52;
97450
+ var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _class3, _class4, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _descriptor53;
97427
97451
 
97428
97452
 
97429
97453
 
@@ -97462,7 +97486,7 @@ let ComboboxEnumerationItem = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
97462
97486
  let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.sugarNode)("combobox", `Комбобокс`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox sync recursive .md$")), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_5__.ValidationInfoNode), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_10__.TooltipSettingsNode), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_12__.FocusManagementNode), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("maxLength", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("caption", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("openbutton", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("kind", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("useIncorrectValue", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Typo), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("controlVersion", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Removed), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.typeName, "Тип для валидации значений"), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.singleChild)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Глобальный идентификатор справочника`), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("limit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.number, `Количество значений в выпадающем списке`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `В каком виде отобразится выбранное значение в инпуте: значение/название/полностью (value/name/item).
97463
97487
  Также можно отображать кастомные колонки по названию.`), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("greyPicklistValues", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Красить значения в выпадашке пиклиста в серый цвет`), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("displayItem", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.enum("value", "name"), `В каком виде отобразится занчение в списке: значение/название`), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.delimitedStringArray, ``), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("savedescription", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("useincorrectvalue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Для валидации введенного значения. если false - то только из справочника должно быть значение`), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.localizedString.default("Начните вводить код или название"), `Когда в input-e пусто, то рисуется этот текст`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.lengthUnit, ``), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("menuAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.enum("left", "right"), `Определяет, в какую сторону будет открываться выпадающий список. Значения: \`left\`, \`right\`. Значение по умолчанию: \`left\``), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("filter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, ``), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр для популярных значений`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyCaption", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Подпись для раздела с популярными значениями`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("notFoundText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Надпись при отсутствии значений по фильтру`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("keyColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`code\`, данный ключ будет выведен в первой колонке комбобокса`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("valueColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`value\`, данный ключ будет выведен во второй колонке комбобокса`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("searchcolumnnames", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.stringArray, `Поля справочника, используемые для поиска`), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("valueToSaveColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Название колонки, значение из которой хотим сохранить в иннере`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("emptyValueFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр показываемые поля, если вводимое значение пусто`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("enumeration", [ComboboxEnumerationItem]), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_9__.HelpNode]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("auto", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, "Подключен авторасчет"), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Подсказка для автозначения"), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("autoValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Значение авторасчета. Код, элемент которого будет показываться как автозначение. Использовать в тестах, заменяет получение из калькуляций."), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("useAutoIcon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Какую иконку использовать при использовании авторасчета (работает только с auto = true). Имя иконки смотреть тут - https://ui.gitlab-pages.kontur.host/docs/#/react-icons"), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("isEnableCaseIndependentValidation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Включить регистронезависимую валидацию. Если написан этот атрибут, то в type надо дописать isCaseIndependentValid=true.`), _dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("callHelperOnBlur", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.helperFunctionName, "Вызов helper функции на onBlur контролла"), _dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("callHelperOnChange", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.helperFunctionName, "Вызов helper функции на onChange контролла"), _dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("filterCallback", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.helperFunctionName, `Helper-функция, которая фильтрует массив элементов. Принимает массив args (третий аргумент в хелпере), должна сделать return массива с таким же контрактом.
97464
97488
  При использовании нужно установить максимальный limit, т.к. ответственность за работу с массивом передается коллбэку.
97465
- Также может некорректно работать mostLikelyFilter.`), _dec5(_class3 = (_class4 = class ComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_7__.SugarNodeWithLegacyVisibility {
97489
+ Также может некорректно работать mostLikelyFilter.`), _dec55 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("binding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.objectLiteral(), `Связывание значения из справочника с полем (полями) в модели кенди (иннере).`), _dec5(_class3 = (_class4 = class ComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_7__.SugarNodeWithLegacyVisibility {
97466
97490
  constructor(...args) {
97467
97491
  super(...args);
97468
97492
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor4, this);
@@ -97514,6 +97538,7 @@ let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
97514
97538
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnBlur", _descriptor50, this);
97515
97539
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnChange", _descriptor51, this);
97516
97540
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterCallback", _descriptor52, this);
97541
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "binding", _descriptor53, this);
97517
97542
  }
97518
97543
  getOwnPath() {
97519
97544
  return this.dataBinding.getOwnPath();
@@ -97766,6 +97791,11 @@ let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
97766
97791
  enumerable: true,
97767
97792
  writable: true,
97768
97793
  initializer: null
97794
+ }), _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "binding", [_dec55], {
97795
+ configurable: true,
97796
+ enumerable: true,
97797
+ writable: true,
97798
+ initializer: null
97769
97799
  }), _class4)) || _class3);
97770
97800
 
97771
97801
  /***/ }),
@@ -100666,7 +100696,9 @@ __webpack_require__.r(__webpack_exports__);
100666
100696
  /* harmony import */ var _Select_PicklistReference__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Select/PicklistReference */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/PicklistReference.ts");
100667
100697
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
100668
100698
  /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
100669
- /* harmony import */ var _PicklistNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Picklist/PicklistNode.ts");
100699
+ /* harmony import */ var _binding__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../binding */ "./Generator/src/generators/markupGenerator/binding.ts");
100700
+ /* harmony import */ var _PicklistNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Picklist/PicklistNode.ts");
100701
+
100670
100702
 
100671
100703
 
100672
100704
 
@@ -100677,10 +100709,10 @@ __webpack_require__.r(__webpack_exports__);
100677
100709
 
100678
100710
  class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
100679
100711
  static getAcceptNodeClass() {
100680
- return _PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode;
100712
+ return _PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode;
100681
100713
  }
100682
100714
  *doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
100683
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100715
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100684
100716
  const element = formSchemaRng.getElementByPath(node.getFullPath());
100685
100717
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
100686
100718
  const typeNode = buildContext.getTypeNode(node.validationInfo);
@@ -100693,12 +100725,12 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
100693
100725
  yield* buildContext.buildBasicValidations(ownPathFixed, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId);
100694
100726
  }
100695
100727
  doBuildNodeValidations(validationGenerator) {
100696
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100728
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100697
100729
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
100698
100730
  }
100699
100731
  *doBuildNormalizeRules(builder, formSchemaRng) {
100700
100732
  var _ref;
100701
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100733
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100702
100734
  const element = formSchemaRng.getElementByPath(node.getFullPath());
100703
100735
  yield builder.valueInitializer(node, node.dataBinding, false);
100704
100736
  const isOptional = (_ref = node.dataBinding.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.dataBinding.optional) !== null && _ref !== void 0 ? _ref : false;
@@ -100709,29 +100741,29 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
100709
100741
  }
100710
100742
  doBuildDataDeclaration(context) {
100711
100743
  var _node$dataBinding$opt;
100712
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100744
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100713
100745
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
100714
100746
  optional: node.dataBinding.optional
100715
100747
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false, node.dataBinding.requisite));
100716
100748
  }
100717
100749
  get nodePaths() {
100718
100750
  var _node$binding$map, _node$binding;
100719
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100751
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100720
100752
  const paths = (_node$binding$map = (_node$binding = node.binding) === null || _node$binding === void 0 ? void 0 : _node$binding.map(([path]) => (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewRelativePathExpression)(node, path))) !== null && _node$binding$map !== void 0 ? _node$binding$map : [];
100721
100753
  paths.push((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node));
100722
100754
  return paths;
100723
100755
  }
100724
100756
  buildChildrenDataDeclaration(context) {
100725
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100757
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100726
100758
  return context.processChildrenDataDeclaration(node.helpNodes);
100727
100759
  }
100728
100760
  *doTraverseChildren() {
100729
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100761
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100730
100762
  yield* node.helpNodes;
100731
100763
  }
100732
100764
  doConvert(context) {
100733
100765
  var _node$descriptionInMo;
100734
- const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
100766
+ const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_8__.PicklistNode);
100735
100767
  this.ensurePathExists(node, node.dataBinding.path);
100736
100768
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Picklist");
100737
100769
  markupBuilder.prop(x => x.limit).set(node.limit);
@@ -100772,18 +100804,18 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
100772
100804
  }
100773
100805
  const nodePath = this.getLegacyNode().attrAsStringStrict("path");
100774
100806
  const binding = node.binding || [[nodePath, "code"]];
100775
- markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => this.getBindingSourceField(field)));
100807
+ markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => (0,_binding__WEBPACK_IMPORTED_MODULE_7__.getBindingSourceField)(field)));
100776
100808
  const bindingForCurrentPath = binding.find(([path, _field]) => path === nodePath);
100777
100809
  if (bindingForCurrentPath == undefined) {
100778
100810
  throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError("Значение пути в атрибуте binding должно в точности совпадать со значнием в path", node, "binding");
100779
100811
  }
100780
100812
  const searchByField = bindingForCurrentPath[1];
100781
- markupBuilder.prop(x => x.searchByField).set(this.getBindingSourceField(searchByField));
100813
+ markupBuilder.prop(x => x.searchByField).set((0,_binding__WEBPACK_IMPORTED_MODULE_7__.getBindingSourceField)(searchByField));
100782
100814
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node));
100783
- const dependencies = binding.map(([path, field]) => ({
100815
+ const dependencies = binding === null || binding === void 0 ? void 0 : binding.map(([path, field]) => ({
100784
100816
  path: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewRelativePathExpression)(node, path),
100785
- field: this.getBindingSourceField(field),
100786
- value: this.getBindingSourceValue(field)
100817
+ field: (0,_binding__WEBPACK_IMPORTED_MODULE_7__.getBindingSourceField)(field),
100818
+ value: (0,_binding__WEBPACK_IMPORTED_MODULE_7__.getBindingSourceValue)(field)
100787
100819
  }));
100788
100820
  markupBuilder.prop(x => x.dependencies).set(dependencies);
100789
100821
  if (node.kind === "group") {
@@ -100807,15 +100839,6 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
100807
100839
  }
100808
100840
  return markupBuilder.buildConverterResultWithHelp(node, context);
100809
100841
  }
100810
- getBindingSourceField(x) {
100811
- return typeof x === "string" ? x : x.field;
100812
- }
100813
- getBindingSourceValue(x) {
100814
- if (typeof x === "string" || x.value == undefined) {
100815
- return "value";
100816
- }
100817
- return x.value;
100818
- }
100819
100842
  }
100820
100843
 
100821
100844
  /***/ }),
@@ -103057,7 +103080,9 @@ __webpack_require__.r(__webpack_exports__);
103057
103080
  /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
103058
103081
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
103059
103082
  /* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
103060
- /* harmony import */ var _TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TreePicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TreePicklist/TreePicklistNode.ts");
103083
+ /* harmony import */ var _binding__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../binding */ "./Generator/src/generators/markupGenerator/binding.ts");
103084
+ /* harmony import */ var _TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreePicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TreePicklist/TreePicklistNode.ts");
103085
+
103061
103086
 
103062
103087
 
103063
103088
 
@@ -103066,10 +103091,10 @@ __webpack_require__.r(__webpack_exports__);
103066
103091
 
103067
103092
  class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
103068
103093
  static getAcceptNodeClass() {
103069
- return _TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode;
103094
+ return _TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode;
103070
103095
  }
103071
103096
  doBuildFLangValidations(buildContext, formSchemaRng) {
103072
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103097
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103073
103098
  const element = formSchemaRng.getElementByPath(node.getFullPath());
103074
103099
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each);
103075
103100
  const typeNode = buildContext.getTypeNode(node.validationInfo);
@@ -103080,12 +103105,12 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
103080
103105
  return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.gId);
103081
103106
  }
103082
103107
  doBuildNodeValidations(validationGenerator) {
103083
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103108
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103084
103109
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
103085
103110
  }
103086
103111
  *doBuildNormalizeRules(builder, formSchemaRng) {
103087
103112
  var _ref;
103088
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103113
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103089
103114
  const element = formSchemaRng.getElementByPath(node.getFullPath());
103090
103115
  yield builder.valueInitializer(node, node.dataBinding, false);
103091
103116
  const isOptional = (_ref = node.dataBinding.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.dataBinding.optional) !== null && _ref !== void 0 ? _ref : false;
@@ -103096,26 +103121,26 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
103096
103121
  }
103097
103122
  doBuildDataDeclaration(context) {
103098
103123
  var _node$dataBinding$opt;
103099
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103124
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103100
103125
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
103101
103126
  optional: node.dataBinding.optional
103102
103127
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false, node.dataBinding.requisite));
103103
103128
  }
103104
103129
  get nodePaths() {
103105
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103130
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103106
103131
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node)];
103107
103132
  }
103108
103133
  buildChildrenDataDeclaration(context) {
103109
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103134
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103110
103135
  return context.processChildrenDataDeclaration(node.helpNodes);
103111
103136
  }
103112
103137
  *doTraverseChildren() {
103113
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103138
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103114
103139
  yield* node.helpNodes;
103115
103140
  }
103116
103141
  doConvert(context) {
103117
103142
  var _node$descriptionInMo, _node$title, _node$width, _node$fields, _node$display, _node$childColumnName, _node$parentColumnNam, _node$tooltipPosition;
103118
- const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
103143
+ const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
103119
103144
  this.ensurePathExists(node, node.dataBinding.path);
103120
103145
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("TreePicklist");
103121
103146
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node));
@@ -103123,10 +103148,10 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
103123
103148
  const binding = node.binding || [[nodePath, "code"]];
103124
103149
  const dependencies = binding.map(([path, field]) => ({
103125
103150
  path: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewRelativePathExpression)(node, path),
103126
- field: this.getBindingSourceField(field),
103127
- value: this.getBindingSourceValue(field)
103151
+ field: (0,_binding__WEBPACK_IMPORTED_MODULE_5__.getBindingSourceField)(field),
103152
+ value: (0,_binding__WEBPACK_IMPORTED_MODULE_5__.getBindingSourceValue)(field)
103128
103153
  }));
103129
- markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => this.getBindingSourceField(field)));
103154
+ markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => (0,_binding__WEBPACK_IMPORTED_MODULE_5__.getBindingSourceField)(field)));
103130
103155
  markupBuilder.prop(x => x.descriptionInModal).set((_node$descriptionInMo = node.descriptionInModal) !== null && _node$descriptionInMo !== void 0 ? _node$descriptionInMo : "");
103131
103156
  markupBuilder.prop(x => x.hintFields).set(node.hintFields);
103132
103157
  markupBuilder.prop(x => x.hintWidth).set(node.hintWidth);
@@ -103151,7 +103176,7 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
103151
103176
  throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__.SugarAttributeReadError("Значение пути в атрибуте binding должно в точности совпадать со значнием в path", node, "binding");
103152
103177
  }
103153
103178
  const searchByField = bindingForCurrentPath[1];
103154
- markupBuilder.prop(x => x.searchByField).set(this.getBindingSourceField(searchByField));
103179
+ markupBuilder.prop(x => x.searchByField).set((0,_binding__WEBPACK_IMPORTED_MODULE_5__.getBindingSourceField)(searchByField));
103155
103180
  if (node.filter !== undefined) {
103156
103181
  markupBuilder.prop(x => x.filter).set({
103157
103182
  type: "Expression",
@@ -103161,15 +103186,6 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
103161
103186
  markupBuilder.prop(x => x.tooltipPosition).set((_node$tooltipPosition = node.tooltipPosition) !== null && _node$tooltipPosition !== void 0 ? _node$tooltipPosition : "top center");
103162
103187
  return markupBuilder.buildConverterResultWithHelp(node, context);
103163
103188
  }
103164
- getBindingSourceValue(x) {
103165
- if (typeof x === "string" || x.value == undefined) {
103166
- return "value";
103167
- }
103168
- return x.value;
103169
- }
103170
- getBindingSourceField(x) {
103171
- return typeof x === "string" ? x : x.field;
103172
- }
103173
103189
  }
103174
103190
 
103175
103191
  /***/ }),
@@ -103380,7 +103396,9 @@ __webpack_require__.r(__webpack_exports__);
103380
103396
  /* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
103381
103397
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
103382
103398
  /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
103383
- /* harmony import */ var _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PopupTextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea/PopupTextAreaNode.ts");
103399
+ /* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
103400
+ /* harmony import */ var _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PopupTextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea/PopupTextAreaNode.ts");
103401
+
103384
103402
 
103385
103403
 
103386
103404
 
@@ -103391,14 +103409,14 @@ __webpack_require__.r(__webpack_exports__);
103391
103409
 
103392
103410
  class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
103393
103411
  static getAcceptNodeClass() {
103394
- return _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode;
103412
+ return _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode;
103395
103413
  }
103396
103414
  doBuildNodeValidations(validationGenerator) {
103397
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103415
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103398
103416
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
103399
103417
  }
103400
103418
  *doBuildKCLangCalculations(buildContext, formSchemaRng, prefixPath) {
103401
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103419
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103402
103420
  const element = formSchemaRng.getElementByPath(node.getFullPath());
103403
103421
  const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
103404
103422
  const typeNode = buildContext.getTypeNode(node.validationInfo);
@@ -103410,26 +103428,26 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
103410
103428
  yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
103411
103429
  }
103412
103430
  doBuildDataDeclaration(context) {
103413
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103414
- return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
103431
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103432
+ return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
103415
103433
  optional: node.dataBinding.optional,
103416
103434
  disabled: node.disabled
103417
103435
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
103418
103436
  }
103419
103437
  buildChildrenDataDeclaration(context) {
103420
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103438
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103421
103439
  return context.processChildrenDataDeclaration(node.helpNodes);
103422
103440
  }
103423
103441
  *doTraverseChildren() {
103424
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103442
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103425
103443
  yield* node.helpNodes;
103426
103444
  }
103427
103445
  get nodePaths() {
103428
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103446
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103429
103447
  return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
103430
103448
  }
103431
103449
  doConvert(context) {
103432
- const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
103450
+ const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__.PopupTextAreaNode);
103433
103451
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("PopupTextArea");
103434
103452
  markupBuilder.prop(x => x.width).set(node.width || "100%");
103435
103453
  markupBuilder.prop("data-tid").set(node.tid);
@@ -103451,6 +103469,9 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
103451
103469
  markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
103452
103470
  }
103453
103471
  }
103472
+ markupBuilder.prop(x => x.auto).set(node.auto);
103473
+ markupBuilder.prop(x => x.autoValue).set(node.autoValue);
103474
+ markupBuilder.prop(x => x.useAutoIcon).set((0,_Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_7__.getIconName)(node, node.useAutoIcon));
103454
103475
  (0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
103455
103476
  return markupBuilder.buildConverterResultWithHelp(node, context);
103456
103477
  }
@@ -103492,7 +103513,7 @@ __webpack_require__.r(__webpack_exports__);
103492
103513
 
103493
103514
 
103494
103515
 
103495
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
103516
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;
103496
103517
 
103497
103518
 
103498
103519
 
@@ -103501,7 +103522,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
103501
103522
 
103502
103523
 
103503
103524
 
103504
- let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("popuptextarea", `Иконка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_9__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("popupWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина всплывающей textarea. не может быть меньше 250`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("excelPastePrevent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При значении true вставка в popuptextarea будет перехвачена в пользу вставки таблички, скопрированной из excel как таблички. При значении false все скопированное попадет в value`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.localizedString, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("useLengthLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `Включает отображение счётчик длины текста`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("maxTextLength", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.number, `Задаёт максимальное кол-во символов для счётчика длины текста. Если не указано, значение будет братся из валидации или схемы`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.number, ``), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Typo), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.bindingPath, ``), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec(_class = (_class2 = class PopupTextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
103525
+ let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("popuptextarea", `Иконка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_9__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("popupWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина всплывающей textarea. не может быть меньше 250`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("excelPastePrevent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При значении true вставка в popuptextarea будет перехвачена в пользу вставки таблички, скопрированной из excel как таблички. При значении false все скопированное попадет в value`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.localizedString, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("auto", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Подключен авторассчет"), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("autoValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Значение авторасчета. Код, элемент которого будет показываться как автозначение. Использовать в тестах, заменяет получение из калькуляций."), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("useAutoIcon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Какую иконку использовать при использовании авторасчета (работает только с auto = true). Имя иконки смотреть тут - https://ui.gitlab-pages.kontur.host/docs/#/react-icons"), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("useLengthLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `Включает отображение счётчик длины текста`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("maxTextLength", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.number, `Задаёт максимальное кол-во символов для счётчика длины текста. Если не указано, значение будет братся из валидации или схемы`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.number, ``), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Typo), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.bindingPath, ``), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec(_class = (_class2 = class PopupTextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
103505
103526
  constructor(...args) {
103506
103527
  super(...args);
103507
103528
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
@@ -103515,14 +103536,17 @@ let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
103515
103536
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled", _descriptor9, this);
103516
103537
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor10, this);
103517
103538
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "autoResize", _descriptor11, this);
103518
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "useLengthLimit", _descriptor12, this);
103519
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxTextLength", _descriptor13, this);
103520
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "rows", _descriptor14, this);
103521
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "row", _descriptor15, this);
103522
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resize", _descriptor16, this);
103523
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor17, this);
103524
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "help", _descriptor18, this);
103525
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "helpNodes", _descriptor19, this);
103539
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "auto", _descriptor12, this);
103540
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "autoValue", _descriptor13, this);
103541
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "useAutoIcon", _descriptor14, this);
103542
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "useLengthLimit", _descriptor15, this);
103543
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxTextLength", _descriptor16, this);
103544
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "rows", _descriptor17, this);
103545
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "row", _descriptor18, this);
103546
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resize", _descriptor19, this);
103547
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor20, this);
103548
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "help", _descriptor21, this);
103549
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "helpNodes", _descriptor22, this);
103526
103550
  }
103527
103551
  getOwnPath() {
103528
103552
  return this.dataBinding.getOwnPath();
@@ -103582,42 +103606,57 @@ let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
103582
103606
  enumerable: true,
103583
103607
  writable: true,
103584
103608
  initializer: null
103585
- }), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "useLengthLimit", [_dec13], {
103609
+ }), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "auto", [_dec13], {
103610
+ configurable: true,
103611
+ enumerable: true,
103612
+ writable: true,
103613
+ initializer: null
103614
+ }), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "autoValue", [_dec14], {
103615
+ configurable: true,
103616
+ enumerable: true,
103617
+ writable: true,
103618
+ initializer: null
103619
+ }), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "useAutoIcon", [_dec15], {
103620
+ configurable: true,
103621
+ enumerable: true,
103622
+ writable: true,
103623
+ initializer: null
103624
+ }), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "useLengthLimit", [_dec16], {
103586
103625
  configurable: true,
103587
103626
  enumerable: true,
103588
103627
  writable: true,
103589
103628
  initializer: null
103590
- }), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "maxTextLength", [_dec14], {
103629
+ }), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "maxTextLength", [_dec17], {
103591
103630
  configurable: true,
103592
103631
  enumerable: true,
103593
103632
  writable: true,
103594
103633
  initializer: null
103595
- }), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "rows", [_dec15], {
103634
+ }), _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "rows", [_dec18], {
103596
103635
  configurable: true,
103597
103636
  enumerable: true,
103598
103637
  writable: true,
103599
103638
  initializer: null
103600
- }), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "row", [_dec16], {
103639
+ }), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "row", [_dec19], {
103601
103640
  configurable: true,
103602
103641
  enumerable: true,
103603
103642
  writable: true,
103604
103643
  initializer: null
103605
- }), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "resize", [_dec17], {
103644
+ }), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "resize", [_dec20], {
103606
103645
  configurable: true,
103607
103646
  enumerable: true,
103608
103647
  writable: true,
103609
103648
  initializer: null
103610
- }), _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec18], {
103649
+ }), _descriptor20 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec21], {
103611
103650
  configurable: true,
103612
103651
  enumerable: true,
103613
103652
  writable: true,
103614
103653
  initializer: null
103615
- }), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "help", [_dec19], {
103654
+ }), _descriptor21 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "help", [_dec22], {
103616
103655
  configurable: true,
103617
103656
  enumerable: true,
103618
103657
  writable: true,
103619
103658
  initializer: null
103620
- }), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "helpNodes", [_dec20], {
103659
+ }), _descriptor22 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "helpNodes", [_dec23], {
103621
103660
  configurable: true,
103622
103661
  enumerable: true,
103623
103662
  writable: true,
@@ -107882,6 +107921,30 @@ class VisibilityProcessor {
107882
107921
 
107883
107922
  /***/ }),
107884
107923
 
107924
+ /***/ "./Generator/src/generators/markupGenerator/binding.ts":
107925
+ /*!*************************************************************!*\
107926
+ !*** ./Generator/src/generators/markupGenerator/binding.ts ***!
107927
+ \*************************************************************/
107928
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
107929
+
107930
+ "use strict";
107931
+ __webpack_require__.r(__webpack_exports__);
107932
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
107933
+ /* harmony export */ getBindingSourceField: () => (/* binding */ getBindingSourceField),
107934
+ /* harmony export */ getBindingSourceValue: () => (/* binding */ getBindingSourceValue)
107935
+ /* harmony export */ });
107936
+ function getBindingSourceField(x) {
107937
+ return typeof x === "string" ? x : x.field;
107938
+ }
107939
+ function getBindingSourceValue(x) {
107940
+ if (typeof x === "string" || x.value == undefined) {
107941
+ return "value";
107942
+ }
107943
+ return x.value;
107944
+ }
107945
+
107946
+ /***/ }),
107947
+
107885
107948
  /***/ "./Generator/src/generators/markupGenerator/controlCustomization/ControlCustomizationContextBuilder.ts":
107886
107949
  /*!*************************************************************************************************************!*\
107887
107950
  !*** ./Generator/src/generators/markupGenerator/controlCustomization/ControlCustomizationContextBuilder.ts ***!
@@ -137813,7 +137876,7 @@ module.exports = "### Опциональность мультилайна и т
137813
137876
  \*********************************************************************************************************/
137814
137877
  /***/ ((module) => {
137815
137878
 
137816
- module.exports = "<h4>Атрибут emptyValueFilter</h4>\nЕсли нет введеного значения, то фильтрует выпадающий список значения.\nСинтаксис аналогичен атрибуту `filter`. Смотри описание к picklist. \n<br>\n<br>\nПример фильтрации по первым двум цифрам инн из @formsClientInfo/currentAccount:\n```\nemptyValueFilter=\"by.column('code').startWith(path('@formsClientInfo/currentAccount/inn').slice(0, 2))\"\n```\n";
137879
+ module.exports = "<h4>Атрибут emptyValueFilter</h4>\nЕсли нет введеного значения, то фильтрует выпадающий список значения.\nСинтаксис аналогичен атрибуту `filter`. Смотри описание к picklist. \n<br>\n<br>\nПример фильтрации по первым двум цифрам инн из @formsClientInfo/currentAccount:\n```\nemptyValueFilter=\"by.column('code').startWith(path('@formsClientInfo/currentAccount/inn').slice(0, 2))\"\n```\n\n<h4>Атрибут binding</h4>\n\nИспользуется для записи значений полей справочника в указанные поля в иннере.\nНапример, можно сохранить выбранное значение из колонки name в одноименное поле:\n```\n<combobox \n path=\"combobox1\" \n gId=\"3436\" \n binding={[[\"combobox1\", \"code\"], [\"combobox1/name\", \"name\"], [\"combobox1/description\", \"name\"]]} \n width=\"200\" />\n```\nТ.о. значение колонки code справочника сохранится по пути combobox1.value, а значение из колонки name сохранится в поля combobox1/name.value и combobox1/description.value в иннере.\n```\n\"Root/comboboxWithBinding/combobox1.value\": \"8\",\n\"Root/comboboxWithBinding/combobox1/name.value\": \"Август\",\n\"Root/comboboxWithBinding/combobox1/description.value\": \"Август\",\n```\nМожно сохранять не в .value, а в другое поле. Пример:\n```\n<combobox \n path=\"combobox2\" \n gId=\"3436\" \n binding={[[\"combobox2\", \"code\"], [\"combobox2\", { \"value\": \"description\", \"field\": \"name\" }]]} \n width=\"200\" />\n```\nЗдесь значение колонки name справочника выгрузится в поле combobox2.description.\n```\n\"Root/comboboxWithBinding/combobox2.value\": \"6\",\n\"Root/comboboxWithBinding/combobox2.description\": \"Июнь\",\n```";
137817
137880
 
137818
137881
  /***/ }),
137819
137882
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.115.1-enhanced-server-filters.0",
3
+ "version": "5.115.1-enhanced-server-filters.1",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,