@kontur.candy/generator 4.297.0-upload-excel-button.3 → 4.297.0-upload-excel-button.4

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 +14 -24
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -111802,8 +111802,7 @@ exports.XPathWildcardElement = XPathWildcardElement;
111802
111802
  "use strict";
111803
111803
  __webpack_require__.r(__webpack_exports__);
111804
111804
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
111805
- /* harmony export */ "FufCombineMethod": () => (/* binding */ FufCombineMethod),
111806
- /* harmony export */ "CombinatorType": () => (/* binding */ CombinatorType)
111805
+ /* harmony export */ "FufCombineMethod": () => (/* binding */ FufCombineMethod)
111807
111806
  /* harmony export */ });
111808
111807
  let FufCombineMethod;
111809
111808
 
@@ -111813,13 +111812,6 @@ let FufCombineMethod;
111813
111812
  FufCombineMethod["Replace"] = "Replace";
111814
111813
  })(FufCombineMethod || (FufCombineMethod = {}));
111815
111814
 
111816
- let CombinatorType;
111817
-
111818
- (function (CombinatorType) {
111819
- CombinatorType["Default"] = "Default";
111820
- CombinatorType["XmlCombinatorByPath"] = "XmlCombinatorByPath";
111821
- })(CombinatorType || (CombinatorType = {}));
111822
-
111823
111815
  /***/ }),
111824
111816
 
111825
111817
  /***/ "./Common/CommonConstants/SectionNames.ts":
@@ -114791,7 +114783,8 @@ __webpack_require__.r(__webpack_exports__);
114791
114783
  /* harmony export */ "tryGetValidDateShape": () => (/* binding */ tryGetValidDateShape),
114792
114784
  /* harmony export */ "comparator": () => (/* binding */ comparator),
114793
114785
  /* harmony export */ "isValidStringDate": () => (/* binding */ isValidStringDate),
114794
- /* harmony export */ "isLessOrEqualStringDates": () => (/* binding */ isLessOrEqualStringDates)
114786
+ /* harmony export */ "isLessOrEqualStringDates": () => (/* binding */ isLessOrEqualStringDates),
114787
+ /* harmony export */ "HelperFunctionsDateHelpers": () => (/* binding */ HelperFunctionsDateHelpers)
114795
114788
  /* harmony export */ });
114796
114789
  function parseDateString(value) {
114797
114790
  const [date, month, year] = (value || "").split(".").map(x => x ? Number(x) : undefined);
@@ -114868,6 +114861,10 @@ function isLessOrEqualStringDates(a, b) {
114868
114861
 
114869
114862
  return false;
114870
114863
  }
114864
+ const HelperFunctionsDateHelpers = {
114865
+ isValidDate: isValidDate,
114866
+ parseDateString: parseDateString
114867
+ };
114871
114868
 
114872
114869
  /***/ }),
114873
114870
 
@@ -115060,7 +115057,8 @@ let FilterType;
115060
115057
  __webpack_require__.r(__webpack_exports__);
115061
115058
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
115062
115059
  /* harmony export */ "splitLastOccurrence": () => (/* binding */ splitLastOccurrence),
115063
- /* harmony export */ "pluralize": () => (/* binding */ pluralize)
115060
+ /* harmony export */ "pluralize": () => (/* binding */ pluralize),
115061
+ /* harmony export */ "HelperFunctionsStringHelpers": () => (/* binding */ HelperFunctionsStringHelpers)
115064
115062
  /* harmony export */ });
115065
115063
  /* harmony import */ var _Common_IntRangeUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Common/IntRangeUtils */ "./Common/IntRangeUtils.ts");
115066
115064
 
@@ -115081,6 +115079,9 @@ const pluralize = (count, words, localizer) => {
115081
115079
  const x = count % 100 > 4 && count % 100 < 20 ? 2 : cases[(0,_Common_IntRangeUtils__WEBPACK_IMPORTED_MODULE_0__.clampUInt)(count % 10, 0, 5)];
115082
115080
  return count.toString() + " " + (localizer ? localizer.translate(words[x]) : words[x]);
115083
115081
  };
115082
+ const HelperFunctionsStringHelpers = {
115083
+ pluralize: pluralize
115084
+ };
115084
115085
 
115085
115086
  /***/ }),
115086
115087
 
@@ -137947,7 +137948,7 @@ class DropDownButtonLoadExcelConverter extends _SugarNodeConverter__WEBPACK_IMPO
137947
137948
  }
137948
137949
 
137949
137950
  doConvert(context) {
137950
- var _node$text, _node$textInLoading, _node$combineType, _node$combinatorType;
137951
+ var _node$text, _node$textInLoading, _node$combineType;
137951
137952
 
137952
137953
  const node = this.getCurrentNodeAs(_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_5__.DropDownButtonLoadExcelNode);
137953
137954
  const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("DropDownButtonLoadExcel");
@@ -137960,7 +137961,6 @@ class DropDownButtonLoadExcelConverter extends _SugarNodeConverter__WEBPACK_IMPO
137960
137961
  markupBuilder.prop(x => x.textInLoading).set((_node$textInLoading = node.textInLoading) !== null && _node$textInLoading !== void 0 ? _node$textInLoading : "Скачиваем");
137961
137962
  markupBuilder.prop(x => x.tableType).set(node.tableType);
137962
137963
  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);
137963
- 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.XmlCombinatorByPath);
137964
137964
  return markupBuilder.buildConverterResult();
137965
137965
  }
137966
137966
 
@@ -137992,7 +137992,7 @@ __webpack_require__.r(__webpack_exports__);
137992
137992
 
137993
137993
 
137994
137994
 
137995
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
137995
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
137996
137996
 
137997
137997
 
137998
137998
 
@@ -138005,9 +138005,6 @@ let DropDownButtonLoadExcelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPAC
138005
138005
  AddToEnd - добавляет в конец данные, даже если есть повторяющиеся.
138006
138006
  Merge - по умному мерджит данные с одинаковыми полями (нужно спрашивать реализовано ли такое, пока что только для ПСВ).
138007
138007
  По умолчанию - AddToEnd.
138008
- `), _dec11 = (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), `В какой комбинатор идти за преобразованиями.
138009
- Default - умный, умеет Replace, AddToEnd, Merge. Написан силами флешей, что бы узнать написан для такой комбинатор для формы нужно спросить у них.
138010
- XmlCombinatorByPath - тупой, умеет Replace, AddToEnd. Написан универасльно для всех форм, по умолчанию ходим в него.
138011
138008
  `), _dec(_class = (_class2 = class DropDownButtonLoadExcelNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
138012
138009
  constructor(...args) {
138013
138010
  super(...args);
@@ -138029,8 +138026,6 @@ let DropDownButtonLoadExcelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPAC
138029
138026
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tableType", _descriptor8, this);
138030
138027
 
138031
138028
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "combineType", _descriptor9, this);
138032
-
138033
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "combinatorType", _descriptor10, this);
138034
138029
  }
138035
138030
 
138036
138031
  }, (_descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "pathToTable", [_dec2], {
@@ -138078,11 +138073,6 @@ let DropDownButtonLoadExcelNode = (_dec = (0,_Serializer_SugarSerializer__WEBPAC
138078
138073
  enumerable: true,
138079
138074
  writable: true,
138080
138075
  initializer: null
138081
- }), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "combinatorType", [_dec11], {
138082
- configurable: true,
138083
- enumerable: true,
138084
- writable: true,
138085
- initializer: null
138086
138076
  })), _class2)) || _class);
138087
138077
 
138088
138078
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.297.0-upload-excel-button.3",
3
+ "version": "4.297.0-upload-excel-button.4",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,