@kontur.candy/generator 5.94.0-diadoc-title-1.0 → 5.94.0-diadoc.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 +58 -40
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79456,7 +79456,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79456
79456
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
79457
79457
|
/* 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
79458
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
79459
|
-
/* harmony import */ var
|
|
79459
|
+
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
79460
|
+
/* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
|
|
79461
|
+
/* harmony import */ var _LinkNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LinkNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/Link/LinkNode.ts");
|
|
79462
|
+
|
|
79463
|
+
|
|
79460
79464
|
|
|
79461
79465
|
|
|
79462
79466
|
|
|
@@ -79467,24 +79471,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79467
79471
|
|
|
79468
79472
|
class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
79469
79473
|
static getAcceptNodeClass() {
|
|
79470
|
-
return
|
|
79474
|
+
return _LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode;
|
|
79471
79475
|
}
|
|
79472
79476
|
doBuildDataDeclaration(context) {
|
|
79473
|
-
const node = this.getCurrentNodeAs(
|
|
79477
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79474
79478
|
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
79479
|
optional: node.optional
|
|
79476
79480
|
}), node.path ? context.addPathSectionDeclarationEntry(node) : _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection, context.addVisibilityPathDeclEntryNew(node));
|
|
79477
79481
|
}
|
|
79478
79482
|
buildChildrenDataDeclaration(context) {
|
|
79479
|
-
const node = this.getCurrentNodeAs(
|
|
79483
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79480
79484
|
return context.processChildrenDataDeclaration(node.children);
|
|
79481
79485
|
}
|
|
79482
79486
|
*doTraverseChildren() {
|
|
79483
|
-
const node = this.getCurrentNodeAs(
|
|
79487
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79484
79488
|
yield* node.children;
|
|
79485
79489
|
}
|
|
79486
79490
|
doConvert(context) {
|
|
79487
|
-
const node = this.getCurrentNodeAs(
|
|
79491
|
+
const node = this.getCurrentNodeAs(_LinkNode__WEBPACK_IMPORTED_MODULE_9__.LinkNode);
|
|
79488
79492
|
if (node.path != undefined && node.onClick == undefined) {
|
|
79489
79493
|
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`onClick is required when path attribute specified`, node, "path");
|
|
79490
79494
|
}
|
|
@@ -79503,7 +79507,9 @@ class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
79503
79507
|
markupBuilder.prop(x => x.stopPropagation).set(node.stopPropagation);
|
|
79504
79508
|
if (node.disabled2 != undefined) {
|
|
79505
79509
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
79506
|
-
|
|
79510
|
+
}
|
|
79511
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
79512
|
+
if (node.disabled2 != undefined) {
|
|
79507
79513
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
79508
79514
|
}
|
|
79509
79515
|
}
|
|
@@ -79521,7 +79527,13 @@ class LinkConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
79521
79527
|
markupBuilder.prop(x => x.stopPropagation).set(node.stopPropagation);
|
|
79522
79528
|
if (node.disabled2 != undefined) {
|
|
79523
79529
|
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
79524
|
-
|
|
79530
|
+
}
|
|
79531
|
+
if (node.hrefExpression != undefined) {
|
|
79532
|
+
const conditionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_8__.convertConditionToJsOrFailWithFriendlySugarError)(node.hrefExpression, "path", "count", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_7__.KCLangRuntimeUtils.kcLangUtilsName, node, "condition");
|
|
79533
|
+
markupBuilder.prop(x => x.hrefExpression).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(conditionWithDependencies.condition, conditionWithDependencies.dependencies));
|
|
79534
|
+
}
|
|
79535
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
79536
|
+
if (node.disabled2 != undefined || node.hrefExpression != undefined) {
|
|
79525
79537
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
79526
79538
|
}
|
|
79527
79539
|
}
|
|
@@ -79557,30 +79569,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79557
79569
|
|
|
79558
79570
|
|
|
79559
79571
|
|
|
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;
|
|
79572
|
+
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
79573
|
|
|
79562
79574
|
|
|
79563
79575
|
|
|
79564
79576
|
|
|
79565
79577
|
|
|
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),
|
|
79578
|
+
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
79579
|
constructor(...args) {
|
|
79568
79580
|
super(...args);
|
|
79569
79581
|
_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, "
|
|
79582
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hrefExpression", _descriptor2, this);
|
|
79583
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor3, this);
|
|
79584
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "defaultValue", _descriptor4, this);
|
|
79585
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor5, this);
|
|
79586
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "hint", _descriptor6, this);
|
|
79587
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "default", _descriptor7, this);
|
|
79588
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "color", _descriptor8, this);
|
|
79589
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onClick", _descriptor9, this);
|
|
79590
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "use", _descriptor10, this);
|
|
79591
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "href", _descriptor11, this);
|
|
79592
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "icon", _descriptor12, this);
|
|
79593
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "stopPropagation", _descriptor13, this);
|
|
79594
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor14, this);
|
|
79595
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "metricsId", _descriptor15, this);
|
|
79596
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor16, this);
|
|
79584
79597
|
}
|
|
79585
79598
|
getOwnPath() {
|
|
79586
79599
|
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 +79603,77 @@ let LinkNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5
|
|
|
79590
79603
|
enumerable: true,
|
|
79591
79604
|
writable: true,
|
|
79592
79605
|
initializer: null
|
|
79593
|
-
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79606
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "hrefExpression", [_dec3], {
|
|
79594
79607
|
configurable: true,
|
|
79595
79608
|
enumerable: true,
|
|
79596
79609
|
writable: true,
|
|
79597
79610
|
initializer: null
|
|
79598
|
-
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79611
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "optional", [_dec4], {
|
|
79599
79612
|
configurable: true,
|
|
79600
79613
|
enumerable: true,
|
|
79601
79614
|
writable: true,
|
|
79602
79615
|
initializer: null
|
|
79603
|
-
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79616
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "defaultValue", [_dec5], {
|
|
79604
79617
|
configurable: true,
|
|
79605
79618
|
enumerable: true,
|
|
79606
79619
|
writable: true,
|
|
79607
79620
|
initializer: null
|
|
79608
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79621
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec6], {
|
|
79609
79622
|
configurable: true,
|
|
79610
79623
|
enumerable: true,
|
|
79611
79624
|
writable: true,
|
|
79612
79625
|
initializer: null
|
|
79613
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79626
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "hint", [_dec7], {
|
|
79614
79627
|
configurable: true,
|
|
79615
79628
|
enumerable: true,
|
|
79616
79629
|
writable: true,
|
|
79617
79630
|
initializer: null
|
|
79618
|
-
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79631
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "default", [_dec8], {
|
|
79619
79632
|
configurable: true,
|
|
79620
79633
|
enumerable: true,
|
|
79621
79634
|
writable: true,
|
|
79622
79635
|
initializer: null
|
|
79623
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79636
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "color", [_dec9], {
|
|
79624
79637
|
configurable: true,
|
|
79625
79638
|
enumerable: true,
|
|
79626
79639
|
writable: true,
|
|
79627
79640
|
initializer: null
|
|
79628
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79641
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "onClick", [_dec10], {
|
|
79629
79642
|
configurable: true,
|
|
79630
79643
|
enumerable: true,
|
|
79631
79644
|
writable: true,
|
|
79632
79645
|
initializer: null
|
|
79633
|
-
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79646
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "use", [_dec11], {
|
|
79634
79647
|
configurable: true,
|
|
79635
79648
|
enumerable: true,
|
|
79636
79649
|
writable: true,
|
|
79637
79650
|
initializer: null
|
|
79638
|
-
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79651
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "href", [_dec12], {
|
|
79652
|
+
configurable: true,
|
|
79653
|
+
enumerable: true,
|
|
79654
|
+
writable: true,
|
|
79655
|
+
initializer: null
|
|
79656
|
+
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "icon", [_dec13], {
|
|
79639
79657
|
configurable: true,
|
|
79640
79658
|
enumerable: true,
|
|
79641
79659
|
writable: true,
|
|
79642
79660
|
initializer: null
|
|
79643
|
-
}),
|
|
79661
|
+
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "stopPropagation", [_dec14], {
|
|
79644
79662
|
configurable: true,
|
|
79645
79663
|
enumerable: true,
|
|
79646
79664
|
writable: true,
|
|
79647
79665
|
initializer: null
|
|
79648
|
-
}),
|
|
79666
|
+
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec15], {
|
|
79649
79667
|
configurable: true,
|
|
79650
79668
|
enumerable: true,
|
|
79651
79669
|
writable: true,
|
|
79652
79670
|
initializer: null
|
|
79653
|
-
}),
|
|
79671
|
+
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "metricsId", [_dec16], {
|
|
79654
79672
|
configurable: true,
|
|
79655
79673
|
enumerable: true,
|
|
79656
79674
|
writable: true,
|
|
79657
79675
|
initializer: null
|
|
79658
|
-
}),
|
|
79676
|
+
}), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec17], {
|
|
79659
79677
|
configurable: true,
|
|
79660
79678
|
enumerable: true,
|
|
79661
79679
|
writable: true,
|
|
@@ -104123,7 +104141,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104123
104141
|
getSchemaTypeInfo(targetPath) {
|
|
104124
104142
|
return this.nodeTypeInfoHelper.getSchemaTypeInfo(targetPath);
|
|
104125
104143
|
}
|
|
104126
|
-
*buildBasicValidations(targetPath, targetFullPath, typeNode, schemaTypeNode, optional, nodeGId,
|
|
104144
|
+
*buildBasicValidations(targetPath, targetFullPath, typeNode, schemaTypeNode, optional, nodeGId, highOrderDescription) {
|
|
104127
104145
|
var _typeNode$base, _typeNode$description;
|
|
104128
104146
|
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
104147
|
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 +104153,7 @@ class KCLangCalculationsBuildContext {
|
|
|
104135
104153
|
const schemaNode = this.schemaRng.getElementByPath(targetFullPath);
|
|
104136
104154
|
if (!optional) {
|
|
104137
104155
|
var _ref, _ref2, _ref3, _ref4, _allChildrenPaths$len, _allChildrenPaths, _allChildrenPaths2, _IterUtils$last;
|
|
104138
|
-
const requiredDescription = (_ref = (_ref2 = (_ref3 = (_ref4 =
|
|
104156
|
+
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
104157
|
const parentNode = schemaNode != undefined ? this.getFirstAcceptedParent(schemaNode) : undefined;
|
|
104140
104158
|
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
104159
|
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) {
|