@kontur.candy/generator 5.121.0-fixes-for-flang-generator.4 → 5.121.0-fixes-for-flang-generator.6
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 +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71351,7 +71351,8 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
71351
71351
|
}
|
|
71352
71352
|
const defaultValue = dataDeclaration.getDefaultValue(path);
|
|
71353
71353
|
const isMultiple = dataDeclaration.isNodeHasChildrenEntry(path);
|
|
71354
|
-
const
|
|
71354
|
+
const isPage = dataDeclaration.getPageId(path) != undefined;
|
|
71355
|
+
const optional = isPage ? dataDeclaration.isNodeOptional(path) : dataDeclaration.isNodeOptionalBySchemaOrSugar(path);
|
|
71355
71356
|
const node = getOrCreateNode(nodes, path);
|
|
71356
71357
|
(_node$properties2 = node.properties) !== null && _node$properties2 !== void 0 ? _node$properties2 : node.properties = {};
|
|
71357
71358
|
const props = node.properties;
|
|
@@ -71368,7 +71369,6 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
71368
71369
|
props.optional = optional;
|
|
71369
71370
|
props.type = dataDeclaration.getType(path);
|
|
71370
71371
|
props.disabled = dataDeclaration.isNodeHasDisabledEntry(path);
|
|
71371
|
-
const isPage = dataDeclaration.getPageId(path) != undefined;
|
|
71372
71372
|
if (isPage) {
|
|
71373
71373
|
props.isPage = isPage;
|
|
71374
71374
|
}
|
|
@@ -83262,6 +83262,10 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
83262
83262
|
result[`${attachmentSection.path}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__.AttachmentInfoPath.toLegacyPath()}`] = {
|
|
83263
83263
|
section: [attachmentSection.id]
|
|
83264
83264
|
};
|
|
83265
|
+
result[attachmentSection.path] = {
|
|
83266
|
+
section: [attachmentSection.id],
|
|
83267
|
+
pageId: attachmentSection.id
|
|
83268
|
+
};
|
|
83265
83269
|
});
|
|
83266
83270
|
return result;
|
|
83267
83271
|
}
|
|
@@ -84740,9 +84744,9 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
|
|
|
84740
84744
|
result.children = [{
|
|
84741
84745
|
model: true
|
|
84742
84746
|
}, node.optional ? [] : ["0"]];
|
|
84743
|
-
|
|
84744
|
-
|
|
84745
|
-
|
|
84747
|
+
}
|
|
84748
|
+
if (node.optional) {
|
|
84749
|
+
result.optional = [true];
|
|
84746
84750
|
}
|
|
84747
84751
|
const optionalFieldPath = node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_15__.OptionalSectionFilledFieldName).toLegacyPath();
|
|
84748
84752
|
const optionalFieldRequired = ((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false) && !((_node$multiple = node.multiple) !== null && _node$multiple !== void 0 ? _node$multiple : false);
|
package/package.json
CHANGED