@kontur.candy/generator 6.26.0 → 6.27.0-persons-api-url-fix.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 +14 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -108701,15 +108701,13 @@ const DEFAULT_PICKLIST_URL = "";
108701
108701
  const DEFAULT_NIDUS_URL = "";
108702
108702
  const DEFAULT_FSPRINTER_URL = "";
108703
108703
  const DEFAULT_CONTRACTORS_URL = "";
108704
- const DEFAULT_PERSONS_URL = "";
108705
108704
  const defaultServicesUrls = {
108706
108705
  keformsUrl: DEFAULT_KEFORMS_URL,
108707
108706
  staffServiceUrl: DEFAULT_STAFF_SERVICE_URL,
108708
108707
  picklistUrl: DEFAULT_PICKLIST_URL,
108709
108708
  nidusUrl: DEFAULT_NIDUS_URL,
108710
108709
  fsPrinterUrl: DEFAULT_FSPRINTER_URL,
108711
- contractorsApiUrl: DEFAULT_CONTRACTORS_URL,
108712
- personsApiUrl: DEFAULT_PERSONS_URL
108710
+ contractorsApiUrl: DEFAULT_CONTRACTORS_URL
108713
108711
  };
108714
108712
 
108715
108713
  /***/ }),
@@ -109014,6 +109012,7 @@ __webpack_require__.r(__webpack_exports__);
109014
109012
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
109015
109013
  /* harmony export */ clamp: () => (/* binding */ clamp),
109016
109014
  /* harmony export */ clampUInt: () => (/* binding */ clampUInt),
109015
+ /* harmony export */ inRange: () => (/* binding */ inRange),
109017
109016
  /* harmony export */ sign: () => (/* binding */ sign)
109018
109017
  /* harmony export */ });
109019
109018
  function clamp(value, min, max) {
@@ -109039,6 +109038,9 @@ function sign(value) {
109039
109038
  }
109040
109039
  return 0;
109041
109040
  }
109041
+ function inRange(value, min, max) {
109042
+ return value >= min && value <= max;
109043
+ }
109042
109044
 
109043
109045
  /***/ }),
109044
109046
 
@@ -110738,6 +110740,7 @@ __webpack_require__.r(__webpack_exports__);
110738
110740
  /* harmony export */ arrayHasLength: () => (/* binding */ arrayHasLength),
110739
110741
  /* harmony export */ arrayIsNotEmpty: () => (/* binding */ arrayIsNotEmpty),
110740
110742
  /* harmony export */ assertIs: () => (/* binding */ assertIs),
110743
+ /* harmony export */ castToError: () => (/* binding */ castToError),
110741
110744
  /* harmony export */ ensureAndGetString: () => (/* binding */ ensureAndGetString),
110742
110745
  /* harmony export */ ensureArrayHasLength: () => (/* binding */ ensureArrayHasLength),
110743
110746
  /* harmony export */ ensureArrayIsNotEmpty: () => (/* binding */ ensureArrayIsNotEmpty),
@@ -110771,6 +110774,9 @@ function stringifyUnknownError(error) {
110771
110774
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return
110772
110775
  return typeof error === "object" && (error === null || error === void 0 ? void 0 : error["message"]);
110773
110776
  }
110777
+ function castToError(unknown) {
110778
+ return unknown instanceof Error ? unknown : new Error(String(unknown));
110779
+ }
110774
110780
  function ensureNotNullOrUndefined(input, message) {
110775
110781
  if (!isNotNullOrUndefined(input)) {
110776
110782
  throw new Error(message !== null && message !== void 0 ? message : `Value must be defined`);
@@ -141271,11 +141277,11 @@ class ConverterResult {
141271
141277
  const contextPath = context.dirName;
141272
141278
  const dependencyFilesWithContent = this.getDependencies(ctxName).map(dependency => dependency.toFile()).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isNotNullOrUndefined);
141273
141279
  if (context.isBase) {
141274
- builder.addComponent(`${contextPath}/index.js`, `export default from './${ctxName}'\n`, true);
141280
+ builder.addComponent(`${contextPath}/index.js`, `export default from './${ctxName}'\n`);
141275
141281
  }
141276
141282
  for (const dependencyFile of dependencyFilesWithContent) {
141277
141283
  const dependencyFilePath = `${contextPath}/${dependencyFile.getName()}`;
141278
- builder.addComponent(dependencyFilePath, dependencyFile.getContent(), true);
141284
+ builder.addComponent(dependencyFilePath, dependencyFile.getContent());
141279
141285
  }
141280
141286
  }
141281
141287
  setRenderBody(body = "") {
@@ -169087,7 +169093,7 @@ class MarkupGenerator {
169087
169093
  const contextName = context.name;
169088
169094
  converterResult.getDependenciesContent(contextName, builder);
169089
169095
  const converterResultJsx = _ConverterResults_ConverterResultJsxGenerator__WEBPACK_IMPORTED_MODULE_0__.ConverterResultJsxGenerator.generateJsx(contextName, converterResult, builder);
169090
- builder.addComponent(`${context.dirName}/${contextName}.jsx`, unescape(converterResultJsx.replace(/(\\)(u[\dA-Fa-f]{4})/g, "%$2")), false);
169096
+ builder.addComponent(`${context.dirName}/${contextName}.jsx`, unescape(converterResultJsx.replace(/(\\)(u[\dA-Fa-f]{4})/g, "%$2")));
169091
169097
  }
169092
169098
  }
169093
169099
  }
@@ -356235,9 +356241,10 @@ __webpack_require__.r(__webpack_exports__);
356235
356241
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
356236
356242
  /* harmony export */ getAllDependencies: () => (/* reexport safe */ _generators_ReadFormSources__WEBPACK_IMPORTED_MODULE_8__.getAllDependencies),
356237
356243
  /* harmony export */ getAllDependenciesHash: () => (/* reexport safe */ _generators_ReadFormSources__WEBPACK_IMPORTED_MODULE_8__.getAllDependenciesHash),
356244
+ /* harmony export */ getDictionary: () => (/* reexport safe */ _generators_localization__WEBPACK_IMPORTED_MODULE_6__.getDictionary),
356238
356245
  /* harmony export */ getDocumentation: () => (/* reexport safe */ _generators_getDocumentation__WEBPACK_IMPORTED_MODULE_5__.getDocumentation),
356246
+ /* harmony export */ getLocalizedSugar: () => (/* reexport safe */ _generators_localization__WEBPACK_IMPORTED_MODULE_6__.getLocalizedSugar),
356239
356247
  /* harmony export */ getSugarTexts: () => (/* reexport safe */ _common_SugarExtractor_GetSugarTexts__WEBPACK_IMPORTED_MODULE_9__.getSugarTexts),
356240
- /* harmony export */ localization: () => (/* reexport module object */ _generators_localization__WEBPACK_IMPORTED_MODULE_6__),
356241
356248
  /* harmony export */ processSugar: () => (/* reexport safe */ _generators_ProcessFormSources__WEBPACK_IMPORTED_MODULE_7__.processSugar),
356242
356249
  /* harmony export */ readSources: () => (/* reexport safe */ _generators_ReadFormSources__WEBPACK_IMPORTED_MODULE_8__.readFormSources)
356243
356250
  /* harmony export */ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "6.26.0",
3
+ "version": "6.27.0-persons-api-url-fix.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,