@kontur.candy/generator 4.232.0-staff.1 → 4.232.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 +774 -283
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1061,6 +1061,24 @@ webpackContext.id = "./Generator/src/generators/markupGenerator/ElementProcessor
|
|
|
1061
1061
|
|
|
1062
1062
|
/***/ }),
|
|
1063
1063
|
|
|
1064
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist sync recursive .md$":
|
|
1065
|
+
/*!******************************************************************************************************!*\
|
|
1066
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/ sync .md$ ***!
|
|
1067
|
+
\******************************************************************************************************/
|
|
1068
|
+
/***/ ((module) => {
|
|
1069
|
+
|
|
1070
|
+
function webpackEmptyContext(req) {
|
|
1071
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
1072
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
1073
|
+
throw e;
|
|
1074
|
+
}
|
|
1075
|
+
webpackEmptyContext.keys = () => ([]);
|
|
1076
|
+
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
1077
|
+
webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist sync recursive .md$";
|
|
1078
|
+
module.exports = webpackEmptyContext;
|
|
1079
|
+
|
|
1080
|
+
/***/ }),
|
|
1081
|
+
|
|
1064
1082
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Helpinfo sync recursive .md$":
|
|
1065
1083
|
/*!************************************************************************************************!*\
|
|
1066
1084
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Helpinfo/ sync .md$ ***!
|
|
@@ -2509,6 +2527,24 @@ webpackContext.id = "./Generator/src/generators/markupGenerator/ElementProcessor
|
|
|
2509
2527
|
|
|
2510
2528
|
/***/ }),
|
|
2511
2529
|
|
|
2530
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields sync recursive .md$":
|
|
2531
|
+
/*!*************************************************************************************************************!*\
|
|
2532
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ sync .md$ ***!
|
|
2533
|
+
\*************************************************************************************************************/
|
|
2534
|
+
/***/ ((module) => {
|
|
2535
|
+
|
|
2536
|
+
function webpackEmptyContext(req) {
|
|
2537
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
2538
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
2539
|
+
throw e;
|
|
2540
|
+
}
|
|
2541
|
+
webpackEmptyContext.keys = () => ([]);
|
|
2542
|
+
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
2543
|
+
webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields sync recursive .md$";
|
|
2544
|
+
module.exports = webpackEmptyContext;
|
|
2545
|
+
|
|
2546
|
+
/***/ }),
|
|
2547
|
+
|
|
2512
2548
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select sync recursive .md$":
|
|
2513
2549
|
/*!***************************************************************************************************!*\
|
|
2514
2550
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/ sync .md$ ***!
|
|
@@ -271064,6 +271100,27 @@ class TypingError extends ApplicationError {
|
|
|
271064
271100
|
|
|
271065
271101
|
/***/ }),
|
|
271066
271102
|
|
|
271103
|
+
/***/ "./Common/FormActionHandlers/ContextualActionNames.ts":
|
|
271104
|
+
/*!************************************************************!*\
|
|
271105
|
+
!*** ./Common/FormActionHandlers/ContextualActionNames.ts ***!
|
|
271106
|
+
\************************************************************/
|
|
271107
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
271108
|
+
|
|
271109
|
+
"use strict";
|
|
271110
|
+
__webpack_require__.r(__webpack_exports__);
|
|
271111
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
271112
|
+
/* harmony export */ "isValidContextualActionName": () => (/* binding */ isValidContextualActionName),
|
|
271113
|
+
/* harmony export */ "isContextualActionName": () => (/* binding */ isContextualActionName)
|
|
271114
|
+
/* harmony export */ });
|
|
271115
|
+
function isValidContextualActionName(value) {
|
|
271116
|
+
return value === "userPicklist.AddToReference" || value === "referencedfields.ClearFields" || value === "referencedfields.SwitchToManual" || value === "referencedfields.SwitchToReferenced" || value === "referencedfields.SelectFromReference";
|
|
271117
|
+
}
|
|
271118
|
+
function isContextualActionName(handlerName) {
|
|
271119
|
+
return handlerName.includes(".");
|
|
271120
|
+
}
|
|
271121
|
+
|
|
271122
|
+
/***/ }),
|
|
271123
|
+
|
|
271067
271124
|
/***/ "./Common/IntRangeUtils.ts":
|
|
271068
271125
|
/*!*********************************!*\
|
|
271069
271126
|
!*** ./Common/IntRangeUtils.ts ***!
|
|
@@ -271089,18 +271146,9 @@ function clamp(value, min, max) {
|
|
|
271089
271146
|
return value;
|
|
271090
271147
|
}
|
|
271091
271148
|
function clampUInt(value, min, max) {
|
|
271092
|
-
|
|
271093
|
-
// @ts-ignore
|
|
271094
|
-
return max;
|
|
271095
|
-
}
|
|
271149
|
+
const result = clamp(value, min, max); // @ts-ignore
|
|
271096
271150
|
|
|
271097
|
-
|
|
271098
|
-
// @ts-ignore
|
|
271099
|
-
return min;
|
|
271100
|
-
} // @ts-ignore
|
|
271101
|
-
|
|
271102
|
-
|
|
271103
|
-
return value;
|
|
271151
|
+
return result;
|
|
271104
271152
|
}
|
|
271105
271153
|
function sign(value) {
|
|
271106
271154
|
if (value < 0) {
|
|
@@ -272646,6 +272694,7 @@ const AttachmentInfoPath = new _ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__
|
|
|
272646
272694
|
__webpack_require__.r(__webpack_exports__);
|
|
272647
272695
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
272648
272696
|
/* harmony export */ "isNotNullOrUndefined": () => (/* binding */ isNotNullOrUndefined),
|
|
272697
|
+
/* harmony export */ "ensureNotNullOrUndefined": () => (/* binding */ ensureNotNullOrUndefined),
|
|
272649
272698
|
/* harmony export */ "noop": () => (/* binding */ noop),
|
|
272650
272699
|
/* harmony export */ "reject": () => (/* binding */ reject),
|
|
272651
272700
|
/* harmony export */ "isLengthGreaterThenOrEqual": () => (/* binding */ isLengthGreaterThenOrEqual),
|
|
@@ -272672,6 +272721,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
272672
272721
|
function isNotNullOrUndefined(input) {
|
|
272673
272722
|
return input != undefined;
|
|
272674
272723
|
}
|
|
272724
|
+
function ensureNotNullOrUndefined(input) {
|
|
272725
|
+
if (!isNotNullOrUndefined(input)) {
|
|
272726
|
+
throw new Error(`Value must be defined`);
|
|
272727
|
+
}
|
|
272728
|
+
}
|
|
272675
272729
|
function noop() {// noop
|
|
272676
272730
|
}
|
|
272677
272731
|
function reject(message) {
|
|
@@ -273915,6 +273969,10 @@ class FetchFunctions {
|
|
|
273915
273969
|
this.funStorage = funStorage;
|
|
273916
273970
|
}
|
|
273917
273971
|
|
|
273972
|
+
static empty() {
|
|
273973
|
+
return new FetchFunctions({});
|
|
273974
|
+
}
|
|
273975
|
+
|
|
273918
273976
|
getFetchFunction(fetchFnName, propName) {
|
|
273919
273977
|
const fetchDescriptor = propName == undefined ? this.getFetchDescriptor(fetchFnName) : this.getFetchDescriptor(fetchFnName, propName); // @ts-ignore
|
|
273920
273978
|
|
|
@@ -280491,19 +280549,17 @@ class FormSchemaRngTypeInfo {
|
|
|
280491
280549
|
this.baseType = baseType;
|
|
280492
280550
|
}
|
|
280493
280551
|
|
|
280494
|
-
*buildValidators() {
|
|
280552
|
+
*buildValidators(description) {
|
|
280495
280553
|
if (this.enumeration != undefined && this.enumeration.length !== 0) {
|
|
280496
|
-
var _this$description;
|
|
280497
|
-
|
|
280498
280554
|
const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.EnumerationValueValidator");
|
|
280499
280555
|
builder.set(0, this.enumeration);
|
|
280500
280556
|
builder.set(1, "error");
|
|
280501
|
-
builder.set(2,
|
|
280557
|
+
builder.set(2, description !== null && description !== void 0 ? description : this.buildDefaultDescription());
|
|
280502
280558
|
yield builder;
|
|
280503
280559
|
}
|
|
280504
280560
|
|
|
280505
280561
|
if (this.patterns != undefined && this.patterns.length !== 0) {
|
|
280506
|
-
var _ref2
|
|
280562
|
+
var _ref2;
|
|
280507
280563
|
|
|
280508
280564
|
const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.MatchOneOfPatternValidator");
|
|
280509
280565
|
const value = this.patterns.map(re => {
|
|
@@ -280515,26 +280571,22 @@ class FormSchemaRngTypeInfo {
|
|
|
280515
280571
|
});
|
|
280516
280572
|
builder.set(0, value);
|
|
280517
280573
|
builder.set(1, "error");
|
|
280518
|
-
builder.set(2, (_ref2 =
|
|
280574
|
+
builder.set(2, (_ref2 = description !== null && description !== void 0 ? description : this.buildDefaultDescription()) !== null && _ref2 !== void 0 ? _ref2 : "Значение не соответствует формату");
|
|
280519
280575
|
yield builder;
|
|
280520
280576
|
}
|
|
280521
280577
|
|
|
280522
280578
|
if (this.minInclusive != undefined || this.maxInclusive != undefined) {
|
|
280523
|
-
var _this$description3;
|
|
280524
|
-
|
|
280525
280579
|
const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.IntegerRangeValueValidator");
|
|
280526
280580
|
builder.set(0, {
|
|
280527
280581
|
minInclusive: this.minInclusive,
|
|
280528
280582
|
maxInclusive: this.maxInclusive
|
|
280529
280583
|
});
|
|
280530
280584
|
builder.set(1, "error");
|
|
280531
|
-
builder.set(2,
|
|
280585
|
+
builder.set(2, description !== null && description !== void 0 ? description : this.buildDefaultDescription());
|
|
280532
280586
|
yield builder;
|
|
280533
280587
|
}
|
|
280534
280588
|
|
|
280535
280589
|
if (this.integerDigits != undefined || this.fractionDigits != undefined || this.totalDigits != undefined) {
|
|
280536
|
-
var _this$description4;
|
|
280537
|
-
|
|
280538
280590
|
const result = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.NumberLengthConstraintValueValidator");
|
|
280539
280591
|
result.set(0, {
|
|
280540
280592
|
totalDigits: this.totalDigits,
|
|
@@ -280542,13 +280594,11 @@ class FormSchemaRngTypeInfo {
|
|
|
280542
280594
|
fractionDigits: this.fractionDigits
|
|
280543
280595
|
});
|
|
280544
280596
|
result.set(1, "error");
|
|
280545
|
-
result.set(2,
|
|
280597
|
+
result.set(2, description !== null && description !== void 0 ? description : this.buildDefaultDescription());
|
|
280546
280598
|
yield result;
|
|
280547
280599
|
}
|
|
280548
280600
|
|
|
280549
280601
|
if (this.length != undefined || this.minLength != undefined || this.maxLength != undefined) {
|
|
280550
|
-
var _this$description5;
|
|
280551
|
-
|
|
280552
280602
|
const builder = (0,_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_3__.instanceBuilder)("Validators.StringLengthConstraintValueValidator");
|
|
280553
280603
|
builder.set(0, {
|
|
280554
280604
|
exactLength: this.length,
|
|
@@ -280556,7 +280606,7 @@ class FormSchemaRngTypeInfo {
|
|
|
280556
280606
|
maxLength: this.maxLength
|
|
280557
280607
|
});
|
|
280558
280608
|
builder.set(1, "error");
|
|
280559
|
-
builder.set(2,
|
|
280609
|
+
builder.set(2, description !== null && description !== void 0 ? description : this.buildDefaultDescription());
|
|
280560
280610
|
yield builder;
|
|
280561
280611
|
}
|
|
280562
280612
|
}
|
|
@@ -283657,6 +283707,10 @@ class XmlNode {
|
|
|
283657
283707
|
return (_this$findAncestor = this.findAncestor("page")) !== null && _this$findAncestor !== void 0 ? _this$findAncestor : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("Not parent page element");
|
|
283658
283708
|
}
|
|
283659
283709
|
|
|
283710
|
+
getParentPageOrUndefined() {
|
|
283711
|
+
return this.findAncestor("page");
|
|
283712
|
+
}
|
|
283713
|
+
|
|
283660
283714
|
findAncestor(parentName) {
|
|
283661
283715
|
if (this.name === parentName) {
|
|
283662
283716
|
return this;
|
|
@@ -286612,16 +286666,18 @@ class DataDeclarationGenerationContext {
|
|
|
286612
286666
|
}
|
|
286613
286667
|
|
|
286614
286668
|
getSections(node, requisite = RequisiteSectionMode.AsRequisiteAttribute) {
|
|
286615
|
-
const page = node.
|
|
286669
|
+
const page = node.getParentPageOrUndefined();
|
|
286616
286670
|
let pageName;
|
|
286617
286671
|
|
|
286618
286672
|
if (node.name !== "page") {
|
|
286619
|
-
|
|
286673
|
+
if (page != undefined) {
|
|
286674
|
+
pageName = page.attrAsString("id");
|
|
286620
286675
|
|
|
286621
|
-
|
|
286622
|
-
|
|
286623
|
-
|
|
286624
|
-
|
|
286676
|
+
if (page.attributes.multiple) {
|
|
286677
|
+
return [{
|
|
286678
|
+
fn: `#getSectionFunction('${pageName}')#`
|
|
286679
|
+
}];
|
|
286680
|
+
}
|
|
286625
286681
|
}
|
|
286626
286682
|
} else {
|
|
286627
286683
|
pageName = node.attrAsString("id");
|
|
@@ -286765,9 +286821,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
286765
286821
|
/* harmony import */ var serialize_javascript__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(serialize_javascript__WEBPACK_IMPORTED_MODULE_0__);
|
|
286766
286822
|
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
286767
286823
|
/* harmony import */ var _common_SugarPathUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/SugarPathUtils */ "./Generator/src/common/SugarPathUtils.ts");
|
|
286768
|
-
/* harmony import */ var
|
|
286769
|
-
/* harmony import */ var
|
|
286770
|
-
/* harmony import */ var
|
|
286824
|
+
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
286825
|
+
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
286826
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
286827
|
+
/* harmony import */ var _placeholders__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./placeholders */ "./Generator/src/generators/DataDeclarationGenerator/placeholders.js");
|
|
286828
|
+
/* harmony import */ var _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
286829
|
+
|
|
286830
|
+
|
|
286771
286831
|
|
|
286772
286832
|
|
|
286773
286833
|
|
|
@@ -286787,8 +286847,11 @@ class DataDeclarationGenerator {
|
|
|
286787
286847
|
}
|
|
286788
286848
|
|
|
286789
286849
|
generate() {
|
|
286790
|
-
|
|
286791
|
-
|
|
286850
|
+
var _getConverterByNodeCl;
|
|
286851
|
+
|
|
286852
|
+
const converterClass = (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(this.sugarRoot))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
286853
|
+
const converter = new converterClass(this.sugarRoot);
|
|
286854
|
+
const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry);
|
|
286792
286855
|
const dataDeclaration = converter.buildDataDeclaration(context);
|
|
286793
286856
|
const orderedDataDeclaration = this.sortDataDeclarationKeys(dataDeclaration);
|
|
286794
286857
|
const result = this.replaceHolder(`
|
|
@@ -286817,6 +286880,36 @@ class DataDeclarationGenerator {
|
|
|
286817
286880
|
};
|
|
286818
286881
|
}
|
|
286819
286882
|
|
|
286883
|
+
generateDataDeclarationFactory() {
|
|
286884
|
+
var _getConverterByNodeCl2;
|
|
286885
|
+
|
|
286886
|
+
const converterClass = (_getConverterByNodeCl2 = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_4__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(this.sugarRoot))) !== null && _getConverterByNodeCl2 !== void 0 ? _getConverterByNodeCl2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_5__.reject)();
|
|
286887
|
+
const converter = new converterClass(this.sugarRoot);
|
|
286888
|
+
const context = new _DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_7__.DataDeclarationGenerationContext(this.initSequenceFactory, this.controlCustomizationContext, this.typesRegistry);
|
|
286889
|
+
const dataDeclaration = converter.buildDataDeclaration(context);
|
|
286890
|
+
const orderedDataDeclaration = this.sortDataDeclarationKeys(dataDeclaration);
|
|
286891
|
+
return `
|
|
286892
|
+
function dataDeclaration({
|
|
286893
|
+
Helpers: {
|
|
286894
|
+
autocalcCommonFunctions: {
|
|
286895
|
+
getAsyncResultHandler,
|
|
286896
|
+
getAsyncTextResultHandler,
|
|
286897
|
+
wrapDecimalOperand,
|
|
286898
|
+
getSum,
|
|
286899
|
+
checkValuesArguments,
|
|
286900
|
+
getAsyncBoolResultHandler,
|
|
286901
|
+
getAsyncErrorResultHandler,
|
|
286902
|
+
getOperands,
|
|
286903
|
+
Deferred,
|
|
286904
|
+
},
|
|
286905
|
+
},
|
|
286906
|
+
}) {
|
|
286907
|
+
return ${serialize_javascript__WEBPACK_IMPORTED_MODULE_0___default()(orderedDataDeclaration, {
|
|
286908
|
+
space: " "
|
|
286909
|
+
})};
|
|
286910
|
+
}`;
|
|
286911
|
+
}
|
|
286912
|
+
|
|
286820
286913
|
sortDataDeclarationKeys(dataDeclaration) {
|
|
286821
286914
|
const orderedDecl = {};
|
|
286822
286915
|
const orderedPaths = Object.keys(dataDeclaration).sort(_common_SugarPathUtils__WEBPACK_IMPORTED_MODULE_2__.SugarPathUtils.compare);
|
|
@@ -286831,7 +286924,7 @@ class DataDeclarationGenerator {
|
|
|
286831
286924
|
replaceHolder(decl) {
|
|
286832
286925
|
let replacedDecl = decl;
|
|
286833
286926
|
|
|
286834
|
-
for (const [placeholderName, placeHoldersFunction] of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateEntries)(
|
|
286927
|
+
for (const [placeholderName, placeHoldersFunction] of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__.iterateEntries)(_placeholders__WEBPACK_IMPORTED_MODULE_6__.placeHolders)) {
|
|
286835
286928
|
const checkName = `"#(${placeholderName})(\\('[\\w]*'\\))?#"`;
|
|
286836
286929
|
const include = new RegExp(checkName, "i");
|
|
286837
286930
|
|
|
@@ -289219,10 +289312,8 @@ function getSugarDictionary(sugar) {
|
|
|
289219
289312
|
throw new Error("Не получилось распарсить сахар");
|
|
289220
289313
|
}
|
|
289221
289314
|
|
|
289222
|
-
const dictionary = [];
|
|
289223
|
-
|
|
289315
|
+
const dictionary = [];
|
|
289224
289316
|
(0,_babel_traverse__WEBPACK_IMPORTED_MODULE_1__.default)(ast, {
|
|
289225
|
-
// @ts-ignore-next-line
|
|
289226
289317
|
CallExpression: path => {
|
|
289227
289318
|
const message = getMessage(path.node);
|
|
289228
289319
|
|
|
@@ -289538,6 +289629,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289538
289629
|
/* harmony import */ var _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./ElementProcessors/Layout/FixedTabs/FixedTabsConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/FixedTabs/FixedTabsConverter.ts");
|
|
289539
289630
|
/* harmony import */ var _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./ElementProcessors/MultiControls/Multiple/MultipleConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/Multiple/MultipleConverter.ts");
|
|
289540
289631
|
/* harmony import */ var _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./ElementProcessors/Action/ExcelPastePanel/ExcelPastePanelConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/ExcelPastePanel/ExcelPastePanelConverter.ts");
|
|
289632
|
+
/* harmony import */ var _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsConverter.ts");
|
|
289633
|
+
/* harmony import */ var _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./ElementProcessors/FormParts/UserPicklist/UserPicklistConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistConverter.ts");
|
|
289634
|
+
|
|
289635
|
+
|
|
289541
289636
|
|
|
289542
289637
|
|
|
289543
289638
|
|
|
@@ -289644,7 +289739,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289644
289739
|
let convertersFromNodeClassMap;
|
|
289645
289740
|
|
|
289646
289741
|
function buildConvertersFromNodeClassMap() {
|
|
289647
|
-
const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_9__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_10__.AddRowButtonConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_11__.BlockConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_13__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_14__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_16__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_17__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_18__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_83__.TableCellConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_19__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_20__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_21__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_94__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_22__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_23__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_24__.DiadocSuggestComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_25__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_26__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_27__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_28__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_29__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_30__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_31__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_32__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_34__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_35__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_36__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_37__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_38__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_39__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_40__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_41__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_42__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_43__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_44__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_45__.IconConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_46__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_47__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_48__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_49__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_50__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_51__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_52__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_53__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_54__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_55__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_56__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_60__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_61__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_63__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_64__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_65__.PicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_66__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_67__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_68__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_69__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_70__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_71__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_72__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_73__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_74__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_75__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_84__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_85__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_93__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_89__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_90__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_91__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_8__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_62__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_92__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_88__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_87__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_12__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_33__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_57__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_15__.ButtonConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_86__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_76__.SwitchConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_76__.SwitchCaseConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_76__.SwitchDefaultConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_81__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_77__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_79__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_78__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_80__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_82__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_3__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_2__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_7__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_6__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_98__.DropdownButtonConverter, _ElementProcessors_ValueEditors_FiasMvd_FiasMvdConverter__WEBPACK_IMPORTED_MODULE_1__.FiasMvdConverter, _ElementProcessors_ValueEditors_FiasFns_FiasFnsConverter__WEBPACK_IMPORTED_MODULE_0__.FiasFnsConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_4__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_5__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_97__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_96__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_5__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_5__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_100__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_99__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_101__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_102__.ExcelPastePanelConverter];
|
|
289742
|
+
const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_9__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_10__.AddRowButtonConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_11__.BlockConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_13__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_14__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_16__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_17__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_18__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_83__.TableCellConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_19__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_20__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_21__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_94__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_22__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_23__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_24__.DiadocSuggestComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_25__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_26__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_27__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_28__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_29__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_30__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_31__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_32__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_34__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_35__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_36__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_37__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_38__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_39__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_40__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_41__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_42__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_43__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_44__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_45__.IconConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_46__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_47__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_48__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_49__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_50__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_51__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_52__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_53__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_54__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_55__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_56__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_60__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_61__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_63__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_64__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_65__.PicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_66__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_67__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_68__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_69__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_70__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_71__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_72__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_73__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_74__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_75__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_84__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_85__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_93__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_89__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_90__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_91__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_8__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_62__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_92__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_88__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_87__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_12__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_33__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_57__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_15__.ButtonConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_86__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_76__.SwitchConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_76__.SwitchCaseConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_76__.SwitchDefaultConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_81__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_77__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_79__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_78__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_80__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_82__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_3__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_2__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_7__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_6__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_98__.DropdownButtonConverter, _ElementProcessors_ValueEditors_FiasMvd_FiasMvdConverter__WEBPACK_IMPORTED_MODULE_1__.FiasMvdConverter, _ElementProcessors_ValueEditors_FiasFns_FiasFnsConverter__WEBPACK_IMPORTED_MODULE_0__.FiasFnsConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_4__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_5__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_97__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_96__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_5__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_5__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_100__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_99__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_101__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_102__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_103__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_104__.UserPicklistConverter];
|
|
289648
289743
|
return new Map(converters.map(converterClass => [converterClass.getAcceptNodeClass(), converterClass]));
|
|
289649
289744
|
}
|
|
289650
289745
|
|
|
@@ -290968,8 +291063,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290968
291063
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
290969
291064
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
290970
291065
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
290971
|
-
/* harmony import */ var
|
|
290972
|
-
/* harmony import */ var
|
|
291066
|
+
/* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
|
|
291067
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
291068
|
+
/* harmony import */ var _LinkNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./LinkNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link/LinkNode.ts");
|
|
291069
|
+
|
|
290973
291070
|
|
|
290974
291071
|
|
|
290975
291072
|
|
|
@@ -290979,28 +291076,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290979
291076
|
|
|
290980
291077
|
class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
290981
291078
|
static getAcceptNodeClass() {
|
|
290982
|
-
return
|
|
291079
|
+
return _LinkNode__WEBPACK_IMPORTED_MODULE_7__.LinkNode;
|
|
290983
291080
|
}
|
|
290984
291081
|
|
|
290985
291082
|
doBuildDataDeclaration(context) {
|
|
290986
|
-
const node = this.getCurrentNodeAs(
|
|
291083
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_7__.LinkNode);
|
|
290987
291084
|
return context.mergeDataDeclaration(node.path ? context.addPathDeclEntry(node, [["value", context.initSequenceFactory.takeFromModelOrDefaultValue(node.defaultValue)]]) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection, context.addSpecialFieldsEntry(node, {
|
|
290988
291085
|
optional: node.optional
|
|
290989
291086
|
}), node.path ? context.addPathSectionDeclarationEntry(node) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection, context.addVisibilityPathDeclEntryNew(node));
|
|
290990
291087
|
}
|
|
290991
291088
|
|
|
290992
291089
|
buildChildrenDataDeclaration(context) {
|
|
290993
|
-
const node = this.getCurrentNodeAs(
|
|
291090
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_7__.LinkNode);
|
|
290994
291091
|
return context.processChildrenDataDeclaration(node.children);
|
|
290995
291092
|
}
|
|
290996
291093
|
|
|
290997
291094
|
*doTraverseChildren() {
|
|
290998
|
-
const node = this.getCurrentNodeAs(
|
|
291095
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_7__.LinkNode);
|
|
290999
291096
|
yield* node.children;
|
|
291000
291097
|
}
|
|
291001
291098
|
|
|
291002
291099
|
doConvert(context) {
|
|
291003
|
-
const node = this.getCurrentNodeAs(
|
|
291100
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_7__.LinkNode);
|
|
291004
291101
|
|
|
291005
291102
|
if (node.path != undefined && node.onClick == undefined) {
|
|
291006
291103
|
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`onClick is required when path attribute specified`, node, "path");
|
|
@@ -291011,14 +291108,16 @@ class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
291011
291108
|
|
|
291012
291109
|
getLinkForModelChanging(context, node) {
|
|
291013
291110
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Link");
|
|
291111
|
+
markupBuilder.prop("data-tid").set(node.tid);
|
|
291014
291112
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
|
|
291015
291113
|
markupBuilder.prop(x => x.onClick).set(context.generateHelperFunctionExpression(node, "onClick", node.onClick));
|
|
291016
291114
|
markupBuilder.prop(x => x.use).set(node.use);
|
|
291017
291115
|
markupBuilder.prop(x => x.metricsId).set(node.metricsId);
|
|
291116
|
+
markupBuilder.prop(x => x.icon).set((0,_Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_5__.getIconName)(node, node.icon));
|
|
291018
291117
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
291019
291118
|
|
|
291020
291119
|
if (node.disabled2 != undefined) {
|
|
291021
|
-
markupBuilder.prop(x => x.disabled2).set((0,
|
|
291120
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
291022
291121
|
|
|
291023
291122
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
291024
291123
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
@@ -291030,13 +291129,15 @@ class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
291030
291129
|
|
|
291031
291130
|
getLinkWithHref(context, node) {
|
|
291032
291131
|
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Link");
|
|
291132
|
+
mb.prop("data-tid").set(node.tid);
|
|
291033
291133
|
mb.prop(x => x.href).set(node.href);
|
|
291034
291134
|
mb.prop(x => x.target).set("_blank");
|
|
291035
291135
|
mb.prop(x => x.use).set(node.use);
|
|
291036
291136
|
mb.prop(x => x.metricsId).set(node.metricsId);
|
|
291137
|
+
mb.prop(x => x.icon).set((0,_Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_5__.getIconName)(node, node.icon));
|
|
291037
291138
|
|
|
291038
291139
|
if (node.disabled2 != undefined) {
|
|
291039
|
-
mb.prop(x => x.disabled2).set((0,
|
|
291140
|
+
mb.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
291040
291141
|
|
|
291041
291142
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
291042
291143
|
mb.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
@@ -291067,7 +291168,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
291067
291168
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
291068
291169
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
291069
291170
|
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
291070
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
291171
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;
|
|
291071
291172
|
|
|
291072
291173
|
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 }); }
|
|
291073
291174
|
|
|
@@ -291080,88 +291181,102 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
291080
291181
|
|
|
291081
291182
|
|
|
291082
291183
|
|
|
291083
|
-
let LinkNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.sugarNode)("link", `Ссылка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.bindingPath, "Путь в модели"),
|
|
291184
|
+
let LinkNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.sugarNode)("link", `Ссылка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.string, ``), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.bindingPath, "Путь в модели"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.deprecatedAttr)("optional", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_0__.DeprecationReason.UntypedUsage), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("defaultValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.string, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.deprecatedAttr)("default", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_0__.DeprecationReason.InvalidUsage), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.deprecatedAttr)("color", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_0__.DeprecationReason.Removed), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("onClick", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при клике"), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("use", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.enum("default", "success", "danger", "grayed"), "Тип, влияет на цвет. см. в retail-ui"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("href", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.string, "Ссылка"), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("icon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.string, `Название иконки, можно посмотреть http://tech.skbkontur.ru/react-ui/#/Icons`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_4__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attr)("metrics-id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.attrType.string, "Идентификатор ссылки, который будет отправлен вместе с метриками по этой ссылке"), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_2__.children)(), _dec(_class = (_class2 = class LinkNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_1__.SugarNodeWithLegacyVisibility {
|
|
291084
291185
|
constructor(...args) {
|
|
291085
291186
|
super(...args);
|
|
291086
291187
|
|
|
291087
|
-
_initializerDefineProperty(this, "
|
|
291188
|
+
_initializerDefineProperty(this, "tid", _descriptor, this);
|
|
291088
291189
|
|
|
291089
|
-
_initializerDefineProperty(this, "
|
|
291190
|
+
_initializerDefineProperty(this, "path", _descriptor2, this);
|
|
291090
291191
|
|
|
291091
|
-
_initializerDefineProperty(this, "
|
|
291192
|
+
_initializerDefineProperty(this, "optional", _descriptor3, this);
|
|
291092
291193
|
|
|
291093
|
-
_initializerDefineProperty(this, "
|
|
291194
|
+
_initializerDefineProperty(this, "defaultValue", _descriptor4, this);
|
|
291094
291195
|
|
|
291095
|
-
_initializerDefineProperty(this, "
|
|
291196
|
+
_initializerDefineProperty(this, "default", _descriptor5, this);
|
|
291096
291197
|
|
|
291097
|
-
_initializerDefineProperty(this, "
|
|
291198
|
+
_initializerDefineProperty(this, "color", _descriptor6, this);
|
|
291098
291199
|
|
|
291099
|
-
_initializerDefineProperty(this, "
|
|
291200
|
+
_initializerDefineProperty(this, "onClick", _descriptor7, this);
|
|
291100
291201
|
|
|
291101
|
-
_initializerDefineProperty(this, "
|
|
291202
|
+
_initializerDefineProperty(this, "use", _descriptor8, this);
|
|
291102
291203
|
|
|
291103
|
-
_initializerDefineProperty(this, "
|
|
291204
|
+
_initializerDefineProperty(this, "href", _descriptor9, this);
|
|
291104
291205
|
|
|
291105
|
-
_initializerDefineProperty(this, "
|
|
291206
|
+
_initializerDefineProperty(this, "icon", _descriptor10, this);
|
|
291106
291207
|
|
|
291107
|
-
_initializerDefineProperty(this, "
|
|
291208
|
+
_initializerDefineProperty(this, "disabled2", _descriptor11, this);
|
|
291209
|
+
|
|
291210
|
+
_initializerDefineProperty(this, "metricsId", _descriptor12, this);
|
|
291211
|
+
|
|
291212
|
+
_initializerDefineProperty(this, "children", _descriptor13, this);
|
|
291108
291213
|
}
|
|
291109
291214
|
|
|
291110
291215
|
getOwnPath() {
|
|
291111
291216
|
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;
|
|
291112
291217
|
}
|
|
291113
291218
|
|
|
291114
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291219
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "tid", [_dec2], {
|
|
291115
291220
|
configurable: true,
|
|
291116
291221
|
enumerable: true,
|
|
291117
291222
|
writable: true,
|
|
291118
291223
|
initializer: null
|
|
291119
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291224
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "path", [_dec3], {
|
|
291120
291225
|
configurable: true,
|
|
291121
291226
|
enumerable: true,
|
|
291122
291227
|
writable: true,
|
|
291123
291228
|
initializer: null
|
|
291124
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291229
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "optional", [_dec4], {
|
|
291125
291230
|
configurable: true,
|
|
291126
291231
|
enumerable: true,
|
|
291127
291232
|
writable: true,
|
|
291128
291233
|
initializer: null
|
|
291129
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291234
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "defaultValue", [_dec5], {
|
|
291130
291235
|
configurable: true,
|
|
291131
291236
|
enumerable: true,
|
|
291132
291237
|
writable: true,
|
|
291133
291238
|
initializer: null
|
|
291134
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291239
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "default", [_dec6], {
|
|
291135
291240
|
configurable: true,
|
|
291136
291241
|
enumerable: true,
|
|
291137
291242
|
writable: true,
|
|
291138
291243
|
initializer: null
|
|
291139
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291244
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "color", [_dec7], {
|
|
291140
291245
|
configurable: true,
|
|
291141
291246
|
enumerable: true,
|
|
291142
291247
|
writable: true,
|
|
291143
291248
|
initializer: null
|
|
291144
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291249
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "onClick", [_dec8], {
|
|
291145
291250
|
configurable: true,
|
|
291146
291251
|
enumerable: true,
|
|
291147
291252
|
writable: true,
|
|
291148
291253
|
initializer: null
|
|
291149
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291254
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "use", [_dec9], {
|
|
291150
291255
|
configurable: true,
|
|
291151
291256
|
enumerable: true,
|
|
291152
291257
|
writable: true,
|
|
291153
291258
|
initializer: null
|
|
291154
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291259
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "href", [_dec10], {
|
|
291155
291260
|
configurable: true,
|
|
291156
291261
|
enumerable: true,
|
|
291157
291262
|
writable: true,
|
|
291158
291263
|
initializer: null
|
|
291159
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291264
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "icon", [_dec11], {
|
|
291160
291265
|
configurable: true,
|
|
291161
291266
|
enumerable: true,
|
|
291162
291267
|
writable: true,
|
|
291163
291268
|
initializer: null
|
|
291164
|
-
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
291269
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "disabled2", [_dec12], {
|
|
291270
|
+
configurable: true,
|
|
291271
|
+
enumerable: true,
|
|
291272
|
+
writable: true,
|
|
291273
|
+
initializer: null
|
|
291274
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "metricsId", [_dec13], {
|
|
291275
|
+
configurable: true,
|
|
291276
|
+
enumerable: true,
|
|
291277
|
+
writable: true,
|
|
291278
|
+
initializer: null
|
|
291279
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec14], {
|
|
291165
291280
|
configurable: true,
|
|
291166
291281
|
enumerable: true,
|
|
291167
291282
|
writable: true,
|
|
@@ -293006,7 +293121,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293006
293121
|
/* harmony import */ var _Engine_src_Controls_FormParts_Unit_Store_unitId__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/FormParts/Unit/Store/unitId */ "./Engine/src/Controls/FormParts/Unit/Store/unitId.ts");
|
|
293007
293122
|
/* harmony import */ var _Content_ContentNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Content/ContentNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Content/ContentNode.ts");
|
|
293008
293123
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
293009
|
-
/* harmony import */ var
|
|
293124
|
+
/* harmony import */ var _UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../UserPicklist/UserPicklistConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistConverter.ts");
|
|
293125
|
+
/* harmony import */ var _FormNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
|
|
293126
|
+
|
|
293010
293127
|
|
|
293011
293128
|
|
|
293012
293129
|
|
|
@@ -293026,11 +293143,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293026
293143
|
|
|
293027
293144
|
class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.SugarNodeConverterBase {
|
|
293028
293145
|
static getAcceptNodeClass() {
|
|
293029
|
-
return
|
|
293146
|
+
return _FormNode__WEBPACK_IMPORTED_MODULE_17__.FormNode;
|
|
293030
293147
|
}
|
|
293031
293148
|
|
|
293032
293149
|
doBuildDataDeclaration(context) {
|
|
293033
|
-
const node = this.getCurrentNodeAs(
|
|
293150
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_17__.FormNode);
|
|
293034
293151
|
const rootPath = (0,_getRootPath__WEBPACK_IMPORTED_MODULE_3__.getRootPath)(node);
|
|
293035
293152
|
const entrySections = ["default"];
|
|
293036
293153
|
const optionalSections = this.findOptionalSections(node);
|
|
@@ -293050,17 +293167,17 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
293050
293167
|
}
|
|
293051
293168
|
|
|
293052
293169
|
buildChildrenDataDeclaration(context) {
|
|
293053
|
-
const node = this.getCurrentNodeAs(
|
|
293170
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_17__.FormNode);
|
|
293054
293171
|
return context.processChildrenDataDeclaration(node.pages);
|
|
293055
293172
|
}
|
|
293056
293173
|
|
|
293057
293174
|
*doTraverseChildren() {
|
|
293058
|
-
const node = this.getCurrentNodeAs(
|
|
293175
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_17__.FormNode);
|
|
293059
293176
|
yield* node.pages;
|
|
293060
293177
|
}
|
|
293061
293178
|
|
|
293062
293179
|
doConvert(context) {
|
|
293063
|
-
const node = this.getCurrentNodeAs(
|
|
293180
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_17__.FormNode);
|
|
293064
293181
|
|
|
293065
293182
|
if (node.simple) {
|
|
293066
293183
|
return this.buildSimpleForm(context, node);
|
|
@@ -293080,15 +293197,17 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
293080
293197
|
this.assertHasNowOptionalNestedPagesInsideMultipleUnits(formNode);
|
|
293081
293198
|
const pageNodes = this.getFormPages(formNode);
|
|
293082
293199
|
const formMarkupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("BaseForm");
|
|
293083
|
-
formMarkupBuilder.prop(x => x.unitInfos).set(pageNodes.map(pageNode => this.buildUnitInfo(context, pageNode, formNode)));
|
|
293084
|
-
formMarkupBuilder.appendChild(formContent);
|
|
293085
|
-
const result = formMarkupBuilder.buildConverterResult();
|
|
293086
|
-
const pageResults = pageNodes.map(pageNode => context.convertChildNodes([pageNode]));
|
|
293087
293200
|
|
|
293088
|
-
for (const
|
|
293089
|
-
|
|
293201
|
+
for (const userPicklist of formNode.userPicklists) {
|
|
293202
|
+
const userPicklistMarkupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)([], (0,_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_16__.getUserPicklistComponentName)(userPicklist));
|
|
293203
|
+
formMarkupBuilder.appendChild(userPicklistMarkupBuilder);
|
|
293090
293204
|
}
|
|
293091
293205
|
|
|
293206
|
+
formMarkupBuilder.prop(x => x.unitInfos).set(pageNodes.map(pageNode => this.buildUnitInfo(context, pageNode, formNode)));
|
|
293207
|
+
formMarkupBuilder.appendChild(formContent);
|
|
293208
|
+
const result = formMarkupBuilder.buildConverterResult();
|
|
293209
|
+
result.appendConverterResult(context.convertChildNodes(pageNodes));
|
|
293210
|
+
result.appendConverterResult(context.convertChildNodes(formNode.userPicklists));
|
|
293092
293211
|
result.setCurrentCtx(new _ConverterResults_ConversionContext__WEBPACK_IMPORTED_MODULE_6__.ConversionContext("Form", "Form", true));
|
|
293093
293212
|
return result;
|
|
293094
293213
|
}
|
|
@@ -293173,7 +293292,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
293173
293292
|
optional: pageNode.optional,
|
|
293174
293293
|
pageActions: pageNode.pageActions,
|
|
293175
293294
|
showOnDemand: pageNode.showOnDemand,
|
|
293176
|
-
onNavigateFromErrorLog: context.
|
|
293295
|
+
onNavigateFromErrorLog: context.generateHelperFunctionExpressionWithoutContext(pageNode, "onNavigateFromErrorLog", pageNode.onNavigateFromErrorLog)
|
|
293177
293296
|
};
|
|
293178
293297
|
return result;
|
|
293179
293298
|
}
|
|
@@ -293403,9 +293522,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293403
293522
|
/* harmony import */ var _SugarNodes_Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/Nodes/ImportNode */ "./Generator/src/generators/markupGenerator/SugarNodes/Nodes/ImportNode.ts");
|
|
293404
293523
|
/* harmony import */ var _Page_PageNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
|
|
293405
293524
|
/* harmony import */ var _Tour_TourNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tour/TourNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Tour/TourNode.ts");
|
|
293406
|
-
/* harmony import */ var
|
|
293407
|
-
/* harmony import */ var
|
|
293408
|
-
|
|
293525
|
+
/* harmony import */ var _UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../UserPicklist/UserPicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts");
|
|
293526
|
+
/* harmony import */ var _Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Nodes/PanelNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/Nodes/PanelNode.ts");
|
|
293527
|
+
/* harmony import */ var _TypeListNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeListNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/TypeListNode.ts");
|
|
293528
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _class4, _class5, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32;
|
|
293409
293529
|
|
|
293410
293530
|
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 }); }
|
|
293411
293531
|
|
|
@@ -293422,6 +293542,7 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
293422
293542
|
|
|
293423
293543
|
|
|
293424
293544
|
|
|
293545
|
+
|
|
293425
293546
|
let FetchFunctionsReferenceNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("fetchfunctions", ``), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("importFrom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, ``), _dec(_class = (_class2 = class FetchFunctionsReferenceNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
293426
293547
|
constructor(...args) {
|
|
293427
293548
|
super(...args);
|
|
@@ -293435,69 +293556,71 @@ let FetchFunctionsReferenceNode = (_dec = (0,_Serializer_SugarSerializer__WEBPAC
|
|
|
293435
293556
|
writable: true,
|
|
293436
293557
|
initializer: null
|
|
293437
293558
|
})), _class2)) || _class);
|
|
293438
|
-
let FormNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("form", `Корневой элемент формы.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form sync recursive .md$")), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_1__.DataBindingScopeMixinNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("tour", [_Tour_TourNode__WEBPACK_IMPORTED_MODULE_6__.TourNode]),
|
|
293559
|
+
let FormNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("form", `Корневой элемент формы.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form sync recursive .md$")), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_1__.DataBindingScopeMixinNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("userpicklist", [_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_7__.UserPicklistNode]), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("tour", [_Tour_TourNode__WEBPACK_IMPORTED_MODULE_6__.TourNode]), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("fetchfunctions", [FetchFunctionsReferenceNode]), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("modalIE8", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.Removed), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("m", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("uf", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("forceNavigate", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("hideUnitsAdder", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.deprecatedAttr)("hasRegionalForms", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_2__.DeprecationReason.UntypedUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("controls"), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("import", [_SugarNodes_Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_4__.ImportNode]), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.singleChild)("panel", [_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_8__.PanelNode]), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("page", [_Page_PageNode__WEBPACK_IMPORTED_MODULE_5__.PageNode]), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("simple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("schemaValidations", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, ``), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("ieSizeLimitation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Это флаг включает отображение заглушки для IE, если фуф больше опреленного размера`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("templates", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Управляет влючение возможность создавать и применять шаблоны keweb-а (кнопка в меню)`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("plain", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Форма без боковой панели, которая будет содержать один раздел`), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("requisite", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Есть подозрение что это свойство не используется`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("padding", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("maxunitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Если количество разделов привышает \`maxunitscount\`, тода начинает работать частичный рендеринг (рендерятся не все разедлы, при скроллинге рендерятся другие). Например, это используется в ЕНВД, раздел 2 множественный, и у пользователей может быть много`), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("unitscount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, ``), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("transferText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.localizedString, `Текст в лайтбоксе, который появляется по кнопке "Перенести данные"`), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество множественных разделов при котором навигация сворачивается (в левой колонке отображаются не все экземпляры), как выглядит можешь посмотреть в ЕНВд при количестве разделов 2 больше 15`), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uploadFufButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Включает кнопку загрузить отчет в "Другие действия" в панели слева.`), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uploadFufLightboxHideDemandNameButton", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Отключает кнопку "Показать имя требования" внутри лайтбокса Загрузки файла.`), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uploadInquiryButtonEnabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Включает кнопку загрузить справки в панели слева. (только для 6ндфл и РСВ)`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_0__.TypeNode]), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("types", [_TypeListNode__WEBPACK_IMPORTED_MODULE_9__.TypeListNode]), _dec3(_class4 = (_class5 = class FormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
293439
293560
|
constructor(...args) {
|
|
293440
293561
|
super(...args);
|
|
293441
293562
|
|
|
293442
293563
|
_initializerDefineProperty(this, "dataScope", _descriptor2, this);
|
|
293443
293564
|
|
|
293444
|
-
_initializerDefineProperty(this, "
|
|
293565
|
+
_initializerDefineProperty(this, "userPicklists", _descriptor3, this);
|
|
293566
|
+
|
|
293567
|
+
_initializerDefineProperty(this, "tour", _descriptor4, this);
|
|
293445
293568
|
|
|
293446
|
-
_initializerDefineProperty(this, "fetchFunctions",
|
|
293569
|
+
_initializerDefineProperty(this, "fetchFunctions", _descriptor5, this);
|
|
293447
293570
|
|
|
293448
|
-
_initializerDefineProperty(this, "modalIE8",
|
|
293571
|
+
_initializerDefineProperty(this, "modalIE8", _descriptor6, this);
|
|
293449
293572
|
|
|
293450
|
-
_initializerDefineProperty(this, "mProp",
|
|
293573
|
+
_initializerDefineProperty(this, "mProp", _descriptor7, this);
|
|
293451
293574
|
|
|
293452
|
-
_initializerDefineProperty(this, "ufProp",
|
|
293575
|
+
_initializerDefineProperty(this, "ufProp", _descriptor8, this);
|
|
293453
293576
|
|
|
293454
|
-
_initializerDefineProperty(this, "forceNavigate",
|
|
293577
|
+
_initializerDefineProperty(this, "forceNavigate", _descriptor9, this);
|
|
293455
293578
|
|
|
293456
|
-
_initializerDefineProperty(this, "hideUnitsAdder",
|
|
293579
|
+
_initializerDefineProperty(this, "hideUnitsAdder", _descriptor10, this);
|
|
293457
293580
|
|
|
293458
|
-
_initializerDefineProperty(this, "hasRegionalForms",
|
|
293581
|
+
_initializerDefineProperty(this, "hasRegionalForms", _descriptor11, this);
|
|
293459
293582
|
|
|
293460
|
-
_initializerDefineProperty(this, "controls",
|
|
293583
|
+
_initializerDefineProperty(this, "controls", _descriptor12, this);
|
|
293461
293584
|
|
|
293462
|
-
_initializerDefineProperty(this, "imports",
|
|
293585
|
+
_initializerDefineProperty(this, "imports", _descriptor13, this);
|
|
293463
293586
|
|
|
293464
|
-
_initializerDefineProperty(this, "panel",
|
|
293587
|
+
_initializerDefineProperty(this, "panel", _descriptor14, this);
|
|
293465
293588
|
|
|
293466
|
-
_initializerDefineProperty(this, "pages",
|
|
293589
|
+
_initializerDefineProperty(this, "pages", _descriptor15, this);
|
|
293467
293590
|
|
|
293468
|
-
_initializerDefineProperty(this, "simple",
|
|
293591
|
+
_initializerDefineProperty(this, "simple", _descriptor16, this);
|
|
293469
293592
|
|
|
293470
|
-
_initializerDefineProperty(this, "schemaValidations",
|
|
293593
|
+
_initializerDefineProperty(this, "schemaValidations", _descriptor17, this);
|
|
293471
293594
|
|
|
293472
|
-
_initializerDefineProperty(this, "ieSizeLimitation",
|
|
293595
|
+
_initializerDefineProperty(this, "ieSizeLimitation", _descriptor18, this);
|
|
293473
293596
|
|
|
293474
|
-
_initializerDefineProperty(this, "templates",
|
|
293597
|
+
_initializerDefineProperty(this, "templates", _descriptor19, this);
|
|
293475
293598
|
|
|
293476
|
-
_initializerDefineProperty(this, "plain",
|
|
293599
|
+
_initializerDefineProperty(this, "plain", _descriptor20, this);
|
|
293477
293600
|
|
|
293478
|
-
_initializerDefineProperty(this, "requisite",
|
|
293601
|
+
_initializerDefineProperty(this, "requisite", _descriptor21, this);
|
|
293479
293602
|
|
|
293480
|
-
_initializerDefineProperty(this, "width",
|
|
293603
|
+
_initializerDefineProperty(this, "width", _descriptor22, this);
|
|
293481
293604
|
|
|
293482
|
-
_initializerDefineProperty(this, "padding",
|
|
293605
|
+
_initializerDefineProperty(this, "padding", _descriptor23, this);
|
|
293483
293606
|
|
|
293484
|
-
_initializerDefineProperty(this, "maxUnitsCount",
|
|
293607
|
+
_initializerDefineProperty(this, "maxUnitsCount", _descriptor24, this);
|
|
293485
293608
|
|
|
293486
|
-
_initializerDefineProperty(this, "unitsCount",
|
|
293609
|
+
_initializerDefineProperty(this, "unitsCount", _descriptor25, this);
|
|
293487
293610
|
|
|
293488
|
-
_initializerDefineProperty(this, "transferText",
|
|
293611
|
+
_initializerDefineProperty(this, "transferText", _descriptor26, this);
|
|
293489
293612
|
|
|
293490
|
-
_initializerDefineProperty(this, "navigationLimit",
|
|
293613
|
+
_initializerDefineProperty(this, "navigationLimit", _descriptor27, this);
|
|
293491
293614
|
|
|
293492
|
-
_initializerDefineProperty(this, "uploadFufButtonEnabled",
|
|
293615
|
+
_initializerDefineProperty(this, "uploadFufButtonEnabled", _descriptor28, this);
|
|
293493
293616
|
|
|
293494
|
-
_initializerDefineProperty(this, "uploadFufLightboxHideDemandNameButton",
|
|
293617
|
+
_initializerDefineProperty(this, "uploadFufLightboxHideDemandNameButton", _descriptor29, this);
|
|
293495
293618
|
|
|
293496
|
-
_initializerDefineProperty(this, "uploadInquiryButtonEnabled",
|
|
293619
|
+
_initializerDefineProperty(this, "uploadInquiryButtonEnabled", _descriptor30, this);
|
|
293497
293620
|
|
|
293498
|
-
_initializerDefineProperty(this, "types",
|
|
293621
|
+
_initializerDefineProperty(this, "types", _descriptor31, this);
|
|
293499
293622
|
|
|
293500
|
-
_initializerDefineProperty(this, "typeLists",
|
|
293623
|
+
_initializerDefineProperty(this, "typeLists", _descriptor32, this);
|
|
293501
293624
|
}
|
|
293502
293625
|
|
|
293503
293626
|
getOwnPath() {
|
|
@@ -293517,147 +293640,152 @@ let FormNode = (_dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_
|
|
|
293517
293640
|
enumerable: true,
|
|
293518
293641
|
writable: true,
|
|
293519
293642
|
initializer: null
|
|
293520
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class5.prototype, "
|
|
293643
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class5.prototype, "userPicklists", [_dec5], {
|
|
293644
|
+
configurable: true,
|
|
293645
|
+
enumerable: true,
|
|
293646
|
+
writable: true,
|
|
293647
|
+
initializer: null
|
|
293648
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class5.prototype, "tour", [_dec6], {
|
|
293521
293649
|
configurable: true,
|
|
293522
293650
|
enumerable: true,
|
|
293523
293651
|
writable: true,
|
|
293524
293652
|
initializer: null
|
|
293525
|
-
}),
|
|
293653
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class5.prototype, "fetchFunctions", [_dec7], {
|
|
293526
293654
|
configurable: true,
|
|
293527
293655
|
enumerable: true,
|
|
293528
293656
|
writable: true,
|
|
293529
293657
|
initializer: null
|
|
293530
|
-
}),
|
|
293658
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class5.prototype, "modalIE8", [_dec8], {
|
|
293531
293659
|
configurable: true,
|
|
293532
293660
|
enumerable: true,
|
|
293533
293661
|
writable: true,
|
|
293534
293662
|
initializer: null
|
|
293535
|
-
}),
|
|
293663
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class5.prototype, "mProp", [_dec9], {
|
|
293536
293664
|
configurable: true,
|
|
293537
293665
|
enumerable: true,
|
|
293538
293666
|
writable: true,
|
|
293539
293667
|
initializer: null
|
|
293540
|
-
}),
|
|
293668
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class5.prototype, "ufProp", [_dec10], {
|
|
293541
293669
|
configurable: true,
|
|
293542
293670
|
enumerable: true,
|
|
293543
293671
|
writable: true,
|
|
293544
293672
|
initializer: null
|
|
293545
|
-
}),
|
|
293673
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class5.prototype, "forceNavigate", [_dec11], {
|
|
293546
293674
|
configurable: true,
|
|
293547
293675
|
enumerable: true,
|
|
293548
293676
|
writable: true,
|
|
293549
293677
|
initializer: null
|
|
293550
|
-
}),
|
|
293678
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class5.prototype, "hideUnitsAdder", [_dec12], {
|
|
293551
293679
|
configurable: true,
|
|
293552
293680
|
enumerable: true,
|
|
293553
293681
|
writable: true,
|
|
293554
293682
|
initializer: null
|
|
293555
|
-
}),
|
|
293683
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class5.prototype, "hasRegionalForms", [_dec13], {
|
|
293556
293684
|
configurable: true,
|
|
293557
293685
|
enumerable: true,
|
|
293558
293686
|
writable: true,
|
|
293559
293687
|
initializer: null
|
|
293560
|
-
}),
|
|
293688
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, "controls", [_dec14], {
|
|
293561
293689
|
configurable: true,
|
|
293562
293690
|
enumerable: true,
|
|
293563
293691
|
writable: true,
|
|
293564
293692
|
initializer: null
|
|
293565
|
-
}),
|
|
293693
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, "imports", [_dec15], {
|
|
293566
293694
|
configurable: true,
|
|
293567
293695
|
enumerable: true,
|
|
293568
293696
|
writable: true,
|
|
293569
293697
|
initializer: null
|
|
293570
|
-
}),
|
|
293698
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, "panel", [_dec16], {
|
|
293571
293699
|
configurable: true,
|
|
293572
293700
|
enumerable: true,
|
|
293573
293701
|
writable: true,
|
|
293574
293702
|
initializer: null
|
|
293575
|
-
}),
|
|
293703
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, "pages", [_dec17], {
|
|
293576
293704
|
configurable: true,
|
|
293577
293705
|
enumerable: true,
|
|
293578
293706
|
writable: true,
|
|
293579
293707
|
initializer: null
|
|
293580
|
-
}),
|
|
293708
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, "simple", [_dec18], {
|
|
293581
293709
|
configurable: true,
|
|
293582
293710
|
enumerable: true,
|
|
293583
293711
|
writable: true,
|
|
293584
293712
|
initializer: null
|
|
293585
|
-
}),
|
|
293713
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, "schemaValidations", [_dec19], {
|
|
293586
293714
|
configurable: true,
|
|
293587
293715
|
enumerable: true,
|
|
293588
293716
|
writable: true,
|
|
293589
293717
|
initializer: null
|
|
293590
|
-
}),
|
|
293718
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, "ieSizeLimitation", [_dec20], {
|
|
293591
293719
|
configurable: true,
|
|
293592
293720
|
enumerable: true,
|
|
293593
293721
|
writable: true,
|
|
293594
293722
|
initializer: null
|
|
293595
|
-
}),
|
|
293723
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, "templates", [_dec21], {
|
|
293596
293724
|
configurable: true,
|
|
293597
293725
|
enumerable: true,
|
|
293598
293726
|
writable: true,
|
|
293599
293727
|
initializer: null
|
|
293600
|
-
}),
|
|
293728
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, "plain", [_dec22], {
|
|
293601
293729
|
configurable: true,
|
|
293602
293730
|
enumerable: true,
|
|
293603
293731
|
writable: true,
|
|
293604
293732
|
initializer: null
|
|
293605
|
-
}),
|
|
293733
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class5.prototype, "requisite", [_dec23], {
|
|
293606
293734
|
configurable: true,
|
|
293607
293735
|
enumerable: true,
|
|
293608
293736
|
writable: true,
|
|
293609
293737
|
initializer: null
|
|
293610
|
-
}),
|
|
293738
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class5.prototype, "width", [_dec24], {
|
|
293611
293739
|
configurable: true,
|
|
293612
293740
|
enumerable: true,
|
|
293613
293741
|
writable: true,
|
|
293614
293742
|
initializer: null
|
|
293615
|
-
}),
|
|
293743
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class5.prototype, "padding", [_dec25], {
|
|
293616
293744
|
configurable: true,
|
|
293617
293745
|
enumerable: true,
|
|
293618
293746
|
writable: true,
|
|
293619
293747
|
initializer: null
|
|
293620
|
-
}),
|
|
293748
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class5.prototype, "maxUnitsCount", [_dec26], {
|
|
293621
293749
|
configurable: true,
|
|
293622
293750
|
enumerable: true,
|
|
293623
293751
|
writable: true,
|
|
293624
293752
|
initializer: null
|
|
293625
|
-
}),
|
|
293753
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class5.prototype, "unitsCount", [_dec27], {
|
|
293626
293754
|
configurable: true,
|
|
293627
293755
|
enumerable: true,
|
|
293628
293756
|
writable: true,
|
|
293629
293757
|
initializer: null
|
|
293630
|
-
}),
|
|
293758
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class5.prototype, "transferText", [_dec28], {
|
|
293631
293759
|
configurable: true,
|
|
293632
293760
|
enumerable: true,
|
|
293633
293761
|
writable: true,
|
|
293634
293762
|
initializer: null
|
|
293635
|
-
}),
|
|
293763
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class5.prototype, "navigationLimit", [_dec29], {
|
|
293636
293764
|
configurable: true,
|
|
293637
293765
|
enumerable: true,
|
|
293638
293766
|
writable: true,
|
|
293639
293767
|
initializer: null
|
|
293640
|
-
}),
|
|
293768
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class5.prototype, "uploadFufButtonEnabled", [_dec30], {
|
|
293641
293769
|
configurable: true,
|
|
293642
293770
|
enumerable: true,
|
|
293643
293771
|
writable: true,
|
|
293644
293772
|
initializer: null
|
|
293645
|
-
}),
|
|
293773
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class5.prototype, "uploadFufLightboxHideDemandNameButton", [_dec31], {
|
|
293646
293774
|
configurable: true,
|
|
293647
293775
|
enumerable: true,
|
|
293648
293776
|
writable: true,
|
|
293649
293777
|
initializer: null
|
|
293650
|
-
}),
|
|
293778
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class5.prototype, "uploadInquiryButtonEnabled", [_dec32], {
|
|
293651
293779
|
configurable: true,
|
|
293652
293780
|
enumerable: true,
|
|
293653
293781
|
writable: true,
|
|
293654
293782
|
initializer: null
|
|
293655
|
-
}),
|
|
293783
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class5.prototype, "types", [_dec33], {
|
|
293656
293784
|
configurable: true,
|
|
293657
293785
|
enumerable: true,
|
|
293658
293786
|
writable: true,
|
|
293659
293787
|
initializer: null
|
|
293660
|
-
}),
|
|
293788
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class5.prototype, "typeLists", [_dec34], {
|
|
293661
293789
|
configurable: true,
|
|
293662
293790
|
enumerable: true,
|
|
293663
293791
|
writable: true,
|
|
@@ -294823,6 +294951,198 @@ let UnitListNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
294823
294951
|
|
|
294824
294952
|
/***/ }),
|
|
294825
294953
|
|
|
294954
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistConverter.ts":
|
|
294955
|
+
/*!********************************************************************************************************************!*\
|
|
294956
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistConverter.ts ***!
|
|
294957
|
+
\********************************************************************************************************************/
|
|
294958
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
294959
|
+
|
|
294960
|
+
"use strict";
|
|
294961
|
+
__webpack_require__.r(__webpack_exports__);
|
|
294962
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
294963
|
+
/* harmony export */ "getUserPicklistComponentName": () => (/* binding */ getUserPicklistComponentName),
|
|
294964
|
+
/* harmony export */ "UserPicklistConverter": () => (/* binding */ UserPicklistConverter)
|
|
294965
|
+
/* harmony export */ });
|
|
294966
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
294967
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
294968
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
294969
|
+
/* harmony import */ var _common_StringUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../common/StringUtils */ "./Generator/src/common/StringUtils.ts");
|
|
294970
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
294971
|
+
/* harmony import */ var _ConverterResults_ConversionContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../ConverterResults/ConversionContext */ "./Generator/src/generators/markupGenerator/ConverterResults/ConversionContext.ts");
|
|
294972
|
+
/* harmony import */ var _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../validationGenerator/ValidationGenerator */ "./Generator/src/generators/validationGenerator/ValidationGenerator.ts");
|
|
294973
|
+
/* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
|
|
294974
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
294975
|
+
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
294976
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerator */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerator.ts");
|
|
294977
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
|
|
294978
|
+
/* harmony import */ var _common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../common/FetchFunctions */ "./Generator/src/common/FetchFunctions.ts");
|
|
294979
|
+
/* harmony import */ var _UserPicklistNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./UserPicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts");
|
|
294980
|
+
|
|
294981
|
+
|
|
294982
|
+
|
|
294983
|
+
|
|
294984
|
+
|
|
294985
|
+
|
|
294986
|
+
|
|
294987
|
+
|
|
294988
|
+
|
|
294989
|
+
|
|
294990
|
+
|
|
294991
|
+
|
|
294992
|
+
|
|
294993
|
+
|
|
294994
|
+
function getUserPicklistComponentName(node) {
|
|
294995
|
+
return (0,_common_StringUtils__WEBPACK_IMPORTED_MODULE_3__.capitalizeFirstLetter)(node.name) + "PicklistEditor";
|
|
294996
|
+
}
|
|
294997
|
+
class UserPicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
|
|
294998
|
+
static getAcceptNodeClass() {
|
|
294999
|
+
return _UserPicklistNode__WEBPACK_IMPORTED_MODULE_13__.UserPicklistNode;
|
|
295000
|
+
}
|
|
295001
|
+
|
|
295002
|
+
applyVisibilityPathProcessing() {
|
|
295003
|
+
return false;
|
|
295004
|
+
}
|
|
295005
|
+
|
|
295006
|
+
*doBuildNormalizeRules(builder) {// no rules
|
|
295007
|
+
}
|
|
295008
|
+
|
|
295009
|
+
doBuildDataDeclaration(context) {
|
|
295010
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__.emptyDataDeclarationCollection;
|
|
295011
|
+
}
|
|
295012
|
+
|
|
295013
|
+
buildChildrenDataDeclaration(context) {
|
|
295014
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_2__.emptyDataDeclarationCollection;
|
|
295015
|
+
}
|
|
295016
|
+
|
|
295017
|
+
*doTraverseChildren() {// Дети есть, но это отключит разные ненужные механизмы формы.
|
|
295018
|
+
}
|
|
295019
|
+
|
|
295020
|
+
doConvert(context) {
|
|
295021
|
+
var _findSugarNodeBases$, _findSugarNodeBases$2;
|
|
295022
|
+
|
|
295023
|
+
const node = this.getCurrentNodeAs(_UserPicklistNode__WEBPACK_IMPORTED_MODULE_13__.UserPicklistNode);
|
|
295024
|
+
const userPicklistDeclarationBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_4__.componentMarkupBuilder)("UserPicklistDeclaration");
|
|
295025
|
+
userPicklistDeclarationBuilder.prop(x => x.name).set(node.name);
|
|
295026
|
+
userPicklistDeclarationBuilder.prop(x => x.columns).set(node.columns);
|
|
295027
|
+
userPicklistDeclarationBuilder.prop(x => x.pickerTitle).set(this.getConverterResultFromAttributeWithMarkup(context, node.pickerTitle));
|
|
295028
|
+
userPicklistDeclarationBuilder.prop(x => x.pickerCreateLink).set(this.getConverterResultFromAttributeWithMarkup(context, node.pickerCreateLink));
|
|
295029
|
+
userPicklistDeclarationBuilder.prop(x => x.createTitle).set(this.getConverterResultFromAttributeWithMarkup(context, node.createTitle));
|
|
295030
|
+
userPicklistDeclarationBuilder.prop(x => x.emptyPickerMessage).set(this.getConverterResultFromAttributeWithMarkup(context, node.emptyPickerMessage));
|
|
295031
|
+
userPicklistDeclarationBuilder.prop(x => x.editor).set(this.getConverterResultFromAttributeWithMarkup(context, node.editor));
|
|
295032
|
+
|
|
295033
|
+
if (node.editor.length !== 1) {
|
|
295034
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__.SugarAttributeReadError(`userpicklist.editor должен содержать ровно один элемент (временно)`, node, "editor");
|
|
295035
|
+
}
|
|
295036
|
+
|
|
295037
|
+
const validationGenerator = new _validationGenerator_ValidationGenerator__WEBPACK_IMPORTED_MODULE_6__.ValidationGenerator((_findSugarNodeBases$ = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.editor)[0]) !== null && _findSugarNodeBases$ !== void 0 ? _findSugarNodeBases$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), context.typesRegistry, context.controlCustomizationContext, _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_7__.FormSchemaRng.createEmpty(), false);
|
|
295038
|
+
userPicklistDeclarationBuilder.prop(x => x.editorValidations).set({
|
|
295039
|
+
type: "Expression",
|
|
295040
|
+
expression: validationGenerator.generateValidationsFactory()
|
|
295041
|
+
});
|
|
295042
|
+
const dataDeclarationGenerator = new _DataDeclarationGenerator_DataDeclarationGenerator__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationGenerator((_findSugarNodeBases$2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.editor)[0]) !== null && _findSugarNodeBases$2 !== void 0 ? _findSugarNodeBases$2 : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_8__.reject)(), new _DataDeclarationGenerator_DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory(_common_FetchFunctions__WEBPACK_IMPORTED_MODULE_12__.FetchFunctions.empty()), context.controlCustomizationContext, context.typesRegistry);
|
|
295043
|
+
userPicklistDeclarationBuilder.prop(x => x.editorDataDeclaration).set({
|
|
295044
|
+
type: "Expression",
|
|
295045
|
+
expression: dataDeclarationGenerator.generateDataDeclarationFactory()
|
|
295046
|
+
});
|
|
295047
|
+
const result = userPicklistDeclarationBuilder.buildConverterResult();
|
|
295048
|
+
const picklistEditorName = getUserPicklistComponentName(node);
|
|
295049
|
+
result.setCurrentCtx(new _ConverterResults_ConversionContext__WEBPACK_IMPORTED_MODULE_5__.ConversionContext(picklistEditorName, picklistEditorName, true));
|
|
295050
|
+
return result;
|
|
295051
|
+
}
|
|
295052
|
+
|
|
295053
|
+
}
|
|
295054
|
+
|
|
295055
|
+
/***/ }),
|
|
295056
|
+
|
|
295057
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts":
|
|
295058
|
+
/*!***************************************************************************************************************!*\
|
|
295059
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts ***!
|
|
295060
|
+
\***************************************************************************************************************/
|
|
295061
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
295062
|
+
|
|
295063
|
+
"use strict";
|
|
295064
|
+
__webpack_require__.r(__webpack_exports__);
|
|
295065
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
295066
|
+
/* harmony export */ "UserPicklistNode": () => (/* binding */ UserPicklistNode)
|
|
295067
|
+
/* harmony export */ });
|
|
295068
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
295069
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
295070
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
295071
|
+
|
|
295072
|
+
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 }); }
|
|
295073
|
+
|
|
295074
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
295075
|
+
|
|
295076
|
+
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.'); }
|
|
295077
|
+
|
|
295078
|
+
|
|
295079
|
+
|
|
295080
|
+
let UserPicklistNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("userpicklist", `Обяъвление пользовательско справочника`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string.required, `Имя справочника, которое указывается в контролах. По умолчанию используется как указательно `), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("editor", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, `Код редактора, который отобразится при добавлении значения в справочник`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("pickerTitle", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("pickerCreateLink", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("createTitle", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("emptyPickerMessage", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, ``), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("columns", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.arrayLiteral(), `Колоночки`), _dec(_class = (_class2 = class UserPicklistNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
|
|
295081
|
+
constructor(...args) {
|
|
295082
|
+
super(...args);
|
|
295083
|
+
|
|
295084
|
+
_initializerDefineProperty(this, "name", _descriptor, this);
|
|
295085
|
+
|
|
295086
|
+
_initializerDefineProperty(this, "editor", _descriptor2, this);
|
|
295087
|
+
|
|
295088
|
+
_initializerDefineProperty(this, "pickerTitle", _descriptor3, this);
|
|
295089
|
+
|
|
295090
|
+
_initializerDefineProperty(this, "pickerCreateLink", _descriptor4, this);
|
|
295091
|
+
|
|
295092
|
+
_initializerDefineProperty(this, "createTitle", _descriptor5, this);
|
|
295093
|
+
|
|
295094
|
+
_initializerDefineProperty(this, "emptyPickerMessage", _descriptor6, this);
|
|
295095
|
+
|
|
295096
|
+
_initializerDefineProperty(this, "columns", _descriptor7, this);
|
|
295097
|
+
}
|
|
295098
|
+
|
|
295099
|
+
getOwnPath() {
|
|
295100
|
+
return undefined;
|
|
295101
|
+
}
|
|
295102
|
+
|
|
295103
|
+
getFullPathForChildren() {
|
|
295104
|
+
return new _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.AbsoluteModelPath([]);
|
|
295105
|
+
}
|
|
295106
|
+
|
|
295107
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec2], {
|
|
295108
|
+
configurable: true,
|
|
295109
|
+
enumerable: true,
|
|
295110
|
+
writable: true,
|
|
295111
|
+
initializer: null
|
|
295112
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "editor", [_dec3], {
|
|
295113
|
+
configurable: true,
|
|
295114
|
+
enumerable: true,
|
|
295115
|
+
writable: true,
|
|
295116
|
+
initializer: null
|
|
295117
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "pickerTitle", [_dec4], {
|
|
295118
|
+
configurable: true,
|
|
295119
|
+
enumerable: true,
|
|
295120
|
+
writable: true,
|
|
295121
|
+
initializer: null
|
|
295122
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "pickerCreateLink", [_dec5], {
|
|
295123
|
+
configurable: true,
|
|
295124
|
+
enumerable: true,
|
|
295125
|
+
writable: true,
|
|
295126
|
+
initializer: null
|
|
295127
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "createTitle", [_dec6], {
|
|
295128
|
+
configurable: true,
|
|
295129
|
+
enumerable: true,
|
|
295130
|
+
writable: true,
|
|
295131
|
+
initializer: null
|
|
295132
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "emptyPickerMessage", [_dec7], {
|
|
295133
|
+
configurable: true,
|
|
295134
|
+
enumerable: true,
|
|
295135
|
+
writable: true,
|
|
295136
|
+
initializer: null
|
|
295137
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "columns", [_dec8], {
|
|
295138
|
+
configurable: true,
|
|
295139
|
+
enumerable: true,
|
|
295140
|
+
writable: true,
|
|
295141
|
+
initializer: null
|
|
295142
|
+
})), _class2)) || _class);
|
|
295143
|
+
|
|
295144
|
+
/***/ }),
|
|
295145
|
+
|
|
294826
295146
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Help/HelpConverter.ts":
|
|
294827
295147
|
/*!**************************************************************************************************!*\
|
|
294828
295148
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Helpers/Help/HelpConverter.ts ***!
|
|
@@ -304689,6 +305009,25 @@ let HighlightNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
304689
305009
|
|
|
304690
305010
|
/***/ }),
|
|
304691
305011
|
|
|
305012
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts":
|
|
305013
|
+
/*!***************************************************************************************************!*\
|
|
305014
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts ***!
|
|
305015
|
+
\***************************************************************************************************/
|
|
305016
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
305017
|
+
|
|
305018
|
+
"use strict";
|
|
305019
|
+
__webpack_require__.r(__webpack_exports__);
|
|
305020
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
305021
|
+
/* harmony export */ "getIconName": () => (/* binding */ getIconName)
|
|
305022
|
+
/* harmony export */ });
|
|
305023
|
+
function getIconName(node, iconName) {
|
|
305024
|
+
// @ts-ignore Не хочу зависеть от иконок в генераторе, может быть собраться и заиспользовать babel-preeval
|
|
305025
|
+
const iconNameWeakCasted = iconName;
|
|
305026
|
+
return iconNameWeakCasted;
|
|
305027
|
+
}
|
|
305028
|
+
|
|
305029
|
+
/***/ }),
|
|
305030
|
+
|
|
304692
305031
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/IconConverter.ts":
|
|
304693
305032
|
/*!*****************************************************************************************************!*\
|
|
304694
305033
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/IconConverter.ts ***!
|
|
@@ -304705,6 +305044,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
304705
305044
|
/* harmony import */ var _ConverterResults_ModuleDescriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ConverterResults/ModuleDescriptor */ "./Generator/src/generators/markupGenerator/ConverterResults/ModuleDescriptor.ts");
|
|
304706
305045
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
304707
305046
|
/* harmony import */ var _IconNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IconNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/IconNode.ts");
|
|
305047
|
+
/* harmony import */ var _GetIconName__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
|
|
305048
|
+
|
|
304708
305049
|
|
|
304709
305050
|
|
|
304710
305051
|
|
|
@@ -304729,10 +305070,8 @@ class IconConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
304729
305070
|
|
|
304730
305071
|
doConvert(context) {
|
|
304731
305072
|
const node = this.getCurrentNodeAs(_IconNode__WEBPACK_IMPORTED_MODULE_4__.IconNode);
|
|
304732
|
-
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)(new _ConverterResults_ModuleDescriptor__WEBPACK_IMPORTED_MODULE_2__.ModuleDescriptor("react-ui/Icon", "Icon"));
|
|
304733
|
-
|
|
304734
|
-
const iconNameWeakCasted = node.name;
|
|
304735
|
-
mb.prop(x => x.name).set(iconNameWeakCasted);
|
|
305073
|
+
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)(new _ConverterResults_ModuleDescriptor__WEBPACK_IMPORTED_MODULE_2__.ModuleDescriptor("react-ui/Icon", "Icon"));
|
|
305074
|
+
mb.prop(x => x.name).set((0,_GetIconName__WEBPACK_IMPORTED_MODULE_5__.getIconName)(node, node.name));
|
|
304736
305075
|
return mb.buildConverterResult();
|
|
304737
305076
|
}
|
|
304738
305077
|
|
|
@@ -306237,7 +306576,7 @@ class DiadocSuggestComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORT
|
|
|
306237
306576
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
|
|
306238
306577
|
markupBuilder.prop(x => x.disablePortal).set(node.disablePortal);
|
|
306239
306578
|
markupBuilder.prop(x => x.keyColWidth).set(node.keyColWidth);
|
|
306240
|
-
markupBuilder.prop(x => x.query).set(context.
|
|
306579
|
+
markupBuilder.prop(x => x.query).set(context.generateHelperFunctionExpressionWithoutContext(node, "query", node.query));
|
|
306241
306580
|
markupBuilder.prop(x => x.width).set(node.width);
|
|
306242
306581
|
markupBuilder.prop(x => x.placeholder).set(node.placeholder);
|
|
306243
306582
|
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
@@ -309094,6 +309433,142 @@ let RadioGroupNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MO
|
|
|
309094
309433
|
|
|
309095
309434
|
/***/ }),
|
|
309096
309435
|
|
|
309436
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsConverter.ts":
|
|
309437
|
+
/*!*******************************************************************************************************************************!*\
|
|
309438
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsConverter.ts ***!
|
|
309439
|
+
\*******************************************************************************************************************************/
|
|
309440
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
309441
|
+
|
|
309442
|
+
"use strict";
|
|
309443
|
+
__webpack_require__.r(__webpack_exports__);
|
|
309444
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
309445
|
+
/* harmony export */ "ReferencedFieldsConverter": () => (/* binding */ ReferencedFieldsConverter)
|
|
309446
|
+
/* harmony export */ });
|
|
309447
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
309448
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
309449
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
309450
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
309451
|
+
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
309452
|
+
/* harmony import */ var _ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ReferencedFieldsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsNode.ts");
|
|
309453
|
+
|
|
309454
|
+
|
|
309455
|
+
|
|
309456
|
+
|
|
309457
|
+
|
|
309458
|
+
|
|
309459
|
+
class ReferencedFieldsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
|
|
309460
|
+
static getAcceptNodeClass() {
|
|
309461
|
+
return _ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_5__.ReferencedFieldsNode;
|
|
309462
|
+
}
|
|
309463
|
+
|
|
309464
|
+
doBuildDataDeclaration(context) {
|
|
309465
|
+
const node = this.getCurrentNodeAs(_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_5__.ReferencedFieldsNode);
|
|
309466
|
+
return context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(node));
|
|
309467
|
+
}
|
|
309468
|
+
|
|
309469
|
+
buildChildrenDataDeclaration(context) {
|
|
309470
|
+
const node = this.getCurrentNodeAs(_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_5__.ReferencedFieldsNode);
|
|
309471
|
+
return context.mergeDataDeclaration(context.processChildrenDataDeclaration((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.manual)), context.processChildrenDataDeclaration((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.referenced)));
|
|
309472
|
+
}
|
|
309473
|
+
|
|
309474
|
+
*doTraverseChildren() {
|
|
309475
|
+
const node = this.getCurrentNodeAs(_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_5__.ReferencedFieldsNode);
|
|
309476
|
+
yield* (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.manual);
|
|
309477
|
+
yield* (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_1__.findSugarNodeBases)(node.referenced);
|
|
309478
|
+
}
|
|
309479
|
+
|
|
309480
|
+
doConvert(context) {
|
|
309481
|
+
const node = this.getCurrentNodeAs(_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_5__.ReferencedFieldsNode);
|
|
309482
|
+
this.ensurePathExists(node, node.dataScope.path);
|
|
309483
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("ReferencedFields");
|
|
309484
|
+
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
|
|
309485
|
+
|
|
309486
|
+
if (node.reference == undefined || !node.reference.startsWith("userPicklist:")) {
|
|
309487
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__.SugarAttributeReadError(`Допустимо использование только пользовательских справочников. Имя должно начинаться с userPicklist:`, node, "reference");
|
|
309488
|
+
}
|
|
309489
|
+
|
|
309490
|
+
markupBuilder.prop(x => x.userPicklistName).set(node.reference.replace(/^userPicklist:/, ""));
|
|
309491
|
+
markupBuilder.prop(x => x.renderManualEditor).set(this.getConverterResultFromAttributeWithMarkup(context, node.manual));
|
|
309492
|
+
markupBuilder.prop(x => x.renderReferencedEditor).set(this.getConverterResultFromAttributeWithMarkup(context, node.referenced));
|
|
309493
|
+
markupBuilder.prop(x => x.mapping).set(node.mapping.map(x => [x[0], (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node, x[1])]));
|
|
309494
|
+
return markupBuilder.buildConverterResult();
|
|
309495
|
+
}
|
|
309496
|
+
|
|
309497
|
+
}
|
|
309498
|
+
|
|
309499
|
+
/***/ }),
|
|
309500
|
+
|
|
309501
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsNode.ts":
|
|
309502
|
+
/*!**************************************************************************************************************************!*\
|
|
309503
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsNode.ts ***!
|
|
309504
|
+
\**************************************************************************************************************************/
|
|
309505
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
309506
|
+
|
|
309507
|
+
"use strict";
|
|
309508
|
+
__webpack_require__.r(__webpack_exports__);
|
|
309509
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
309510
|
+
/* harmony export */ "ReferencedFieldsNode": () => (/* binding */ ReferencedFieldsNode)
|
|
309511
|
+
/* harmony export */ });
|
|
309512
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
309513
|
+
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
309514
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
309515
|
+
|
|
309516
|
+
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 }); }
|
|
309517
|
+
|
|
309518
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
309519
|
+
|
|
309520
|
+
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.'); }
|
|
309521
|
+
|
|
309522
|
+
|
|
309523
|
+
|
|
309524
|
+
let ReferencedFieldsNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.sugarNode)("referencedfields", `Редактор набора полей с переключением на выбор справочных или вводимых вручную значений.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_1__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("mapping", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.arrayLiteral().required, `Маппинг справочных полей в поля ФУФа`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("manual", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, `Вариант отображения при ручном вводе`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.markupAttr)("referenced", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, `Вариант отображения при выборе из справчника`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attr)("reference", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.attrType.string, `Указатель на справочник. Например picklist:17, userPicklist:partners`), _dec(_class = (_class2 = class ReferencedFieldsNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_0__.SugarNodeBase {
|
|
309525
|
+
constructor(...args) {
|
|
309526
|
+
super(...args);
|
|
309527
|
+
|
|
309528
|
+
_initializerDefineProperty(this, "dataScope", _descriptor, this);
|
|
309529
|
+
|
|
309530
|
+
_initializerDefineProperty(this, "mapping", _descriptor2, this);
|
|
309531
|
+
|
|
309532
|
+
_initializerDefineProperty(this, "manual", _descriptor3, this);
|
|
309533
|
+
|
|
309534
|
+
_initializerDefineProperty(this, "referenced", _descriptor4, this);
|
|
309535
|
+
|
|
309536
|
+
_initializerDefineProperty(this, "reference", _descriptor5, this);
|
|
309537
|
+
}
|
|
309538
|
+
|
|
309539
|
+
getOwnPath() {
|
|
309540
|
+
return this.dataScope.getOwnPath();
|
|
309541
|
+
}
|
|
309542
|
+
|
|
309543
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "dataScope", [_dec2], {
|
|
309544
|
+
configurable: true,
|
|
309545
|
+
enumerable: true,
|
|
309546
|
+
writable: true,
|
|
309547
|
+
initializer: null
|
|
309548
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "mapping", [_dec3], {
|
|
309549
|
+
configurable: true,
|
|
309550
|
+
enumerable: true,
|
|
309551
|
+
writable: true,
|
|
309552
|
+
initializer: null
|
|
309553
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "manual", [_dec4], {
|
|
309554
|
+
configurable: true,
|
|
309555
|
+
enumerable: true,
|
|
309556
|
+
writable: true,
|
|
309557
|
+
initializer: null
|
|
309558
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "referenced", [_dec5], {
|
|
309559
|
+
configurable: true,
|
|
309560
|
+
enumerable: true,
|
|
309561
|
+
writable: true,
|
|
309562
|
+
initializer: null
|
|
309563
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "reference", [_dec6], {
|
|
309564
|
+
configurable: true,
|
|
309565
|
+
enumerable: true,
|
|
309566
|
+
writable: true,
|
|
309567
|
+
initializer: null
|
|
309568
|
+
})), _class2)) || _class);
|
|
309569
|
+
|
|
309570
|
+
/***/ }),
|
|
309571
|
+
|
|
309097
309572
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/PicklistReference.ts":
|
|
309098
309573
|
/*!*************************************************************************************************************!*\
|
|
309099
309574
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/PicklistReference.ts ***!
|
|
@@ -311286,8 +311761,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
311286
311761
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ "path");
|
|
311287
311762
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
|
311288
311763
|
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
311289
|
-
/* harmony import */ var
|
|
311290
|
-
/* harmony import */ var
|
|
311764
|
+
/* harmony import */ var _Common_FormActionHandlers_ContextualActionNames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/FormActionHandlers/ContextualActionNames */ "./Common/FormActionHandlers/ContextualActionNames.ts");
|
|
311765
|
+
/* harmony import */ var _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ConverterResults/ConverterResult */ "./Generator/src/generators/markupGenerator/ConverterResults/ConverterResult.ts");
|
|
311766
|
+
/* harmony import */ var _ConverterResults_ModuleDescriptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ConverterResults/ModuleDescriptor */ "./Generator/src/generators/markupGenerator/ConverterResults/ModuleDescriptor.ts");
|
|
311767
|
+
|
|
311291
311768
|
|
|
311292
311769
|
|
|
311293
311770
|
|
|
@@ -311343,6 +311820,21 @@ class MarkupBuildingContext {
|
|
|
311343
311820
|
}
|
|
311344
311821
|
|
|
311345
311822
|
generateHelperFunctionExpression(node, propName, helperFunctionName) {
|
|
311823
|
+
if (helperFunctionName != undefined && (0,_Common_FormActionHandlers_ContextualActionNames__WEBPACK_IMPORTED_MODULE_3__.isContextualActionName)(helperFunctionName)) {
|
|
311824
|
+
if (!(0,_Common_FormActionHandlers_ContextualActionNames__WEBPACK_IMPORTED_MODULE_3__.isValidContextualActionName)(helperFunctionName)) {
|
|
311825
|
+
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__.SugarAttributeReadError(`${helperFunctionName} не является корректным именем контекстного действиея`, node, "propName");
|
|
311826
|
+
}
|
|
311827
|
+
|
|
311828
|
+
return {
|
|
311829
|
+
type: "ContextualAction",
|
|
311830
|
+
contextualActionName: helperFunctionName
|
|
311831
|
+
};
|
|
311832
|
+
} else {
|
|
311833
|
+
return this.generateHelperFunctionExpressionWithoutContext(node, propName, helperFunctionName);
|
|
311834
|
+
}
|
|
311835
|
+
}
|
|
311836
|
+
|
|
311837
|
+
generateHelperFunctionExpressionWithoutContext(node, propName, helperFunctionName) {
|
|
311346
311838
|
if (helperFunctionName == undefined) {
|
|
311347
311839
|
return undefined;
|
|
311348
311840
|
}
|
|
@@ -311360,7 +311852,7 @@ class MarkupBuildingContext {
|
|
|
311360
311852
|
return {
|
|
311361
311853
|
type: "Expression",
|
|
311362
311854
|
expression: `helperFunctions.${helperFunctionName}`,
|
|
311363
|
-
dependencies: [
|
|
311855
|
+
dependencies: [_ConverterResults_ModuleDescriptor__WEBPACK_IMPORTED_MODULE_5__.ModuleDescriptor.helperFunctions()]
|
|
311364
311856
|
};
|
|
311365
311857
|
}
|
|
311366
311858
|
|
|
@@ -311375,7 +311867,7 @@ class MarkupBuildingContext {
|
|
|
311375
311867
|
subResult.push(currentNode);
|
|
311376
311868
|
return currentNode.getRenderBody();
|
|
311377
311869
|
});
|
|
311378
|
-
return
|
|
311870
|
+
return _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_4__.ConverterResult.fromConverterResults(subResult, children.join(""));
|
|
311379
311871
|
}
|
|
311380
311872
|
|
|
311381
311873
|
pushPathsContext() {
|
|
@@ -312743,28 +313235,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
312743
313235
|
/* harmony export */ });
|
|
312744
313236
|
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
|
|
312745
313237
|
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_0__);
|
|
312746
|
-
/* harmony import */ var
|
|
312747
|
-
/* harmony import */ var
|
|
312748
|
-
/* harmony import */ var
|
|
312749
|
-
/* harmony import */ var
|
|
312750
|
-
/* harmony import */ var
|
|
312751
|
-
/* harmony import */ var
|
|
312752
|
-
/* harmony import */ var
|
|
312753
|
-
/* harmony import */ var
|
|
312754
|
-
/* harmony import */ var
|
|
312755
|
-
/* harmony import */ var
|
|
312756
|
-
/* harmony import */ var
|
|
312757
|
-
/* harmony import */ var
|
|
312758
|
-
/* harmony import */ var
|
|
312759
|
-
/* harmony import */ var
|
|
312760
|
-
/* harmony import */ var
|
|
312761
|
-
/* harmony import */ var
|
|
312762
|
-
/* harmony import */ var
|
|
312763
|
-
/* harmony import */ var
|
|
312764
|
-
/* harmony import */ var
|
|
312765
|
-
/* harmony import */ var
|
|
312766
|
-
/* harmony import */ var
|
|
312767
|
-
/* harmony import */ var
|
|
313238
|
+
/* harmony import */ var _common_CodeGeneration_PropsBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/CodeGeneration/PropsBuilder */ "./Generator/src/common/CodeGeneration/PropsBuilder.ts");
|
|
313239
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
313240
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
313241
|
+
/* harmony import */ var _ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ClassMetadataAccess */ "./Generator/src/generators/markupGenerator/Serializer/ClassMetadataAccess.ts");
|
|
313242
|
+
/* harmony import */ var _Properties_DeserializeTracer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Properties/DeserializeTracer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/DeserializeTracer.ts");
|
|
313243
|
+
/* harmony import */ var _Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Properties/MixinPropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/MixinPropertyDeserializer.ts");
|
|
313244
|
+
/* harmony import */ var _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Properties/SinglePropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/SinglePropertyDeserializer.ts");
|
|
313245
|
+
/* harmony import */ var _Properties_ValuesParsers_ArrayValueParser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Properties/ValuesParsers/ArrayValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/ArrayValueParser.ts");
|
|
313246
|
+
/* harmony import */ var _Properties_ValuesParsers_BooleanValueParser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Properties/ValuesParsers/BooleanValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/BooleanValueParser.ts");
|
|
313247
|
+
/* harmony import */ var _Properties_ValuesParsers_DelimitedStringArrayValueParser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Properties/ValuesParsers/DelimitedStringArrayValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/DelimitedStringArrayValueParser.ts");
|
|
313248
|
+
/* harmony import */ var _Properties_ValuesParsers_EnumValueParser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Properties/ValuesParsers/EnumValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/EnumValueParser.ts");
|
|
313249
|
+
/* harmony import */ var _Properties_ValuesParsers_InlineStyleValueParser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Properties/ValuesParsers/InlineStyleValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/InlineStyleValueParser.ts");
|
|
313250
|
+
/* harmony import */ var _Properties_ValuesParsers_LengthUnitValueParser__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Properties/ValuesParsers/LengthUnitValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/LengthUnitValueParser.ts");
|
|
313251
|
+
/* harmony import */ var _Properties_ValuesParsers_LocalizedStringValueParser__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Properties/ValuesParsers/LocalizedStringValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/LocalizedStringValueParser.ts");
|
|
313252
|
+
/* harmony import */ var _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Properties/ValuesParsers/NumberValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/NumberValueParser.ts");
|
|
313253
|
+
/* harmony import */ var _Properties_ValuesParsers_ObjectValueParser__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Properties/ValuesParsers/ObjectValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/ObjectValueParser.ts");
|
|
313254
|
+
/* harmony import */ var _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Properties/ValuesParsers/StringValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/StringValueParser.ts");
|
|
313255
|
+
/* harmony import */ var _Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Properties/ValuesSources/AttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource.ts");
|
|
313256
|
+
/* harmony import */ var _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Properties/ValuesSources/ChildrenNodesValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource.ts");
|
|
313257
|
+
/* harmony import */ var _Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Properties/ValuesSources/SingleChildValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource.ts");
|
|
313258
|
+
/* harmony import */ var _Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Properties/ValuesSources/SkipAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource.ts");
|
|
313259
|
+
/* harmony import */ var _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./SugarNodeMetadata */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeMetadata.ts");
|
|
313260
|
+
/* harmony import */ var _Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Properties/ValuesSources/MarkupOrAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource.ts");
|
|
313261
|
+
|
|
312768
313262
|
|
|
312769
313263
|
|
|
312770
313264
|
|
|
@@ -312790,7 +313284,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
312790
313284
|
|
|
312791
313285
|
function sugarNode(nodeName, description, docFilesContext, canDeserialize) {
|
|
312792
313286
|
return target => {
|
|
312793
|
-
const sugarNodeMetadata = new
|
|
313287
|
+
const sugarNodeMetadata = new _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_22__.SugarNodeMetadata(canDeserialize);
|
|
312794
313288
|
sugarNodeMetadata.setNodeName(nodeName);
|
|
312795
313289
|
|
|
312796
313290
|
if (docFilesContext != undefined && typeof docFilesContext !== "string") {
|
|
@@ -312799,84 +313293,84 @@ function sugarNode(nodeName, description, docFilesContext, canDeserialize) {
|
|
|
312799
313293
|
|
|
312800
313294
|
sugarNodeMetadata.description = description;
|
|
312801
313295
|
|
|
312802
|
-
for (const propertyDeserializer of (0,
|
|
313296
|
+
for (const propertyDeserializer of (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getPropertyDeserializers)(target)) {
|
|
312803
313297
|
sugarNodeMetadata.addPropertyDeserializer(propertyDeserializer);
|
|
312804
313298
|
}
|
|
312805
313299
|
|
|
312806
|
-
(0,
|
|
313300
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setSugarNodeMetadata)(target, sugarNodeMetadata);
|
|
312807
313301
|
};
|
|
312808
313302
|
}
|
|
312809
313303
|
function attrMixinNode(description, docFilesLocation) {
|
|
312810
313304
|
return target => {
|
|
312811
|
-
const sugarNodeMetadata = new
|
|
313305
|
+
const sugarNodeMetadata = new _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_22__.SugarAttributesMixinMetadata();
|
|
312812
313306
|
|
|
312813
|
-
for (const propertyDeserializer of (0,
|
|
313307
|
+
for (const propertyDeserializer of (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getPropertyDeserializers)(target)) {
|
|
312814
313308
|
sugarNodeMetadata.addPropertyDeserializer(propertyDeserializer);
|
|
312815
313309
|
}
|
|
312816
313310
|
|
|
312817
|
-
(0,
|
|
313311
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertiesContainerMetadata)(target, sugarNodeMetadata);
|
|
312818
313312
|
};
|
|
312819
313313
|
}
|
|
312820
313314
|
function children(onlyTagName, nodeClasses = []) {
|
|
312821
313315
|
return (targetClass, propName) => {
|
|
312822
|
-
(0,
|
|
313316
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_19__.ChildrenNodesValueSource(onlyTagName == undefined || Array.isArray(onlyTagName) ? onlyTagName : [onlyTagName], nodeClasses)));
|
|
312823
313317
|
};
|
|
312824
313318
|
}
|
|
312825
313319
|
function singleChild(tagName, nodeClasses = []) {
|
|
312826
313320
|
return (targetClass, propName) => {
|
|
312827
|
-
(0,
|
|
313321
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_20__.SingleChildValueSource(tagName, nodeClasses)));
|
|
312828
313322
|
};
|
|
312829
313323
|
}
|
|
312830
313324
|
function attr(attrName, valueParser, dec) {
|
|
312831
313325
|
return (targetClass, propName) => {
|
|
312832
|
-
(0,
|
|
313326
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_18__.AttributeValueSource(attrName, valueParser), dec));
|
|
312833
313327
|
};
|
|
312834
313328
|
}
|
|
312835
313329
|
function markupAttr(attrName, valueParser, dec) {
|
|
312836
313330
|
return (targetClass, propName) => {
|
|
312837
|
-
(0,
|
|
313331
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_23__.MarkupOrAttributeValueSource(attrName, valueParser), dec));
|
|
312838
313332
|
};
|
|
312839
313333
|
}
|
|
312840
313334
|
function deprecatedAttr(attrName, reason) {
|
|
312841
313335
|
return (targetClass, propName) => {
|
|
312842
|
-
(0,
|
|
313336
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_21__.SkipAttributeValueSource(attrName, reason), "DEPRECATED"));
|
|
312843
313337
|
};
|
|
312844
313338
|
}
|
|
312845
313339
|
function attrMixin(nodeClass) {
|
|
312846
313340
|
return (targetClass, propName) => {
|
|
312847
|
-
(0,
|
|
313341
|
+
(0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.MixinPropertyDeserializer(propName.toString(), nodeClass));
|
|
312848
313342
|
};
|
|
312849
313343
|
}
|
|
312850
313344
|
const attrType = {
|
|
312851
|
-
array: innerValue => new
|
|
312852
|
-
stringArray: new
|
|
312853
|
-
delimitedStringArray: new
|
|
312854
|
-
string: new
|
|
312855
|
-
typeName: new
|
|
312856
|
-
bindingPath: new
|
|
312857
|
-
customControl: new
|
|
312858
|
-
javascriptExpression: new
|
|
312859
|
-
pathToFile: new
|
|
312860
|
-
helperFunctionName: new
|
|
312861
|
-
picklistId: new
|
|
312862
|
-
modelPath: new
|
|
312863
|
-
inlineStyle: new
|
|
312864
|
-
localizedString: new
|
|
312865
|
-
lengthUnit: new
|
|
312866
|
-
boolean: new
|
|
312867
|
-
number: new
|
|
312868
|
-
objectLiteral: () => new
|
|
312869
|
-
arrayLiteral: () => new
|
|
312870
|
-
color: new
|
|
312871
|
-
enum: (...values) => new
|
|
312872
|
-
object: new
|
|
313345
|
+
array: innerValue => new _Properties_ValuesParsers_ArrayValueParser__WEBPACK_IMPORTED_MODULE_8__.ArrayValueParser(innerValue),
|
|
313346
|
+
stringArray: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringArrayValueParser(),
|
|
313347
|
+
delimitedStringArray: new _Properties_ValuesParsers_DelimitedStringArrayValueParser__WEBPACK_IMPORTED_MODULE_10__.DelimitedStringArrayValueParser(),
|
|
313348
|
+
string: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313349
|
+
typeName: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313350
|
+
bindingPath: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313351
|
+
customControl: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313352
|
+
javascriptExpression: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313353
|
+
pathToFile: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313354
|
+
helperFunctionName: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313355
|
+
picklistId: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313356
|
+
modelPath: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313357
|
+
inlineStyle: new _Properties_ValuesParsers_InlineStyleValueParser__WEBPACK_IMPORTED_MODULE_12__.InlineStyleValueParser(),
|
|
313358
|
+
localizedString: new _Properties_ValuesParsers_LocalizedStringValueParser__WEBPACK_IMPORTED_MODULE_14__.LocalizedStringValueParser(),
|
|
313359
|
+
lengthUnit: new _Properties_ValuesParsers_LengthUnitValueParser__WEBPACK_IMPORTED_MODULE_13__.LengthUnitValueParser(),
|
|
313360
|
+
boolean: new _Properties_ValuesParsers_BooleanValueParser__WEBPACK_IMPORTED_MODULE_9__.BooleanValueParser(),
|
|
313361
|
+
number: new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__.NumberValueParser(),
|
|
313362
|
+
objectLiteral: () => new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__.AnyExpressionValueParser(),
|
|
313363
|
+
arrayLiteral: () => new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__.AnyExpressionValueParser(),
|
|
313364
|
+
color: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
|
|
313365
|
+
enum: (...values) => new _Properties_ValuesParsers_EnumValueParser__WEBPACK_IMPORTED_MODULE_11__.EnumValueParser(values),
|
|
313366
|
+
object: new _Properties_ValuesParsers_ObjectValueParser__WEBPACK_IMPORTED_MODULE_16__.ObjectValueParser()
|
|
312873
313367
|
};
|
|
312874
313368
|
function findSugarNodeBases(markupAttrValue) {
|
|
312875
|
-
if (typeof markupAttrValue === "string" || markupAttrValue == undefined) {
|
|
313369
|
+
if (typeof markupAttrValue === "string" || markupAttrValue == undefined || (0,_common_CodeGeneration_PropsBuilder__WEBPACK_IMPORTED_MODULE_1__.isExpressionPropValue)(markupAttrValue)) {
|
|
312876
313370
|
return [];
|
|
312877
313371
|
}
|
|
312878
313372
|
|
|
312879
|
-
return markupAttrValue.map(x => typeof x === "string" ? undefined : x).filter(
|
|
313373
|
+
return markupAttrValue.map(x => typeof x === "string" ? undefined : x).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrUndefined);
|
|
312880
313374
|
}
|
|
312881
313375
|
function localizedStringToJsx(str) {
|
|
312882
313376
|
if (typeof str === "string") {
|
|
@@ -312912,10 +313406,10 @@ class SugarNodeBase {
|
|
|
312912
313406
|
const ownPath = this.getOwnPath();
|
|
312913
313407
|
|
|
312914
313408
|
if (ownPath != undefined) {
|
|
312915
|
-
return new
|
|
313409
|
+
return new _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelPath([]).joinWith(ownPath).normalize();
|
|
312916
313410
|
}
|
|
312917
313411
|
|
|
312918
|
-
return new
|
|
313412
|
+
return new _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelPath([]);
|
|
312919
313413
|
} else {
|
|
312920
313414
|
const ownPath = this.getOwnPath();
|
|
312921
313415
|
|
|
@@ -312929,7 +313423,7 @@ class SugarNodeBase {
|
|
|
312929
313423
|
|
|
312930
313424
|
getFullPathForChildren() {
|
|
312931
313425
|
if (this.isMultiple()) {
|
|
312932
|
-
return this.getFullPath().joinWith(
|
|
313426
|
+
return this.getFullPath().joinWith(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.current).normalize();
|
|
312933
313427
|
} else {
|
|
312934
313428
|
return this.getFullPath();
|
|
312935
313429
|
}
|
|
@@ -312953,7 +313447,7 @@ class UnknownSugarNode extends SugarNodeBase {
|
|
|
312953
313447
|
|
|
312954
313448
|
getOwnPath() {
|
|
312955
313449
|
const pathAttributeValue = this.sourceXmlNode.attrAsString("path");
|
|
312956
|
-
return pathAttributeValue != undefined ?
|
|
313450
|
+
return pathAttributeValue != undefined ? _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.ModelPath.createFromMask(pathAttributeValue, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each) : undefined;
|
|
312957
313451
|
}
|
|
312958
313452
|
|
|
312959
313453
|
}
|
|
@@ -312981,7 +313475,7 @@ class SugarSerializer {
|
|
|
312981
313475
|
throw new Error(`${node.name} is not attribute value node`);
|
|
312982
313476
|
}
|
|
312983
313477
|
|
|
312984
|
-
return (_node$name$split$ = node.name.split(".")[1]) !== null && _node$name$split$ !== void 0 ? _node$name$split$ : (0,
|
|
313478
|
+
return (_node$name$split$ = node.name.split(".")[1]) !== null && _node$name$split$ !== void 0 ? _node$name$split$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)();
|
|
312985
313479
|
}
|
|
312986
313480
|
|
|
312987
313481
|
registerNode(nodeClass) {
|
|
@@ -312997,7 +313491,7 @@ class SugarSerializer {
|
|
|
312997
313491
|
if (metadata.canDeserialize(xmlNode)) {
|
|
312998
313492
|
const result = new nodeClass();
|
|
312999
313493
|
result.sourceXmlNode = xmlNode;
|
|
313000
|
-
metadata.fillFromSugarXmlNode(result, xmlNode, this,
|
|
313494
|
+
metadata.fillFromSugarXmlNode(result, xmlNode, this, _Properties_DeserializeTracer__WEBPACK_IMPORTED_MODULE_5__.nullDeserializeTracer);
|
|
313001
313495
|
return result;
|
|
313002
313496
|
}
|
|
313003
313497
|
}
|
|
@@ -313018,7 +313512,7 @@ class SugarSerializer {
|
|
|
313018
313512
|
}
|
|
313019
313513
|
|
|
313020
313514
|
getNodeClassMetadata(nodeClass) {
|
|
313021
|
-
return (0,
|
|
313515
|
+
return (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getSugarNodeMetadata)(nodeClass);
|
|
313022
313516
|
}
|
|
313023
313517
|
|
|
313024
313518
|
}
|
|
@@ -313454,6 +313948,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
313454
313948
|
/* harmony import */ var _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ../ElementProcessors/Layout/FixedTabs/FixedTabsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/FixedTabs/FixedTabsNode.ts");
|
|
313455
313949
|
/* harmony import */ var _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ../ElementProcessors/MultiControls/Multiple/MultipleNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/Multiple/MultipleNode.ts");
|
|
313456
313950
|
/* harmony import */ var _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ../ElementProcessors/Action/ExcelPastePanel/ExcelPastePanelNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/ExcelPastePanel/ExcelPastePanelNode.ts");
|
|
313951
|
+
/* harmony import */ var _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ../ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/ReferencedFields/ReferencedFieldsNode.ts");
|
|
313952
|
+
/* harmony import */ var _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ../ElementProcessors/FormParts/UserPicklist/UserPicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/UserPicklist/UserPicklistNode.ts");
|
|
313953
|
+
|
|
313954
|
+
|
|
313457
313955
|
|
|
313458
313956
|
|
|
313459
313957
|
|
|
@@ -313660,6 +314158,8 @@ function registerDefaultSugarNodes(result) {
|
|
|
313660
314158
|
result.registerNode(_ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_104__.FixedTabNode);
|
|
313661
314159
|
result.registerNode(_ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_105__.MultipleNode);
|
|
313662
314160
|
result.registerNode(_ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_106__.ExcelPastePanelNode);
|
|
314161
|
+
result.registerNode(_ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_107__.ReferencedFieldsNode);
|
|
314162
|
+
result.registerNode(_ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_108__.UserPicklistNode);
|
|
313663
314163
|
}
|
|
313664
314164
|
|
|
313665
314165
|
function createDefaultSugarSerializer() {
|
|
@@ -313673,7 +314173,7 @@ function getAllSugarValidationNodeClasses() {
|
|
|
313673
314173
|
return [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.TypeNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.CustomValidationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.PatternTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.EnumerationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.AttachmentsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.LengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MinlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.TotaldigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.IntegerdigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.FractiondigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.DigestcheckTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MininclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.MaxinclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__.ForcedTypeChecksNode];
|
|
313674
314174
|
}
|
|
313675
314175
|
function getAllSugarNodeClasses() {
|
|
313676
|
-
return [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_93__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_88__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_88__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_88__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_29__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_30__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_12__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_13__.BlockNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_14__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_15__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_16__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_17__.ButtonNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_18__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_19__.CheckboxNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_20__.ChoiceNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_21__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_22__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_89__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_23__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_24__.DateNode, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_26__.DiadocSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_27__.EntityNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_36__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_37__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_38__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_39__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_40__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_41__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_42__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_47__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_43__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_48__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_49__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_50__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_52__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_51__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_54__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_53__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_55__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_56__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_57__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_59__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_10__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_60__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_61__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_62__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_64__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_66__.LinkNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_63__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_67__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_31__.MenuNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_69__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_70__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_71__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_68__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_72__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_73__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_74__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_75__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_46__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_76__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_77__.PicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_78__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_32__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_80__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_33__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_34__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_81__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_90__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_82__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_79__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_83__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_91__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_84__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_86__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_85__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_87__.SupNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_94__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_101__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_95__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_96__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_97__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_35__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_98__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_99__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_100__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.MessageBoxNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_66__.LinkNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_65__.LineTextNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_58__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_58__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_58__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_90__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_90__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_5__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_4__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_91__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_9__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_3__.DropdownButtonNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_3__.DropdownButtonActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_8__.TabsNode, _ElementProcessors_ValueEditors_FiasMvd_FiasMvdNode__WEBPACK_IMPORTED_MODULE_0__.FiasMvdNode, _ElementProcessors_ValueEditors_FiasFns_FiasFnsNode__WEBPACK_IMPORTED_MODULE_1__.FiasFnsNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_6__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_7__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_104__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_104__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_105__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_106__.ExcelPastePanelNode];
|
|
314176
|
+
return [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_93__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_88__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_88__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_88__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_29__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_30__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_12__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_13__.BlockNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_14__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_15__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_16__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_17__.ButtonNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_18__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_19__.CheckboxNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_20__.ChoiceNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_21__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_22__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_89__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_23__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_24__.DateNode, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_26__.DiadocSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_27__.EntityNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_36__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_37__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_38__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_39__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_40__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_41__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_42__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_47__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_43__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_48__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_49__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_50__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_52__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_51__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_54__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_53__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_55__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_56__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_57__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_59__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_10__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_60__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_61__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_62__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_64__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_66__.LinkNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_63__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_67__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_31__.MenuNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_69__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_70__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_71__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_68__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_72__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_73__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_74__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_75__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_46__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_76__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_77__.PicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_78__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_32__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_80__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_33__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_34__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_81__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_90__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_82__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_79__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_83__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_91__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_84__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_86__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_85__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_87__.SupNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_94__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_101__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_95__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_96__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_97__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_35__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_98__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_99__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_100__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.MessageBoxNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_66__.LinkNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_28__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_65__.LineTextNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_58__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_58__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_58__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_90__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_90__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_5__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_4__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_91__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_9__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_3__.DropdownButtonNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_3__.DropdownButtonActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_8__.TabsNode, _ElementProcessors_ValueEditors_FiasMvd_FiasMvdNode__WEBPACK_IMPORTED_MODULE_0__.FiasMvdNode, _ElementProcessors_ValueEditors_FiasFns_FiasFnsNode__WEBPACK_IMPORTED_MODULE_1__.FiasFnsNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_6__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_7__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_104__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_104__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_105__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_106__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_107__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_108__.UserPicklistNode];
|
|
313677
314177
|
}
|
|
313678
314178
|
|
|
313679
314179
|
/***/ }),
|
|
@@ -315197,16 +315697,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
315197
315697
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
315198
315698
|
/* harmony import */ var _common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../common/CodeGeneration/ClassInstanceBuilder */ "./Generator/src/common/CodeGeneration/ClassInstanceBuilder.ts");
|
|
315199
315699
|
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
315200
|
-
/* harmony import */ var
|
|
315700
|
+
/* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
315201
315701
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
315202
|
-
/* harmony import */ var
|
|
315203
|
-
/* harmony import */ var
|
|
315204
|
-
/* harmony import */ var
|
|
315205
|
-
/* harmony import */ var
|
|
315206
|
-
/* harmony import */ var
|
|
315207
|
-
/* harmony import */ var
|
|
315208
|
-
/* harmony import */ var
|
|
315209
|
-
/* harmony import */ var
|
|
315702
|
+
/* harmony import */ var _markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../markupGenerator/AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
|
|
315703
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/AttachmentsValueValidatorGenerator.ts");
|
|
315704
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/CustomValidationValueValidatorGenerator.ts");
|
|
315705
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/NumberLengthConstraintValueValidatorGenerator.ts");
|
|
315706
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/DigestCheckValueValidatorGenerator.ts");
|
|
315707
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/EnumerationValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/EnumerationValidatorGenerator.ts");
|
|
315708
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/IntegerRangeValueValidatorGenerator.ts");
|
|
315709
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/MatchOneOfPatternValidatorGenerator.ts");
|
|
315710
|
+
/* harmony import */ var _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator */ "./Generator/src/generators/validationGenerator/TypeBasedValidatorGenerators/StringLengthConstraintValueValidatorGenerator.ts");
|
|
315711
|
+
|
|
315210
315712
|
|
|
315211
315713
|
|
|
315212
315714
|
|
|
@@ -315222,7 +315724,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
315222
315724
|
|
|
315223
315725
|
class ValidationGenerator {
|
|
315224
315726
|
constructor(sugarRoot, typesRegistry, controlCustomizationContext, schemaRng, useSchemaValidations, validationsContent = []) {
|
|
315225
|
-
this.typeBasedValidatorGenerators = [
|
|
315727
|
+
this.typeBasedValidatorGenerators = [_TypeBasedValidatorGenerators_MatchOneOfPatternValidatorGenerator__WEBPACK_IMPORTED_MODULE_12__.MatchOneOfPatternValidatorGenerator, _TypeBasedValidatorGenerators_EnumerationValidatorGenerator__WEBPACK_IMPORTED_MODULE_10__.EnumerationValidatorGenerator, _TypeBasedValidatorGenerators_StringLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_13__.StringLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_NumberLengthConstraintValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_8__.NumberLengthConstraintValueValidatorGenerator, _TypeBasedValidatorGenerators_IntegerRangeValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_11__.IntegerRangeValueValidatorGenerator, _TypeBasedValidatorGenerators_DigestCheckValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_9__.DigestCheckValueValidatorGenerator, _TypeBasedValidatorGenerators_AttachmentsValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_6__.AttachmentsValueValidatorGenerator, _TypeBasedValidatorGenerators_CustomValidationValueValidatorGenerator__WEBPACK_IMPORTED_MODULE_7__.CustomValidationValueValidatorGenerator];
|
|
315226
315728
|
this.sugarRoot = void 0;
|
|
315227
315729
|
this.validationsContent = void 0;
|
|
315228
315730
|
this.customValidations = void 0;
|
|
@@ -315280,69 +315782,62 @@ class ValidationGenerator {
|
|
|
315280
315782
|
}
|
|
315281
315783
|
|
|
315282
315784
|
generate() {
|
|
315785
|
+
return `
|
|
315786
|
+
export default ${this.generateValidationsFactory()};`;
|
|
315787
|
+
}
|
|
315788
|
+
|
|
315789
|
+
generateValidationsFactory() {
|
|
315790
|
+
var _getConverterByNodeCl;
|
|
315791
|
+
|
|
315283
315792
|
const sugarNode = this.sugarRoot;
|
|
315284
|
-
const
|
|
315793
|
+
const converterType = (_getConverterByNodeCl = (0,_markupGenerator_AllConverters__WEBPACK_IMPORTED_MODULE_5__.getConverterByNodeClass)((0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.getNodeClass)(sugarNode))) !== null && _getConverterByNodeCl !== void 0 ? _getConverterByNodeCl : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(`Converter for root node must be defined`);
|
|
315794
|
+
const converter = new converterType(sugarNode);
|
|
315285
315795
|
converter.buildValidations(this);
|
|
315286
|
-
let result = `
|
|
315287
|
-
export default function validationFunctions({ Engine: { ValidationHelper, Validators } }) {
|
|
315796
|
+
let result = `function validationFunctions({ Engine: { ValidationHelper, Validators } }) {
|
|
315288
315797
|
const t = str => x => x.translate(str);
|
|
315289
315798
|
return {
|
|
315290
315799
|
${Object.keys(this.validations).map(x => `["${x}"]: ${this.validations[x]}`).join(",")}
|
|
315291
315800
|
};
|
|
315292
|
-
}
|
|
315801
|
+
}`; // '\u0424' -> 'Ф'
|
|
315293
315802
|
|
|
315294
315803
|
result = unescape(result.replace(/(\\)(u[\dA-Fa-f]{4})/g, "%$2"));
|
|
315295
315804
|
return result;
|
|
315296
315805
|
} // tslint:disable-next-line:cyclomatic-complexity
|
|
315297
315806
|
|
|
315298
315807
|
|
|
315299
|
-
processValidations(bindingPath,
|
|
315300
|
-
const
|
|
315808
|
+
processValidations(bindingPath, sugarOptional, sugarNodeType, gId, highOrderDescription, fileLoaderOptions) {
|
|
315809
|
+
const rngSchemaNodeType = this.getRngSchemaTypeInfo(bindingPath);
|
|
315301
315810
|
|
|
315302
|
-
if (bindingPath && (
|
|
315303
|
-
var
|
|
315811
|
+
if (bindingPath && (sugarNodeType != undefined || rngSchemaNodeType != undefined)) {
|
|
315812
|
+
var _ref, _ref2, _ref3, _ref4, _sugarNodeType$base;
|
|
315304
315813
|
|
|
315305
|
-
const rootValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.CompositeValueValidatorWithForcedValidators");
|
|
315306
315814
|
const validators = [];
|
|
315307
315815
|
const forcedValidators = [];
|
|
315816
|
+
const rootValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.CompositeValueValidatorWithForcedValidators");
|
|
315817
|
+
const isOptional = sugarOptional !== null && sugarOptional !== void 0 ? sugarOptional : this.isOptionalFromSchema(bindingPath);
|
|
315818
|
+
rootValidator.set(0, isOptional);
|
|
315819
|
+
validators.push(this.buildRequiredValidator((_ref = (_ref2 = (_ref3 = (_ref4 = highOrderDescription !== null && highOrderDescription !== void 0 ? highOrderDescription : sugarNodeType === null || sugarNodeType === void 0 ? void 0 : sugarNodeType.requiredDescription) !== null && _ref4 !== void 0 ? _ref4 : rngSchemaNodeType === null || rngSchemaNodeType === void 0 ? void 0 : rngSchemaNodeType.requiredDescription) !== null && _ref3 !== void 0 ? _ref3 : sugarNodeType === null || sugarNodeType === void 0 ? void 0 : sugarNodeType.description) !== null && _ref2 !== void 0 ? _ref2 : rngSchemaNodeType === null || rngSchemaNodeType === void 0 ? void 0 : rngSchemaNodeType.description) !== null && _ref !== void 0 ? _ref : "Поле должно быть заполнено"));
|
|
315820
|
+
const sugarNodeBaseType = (_sugarNodeType$base = sugarNodeType === null || sugarNodeType === void 0 ? void 0 : sugarNodeType.base) !== null && _sugarNodeType$base !== void 0 ? _sugarNodeType$base : rngSchemaNodeType === null || rngSchemaNodeType === void 0 ? void 0 : rngSchemaNodeType.baseType;
|
|
315821
|
+
let baseTypeValidator;
|
|
315308
315822
|
|
|
315309
|
-
if (
|
|
315310
|
-
|
|
315311
|
-
} else {
|
|
315312
|
-
if (type != undefined) {
|
|
315313
|
-
var _ref;
|
|
315314
|
-
|
|
315315
|
-
rootValidator.set(0, false);
|
|
315316
|
-
validators.push(this.buildRequiredValidator((_ref = emptyDescription !== null && emptyDescription !== void 0 ? emptyDescription : type.requiredDescription) !== null && _ref !== void 0 ? _ref : type.description));
|
|
315317
|
-
} else if (schemaTypeNode != undefined) {
|
|
315318
|
-
var _ref2, _ref3;
|
|
315823
|
+
if (sugarNodeBaseType != undefined) {
|
|
315824
|
+
var _sugarNodeType$descri;
|
|
315319
315825
|
|
|
315320
|
-
|
|
315321
|
-
validators.push(this.buildRequiredValidator((_ref2 = (_ref3 = emptyDescription !== null && emptyDescription !== void 0 ? emptyDescription : schemaTypeNode.requiredDescription) !== null && _ref3 !== void 0 ? _ref3 : schemaTypeNode.description) !== null && _ref2 !== void 0 ? _ref2 : this.buildRequiredDescriptionForSchemaType(schemaTypeNode)));
|
|
315322
|
-
}
|
|
315826
|
+
baseTypeValidator = this.buildBaseTypeValidator(sugarNodeBaseType, (_sugarNodeType$descri = sugarNodeType === null || sugarNodeType === void 0 ? void 0 : sugarNodeType.description) !== null && _sugarNodeType$descri !== void 0 ? _sugarNodeType$descri : rngSchemaNodeType === null || rngSchemaNodeType === void 0 ? void 0 : rngSchemaNodeType.description, sugarNodeType !== null && sugarNodeType !== void 0 ? sugarNodeType : undefined);
|
|
315323
315827
|
}
|
|
315324
315828
|
|
|
315325
|
-
|
|
315326
|
-
|
|
315327
|
-
|
|
315328
|
-
if (type != undefined) {
|
|
315329
|
-
baseType = baseTypeName ? this.buildBaseTypeValidator(baseTypeName, type.description, type) : undefined;
|
|
315829
|
+
if (baseTypeValidator != undefined) {
|
|
315830
|
+
validators.push(baseTypeValidator);
|
|
315330
315831
|
}
|
|
315331
315832
|
|
|
315332
|
-
if (
|
|
315333
|
-
|
|
315334
|
-
}
|
|
315833
|
+
if (rngSchemaNodeType != undefined) {
|
|
315834
|
+
var _sugarNodeType$descri2;
|
|
315335
315835
|
|
|
315336
|
-
|
|
315337
|
-
validators.push(baseType);
|
|
315836
|
+
validators.push(...rngSchemaNodeType.buildValidators((_sugarNodeType$descri2 = sugarNodeType === null || sugarNodeType === void 0 ? void 0 : sugarNodeType.description) !== null && _sugarNodeType$descri2 !== void 0 ? _sugarNodeType$descri2 : rngSchemaNodeType === null || rngSchemaNodeType === void 0 ? void 0 : rngSchemaNodeType.description));
|
|
315338
315837
|
}
|
|
315339
315838
|
|
|
315340
|
-
if (
|
|
315341
|
-
|
|
315342
|
-
}
|
|
315343
|
-
|
|
315344
|
-
if (type != undefined) {
|
|
315345
|
-
let typeCheckNodes = type.flattenTypeCheckNodes();
|
|
315839
|
+
if (sugarNodeType != undefined) {
|
|
315840
|
+
let typeCheckNodes = sugarNodeType.flattenTypeCheckNodes();
|
|
315346
315841
|
|
|
315347
315842
|
while ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.isLengthGreaterThenOrEqual)(typeCheckNodes, 1)) {
|
|
315348
315843
|
const currentNode = typeCheckNodes[0];
|
|
@@ -315354,8 +315849,8 @@ class ValidationGenerator {
|
|
|
315354
315849
|
throw new Error(`InvalidProgramState`);
|
|
315355
315850
|
}
|
|
315356
315851
|
|
|
315357
|
-
const force = acceptNodes.some(x =>
|
|
315358
|
-
const result = generator.generatorValidator(
|
|
315852
|
+
const force = acceptNodes.some(x => sugarNodeType.isNodeForced(x));
|
|
315853
|
+
const result = generator.generatorValidator(sugarNodeType, gId, this.customValidations);
|
|
315359
315854
|
|
|
315360
315855
|
if (result != undefined) {
|
|
315361
315856
|
if (force) {
|
|
@@ -315387,7 +315882,7 @@ class ValidationGenerator {
|
|
|
315387
315882
|
return this.schemaRng.getIsOptionalByPath(bindingPath);
|
|
315388
315883
|
}
|
|
315389
315884
|
|
|
315390
|
-
|
|
315885
|
+
getRngSchemaTypeInfo(bindingPath) {
|
|
315391
315886
|
return this.useSchemaValidations ? this.schemaRng.getTypeNodeByPath(bindingPath) : undefined;
|
|
315392
315887
|
}
|
|
315393
315888
|
|
|
@@ -315401,17 +315896,17 @@ class ValidationGenerator {
|
|
|
315401
315896
|
return generatorClass.createFromNode(node);
|
|
315402
315897
|
}
|
|
315403
315898
|
|
|
315404
|
-
buildRequiredValidator(
|
|
315899
|
+
buildRequiredValidator(description) {
|
|
315405
315900
|
const requiredValidator = (0,_common_CodeGeneration_ClassInstanceBuilder__WEBPACK_IMPORTED_MODULE_1__.instanceBuilder)("Validators.RequiredValueValidator");
|
|
315406
315901
|
requiredValidator.set(0, "error");
|
|
315407
|
-
requiredValidator.set(1,
|
|
315902
|
+
requiredValidator.set(1, description);
|
|
315408
315903
|
return requiredValidator;
|
|
315409
315904
|
}
|
|
315410
315905
|
|
|
315411
315906
|
buildBaseTypeValidator(baseName, description, typeNode) {
|
|
315412
315907
|
switch (baseName) {
|
|
315413
|
-
case "string":
|
|
315414
315908
|
case "pattern":
|
|
315909
|
+
case "string":
|
|
315415
315910
|
return undefined;
|
|
315416
315911
|
|
|
315417
315912
|
case "integer":
|
|
@@ -315452,10 +315947,6 @@ class ValidationGenerator {
|
|
|
315452
315947
|
}
|
|
315453
315948
|
}
|
|
315454
315949
|
|
|
315455
|
-
buildRequiredDescriptionForSchemaType(schemaTypeNode) {
|
|
315456
|
-
return "Поле должно быть заполнено";
|
|
315457
|
-
}
|
|
315458
|
-
|
|
315459
315950
|
}
|
|
315460
315951
|
|
|
315461
315952
|
/***/ }),
|