@kontur.candy/generator 5.67.2 → 5.68.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 +25 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67021,6 +67021,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
67021
67021
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
67022
67022
|
/* harmony export */ AttributeTypes: () => (/* binding */ AttributeTypes),
|
|
67023
67023
|
/* harmony export */ AvailableChildrenType: () => (/* binding */ AvailableChildrenType),
|
|
67024
|
+
/* harmony export */ isAttributeDeprecated: () => (/* binding */ isAttributeDeprecated),
|
|
67024
67025
|
/* harmony export */ isRequiredValueParser: () => (/* binding */ isRequiredValueParser),
|
|
67025
67026
|
/* harmony export */ valueParserToAttributeType: () => (/* binding */ valueParserToAttributeType)
|
|
67026
67027
|
/* harmony export */ });
|
|
@@ -67059,6 +67060,9 @@ let AvailableChildrenType = /*#__PURE__*/function (AvailableChildrenType) {
|
|
|
67059
67060
|
AvailableChildrenType["List"] = "List";
|
|
67060
67061
|
return AvailableChildrenType;
|
|
67061
67062
|
}({});
|
|
67063
|
+
function isAttributeDeprecated(attr) {
|
|
67064
|
+
return Boolean(attr.deprecated);
|
|
67065
|
+
}
|
|
67062
67066
|
class AttributeTypes {}
|
|
67063
67067
|
AttributeTypes.Path = {
|
|
67064
67068
|
type: _AttributeTypeKind__WEBPACK_IMPORTED_MODULE_13__.AttributeTypeKind.Path
|
|
@@ -67362,9 +67366,8 @@ function buildAttributeDocs(propertyDeserializer, documentationFilesContext) {
|
|
|
67362
67366
|
valueTypes: [],
|
|
67363
67367
|
shortMarkdownDescription: "DEPRECATED",
|
|
67364
67368
|
markdownDescription: "DEPRECATED",
|
|
67365
|
-
|
|
67366
|
-
|
|
67367
|
-
deprecated: true
|
|
67369
|
+
deprecated: true,
|
|
67370
|
+
deprecationReason: propertyDeserializer.valueSource.reason
|
|
67368
67371
|
}];
|
|
67369
67372
|
}
|
|
67370
67373
|
return [];
|
|
@@ -69455,7 +69458,7 @@ class FLangValidationBuildContext {
|
|
|
69455
69458
|
console.warn(`Try to process as children condition failed.`);
|
|
69456
69459
|
}
|
|
69457
69460
|
// eslint-disable-next-line no-console
|
|
69458
|
-
console.warn(`Could not process kclang to flang: [${condition}]`);
|
|
69461
|
+
console.warn(`Could not process kclang to flang: [${condition.length > 100 ? condition.slice(0, 100) + "…" : condition}]`);
|
|
69459
69462
|
return undefined;
|
|
69460
69463
|
}
|
|
69461
69464
|
}
|
|
@@ -75022,6 +75025,12 @@ class DropdownButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
|
|
|
75022
75025
|
itemBuilder.prop(x => x.onActionClick).set(context.generateHelperFunctionExpression(node, "onClick", item.onClick));
|
|
75023
75026
|
itemBuilder.appendChild(context.convertChildNodes(item.children));
|
|
75024
75027
|
}
|
|
75028
|
+
if (node.disabled2 != undefined) {
|
|
75029
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__.buildExpressionPropValue)(node.disabled2));
|
|
75030
|
+
if (this.getLegacyNode().getParent() != undefined) {
|
|
75031
|
+
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
75032
|
+
}
|
|
75033
|
+
}
|
|
75025
75034
|
return markupBuilder.buildConverterResult();
|
|
75026
75035
|
}
|
|
75027
75036
|
}
|
|
@@ -75047,13 +75056,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75047
75056
|
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
75048
75057
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
75049
75058
|
/* harmony import */ var _Common_ActionNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Common/ActionNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Action/Common/ActionNode.ts");
|
|
75059
|
+
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
75050
75060
|
|
|
75051
75061
|
|
|
75052
75062
|
|
|
75053
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
75063
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
75064
|
+
|
|
75054
75065
|
|
|
75055
75066
|
|
|
75056
|
-
let DropdownButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("dropdownbutton", `Кнопка с выпадющим меню. Позволяет визуально объединить несколько действий в одну кнопку`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropdownButton sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("small", "medium", "large"), "Размер кнопки. По умолчанинию small"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("icon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Иконка, отображаемая рядом с текстом кнопки"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, "Ширина"), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("caption", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, "Текст, отображаемый на кнопке"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("action", [_Common_ActionNode__WEBPACK_IMPORTED_MODULE_4__.ActionNode]), _dec(_class = (_class2 = class DropdownButtonNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
75067
|
+
let DropdownButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("dropdownbutton", `Кнопка с выпадющим меню. Позволяет визуально объединить несколько действий в одну кнопку`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Action/DropdownButton sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("size", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.enum("small", "medium", "large"), "Размер кнопки. По умолчанинию small"), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("icon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Иконка, отображаемая рядом с текстом кнопки"), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.lengthUnit, "Ширина"), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("caption", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, "Текст, отображаемый на кнопке"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)("action", [_Common_ActionNode__WEBPACK_IMPORTED_MODULE_4__.ActionNode]), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec(_class = (_class2 = class DropdownButtonNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
75057
75068
|
constructor(...args) {
|
|
75058
75069
|
super(...args);
|
|
75059
75070
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tid", _descriptor, this);
|
|
@@ -75062,6 +75073,7 @@ let DropdownButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
75062
75073
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor4, this);
|
|
75063
75074
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "caption", _descriptor5, this);
|
|
75064
75075
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor6, this);
|
|
75076
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor7, this);
|
|
75065
75077
|
}
|
|
75066
75078
|
}, (_descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "tid", [_dec2], {
|
|
75067
75079
|
configurable: true,
|
|
@@ -75093,6 +75105,11 @@ let DropdownButtonNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
75093
75105
|
enumerable: true,
|
|
75094
75106
|
writable: true,
|
|
75095
75107
|
initializer: null
|
|
75108
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled2", [_dec8], {
|
|
75109
|
+
configurable: true,
|
|
75110
|
+
enumerable: true,
|
|
75111
|
+
writable: true,
|
|
75112
|
+
initializer: null
|
|
75096
75113
|
})), _class2)) || _class);
|
|
75097
75114
|
|
|
75098
75115
|
/***/ }),
|
|
@@ -78406,6 +78423,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
78406
78423
|
unitItemBuilder.prop(x => x.clearConfirmationSettings).set((_page$clearConfirmati = page.clearConfirmationSettings) !== null && _page$clearConfirmati !== void 0 ? _page$clearConfirmati : {});
|
|
78407
78424
|
unitItemBuilder.prop(x => x.maxOccurs).set((_page$maxOccurs = page.maxOccurs) !== null && _page$maxOccurs !== void 0 ? _page$maxOccurs : context.getPathMaxOccurs(page.getFullPath()));
|
|
78408
78425
|
const pageActions = page.pageActions;
|
|
78426
|
+
unitItemBuilder.prop(x => x.pageActions).set(pageActions);
|
|
78409
78427
|
if (pageActions && pageActions.hideButton === true) {
|
|
78410
78428
|
unitItemBuilder.prop(x => x.hideActions).set(true);
|
|
78411
78429
|
}
|
|
@@ -79797,6 +79815,7 @@ class UnitItemConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
79797
79815
|
var _context$getPathMaxOc;
|
|
79798
79816
|
markupBuilder.prop(x => x.maxOccurs).set((_context$getPathMaxOc = context.getPathMaxOccurs(node.getFullPath())) !== null && _context$getPathMaxOc !== void 0 ? _context$getPathMaxOc : node.maxOccurs);
|
|
79799
79817
|
}
|
|
79818
|
+
markupBuilder.prop(x => x.pageActions).set(page.pageActions);
|
|
79800
79819
|
if ((_page$pageActions = page.pageActions) !== null && _page$pageActions !== void 0 && _page$pageActions.hideButton) {
|
|
79801
79820
|
markupBuilder.prop(x => x.hideActions).set(true);
|
|
79802
79821
|
}
|