@kontur.candy/generator 5.113.0-fs-9104-history-attachments.3 → 5.113.0-fs-9060-combobox-renderer-dropdown.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 +143 -48
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -578,17 +578,31 @@ module.exports = webpackEmptyContext;
578
578
  /*!**************************************************************************************************************!*\
579
579
  !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel/ sync .md$ ***!
580
580
  \**************************************************************************************************************/
581
- /***/ ((module) => {
581
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
582
582
 
583
- function webpackEmptyContext(req) {
584
- var e = new Error("Cannot find module '" + req + "'");
585
- e.code = 'MODULE_NOT_FOUND';
586
- throw e;
583
+ var map = {
584
+ "./description.md": "./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel/description.md"
585
+ };
586
+
587
+
588
+ function webpackContext(req) {
589
+ var id = webpackContextResolve(req);
590
+ return __webpack_require__(id);
587
591
  }
588
- webpackEmptyContext.keys = () => ([]);
589
- webpackEmptyContext.resolve = webpackEmptyContext;
590
- webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel sync recursive .md$";
591
- module.exports = webpackEmptyContext;
592
+ function webpackContextResolve(req) {
593
+ if(!__webpack_require__.o(map, req)) {
594
+ var e = new Error("Cannot find module '" + req + "'");
595
+ e.code = 'MODULE_NOT_FOUND';
596
+ throw e;
597
+ }
598
+ return map[req];
599
+ }
600
+ webpackContext.keys = function webpackContextKeys() {
601
+ return Object.keys(map);
602
+ };
603
+ webpackContext.resolve = webpackContextResolve;
604
+ module.exports = webpackContext;
605
+ webpackContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel sync recursive .md$";
592
606
 
593
607
  /***/ }),
594
608
 
@@ -78997,19 +79011,28 @@ class DropDownButtonLoadExcelConverter extends _SugarNodeConverter__WEBPACK_IMPO
78997
79011
  // no children
78998
79012
  }
78999
79013
  doConvert(context) {
79000
- var _node$text, _node$textInLoading, _node$combinatorType, _node$combineType, _node$acceptGFVs;
79014
+ var _node$text, _node$textInLoading, _node$importOptions$c, _node$acceptGFVs;
79001
79015
  const node = this.getCurrentNodeAs(_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_6__.DropDownButtonLoadExcelNode);
79002
79016
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("DropDownButtonLoadExcel");
79017
+ const commonImportOptions = this.extractOptions(node.importOptions);
79018
+ markupBuilder.prop(x => x.commonImportOptions).set(commonImportOptions);
79003
79019
  markupBuilder.prop(x => x.pathToTable).set(node.pathToTable);
79004
79020
  markupBuilder.prop("data-tid").set(node.tid);
79005
79021
  markupBuilder.prop(x => x.size).set(node.size);
79006
79022
  markupBuilder.prop(x => x.text).set((_node$text = node.text) !== null && _node$text !== void 0 ? _node$text : "Импорт/Экспорт");
79007
79023
  markupBuilder.prop(x => x.textInLoading).set((_node$textInLoading = node.textInLoading) !== null && _node$textInLoading !== void 0 ? _node$textInLoading : "Скачиваем");
79008
79024
  markupBuilder.prop(x => x.tableType).set(node.tableType);
79009
- markupBuilder.prop(x => x.combinatorType).set((_node$combinatorType = node.combinatorType) !== null && _node$combinatorType !== void 0 ? _node$combinatorType : _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.CombinatorType.Default);
79010
- markupBuilder.prop(x => x.combineType).set((_node$combineType = node.combineType) !== null && _node$combineType !== void 0 ? _node$combineType : _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.FufCombineMethod.AddToEnd);
79025
+ markupBuilder.prop(x => x.combineType).set((_node$importOptions$c = node.importOptions.combineType) !== null && _node$importOptions$c !== void 0 ? _node$importOptions$c : _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.FufCombineMethod.AddToEnd);
79011
79026
  markupBuilder.prop(x => x.acceptGFVs).set((_node$acceptGFVs = node.acceptGFVs) !== null && _node$acceptGFVs !== void 0 ? _node$acceptGFVs : []);
79012
79027
  markupBuilder.prop(x => x.navigationPath).set(node.navigationPath);
79028
+ if (node.excelOptions) {
79029
+ const downloadExcelOptions = this.extractOptions(node.excelOptions.importOptions);
79030
+ markupBuilder.prop(x => x.importOptionsForExcel).set(downloadExcelOptions);
79031
+ }
79032
+ if (node.xmloptions) {
79033
+ const downloadXmlOptions = this.extractOptions(node.xmloptions.importOptions);
79034
+ markupBuilder.prop(x => x.importOptionsForXml).set(downloadXmlOptions);
79035
+ }
79013
79036
  if (node.isOnlyAddToEnd && node.isOnlyReplace) {
79014
79037
  throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_5__.SugarAttributeReadError("В контроле должен быть только один атрибут: или isOnlyAddToEnd, или isOnlyReplace.", node, "isOnlyAddToEnd");
79015
79038
  } else {
@@ -79020,6 +79043,14 @@ class DropDownButtonLoadExcelConverter extends _SugarNodeConverter__WEBPACK_IMPO
79020
79043
  markupBuilder.prop(x => x.getTypeId).set(context.generateHelperFunctionExpression(node, "getTypeId", node.getTypeId));
79021
79044
  return markupBuilder.buildConverterResult();
79022
79045
  }
79046
+ extractOptions(options) {
79047
+ var _options$combinatorTy, _options$combineType, _options$isImportByFu;
79048
+ return {
79049
+ combinatorType: (_options$combinatorTy = options.combinatorType) !== null && _options$combinatorTy !== void 0 ? _options$combinatorTy : undefined,
79050
+ combineType: (_options$combineType = options.combineType) !== null && _options$combineType !== void 0 ? _options$combineType : undefined,
79051
+ isImportByFuf: (_options$isImportByFu = options.isImportByFuf) !== null && _options$isImportByFu !== void 0 ? _options$isImportByFu : undefined
79052
+ };
79053
+ }
79023
79054
  }
79024
79055
 
79025
79056
  /***/ }),
@@ -79033,7 +79064,10 @@ class DropDownButtonLoadExcelConverter extends _SugarNodeConverter__WEBPACK_IMPO
79033
79064
  "use strict";
79034
79065
  __webpack_require__.r(__webpack_exports__);
79035
79066
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
79036
- /* harmony export */ DropDownButtonLoadExcelNode: () => (/* binding */ DropDownButtonLoadExcelNode)
79067
+ /* harmony export */ DropDownButtonLoadExcelNode: () => (/* binding */ DropDownButtonLoadExcelNode),
79068
+ /* harmony export */ ExcelDownloadOptions: () => (/* binding */ ExcelDownloadOptions),
79069
+ /* harmony export */ ImportOptions: () => (/* binding */ ImportOptions),
79070
+ /* harmony export */ XmlDownloadOptions: () => (/* binding */ XmlDownloadOptions)
79037
79071
  /* harmony export */ });
79038
79072
  /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
79039
79073
  /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
@@ -79047,104 +79081,155 @@ __webpack_require__.r(__webpack_exports__);
79047
79081
 
79048
79082
 
79049
79083
 
79050
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;
79084
+ var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _dec5, _dec6, _class3, _class4, _descriptor4, _dec7, _dec8, _class5, _class6, _descriptor5, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _class7, _class8, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
79051
79085
 
79052
79086
 
79053
79087
 
79054
- let DropDownButtonLoadExcelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("dropdownbuttonloadexcel", `Кнопка для выгрузки и загрузки файла Excel.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToTable", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, "Путь до multiline, абсолютный."), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("small", "medium", "large"), "Размер кнопки. По умолчанинию small"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("text", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке до загрузки файла. По умолчанию 'Импорт/Экспорт'."), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textInLoading", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке при загрузке файла в Excel. По умолчанию 'Скачиваем'"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tableType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Engine_src_Engine_Core_ModalManager_Modals_Utils_Types__WEBPACK_IMPORTED_MODULE_5__.TableType.static, _Engine_src_Engine_Core_ModalManager_Modals_Utils_Types__WEBPACK_IMPORTED_MODULE_5__.TableType.dynamic).required, `Статичная или динамическая таблица.
79055
- Статическая - таблица без изменений количества строк и столбцов.
79056
- Динамическая - таблица с изменением количесва строк и/или столбцов. Например, мультилайн.
79057
- Если в таблице есть и статические и данамические строки, то в этот атрибут писать static.
79058
- `), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("combineType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.FufCombineMethod.AddToEnd, _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.FufCombineMethod.Merge), `Как объединять таблицы, если таблица в форме динамическая.
79088
+ let ImportOptions = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixinNode)(), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("combineType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.FufCombineMethod.AddToEnd, _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.FufCombineMethod.Merge), `Как объединять таблицы, если таблица в форме динамическая.
79059
79089
  AddToEnd - добавляет в конец данные, даже если есть повторяющиеся.
79060
79090
  Merge - по умному мерджит данные с одинаковыми полями (нужно спрашивать реализовано ли такое, пока что только для ПСВ).
79061
79091
  По умолчанию - AddToEnd.
79062
- `), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("combinatorType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.CombinatorType.Default, _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.CombinatorType.XmlCombinatorByPath), `Default: использует умный комбинатор, который пишется флешами.
79092
+ `), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("isImportByFuf", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Параметр importByFuf в запросе на перенос данных`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("combinatorType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.CombinatorType.Default, _Common_CandyApiClient_Types_DraftActions_CombineFufResult__WEBPACK_IMPORTED_MODULE_4__.CombinatorType.XmlCombinatorByPath), `Default: использует умный комбинатор, который пишется флешами.
79063
79093
  XmlCombinatorByPath: новый вид комбинатора по пути. Перекладывает из фуфа в черновик 1 к 1.
79064
79094
  В связке с XmlCombinatorByPath - в combineType писать AddToEnd.
79065
- `), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("acceptGFVs", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string), `Разрешенные гфв, например старых форматов.`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("navigationPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Путь для навигации, если он отличается от пути до таблицы (pathToTable). Если этот путь задан, то навигируется в него, иначе в pathToTable.`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("isOnlyAddToEnd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Если для формы реализована функция только добавления в конец, без замены. Например в ЕФС-1 в первых разделах. По умолчанию false.`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("getTypeId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.helperFunctionName, "Хелпер для определения typeId для метода transfer/combine-multiple. Например в ЕФС-1."), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("isOnlyReplace", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Если для формы реализована функция только замены данных. Например в ЕФС-1 ДСВ-3. По умолчанию false.`), _dec(_class = (_class2 = class DropDownButtonLoadExcelNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
79095
+ `), _dec(_class = (_class2 = class ImportOptions extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
79066
79096
  constructor(...args) {
79067
79097
  super(...args);
79068
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToTable", _descriptor, this);
79069
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor2, this);
79070
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "size", _descriptor3, this);
79071
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "text", _descriptor4, this);
79072
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "textInLoading", _descriptor5, this);
79073
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tableType", _descriptor6, this);
79074
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "combineType", _descriptor7, this);
79075
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "combinatorType", _descriptor8, this);
79076
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "acceptGFVs", _descriptor9, this);
79077
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationPath", _descriptor10, this);
79078
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isOnlyAddToEnd", _descriptor11, this);
79079
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getTypeId", _descriptor12, this);
79080
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isOnlyReplace", _descriptor13, this);
79098
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "combineType", _descriptor, this);
79099
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isImportByFuf", _descriptor2, this);
79100
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "combinatorType", _descriptor3, this);
79081
79101
  }
79082
- }, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pathToTable", [_dec2], {
79102
+ }, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "combineType", [_dec2], {
79083
79103
  configurable: true,
79084
79104
  enumerable: true,
79085
79105
  writable: true,
79086
79106
  initializer: null
79087
- }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec3], {
79107
+ }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "isImportByFuf", [_dec3], {
79088
79108
  configurable: true,
79089
79109
  enumerable: true,
79090
79110
  writable: true,
79091
79111
  initializer: null
79092
- }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "size", [_dec4], {
79112
+ }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "combinatorType", [_dec4], {
79093
79113
  configurable: true,
79094
79114
  enumerable: true,
79095
79115
  writable: true,
79096
79116
  initializer: null
79097
- }), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "text", [_dec5], {
79117
+ }), _class2)) || _class);
79118
+ let ExcelDownloadOptions = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("exceloptions", "Кастомные опции для кнопки импорта данных из Excel"), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(ImportOptions), _dec5(_class3 = (_class4 = class ExcelDownloadOptions extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
79119
+ constructor(...args) {
79120
+ super(...args);
79121
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "importOptions", _descriptor4, this);
79122
+ }
79123
+ }, _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "importOptions", [_dec6], {
79124
+ configurable: true,
79125
+ enumerable: true,
79126
+ writable: true,
79127
+ initializer: null
79128
+ }), _class4)) || _class3);
79129
+ let XmlDownloadOptions = (_dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("xmloptions", "Кастомные опции для кнопки импорта данных из Xml"), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(ImportOptions), _dec7(_class5 = (_class6 = class XmlDownloadOptions extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
79130
+ constructor(...args) {
79131
+ super(...args);
79132
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "importOptions", _descriptor5, this);
79133
+ }
79134
+ }, _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class6.prototype, "importOptions", [_dec8], {
79135
+ configurable: true,
79136
+ enumerable: true,
79137
+ writable: true,
79138
+ initializer: null
79139
+ }), _class6)) || _class5);
79140
+ let DropDownButtonLoadExcelNode = (_dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("dropdownbuttonloadexcel", `Кнопка для выгрузки и загрузки файла Excel.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel sync recursive .md$")), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToTable", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, "Путь до multiline, абсолютный."), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("small", "medium", "large"), "Размер кнопки. По умолчанинию small"), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("text", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке до загрузки файла. По умолчанию 'Импорт/Экспорт'."), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("textInLoading", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Текст в кнопке при загрузке файла в Excel. По умолчанию 'Скачиваем'"), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tableType", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(_Engine_src_Engine_Core_ModalManager_Modals_Utils_Types__WEBPACK_IMPORTED_MODULE_5__.TableType.static, _Engine_src_Engine_Core_ModalManager_Modals_Utils_Types__WEBPACK_IMPORTED_MODULE_5__.TableType.dynamic).required, `Статичная или динамическая таблица.
79141
+ Статическая - таблица без изменений количества строк и столбцов.
79142
+ Динамическая - таблица с изменением количесва строк и/или столбцов. Например, мультилайн.
79143
+ Если в таблице есть и статические и данамические строки, то в этот атрибут писать static.
79144
+ `), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("acceptGFVs", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string), `Разрешенные гфв, например старых форматов.`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("navigationPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Путь для навигации, если он отличается от пути до таблицы (pathToTable). Если этот путь задан, то навигируется в него, иначе в pathToTable.`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("getTypeId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.helperFunctionName, "Хелпер для определения typeId для метода transfer/combine-multiple. Например в ЕФС-1."), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("isOnlyAddToEnd", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Если для формы реализована функция только добавления в конец, без замены. Например в ЕФС-1 в первых разделах. По умолчанию false.`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("isOnlyReplace", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Если для формы реализована функция только замены данных. Например в ЕФС-1 ДСВ-3. По умолчанию false.`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(ImportOptions), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("exceloptions", [ExcelDownloadOptions]), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("xmloptions", [XmlDownloadOptions]), _dec9(_class7 = (_class8 = class DropDownButtonLoadExcelNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
79145
+ constructor(...args) {
79146
+ super(...args);
79147
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToTable", _descriptor6, this);
79148
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor7, this);
79149
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "size", _descriptor8, this);
79150
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "text", _descriptor9, this);
79151
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "textInLoading", _descriptor10, this);
79152
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tableType", _descriptor11, this);
79153
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "acceptGFVs", _descriptor12, this);
79154
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationPath", _descriptor13, this);
79155
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getTypeId", _descriptor14, this);
79156
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isOnlyAddToEnd", _descriptor15, this);
79157
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "isOnlyReplace", _descriptor16, this);
79158
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "importOptions", _descriptor17, this);
79159
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "excelOptions", _descriptor18, this);
79160
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "xmloptions", _descriptor19, this);
79161
+ }
79162
+ }, _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "pathToTable", [_dec10], {
79098
79163
  configurable: true,
79099
79164
  enumerable: true,
79100
79165
  writable: true,
79101
79166
  initializer: null
79102
- }), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "textInLoading", [_dec6], {
79167
+ }), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "tid", [_dec11], {
79103
79168
  configurable: true,
79104
79169
  enumerable: true,
79105
79170
  writable: true,
79106
79171
  initializer: null
79107
- }), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tableType", [_dec7], {
79172
+ }), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "size", [_dec12], {
79108
79173
  configurable: true,
79109
79174
  enumerable: true,
79110
79175
  writable: true,
79111
79176
  initializer: null
79112
- }), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "combineType", [_dec8], {
79177
+ }), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "text", [_dec13], {
79113
79178
  configurable: true,
79114
79179
  enumerable: true,
79115
79180
  writable: true,
79116
79181
  initializer: null
79117
- }), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "combinatorType", [_dec9], {
79182
+ }), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "textInLoading", [_dec14], {
79118
79183
  configurable: true,
79119
79184
  enumerable: true,
79120
79185
  writable: true,
79121
79186
  initializer: null
79122
- }), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "acceptGFVs", [_dec10], {
79187
+ }), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "tableType", [_dec15], {
79123
79188
  configurable: true,
79124
79189
  enumerable: true,
79125
79190
  writable: true,
79126
79191
  initializer: null
79127
- }), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "navigationPath", [_dec11], {
79192
+ }), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "acceptGFVs", [_dec16], {
79128
79193
  configurable: true,
79129
79194
  enumerable: true,
79130
79195
  writable: true,
79131
79196
  initializer: null
79132
- }), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "isOnlyAddToEnd", [_dec12], {
79197
+ }), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "navigationPath", [_dec17], {
79133
79198
  configurable: true,
79134
79199
  enumerable: true,
79135
79200
  writable: true,
79136
79201
  initializer: null
79137
- }), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "getTypeId", [_dec13], {
79202
+ }), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "getTypeId", [_dec18], {
79138
79203
  configurable: true,
79139
79204
  enumerable: true,
79140
79205
  writable: true,
79141
79206
  initializer: null
79142
- }), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "isOnlyReplace", [_dec14], {
79207
+ }), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "isOnlyAddToEnd", [_dec19], {
79143
79208
  configurable: true,
79144
79209
  enumerable: true,
79145
79210
  writable: true,
79146
79211
  initializer: null
79147
- }), _class2)) || _class);
79212
+ }), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "isOnlyReplace", [_dec20], {
79213
+ configurable: true,
79214
+ enumerable: true,
79215
+ writable: true,
79216
+ initializer: null
79217
+ }), _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "importOptions", [_dec21], {
79218
+ configurable: true,
79219
+ enumerable: true,
79220
+ writable: true,
79221
+ initializer: null
79222
+ }), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "excelOptions", [_dec22], {
79223
+ configurable: true,
79224
+ enumerable: true,
79225
+ writable: true,
79226
+ initializer: null
79227
+ }), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "xmloptions", [_dec23], {
79228
+ configurable: true,
79229
+ enumerable: true,
79230
+ writable: true,
79231
+ initializer: null
79232
+ }), _class8)) || _class7);
79148
79233
 
79149
79234
  /***/ }),
79150
79235
 
@@ -137163,6 +137248,16 @@ module.exports.createColors = createColors
137163
137248
  module.exports = __webpack_require__(/*! crypto */ "crypto").randomBytes
137164
137249
 
137165
137250
 
137251
+ /***/ }),
137252
+
137253
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel/description.md":
137254
+ /*!******************************************************************************************************************!*\
137255
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropDownButtonLoadExcel/description.md ***!
137256
+ \******************************************************************************************************************/
137257
+ /***/ ((module) => {
137258
+
137259
+ module.exports = "Теги: #загрузка #excel #xml #справочник #адресов #fias\n\n### Параметры импорта ###\n\nВ контроле можно задать общие параметры импорта, они будут применяться к загрузке Excel и Xml:\n\n```\n<dropdownbuttonloadexcel\n tid=\"TableCustomActions\"\n pathToTable=\"/Файл/Документ/ПерсСвФЛ\"\n tableType=\"dynamic\"\n combineType=\"Merge\"\n combinatorType=\"Default\"\n isImportByFuf=\"true\" \n/>\n```\n \nВ некоторых случаях требуется разное поведение при импорте для кнопок загрузки Excel и Xml. Для этого можно указать разные параметры combineType, combinatorType, isImportByFuf в <xmloptions> и <exceloptions>:\n\n```\n<dropdownbuttonloadexcel\n tid=\"TableCustomActions\"\n pathToTable=\"/Файл/Документ/ПерсСвФЛ\"\n tableType=\"dynamic\"\n combineType=\"Merge\"\n isImportByFuf=\"true\">\n <xmloptions combineType=\"AddToEnd\" isImportByFuf=\"false\" />\n <exceloptions combinatorType=\"XmlCombinatorByPath\" />\n</dropdownbuttonloadexcel>\n```\n\nЕсли какой-то атрибут не указан в exceloptions или xmloptions, то он будет браться из общих настроек.";
137260
+
137166
137261
  /***/ }),
137167
137262
 
137168
137263
  /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ControlFlow/Choice/description.md":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.113.0-fs-9104-history-attachments.3",
3
+ "version": "5.113.0-fs-9060-combobox-renderer-dropdown.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,