@kontur.candy/generator 5.94.0-diadoc-title-1.0 → 5.94.0-diadoc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +60 -57
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47456,7 +47456,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47456
47456
|
/* harmony export */ getMask: () => (/* binding */ getMask),
|
|
47457
47457
|
/* harmony export */ getMaskWithInstances: () => (/* binding */ getMaskWithInstances),
|
|
47458
47458
|
/* harmony export */ isAggregationPath: () => (/* binding */ isAggregationPath),
|
|
47459
|
-
/* harmony export */ isParentOf: () => (/* binding */ isParentOf),
|
|
47460
47459
|
/* harmony export */ replaceInstancesWithMultiplicity: () => (/* binding */ replaceInstancesWithMultiplicity)
|
|
47461
47460
|
/* harmony export */ });
|
|
47462
47461
|
/* harmony import */ var _PathConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../PathConstants */ "./Common/PathConstants.ts");
|
|
@@ -47495,19 +47494,6 @@ function replaceInstancesWithMultiplicity(path, replaceToken = _ModelPath__WEBPA
|
|
|
47495
47494
|
function checkIsReservedPath(path) {
|
|
47496
47495
|
return _PathConstants__WEBPACK_IMPORTED_MODULE_0__.reservedForTechnicalUsageFields.some(field => path.endsWith((0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(field, false)));
|
|
47497
47496
|
}
|
|
47498
|
-
function isParentOf(parent, childPath) {
|
|
47499
|
-
const parentPathParts = [...parent.getPathParts()];
|
|
47500
|
-
const childPathParts = [...childPath.getPathParts()];
|
|
47501
|
-
if (parentPathParts.length >= childPathParts.length) {
|
|
47502
|
-
return false;
|
|
47503
|
-
}
|
|
47504
|
-
for (let i = 0; i < parentPathParts.length; i++) {
|
|
47505
|
-
if (parentPathParts[i] !== childPathParts[i]) {
|
|
47506
|
-
return false;
|
|
47507
|
-
}
|
|
47508
|
-
}
|
|
47509
|
-
return true;
|
|
47510
|
-
}
|
|
47511
47497
|
|
|
47512
47498
|
/***/ }),
|
|
47513
47499
|
|
|
@@ -69979,8 +69965,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69979
69965
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
69980
69966
|
/* harmony import */ var _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/Set2 */ "./Common/ModelPath/Set/Set2.ts");
|
|
69981
69967
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
69982
|
-
/* harmony import */ var _Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPathHelper */ "./Common/ModelPath/ModelPathHelper.ts");
|
|
69983
|
-
|
|
69984
69968
|
|
|
69985
69969
|
|
|
69986
69970
|
|
|
@@ -70078,7 +70062,7 @@ class DataDeclarationGenerationTimeHelper {
|
|
|
70078
70062
|
*getAllNestedPaths(nodePath) {
|
|
70079
70063
|
for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.iterateKeys)(this.dataDeclaration)) {
|
|
70080
70064
|
const path = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(key, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each);
|
|
70081
|
-
if (
|
|
70065
|
+
if (path.startsWith(nodePath)) {
|
|
70082
70066
|
yield path;
|
|
70083
70067
|
}
|
|
70084
70068
|
}
|
|
@@ -79456,7 +79440,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79456
79440
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
79457
79441
|
/* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
|
|
79458
79442
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
79459
|
-
/* harmony import */ var
|
|
79443
|
+
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
79444
|
+
/* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
|
|
79445
|
+
/* harmony import */ var _LinkNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LinkNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link/LinkNode.ts");
|
|
79446
|
+
|
|
79447
|
+
|
|
79460
79448
|
|
|
79461
79449
|
|
|
79462
79450
|
|
|
@@ -79467,24 +79455,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79467
79455
|
|
|
79468
79456
|
class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
79469
79457
|
static getAcceptNodeClass() {
|
|
79470
|
-
return
|
|
79458
|
+
return _LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode;
|
|
79471
79459
|
}
|
|
79472
79460
|
doBuildDataDeclaration(context) {
|
|
79473
|
-
const node = this.getCurrentNodeAs(
|
|
79461
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79474
79462
|
return context.mergeDataDeclaration(node.path ? context.addPathDeclEntry(node, [["value", context.initSequenceFactory.takeFromModelOrDefaultValue(node.defaultValue)]]) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection, context.addSpecialFieldsEntry(node, {
|
|
79475
79463
|
optional: node.optional
|
|
79476
79464
|
}), node.path ? context.addPathSectionDeclarationEntry(node) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection, context.addVisibilityPathDeclEntryNew(node));
|
|
79477
79465
|
}
|
|
79478
79466
|
buildChildrenDataDeclaration(context) {
|
|
79479
|
-
const node = this.getCurrentNodeAs(
|
|
79467
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79480
79468
|
return context.processChildrenDataDeclaration(node.children);
|
|
79481
79469
|
}
|
|
79482
79470
|
*doTraverseChildren() {
|
|
79483
|
-
const node = this.getCurrentNodeAs(
|
|
79471
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79484
79472
|
yield* node.children;
|
|
79485
79473
|
}
|
|
79486
79474
|
doConvert(context) {
|
|
79487
|
-
const node = this.getCurrentNodeAs(
|
|
79475
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79488
79476
|
if (node.path != undefined && node.onClick == undefined) {
|
|
79489
79477
|
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`onClick is required when path attribute specified`, node, "path");
|
|
79490
79478
|
}
|
|
@@ -79503,7 +79491,9 @@ class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
79503
79491
|
markupBuilder.prop(x => x.stopPropagation).set(node.stopPropagation);
|
|
79504
79492
|
if (node.disabled2 != undefined) {
|
|
79505
79493
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
79506
|
-
|
|
79494
|
+
}
|
|
79495
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
79496
|
+
if (node.disabled2 != undefined) {
|
|
79507
79497
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
79508
79498
|
}
|
|
79509
79499
|
}
|
|
@@ -79521,7 +79511,13 @@ class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
79521
79511
|
markupBuilder.prop(x => x.stopPropagation).set(node.stopPropagation);
|
|
79522
79512
|
if (node.disabled2 != undefined) {
|
|
79523
79513
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
79524
|
-
|
|
79514
|
+
}
|
|
79515
|
+
if (node.hrefExpression != undefined) {
|
|
79516
|
+
const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_8__.convertConditionToJsOrFailWithFriendlySugarError)(node.hrefExpression, "path", "count", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_7__.KCLangRuntimeUtils.kcLangUtilsName, node, "condition");
|
|
79517
|
+
markupBuilder.prop(x => x.hrefExpression).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
|
|
79518
|
+
}
|
|
79519
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
79520
|
+
if (node.disabled2 != undefined || node.hrefExpression != undefined) {
|
|
79525
79521
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
79526
79522
|
}
|
|
79527
79523
|
}
|
|
@@ -79557,30 +79553,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79557
79553
|
|
|
79558
79554
|
|
|
79559
79555
|
|
|
79560
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
|
|
79556
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
|
|
79561
79557
|
|
|
79562
79558
|
|
|
79563
79559
|
|
|
79564
79560
|
|
|
79565
79561
|
|
|
79566
|
-
let LinkNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("link", `Ссылка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.bindingPath, "Путь в модели"), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("optional", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_3__.DeprecationReason.UntypedUsage),
|
|
79562
|
+
let LinkNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("link", `Ссылка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.bindingPath, "Путь в модели"), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("hrefExpression", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, "Выражение для url-а на kclang"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("optional", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_3__.DeprecationReason.UntypedUsage), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("defaultValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, ``), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.markupAttr)("hint", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, "Всплывающая подсказка при наведении"), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("default", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_3__.DeprecationReason.InvalidUsage), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.deprecatedAttr)("color", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_3__.DeprecationReason.Removed), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("onClick", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.helperFunctionName, "Имя кастомной helpers функции, которая вызовется при клике"), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("use", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("default", "success", "danger", "grayed"), "Тип, влияет на цвет. см. в retail-ui"), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("href", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, "Ссылка. URL с кириллическими символами так и пишется, например, https://www.kontur-extern.ru/info/38137-zapolnit_razdel_2_efs_1#:~:text=Данные указываются по,проставлять нули (0)."), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("icon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Название иконки можно посмотреть по ссылке https://ui.gitlab-pages.kontur.host/docs/#/icons`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("stopPropagation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, `Прекращает дальнейшую передачу собития клика https://developer.mozilla.org/ru/docs/Web/API/Event/stopPropagation`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("metrics-id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string, "Идентификатор ссылки, который будет отправлен вместе с метриками по этой ссылке"), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec(_class = (_class2 = class LinkNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_4__.SugarNodeWithLegacyVisibility {
|
|
79567
79563
|
constructor(...args) {
|
|
79568
79564
|
super(...args);
|
|
79569
79565
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor, this);
|
|
79570
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79571
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79572
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79573
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79574
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79575
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79576
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79577
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79578
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79579
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79580
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79581
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79582
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79583
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79566
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hrefExpression", _descriptor2, this);
|
|
79567
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor3, this);
|
|
79568
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "defaultValue", _descriptor4, this);
|
|
79569
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor5, this);
|
|
79570
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hint", _descriptor6, this);
|
|
79571
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "default", _descriptor7, this);
|
|
79572
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "color", _descriptor8, this);
|
|
79573
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onClick", _descriptor9, this);
|
|
79574
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "use", _descriptor10, this);
|
|
79575
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "href", _descriptor11, this);
|
|
79576
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "icon", _descriptor12, this);
|
|
79577
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "stopPropagation", _descriptor13, this);
|
|
79578
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor14, this);
|
|
79579
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "metricsId", _descriptor15, this);
|
|
79580
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor16, this);
|
|
79584
79581
|
}
|
|
79585
79582
|
getOwnPath() {
|
|
79586
79583
|
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each) : undefined;
|
|
@@ -79590,72 +79587,77 @@ let LinkNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5
|
|
|
79590
79587
|
enumerable: true,
|
|
79591
79588
|
writable: true,
|
|
79592
79589
|
initializer: null
|
|
79593
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79590
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "hrefExpression", [_dec3], {
|
|
79594
79591
|
configurable: true,
|
|
79595
79592
|
enumerable: true,
|
|
79596
79593
|
writable: true,
|
|
79597
79594
|
initializer: null
|
|
79598
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79595
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "optional", [_dec4], {
|
|
79599
79596
|
configurable: true,
|
|
79600
79597
|
enumerable: true,
|
|
79601
79598
|
writable: true,
|
|
79602
79599
|
initializer: null
|
|
79603
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79600
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "defaultValue", [_dec5], {
|
|
79604
79601
|
configurable: true,
|
|
79605
79602
|
enumerable: true,
|
|
79606
79603
|
writable: true,
|
|
79607
79604
|
initializer: null
|
|
79608
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79605
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec6], {
|
|
79609
79606
|
configurable: true,
|
|
79610
79607
|
enumerable: true,
|
|
79611
79608
|
writable: true,
|
|
79612
79609
|
initializer: null
|
|
79613
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79610
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "hint", [_dec7], {
|
|
79614
79611
|
configurable: true,
|
|
79615
79612
|
enumerable: true,
|
|
79616
79613
|
writable: true,
|
|
79617
79614
|
initializer: null
|
|
79618
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79615
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "default", [_dec8], {
|
|
79619
79616
|
configurable: true,
|
|
79620
79617
|
enumerable: true,
|
|
79621
79618
|
writable: true,
|
|
79622
79619
|
initializer: null
|
|
79623
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79620
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "color", [_dec9], {
|
|
79624
79621
|
configurable: true,
|
|
79625
79622
|
enumerable: true,
|
|
79626
79623
|
writable: true,
|
|
79627
79624
|
initializer: null
|
|
79628
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79625
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onClick", [_dec10], {
|
|
79629
79626
|
configurable: true,
|
|
79630
79627
|
enumerable: true,
|
|
79631
79628
|
writable: true,
|
|
79632
79629
|
initializer: null
|
|
79633
|
-
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79630
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "use", [_dec11], {
|
|
79634
79631
|
configurable: true,
|
|
79635
79632
|
enumerable: true,
|
|
79636
79633
|
writable: true,
|
|
79637
79634
|
initializer: null
|
|
79638
|
-
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79635
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "href", [_dec12], {
|
|
79639
79636
|
configurable: true,
|
|
79640
79637
|
enumerable: true,
|
|
79641
79638
|
writable: true,
|
|
79642
79639
|
initializer: null
|
|
79643
|
-
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79640
|
+
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "icon", [_dec13], {
|
|
79644
79641
|
configurable: true,
|
|
79645
79642
|
enumerable: true,
|
|
79646
79643
|
writable: true,
|
|
79647
79644
|
initializer: null
|
|
79648
|
-
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79645
|
+
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "stopPropagation", [_dec14], {
|
|
79649
79646
|
configurable: true,
|
|
79650
79647
|
enumerable: true,
|
|
79651
79648
|
writable: true,
|
|
79652
79649
|
initializer: null
|
|
79653
|
-
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79650
|
+
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec15], {
|
|
79654
79651
|
configurable: true,
|
|
79655
79652
|
enumerable: true,
|
|
79656
79653
|
writable: true,
|
|
79657
79654
|
initializer: null
|
|
79658
|
-
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79655
|
+
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "metricsId", [_dec16], {
|
|
79656
|
+
configurable: true,
|
|
79657
|
+
enumerable: true,
|
|
79658
|
+
writable: true,
|
|
79659
|
+
initializer: null
|
|
79660
|
+
}), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec17], {
|
|
79659
79661
|
configurable: true,
|
|
79660
79662
|
enumerable: true,
|
|
79661
79663
|
writable: true,
|
|
@@ -98592,6 +98594,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
98592
98594
|
});
|
|
98593
98595
|
}
|
|
98594
98596
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
|
|
98597
|
+
markupBuilder.prop(x => x.placeholder).set(node.placeholder);
|
|
98595
98598
|
markupBuilder.prop(x => x.hint).set(this.getConverterResultFromAttributeWithMarkup(context, node.hint));
|
|
98596
98599
|
markupBuilder.prop(x => x.disabled).set(node.disabled);
|
|
98597
98600
|
markupBuilder.prop(x => x.showNegativeAsBrackets).set(node.showNegativeAsBrackets);
|
|
@@ -104123,7 +104126,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104123
104126
|
getSchemaTypeInfo(targetPath) {
|
|
104124
104127
|
return this.nodeTypeInfoHelper.getSchemaTypeInfo(targetPath);
|
|
104125
104128
|
}
|
|
104126
|
-
*buildBasicValidations(targetPath, targetFullPath, typeNode, schemaTypeNode, optional, nodeGId,
|
|
104129
|
+
*buildBasicValidations(targetPath, targetFullPath, typeNode, schemaTypeNode, optional, nodeGId, highOrderDescription) {
|
|
104127
104130
|
var _typeNode$base, _typeNode$description;
|
|
104128
104131
|
const baseName = (_typeNode$base = typeNode === null || typeNode === void 0 ? void 0 : typeNode.base) !== null && _typeNode$base !== void 0 ? _typeNode$base : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.baseType;
|
|
104129
104132
|
const baseDescription = (_typeNode$description = typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _typeNode$description !== void 0 ? _typeNode$description : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description;
|
|
@@ -104135,7 +104138,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104135
104138
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
104136
104139
|
if (!optional) {
|
|
104137
104140
|
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2, _IterUtils$last;
|
|
104138
|
-
const requiredDescription = (_ref = (_ref2 = (_ref3 = (_ref4 =
|
|
104141
|
+
const requiredDescription = (_ref = (_ref2 = (_ref3 = (_ref4 = highOrderDescription !== null && highOrderDescription !== void 0 ? highOrderDescription : typeNode === null || typeNode === void 0 ? void 0 : typeNode.requiredDescription) !== null && _ref4 !== void 0 ? _ref4 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.requiredDescription) !== null && _ref3 !== void 0 ? _ref3 : typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _ref2 !== void 0 ? _ref2 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _ref !== void 0 ? _ref : "Поле должно быть заполнено";
|
|
104139
104142
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
104140
104143
|
let allChildrenPaths = parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_29__.FormSchemaRngElement ? this.schemaRng.getAllChildValueNodes(parentNode).map(x => this.schemaRng.getPath(x, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.PathTokens.each)).filter(x => !(0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_3__.getMatchedAndDifferentModelPaths)(targetFullPath, x).differentPath.isContainIteration()) : undefined;
|
|
104141
104144
|
if (((_allChildrenPaths$len = (_allChildrenPaths = allChildrenPaths) === null || _allChildrenPaths === void 0 ? void 0 : _allChildrenPaths.length) !== null && _allChildrenPaths$len !== void 0 ? _allChildrenPaths$len : 0) > _validationGenerator_MaxOptionalChildrenLimit__WEBPACK_IMPORTED_MODULE_32__.maxOptionalChildrenLimit) {
|