@kontur.candy/generator 5.116.0-fs-9157-fix-required-filed-checking.0 → 5.116.0-fs-9118-contractors-widget.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 +92 -153
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -97024,11 +97024,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97024
97024
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
97025
97025
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
97026
97026
|
/* harmony import */ var _Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Typography/Icon/GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
|
|
97027
|
-
/* harmony import */ var
|
|
97028
|
-
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
97029
|
-
/* harmony import */ var _ComboBoxNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox/ComboBoxNode.ts");
|
|
97030
|
-
|
|
97031
|
-
|
|
97027
|
+
/* harmony import */ var _ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox/ComboBoxNode.ts");
|
|
97032
97028
|
|
|
97033
97029
|
|
|
97034
97030
|
|
|
@@ -97040,38 +97036,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97040
97036
|
|
|
97041
97037
|
class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
97042
97038
|
static getAcceptNodeClass() {
|
|
97043
|
-
return
|
|
97039
|
+
return _ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode;
|
|
97044
97040
|
}
|
|
97045
97041
|
doBuildNodeValidations(validationGenerator) {
|
|
97046
|
-
const node = this.getCurrentNodeAs(
|
|
97042
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97047
97043
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
|
|
97048
97044
|
}
|
|
97049
97045
|
doGetRequisites() {
|
|
97050
|
-
const node = this.getCurrentNodeAs(
|
|
97046
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97051
97047
|
return (0,_RequisiteLIst_requisiteList__WEBPACK_IMPORTED_MODULE_0__.getRequisitesFromEvaluableProps)(node.filter, node.mostLikelyFilter, node.emptyValueFilter);
|
|
97052
97048
|
}
|
|
97053
97049
|
get nodePaths() {
|
|
97054
|
-
|
|
97055
|
-
|
|
97056
|
-
const paths = (_node$binding$map = (_node$binding = node.binding) === null || _node$binding === void 0 ? void 0 : _node$binding.map(([path]) => (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewRelativePathExpression)(node, path))) !== null && _node$binding$map !== void 0 ? _node$binding$map : [];
|
|
97057
|
-
paths.push((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
|
|
97058
|
-
return paths;
|
|
97050
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97051
|
+
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node)];
|
|
97059
97052
|
}
|
|
97060
97053
|
doBuildDataDeclaration(context) {
|
|
97061
|
-
const node = this.getCurrentNodeAs(
|
|
97054
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97062
97055
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)], node.auto ? ["autoFlag", context.initSequenceFactory.takeFromModel()] : undefined, node.auto ? ["autoValue", context.initSequenceFactory.takeFromModelOrDefaultValue(node.dataBinding.defaultValue)] : undefined]), context.addSpecialFieldsEntry(node, {
|
|
97063
97056
|
optional: node.dataBinding.optional,
|
|
97064
97057
|
disabled: node.disabled
|
|
97065
97058
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
97066
97059
|
}
|
|
97067
97060
|
doBuildNormalizeRules(builder) {
|
|
97068
|
-
const node = this.getCurrentNodeAs(
|
|
97061
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97069
97062
|
return [builder.valueInitializer(node, node.dataBinding, node.disabled), ...builder.specialFieldsInitializer(node, {
|
|
97070
97063
|
disabled: node.disabled
|
|
97071
97064
|
})];
|
|
97072
97065
|
}
|
|
97073
97066
|
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
97074
|
-
const node = this.getCurrentNodeAs(
|
|
97067
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97075
97068
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
97076
97069
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_6__.PathTokens.each);
|
|
97077
97070
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
@@ -97083,15 +97076,15 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
97083
97076
|
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId, node.validationInfo.emptydescription);
|
|
97084
97077
|
}
|
|
97085
97078
|
buildChildrenDataDeclaration(context) {
|
|
97086
|
-
const node = this.getCurrentNodeAs(
|
|
97079
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97087
97080
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
97088
97081
|
}
|
|
97089
97082
|
*doTraverseChildren() {
|
|
97090
|
-
const node = this.getCurrentNodeAs(
|
|
97083
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97091
97084
|
yield* node.helpNodes;
|
|
97092
97085
|
}
|
|
97093
97086
|
doConvert(context) {
|
|
97094
|
-
const node = this.getCurrentNodeAs(
|
|
97087
|
+
const node = this.getCurrentNodeAs(_ComboBoxNode__WEBPACK_IMPORTED_MODULE_8__.ComboBoxNode);
|
|
97095
97088
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
97096
97089
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("ComboBox");
|
|
97097
97090
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
|
|
@@ -97108,21 +97101,6 @@ class ComboBoxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__
|
|
|
97108
97101
|
markupBuilder.prop(x => x.valueToSaveColumnName).set(node.valueToSaveColumnName);
|
|
97109
97102
|
markupBuilder.prop(x => x.isEnableCaseIndependentValidation).set(node.isEnableCaseIndependentValidation);
|
|
97110
97103
|
markupBuilder.prop(x => x.greyPicklistValues).set(node.greyPicklistValues);
|
|
97111
|
-
const binding = node.binding;
|
|
97112
|
-
if (binding) {
|
|
97113
|
-
markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => (0,_binding__WEBPACK_IMPORTED_MODULE_8__.getBindingSourceField)(field)));
|
|
97114
|
-
const dependencies = binding === null || binding === void 0 ? void 0 : binding.map(([path, field]) => ({
|
|
97115
|
-
path: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewRelativePathExpression)(node, path),
|
|
97116
|
-
field: (0,_binding__WEBPACK_IMPORTED_MODULE_8__.getBindingSourceField)(field),
|
|
97117
|
-
value: (0,_binding__WEBPACK_IMPORTED_MODULE_8__.getBindingSourceValue)(field)
|
|
97118
|
-
}));
|
|
97119
|
-
markupBuilder.prop(x => x.dependencies).set(dependencies);
|
|
97120
|
-
const nodePath = this.getLegacyNode().attrAsStringStrict("path");
|
|
97121
|
-
const bindingForCurrentPath = binding.find(([path, _field]) => path === nodePath);
|
|
97122
|
-
if (bindingForCurrentPath == undefined) {
|
|
97123
|
-
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__.SugarAttributeReadError("Значение пути в атрибуте binding должно в точности совпадать со значнием в path", node, "binding");
|
|
97124
|
-
}
|
|
97125
|
-
}
|
|
97126
97104
|
const reference = (0,_Select_PicklistReference__WEBPACK_IMPORTED_MODULE_3__.extractPicklistReference)(node);
|
|
97127
97105
|
if (reference != undefined && reference.type === _Select_PicklistReference__WEBPACK_IMPORTED_MODULE_3__.PicklistReferenceType.GlobalPicklist) {
|
|
97128
97106
|
markupBuilder.prop(x => x.gId).set(reference.id);
|
|
@@ -97234,7 +97212,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97234
97212
|
|
|
97235
97213
|
|
|
97236
97214
|
|
|
97237
|
-
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54,
|
|
97215
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _class3, _class4, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52;
|
|
97238
97216
|
|
|
97239
97217
|
|
|
97240
97218
|
|
|
@@ -97273,7 +97251,7 @@ let ComboboxEnumerationItem = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IM
|
|
|
97273
97251
|
let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.sugarNode)("combobox", `Комбобокс`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Combobox sync recursive .md$")), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_5__.ValidationInfoNode), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_4__.DataBindingMixinNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_11__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_10__.TooltipSettingsNode), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_12__.FocusManagementNode), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("maxLength", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("caption", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("openbutton", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("rngAttribute", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("kind", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("title", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.InvalidUsage), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("useIncorrectValue", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Typo), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.deprecatedAttr)("controlVersion", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_6__.DeprecationReason.Removed), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.typeName, "Тип для валидации значений"), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.singleChild)("type", [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_3__.TypeNode]), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Глобальный идентификатор справочника`), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("limit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.number, `Количество значений в выпадающем списке`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `В каком виде отобразится выбранное значение в инпуте: значение/название/полностью (value/name/item).
|
|
97274
97252
|
Также можно отображать кастомные колонки по названию.`), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("greyPicklistValues", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Красить значения в выпадашке пиклиста в серый цвет`), _dec27 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("displayItem", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.enum("value", "name"), `В каком виде отобразится занчение в списке: значение/название`), _dec28 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec29 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("gPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.delimitedStringArray, ``), _dec30 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("savedescription", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, ``), _dec31 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("useincorrectvalue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Для валидации введенного значения. если false - то только из справочника должно быть значение`), _dec32 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.localizedString.default("Начните вводить код или название"), `Когда в input-e пусто, то рисуется этот текст`), _dec33 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.lengthUnit, ``), _dec34 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("menuAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.enum("left", "right"), `Определяет, в какую сторону будет открываться выпадающий список. Значения: \`left\`, \`right\`. Значение по умолчанию: \`left\``), _dec35 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("filter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, ``), _dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр для популярных значений`), _dec37 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("mostLikelyCaption", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Подпись для раздела с популярными значениями`), _dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("notFoundText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Надпись при отсутствии значений по фильтру`), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("keyColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`code\`, данный ключ будет выведен в первой колонке комбобокса`), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("valueColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Поле дает возможность указать произвольное значение из объекта пиклиста, вместо дефолтного \`value\`, данный ключ будет выведен во второй колонке комбобокса`), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("searchcolumnnames", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.stringArray, `Поля справочника, используемые для поиска`), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("valueToSaveColumnName", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, `Название колонки, значение из которой хотим сохранить в иннере`), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("emptyValueFilter", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.javascriptExpression, `Фильтр показываемые поля, если вводимое значение пусто`), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, ``), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("enumeration", [ComboboxEnumerationItem]), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_9__.HelpNode]), _dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("auto", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, "Подключен авторасчет"), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.markupAttr)("formula", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Подсказка для автозначения"), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("autoValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Значение авторасчета. Код, элемент которого будет показываться как автозначение. Использовать в тестах, заменяет получение из калькуляций."), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("useAutoIcon", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.string, "Какую иконку использовать при использовании авторасчета (работает только с auto = true). Имя иконки смотреть тут - https://ui.gitlab-pages.kontur.host/docs/#/react-icons"), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("isEnableCaseIndependentValidation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.boolean, `Включить регистронезависимую валидацию. Если написан этот атрибут, то в type надо дописать isCaseIndependentValid=true.`), _dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("callHelperOnBlur", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.helperFunctionName, "Вызов helper функции на onBlur контролла"), _dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("callHelperOnChange", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.helperFunctionName, "Вызов helper функции на onChange контролла"), _dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attr)("filterCallback", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_8__.attrType.helperFunctionName, `Helper-функция, которая фильтрует массив элементов. Принимает массив args (третий аргумент в хелпере), должна сделать return массива с таким же контрактом.
|
|
97275
97253
|
При использовании нужно установить максимальный limit, т.к. ответственность за работу с массивом передается коллбэку.
|
|
97276
|
-
Также может некорректно работать mostLikelyFilter.`),
|
|
97254
|
+
Также может некорректно работать mostLikelyFilter.`), _dec5(_class3 = (_class4 = class ComboBoxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_7__.SugarNodeWithLegacyVisibility {
|
|
97277
97255
|
constructor(...args) {
|
|
97278
97256
|
super(...args);
|
|
97279
97257
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor4, this);
|
|
@@ -97325,7 +97303,6 @@ let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
97325
97303
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnBlur", _descriptor50, this);
|
|
97326
97304
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnChange", _descriptor51, this);
|
|
97327
97305
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterCallback", _descriptor52, this);
|
|
97328
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "binding", _descriptor53, this);
|
|
97329
97306
|
}
|
|
97330
97307
|
getOwnPath() {
|
|
97331
97308
|
return this.dataBinding.getOwnPath();
|
|
@@ -97578,11 +97555,6 @@ let ComboBoxNode = (_dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
97578
97555
|
enumerable: true,
|
|
97579
97556
|
writable: true,
|
|
97580
97557
|
initializer: null
|
|
97581
|
-
}), _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class4.prototype, "binding", [_dec55], {
|
|
97582
|
-
configurable: true,
|
|
97583
|
-
enumerable: true,
|
|
97584
|
-
writable: true,
|
|
97585
|
-
initializer: null
|
|
97586
97558
|
}), _class4)) || _class3);
|
|
97587
97559
|
|
|
97588
97560
|
/***/ }),
|
|
@@ -100483,9 +100455,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
100483
100455
|
/* harmony import */ var _Select_PicklistReference__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Select/PicklistReference */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Select/PicklistReference.ts");
|
|
100484
100456
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
100485
100457
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
100486
|
-
/* harmony import */ var
|
|
100487
|
-
/* harmony import */ var _PicklistNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Picklist/PicklistNode.ts");
|
|
100488
|
-
|
|
100458
|
+
/* harmony import */ var _PicklistNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Picklist/PicklistNode.ts");
|
|
100489
100459
|
|
|
100490
100460
|
|
|
100491
100461
|
|
|
@@ -100496,10 +100466,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
100496
100466
|
|
|
100497
100467
|
class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
|
|
100498
100468
|
static getAcceptNodeClass() {
|
|
100499
|
-
return
|
|
100469
|
+
return _PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode;
|
|
100500
100470
|
}
|
|
100501
100471
|
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
100502
|
-
const node = this.getCurrentNodeAs(
|
|
100472
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100503
100473
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100504
100474
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
100505
100475
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
@@ -100512,12 +100482,12 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100512
100482
|
yield* buildContext.buildBasicValidations(ownPathFixed, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, node.gId);
|
|
100513
100483
|
}
|
|
100514
100484
|
doBuildNodeValidations(validationGenerator) {
|
|
100515
|
-
const node = this.getCurrentNodeAs(
|
|
100485
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100516
100486
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
|
|
100517
100487
|
}
|
|
100518
100488
|
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
100519
100489
|
var _ref;
|
|
100520
|
-
const node = this.getCurrentNodeAs(
|
|
100490
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100521
100491
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
100522
100492
|
yield builder.valueInitializer(node, node.dataBinding, false);
|
|
100523
100493
|
const isOptional = (_ref = node.dataBinding.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.dataBinding.optional) !== null && _ref !== void 0 ? _ref : false;
|
|
@@ -100528,29 +100498,29 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100528
100498
|
}
|
|
100529
100499
|
doBuildDataDeclaration(context) {
|
|
100530
100500
|
var _node$dataBinding$opt;
|
|
100531
|
-
const node = this.getCurrentNodeAs(
|
|
100501
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100532
100502
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
|
|
100533
100503
|
optional: node.dataBinding.optional
|
|
100534
100504
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false, node.dataBinding.requisite));
|
|
100535
100505
|
}
|
|
100536
100506
|
get nodePaths() {
|
|
100537
100507
|
var _node$binding$map, _node$binding;
|
|
100538
|
-
const node = this.getCurrentNodeAs(
|
|
100508
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100539
100509
|
const paths = (_node$binding$map = (_node$binding = node.binding) === null || _node$binding === void 0 ? void 0 : _node$binding.map(([path]) => (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewRelativePathExpression)(node, path))) !== null && _node$binding$map !== void 0 ? _node$binding$map : [];
|
|
100540
100510
|
paths.push((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node));
|
|
100541
100511
|
return paths;
|
|
100542
100512
|
}
|
|
100543
100513
|
buildChildrenDataDeclaration(context) {
|
|
100544
|
-
const node = this.getCurrentNodeAs(
|
|
100514
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100545
100515
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
100546
100516
|
}
|
|
100547
100517
|
*doTraverseChildren() {
|
|
100548
|
-
const node = this.getCurrentNodeAs(
|
|
100518
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100549
100519
|
yield* node.helpNodes;
|
|
100550
100520
|
}
|
|
100551
100521
|
doConvert(context) {
|
|
100552
100522
|
var _node$descriptionInMo;
|
|
100553
|
-
const node = this.getCurrentNodeAs(
|
|
100523
|
+
const node = this.getCurrentNodeAs(_PicklistNode__WEBPACK_IMPORTED_MODULE_7__.PicklistNode);
|
|
100554
100524
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
100555
100525
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Picklist");
|
|
100556
100526
|
markupBuilder.prop(x => x.limit).set(node.limit);
|
|
@@ -100591,18 +100561,18 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100591
100561
|
}
|
|
100592
100562
|
const nodePath = this.getLegacyNode().attrAsStringStrict("path");
|
|
100593
100563
|
const binding = node.binding || [[nodePath, "code"]];
|
|
100594
|
-
markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) =>
|
|
100564
|
+
markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => this.getBindingSourceField(field)));
|
|
100595
100565
|
const bindingForCurrentPath = binding.find(([path, _field]) => path === nodePath);
|
|
100596
100566
|
if (bindingForCurrentPath == undefined) {
|
|
100597
100567
|
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError("Значение пути в атрибуте binding должно в точности совпадать со значнием в path", node, "binding");
|
|
100598
100568
|
}
|
|
100599
100569
|
const searchByField = bindingForCurrentPath[1];
|
|
100600
|
-
markupBuilder.prop(x => x.searchByField).set(
|
|
100570
|
+
markupBuilder.prop(x => x.searchByField).set(this.getBindingSourceField(searchByField));
|
|
100601
100571
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(node));
|
|
100602
|
-
const dependencies = binding
|
|
100572
|
+
const dependencies = binding.map(([path, field]) => ({
|
|
100603
100573
|
path: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewRelativePathExpression)(node, path),
|
|
100604
|
-
field:
|
|
100605
|
-
value:
|
|
100574
|
+
field: this.getBindingSourceField(field),
|
|
100575
|
+
value: this.getBindingSourceValue(field)
|
|
100606
100576
|
}));
|
|
100607
100577
|
markupBuilder.prop(x => x.dependencies).set(dependencies);
|
|
100608
100578
|
if (node.kind === "group") {
|
|
@@ -100626,6 +100596,15 @@ class PicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__
|
|
|
100626
100596
|
}
|
|
100627
100597
|
return markupBuilder.buildConverterResultWithHelp(node, context);
|
|
100628
100598
|
}
|
|
100599
|
+
getBindingSourceField(x) {
|
|
100600
|
+
return typeof x === "string" ? x : x.field;
|
|
100601
|
+
}
|
|
100602
|
+
getBindingSourceValue(x) {
|
|
100603
|
+
if (typeof x === "string" || x.value == undefined) {
|
|
100604
|
+
return "value";
|
|
100605
|
+
}
|
|
100606
|
+
return x.value;
|
|
100607
|
+
}
|
|
100629
100608
|
}
|
|
100630
100609
|
|
|
100631
100610
|
/***/ }),
|
|
@@ -102867,9 +102846,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102867
102846
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
102868
102847
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
102869
102848
|
/* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
|
|
102870
|
-
/* harmony import */ var
|
|
102871
|
-
/* harmony import */ var _TreePicklistNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreePicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TreePicklist/TreePicklistNode.ts");
|
|
102872
|
-
|
|
102849
|
+
/* harmony import */ var _TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TreePicklistNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TreePicklist/TreePicklistNode.ts");
|
|
102873
102850
|
|
|
102874
102851
|
|
|
102875
102852
|
|
|
@@ -102878,10 +102855,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102878
102855
|
|
|
102879
102856
|
class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
102880
102857
|
static getAcceptNodeClass() {
|
|
102881
|
-
return
|
|
102858
|
+
return _TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode;
|
|
102882
102859
|
}
|
|
102883
102860
|
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
102884
|
-
const node = this.getCurrentNodeAs(
|
|
102861
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102885
102862
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102886
102863
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each);
|
|
102887
102864
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
@@ -102892,12 +102869,12 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
102892
102869
|
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.gId);
|
|
102893
102870
|
}
|
|
102894
102871
|
doBuildNodeValidations(validationGenerator) {
|
|
102895
|
-
const node = this.getCurrentNodeAs(
|
|
102872
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102896
102873
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), node.gId, node.validationInfo.emptydescription, undefined);
|
|
102897
102874
|
}
|
|
102898
102875
|
*doBuildNormalizeRules(builder, formSchemaRng) {
|
|
102899
102876
|
var _ref;
|
|
102900
|
-
const node = this.getCurrentNodeAs(
|
|
102877
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102901
102878
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
102902
102879
|
yield builder.valueInitializer(node, node.dataBinding, false);
|
|
102903
102880
|
const isOptional = (_ref = node.dataBinding.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.dataBinding.optional) !== null && _ref !== void 0 ? _ref : false;
|
|
@@ -102908,26 +102885,26 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
102908
102885
|
}
|
|
102909
102886
|
doBuildDataDeclaration(context) {
|
|
102910
102887
|
var _node$dataBinding$opt;
|
|
102911
|
-
const node = this.getCurrentNodeAs(
|
|
102888
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102912
102889
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
|
|
102913
102890
|
optional: node.dataBinding.optional
|
|
102914
102891
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite), context.addChildrenPathDeclEntry(node, node.dataBinding.path, (_node$dataBinding$opt = node.dataBinding.optional) !== null && _node$dataBinding$opt !== void 0 ? _node$dataBinding$opt : false, node.dataBinding.requisite));
|
|
102915
102892
|
}
|
|
102916
102893
|
get nodePaths() {
|
|
102917
|
-
const node = this.getCurrentNodeAs(
|
|
102894
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102918
102895
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node)];
|
|
102919
102896
|
}
|
|
102920
102897
|
buildChildrenDataDeclaration(context) {
|
|
102921
|
-
const node = this.getCurrentNodeAs(
|
|
102898
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102922
102899
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
102923
102900
|
}
|
|
102924
102901
|
*doTraverseChildren() {
|
|
102925
|
-
const node = this.getCurrentNodeAs(
|
|
102902
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102926
102903
|
yield* node.helpNodes;
|
|
102927
102904
|
}
|
|
102928
102905
|
doConvert(context) {
|
|
102929
102906
|
var _node$descriptionInMo, _node$title, _node$width, _node$fields, _node$display, _node$childColumnName, _node$parentColumnNam, _node$tooltipPosition;
|
|
102930
|
-
const node = this.getCurrentNodeAs(
|
|
102907
|
+
const node = this.getCurrentNodeAs(_TreePicklistNode__WEBPACK_IMPORTED_MODULE_5__.TreePicklistNode);
|
|
102931
102908
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
102932
102909
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("TreePicklist");
|
|
102933
102910
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node));
|
|
@@ -102935,10 +102912,10 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
102935
102912
|
const binding = node.binding || [[nodePath, "code"]];
|
|
102936
102913
|
const dependencies = binding.map(([path, field]) => ({
|
|
102937
102914
|
path: (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewRelativePathExpression)(node, path),
|
|
102938
|
-
field:
|
|
102939
|
-
value:
|
|
102915
|
+
field: this.getBindingSourceField(field),
|
|
102916
|
+
value: this.getBindingSourceValue(field)
|
|
102940
102917
|
}));
|
|
102941
|
-
markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) =>
|
|
102918
|
+
markupBuilder.prop(x => x.mapChangesField).set(binding.map(([_path, field]) => this.getBindingSourceField(field)));
|
|
102942
102919
|
markupBuilder.prop(x => x.descriptionInModal).set((_node$descriptionInMo = node.descriptionInModal) !== null && _node$descriptionInMo !== void 0 ? _node$descriptionInMo : "");
|
|
102943
102920
|
markupBuilder.prop(x => x.hintFields).set(node.hintFields);
|
|
102944
102921
|
markupBuilder.prop(x => x.hintWidth).set(node.hintWidth);
|
|
@@ -102963,7 +102940,7 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
102963
102940
|
throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_4__.SugarAttributeReadError("Значение пути в атрибуте binding должно в точности совпадать со значнием в path", node, "binding");
|
|
102964
102941
|
}
|
|
102965
102942
|
const searchByField = bindingForCurrentPath[1];
|
|
102966
|
-
markupBuilder.prop(x => x.searchByField).set(
|
|
102943
|
+
markupBuilder.prop(x => x.searchByField).set(this.getBindingSourceField(searchByField));
|
|
102967
102944
|
if (node.filter !== undefined) {
|
|
102968
102945
|
markupBuilder.prop(x => x.filter).set({
|
|
102969
102946
|
type: "Expression",
|
|
@@ -102973,6 +102950,15 @@ class TreePicklistConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
102973
102950
|
markupBuilder.prop(x => x.tooltipPosition).set((_node$tooltipPosition = node.tooltipPosition) !== null && _node$tooltipPosition !== void 0 ? _node$tooltipPosition : "top center");
|
|
102974
102951
|
return markupBuilder.buildConverterResultWithHelp(node, context);
|
|
102975
102952
|
}
|
|
102953
|
+
getBindingSourceValue(x) {
|
|
102954
|
+
if (typeof x === "string" || x.value == undefined) {
|
|
102955
|
+
return "value";
|
|
102956
|
+
}
|
|
102957
|
+
return x.value;
|
|
102958
|
+
}
|
|
102959
|
+
getBindingSourceField(x) {
|
|
102960
|
+
return typeof x === "string" ? x : x.field;
|
|
102961
|
+
}
|
|
102976
102962
|
}
|
|
102977
102963
|
|
|
102978
102964
|
/***/ }),
|
|
@@ -103183,9 +103169,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103183
103169
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
103184
103170
|
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
103185
103171
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
103186
|
-
/* harmony import */ var
|
|
103187
|
-
/* harmony import */ var _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PopupTextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea/PopupTextAreaNode.ts");
|
|
103188
|
-
|
|
103172
|
+
/* harmony import */ var _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PopupTextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea/PopupTextAreaNode.ts");
|
|
103189
103173
|
|
|
103190
103174
|
|
|
103191
103175
|
|
|
@@ -103196,14 +103180,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103196
103180
|
|
|
103197
103181
|
class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
103198
103182
|
static getAcceptNodeClass() {
|
|
103199
|
-
return
|
|
103183
|
+
return _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode;
|
|
103200
103184
|
}
|
|
103201
103185
|
doBuildNodeValidations(validationGenerator) {
|
|
103202
|
-
const node = this.getCurrentNodeAs(
|
|
103186
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103203
103187
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
103204
103188
|
}
|
|
103205
103189
|
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
103206
|
-
const node = this.getCurrentNodeAs(
|
|
103190
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103207
103191
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
103208
103192
|
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
103209
103193
|
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
@@ -103215,26 +103199,26 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
103215
103199
|
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
103216
103200
|
}
|
|
103217
103201
|
doBuildDataDeclaration(context) {
|
|
103218
|
-
const node = this.getCurrentNodeAs(
|
|
103219
|
-
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]
|
|
103202
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103203
|
+
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
103220
103204
|
optional: node.dataBinding.optional,
|
|
103221
103205
|
disabled: node.disabled
|
|
103222
103206
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
103223
103207
|
}
|
|
103224
103208
|
buildChildrenDataDeclaration(context) {
|
|
103225
|
-
const node = this.getCurrentNodeAs(
|
|
103209
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103226
103210
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
103227
103211
|
}
|
|
103228
103212
|
*doTraverseChildren() {
|
|
103229
|
-
const node = this.getCurrentNodeAs(
|
|
103213
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103230
103214
|
yield* node.helpNodes;
|
|
103231
103215
|
}
|
|
103232
103216
|
get nodePaths() {
|
|
103233
|
-
const node = this.getCurrentNodeAs(
|
|
103217
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103234
103218
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
|
|
103235
103219
|
}
|
|
103236
103220
|
doConvert(context) {
|
|
103237
|
-
const node = this.getCurrentNodeAs(
|
|
103221
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
103238
103222
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("PopupTextArea");
|
|
103239
103223
|
markupBuilder.prop(x => x.width).set(node.width || "100%");
|
|
103240
103224
|
markupBuilder.prop("data-tid").set(node.tid);
|
|
@@ -103256,9 +103240,6 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
103256
103240
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
103257
103241
|
}
|
|
103258
103242
|
}
|
|
103259
|
-
markupBuilder.prop(x => x.auto).set(node.auto);
|
|
103260
|
-
markupBuilder.prop(x => x.autoValue).set(node.autoValue);
|
|
103261
|
-
markupBuilder.prop(x => x.useAutoIcon).set((0,_Typography_Icon_GetIconName__WEBPACK_IMPORTED_MODULE_7__.getIconName)(node, node.useAutoIcon));
|
|
103262
103243
|
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
103263
103244
|
return markupBuilder.buildConverterResultWithHelp(node, context);
|
|
103264
103245
|
}
|
|
@@ -103300,7 +103281,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103300
103281
|
|
|
103301
103282
|
|
|
103302
103283
|
|
|
103303
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20,
|
|
103284
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
|
|
103304
103285
|
|
|
103305
103286
|
|
|
103306
103287
|
|
|
@@ -103309,7 +103290,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
|
|
|
103309
103290
|
|
|
103310
103291
|
|
|
103311
103292
|
|
|
103312
|
-
let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("popuptextarea", `Иконка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_9__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("popupWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина всплывающей textarea. не может быть меньше 250`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("excelPastePrevent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При значении true вставка в popuptextarea будет перехвачена в пользу вставки таблички, скопрированной из excel как таблички. При значении false все скопированное попадет в value`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.localizedString, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("
|
|
103293
|
+
let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("popuptextarea", `Иконка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_9__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("popupWidth", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.lengthUnit, `Ширина всплывающей textarea. не может быть меньше 250`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("excelPastePrevent", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `При значении true вставка в popuptextarea будет перехвачена в пользу вставки таблички, скопрированной из excel как таблички. При значении false все скопированное попадет в value`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.localizedString, ``), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_10__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("autoResize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, ``), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("useLengthLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.boolean, `Включает отображение счётчик длины текста`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("maxTextLength", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.number, `Задаёт максимальное кол-во символов для счётчика длины текста. Если не указано, значение будет братся из валидации или схемы`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("rows", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.number, ``), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("row", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.Typo), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("resize", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.enum("-moz-initial", "inherit", "initial", "revert", "unset", "block", "both", "horizontal", "inline", "none", "vertical"), ``), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.bindingPath, ``), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("help", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)("help", [_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_8__.HelpNode]), _dec(_class = (_class2 = class PopupTextAreaNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
|
|
103313
103294
|
constructor(...args) {
|
|
103314
103295
|
super(...args);
|
|
103315
103296
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
|
|
@@ -103323,17 +103304,14 @@ let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
103323
103304
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled", _descriptor9, this);
|
|
103324
103305
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled2", _descriptor10, this);
|
|
103325
103306
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "autoResize", _descriptor11, this);
|
|
103326
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103327
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103328
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103329
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103330
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103331
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103332
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103333
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
103334
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor20, this);
|
|
103335
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "help", _descriptor21, this);
|
|
103336
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "helpNodes", _descriptor22, this);
|
|
103307
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "useLengthLimit", _descriptor12, this);
|
|
103308
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxTextLength", _descriptor13, this);
|
|
103309
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "rows", _descriptor14, this);
|
|
103310
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "row", _descriptor15, this);
|
|
103311
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resize", _descriptor16, this);
|
|
103312
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor17, this);
|
|
103313
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "help", _descriptor18, this);
|
|
103314
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "helpNodes", _descriptor19, this);
|
|
103337
103315
|
}
|
|
103338
103316
|
getOwnPath() {
|
|
103339
103317
|
return this.dataBinding.getOwnPath();
|
|
@@ -103393,57 +103371,42 @@ let PopupTextAreaNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
103393
103371
|
enumerable: true,
|
|
103394
103372
|
writable: true,
|
|
103395
103373
|
initializer: null
|
|
103396
|
-
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
103397
|
-
configurable: true,
|
|
103398
|
-
enumerable: true,
|
|
103399
|
-
writable: true,
|
|
103400
|
-
initializer: null
|
|
103401
|
-
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "autoValue", [_dec14], {
|
|
103402
|
-
configurable: true,
|
|
103403
|
-
enumerable: true,
|
|
103404
|
-
writable: true,
|
|
103405
|
-
initializer: null
|
|
103406
|
-
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "useAutoIcon", [_dec15], {
|
|
103407
|
-
configurable: true,
|
|
103408
|
-
enumerable: true,
|
|
103409
|
-
writable: true,
|
|
103410
|
-
initializer: null
|
|
103411
|
-
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "useLengthLimit", [_dec16], {
|
|
103374
|
+
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "useLengthLimit", [_dec13], {
|
|
103412
103375
|
configurable: true,
|
|
103413
103376
|
enumerable: true,
|
|
103414
103377
|
writable: true,
|
|
103415
103378
|
initializer: null
|
|
103416
|
-
}),
|
|
103379
|
+
}), _descriptor13 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "maxTextLength", [_dec14], {
|
|
103417
103380
|
configurable: true,
|
|
103418
103381
|
enumerable: true,
|
|
103419
103382
|
writable: true,
|
|
103420
103383
|
initializer: null
|
|
103421
|
-
}),
|
|
103384
|
+
}), _descriptor14 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "rows", [_dec15], {
|
|
103422
103385
|
configurable: true,
|
|
103423
103386
|
enumerable: true,
|
|
103424
103387
|
writable: true,
|
|
103425
103388
|
initializer: null
|
|
103426
|
-
}),
|
|
103389
|
+
}), _descriptor15 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "row", [_dec16], {
|
|
103427
103390
|
configurable: true,
|
|
103428
103391
|
enumerable: true,
|
|
103429
103392
|
writable: true,
|
|
103430
103393
|
initializer: null
|
|
103431
|
-
}),
|
|
103394
|
+
}), _descriptor16 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "resize", [_dec17], {
|
|
103432
103395
|
configurable: true,
|
|
103433
103396
|
enumerable: true,
|
|
103434
103397
|
writable: true,
|
|
103435
103398
|
initializer: null
|
|
103436
|
-
}),
|
|
103399
|
+
}), _descriptor17 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "path", [_dec18], {
|
|
103437
103400
|
configurable: true,
|
|
103438
103401
|
enumerable: true,
|
|
103439
103402
|
writable: true,
|
|
103440
103403
|
initializer: null
|
|
103441
|
-
}),
|
|
103404
|
+
}), _descriptor18 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "help", [_dec19], {
|
|
103442
103405
|
configurable: true,
|
|
103443
103406
|
enumerable: true,
|
|
103444
103407
|
writable: true,
|
|
103445
103408
|
initializer: null
|
|
103446
|
-
}),
|
|
103409
|
+
}), _descriptor19 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "helpNodes", [_dec20], {
|
|
103447
103410
|
configurable: true,
|
|
103448
103411
|
enumerable: true,
|
|
103449
103412
|
writable: true,
|
|
@@ -105136,8 +105099,8 @@ class KCLangCalculationsBuildContext {
|
|
|
105136
105099
|
getFirstAcceptedParent(schemaNode) {
|
|
105137
105100
|
let parentNode = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.parent;
|
|
105138
105101
|
while (parentNode != undefined) {
|
|
105139
|
-
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement
|
|
105140
|
-
if (parentNode.isOptional()) {
|
|
105102
|
+
if (parentNode instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_28__.FormSchemaRngElement) {
|
|
105103
|
+
if (parentNode.isOptional() && !parentNode.multiple) {
|
|
105141
105104
|
return parentNode;
|
|
105142
105105
|
}
|
|
105143
105106
|
parentNode = parentNode.parent;
|
|
@@ -107708,30 +107671,6 @@ class VisibilityProcessor {
|
|
|
107708
107671
|
|
|
107709
107672
|
/***/ }),
|
|
107710
107673
|
|
|
107711
|
-
/***/ "./Generator/src/generators/markupGenerator/binding.ts":
|
|
107712
|
-
/*!*************************************************************!*\
|
|
107713
|
-
!*** ./Generator/src/generators/markupGenerator/binding.ts ***!
|
|
107714
|
-
\*************************************************************/
|
|
107715
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
107716
|
-
|
|
107717
|
-
"use strict";
|
|
107718
|
-
__webpack_require__.r(__webpack_exports__);
|
|
107719
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
107720
|
-
/* harmony export */ getBindingSourceField: () => (/* binding */ getBindingSourceField),
|
|
107721
|
-
/* harmony export */ getBindingSourceValue: () => (/* binding */ getBindingSourceValue)
|
|
107722
|
-
/* harmony export */ });
|
|
107723
|
-
function getBindingSourceField(x) {
|
|
107724
|
-
return typeof x === "string" ? x : x.field;
|
|
107725
|
-
}
|
|
107726
|
-
function getBindingSourceValue(x) {
|
|
107727
|
-
if (typeof x === "string" || x.value == undefined) {
|
|
107728
|
-
return "value";
|
|
107729
|
-
}
|
|
107730
|
-
return x.value;
|
|
107731
|
-
}
|
|
107732
|
-
|
|
107733
|
-
/***/ }),
|
|
107734
|
-
|
|
107735
107674
|
/***/ "./Generator/src/generators/markupGenerator/controlCustomization/ControlCustomizationContextBuilder.ts":
|
|
107736
107675
|
/*!*************************************************************************************************************!*\
|
|
107737
107676
|
!*** ./Generator/src/generators/markupGenerator/controlCustomization/ControlCustomizationContextBuilder.ts ***!
|
|
@@ -137663,7 +137602,7 @@ module.exports = "### Опциональность мультилайна и т
|
|
|
137663
137602
|
\*********************************************************************************************************/
|
|
137664
137603
|
/***/ ((module) => {
|
|
137665
137604
|
|
|
137666
|
-
module.exports = "<h4>Атрибут emptyValueFilter</h4>\nЕсли нет введеного значения, то фильтрует выпадающий список значения.\nСинтаксис аналогичен атрибуту `filter`. Смотри описание к picklist. \n<br>\n<br>\nПример фильтрации по первым двум цифрам инн из @formsClientInfo/currentAccount:\n```\nemptyValueFilter=\"by.column('code').startWith(path('@formsClientInfo/currentAccount/inn').slice(0, 2))\"\n```\n
|
|
137605
|
+
module.exports = "<h4>Атрибут emptyValueFilter</h4>\nЕсли нет введеного значения, то фильтрует выпадающий список значения.\nСинтаксис аналогичен атрибуту `filter`. Смотри описание к picklist. \n<br>\n<br>\nПример фильтрации по первым двум цифрам инн из @formsClientInfo/currentAccount:\n```\nemptyValueFilter=\"by.column('code').startWith(path('@formsClientInfo/currentAccount/inn').slice(0, 2))\"\n```\n";
|
|
137667
137606
|
|
|
137668
137607
|
/***/ }),
|
|
137669
137608
|
|
package/package.json
CHANGED