@kontur.candy/generator 5.75.2 → 5.76.0-fix-instance-count.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 +78 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -45629,6 +45629,33 @@ let CombinatorType = /*#__PURE__*/function (CombinatorType) {
45629
45629
 
45630
45630
  /***/ }),
45631
45631
 
45632
+ /***/ "./Common/CommonConstants/DefaultServicesUrls.ts":
45633
+ /*!*******************************************************!*\
45634
+ !*** ./Common/CommonConstants/DefaultServicesUrls.ts ***!
45635
+ \*******************************************************/
45636
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45637
+
45638
+ "use strict";
45639
+ __webpack_require__.r(__webpack_exports__);
45640
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45641
+ /* harmony export */ DEFAULT_STAFF_SERVICE_URL: () => (/* binding */ DEFAULT_STAFF_SERVICE_URL),
45642
+ /* harmony export */ defaultServicesUrls: () => (/* binding */ defaultServicesUrls)
45643
+ /* harmony export */ });
45644
+ const DEFAULT_KEFORMS_URL = "";
45645
+ const DEFAULT_STAFF_SERVICE_URL = "https://api.kontur.ru/staff";
45646
+ const DEFAULT_PICKLIST_URL = "";
45647
+ const DEFAULT_NIDUS_URL = "";
45648
+ const DEFAULT_FSPRINTER_URL = "";
45649
+ const defaultServicesUrls = {
45650
+ keformsUrl: DEFAULT_KEFORMS_URL,
45651
+ staffServiceUrl: DEFAULT_STAFF_SERVICE_URL,
45652
+ picklistUrl: DEFAULT_PICKLIST_URL,
45653
+ nidusUrl: DEFAULT_NIDUS_URL,
45654
+ fsPrinterUrl: DEFAULT_FSPRINTER_URL
45655
+ };
45656
+
45657
+ /***/ }),
45658
+
45632
45659
  /***/ "./Common/CommonConstants/SectionNames.ts":
45633
45660
  /*!************************************************!*\
45634
45661
  !*** ./Common/CommonConstants/SectionNames.ts ***!
@@ -65786,6 +65813,11 @@ class AttachmentPathsGenerator {
65786
65813
  (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.getNodeClass)(sugarNode))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(`Converter for root node must be defined`);
65787
65814
  return Iterator.from(this.generateInternal(sugarNode)).map(x => x.toLegacyPath()).toArray();
65788
65815
  }
65816
+ generateWithGfvs(sugarNode) {
65817
+ var _getConverterByNodeCl2;
65818
+ (_getConverterByNodeCl2 = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.getNodeClass)(sugarNode))) !== null && _getConverterByNodeCl2 !== void 0 ? _getConverterByNodeCl2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(`Converter for root node must be defined`);
65819
+ return new Map(Iterator.from(this.generateWithGfvsInternal(sugarNode)).map(x => [x[0], x[1].toLegacyPath()]));
65820
+ }
65789
65821
  *generateInternal(sugarNode) {
65790
65822
  const converterType = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.getNodeClass)(sugarNode));
65791
65823
  if (converterType == undefined) {
@@ -65797,6 +65829,17 @@ class AttachmentPathsGenerator {
65797
65829
  yield* this.generateInternal(child);
65798
65830
  }
65799
65831
  }
65832
+ *generateWithGfvsInternal(sugarNode) {
65833
+ const converterType = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.getNodeClass)(sugarNode));
65834
+ if (converterType == undefined) {
65835
+ return;
65836
+ }
65837
+ const converter = new converterType(sugarNode);
65838
+ yield* converter.getAttachmentPathsWithGfvs();
65839
+ for (const child of converter.traverseChildren()) {
65840
+ yield* this.generateWithGfvsInternal(child);
65841
+ }
65842
+ }
65800
65843
  }
65801
65844
 
65802
65845
  /***/ }),
@@ -71339,6 +71382,10 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
71339
71382
  const attachmentPathsGenerator = new _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_27__.AttachmentPathsGenerator();
71340
71383
  const attachmentPaths = attachmentPathsGenerator.generate(sugarRoot);
71341
71384
  builder.addServerSideResource(`AttachmentPaths.json`, JSON.stringify(attachmentPaths));
71385
+ const attachmentPathsWithGfvs = attachmentPathsGenerator.generateWithGfvs(sugarRoot);
71386
+ if (attachmentPathsWithGfvs.size > 0) {
71387
+ builder.addServerSideResource(`AttachmentPathsWithGfvs.json`, JSON.stringify(Object.fromEntries(attachmentPathsWithGfvs)));
71388
+ }
71342
71389
  const validationFunctionsContent = validationGenerator.generate();
71343
71390
  builder.addResource("validationFunctions.js", validationFunctionsContent);
71344
71391
  const rngSchemaValidationConfigurator = validationGenerator.generateRngSchemaValidationConfigurator();
@@ -73934,7 +73981,7 @@ class FormulaExpressionToFlangExpressionConverter {
73934
73981
  return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule, "Count"), 0);
73935
73982
  }
73936
73983
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
73937
- return this.compiledInstanceCountExpression(prefix, target, expression.select);
73984
+ return this.compiledInstanceCountExpression(prefix, target, expression.select, addPrecalculationRule);
73938
73985
  }
73939
73986
  if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
73940
73987
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.LenExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.argument, prefix, target, addPrecalculationRule)));
@@ -74303,12 +74350,17 @@ class FormulaExpressionToFlangExpressionConverter {
74303
74350
  return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)(`Unknown ExpressionTypeProperty [${type}]`);
74304
74351
  }
74305
74352
  }
74306
- compiledInstanceCountExpression(prefix, target, selectPath) {
74353
+ compiledInstanceCountExpression(prefix, target, selectPath, addPrecalculationRule) {
74307
74354
  const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath).trimLastStarIfLastToken();
74308
74355
  const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
74309
74356
  if (!splitInfo.differentPath.isContainIteration()) {
74310
- const childrenExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.NullCoalesceExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ArrayLengthExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.DeserializeEnumerationExpression([(0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeStringValueReference)(adjustedSelectPath.toCurrentIteration().normalize(), "children")], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.BoolLiteralExpression(true))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.DecimalLiteralExpression(0));
74311
- return childrenExpression;
74357
+ const countOfChildTarget = adjustedSelectPath.joinWith("InstanceCount");
74358
+ const countOfChildTargetValueRef = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(countOfChildTarget, "value");
74359
+ const countOfChildExpression = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.NullCoalesceExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ArrayLengthExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.DeserializeEnumerationExpression([(0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeStringValueReference)(adjustedSelectPath.toCurrentIteration().normalize(), "children")], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.BoolLiteralExpression(true))), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.DecimalLiteralExpression(0)));
74360
+ const requiredStatement = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.SetStatement(countOfChildTargetValueRef, countOfChildExpression);
74361
+ addPrecalculationRule(requiredStatement);
74362
+ const resultExpression = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(countOfChildTarget.toCurrentIteration(), "value"));
74363
+ return resultExpression;
74312
74364
  } else {
74313
74365
  throw new Error(`Instance count with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
74314
74366
  }
@@ -79711,6 +79763,10 @@ class AttachmentFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
79711
79763
  const node = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__.AttachmentFormNode);
79712
79764
  yield (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(node.path).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.AttachmentInfoPath);
79713
79765
  }
79766
+ *getAttachmentPathsWithGfvs() {
79767
+ const node = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__.AttachmentFormNode);
79768
+ yield [node.gfv, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(node.path).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.AttachmentInfoPath)];
79769
+ }
79714
79770
  doBuildDataDeclaration(context) {
79715
79771
  return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
79716
79772
  }
@@ -95662,6 +95718,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
95662
95718
  markupBuilder.prop(x => x.placeholder).set(node.placeholder);
95663
95719
  markupBuilder.prop("data-tid").set(node.tid);
95664
95720
  markupBuilder.prop(x => x.disabled).set(node.disabled);
95721
+ markupBuilder.prop(x => x.showNegativeAsBrackets).set(node.showNegativeAsBrackets);
95665
95722
  markupBuilder.prop(x => x.withIgnoreAutoFlag).set(node.withIgnoreAutoFlag);
95666
95723
  if (node.callHelperOnChange) {
95667
95724
  markupBuilder.prop(x => x.callHelperOnChange).set(context.generateHelperFunctionExpression(node, "callHelperOnChange", node.callHelperOnChange));
@@ -95716,6 +95773,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
95716
95773
  markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
95717
95774
  markupBuilder.prop(x => x.hint).set(this.getConverterResultFromAttributeWithMarkup(context, node.hint));
95718
95775
  markupBuilder.prop(x => x.disabled).set(node.disabled);
95776
+ markupBuilder.prop(x => x.showNegativeAsBrackets).set(node.showNegativeAsBrackets);
95719
95777
  markupBuilder.prop(x => x.withIgnoreAutoFlag).set(node.withIgnoreAutoFlag);
95720
95778
  markupBuilder.prop(x => x.disabledPure).set(node.deprecatedDisabledForRpn);
95721
95779
  markupBuilder.prop(x => x.align).set(node.align);
@@ -95883,7 +95941,7 @@ __webpack_require__.r(__webpack_exports__);
95883
95941
 
95884
95942
 
95885
95943
 
95886
- var _dec, _dec2, _dec3, _dec4, _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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _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;
95944
+ var _dec, _dec2, _dec3, _dec4, _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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _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;
95887
95945
 
95888
95946
 
95889
95947
 
@@ -95945,7 +96003,7 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
95945
96003
  Отключает использование mask только для валидного по маске значения и при отсутствии ошибки/предупреждения в валидации.
95946
96004
  По умолчанию включен показ кривых значений после импорта и,
95947
96005
  после ручного исправления на правильное по маске и валидное значение, редактирование будет доступно уже только в пределах маски.
95948
- `), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("settings", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "'true': всегда первой будет применяться указанная fetchfn, а если она вернет undefined то тогда будет брать из модели - из фуфа/draftinfo (то, что придет с сервера). В противном случае fetchfn сработает только в том случае, когда бекенд ничего не прислал"), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("deprecated-disabled-for-rpn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, "Ширина поля"), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного скрытия контрола`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("left", "right"), "Выравнивание текста внутри поля ввода (`left` | `right`, default: `left`)"), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Всплывающая подсказка по авторасчету"), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("suffix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в правой части input-а`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в левой части input-а`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: с двумя знаками после запятой и пробелами между тысячами.`), _dec(_class = (_class2 = class InputNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
96006
+ `), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("settings", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "'true': всегда первой будет применяться указанная fetchfn, а если она вернет undefined то тогда будет брать из модели - из фуфа/draftinfo (то, что придет с сервера). В противном случае fetchfn сработает только в том случае, когда бекенд ничего не прислал"), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("deprecated-disabled-for-rpn", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Поле ввода становится заблокированным для редактирования"), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, "Ширина поля"), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("visible", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного скрытия контрола`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("align", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("left", "right"), "Выравнивание текста внутри поля ввода (`left` | `right`, default: `left`)"), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Всплывающая подсказка по авторасчету"), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("suffix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в правой части input-а`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.markupAttr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, `Текст или верстка отображаемая в левой части input-а`), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("currency", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При включении этого флага значение в поле отображается как денежное: с двумя знаками после запятой и пробелами между тысячами.`), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("showNegativeAsBrackets", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, "Отрицательные числа будут отображаться в скобках и без минуса (только визуально и только при потере фокуса)"), _dec(_class = (_class2 = class InputNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
95949
96007
  constructor(...args) {
95950
96008
  super(...args);
95951
96009
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor, this);
@@ -95996,6 +96054,7 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
95996
96054
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "help", _descriptor44, this);
95997
96055
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "helpNodes", _descriptor45, this);
95998
96056
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "currency", _descriptor46, this);
96057
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "showNegativeAsBrackets", _descriptor47, this);
95999
96058
  }
96000
96059
  getOwnPath() {
96001
96060
  return this.dataBinding.getOwnPath();
@@ -96233,6 +96292,11 @@ let InputNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
96233
96292
  enumerable: true,
96234
96293
  writable: true,
96235
96294
  initializer: null
96295
+ }), _descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "showNegativeAsBrackets", [_dec48], {
96296
+ configurable: true,
96297
+ enumerable: true,
96298
+ writable: true,
96299
+ initializer: null
96236
96300
  }), _class2)) || _class);
96237
96301
 
96238
96302
  /***/ }),
@@ -103039,6 +103103,9 @@ class SugarNodeConverterBase {
103039
103103
  *getAttachmentPaths() {
103040
103104
  // no paths by default
103041
103105
  }
103106
+ *getAttachmentPathsWithGfvs() {
103107
+ // no paths by default
103108
+ }
103042
103109
  buildSugarKCLangCalculations(buildContext, formSchemaRng) {
103043
103110
  const result = [];
103044
103111
  result.push(...this.doBuildKCLangValidations(buildContext, formSchemaRng));
@@ -104057,13 +104124,15 @@ __webpack_require__.r(__webpack_exports__);
104057
104124
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
104058
104125
  /* harmony export */ getSettings: () => (/* binding */ getSettings)
104059
104126
  /* harmony export */ });
104060
- /* harmony import */ var _getRootPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getRootPath */ "./Generator/src/generators/markupGenerator/getRootPath.ts");
104127
+ /* harmony import */ var _Common_CommonConstants_DefaultServicesUrls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/CommonConstants/DefaultServicesUrls */ "./Common/CommonConstants/DefaultServicesUrls.ts");
104128
+ /* harmony import */ var _getRootPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getRootPath */ "./Generator/src/generators/markupGenerator/getRootPath.ts");
104129
+
104061
104130
 
104062
104131
  function getSettings(sugarRoot, gfv, additionalSettings, formJsonSettings) {
104063
104132
  var _sugarRoot$isReadOnly;
104064
104133
  const settings = {
104065
- formRoot: (0,_getRootPath__WEBPACK_IMPORTED_MODULE_0__.getRootPath)(sugarRoot),
104066
- keformsUrl: "",
104134
+ formRoot: (0,_getRootPath__WEBPACK_IMPORTED_MODULE_1__.getRootPath)(sugarRoot),
104135
+ ..._Common_CommonConstants_DefaultServicesUrls__WEBPACK_IMPORTED_MODULE_0__.defaultServicesUrls,
104067
104136
  showFormContainer: true,
104068
104137
  embeddedLogEnabled: false,
104069
104138
  allowsend: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.75.2",
3
+ "version": "5.76.0-fix-instance-count.1",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,