@kontur.candy/generator 6.0.0 → 6.1.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.
- package/dist/index.js +15 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -98778,6 +98778,7 @@ class ExpertNoteConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
98778
98778
|
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98779
98779
|
const nodeBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("ExpertNote");
|
|
98780
98780
|
nodeBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
98781
|
+
nodeBuilder.prop(x => x.hideAttachButton).set(node.hideAttachButton);
|
|
98781
98782
|
nodeBuilder.createChild("ExpertNote", "ExpertNote.Name").appendChild(context.convertChildNodes(node.name.children));
|
|
98782
98783
|
nodeBuilder.createChild("ExpertNote", "ExpertNote.MessageBox").appendChild(this.renderChildren(this.convertChildren(context, node.messageBox.children)));
|
|
98783
98784
|
return nodeBuilder.buildConverterResult();
|
|
@@ -98826,7 +98827,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98826
98827
|
|
|
98827
98828
|
|
|
98828
98829
|
|
|
98829
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _class3, _class4, _descriptor2, _descriptor3, _dec6, _dec7, _class5, _class6, _descriptor4, _dec8, _dec9, _dec10, _dec11, _class7, _class8, _descriptor5, _descriptor6, _descriptor7;
|
|
98830
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _class3, _class4, _descriptor2, _descriptor3, _dec6, _dec7, _class5, _class6, _descriptor4, _dec8, _dec9, _dec10, _dec11, _dec12, _class7, _class8, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
98830
98831
|
|
|
98831
98832
|
|
|
98832
98833
|
|
|
@@ -98858,7 +98859,7 @@ let ExpertLinkNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
|
|
|
98858
98859
|
writable: true,
|
|
98859
98860
|
initializer: null
|
|
98860
98861
|
}), _class4)) || _class3);
|
|
98861
|
-
let MessageBoxNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("messagebox", `Сообщение в разделе "Формирование
|
|
98862
|
+
let MessageBoxNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("messagebox", `Сообщение в разделе "Формирование финансового анализа"`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(undefined, [ExpertLinkNode]), _dec6(_class5 = (_class6 = class MessageBoxNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
98862
98863
|
constructor(...args) {
|
|
98863
98864
|
super(...args);
|
|
98864
98865
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor4, this);
|
|
@@ -98869,24 +98870,30 @@ let MessageBoxNode = (_dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_M
|
|
|
98869
98870
|
writable: true,
|
|
98870
98871
|
initializer: null
|
|
98871
98872
|
}), _class6)) || _class5);
|
|
98872
|
-
let ExpertNoteNode = (_dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("expertnote", `Формирование
|
|
98873
|
+
let ExpertNoteNode = (_dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("expertnote", `Формирование анализа эксперта`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ExpertNote sync recursive .md$")), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_3__.ValidationInfoNode), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("hideAttachButton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `Скрыть кнопку "Прикрепить к отчету"`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("name", [NameNode]), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("messagebox", [MessageBoxNode]), _dec8(_class7 = (_class8 = class ExpertNoteNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
|
|
98873
98874
|
constructor(...args) {
|
|
98874
98875
|
super(...args);
|
|
98875
98876
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor5, this);
|
|
98876
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
98877
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
98877
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hideAttachButton", _descriptor6, this);
|
|
98878
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor7, this);
|
|
98879
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "messageBox", _descriptor8, this);
|
|
98878
98880
|
}
|
|
98879
98881
|
}, _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "validationInfo", [_dec9], {
|
|
98880
98882
|
configurable: true,
|
|
98881
98883
|
enumerable: true,
|
|
98882
98884
|
writable: true,
|
|
98883
98885
|
initializer: null
|
|
98884
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "
|
|
98886
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "hideAttachButton", [_dec10], {
|
|
98887
|
+
configurable: true,
|
|
98888
|
+
enumerable: true,
|
|
98889
|
+
writable: true,
|
|
98890
|
+
initializer: null
|
|
98891
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "name", [_dec11], {
|
|
98885
98892
|
configurable: true,
|
|
98886
98893
|
enumerable: true,
|
|
98887
98894
|
writable: true,
|
|
98888
98895
|
initializer: null
|
|
98889
|
-
}),
|
|
98896
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class8.prototype, "messageBox", [_dec12], {
|
|
98890
98897
|
configurable: true,
|
|
98891
98898
|
enumerable: true,
|
|
98892
98899
|
writable: true,
|
|
@@ -105593,7 +105600,7 @@ class FLangNormalizationRulesBuilder {
|
|
|
105593
105600
|
var _this$fetchFunctions$, _this$fetchFunctions$2;
|
|
105594
105601
|
const fetchFnText = (_this$fetchFunctions$ = (_this$fetchFunctions$2 = this.fetchFunctions.getFetchFunction(dataBinding.fetchfn + (fetchFunctionSuffix !== null && fetchFunctionSuffix !== void 0 ? fetchFunctionSuffix : ""))) === null || _this$fetchFunctions$2 === void 0 ? void 0 : _this$fetchFunctions$2.toString()) !== null && _this$fetchFunctions$ !== void 0 ? _this$fetchFunctions$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)();
|
|
105595
105602
|
const flangExpression = this.fetchFuncToFlangConverter.convert(`const x = ${fetchFnText}`);
|
|
105596
|
-
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NotEqExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.GetExternalInfoExpression("@settings/isReadOnly"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true")), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NotEqExpression(originalValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), sourceValueReference, flangExpression), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue)), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(originalValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue))), sourceSequenceType);
|
|
105603
|
+
return new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "value"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NotEqExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.GetExternalInfoExpression("@settings/isReadOnly"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression("true")), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(disabled ? flangExpression : new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NotEqExpression(originalValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), sourceValueReference, flangExpression), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue)), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullCoalesceExpression(originalValueReference, new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(defaultValue))), sourceSequenceType);
|
|
105597
105604
|
} catch (e) {
|
|
105598
105605
|
// eslint-disable-next-line no-console
|
|
105599
105606
|
console.error(`fetchfn = "${dataBinding.fetchfn}". Не удалось преобразовать fetch-функцию во FLANG-выражение!`);
|