@kontur.candy/generator 5.118.0 → 5.118.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.
- package/dist/index.js +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62714,6 +62714,7 @@ class FormSchemaRng {
|
|
|
62714
62714
|
return currentElement;
|
|
62715
62715
|
}
|
|
62716
62716
|
getDependenciesFromSchema(bindingPath) {
|
|
62717
|
+
var _endOptionalElement;
|
|
62717
62718
|
let currentElement;
|
|
62718
62719
|
let endOptionalElement = undefined;
|
|
62719
62720
|
for (const part of bindingPath.getPathParts()) {
|
|
@@ -62750,7 +62751,7 @@ class FormSchemaRng {
|
|
|
62750
62751
|
optional: true
|
|
62751
62752
|
};
|
|
62752
62753
|
}
|
|
62753
|
-
if (endOptionalElement == undefined || endOptionalElement instanceof FormSchemaRngElement && endOptionalElement.multiple === true) {
|
|
62754
|
+
if (endOptionalElement == undefined || endOptionalElement instanceof FormSchemaRngElement && ((_endOptionalElement = endOptionalElement) === null || _endOptionalElement === void 0 ? void 0 : _endOptionalElement.multiple) === true) {
|
|
62754
62755
|
return {
|
|
62755
62756
|
dependencies: [],
|
|
62756
62757
|
hasOptionalParent: false,
|
|
@@ -62761,7 +62762,7 @@ class FormSchemaRng {
|
|
|
62761
62762
|
const deps = children.map(x => this.getPath(x));
|
|
62762
62763
|
return {
|
|
62763
62764
|
dependencies: deps,
|
|
62764
|
-
hasOptionalParent:
|
|
62765
|
+
hasOptionalParent: endOptionalElement != undefined,
|
|
62765
62766
|
optional: false
|
|
62766
62767
|
};
|
|
62767
62768
|
}
|
|
@@ -105252,7 +105253,11 @@ class KCLangCalculationsBuildContext {
|
|
|
105252
105253
|
getFirstAcceptedParent(schemaNode) {
|
|
105253
105254
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
105254
105255
|
while (parentNode != undefined) {
|
|
105255
|
-
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement
|
|
105256
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement) {
|
|
105257
|
+
var _parentNode$multiple;
|
|
105258
|
+
if ((_parentNode$multiple = parentNode.multiple) !== null && _parentNode$multiple !== void 0 ? _parentNode$multiple : false) {
|
|
105259
|
+
return parentNode;
|
|
105260
|
+
}
|
|
105256
105261
|
if (parentNode.isOptional()) {
|
|
105257
105262
|
return parentNode;
|
|
105258
105263
|
}
|