@kontur.candy/generator 5.121.0-fixes-for-flang-generator.5 → 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 +5 -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
|
}
|
|
@@ -84744,9 +84744,9 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
|
|
|
84744
84744
|
result.children = [{
|
|
84745
84745
|
model: true
|
|
84746
84746
|
}, node.optional ? [] : ["0"]];
|
|
84747
|
-
|
|
84748
|
-
|
|
84749
|
-
|
|
84747
|
+
}
|
|
84748
|
+
if (node.optional) {
|
|
84749
|
+
result.optional = [true];
|
|
84750
84750
|
}
|
|
84751
84751
|
const optionalFieldPath = node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_15__.OptionalSectionFilledFieldName).toLegacyPath();
|
|
84752
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