@kontur.candy/generator 6.25.0-test-fs-8992-progress-fix.4 → 6.26.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 +13 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -108701,13 +108701,15 @@ 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 = "";
108704
108705
  const defaultServicesUrls = {
108705
108706
  keformsUrl: DEFAULT_KEFORMS_URL,
108706
108707
  staffServiceUrl: DEFAULT_STAFF_SERVICE_URL,
108707
108708
  picklistUrl: DEFAULT_PICKLIST_URL,
108708
108709
  nidusUrl: DEFAULT_NIDUS_URL,
108709
108710
  fsPrinterUrl: DEFAULT_FSPRINTER_URL,
108710
- contractorsApiUrl: DEFAULT_CONTRACTORS_URL
108711
+ contractorsApiUrl: DEFAULT_CONTRACTORS_URL,
108712
+ personsApiUrl: DEFAULT_PERSONS_URL
108711
108713
  };
108712
108714
 
108713
108715
  /***/ }),
@@ -109600,7 +109602,13 @@ class KCLangRuntimeUtils {
109600
109602
  if (pattern == undefined || value == undefined || replacement == undefined || typeof value !== "string") {
109601
109603
  return undefined;
109602
109604
  }
109603
- return value.replace(new RegExp(pattern, flags), replacement);
109605
+ for (const flag of flags !== null && flags !== void 0 ? flags : "") {
109606
+ if (!"ims".includes(flag)) {
109607
+ throw new Error(`Unknown regex flag: ${flag}`);
109608
+ }
109609
+ }
109610
+ const effectiveFlags = flags !== null && flags !== void 0 && flags.includes("g") ? flags : (flags !== null && flags !== void 0 ? flags : "") + "g";
109611
+ return value.replace(new RegExp(pattern, effectiveFlags), replacement);
109604
109612
  }
109605
109613
  oneof(values, value) {
109606
109614
  if (values == undefined) {
@@ -138549,7 +138557,7 @@ class KCLangExpressionToJsExpressionConverter extends _common_KCLang_CodeDom_KCL
138549
138557
  const keyAsStringConst = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_11__.safeCast)(expression.key, _common_KCLang_CodeDom_StringConstExpression__WEBPACK_IMPORTED_MODULE_9__.StringConstExpression);
138550
138558
  const dependencyKey = keyAsStringConst != undefined ? keyAsStringConst.value : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)("visitGetExternalInfoFunctionalCall: Supported only constant value for key");
138551
138559
  context.addDep(new _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_6__.ExternalInfoDependency(dependencyKey));
138552
- return this.gcf(x => x.getProperty, `"${dependencyKey.replace(/^\@/, "")}"`, `() => undefined`);
138560
+ return this.gcf(x => x.getProperty, `"${dependencyKey.replace(/^\@/, "")}"`);
138553
138561
  }
138554
138562
  visitGetSumByKeysFunctionCall(_expression, _context) {
138555
138563
  throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_4__.NotSupportedError("GetSumByKeysFunctionCall is not supported");
@@ -171827,7 +171835,8 @@ function getSettings(sugarRoot, gfv, additionalSettings, formJsonSettings) {
171827
171835
  useServerSideCalculations: formJsonSettings === null || formJsonSettings === void 0 ? void 0 : formJsonSettings.useServerSideCalculations,
171828
171836
  disableFlangRulesForEnableAutoFieldFeature: formJsonSettings === null || formJsonSettings === void 0 ? void 0 : formJsonSettings.disableFlangRulesForEnableAutoFieldFeature,
171829
171837
  enableAutocalcsInReadOnly: formJsonSettings === null || formJsonSettings === void 0 ? void 0 : formJsonSettings.enableAutocalcsInReadOnly,
171830
- showErrorsCountInPanel: formJsonSettings === null || formJsonSettings === void 0 ? void 0 : formJsonSettings.showErrorsCountInPanel
171838
+ showErrorsCountInPanel: formJsonSettings === null || formJsonSettings === void 0 ? void 0 : formJsonSettings.showErrorsCountInPanel,
171839
+ inventoryAttachment: formJsonSettings === null || formJsonSettings === void 0 ? void 0 : formJsonSettings.inventoryAttachment
171831
171840
  };
171832
171841
  return `module.exports = ${JSON.stringify(settings, undefined, 2)}`;
171833
171842
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "6.25.0-test-fs-8992-progress-fix.4",
3
+ "version": "6.26.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,