@kontur.candy/generator 6.2.0-highlighting-diffs.0 → 6.2.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 +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -86598,7 +86598,7 @@ class NormativeHelpConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
86598
86598
|
if (node.commonId != undefined && node.commonId !== "") {
|
|
86599
86599
|
markupBuilder.prop(x => x.commonHelpId).set(node.commonId);
|
|
86600
86600
|
} else {
|
|
86601
|
-
markupBuilder.prop(x => x.helpCommonUrl).set(
|
|
86601
|
+
markupBuilder.prop(x => x.helpCommonUrl).set(node.commonUrl);
|
|
86602
86602
|
}
|
|
86603
86603
|
markupBuilder.prop(x => x.knd).set(node.knd);
|
|
86604
86604
|
return markupBuilder.buildConverterResult();
|
|
@@ -88935,7 +88935,10 @@ class SimpleTableColumnConverter extends _MultiControls_Column_ColumnConverter__
|
|
|
88935
88935
|
doBuildDataDeclaration(context) {
|
|
88936
88936
|
const node = this.getCurrentNodeAs(_SimpleTableNode__WEBPACK_IMPORTED_MODULE_1__.SimpleTableColumnNode);
|
|
88937
88937
|
if (node.multiple) {
|
|
88938
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children(false)]]), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node), context.maxOccurs(node.getFullPath(), node.maxOccurs)
|
|
88938
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children(false)]]), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node), context.maxOccurs(node.getFullPath(), node.maxOccurs), context.addSpecialFieldsEntry(node, {
|
|
88939
|
+
optional: false,
|
|
88940
|
+
disabled: node.disabled
|
|
88941
|
+
}));
|
|
88939
88942
|
} else {
|
|
88940
88943
|
return context.addVisibilityPathDeclEntryNew(node);
|
|
88941
88944
|
}
|
|
@@ -91351,7 +91354,10 @@ class CrossfitTableColumnConverter extends _Column_ColumnConverter__WEBPACK_IMPO
|
|
|
91351
91354
|
doBuildDataDeclaration(context) {
|
|
91352
91355
|
const node = this.getCurrentNodeAs(_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_4__.CrossfitTableColumnNode);
|
|
91353
91356
|
if (node.multiple) {
|
|
91354
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children(false)]]), context.addPathSectionDeclarationEntry(node), context.maxOccurs(node.getFullPath(), node.maxOccurs)
|
|
91357
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children(false)]]), context.addPathSectionDeclarationEntry(node), context.maxOccurs(node.getFullPath(), node.maxOccurs), context.addSpecialFieldsEntry(node, {
|
|
91358
|
+
optional: false,
|
|
91359
|
+
disabled: node.disabled
|
|
91360
|
+
}));
|
|
91355
91361
|
} else {
|
|
91356
91362
|
return context.mergeDataDeclaration(_DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection, node.dataScope.path && context.addPathSectionDeclarationEntry(node));
|
|
91357
91363
|
}
|
|
@@ -105601,7 +105607,7 @@ class FLangNormalizationRulesBuilder {
|
|
|
105601
105607
|
var _this$fetchFunctions$, _this$fetchFunctions$2;
|
|
105602
105608
|
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)();
|
|
105603
105609
|
const flangExpression = this.fetchFuncToFlangConverter.convert(`const x = ${fetchFnText}`);
|
|
105604
|
-
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);
|
|
105610
|
+
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);
|
|
105605
105611
|
} catch (e) {
|
|
105606
105612
|
// eslint-disable-next-line no-console
|
|
105607
105613
|
console.error(`fetchfn = "${dataBinding.fetchfn}". Не удалось преобразовать fetch-функцию во FLANG-выражение!`);
|