@kontur.candy/generator 4.236.0-taxrebate.0 → 4.237.0-extended-errorlog.2
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 +322 -222
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271842,7 +271842,7 @@ function convertToLegacyPath(path) {
|
|
|
271842
271842
|
return isModelPath(path) ? path.toLegacyPath() : path;
|
|
271843
271843
|
}
|
|
271844
271844
|
function convertToAbsolutModelPath(path) {
|
|
271845
|
-
return isModelPath(path) ? path :
|
|
271845
|
+
return isModelPath(path) ? path : AbsoluteModelPath.createAbsoluteFromMask(path, PathTokens.each);
|
|
271846
271846
|
}
|
|
271847
271847
|
class AbsoluteModelFieldPath {
|
|
271848
271848
|
constructor(path, fieldName) {
|
|
@@ -280457,12 +280457,11 @@ class FormSchemaRng {
|
|
|
280457
280457
|
return result.toPath().toAbsolute();
|
|
280458
280458
|
}
|
|
280459
280459
|
|
|
280460
|
-
getElementByPath(
|
|
280461
|
-
const modelPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(bindingPath, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
280460
|
+
getElementByPath(path) {
|
|
280462
280461
|
let expectMultipleElement = false;
|
|
280463
280462
|
let currentElement;
|
|
280464
280463
|
|
|
280465
|
-
for (const part of
|
|
280464
|
+
for (const part of path.getPathParts()) {
|
|
280466
280465
|
if (currentElement == undefined) {
|
|
280467
280466
|
if (this.rootElement.name === part) {
|
|
280468
280467
|
currentElement = this.rootElement;
|
|
@@ -280500,8 +280499,7 @@ class FormSchemaRng {
|
|
|
280500
280499
|
return currentElement;
|
|
280501
280500
|
}
|
|
280502
280501
|
|
|
280503
|
-
getIsOptionalByPath(
|
|
280504
|
-
const modelPath = _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.ModelPath.createFromMask(bindingPath, true, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
280502
|
+
getIsOptionalByPath(modelPath) {
|
|
280505
280503
|
let isOptionalStatus = false;
|
|
280506
280504
|
let currentElement;
|
|
280507
280505
|
|
|
@@ -280536,6 +280534,12 @@ class FormSchemaRng {
|
|
|
280536
280534
|
return isOptionalStatus;
|
|
280537
280535
|
}
|
|
280538
280536
|
|
|
280537
|
+
getIsOptionalByExactPath(bindingPath) {
|
|
280538
|
+
var _this$getElementByPat, _this$getElementByPat2;
|
|
280539
|
+
|
|
280540
|
+
return (_this$getElementByPat = (_this$getElementByPat2 = this.getElementByPath(bindingPath)) === null || _this$getElementByPat2 === void 0 ? void 0 : _this$getElementByPat2.optional) !== null && _this$getElementByPat !== void 0 ? _this$getElementByPat : false;
|
|
280541
|
+
}
|
|
280542
|
+
|
|
280539
280543
|
getTypeNodeByPath(bindingPath) {
|
|
280540
280544
|
const currentElement = this.getElementByPath(bindingPath);
|
|
280541
280545
|
|
|
@@ -284397,6 +284401,50 @@ function convertHtmlCommentsToJsxComments(xmlString) {
|
|
|
284397
284401
|
|
|
284398
284402
|
/***/ }),
|
|
284399
284403
|
|
|
284404
|
+
/***/ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts":
|
|
284405
|
+
/*!******************************************************************************!*\
|
|
284406
|
+
!*** ./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts ***!
|
|
284407
|
+
\******************************************************************************/
|
|
284408
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
284409
|
+
|
|
284410
|
+
"use strict";
|
|
284411
|
+
__webpack_require__.r(__webpack_exports__);
|
|
284412
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
284413
|
+
/* harmony export */ "AttachmentPathsGenerator": () => (/* binding */ AttachmentPathsGenerator)
|
|
284414
|
+
/* harmony export */ });
|
|
284415
|
+
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
284416
|
+
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
284417
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
284418
|
+
|
|
284419
|
+
|
|
284420
|
+
|
|
284421
|
+
class AttachmentPathsGenerator {
|
|
284422
|
+
generate(sugarNode) {
|
|
284423
|
+
var _getConverterByNodeCl;
|
|
284424
|
+
|
|
284425
|
+
(_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.getNodeClass)(sugarNode))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(`Converter for root node must be defined`);
|
|
284426
|
+
return Iterator.from(this.generateInternal(sugarNode)).map(x => x.toLegacyPath()).toArray();
|
|
284427
|
+
}
|
|
284428
|
+
|
|
284429
|
+
*generateInternal(sugarNode) {
|
|
284430
|
+
const converterType = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_1__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.getNodeClass)(sugarNode));
|
|
284431
|
+
|
|
284432
|
+
if (converterType == undefined) {
|
|
284433
|
+
return;
|
|
284434
|
+
}
|
|
284435
|
+
|
|
284436
|
+
const converter = new converterType(sugarNode);
|
|
284437
|
+
yield* converter.getAttachmentPaths();
|
|
284438
|
+
|
|
284439
|
+
for (const child of converter.traverseChildren()) {
|
|
284440
|
+
yield* this.generateInternal(child);
|
|
284441
|
+
}
|
|
284442
|
+
}
|
|
284443
|
+
|
|
284444
|
+
}
|
|
284445
|
+
|
|
284446
|
+
/***/ }),
|
|
284447
|
+
|
|
284400
284448
|
/***/ "./Generator/src/generators/AutoCalculationsGenerator/AdditionalAutoCalculationParser.ts":
|
|
284401
284449
|
/*!***********************************************************************************************!*\
|
|
284402
284450
|
!*** ./Generator/src/generators/AutoCalculationsGenerator/AdditionalAutoCalculationParser.ts ***!
|
|
@@ -286500,6 +286548,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
286500
286548
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
286501
286549
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
286502
286550
|
/* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
286551
|
+
/* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
|
|
286552
|
+
|
|
286503
286553
|
|
|
286504
286554
|
|
|
286505
286555
|
|
|
@@ -286574,7 +286624,7 @@ class DataDeclarationGenerationContext {
|
|
|
286574
286624
|
return this.mergeDataDeclaration(...childrenDataDeclaration);
|
|
286575
286625
|
}
|
|
286576
286626
|
|
|
286577
|
-
addVisibilityPathDeclEntryNew(node) {
|
|
286627
|
+
addVisibilityPathDeclEntryNew(node, requisite) {
|
|
286578
286628
|
var _node$parent;
|
|
286579
286629
|
|
|
286580
286630
|
if (node.visibilityPath == undefined || node.visibilityPath === "") {
|
|
@@ -286582,10 +286632,10 @@ class DataDeclarationGenerationContext {
|
|
|
286582
286632
|
}
|
|
286583
286633
|
|
|
286584
286634
|
const declEntry = {};
|
|
286585
|
-
const nodePath = ((_node$parent = node.parent) !== null && _node$parent !== void 0 ? _node$parent : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)()).getFullPathForChildren().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.ModelPath.createFromMask(node.visibilityPath, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each))
|
|
286586
|
-
declEntry.section = this.getSections(node
|
|
286635
|
+
const nodePath = ((_node$parent = node.parent) !== null && _node$parent !== void 0 ? _node$parent : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)()).getFullPathForChildren().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.ModelPath.createFromMask(node.visibilityPath, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each));
|
|
286636
|
+
declEntry.section = this.getSections(node, requisite);
|
|
286587
286637
|
return {
|
|
286588
|
-
[nodePath]: declEntry
|
|
286638
|
+
[nodePath.normalize().toLegacyPath()]: declEntry
|
|
286589
286639
|
};
|
|
286590
286640
|
}
|
|
286591
286641
|
|
|
@@ -286625,20 +286675,18 @@ class DataDeclarationGenerationContext {
|
|
|
286625
286675
|
};
|
|
286626
286676
|
}
|
|
286627
286677
|
|
|
286628
|
-
addPathSectionDeclarationEntry(sugarNode, skipRequisitesSection = false) {
|
|
286678
|
+
addPathSectionDeclarationEntry(sugarNode, requisite, skipRequisitesSection = false) {
|
|
286629
286679
|
const declEntry = {};
|
|
286630
286680
|
const requisitesMode = skipRequisitesSection ? RequisiteSectionMode.ForceSkip : RequisiteSectionMode.AsRequisiteAttribute;
|
|
286631
|
-
declEntry.section = this.getSections(sugarNode
|
|
286681
|
+
declEntry.section = this.getSections(sugarNode, requisite, requisitesMode);
|
|
286632
286682
|
return {
|
|
286633
286683
|
[(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getResolvedBindingPath)(sugarNode)]: declEntry
|
|
286634
286684
|
};
|
|
286635
|
-
return {};
|
|
286636
286685
|
}
|
|
286637
286686
|
|
|
286638
|
-
addChildPathSectionDeclarationEntry(sugarNode, childPath,
|
|
286687
|
+
addChildPathSectionDeclarationEntry(sugarNode, childPath, requisite) {
|
|
286639
286688
|
const declEntry = {};
|
|
286640
|
-
|
|
286641
|
-
declEntry.section = this.getSections(sugarNode.sourceXmlNode, requisitesMode);
|
|
286689
|
+
declEntry.section = this.getSections(sugarNode, requisite);
|
|
286642
286690
|
|
|
286643
286691
|
if ((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.isModelPath)(childPath)) {
|
|
286644
286692
|
return {
|
|
@@ -286656,13 +286704,13 @@ class DataDeclarationGenerationContext {
|
|
|
286656
286704
|
return lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default()({}, ...items.filter(x => Boolean(x)), this.declarationCustomizer);
|
|
286657
286705
|
}
|
|
286658
286706
|
|
|
286659
|
-
addChildrenPathDeclEntry(node, pathAttr, optional) {
|
|
286707
|
+
addChildrenPathDeclEntry(node, pathAttr, optional, requisite) {
|
|
286660
286708
|
if (pathAttr && pathAttr.includes("*")) {
|
|
286661
286709
|
const declEntry = {};
|
|
286662
286710
|
const childrenIndex = (0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getResolvedBindingPath)(node).lastIndexOf("*");
|
|
286663
286711
|
const childrenPath = (0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getResolvedBindingPath)(node).slice(0, childrenIndex - 1);
|
|
286664
286712
|
declEntry.children = this.initSequenceFactory.children(optional);
|
|
286665
|
-
declEntry.section = this.getSections(node
|
|
286713
|
+
declEntry.section = this.getSections(node, requisite);
|
|
286666
286714
|
return {
|
|
286667
286715
|
[childrenPath]: declEntry
|
|
286668
286716
|
};
|
|
@@ -286671,7 +286719,7 @@ class DataDeclarationGenerationContext {
|
|
|
286671
286719
|
return {};
|
|
286672
286720
|
}
|
|
286673
286721
|
|
|
286674
|
-
addChildrenPathDeclEntryForChild(node, optional, pathAttrValue, childPath) {
|
|
286722
|
+
addChildrenPathDeclEntryForChild(node, optional, pathAttrValue, childPath, requisite) {
|
|
286675
286723
|
const pathAttr = (pathAttrValue !== null && pathAttrValue !== void 0 ? pathAttrValue : "") + "/" + childPath;
|
|
286676
286724
|
|
|
286677
286725
|
if (pathAttr && pathAttr.includes("*")) {
|
|
@@ -286680,7 +286728,7 @@ class DataDeclarationGenerationContext {
|
|
|
286680
286728
|
const childrenIndex = resolvedBindingPath.lastIndexOf("*");
|
|
286681
286729
|
const childrenPath = resolvedBindingPath.slice(0, childrenIndex - 1);
|
|
286682
286730
|
declEntry.children = this.initSequenceFactory.children(optional);
|
|
286683
|
-
declEntry.section = this.getSections(node
|
|
286731
|
+
declEntry.section = this.getSections(node, requisite);
|
|
286684
286732
|
return {
|
|
286685
286733
|
[childrenPath]: declEntry
|
|
286686
286734
|
};
|
|
@@ -286689,33 +286737,27 @@ class DataDeclarationGenerationContext {
|
|
|
286689
286737
|
return {};
|
|
286690
286738
|
}
|
|
286691
286739
|
|
|
286692
|
-
getSections(node, requisite = RequisiteSectionMode.AsRequisiteAttribute) {
|
|
286693
|
-
const page = node.
|
|
286694
|
-
|
|
286740
|
+
getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
|
|
286741
|
+
const page = node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode ? node : node.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode);
|
|
286742
|
+
const pageName = page === null || page === void 0 ? void 0 : page.id;
|
|
286695
286743
|
|
|
286696
|
-
if (node
|
|
286697
|
-
if (page != undefined) {
|
|
286698
|
-
|
|
286699
|
-
|
|
286700
|
-
|
|
286701
|
-
return [{
|
|
286702
|
-
fn: `#getSectionFunction('${pageName}')#`
|
|
286703
|
-
}];
|
|
286704
|
-
}
|
|
286744
|
+
if (!(node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_8__.PageNode)) {
|
|
286745
|
+
if (page != undefined && page.multiple) {
|
|
286746
|
+
return [{
|
|
286747
|
+
fn: `#getSectionFunction('${pageName}')#`
|
|
286748
|
+
}];
|
|
286705
286749
|
}
|
|
286706
|
-
} else {
|
|
286707
|
-
pageName = node.attrAsString("id");
|
|
286708
286750
|
}
|
|
286709
286751
|
|
|
286710
286752
|
const sections = pageName != undefined ? [pageName] : [];
|
|
286711
286753
|
|
|
286712
|
-
if (
|
|
286713
|
-
if (
|
|
286754
|
+
if (requisiteMode === RequisiteSectionMode.AsRequisiteAttribute) {
|
|
286755
|
+
if (requisite) {
|
|
286714
286756
|
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_4__.SectionNames.requisitesSection);
|
|
286715
286757
|
}
|
|
286716
286758
|
}
|
|
286717
286759
|
|
|
286718
|
-
if (
|
|
286760
|
+
if (requisiteMode === RequisiteSectionMode.ForceAdd) {
|
|
286719
286761
|
sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_4__.SectionNames.requisitesSection);
|
|
286720
286762
|
}
|
|
286721
286763
|
|
|
@@ -286756,19 +286798,18 @@ class DataDeclarationGenerationContext {
|
|
|
286756
286798
|
}
|
|
286757
286799
|
|
|
286758
286800
|
addCustomControlPathDeclEntry(sugarNode, customControl) {
|
|
286759
|
-
const node = sugarNode.sourceXmlNode;
|
|
286760
286801
|
const declEntry = {};
|
|
286761
|
-
declEntry["value"] = this.initSequenceFactory.
|
|
286802
|
+
declEntry["value"] = this.initSequenceFactory.dataValue(sugarNode, sugarNode.disabled);
|
|
286762
286803
|
|
|
286763
|
-
if (
|
|
286804
|
+
if (sugarNode.optional) {
|
|
286764
286805
|
declEntry.optional = [true];
|
|
286765
286806
|
}
|
|
286766
286807
|
|
|
286767
|
-
if (
|
|
286808
|
+
if (sugarNode.disabled) {
|
|
286768
286809
|
declEntry.disabled = [true];
|
|
286769
286810
|
}
|
|
286770
286811
|
|
|
286771
|
-
declEntry.section = this.getSections(sugarNode.
|
|
286812
|
+
declEntry.section = this.getSections(sugarNode, sugarNode.requisite);
|
|
286772
286813
|
return {
|
|
286773
286814
|
[(0,_markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getResolvedBindingPath)(sugarNode)]: declEntry
|
|
286774
286815
|
};
|
|
@@ -286799,33 +286840,43 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
286799
286840
|
}
|
|
286800
286841
|
|
|
286801
286842
|
hasMask(targetPath) {
|
|
286802
|
-
return
|
|
286843
|
+
return this.getDataDeclarationEntry(targetPath) != undefined;
|
|
286803
286844
|
}
|
|
286804
286845
|
|
|
286805
286846
|
isNodeHasChildrenEntry(targetPath) {
|
|
286806
|
-
var _this$
|
|
286847
|
+
var _this$getDataDeclarat;
|
|
286807
286848
|
|
|
286808
|
-
return ((_this$
|
|
286849
|
+
return ((_this$getDataDeclarat = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat === void 0 ? void 0 : _this$getDataDeclarat.children) != undefined;
|
|
286809
286850
|
}
|
|
286810
286851
|
|
|
286811
286852
|
isNodeHasAutoFlagEntry(targetPath) {
|
|
286812
|
-
const
|
|
286813
|
-
const declEntry = this.dataDeclaration[targetPathString];
|
|
286853
|
+
const declEntry = this.getDataDeclarationEntry(targetPath);
|
|
286814
286854
|
return declEntry !== undefined && "autoValue" in declEntry;
|
|
286815
286855
|
}
|
|
286816
286856
|
|
|
286817
286857
|
isNodeHasDisabledEntry(targetPath) {
|
|
286818
|
-
const declEntry = this.
|
|
286858
|
+
const declEntry = this.getDataDeclarationEntry(targetPath);
|
|
286819
286859
|
return Boolean(declEntry === null || declEntry === void 0 ? void 0 : declEntry.disabled);
|
|
286820
286860
|
}
|
|
286821
286861
|
|
|
286822
286862
|
getDefaultValue(targetPath) {
|
|
286823
|
-
const declEntry = this.
|
|
286863
|
+
const declEntry = this.getDataDeclarationEntry(targetPath);
|
|
286824
286864
|
const lastValue = declEntry !== undefined && "value" in declEntry && declEntry.value != undefined ? declEntry.value[declEntry.value.length - 1] : "";
|
|
286825
286865
|
const returnDefaultValue = typeof lastValue === "string" ? lastValue : "";
|
|
286826
286866
|
return returnDefaultValue;
|
|
286827
286867
|
}
|
|
286828
286868
|
|
|
286869
|
+
isNodeOptional(targetPath) {
|
|
286870
|
+
var _this$getDataDeclarat2, _optionalValue$;
|
|
286871
|
+
|
|
286872
|
+
const optionalValue = (_this$getDataDeclarat2 = this.getDataDeclarationEntry(targetPath)) === null || _this$getDataDeclarat2 === void 0 ? void 0 : _this$getDataDeclarat2.optional;
|
|
286873
|
+
return (_optionalValue$ = optionalValue === null || optionalValue === void 0 ? void 0 : optionalValue[0]) !== null && _optionalValue$ !== void 0 ? _optionalValue$ : false;
|
|
286874
|
+
}
|
|
286875
|
+
|
|
286876
|
+
getDataDeclarationEntry(targetPath) {
|
|
286877
|
+
return this.dataDeclaration[(0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.convertToLegacyPath)(targetPath)];
|
|
286878
|
+
}
|
|
286879
|
+
|
|
286829
286880
|
}
|
|
286830
286881
|
|
|
286831
286882
|
/***/ }),
|
|
@@ -286983,151 +287034,56 @@ class DataDeclarationInitSourceSequenceFactory {
|
|
|
286983
287034
|
this.fetchFunctions = fetchFunctions;
|
|
286984
287035
|
}
|
|
286985
287036
|
|
|
286986
|
-
|
|
286987
|
-
var
|
|
287037
|
+
dataValue(node, disabled, defaultValue) {
|
|
287038
|
+
var _ref3;
|
|
286988
287039
|
|
|
286989
|
-
|
|
286990
|
-
|
|
286991
|
-
|
|
286992
|
-
if (!node.boolAttr("disabled") && !node.boolAttr("settings")) {
|
|
286993
|
-
result.push({
|
|
286994
|
-
model: true
|
|
286995
|
-
});
|
|
286996
|
-
}
|
|
286997
|
-
|
|
286998
|
-
if (fetchFn) {
|
|
286999
|
-
result.push({
|
|
287000
|
-
fn: fetchFn
|
|
287001
|
-
});
|
|
287002
|
-
}
|
|
287003
|
-
|
|
287004
|
-
if (node.boolAttr("settings")) {
|
|
287005
|
-
result.push({
|
|
287006
|
-
model: true
|
|
287007
|
-
});
|
|
287008
|
-
}
|
|
287009
|
-
|
|
287010
|
-
result.push((_node$attrAsString = node.attrAsString("defaultValue")) !== null && _node$attrAsString !== void 0 ? _node$attrAsString : "");
|
|
287011
|
-
return result;
|
|
287012
|
-
}
|
|
287013
|
-
|
|
287014
|
-
checkboxValue(node) {
|
|
287015
|
-
var _node$dataBinding$def;
|
|
287016
|
-
|
|
287017
|
-
let defaultValue = (_node$dataBinding$def = node.dataBinding.defaultValue) !== null && _node$dataBinding$def !== void 0 ? _node$dataBinding$def : "";
|
|
287018
|
-
|
|
287019
|
-
if (defaultValue) {
|
|
287020
|
-
if (defaultValue === "checked") {
|
|
287021
|
-
var _node$checkedValue;
|
|
287022
|
-
|
|
287023
|
-
defaultValue = (_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : true;
|
|
287024
|
-
} else {
|
|
287025
|
-
var _node$uncheckedValue;
|
|
287026
|
-
|
|
287027
|
-
defaultValue = (_node$uncheckedValue = node.uncheckedValue) !== null && _node$uncheckedValue !== void 0 ? _node$uncheckedValue : false;
|
|
287028
|
-
}
|
|
287029
|
-
}
|
|
287030
|
-
|
|
287031
|
-
const fetchFn = this.fetchFunctions.getFetchFunction(node.dataBinding.fetchfn, "value");
|
|
287032
|
-
const result = [];
|
|
287033
|
-
|
|
287034
|
-
if (!node.dataBinding.settings) {
|
|
287035
|
-
result.push({
|
|
287036
|
-
model: true
|
|
287037
|
-
});
|
|
287038
|
-
}
|
|
287039
|
-
|
|
287040
|
-
if (fetchFn) {
|
|
287041
|
-
result.push({
|
|
287042
|
-
fn: fetchFn
|
|
287043
|
-
});
|
|
287044
|
-
}
|
|
287045
|
-
|
|
287046
|
-
if (node.dataBinding.settings) {
|
|
287047
|
-
result.push({
|
|
287048
|
-
model: true
|
|
287049
|
-
});
|
|
287050
|
-
}
|
|
287051
|
-
|
|
287052
|
-
result.push(defaultValue);
|
|
287053
|
-
return result;
|
|
287054
|
-
}
|
|
287055
|
-
|
|
287056
|
-
dataValue(node, disabled) {
|
|
287057
|
-
var _node$defaultValue;
|
|
287058
|
-
|
|
287059
|
-
const defaultValue = (_node$defaultValue = node.defaultValue) !== null && _node$defaultValue !== void 0 ? _node$defaultValue : "";
|
|
287060
|
-
const fetchFn = this.fetchFunctions.getFetchFunction(node.fetchfn, "value");
|
|
287061
|
-
const result = [];
|
|
287040
|
+
if (node.settings) {
|
|
287041
|
+
var _ref;
|
|
287062
287042
|
|
|
287063
|
-
|
|
287064
|
-
result.push({
|
|
287065
|
-
model: true
|
|
287066
|
-
});
|
|
287043
|
+
return [...this.takeFromFetchFunctionIfExists(node.fetchfn, "value"), ...this.takeFromModel(), ...this.setValueUnconditionally((_ref = defaultValue !== null && defaultValue !== void 0 ? defaultValue : node.defaultValue) !== null && _ref !== void 0 ? _ref : "")];
|
|
287067
287044
|
}
|
|
287068
287045
|
|
|
287069
|
-
if (
|
|
287070
|
-
|
|
287071
|
-
fn: fetchFn
|
|
287072
|
-
});
|
|
287073
|
-
}
|
|
287046
|
+
if (disabled) {
|
|
287047
|
+
var _ref2;
|
|
287074
287048
|
|
|
287075
|
-
|
|
287076
|
-
result.push({
|
|
287077
|
-
model: true
|
|
287078
|
-
});
|
|
287049
|
+
return [...this.takeFromFetchFunctionIfExists(node.fetchfn, "value"), ...this.setValueUnconditionally((_ref2 = defaultValue !== null && defaultValue !== void 0 ? defaultValue : node.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : "")];
|
|
287079
287050
|
}
|
|
287080
287051
|
|
|
287081
|
-
|
|
287082
|
-
return result;
|
|
287083
|
-
}
|
|
287084
|
-
|
|
287085
|
-
takeFromModel() {
|
|
287086
|
-
return [{
|
|
287087
|
-
model: true
|
|
287088
|
-
}];
|
|
287052
|
+
return [...this.takeFromModel(), ...this.takeFromFetchFunctionIfExists(node.fetchfn, "value"), ...this.setValueUnconditionally((_ref3 = defaultValue !== null && defaultValue !== void 0 ? defaultValue : node.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : "")];
|
|
287089
287053
|
}
|
|
287090
287054
|
|
|
287091
287055
|
takeFromFetchFunctionOrDefault(fetchFnName, fieldName, defaultValue) {
|
|
287092
|
-
|
|
287093
|
-
return [{
|
|
287094
|
-
fn: fetchFn
|
|
287095
|
-
}, defaultValue !== null && defaultValue !== void 0 ? defaultValue : ""];
|
|
287056
|
+
return [...this.takeFromFetchFunction(fetchFnName, fieldName), ...this.setValueUnconditionally(defaultValue !== null && defaultValue !== void 0 ? defaultValue : "")];
|
|
287096
287057
|
}
|
|
287097
287058
|
|
|
287098
287059
|
takeFromModelOrDefaultValue(defaultValue) {
|
|
287099
|
-
return [
|
|
287100
|
-
model: true
|
|
287101
|
-
}, defaultValue !== null && defaultValue !== void 0 ? defaultValue : ""];
|
|
287060
|
+
return [...this.takeFromModel(), ...this.setValueUnconditionally(defaultValue !== null && defaultValue !== void 0 ? defaultValue : "")];
|
|
287102
287061
|
}
|
|
287103
287062
|
|
|
287104
287063
|
children(optional, defaultChildren) {
|
|
287105
|
-
return [
|
|
287106
|
-
model: true
|
|
287107
|
-
}, defaultChildren !== null && defaultChildren !== void 0 ? defaultChildren : optional ? [] : ["0"]];
|
|
287064
|
+
return [...this.takeFromModel(), ...this.setValueUnconditionally(defaultChildren !== null && defaultChildren !== void 0 ? defaultChildren : optional ? [] : ["0"])];
|
|
287108
287065
|
}
|
|
287109
287066
|
|
|
287110
287067
|
takeFromModelOrFetchFn(fieldName, fetchFnName) {
|
|
287111
|
-
|
|
287112
|
-
return fetchFn ? [{
|
|
287113
|
-
model: true
|
|
287114
|
-
}, {
|
|
287115
|
-
fn: fetchFn
|
|
287116
|
-
}] : [{
|
|
287117
|
-
model: true
|
|
287118
|
-
}];
|
|
287068
|
+
return [...this.takeFromModel(), ...this.takeFromFetchFunctionIfExists(fetchFnName, fieldName)];
|
|
287119
287069
|
}
|
|
287120
287070
|
|
|
287121
287071
|
disabled() {
|
|
287122
|
-
return [
|
|
287123
|
-
model: true
|
|
287124
|
-
}, false];
|
|
287072
|
+
return [...this.takeFromModel(), ...this.setValueUnconditionally(false)];
|
|
287125
287073
|
}
|
|
287126
287074
|
|
|
287127
287075
|
visible() {
|
|
287076
|
+
return [...this.takeFromModel(), ...this.setValueUnconditionally(true)];
|
|
287077
|
+
}
|
|
287078
|
+
|
|
287079
|
+
setValueUnconditionally(value) {
|
|
287080
|
+
return [value];
|
|
287081
|
+
}
|
|
287082
|
+
|
|
287083
|
+
takeFromModel() {
|
|
287128
287084
|
return [{
|
|
287129
287085
|
model: true
|
|
287130
|
-
}
|
|
287086
|
+
}];
|
|
287131
287087
|
}
|
|
287132
287088
|
|
|
287133
287089
|
takeFromFetchFunction(fetchFnName, fieldName) {
|
|
@@ -287137,6 +287093,18 @@ class DataDeclarationInitSourceSequenceFactory {
|
|
|
287137
287093
|
}];
|
|
287138
287094
|
}
|
|
287139
287095
|
|
|
287096
|
+
takeFromFetchFunctionIfExists(fetchFnName, fieldName) {
|
|
287097
|
+
const fetchFn = this.fetchFunctions.getFetchFunction(fetchFnName, fieldName);
|
|
287098
|
+
|
|
287099
|
+
if (fetchFn) {
|
|
287100
|
+
return [{
|
|
287101
|
+
fn: fetchFn
|
|
287102
|
+
}];
|
|
287103
|
+
}
|
|
287104
|
+
|
|
287105
|
+
return [];
|
|
287106
|
+
}
|
|
287107
|
+
|
|
287140
287108
|
}
|
|
287141
287109
|
|
|
287142
287110
|
/***/ }),
|
|
@@ -288057,6 +288025,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
288057
288025
|
/* harmony import */ var _RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./RequisiteLIst/requisiteList */ "./Generator/src/generators/RequisiteLIst/requisiteList.ts");
|
|
288058
288026
|
/* harmony import */ var _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./ServerSideFLangNormalization/NormalizationRulesGenerator */ "./Generator/src/generators/ServerSideFLangNormalization/NormalizationRulesGenerator.ts");
|
|
288059
288027
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationTimeHelper__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./DataDeclarationGenerator/DataDeclarationGenerationTimeHelper */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationTimeHelper.ts");
|
|
288028
|
+
/* harmony import */ var _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./AttachmentPaths/AttachmentPathsGenerator */ "./Generator/src/generators/AttachmentPaths/AttachmentPathsGenerator.ts");
|
|
288029
|
+
|
|
288060
288030
|
|
|
288061
288031
|
|
|
288062
288032
|
|
|
@@ -288110,7 +288080,7 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
288110
288080
|
const normalizationRulesGenerator = new _ServerSideFLangNormalization_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_24__.NormalizationRulesGenerator(sugarRoot, dataDeclarationHelper, formSchemaRng, formulas, typeRegistry, (_sugarRoot$schemaVali2 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali2 !== void 0 ? _sugarRoot$schemaVali2 : false, controlCustomizationContext);
|
|
288111
288081
|
const resourcesHash = (_generationOptions$re = generationOptions === null || generationOptions === void 0 ? void 0 : generationOptions.resourcesHash) !== null && _generationOptions$re !== void 0 ? _generationOptions$re : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)("Current generator version requires resources hash");
|
|
288112
288082
|
const builder = new _FormSourcesBuilder_FormSourcesBuilder__WEBPACK_IMPORTED_MODULE_20__.FormSourcesBuilder(additionalContent.formSourcesPath);
|
|
288113
|
-
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
|
|
288083
|
+
const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_11__.MarkupGenerator(additionalContent.formSourcesPath, additionalContent.helpersContent, additionalContent.tourSteps, controlCustomizationContext, typeRegistry, formSchemaRng, dataDeclarationHelper, (_sugarRoot$schemaVali3 = sugarRoot.schemaValidations) !== null && _sugarRoot$schemaVali3 !== void 0 ? _sugarRoot$schemaVali3 : false);
|
|
288114
288084
|
markupGenerator.generate(sugarRoot, builder);
|
|
288115
288085
|
builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_8__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings));
|
|
288116
288086
|
builder.addResource("requisiteList.js", (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_23__.getRequisiteList)(sugarRoot, fetchFunctions));
|
|
@@ -288123,6 +288093,9 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
|
|
|
288123
288093
|
builder.addServerSideResource("ServerSide.normalize", normalizationRules);
|
|
288124
288094
|
}
|
|
288125
288095
|
|
|
288096
|
+
const attachmentPathsGenerator = new _AttachmentPaths_AttachmentPathsGenerator__WEBPACK_IMPORTED_MODULE_26__.AttachmentPathsGenerator();
|
|
288097
|
+
const attachmentPaths = attachmentPathsGenerator.generate(sugarRoot);
|
|
288098
|
+
builder.addServerSideResource(`AttachmentPaths.json`, JSON.stringify(attachmentPaths));
|
|
288126
288099
|
const validationFunctionsContent = validationGenerator.generate();
|
|
288127
288100
|
builder.addResource("validationFunctions.js", validationFunctionsContent);
|
|
288128
288101
|
const importedKcXmlValidations = getImportedKcXmlValidations(sugarRoot, additionalContent);
|
|
@@ -288649,7 +288622,7 @@ class FLangValidationBuildContext {
|
|
|
288649
288622
|
}
|
|
288650
288623
|
|
|
288651
288624
|
getSchemaTypeInfo(bindingPath) {
|
|
288652
|
-
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath
|
|
288625
|
+
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath) : undefined;
|
|
288653
288626
|
}
|
|
288654
288627
|
|
|
288655
288628
|
getTypeNode(node) {
|
|
@@ -291716,7 +291689,7 @@ class ChoiceConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.S
|
|
|
291716
291689
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
291717
291690
|
optional: node.dataBinding.optional,
|
|
291718
291691
|
disabled: node.disabled
|
|
291719
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
291692
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
291720
291693
|
}
|
|
291721
291694
|
|
|
291722
291695
|
buildChildrenDataDeclaration(context) {
|
|
@@ -301945,10 +301918,13 @@ class RemoveRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MOD
|
|
|
301945
301918
|
}
|
|
301946
301919
|
|
|
301947
301920
|
doConvert(context) {
|
|
301921
|
+
var _node$clearLastInstan;
|
|
301922
|
+
|
|
301948
301923
|
const node = this.getCurrentNodeAs(_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_3__.RemoveRowButtonNode);
|
|
301949
301924
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("RemoveRowButton");
|
|
301950
301925
|
markupBuilder.prop("data-tid").set(node.tid);
|
|
301951
301926
|
markupBuilder.prop(x => x.hint).set(node.hint);
|
|
301927
|
+
markupBuilder.prop(x => x.clearLastInstance).set((_node$clearLastInstan = node.clearLastInstance) !== null && _node$clearLastInstan !== void 0 ? _node$clearLastInstan : false);
|
|
301952
301928
|
return markupBuilder.buildConverterResult();
|
|
301953
301929
|
}
|
|
301954
301930
|
|
|
@@ -301968,7 +301944,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
301968
301944
|
/* harmony export */ "RemoveRowButtonNode": () => (/* binding */ RemoveRowButtonNode)
|
|
301969
301945
|
/* harmony export */ });
|
|
301970
301946
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
301971
|
-
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
301947
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
301972
301948
|
|
|
301973
301949
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
301974
301950
|
|
|
@@ -301977,13 +301953,15 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
301977
301953
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
301978
301954
|
|
|
301979
301955
|
|
|
301980
|
-
let RemoveRowButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("removerowbutton", `Кнопка удаления множественного элемента в виде креста`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/RemoveRowButton sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.localizedString, ``), _dec(_class = (_class2 = class RemoveRowButtonNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
|
|
301956
|
+
let RemoveRowButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("removerowbutton", `Кнопка удаления множественного элемента в виде креста`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/RemoveRowButton sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("clearLastInstance", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.boolean, `При удалении последнего элемента он будет очищаться, а не удаляться`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.localizedString, ``), _dec(_class = (_class2 = class RemoveRowButtonNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
|
|
301981
301957
|
constructor(...args) {
|
|
301982
301958
|
super(...args);
|
|
301983
301959
|
|
|
301984
301960
|
_initializerDefineProperty(this, "tid", _descriptor, this);
|
|
301985
301961
|
|
|
301986
|
-
_initializerDefineProperty(this, "
|
|
301962
|
+
_initializerDefineProperty(this, "clearLastInstance", _descriptor2, this);
|
|
301963
|
+
|
|
301964
|
+
_initializerDefineProperty(this, "hint", _descriptor3, this);
|
|
301987
301965
|
}
|
|
301988
301966
|
|
|
301989
301967
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "tid", [_dec2], {
|
|
@@ -301991,7 +301969,12 @@ let RemoveRowButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORT
|
|
|
301991
301969
|
enumerable: true,
|
|
301992
301970
|
writable: true,
|
|
301993
301971
|
initializer: null
|
|
301994
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
301972
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "clearLastInstance", [_dec3], {
|
|
301973
|
+
configurable: true,
|
|
301974
|
+
enumerable: true,
|
|
301975
|
+
writable: true,
|
|
301976
|
+
initializer: null
|
|
301977
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "hint", [_dec4], {
|
|
301995
301978
|
configurable: true,
|
|
301996
301979
|
enumerable: true,
|
|
301997
301980
|
writable: true,
|
|
@@ -305705,9 +305688,29 @@ class CheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
305705
305688
|
|
|
305706
305689
|
doBuildDataDeclaration(context) {
|
|
305707
305690
|
const node = this.getCurrentNodeAs(_CheckboxNode__WEBPACK_IMPORTED_MODULE_5__.CheckboxNode);
|
|
305708
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.
|
|
305691
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false, this.getDefaultValue(node))]]), context.addSpecialFieldsEntry(node, {
|
|
305709
305692
|
optional: node.dataBinding.optional
|
|
305710
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
305693
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
305694
|
+
}
|
|
305695
|
+
|
|
305696
|
+
getDefaultValue(node) {
|
|
305697
|
+
var _node$dataBinding$def;
|
|
305698
|
+
|
|
305699
|
+
const defaultValue = (_node$dataBinding$def = node.dataBinding.defaultValue) !== null && _node$dataBinding$def !== void 0 ? _node$dataBinding$def : "";
|
|
305700
|
+
|
|
305701
|
+
if (defaultValue) {
|
|
305702
|
+
if (defaultValue === "checked") {
|
|
305703
|
+
var _node$checkedValue;
|
|
305704
|
+
|
|
305705
|
+
return (_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : true;
|
|
305706
|
+
} else {
|
|
305707
|
+
var _node$uncheckedValue;
|
|
305708
|
+
|
|
305709
|
+
return (_node$uncheckedValue = node.uncheckedValue) !== null && _node$uncheckedValue !== void 0 ? _node$uncheckedValue : false;
|
|
305710
|
+
}
|
|
305711
|
+
}
|
|
305712
|
+
|
|
305713
|
+
return defaultValue;
|
|
305711
305714
|
}
|
|
305712
305715
|
|
|
305713
305716
|
buildChildrenDataDeclaration(context) {
|
|
@@ -305906,7 +305909,7 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
305906
305909
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.disabled ? undefined : ["disabled", context.initSequenceFactory.disabled()]]), context.addSpecialFieldsEntry(node, {
|
|
305907
305910
|
optional: node.dataBinding.optional,
|
|
305908
305911
|
disabled: node.disabled
|
|
305909
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
305912
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
305910
305913
|
}
|
|
305911
305914
|
|
|
305912
305915
|
buildChildrenDataDeclaration(context) {
|
|
@@ -306409,7 +306412,7 @@ class DateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Sug
|
|
|
306409
306412
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
306410
306413
|
optional: node.dataBinding.optional,
|
|
306411
306414
|
disabled: node.disabled
|
|
306412
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
306415
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
306413
306416
|
}
|
|
306414
306417
|
|
|
306415
306418
|
buildChildrenDataDeclaration(context) {
|
|
@@ -306620,7 +306623,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
306620
306623
|
const node = this.getCurrentNodeAs(_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_5__.DiadocSuggestComboBoxNode);
|
|
306621
306624
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)], ["disabled", context.initSequenceFactory.disabled()]]), context.addSpecialFieldsEntry(node, {
|
|
306622
306625
|
optional: node.dataBinding.optional
|
|
306623
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
306626
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
306624
306627
|
}
|
|
306625
306628
|
|
|
306626
306629
|
buildChildrenDataDeclaration(context) {
|
|
@@ -306989,7 +306992,7 @@ class FiasFnsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
306989
306992
|
|
|
306990
306993
|
doBuildDataDeclaration(context) {
|
|
306991
306994
|
const node = this.getCurrentNodeAs(_FiasFnsNode__WEBPACK_IMPORTED_MODULE_4__.FiasFnsNode);
|
|
306992
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addChildPathSectionDeclarationEntry(node, "InternalFiasId"), context.addChildPathSectionDeclarationEntry(node, "ИдНом"), context.addChildPathSectionDeclarationEntry(node, "Регион"), context.addChildPathSectionDeclarationEntry(node, "МуниципРайон/ВидКод"), context.addChildPathSectionDeclarationEntry(node, "МуниципРайон/Наим"), context.addChildPathSectionDeclarationEntry(node, "ГородСелПоселен/ВидКод"), context.addChildPathSectionDeclarationEntry(node, "ГородСелПоселен/Наим"), context.addChildPathSectionDeclarationEntry(node, "НаселенПункт/Вид"), context.addChildPathSectionDeclarationEntry(node, "НаселенПункт/Наим"), context.addChildPathSectionDeclarationEntry(node, "ЭлПланСтруктур/Тип"), context.addChildPathSectionDeclarationEntry(node, "ЭлПланСтруктур/Наим"), context.addChildPathSectionDeclarationEntry(node, "ЭлУлДорСети/Тип"), context.addChildPathSectionDeclarationEntry(node, "ЭлУлДорСети/Наим"), context.addChildPathSectionDeclarationEntry(node, "ЗемелУчасток"), context.addChildrenPathDeclEntryForChild(node, true, node.dataBinding.path, "Здание/*"), context.addChildPathSectionDeclarationEntry(node, "Здание/*/Тип"), context.addChildPathSectionDeclarationEntry(node, "Здание/*/Номер"), context.addChildPathSectionDeclarationEntry(node, "ПомещЗдания/Тип"), context.addChildPathSectionDeclarationEntry(node, "ПомещЗдания/Номер"), context.addChildPathSectionDeclarationEntry(node, "ПомещКвартиры/Тип"), context.addChildPathSectionDeclarationEntry(node, "ПомещКвартиры/Номер"));
|
|
306995
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "InternalFiasId", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ИдНом", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "Регион", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "МуниципРайон/ВидКод", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "МуниципРайон/Наим", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ГородСелПоселен/ВидКод", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ГородСелПоселен/Наим", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "НаселенПункт/Вид", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "НаселенПункт/Наим", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ЭлПланСтруктур/Тип", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ЭлПланСтруктур/Наим", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ЭлУлДорСети/Тип", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ЭлУлДорСети/Наим", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ЗемелУчасток", node.dataBinding.requisite), context.addChildrenPathDeclEntryForChild(node, true, node.dataBinding.path, "Здание/*", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "Здание/*/Тип", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "Здание/*/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ПомещЗдания/Тип", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ПомещЗдания/Номер", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ПомещКвартиры/Тип", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "ПомещКвартиры/Номер", node.dataBinding.requisite));
|
|
306993
306996
|
}
|
|
306994
306997
|
|
|
306995
306998
|
buildChildrenDataDeclaration(context) {
|
|
@@ -307089,7 +307092,7 @@ class FiasMvdConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
307089
307092
|
|
|
307090
307093
|
doBuildDataDeclaration(context) {
|
|
307091
307094
|
const node = this.getCurrentNodeAs(_FiasMvdNode__WEBPACK_IMPORTED_MODULE_4__.FiasMvdNode);
|
|
307092
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addChildPathSectionDeclarationEntry(node, "InternalFiasId"), context.addChildPathSectionDeclarationEntry(node, "addressObjectString"), context.addChildrenPathDeclEntryForChild(node, true, node.dataBinding.path, "housing/*"), context.addChildPathSectionDeclarationEntry(node, "housing/*/type"), context.addChildPathSectionDeclarationEntry(node, "housing/*/type/type"), context.addChildPathSectionDeclarationEntry(node, "housing/*/type/element"), context.addChildPathSectionDeclarationEntry(node, "housing/*/type/value"), context.addChildPathSectionDeclarationEntry(node, "housing/*/value"));
|
|
307095
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "InternalFiasId", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "addressObjectString", node.dataBinding.requisite), context.addChildrenPathDeclEntryForChild(node, true, node.dataBinding.path, "housing/*", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "housing/*/type", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "housing/*/type/type", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "housing/*/type/element", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "housing/*/type/value", node.dataBinding.requisite), context.addChildPathSectionDeclarationEntry(node, "housing/*/value", node.dataBinding.requisite));
|
|
307093
307096
|
}
|
|
307094
307097
|
|
|
307095
307098
|
buildChildrenDataDeclaration(context) {
|
|
@@ -307191,6 +307194,17 @@ class FileLoaderConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4
|
|
|
307191
307194
|
return _FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode;
|
|
307192
307195
|
}
|
|
307193
307196
|
|
|
307197
|
+
*getAttachmentPaths() {
|
|
307198
|
+
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
307199
|
+
const multiple = !node.single;
|
|
307200
|
+
|
|
307201
|
+
if (multiple) {
|
|
307202
|
+
yield node.getFullPath().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each).joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
307203
|
+
} else {
|
|
307204
|
+
yield node.getFullPath().joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_7__.AttachmentInfoPath);
|
|
307205
|
+
}
|
|
307206
|
+
}
|
|
307207
|
+
|
|
307194
307208
|
doBuildNodeValidations(validationGenerator) {
|
|
307195
307209
|
const node = this.getCurrentNodeAs(_FileLoaderNode__WEBPACK_IMPORTED_MODULE_10__.FileLoaderNode);
|
|
307196
307210
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, {
|
|
@@ -307284,7 +307298,7 @@ class FileLoaderConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4
|
|
|
307284
307298
|
[fileLoaderPath.toLegacyPath()]: {
|
|
307285
307299
|
fnsConvertFileExtentions: attachmentType === null || attachmentType === void 0 ? void 0 : attachmentType.fnsConvertFileExtentions
|
|
307286
307300
|
}
|
|
307287
|
-
}, context.addChildPathSectionDeclarationEntry(fileLoader, additionalPath));
|
|
307301
|
+
}, context.addChildPathSectionDeclarationEntry(fileLoader, additionalPath, false));
|
|
307288
307302
|
}
|
|
307289
307303
|
|
|
307290
307304
|
convertChildren(context, nodes = []) {
|
|
@@ -307734,7 +307748,7 @@ class INNConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.Suga
|
|
|
307734
307748
|
|
|
307735
307749
|
doBuildDataDeclaration(context) {
|
|
307736
307750
|
const node = this.getCurrentNodeAs(_INNNode__WEBPACK_IMPORTED_MODULE_3__.INNNode);
|
|
307737
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
307751
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
307738
307752
|
}
|
|
307739
307753
|
|
|
307740
307754
|
buildChildrenDataDeclaration(context) {
|
|
@@ -307893,7 +307907,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
307893
307907
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
|
|
307894
307908
|
optional: node.dataBinding.optional,
|
|
307895
307909
|
disabled: node.disabled
|
|
307896
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
307910
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
307897
307911
|
}
|
|
307898
307912
|
|
|
307899
307913
|
doBuildNormalizeRules(builder) {
|
|
@@ -307927,7 +307941,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
307927
307941
|
|
|
307928
307942
|
setCurrencyProps(markupBuilder, context, node) {
|
|
307929
307943
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
307930
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
307944
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
307931
307945
|
markupBuilder.prop(x => x.currency).set(node.currency);
|
|
307932
307946
|
|
|
307933
307947
|
if (node.currency) {
|
|
@@ -307978,7 +307992,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
307978
307992
|
var _typeNode$base2, _node$maskChar, _node$width;
|
|
307979
307993
|
|
|
307980
307994
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
307981
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
307995
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
307982
307996
|
const typeBase = (_typeNode$base2 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base2 !== void 0 ? _typeNode$base2 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
307983
307997
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("Input");
|
|
307984
307998
|
|
|
@@ -308034,7 +308048,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Su
|
|
|
308034
308048
|
var _typeNode$base3, _node$width2;
|
|
308035
308049
|
|
|
308036
308050
|
const typeNode = context.getTypeNode(node.validationInfo);
|
|
308037
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
308051
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
308038
308052
|
const typeBase = (_typeNode$base3 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base3 !== void 0 ? _typeNode$base3 : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.baseType;
|
|
308039
308053
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_3__.componentMarkupBuilder)("FxInput");
|
|
308040
308054
|
|
|
@@ -308620,7 +308634,7 @@ class KladrConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_5__.Su
|
|
|
308620
308634
|
const node = this.getCurrentNodeAs(_KladrNode__WEBPACK_IMPORTED_MODULE_7__.KladrNode);
|
|
308621
308635
|
return context.mergeDataDeclaration(node.kind === "stat" ? context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)], ["index", context.initSequenceFactory.takeFromModelOrFetchFn("index", node.dataBinding.fetchfn)], ["regionCode", context.initSequenceFactory.takeFromModelOrFetchFn("regionCode", node.dataBinding.fetchfn)], ["district", context.initSequenceFactory.takeFromModelOrFetchFn("district", node.dataBinding.fetchfn)], ["city", context.initSequenceFactory.takeFromModelOrFetchFn("city", node.dataBinding.fetchfn)], ["settlement", context.initSequenceFactory.takeFromModelOrFetchFn("settlement", node.dataBinding.fetchfn)], ["street", context.initSequenceFactory.takeFromModelOrFetchFn("street", node.dataBinding.fetchfn)], ["house", context.initSequenceFactory.takeFromModelOrFetchFn("house", node.dataBinding.fetchfn)], ["building", context.initSequenceFactory.takeFromModelOrFetchFn("building", node.dataBinding.fetchfn)], ["room", context.initSequenceFactory.takeFromModelOrFetchFn("room", node.dataBinding.fetchfn)]]) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__.emptyDataDeclarationCollection, context.addSpecialFieldsEntry(node, {
|
|
308622
308636
|
optional: node.dataBinding.optional
|
|
308623
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
308637
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
308624
308638
|
}
|
|
308625
308639
|
|
|
308626
308640
|
buildChildrenDataDeclaration(context) {
|
|
@@ -308927,7 +308941,7 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
308927
308941
|
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_6__.PicklistNode);
|
|
308928
308942
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
|
|
308929
308943
|
optional: node.dataBinding.optional
|
|
308930
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt2 = node.dataBinding.optional) !== null && _node$dataBinding$opt2 !== void 0 ? _node$dataBinding$opt2 : false));
|
|
308944
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt2 = node.dataBinding.optional) !== null && _node$dataBinding$opt2 !== void 0 ? _node$dataBinding$opt2 : false, node.dataBinding.requisite));
|
|
308931
308945
|
}
|
|
308932
308946
|
|
|
308933
308947
|
get nodePaths() {
|
|
@@ -309370,7 +309384,7 @@ class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1
|
|
|
309370
309384
|
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_4__.RadioGroupNode);
|
|
309371
309385
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
|
|
309372
309386
|
optional: node.dataBinding.optional
|
|
309373
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
309387
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
309374
309388
|
}
|
|
309375
309389
|
|
|
309376
309390
|
buildChildrenDataDeclaration(context) {
|
|
@@ -309723,7 +309737,7 @@ class SelectConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.S
|
|
|
309723
309737
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.disabled ? undefined : ["disabled", context.initSequenceFactory.disabled()]]), context.addSpecialFieldsEntry(node, {
|
|
309724
309738
|
optional: node.dataBinding.optional,
|
|
309725
309739
|
disabled: node.disabled
|
|
309726
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
309740
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
309727
309741
|
}
|
|
309728
309742
|
|
|
309729
309743
|
buildChildrenDataDeclaration(context) {
|
|
@@ -310288,7 +310302,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
310288
310302
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
310289
310303
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
310290
310304
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
310291
|
-
/* harmony import */ var
|
|
310305
|
+
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
310306
|
+
/* harmony import */ var _TextAreaNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Textarea/TextAreaNode.ts");
|
|
310307
|
+
|
|
310292
310308
|
|
|
310293
310309
|
|
|
310294
310310
|
|
|
@@ -310298,39 +310314,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
310298
310314
|
|
|
310299
310315
|
class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
310300
310316
|
static getAcceptNodeClass() {
|
|
310301
|
-
return
|
|
310317
|
+
return _TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode;
|
|
310302
310318
|
}
|
|
310303
310319
|
|
|
310304
310320
|
doBuildNodeValidations(validationGenerator) {
|
|
310305
|
-
const node = this.getCurrentNodeAs(
|
|
310321
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310306
310322
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription);
|
|
310307
310323
|
}
|
|
310308
310324
|
|
|
310309
310325
|
doBuildDataDeclaration(context) {
|
|
310310
|
-
const node = this.getCurrentNodeAs(
|
|
310326
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310311
310327
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
310312
310328
|
optional: node.dataBinding.optional,
|
|
310313
310329
|
disabled: node.disabled
|
|
310314
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
310330
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
310315
310331
|
}
|
|
310316
310332
|
|
|
310317
310333
|
buildChildrenDataDeclaration(context) {
|
|
310318
|
-
const node = this.getCurrentNodeAs(
|
|
310334
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310319
310335
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
310320
310336
|
}
|
|
310321
310337
|
|
|
310322
310338
|
*doTraverseChildren() {
|
|
310323
|
-
const node = this.getCurrentNodeAs(
|
|
310339
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310324
310340
|
yield* node.helpNodes;
|
|
310325
310341
|
}
|
|
310326
310342
|
|
|
310327
310343
|
get nodePaths() {
|
|
310328
|
-
const node = this.getCurrentNodeAs(
|
|
310344
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310329
310345
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
|
|
310330
310346
|
}
|
|
310331
310347
|
|
|
310332
310348
|
doConvert(context) {
|
|
310333
|
-
const node = this.getCurrentNodeAs(
|
|
310349
|
+
const node = this.getCurrentNodeAs(_TextAreaNode__WEBPACK_IMPORTED_MODULE_7__.TextAreaNode);
|
|
310334
310350
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
310335
310351
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("TextArea");
|
|
310336
310352
|
|
|
@@ -310346,6 +310362,12 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
310346
310362
|
markupBuilder.prop(x => x.resize).set(node.resize);
|
|
310347
310363
|
markupBuilder.prop(x => x.autoResize).set(node.autoResize);
|
|
310348
310364
|
|
|
310365
|
+
if (node.useLengthLimit) {
|
|
310366
|
+
var _node$maxTextLength;
|
|
310367
|
+
|
|
310368
|
+
markupBuilder.prop(x => x.textMaxLength).set((_node$maxTextLength = node.maxTextLength) !== null && _node$maxTextLength !== void 0 ? _node$maxTextLength : this.getTextMaxLength(context, node, node.validationInfo));
|
|
310369
|
+
}
|
|
310370
|
+
|
|
310349
310371
|
if (node.disabled2 != undefined) {
|
|
310350
310372
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
|
|
310351
310373
|
|
|
@@ -310358,6 +310380,14 @@ class TextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
310358
310380
|
return markupBuilder.buildConverterResultWithHelp(node, context);
|
|
310359
310381
|
}
|
|
310360
310382
|
|
|
310383
|
+
getTextMaxLength(context, node, nodeValidationInfo) {
|
|
310384
|
+
var _ref, _ref2, _typeNode$flattenType, _typeNode$flattenType2, _typeNode$flattenType3;
|
|
310385
|
+
|
|
310386
|
+
const typeNode = context.getTypeNode(nodeValidationInfo);
|
|
310387
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
310388
|
+
return (_ref = (_ref2 = (_typeNode$flattenType = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType2 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.LengthTypeCheckNode))) === null || _typeNode$flattenType2 === void 0 ? void 0 : _typeNode$flattenType2.value) !== null && _typeNode$flattenType !== void 0 ? _typeNode$flattenType : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.length) !== null && _ref2 !== void 0 ? _ref2 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType3 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_6__.MaxlengthTypeCheckNode))) === null || _typeNode$flattenType3 === void 0 ? void 0 : _typeNode$flattenType3.value) !== null && _ref !== void 0 ? _ref : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength;
|
|
310389
|
+
}
|
|
310390
|
+
|
|
310361
310391
|
}
|
|
310362
310392
|
|
|
310363
310393
|
/***/ }),
|
|
@@ -310381,7 +310411,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
310381
310411
|
/* harmony import */ var _Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Helpers/Help/HelpNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Help/HelpNode.ts");
|
|
310382
310412
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
310383
310413
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
310384
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
310414
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
|
|
310385
310415
|
|
|
310386
310416
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
310387
310417
|
|
|
@@ -310397,7 +310427,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
310397
310427
|
|
|
310398
310428
|
|
|
310399
310429
|
|
|
310400
|
-
let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("textarea", `Расширяющееся поле`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Textarea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_6__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина. Не может быть меньше 250`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Typo), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec(_class = (_class2 = class TextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
310430
|
+
let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("textarea", `Расширяющееся поле`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Textarea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_0__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_1__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_6__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.lengthUnit, `Ширина. Не может быть меньше 250`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Typo), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.bindingPath, ``), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, ``), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_5__.HelpNode]), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("useLengthLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Включает отображение счётчик длины текста`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maxTextLength", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Задаёт максимальное кол-во символов для счётчика длины текста. Если не указано, значение будет братся из валидации или схемы`), _dec(_class = (_class2 = class TextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
310401
310431
|
constructor(...args) {
|
|
310402
310432
|
super(...args);
|
|
310403
310433
|
|
|
@@ -310428,6 +310458,10 @@ let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
310428
310458
|
_initializerDefineProperty(this, "help", _descriptor13, this);
|
|
310429
310459
|
|
|
310430
310460
|
_initializerDefineProperty(this, "helpNodes", _descriptor14, this);
|
|
310461
|
+
|
|
310462
|
+
_initializerDefineProperty(this, "useLengthLimit", _descriptor15, this);
|
|
310463
|
+
|
|
310464
|
+
_initializerDefineProperty(this, "maxTextLength", _descriptor16, this);
|
|
310431
310465
|
}
|
|
310432
310466
|
|
|
310433
310467
|
getOwnPath() {
|
|
@@ -310504,6 +310538,16 @@ let TextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
310504
310538
|
enumerable: true,
|
|
310505
310539
|
writable: true,
|
|
310506
310540
|
initializer: null
|
|
310541
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "useLengthLimit", [_dec16], {
|
|
310542
|
+
configurable: true,
|
|
310543
|
+
enumerable: true,
|
|
310544
|
+
writable: true,
|
|
310545
|
+
initializer: null
|
|
310546
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "maxTextLength", [_dec17], {
|
|
310547
|
+
configurable: true,
|
|
310548
|
+
enumerable: true,
|
|
310549
|
+
writable: true,
|
|
310550
|
+
initializer: null
|
|
310507
310551
|
})), _class2)) || _class);
|
|
310508
310552
|
|
|
310509
310553
|
/***/ }),
|
|
@@ -310548,7 +310592,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
310548
310592
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
310549
310593
|
optional: node.dataBinding.optional,
|
|
310550
310594
|
disabled: node.disabled
|
|
310551
|
-
}), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
310595
|
+
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
310552
310596
|
}
|
|
310553
310597
|
|
|
310554
310598
|
buildChildrenDataDeclaration(context) {
|
|
@@ -310601,7 +310645,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
310601
310645
|
var _ref, _ref2, _typeNode$flattenType, _typeNode$flattenType2, _typeNode$flattenType3;
|
|
310602
310646
|
|
|
310603
310647
|
const typeNode = context.getTypeNode(nodeValidationInfo);
|
|
310604
|
-
const schemaTypeInfo = context.getSchemaTypeInfo(
|
|
310648
|
+
const schemaTypeInfo = context.getSchemaTypeInfo(node.getFullPath());
|
|
310605
310649
|
return (_ref = (_ref2 = (_typeNode$flattenType = typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType2 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.LengthTypeCheckNode))) === null || _typeNode$flattenType2 === void 0 ? void 0 : _typeNode$flattenType2.value) !== null && _typeNode$flattenType !== void 0 ? _typeNode$flattenType : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.length) !== null && _ref2 !== void 0 ? _ref2 : typeNode === null || typeNode === void 0 ? void 0 : (_typeNode$flattenType3 = typeNode.flattenTypeCheckNodes().find((0,_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ofType)(_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxlengthTypeCheckNode))) === null || _typeNode$flattenType3 === void 0 ? void 0 : _typeNode$flattenType3.value) !== null && _ref !== void 0 ? _ref : schemaTypeInfo === null || schemaTypeInfo === void 0 ? void 0 : schemaTypeInfo.maxLength;
|
|
310606
310650
|
}
|
|
310607
310651
|
|
|
@@ -310972,7 +311016,7 @@ class FIOConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Suga
|
|
|
310972
311016
|
|
|
310973
311017
|
const node = this.getCurrentNodeAs(_FIONode__WEBPACK_IMPORTED_MODULE_5__.FIONode);
|
|
310974
311018
|
const hasBossAndAgent = (_node$fetchfn$include = (_node$fetchfn = node.fetchfn) === null || _node$fetchfn === void 0 ? void 0 : _node$fetchfn.includes("sign")) !== null && _node$fetchfn$include !== void 0 ? _node$fetchfn$include : false;
|
|
310975
|
-
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node,
|
|
311019
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node, false), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), {
|
|
310976
311020
|
[(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getBindingPathWithSuffix)(node, "Фамилия")]: {
|
|
310977
311021
|
value: context.initSequenceFactory.takeFromFetchFunctionOrDefault(node.fetchfn + "surname", "value", ""),
|
|
310978
311022
|
...(hasBossAndAgent ? {
|
|
@@ -311392,7 +311436,7 @@ class TextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
311392
311436
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], fetchfn !== null && fetchfn !== void 0 && fetchfn.includes("sign") ? ["bossValue", context.initSequenceFactory.takeFromFetchFunction(fetchfn, "bossValue")] : undefined, fetchfn !== null && fetchfn !== void 0 && fetchfn.includes("sign") ? ["agentValue", context.initSequenceFactory.takeFromFetchFunction(fetchfn, "agentValue")] : undefined, fetchfn === "sendername" ? ["senderInn", context.initSequenceFactory.takeFromFetchFunction(fetchfn, "senderInn")] : undefined, fetchfn === "editablenameorg" || fetchfn === "formsclientinfo_editablenameorg" ? ["nameorg", context.initSequenceFactory.takeFromFetchFunction(fetchfn, "nameorg")] : undefined]), context.addSpecialFieldsEntry(node, {
|
|
311393
311437
|
optional: node.dataBinding.optional,
|
|
311394
311438
|
disabled: node.disabled
|
|
311395
|
-
}), node.dataBinding.path && context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
|
|
311439
|
+
}), node.dataBinding.path && context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
311396
311440
|
}
|
|
311397
311441
|
|
|
311398
311442
|
buildChildrenDataDeclaration(context) {
|
|
@@ -312049,17 +312093,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
312049
312093
|
|
|
312050
312094
|
|
|
312051
312095
|
class MarkupBuildingContext {
|
|
312052
|
-
constructor(convertNode, nodeContext, formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations) {
|
|
312096
|
+
constructor(convertNode, nodeContext, formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, dataDeclarationHelper, useSchemaValidations) {
|
|
312053
312097
|
this.convertNode = void 0;
|
|
312054
312098
|
this.formSourcesPath = void 0;
|
|
312055
312099
|
this.helpers = void 0;
|
|
312056
312100
|
this.pathsContext = void 0;
|
|
312101
|
+
this.dataDeclarationHelper = void 0;
|
|
312057
312102
|
this.schemaRng = void 0;
|
|
312058
312103
|
this.useSchemaValidations = void 0;
|
|
312059
312104
|
this.typesRegistry = void 0;
|
|
312060
312105
|
this.uniqueControlIdIncrement = new Map();
|
|
312061
312106
|
this.controlCustomizationContext = void 0;
|
|
312062
312107
|
this.tourSteps = void 0;
|
|
312108
|
+
this.dataDeclarationHelper = dataDeclarationHelper;
|
|
312063
312109
|
this.schemaRng = schemaRng;
|
|
312064
312110
|
this.useSchemaValidations = useSchemaValidations;
|
|
312065
312111
|
this.typesRegistry = typesRegistry;
|
|
@@ -312071,6 +312117,18 @@ class MarkupBuildingContext {
|
|
|
312071
312117
|
this.helpers = helpers;
|
|
312072
312118
|
}
|
|
312073
312119
|
|
|
312120
|
+
isNodeOptional(nodePath) {
|
|
312121
|
+
if (this.useSchemaValidations) {
|
|
312122
|
+
if (this.dataDeclarationHelper.isNodeOptional(nodePath) == false) {
|
|
312123
|
+
return this.schemaRng.getIsOptionalByPath(nodePath);
|
|
312124
|
+
} else {
|
|
312125
|
+
return true;
|
|
312126
|
+
}
|
|
312127
|
+
}
|
|
312128
|
+
|
|
312129
|
+
return this.dataDeclarationHelper.isNodeOptional(nodePath);
|
|
312130
|
+
}
|
|
312131
|
+
|
|
312074
312132
|
getUniqueControlId(context) {
|
|
312075
312133
|
let currentValue = this.uniqueControlIdIncrement.get(context);
|
|
312076
312134
|
|
|
@@ -312202,7 +312260,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
312202
312260
|
|
|
312203
312261
|
|
|
312204
312262
|
class MarkupGenerator {
|
|
312205
|
-
constructor(formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations) {
|
|
312263
|
+
constructor(formSourcesPath, helpers, tourSteps, controlCustomizationContext, typesRegistry, schemaRng, dataDeclarationHelper, useSchemaValidations) {
|
|
312206
312264
|
this.controlCustomizationContext = void 0;
|
|
312207
312265
|
this.markupBuilderContext = void 0;
|
|
312208
312266
|
|
|
@@ -312237,7 +312295,7 @@ class MarkupGenerator {
|
|
|
312237
312295
|
};
|
|
312238
312296
|
|
|
312239
312297
|
this.controlCustomizationContext = controlCustomizationContext;
|
|
312240
|
-
this.markupBuilderContext = new _IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_5__.MarkupBuildingContext(this.convertNode, new _ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_7__.NodePathsContext(), formSourcesPath, helpers, tourSteps, this.controlCustomizationContext, typesRegistry, schemaRng, useSchemaValidations);
|
|
312298
|
+
this.markupBuilderContext = new _IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_5__.MarkupBuildingContext(this.convertNode, new _ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_7__.NodePathsContext(), formSourcesPath, helpers, tourSteps, this.controlCustomizationContext, typesRegistry, schemaRng, dataDeclarationHelper, useSchemaValidations);
|
|
312241
312299
|
}
|
|
312242
312300
|
|
|
312243
312301
|
generate(sugarRoot, builder) {
|
|
@@ -313679,6 +313737,16 @@ class SugarNodeBase {
|
|
|
313679
313737
|
return this.parent.findParentOfTypeStrict(nodeClass);
|
|
313680
313738
|
}
|
|
313681
313739
|
|
|
313740
|
+
findParentOfType(nodeClass) {
|
|
313741
|
+
var _this$parent;
|
|
313742
|
+
|
|
313743
|
+
if (this.parent instanceof nodeClass) {
|
|
313744
|
+
return this.parent;
|
|
313745
|
+
}
|
|
313746
|
+
|
|
313747
|
+
return (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.findParentOfType(nodeClass);
|
|
313748
|
+
}
|
|
313749
|
+
|
|
313682
313750
|
getFullPath() {
|
|
313683
313751
|
if (this.parent == undefined) {
|
|
313684
313752
|
const ownPath = this.getOwnPath();
|
|
@@ -313723,9 +313791,36 @@ class UnknownSugarNode extends SugarNodeBase {
|
|
|
313723
313791
|
this.name = name;
|
|
313724
313792
|
}
|
|
313725
313793
|
|
|
313794
|
+
get path() {
|
|
313795
|
+
return this.sourceXmlNode.attrAsString("path");
|
|
313796
|
+
}
|
|
313797
|
+
|
|
313798
|
+
get optional() {
|
|
313799
|
+
return this.sourceXmlNode.attrAsBoolean("optional");
|
|
313800
|
+
}
|
|
313801
|
+
|
|
313802
|
+
get fetchfn() {
|
|
313803
|
+
return this.sourceXmlNode.attrAsString("fetchfn");
|
|
313804
|
+
}
|
|
313805
|
+
|
|
313806
|
+
get defaultValue() {
|
|
313807
|
+
return this.sourceXmlNode.attrAsString("defaultValue");
|
|
313808
|
+
}
|
|
313809
|
+
|
|
313810
|
+
get requisite() {
|
|
313811
|
+
return this.sourceXmlNode.attrAsBoolean("requisite");
|
|
313812
|
+
}
|
|
313813
|
+
|
|
313814
|
+
get settings() {
|
|
313815
|
+
return this.sourceXmlNode.attrAsBoolean("settings");
|
|
313816
|
+
}
|
|
313817
|
+
|
|
313818
|
+
get disabled() {
|
|
313819
|
+
return this.sourceXmlNode.attrAsBoolean("disabled");
|
|
313820
|
+
}
|
|
313821
|
+
|
|
313726
313822
|
getOwnPath() {
|
|
313727
|
-
|
|
313728
|
-
return pathAttributeValue != undefined ? _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.ModelPath.createFromMask(pathAttributeValue, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each) : undefined;
|
|
313823
|
+
return this.path != undefined ? _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.ModelPath.createFromMask(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each) : undefined;
|
|
313729
313824
|
}
|
|
313730
313825
|
|
|
313731
313826
|
}
|
|
@@ -313955,6 +314050,9 @@ class SugarNodeConverterBase {
|
|
|
313955
314050
|
this.buildChildrenValidations(validationGenerator);
|
|
313956
314051
|
}
|
|
313957
314052
|
|
|
314053
|
+
*getAttachmentPaths() {// no paths by default
|
|
314054
|
+
}
|
|
314055
|
+
|
|
313958
314056
|
*buildFLangValidations(buildContext) {
|
|
313959
314057
|
yield* this.doBuildFLangValidations(buildContext);
|
|
313960
314058
|
yield* this.buildChildrenFLangValidations(buildContext);
|
|
@@ -315982,14 +316080,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
315982
316080
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
315983
316081
|
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
315984
316082
|
/* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
|
|
315985
|
-
/* harmony import */ var
|
|
315986
|
-
/* harmony import */ var
|
|
315987
|
-
/* harmony import */ var
|
|
315988
|
-
/* harmony import */ var
|
|
315989
|
-
/* harmony import */ var
|
|
315990
|
-
/* harmony import */ var
|
|
315991
|
-
/* harmony import */ var
|
|
315992
|
-
/* harmony import */ var
|
|
316083
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
316084
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts");
|
|
316085
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
|
|
316086
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator.ts");
|
|
316087
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator.ts");
|
|
316088
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/EnumerationValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/EnumerationValidatorGenerator.ts");
|
|
316089
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator.ts");
|
|
316090
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator.ts");
|
|
316091
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
|
|
316092
|
+
|
|
315993
316093
|
|
|
315994
316094
|
|
|
315995
316095
|
|
|
@@ -316007,7 +316107,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
316007
316107
|
|
|
316008
316108
|
class ValidationGenerator {
|
|
316009
316109
|
constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = []) {
|
|
316010
|
-
this.typeBasedValidatorGenerators = [
|
|
316110
|
+
this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_14__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_15__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.CustomValidationValueValidatorGenerator];
|
|
316011
316111
|
this.sugarRoot = void 0;
|
|
316012
316112
|
this.validationsContent = void 0;
|
|
316013
316113
|
this.customValidations = void 0;
|
|
@@ -316143,7 +316243,7 @@ class ValidationGenerator {
|
|
|
316143
316243
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_6__.InvalidProgramStateError();
|
|
316144
316244
|
}
|
|
316145
316245
|
|
|
316146
|
-
const bindingPath = firstItem.bindingPath;
|
|
316246
|
+
const bindingPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.convertToAbsolutModelPath)(firstItem.bindingPath);
|
|
316147
316247
|
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
316148
316248
|
const sugarOptional = (_validationInfos$find = validationInfos.find(x => x.sugarOptional != undefined)) === null || _validationInfos$find === void 0 ? void 0 : _validationInfos$find.sugarOptional;
|
|
316149
316249
|
const isOptional = sugarOptional !== null && sugarOptional !== void 0 ? sugarOptional : this.isOptionalFromSchema(bindingPath);
|
|
@@ -316181,7 +316281,7 @@ class ValidationGenerator {
|
|
|
316181
316281
|
|
|
316182
316282
|
|
|
316183
316283
|
processValidations(bindingPath, sugarOptional, sugarNodeType, gId, highOrderDescription, fileLoaderOptions) {
|
|
316184
|
-
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
316284
|
+
const rngSchemaNodeType = this.getRngSchemaTypeInfo((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.convertToAbsolutModelPath)(bindingPath));
|
|
316185
316285
|
|
|
316186
316286
|
if (bindingPath && (sugarNodeType != undefined || rngSchemaNodeType != undefined)) {
|
|
316187
316287
|
var _this$validations$val;
|