@kontur.candy/generator 5.74.0-forminform.2 → 5.74.0-forminform.3
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 +31 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79062,21 +79062,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79062
79062
|
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
79063
79063
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
79064
79064
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
79065
|
+
/* harmony import */ var _Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Commons/DocumentationLinks */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/DocumentationLinks.ts");
|
|
79065
79066
|
|
|
79066
79067
|
|
|
79067
79068
|
|
|
79068
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
79069
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
79069
79070
|
|
|
79070
79071
|
|
|
79071
|
-
|
|
79072
|
+
|
|
79073
|
+
let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("attachmentform", `Встроенный редактор для формализованного приложения`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("gfv", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `ГФВ приложения`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Крактое название раздела, в который поместить форму`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Описание формы приложения`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Путь до поля с именем приложения`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество экземпляров множественного раздела после которого в левом меню будет включаться компактный режим отображения разделов. По умолчанию: 15. Используется только для множественных разделов`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Обозначение множественного раздела`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("visible", _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 AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
79072
79074
|
constructor(...args) {
|
|
79073
79075
|
super(...args);
|
|
79074
79076
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gfv", _descriptor, this);
|
|
79075
79077
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor2, this);
|
|
79076
79078
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor3, this);
|
|
79077
79079
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor4, this);
|
|
79078
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79079
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
79080
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationLimit", _descriptor5, this);
|
|
79081
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor6, this);
|
|
79082
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "visible", _descriptor7, this);
|
|
79080
79083
|
}
|
|
79081
79084
|
getOwnPath() {
|
|
79082
79085
|
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each) : undefined;
|
|
@@ -79101,12 +79104,17 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
79101
79104
|
enumerable: true,
|
|
79102
79105
|
writable: true,
|
|
79103
79106
|
initializer: null
|
|
79104
|
-
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79107
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "navigationLimit", [_dec6], {
|
|
79105
79108
|
configurable: true,
|
|
79106
79109
|
enumerable: true,
|
|
79107
79110
|
writable: true,
|
|
79108
79111
|
initializer: null
|
|
79109
|
-
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
79112
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "multiple", [_dec7], {
|
|
79113
|
+
configurable: true,
|
|
79114
|
+
enumerable: true,
|
|
79115
|
+
writable: true,
|
|
79116
|
+
initializer: null
|
|
79117
|
+
}), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "visible", [_dec8], {
|
|
79110
79118
|
configurable: true,
|
|
79111
79119
|
enumerable: true,
|
|
79112
79120
|
writable: true,
|
|
@@ -80170,6 +80178,15 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
80170
80178
|
markupBuilder.prop(x => x.description).set(attachmentFormNode.description);
|
|
80171
80179
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(attachmentFormNode));
|
|
80172
80180
|
markupBuilder.prop(x => x.multiple).set(attachmentFormNode.multiple);
|
|
80181
|
+
markupBuilder.prop(x => x.evaluatorsContextPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(attachmentFormNode));
|
|
80182
|
+
const compiledCondition = generateKcLangOrJsCondition(attachmentFormNode);
|
|
80183
|
+
if (attachmentFormNode.visible != undefined) {
|
|
80184
|
+
markupBuilder.prop(x => x.visible).set({
|
|
80185
|
+
type: "Expression",
|
|
80186
|
+
expression: `{ type: "ModelDependentEvaluator", expression: (path, count) => ${compiledCondition === null || compiledCondition === void 0 ? void 0 : compiledCondition.condition} }`,
|
|
80187
|
+
dependencies: compiledCondition === null || compiledCondition === void 0 ? void 0 : compiledCondition.dependencies
|
|
80188
|
+
});
|
|
80189
|
+
}
|
|
80173
80190
|
return markupBuilder;
|
|
80174
80191
|
}
|
|
80175
80192
|
isPageContainsTableWithStickyElements(pageNode) {
|
|
@@ -80239,6 +80256,14 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
80239
80256
|
unitItemBuilder.prop(x => x.navigationLimit).set(navigationLimit);
|
|
80240
80257
|
}
|
|
80241
80258
|
}
|
|
80259
|
+
const compiledCondition = generateKcLangOrJsCondition(attachmentForm);
|
|
80260
|
+
if (attachmentForm.visible != undefined) {
|
|
80261
|
+
unitItemBuilder.prop(x => x.visible).set({
|
|
80262
|
+
type: "Expression",
|
|
80263
|
+
expression: `{ type: "ModelDependentEvaluator", expression: (path, count) => ${compiledCondition === null || compiledCondition === void 0 ? void 0 : compiledCondition.condition} }`,
|
|
80264
|
+
dependencies: compiledCondition === null || compiledCondition === void 0 ? void 0 : compiledCondition.dependencies
|
|
80265
|
+
});
|
|
80266
|
+
}
|
|
80242
80267
|
unitItemBuilders.push(unitItemBuilder);
|
|
80243
80268
|
}
|
|
80244
80269
|
return unitItemBuilders;
|