@kontur.candy/generator 4.296.0-useextendederrorlog.0 → 4.296.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +90 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -113251,8 +113251,8 @@ class ModelPathImpl {
|
|
|
113251
113251
|
return true;
|
|
113252
113252
|
}
|
|
113253
113253
|
|
|
113254
|
-
getIterationRank() {
|
|
113255
|
-
return (0,_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.count)(Iterator.from(this.tokens).filter(x => x === PathTokens.each));
|
|
113254
|
+
getIterationRank(eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_3__.EachCurrentCollision.AreDifferent) {
|
|
113255
|
+
return (0,_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.count)(Iterator.from(this.tokens).filter(x => eachCurrentCollision == _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_3__.EachCurrentCollision.AreDifferent ? x === PathTokens.each : PathTokens.isMultiToken(x)));
|
|
113256
113256
|
}
|
|
113257
113257
|
|
|
113258
113258
|
isEmpty() {
|
|
@@ -127552,10 +127552,11 @@ class AutoCalculationsCalculator2Generator extends _KCXmlGenerator_KCXmlGenerato
|
|
|
127552
127552
|
const disabled = this.dataDeclarationHelper.isNodeHasDisabledEntry(target.toLegacyPath());
|
|
127553
127553
|
const compiledTarget = this.modelPathInstance(target);
|
|
127554
127554
|
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(dependencies.map(x => ({
|
|
127555
|
-
path:
|
|
127556
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x)
|
|
127557
|
-
|
|
127558
|
-
|
|
127555
|
+
path: x.asDependencyModelPath(),
|
|
127556
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
|
|
127557
|
+
pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
|
|
127558
|
+
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
127559
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
127559
127560
|
const compiledExpressionWithCheck = this.compileAllItemsIsEmptyCheckBlock(compiledExpression, dependencyModelPaths.filter(x => !x.isIgnoreForChecks).map(x => x.path));
|
|
127560
127561
|
const compiledDelegate = `context => KCCalculation.execute(context, expression => ${compiledExpressionWithCheck}, "${defaultValue}")`;
|
|
127561
127562
|
return {
|
|
@@ -131546,6 +131547,7 @@ const statementsToCode = statements => {
|
|
|
131546
131547
|
"use strict";
|
|
131547
131548
|
__webpack_require__.r(__webpack_exports__);
|
|
131548
131549
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131550
|
+
/* harmony export */ "RegularDependency": () => (/* binding */ RegularDependency),
|
|
131549
131551
|
/* harmony export */ "AggregationDependencyModelPath": () => (/* binding */ AggregationDependencyModelPath),
|
|
131550
131552
|
/* harmony export */ "DependencyWithoutChecks": () => (/* binding */ DependencyWithoutChecks),
|
|
131551
131553
|
/* harmony export */ "isAggregationDependencyModelPath": () => (/* binding */ isAggregationDependencyModelPath),
|
|
@@ -131566,6 +131568,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131566
131568
|
|
|
131567
131569
|
|
|
131568
131570
|
|
|
131571
|
+
class RegularDependency {
|
|
131572
|
+
constructor(currentDependencyPath, eachDependencyPath) {
|
|
131573
|
+
this.currentDependencyPath = void 0;
|
|
131574
|
+
this.eachDependencyPath = void 0;
|
|
131575
|
+
this.eachDependencyPath = eachDependencyPath;
|
|
131576
|
+
this.currentDependencyPath = currentDependencyPath;
|
|
131577
|
+
}
|
|
131578
|
+
|
|
131579
|
+
asDependencyModelPath() {
|
|
131580
|
+
const currentPart = this.currentDependencyPath.toCurrentIteration();
|
|
131581
|
+
return this.eachDependencyPath != undefined ? currentPart.joinWith(this.eachDependencyPath) : currentPart;
|
|
131582
|
+
}
|
|
131583
|
+
|
|
131584
|
+
}
|
|
131569
131585
|
class AggregationDependencyModelPath {
|
|
131570
131586
|
constructor(type, modelPath, prefixModelPath, restModelPath) {
|
|
131571
131587
|
this.type = void 0;
|
|
@@ -131578,14 +131594,12 @@ class AggregationDependencyModelPath {
|
|
|
131578
131594
|
this.restModelPath = restModelPath;
|
|
131579
131595
|
}
|
|
131580
131596
|
|
|
131581
|
-
|
|
131582
|
-
|
|
131583
|
-
constructor(path) {
|
|
131584
|
-
this.path = void 0;
|
|
131585
|
-
this.path = path;
|
|
131597
|
+
asDependencyModelPath() {
|
|
131598
|
+
return this.modelPath.toCurrentIteration();
|
|
131586
131599
|
}
|
|
131587
131600
|
|
|
131588
131601
|
}
|
|
131602
|
+
class DependencyWithoutChecks extends RegularDependency {}
|
|
131589
131603
|
function isAggregationDependencyModelPath(path) {
|
|
131590
131604
|
return path instanceof AggregationDependencyModelPath;
|
|
131591
131605
|
}
|
|
@@ -131611,7 +131625,7 @@ class KCXmlGeneratorBase {
|
|
|
131611
131625
|
getArgumentDeps(targetFullPath, selectFullPath, aggregationType) {
|
|
131612
131626
|
const pathDiffInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetFullPath, selectFullPath);
|
|
131613
131627
|
const restPath = pathDiffInfo.differentPath;
|
|
131614
|
-
return !restPath.isContainIteration() ? selectFullPath : new AggregationDependencyModelPath(aggregationType, pathDiffInfo.matchedPath.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...restPath.getPathPartsAsArray().filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken(x)), aggregationType])), pathDiffInfo.matchedPath, restPath);
|
|
131628
|
+
return !restPath.isContainIteration() ? new RegularDependency(selectFullPath) : new AggregationDependencyModelPath(aggregationType, pathDiffInfo.matchedPath.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([...restPath.getPathPartsAsArray().filter(x => _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isSimpleToken(x)), aggregationType])), pathDiffInfo.matchedPath, restPath);
|
|
131615
131629
|
}
|
|
131616
131630
|
|
|
131617
131631
|
getAggregationPathsRecursively(currentParts, restParts) {
|
|
@@ -131684,39 +131698,39 @@ class KCXmlGeneratorBase {
|
|
|
131684
131698
|
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131685
131699
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Sum");
|
|
131686
131700
|
deps.push(argumentDependency);
|
|
131687
|
-
const finalPath =
|
|
131701
|
+
const finalPath = argumentDependency.asDependencyModelPath();
|
|
131688
131702
|
return gcf(x => x.argument, `"${finalPath.toLegacyPath()}"`);
|
|
131689
131703
|
}
|
|
131690
131704
|
|
|
131691
131705
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaExistsExpression) {
|
|
131692
131706
|
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131693
|
-
deps.push(modelPath);
|
|
131707
|
+
deps.push(new RegularDependency(modelPath));
|
|
131694
131708
|
return gcf(x => x.exists, `"${modelPath.toLegacyPath()}"`);
|
|
131695
131709
|
}
|
|
131696
131710
|
|
|
131697
131711
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsSnilsExpression) {
|
|
131698
131712
|
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131699
|
-
deps.push(modelPath);
|
|
131713
|
+
deps.push(new RegularDependency(modelPath));
|
|
131700
131714
|
return gcf(x => x.isSnils, `"${modelPath.toLegacyPath()}"`);
|
|
131701
131715
|
}
|
|
131702
131716
|
|
|
131703
131717
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsInnExpression) {
|
|
131704
131718
|
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131705
|
-
deps.push(modelPath);
|
|
131719
|
+
deps.push(new RegularDependency(modelPath));
|
|
131706
131720
|
return gcf(x => x.isInn, `"${modelPath.toLegacyPath()}"`);
|
|
131707
131721
|
}
|
|
131708
131722
|
|
|
131709
131723
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidMirCardNumberExpression) {
|
|
131710
131724
|
const modelPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131711
|
-
deps.push(modelPath);
|
|
131725
|
+
deps.push(new RegularDependency(modelPath));
|
|
131712
131726
|
return gcf(x => x.isValidMirCardNumber, `"${modelPath.toLegacyPath()}"`);
|
|
131713
131727
|
}
|
|
131714
131728
|
|
|
131715
131729
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaIsValidAccountNumberExpression) {
|
|
131716
131730
|
const bikPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.bik)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131717
131731
|
const accountPath = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.account)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
131718
|
-
deps.push(bikPath);
|
|
131719
|
-
deps.push(accountPath);
|
|
131732
|
+
deps.push(new RegularDependency(bikPath));
|
|
131733
|
+
deps.push(new RegularDependency(accountPath));
|
|
131720
131734
|
return gcf(x => x.isValidAccountNumber, `"${bikPath.toLegacyPath()}"`, `"${accountPath.toLegacyPath()}"`);
|
|
131721
131735
|
}
|
|
131722
131736
|
|
|
@@ -131729,9 +131743,9 @@ class KCXmlGeneratorBase {
|
|
|
131729
131743
|
if (targetFullPath.isContainIteration()) {
|
|
131730
131744
|
const argumentDependency = this.getArgumentDeps(targetFullPath, modelPath, "Count");
|
|
131731
131745
|
deps.push(argumentDependency);
|
|
131732
|
-
finalPath =
|
|
131746
|
+
finalPath = argumentDependency.asDependencyModelPath();
|
|
131733
131747
|
} else {
|
|
131734
|
-
deps.push(modelPath);
|
|
131748
|
+
deps.push(new RegularDependency(modelPath));
|
|
131735
131749
|
}
|
|
131736
131750
|
|
|
131737
131751
|
return gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
@@ -131874,9 +131888,11 @@ class KCXmlGeneratorBase {
|
|
|
131874
131888
|
const targetKeyPath = this.getModelPath(prefix, expression.targetKeyPath);
|
|
131875
131889
|
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
131876
131890
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
131877
|
-
|
|
131891
|
+
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourceKeyPath);
|
|
131892
|
+
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
131878
131893
|
const sourceValuePath = this.getModelPath(prefix, expression.sourceValuePath);
|
|
131879
|
-
|
|
131894
|
+
const sourceValueDeps = this.calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourceValuePath);
|
|
131895
|
+
deps.push(new DependencyWithoutChecks(sourceValueDeps.currentDepsPath, sourceValueDeps.eachDepsPath));
|
|
131880
131896
|
return gcf(x => x.groupSum, `"${targetKeyPath}", "${sourceKeyPath}", "${sourceValuePath}"`);
|
|
131881
131897
|
}
|
|
131882
131898
|
|
|
@@ -131884,7 +131900,8 @@ class KCXmlGeneratorBase {
|
|
|
131884
131900
|
const targetKeyPath = this.getModelPath(prefix, expression.targetKeyPath);
|
|
131885
131901
|
deps.push(new DependencyWithoutChecks(targetKeyPath));
|
|
131886
131902
|
const sourceKeyPath = this.getModelPath(prefix, expression.sourceKeyPath);
|
|
131887
|
-
|
|
131903
|
+
const sourceKeyDeps = this.calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourceKeyPath);
|
|
131904
|
+
deps.push(new DependencyWithoutChecks(sourceKeyDeps.currentDepsPath, sourceKeyDeps.eachDepsPath));
|
|
131888
131905
|
return gcf(x => x.groupCount, `"${targetKeyPath}", "${sourceKeyPath}"`);
|
|
131889
131906
|
}
|
|
131890
131907
|
|
|
@@ -131908,6 +131925,38 @@ class KCXmlGeneratorBase {
|
|
|
131908
131925
|
}
|
|
131909
131926
|
/* eslint-enable @typescript-eslint/unbound-method */
|
|
131910
131927
|
|
|
131928
|
+
/*
|
|
131929
|
+
Метод вычисляет зависимости для оператора.
|
|
131930
|
+
Для того, чтобы калькулятор корректно реагировал на измнения необходимо сделать корректные зависимости:
|
|
131931
|
+
1) Если исходная множественность и множественность по которой строится группа совпадают, то необходио
|
|
131932
|
+
для последней звёздочки построить зависимость не через PathTokens.current, а через PathTokens.each,
|
|
131933
|
+
т.к. в таком случае пересчёт groupSum/groupCount должен тригетрися при изменении любого элемента в множественности, а не только текущего.
|
|
131934
|
+
2) Если множественности не совпадают, то количество звёздочек (getIterationRank()) в общей части будет разным и ничего дополнительно делать не нужно,
|
|
131935
|
+
в зависимостях в CalculationFunction в данном случае все звёздочки превратятся в PathTokens.current.
|
|
131936
|
+
*/
|
|
131937
|
+
|
|
131938
|
+
|
|
131939
|
+
calculatedGroupSumDependencyForSourcePath(targetKeyPath, sourcePath) {
|
|
131940
|
+
var _targetPathParts$last;
|
|
131941
|
+
|
|
131942
|
+
const diffPaths = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_4__.getMatchedAndDifferentModelPaths)(targetKeyPath, sourcePath);
|
|
131943
|
+
|
|
131944
|
+
if (targetKeyPath.getIterationRank() > diffPaths.matchedPath.getIterationRank()) {
|
|
131945
|
+
return {
|
|
131946
|
+
currentDepsPath: diffPaths.matchedPath,
|
|
131947
|
+
eachDepsPath: diffPaths.differentPath
|
|
131948
|
+
};
|
|
131949
|
+
}
|
|
131950
|
+
|
|
131951
|
+
const targetPathParts = diffPaths.matchedPath.getPathPartsAsArray();
|
|
131952
|
+
const lastStarIndex = targetPathParts.lastIndexOf(_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each);
|
|
131953
|
+
const currentDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(targetPathParts.slice(0, lastStarIndex));
|
|
131954
|
+
const eachDepsPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)([(_targetPathParts$last = targetPathParts[lastStarIndex]) !== null && _targetPathParts$last !== void 0 ? _targetPathParts$last : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)(), ...targetPathParts.slice(lastStarIndex + 1), ...diffPaths.differentPath.getPathParts()]);
|
|
131955
|
+
return {
|
|
131956
|
+
currentDepsPath: currentDepsPath,
|
|
131957
|
+
eachDepsPath: eachDepsPath
|
|
131958
|
+
};
|
|
131959
|
+
}
|
|
131911
131960
|
|
|
131912
131961
|
removeAttributePrefix(pathPart) {
|
|
131913
131962
|
return pathPart.replace(/\@/g, "");
|
|
@@ -131984,10 +132033,11 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
|
|
|
131984
132033
|
const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
|
|
131985
132034
|
const compiledTarget = this.modelPathInstance(target);
|
|
131986
132035
|
const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
|
|
131987
|
-
path:
|
|
131988
|
-
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x)
|
|
131989
|
-
|
|
131990
|
-
|
|
132036
|
+
path: x.asDependencyModelPath(),
|
|
132037
|
+
isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
|
|
132038
|
+
pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
|
|
132039
|
+
})).filter(x => !x.path.isEquals(target)), x => x.pathString));
|
|
132040
|
+
const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
|
|
131991
132041
|
const compiledDescription = (_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message";
|
|
131992
132042
|
const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `() => "${compiledDescription}", "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
|
|
131993
132043
|
return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
|
|
@@ -145997,6 +146047,7 @@ class MinitourConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
145997
146047
|
markupBuilder.prop(x => x.id).set(node.id);
|
|
145998
146048
|
markupBuilder.prop(x => x.label).set(node.label);
|
|
145999
146049
|
markupBuilder.prop(x => x.width).set(node.width);
|
|
146050
|
+
markupBuilder.prop(x => x.openedFrom).set(node.openedFrom);
|
|
146000
146051
|
markupBuilder.prop(x => x.positions).set((_node$positions = node.positions) !== null && _node$positions !== void 0 ? _node$positions : ["bottom left"]);
|
|
146001
146052
|
markupBuilder.appendChild(context.convertChildNodes(node.children));
|
|
146002
146053
|
return markupBuilder.buildConverterResult();
|
|
@@ -146031,13 +146082,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
146031
146082
|
|
|
146032
146083
|
|
|
146033
146084
|
|
|
146034
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
146085
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
146035
146086
|
|
|
146036
146087
|
|
|
146037
146088
|
|
|
146038
146089
|
|
|
146039
146090
|
|
|
146040
|
-
let MinitourNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("minitour", `Минитур`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Minitour sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Id минитура.`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("label", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Текст в минитуре.`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Ширина минитура. По умолчанию растягивается по ширине текста. Min = 256px, max = 400px.`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("positions", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"](..._Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_6__.allPopupPositions)), `Позиции минитура. По умолчанию \"bottom left\". Запись в сахаре в виде: \"positions={["bottom left"]}\". Возможные позиции: ${_Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_6__.allPopupPositions.join(", ")}`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec(_class = (_class2 = class MinitourNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
|
|
146091
|
+
let MinitourNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("minitour", `Минитур`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Minitour sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Id минитура.`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("label", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Текст в минитуре.`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Ширина минитура. По умолчанию растягивается по ширине текста. Min = 256px, max = 400px.`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("positions", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.array(_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"](..._Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_6__.allPopupPositions)), `Позиции минитура. По умолчанию \"bottom left\". Запись в сахаре в виде: \"positions={["bottom left"]}\". Возможные позиции: ${_Helpers_Help_PopupPosition__WEBPACK_IMPORTED_MODULE_6__.allPopupPositions.join(", ")}`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("openedFrom", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Нужно для метрик. Показывает, откуда открыли минитур. Если не указан - то будет браться из id`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec(_class = (_class2 = class MinitourNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
|
|
146041
146092
|
constructor(...args) {
|
|
146042
146093
|
super(...args);
|
|
146043
146094
|
|
|
@@ -146051,7 +146102,9 @@ let MinitourNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
146051
146102
|
|
|
146052
146103
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "positions", _descriptor5, this);
|
|
146053
146104
|
|
|
146054
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
146105
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "openedFrom", _descriptor6, this);
|
|
146106
|
+
|
|
146107
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor7, this);
|
|
146055
146108
|
}
|
|
146056
146109
|
|
|
146057
146110
|
getOwnPath() {
|
|
@@ -146083,7 +146136,12 @@ let MinitourNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
|
|
|
146083
146136
|
enumerable: true,
|
|
146084
146137
|
writable: true,
|
|
146085
146138
|
initializer: null
|
|
146086
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
146139
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "openedFrom", [_dec7], {
|
|
146140
|
+
configurable: true,
|
|
146141
|
+
enumerable: true,
|
|
146142
|
+
writable: true,
|
|
146143
|
+
initializer: null
|
|
146144
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec8], {
|
|
146087
146145
|
configurable: true,
|
|
146088
146146
|
enumerable: true,
|
|
146089
146147
|
writable: true,
|