@kontur.candy/generator 5.128.0-highlighting-diffs.0 → 5.128.0-reactui5.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 +163 -62
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71358,6 +71358,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71358
71358
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataDeclarationGenerator/DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
|
|
71359
71359
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
71360
71360
|
/* harmony import */ var _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/AbsoluteModelPathSet */ "./Common/ModelPath/Set/AbsoluteModelPathSet.ts");
|
|
71361
|
+
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
71362
|
+
|
|
71361
71363
|
|
|
71362
71364
|
|
|
71363
71365
|
|
|
@@ -71413,7 +71415,9 @@ function buildFieldsConfiguration(path, dataDeclaration) {
|
|
|
71413
71415
|
function buildExtendedSchemaInfo(dataDeclaration) {
|
|
71414
71416
|
const singleSectionsSet = _Common_ModelPath_Set_AbsoluteModelPathSet__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelPathSet.from(dataDeclaration.getAllSingleSections().map(x => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromMask)(x.path, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)));
|
|
71415
71417
|
const nodes = new Map();
|
|
71416
|
-
|
|
71418
|
+
const filteredPaths = [(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.OptionalSectionFilledFieldName]), (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([_Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__.OptionalElementsExistenceFieldName])];
|
|
71419
|
+
const pathToProcess = Iterator.from(dataDeclaration.getAllPaths()).filter(path => !filteredPaths.some(fp => path.endsWith(fp)));
|
|
71420
|
+
for (const path of pathToProcess) {
|
|
71417
71421
|
if (path.isEmpty() || path.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each]))) {
|
|
71418
71422
|
continue;
|
|
71419
71423
|
}
|
|
@@ -71438,7 +71442,7 @@ function buildExtendedSchemaInfo(dataDeclaration) {
|
|
|
71438
71442
|
props.type = dataDeclaration.getType(path);
|
|
71439
71443
|
props.disabled = dataDeclaration.isNodeHasDisabledEntry(path);
|
|
71440
71444
|
props.isPage = isPage || undefined;
|
|
71441
|
-
props.isForceFilledOptional = isPage && isMultiple && singleSectionsSet.has(path) || undefined;
|
|
71445
|
+
props.isForceFilledOptional = props.isFilledOptionalRequired = isPage && optional && (isMultiple && singleSectionsSet.has(path) || !isMultiple) || undefined;
|
|
71442
71446
|
props.fields = buildFieldsConfiguration(path, dataDeclaration);
|
|
71443
71447
|
}
|
|
71444
71448
|
return {
|
|
@@ -80514,7 +80518,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80514
80518
|
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
80515
80519
|
|
|
80516
80520
|
|
|
80517
|
-
let TooltipSettingsNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixinNode)(), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tooltip", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Текст в тултипе.`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tooltipPosition", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(..._Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_4__.allPopupPositions), `Позиция тултипа. По умолчанию \"top left\". Возможные позиции: ${_Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_4__.allPopupPositions.join(", ")}`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tooltipWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ""), _dec(_class = (_class2 = class TooltipSettingsNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
80521
|
+
let TooltipSettingsNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixinNode)(), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tooltip", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Текст в тултипе.`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tooltipPosition", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum(..._Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_4__.allPopupPositions).default("top left"), `Позиция тултипа. По умолчанию \"top left\". Возможные позиции: ${_Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_4__.allPopupPositions.join(", ")}`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tooltipWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ""), _dec(_class = (_class2 = class TooltipSettingsNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
80518
80522
|
constructor(...args) {
|
|
80519
80523
|
super(...args);
|
|
80520
80524
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltip", _descriptor, this);
|
|
@@ -88709,6 +88713,15 @@ class SimpleTableColumnConverter extends _MultiControls_Column_ColumnConverter__
|
|
|
88709
88713
|
static getAcceptNodeClass() {
|
|
88710
88714
|
return _SimpleTableNode__WEBPACK_IMPORTED_MODULE_1__.SimpleTableColumnNode;
|
|
88711
88715
|
}
|
|
88716
|
+
*doBuildNormalizeRules(builder) {
|
|
88717
|
+
const node = this.getCurrentNodeAs(_SimpleTableNode__WEBPACK_IMPORTED_MODULE_1__.SimpleTableColumnNode);
|
|
88718
|
+
if (node.dataScope.path != undefined && node.multiple) {
|
|
88719
|
+
yield* builder.childrenInitializer(node, false);
|
|
88720
|
+
yield* builder.specialFieldsInitializer(node, {
|
|
88721
|
+
disabled: undefined
|
|
88722
|
+
});
|
|
88723
|
+
}
|
|
88724
|
+
}
|
|
88712
88725
|
doBuildDataDeclaration(context) {
|
|
88713
88726
|
const node = this.getCurrentNodeAs(_SimpleTableNode__WEBPACK_IMPORTED_MODULE_1__.SimpleTableColumnNode);
|
|
88714
88727
|
if (node.multiple) {
|
|
@@ -90371,7 +90384,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90371
90384
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
90372
90385
|
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
90373
90386
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
90374
|
-
/* harmony import */ var
|
|
90387
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
90388
|
+
/* harmony import */ var _AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./AddRowButtonNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AddRowButton/AddRowButtonNode.ts");
|
|
90389
|
+
|
|
90375
90390
|
|
|
90376
90391
|
|
|
90377
90392
|
|
|
@@ -90385,10 +90400,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90385
90400
|
|
|
90386
90401
|
class AddRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
90387
90402
|
static getAcceptNodeClass() {
|
|
90388
|
-
return
|
|
90403
|
+
return _AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode;
|
|
90389
90404
|
}
|
|
90390
90405
|
doBuildNodeValidations(validationGenerator) {
|
|
90391
|
-
const node = this.getCurrentNodeAs(
|
|
90406
|
+
const node = this.getCurrentNodeAs(_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode);
|
|
90392
90407
|
const {
|
|
90393
90408
|
validationPath
|
|
90394
90409
|
} = this.getNodeBindingAndValidationPaths(node);
|
|
@@ -90400,20 +90415,36 @@ class AddRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
90400
90415
|
fakeNode.children = [];
|
|
90401
90416
|
validationGenerator.processValidations(validationPath.toLegacyPath(), node.validationInfo.optional, fakeNode, undefined, node.validationInfo.emptydescription, undefined);
|
|
90402
90417
|
}
|
|
90418
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
90419
|
+
const node = this.getCurrentNodeAs(_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode);
|
|
90420
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
90421
|
+
|
|
90422
|
+
// eslint-disable-next-line no-warning-comments
|
|
90423
|
+
// TODO(2026-02-01): Необходимо разобраться с тем, что тут конфликтят свойства в type. Подробности в задаче https://yt.skbkontur.ru/issue/FS-9234
|
|
90424
|
+
const fakeNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_8__.TypeNode();
|
|
90425
|
+
fakeNode.base = "string";
|
|
90426
|
+
fakeNode.children = [];
|
|
90427
|
+
const typeNode = fakeNode;
|
|
90428
|
+
const {
|
|
90429
|
+
validationPath
|
|
90430
|
+
} = this.getNodeBindingAndValidationPaths(node);
|
|
90431
|
+
if ((0,util__WEBPACK_IMPORTED_MODULE_0__.isNullOrUndefined)(validationPath) || (0,util__WEBPACK_IMPORTED_MODULE_0__.isNullOrUndefined)(node.validationPath)) {
|
|
90432
|
+
return;
|
|
90433
|
+
}
|
|
90434
|
+
const targetPath = node.getFullPathForChildren().joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_10__.createRelativeFromMask)(node.validationPath, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_10__.PathTokens.each));
|
|
90435
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
90436
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
90437
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
90438
|
+
return;
|
|
90439
|
+
}
|
|
90440
|
+
yield* buildContext.buildBasicValidations(validationPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
90441
|
+
}
|
|
90403
90442
|
doBuildDataDeclaration(context) {
|
|
90404
|
-
const node = this.getCurrentNodeAs(
|
|
90443
|
+
const node = this.getCurrentNodeAs(_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode);
|
|
90405
90444
|
const pathDeclarations = [];
|
|
90406
90445
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_9__.isNotNullOrUndefined)(node.maxOccurs) && /^\d+$/.test(node.maxOccurs)) {
|
|
90407
90446
|
pathDeclarations.push(context.maxOccurs(node.getFullPath(), node.maxOccurs));
|
|
90408
90447
|
}
|
|
90409
|
-
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_9__.isNotNullOrEmpty)(node.validationPath)) {
|
|
90410
|
-
const declEntry = {};
|
|
90411
|
-
declEntry["value"] = context.initSequenceFactory.setValueUnconditionally("");
|
|
90412
|
-
const validationPath = node.getFullPath().getParentPath().joinWith(node.validationPath).normalize().toLegacyPath();
|
|
90413
|
-
pathDeclarations.push({
|
|
90414
|
-
[validationPath]: declEntry
|
|
90415
|
-
});
|
|
90416
|
-
}
|
|
90417
90448
|
return pathDeclarations.length > 0 ? context.mergeDataDeclaration(...pathDeclarations) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection;
|
|
90418
90449
|
}
|
|
90419
90450
|
buildChildrenDataDeclaration() {
|
|
@@ -90423,7 +90454,7 @@ class AddRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
90423
90454
|
// no children
|
|
90424
90455
|
}
|
|
90425
90456
|
doConvert(context) {
|
|
90426
|
-
const node = this.getCurrentNodeAs(
|
|
90457
|
+
const node = this.getCurrentNodeAs(_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode);
|
|
90427
90458
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("AddRowButton");
|
|
90428
90459
|
const {
|
|
90429
90460
|
bindingPath,
|
|
@@ -93296,10 +93327,22 @@ class MultipleConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__
|
|
|
93296
93327
|
static getAcceptNodeClass() {
|
|
93297
93328
|
return _MultipleNode__WEBPACK_IMPORTED_MODULE_3__.MultipleNode;
|
|
93298
93329
|
}
|
|
93330
|
+
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
93331
|
+
const node = this.getCurrentNodeAs(_MultipleNode__WEBPACK_IMPORTED_MODULE_3__.MultipleNode);
|
|
93332
|
+
if (node.path != undefined) {
|
|
93333
|
+
var _ref;
|
|
93334
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
93335
|
+
const isOptional = (_ref = node.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.optional) !== null && _ref !== void 0 ? _ref : false;
|
|
93336
|
+
yield* builder.childrenInitializer(node, isOptional);
|
|
93337
|
+
yield* builder.specialFieldsInitializer(node, {
|
|
93338
|
+
disabled: undefined
|
|
93339
|
+
});
|
|
93340
|
+
}
|
|
93341
|
+
}
|
|
93299
93342
|
doBuildDataDeclaration(context) {
|
|
93300
|
-
var
|
|
93343
|
+
var _ref2, _node$optional;
|
|
93301
93344
|
const node = this.getCurrentNodeAs(_MultipleNode__WEBPACK_IMPORTED_MODULE_3__.MultipleNode);
|
|
93302
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((
|
|
93345
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_ref2 = (_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : context.isMultipleNodeOptionalFromScheme(node.getFullPath())) !== null && _ref2 !== void 0 ? _ref2 : false)]]), context.maxOccurs(node.getFullPath(), node.maxOccurs), context.addSpecialFieldsEntry(node, {
|
|
93303
93346
|
optional: node.optional
|
|
93304
93347
|
}), context.addPathSectionDeclarationEntry(node));
|
|
93305
93348
|
}
|
|
@@ -98414,44 +98457,58 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98414
98457
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
98415
98458
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
98416
98459
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
98417
|
-
/* harmony import */ var
|
|
98460
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
98461
|
+
/* harmony import */ var _ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ExpertNoteNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ExpertNote/ExpertNoteNode.ts");
|
|
98462
|
+
|
|
98418
98463
|
|
|
98419
98464
|
|
|
98420
98465
|
|
|
98421
98466
|
|
|
98422
98467
|
class ExpertNoteConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
98423
98468
|
static getAcceptNodeClass() {
|
|
98424
|
-
return
|
|
98469
|
+
return _ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode;
|
|
98425
98470
|
}
|
|
98426
98471
|
doBuildNodeValidations(validationGenerator) {
|
|
98427
|
-
const node = this.getCurrentNodeAs(
|
|
98472
|
+
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98428
98473
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
98429
98474
|
}
|
|
98475
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
98476
|
+
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98477
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
98478
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each);
|
|
98479
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
98480
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
98481
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
98482
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
98483
|
+
return;
|
|
98484
|
+
}
|
|
98485
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
98486
|
+
}
|
|
98430
98487
|
doBuildDataDeclaration(context) {
|
|
98431
|
-
const node = this.getCurrentNodeAs(
|
|
98488
|
+
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98432
98489
|
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
98433
98490
|
}
|
|
98434
98491
|
buildChildrenDataDeclaration(context) {
|
|
98435
|
-
const node = this.getCurrentNodeAs(
|
|
98492
|
+
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98436
98493
|
return context.processChildrenDataDeclaration([...node.name.children, ...node.messageBox.children], x => {
|
|
98437
|
-
if (x instanceof
|
|
98494
|
+
if (x instanceof _ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertLinkNode) {
|
|
98438
98495
|
return context.processChildrenDataDeclaration(x.children);
|
|
98439
98496
|
}
|
|
98440
98497
|
return undefined;
|
|
98441
98498
|
});
|
|
98442
98499
|
}
|
|
98443
98500
|
*doTraverseChildren() {
|
|
98444
|
-
const node = this.getCurrentNodeAs(
|
|
98501
|
+
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98445
98502
|
yield* node.name.children;
|
|
98446
98503
|
for (const child of node.messageBox.children) {
|
|
98447
|
-
if (child instanceof
|
|
98504
|
+
if (child instanceof _ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertLinkNode) {
|
|
98448
98505
|
yield* child.children;
|
|
98449
98506
|
}
|
|
98450
98507
|
yield child;
|
|
98451
98508
|
}
|
|
98452
98509
|
}
|
|
98453
98510
|
doConvert(context) {
|
|
98454
|
-
const node = this.getCurrentNodeAs(
|
|
98511
|
+
const node = this.getCurrentNodeAs(_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertNoteNode);
|
|
98455
98512
|
const nodeBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("ExpertNote");
|
|
98456
98513
|
nodeBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
98457
98514
|
nodeBuilder.createChild("ExpertNote", "ExpertNote.Name").appendChild(context.convertChildNodes(node.name.children));
|
|
@@ -98463,7 +98520,7 @@ class ExpertNoteConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
98463
98520
|
}
|
|
98464
98521
|
convertChildren(context, nodes) {
|
|
98465
98522
|
return nodes.map(node => {
|
|
98466
|
-
if (node instanceof
|
|
98523
|
+
if (node instanceof _ExpertNoteNode__WEBPACK_IMPORTED_MODULE_4__.ExpertLinkNode) {
|
|
98467
98524
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("ExpertNote", "ExpertNote.Link");
|
|
98468
98525
|
markupBuilder.prop(x => x.unitId).set(node.unitid);
|
|
98469
98526
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
@@ -98609,15 +98666,20 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98609
98666
|
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98610
98667
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
98611
98668
|
}
|
|
98669
|
+
doBuildNormalizeRules(builder) {
|
|
98670
|
+
var _node$fiasfield$;
|
|
98671
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98672
|
+
return ((_node$fiasfield$ = node.fiasfield[0]) === null || _node$fiasfield$ === void 0 ? void 0 : _node$fiasfield$.path) != undefined ? [builder.valueInitializer(node, node.dataBinding, false, node.fiasfield[0].path, undefined, "")] : [];
|
|
98673
|
+
}
|
|
98612
98674
|
doBuildDataDeclaration(context) {
|
|
98613
98675
|
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98614
98676
|
const PathDeclarations = [];
|
|
98615
98677
|
if (node.fiasfield && node.fiasfield.length > 0) {
|
|
98616
|
-
var _node$fiasfield
|
|
98678
|
+
var _node$fiasfield$2;
|
|
98617
98679
|
node.fiasfield.forEach(field => {
|
|
98618
98680
|
PathDeclarations.push(context.addChildPathSectionDeclarationEntry(node, field.path, node.dataBinding.requisite));
|
|
98619
98681
|
});
|
|
98620
|
-
if ((_node$fiasfield$ = node.fiasfield[0]) !== null && _node$fiasfield$ !== void 0 && _node$fiasfield
|
|
98682
|
+
if ((_node$fiasfield$2 = node.fiasfield[0]) !== null && _node$fiasfield$2 !== void 0 && _node$fiasfield$2.path) {
|
|
98621
98683
|
const declEntry = {};
|
|
98622
98684
|
declEntry["value"] = context.initSequenceFactory.takeFromModelOrDefaultValue("");
|
|
98623
98685
|
PathDeclarations.push({
|
|
@@ -99501,6 +99563,18 @@ class FileLoaderConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4
|
|
|
99501
99563
|
multiple: multipleNode
|
|
99502
99564
|
});
|
|
99503
99565
|
}
|
|
99566
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
99567
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_11__.FileLoaderNode);
|
|
99568
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
99569
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
99570
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
99571
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
99572
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
99573
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
99574
|
+
return;
|
|
99575
|
+
}
|
|
99576
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
99577
|
+
}
|
|
99504
99578
|
doBuildDataDeclaration(context) {
|
|
99505
99579
|
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_11__.FileLoaderNode);
|
|
99506
99580
|
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node), this.addAttachmentPathDeclEntry(context, node));
|
|
@@ -102495,8 +102569,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102495
102569
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
102496
102570
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
102497
102571
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
102498
|
-
/* harmony import */ var
|
|
102499
|
-
/* harmony import */ var
|
|
102572
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
102573
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
102574
|
+
/* harmony import */ var _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts");
|
|
102575
|
+
|
|
102500
102576
|
|
|
102501
102577
|
|
|
102502
102578
|
|
|
@@ -102505,24 +102581,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102505
102581
|
|
|
102506
102582
|
class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
102507
102583
|
static getAcceptNodeClass() {
|
|
102508
|
-
return
|
|
102584
|
+
return _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode;
|
|
102509
102585
|
}
|
|
102510
102586
|
get nodePaths() {
|
|
102511
|
-
const node = this.getCurrentNodeAs(
|
|
102587
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102512
102588
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node)];
|
|
102513
102589
|
}
|
|
102590
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
102591
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102592
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102593
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
102594
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
102595
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
102596
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
102597
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
102598
|
+
return;
|
|
102599
|
+
}
|
|
102600
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
102601
|
+
}
|
|
102514
102602
|
doBuildNodeValidations(validationGenerator) {
|
|
102515
|
-
const node = this.getCurrentNodeAs(
|
|
102603
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102516
102604
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
102517
102605
|
}
|
|
102518
102606
|
doBuildDataDeclaration(context) {
|
|
102519
|
-
const node = this.getCurrentNodeAs(
|
|
102607
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102520
102608
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false, this.getDefaultValue(node))]]), context.addSpecialFieldsEntry(node, {
|
|
102521
102609
|
optional: node.dataBinding.optional
|
|
102522
102610
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
102523
102611
|
}
|
|
102524
102612
|
doBuildNormalizeRules(builder) {
|
|
102525
|
-
const node = this.getCurrentNodeAs(
|
|
102613
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102526
102614
|
return [builder.valueInitializer(node, node.dataBinding, false)];
|
|
102527
102615
|
}
|
|
102528
102616
|
getDefaultValue(node) {
|
|
@@ -102540,16 +102628,16 @@ class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
|
|
|
102540
102628
|
return defaultValue;
|
|
102541
102629
|
}
|
|
102542
102630
|
buildChildrenDataDeclaration(context) {
|
|
102543
|
-
const node = this.getCurrentNodeAs(
|
|
102631
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102544
102632
|
return context.processChildrenDataDeclaration(node.children);
|
|
102545
102633
|
}
|
|
102546
102634
|
*doTraverseChildren() {
|
|
102547
|
-
const node = this.getCurrentNodeAs(
|
|
102635
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102548
102636
|
yield* node.children;
|
|
102549
102637
|
}
|
|
102550
102638
|
doConvert(context) {
|
|
102551
102639
|
var _node$checkedValue2, _node$uncheckedValue2;
|
|
102552
|
-
const node = this.getCurrentNodeAs(
|
|
102640
|
+
const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
|
|
102553
102641
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
102554
102642
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("SelectCheckbox");
|
|
102555
102643
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
@@ -102560,7 +102648,7 @@ class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
|
|
|
102560
102648
|
markupBuilder.prop(x => x.callHelperOnChange).set(context.generateHelperFunctionExpression(node, "callHelperOnChange", node.callHelperOnChange));
|
|
102561
102649
|
}
|
|
102562
102650
|
if (node.disabled2 != undefined) {
|
|
102563
|
-
markupBuilder.prop(x => x.disabled2).set((0,
|
|
102651
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
102564
102652
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
102565
102653
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
102566
102654
|
}
|
|
@@ -103219,8 +103307,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103219
103307
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
103220
103308
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
103221
103309
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
103222
|
-
/* harmony import */ var
|
|
103223
|
-
/* harmony import */ var
|
|
103310
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
103311
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
103312
|
+
/* harmony import */ var _ToggleNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ToggleNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Toggle/ToggleNode.ts");
|
|
103313
|
+
|
|
103224
103314
|
|
|
103225
103315
|
|
|
103226
103316
|
|
|
@@ -103229,24 +103319,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103229
103319
|
|
|
103230
103320
|
class ToggleConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
103231
103321
|
static getAcceptNodeClass() {
|
|
103232
|
-
return
|
|
103322
|
+
return _ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode;
|
|
103233
103323
|
}
|
|
103234
103324
|
get nodePaths() {
|
|
103235
|
-
const node = this.getCurrentNodeAs(
|
|
103325
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103236
103326
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node)];
|
|
103237
103327
|
}
|
|
103328
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
103329
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103330
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103331
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
103332
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
103333
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
103334
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
103335
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
103336
|
+
return;
|
|
103337
|
+
}
|
|
103338
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
103339
|
+
}
|
|
103238
103340
|
doBuildNodeValidations(validationGenerator) {
|
|
103239
|
-
const node = this.getCurrentNodeAs(
|
|
103341
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103240
103342
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
103241
103343
|
}
|
|
103242
103344
|
doBuildDataDeclaration(context) {
|
|
103243
|
-
const node = this.getCurrentNodeAs(
|
|
103345
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103244
103346
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false, this.getDefaultValue(node))]]), context.addSpecialFieldsEntry(node, {
|
|
103245
103347
|
optional: node.dataBinding.optional
|
|
103246
103348
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
103247
103349
|
}
|
|
103248
103350
|
doBuildNormalizeRules(builder) {
|
|
103249
|
-
const node = this.getCurrentNodeAs(
|
|
103351
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103250
103352
|
return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {
|
|
103251
103353
|
disabled: false
|
|
103252
103354
|
})];
|
|
@@ -103266,15 +103368,15 @@ class ToggleConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.S
|
|
|
103266
103368
|
return defaultValue;
|
|
103267
103369
|
}
|
|
103268
103370
|
buildChildrenDataDeclaration(context) {
|
|
103269
|
-
const node = this.getCurrentNodeAs(
|
|
103371
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103270
103372
|
return context.processChildrenDataDeclaration(node.children);
|
|
103271
103373
|
}
|
|
103272
103374
|
*doTraverseChildren() {
|
|
103273
|
-
const node = this.getCurrentNodeAs(
|
|
103375
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103274
103376
|
yield* node.children;
|
|
103275
103377
|
}
|
|
103276
103378
|
doConvert(context) {
|
|
103277
|
-
const node = this.getCurrentNodeAs(
|
|
103379
|
+
const node = this.getCurrentNodeAs(_ToggleNode__WEBPACK_IMPORTED_MODULE_6__.ToggleNode);
|
|
103278
103380
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
103279
103381
|
const markupBuilderToggle = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("Toggle");
|
|
103280
103382
|
markupBuilderToggle.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
|
|
@@ -103286,7 +103388,7 @@ class ToggleConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.S
|
|
|
103286
103388
|
markupBuilderToggle.prop(x => x.callHelperOnChange).set(context.generateHelperFunctionExpression(node, "callHelperOnChange", node.callHelperOnChange));
|
|
103287
103389
|
}
|
|
103288
103390
|
if (node.disabled2 != undefined) {
|
|
103289
|
-
markupBuilderToggle.prop(x => x.disabled2).set((0,
|
|
103391
|
+
markupBuilderToggle.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
103290
103392
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
103291
103393
|
markupBuilderToggle.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
103292
103394
|
}
|
|
@@ -103367,16 +103469,18 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
103367
103469
|
static getAcceptNodeClass() {
|
|
103368
103470
|
return _TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode;
|
|
103369
103471
|
}
|
|
103370
|
-
|
|
103472
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
103371
103473
|
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
|
|
103372
103474
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103373
103475
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each);
|
|
103374
103476
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
103375
103477
|
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
103376
|
-
|
|
103377
|
-
|
|
103478
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
103479
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
103480
|
+
return;
|
|
103378
103481
|
}
|
|
103379
|
-
|
|
103482
|
+
const ownPathFixed = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createRelativeFromTokens)([...ownPath.getPathParts()].filter(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.isSimpleToken));
|
|
103483
|
+
yield* buildContext.buildBasicValidations(ownPathFixed, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId);
|
|
103380
103484
|
}
|
|
103381
103485
|
doBuildNodeValidations(validationGenerator) {
|
|
103382
103486
|
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__.TreePicklistNode);
|
|
@@ -104554,9 +104658,6 @@ class LinetextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
104554
104658
|
static getAcceptNodeClass() {
|
|
104555
104659
|
return _LineTextNode__WEBPACK_IMPORTED_MODULE_3__.LineTextNode;
|
|
104556
104660
|
}
|
|
104557
|
-
doBuildNodeValidations() {
|
|
104558
|
-
// no validations
|
|
104559
|
-
}
|
|
104560
104661
|
doBuildDataDeclaration(context) {
|
|
104561
104662
|
const node = this.getCurrentNodeAs(_LineTextNode__WEBPACK_IMPORTED_MODULE_3__.LineTextNode);
|
|
104562
104663
|
return context.mergeDataDeclaration(context.addVisibilityPathDeclEntryNew(node));
|
|
@@ -105207,12 +105308,12 @@ class FLangNormalizationRulesBuilder {
|
|
|
105207
105308
|
const targetPathReference = node.getFullPath().toEachIteration().trimLastStarIfLastToken();
|
|
105208
105309
|
yield new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.SetStatement(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ValueReferenceExpression(targetPathReference, "children"), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.ConditionalExpression(new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.IsEqualsBinaryExpression((0,_ServerSideFLangNormalization_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeNoDeps)((0,_ServerSideFLangNormalization_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(targetPathReference.toCurrentIteration(), "children")), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.NullLiteralExpression()), new _ServerSideFLangNormalization_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_0__.StringLiteralExpression(JSON.stringify(defaultChildren !== null && defaultChildren !== void 0 ? defaultChildren : optional ? [] : ["0"])), (0,_ServerSideFLangNormalization_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeNoDeps)((0,_ServerSideFLangNormalization_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(targetPathReference.toCurrentIteration(), "children"))));
|
|
105209
105310
|
}
|
|
105210
|
-
valueInitializer(node, dataBinding, disabled, pathSuffix, fetchFunctionSuffix) {
|
|
105211
|
-
var
|
|
105311
|
+
valueInitializer(node, dataBinding, disabled, pathSuffix, fetchFunctionSuffix, customDefaultValue) {
|
|
105312
|
+
var _ref;
|
|
105212
105313
|
const targetPathReference = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createFromMask)((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getResolvedBindingPath)(node), true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each).joinWith((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(pathSuffix) ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createFromMask)(pathSuffix, false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.emptyModelPath)());
|
|
105213
105314
|
const originalValueReference = (0,_ServerSideFLangNormalization_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeNoDeps)((0,_ServerSideFLangNormalization_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_3__.makeStringValueReference)(targetPathReference.toCurrentIteration(), "value"));
|
|
105214
105315
|
const sourceValueReference = this.getSourceValueReferenceWithCorrection(node, targetPathReference);
|
|
105215
|
-
const defaultValue = (
|
|
105316
|
+
const defaultValue = (_ref = customDefaultValue !== null && customDefaultValue !== void 0 ? customDefaultValue : dataBinding.defaultValue) !== null && _ref !== void 0 ? _ref : "";
|
|
105216
105317
|
const sourceSequenceType = node.sourceXmlNode.attributes.settings ? _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_4__.DataDeclarationInitSourceValueSequence.SETTINGS : disabled ? _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_4__.DataDeclarationInitSourceValueSequence.DISABLED : _DataDeclarationGenerator_DataDeclaration__WEBPACK_IMPORTED_MODULE_4__.DataDeclarationInitSourceValueSequence.DEFAULT;
|
|
105217
105318
|
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(dataBinding.fetchfn)) {
|
|
105218
105319
|
try {
|