@kontur.candy/generator 6.12.0 → 6.13.0-no-init-validation.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 +196 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3261,6 +3261,24 @@ module.exports = webpackEmptyContext;
|
|
|
3261
3261
|
|
|
3262
3262
|
/***/ }),
|
|
3263
3263
|
|
|
3264
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize sync recursive .md$":
|
|
3265
|
+
/*!******************************************************************************************************!*\
|
|
3266
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/ sync .md$ ***!
|
|
3267
|
+
\******************************************************************************************************/
|
|
3268
|
+
/***/ ((module) => {
|
|
3269
|
+
|
|
3270
|
+
function webpackEmptyContext(req) {
|
|
3271
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
3272
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
3273
|
+
throw e;
|
|
3274
|
+
}
|
|
3275
|
+
webpackEmptyContext.keys = () => ([]);
|
|
3276
|
+
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
3277
|
+
webpackEmptyContext.id = "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize sync recursive .md$";
|
|
3278
|
+
module.exports = webpackEmptyContext;
|
|
3279
|
+
|
|
3280
|
+
/***/ }),
|
|
3281
|
+
|
|
3264
3282
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text sync recursive .md$":
|
|
3265
3283
|
/*!*************************************************************************************************!*\
|
|
3266
3284
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/ sync .md$ ***!
|
|
@@ -46817,20 +46835,58 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46817
46835
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46818
46836
|
/* harmony export */ AbsoluteModelFieldPath: () => (/* binding */ AbsoluteModelFieldPath)
|
|
46819
46837
|
/* harmony export */ });
|
|
46838
|
+
/* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../TypingUtils */ "./Common/TypingUtils.ts");
|
|
46839
|
+
/* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
46840
|
+
/* harmony import */ var _BaseModelFieldPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseModelFieldPath */ "./Common/ModelPath/BaseModelFieldPath.ts");
|
|
46841
|
+
|
|
46842
|
+
|
|
46843
|
+
|
|
46844
|
+
class AbsoluteModelFieldPath extends _BaseModelFieldPath__WEBPACK_IMPORTED_MODULE_2__.BaseModelFieldPath {
|
|
46845
|
+
constructor(path, fieldName) {
|
|
46846
|
+
super(path, fieldName);
|
|
46847
|
+
}
|
|
46848
|
+
static createFromString(pathWithFieldName, defaultFieldName) {
|
|
46849
|
+
return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(path), defaultFieldName);
|
|
46850
|
+
}
|
|
46851
|
+
static createFromMask(pathWithFieldName, multiplicitySymbol, defaultFieldName) {
|
|
46852
|
+
return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(path, multiplicitySymbol), defaultFieldName);
|
|
46853
|
+
}
|
|
46854
|
+
static createFrom(pathWithFieldName, modelPathFactory, defaultFieldName = "value") {
|
|
46855
|
+
var _match$, _ref;
|
|
46856
|
+
const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
|
|
46857
|
+
const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)() : pathWithFieldName;
|
|
46858
|
+
const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)() : defaultFieldName;
|
|
46859
|
+
return new AbsoluteModelFieldPath(modelPathFactory(path), field);
|
|
46860
|
+
}
|
|
46861
|
+
}
|
|
46862
|
+
|
|
46863
|
+
/***/ }),
|
|
46864
|
+
|
|
46865
|
+
/***/ "./Common/ModelPath/BaseModelFieldPath.ts":
|
|
46866
|
+
/*!************************************************!*\
|
|
46867
|
+
!*** ./Common/ModelPath/BaseModelFieldPath.ts ***!
|
|
46868
|
+
\************************************************/
|
|
46869
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
46870
|
+
|
|
46871
|
+
"use strict";
|
|
46872
|
+
__webpack_require__.r(__webpack_exports__);
|
|
46873
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46874
|
+
/* harmony export */ BaseModelFieldPath: () => (/* binding */ BaseModelFieldPath)
|
|
46875
|
+
/* harmony export */ });
|
|
46820
46876
|
/* harmony import */ var _Engine_src_Engine_Core_CoreTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Engine/src/Engine/Core/CoreTypes */ "./Engine/src/Engine/Core/CoreTypes.ts");
|
|
46821
46877
|
/* harmony import */ var _hashUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hashUtils */ "./Common/hashUtils.ts");
|
|
46822
|
-
/* harmony import */ var
|
|
46823
|
-
/* harmony import */ var
|
|
46878
|
+
/* harmony import */ var _IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../IterableUtils */ "./Common/IterableUtils.ts");
|
|
46879
|
+
/* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TypingUtils */ "./Common/TypingUtils.ts");
|
|
46824
46880
|
/* harmony import */ var _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EachCurrentCollision */ "./Common/ModelPath/EachCurrentCollision.ts");
|
|
46825
46881
|
/* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
46826
|
-
var
|
|
46882
|
+
var _BaseModelFieldPath;
|
|
46827
46883
|
|
|
46828
46884
|
|
|
46829
46885
|
|
|
46830
46886
|
|
|
46831
46887
|
|
|
46832
46888
|
|
|
46833
|
-
class
|
|
46889
|
+
class BaseModelFieldPath {
|
|
46834
46890
|
constructor(path, fieldName) {
|
|
46835
46891
|
this.path = void 0;
|
|
46836
46892
|
this.field = void 0;
|
|
@@ -46843,33 +46899,20 @@ class AbsoluteModelFieldPath {
|
|
|
46843
46899
|
isEquals(modelPath, eachCurrentCollision = _EachCurrentCollision__WEBPACK_IMPORTED_MODULE_4__.EachCurrentCollision.AreSame) {
|
|
46844
46900
|
return this.path.isEquals(modelPath.path, eachCurrentCollision) && this.field === modelPath.field;
|
|
46845
46901
|
}
|
|
46846
|
-
static createFromString(pathWithFieldName, defaultFieldName) {
|
|
46847
|
-
return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsolute)(path), defaultFieldName);
|
|
46848
|
-
}
|
|
46849
|
-
static createFromMask(pathWithFieldName, multiplicitySymbol, defaultFieldName) {
|
|
46850
|
-
return this.createFrom(pathWithFieldName, path => (0,_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(path, multiplicitySymbol), defaultFieldName);
|
|
46851
|
-
}
|
|
46852
|
-
static createFrom(pathWithFieldName, modelPathFactory, defaultFieldName = "value") {
|
|
46853
|
-
var _match$, _ref;
|
|
46854
|
-
const match = AbsoluteModelFieldPath.fieldExtractRegex.exec(pathWithFieldName);
|
|
46855
|
-
const path = match != undefined ? (_match$ = match[1]) !== null && _match$ !== void 0 ? _match$ : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : pathWithFieldName;
|
|
46856
|
-
const field = match != undefined ? (_ref = match[2]) !== null && _ref !== void 0 ? _ref : (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)() : defaultFieldName;
|
|
46857
|
-
return new AbsoluteModelFieldPath(modelPathFactory(path), field);
|
|
46858
|
-
}
|
|
46859
46902
|
toString(includeLeadingSlash = false) {
|
|
46860
46903
|
return `${includeLeadingSlash ? "/" : ""}${this.path.toLegacyPath()}.${this.field}`;
|
|
46861
46904
|
}
|
|
46862
46905
|
toLegacyPath(addSlashIfLastTokenIsInstanceOrMultiplicity = true) {
|
|
46863
|
-
const lastToken =
|
|
46906
|
+
const lastToken = _IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.last(this.path.getPathParts());
|
|
46864
46907
|
const isLastTokenAnInstanceOrMultiplicity = _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isInstanceTokenOrInstancesSpec(lastToken) || _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isMultiToken(lastToken);
|
|
46865
|
-
const slashIfRequired = addSlashIfLastTokenIsInstanceOrMultiplicity && isLastTokenAnInstanceOrMultiplicity && (0,
|
|
46866
|
-
const dotIfRequired = (0,
|
|
46908
|
+
const slashIfRequired = addSlashIfLastTokenIsInstanceOrMultiplicity && isLastTokenAnInstanceOrMultiplicity && (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(this.field) ? "/" : "";
|
|
46909
|
+
const dotIfRequired = (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.isNotNullOrEmpty)(this.field) ? "." : "";
|
|
46867
46910
|
return `${this.path.toLegacyPath()}${slashIfRequired}${dotIfRequired}${this.field}`;
|
|
46868
46911
|
}
|
|
46869
46912
|
}
|
|
46870
|
-
|
|
46871
|
-
|
|
46872
|
-
|
|
46913
|
+
_BaseModelFieldPath = BaseModelFieldPath;
|
|
46914
|
+
BaseModelFieldPath.extraFieldNames = ["\\$errorCount", "\\$warningCount"];
|
|
46915
|
+
BaseModelFieldPath.fieldExtractRegex = new RegExp(`^(.*)\\.(${_BaseModelFieldPath.extraFieldNames.concat(...(0,_Engine_src_Engine_Core_CoreTypes__WEBPACK_IMPORTED_MODULE_0__.getKnownViewModelFieldNames)().values()).join("|")})$`);
|
|
46873
46916
|
|
|
46874
46917
|
/***/ }),
|
|
46875
46918
|
|
|
@@ -49180,6 +49223,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49180
49223
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49181
49224
|
/* harmony export */ ensureIsKnownViewModelFieldName: () => (/* binding */ ensureIsKnownViewModelFieldName),
|
|
49182
49225
|
/* harmony export */ getKnownViewModelFieldNames: () => (/* binding */ getKnownViewModelFieldNames),
|
|
49226
|
+
/* harmony export */ isViewModelFieldName: () => (/* binding */ isViewModelFieldName),
|
|
49183
49227
|
/* harmony export */ nonRegularFieldName: () => (/* binding */ nonRegularFieldName)
|
|
49184
49228
|
/* harmony export */ });
|
|
49185
49229
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
@@ -49202,6 +49246,9 @@ const names = new Set(allKeysOfViewModelFieldName);
|
|
|
49202
49246
|
function getKnownViewModelFieldNames() {
|
|
49203
49247
|
return names;
|
|
49204
49248
|
}
|
|
49249
|
+
function isViewModelFieldName(name) {
|
|
49250
|
+
return keysOfViewModelFieldName.includes(name);
|
|
49251
|
+
}
|
|
49205
49252
|
|
|
49206
49253
|
/***/ }),
|
|
49207
49254
|
|
|
@@ -49219,6 +49266,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49219
49266
|
let AggregationType = /*#__PURE__*/function (AggregationType) {
|
|
49220
49267
|
AggregationType[AggregationType["Sum"] = 0] = "Sum";
|
|
49221
49268
|
AggregationType[AggregationType["Count"] = 1] = "Count";
|
|
49269
|
+
AggregationType[AggregationType["Max"] = 2] = "Max";
|
|
49270
|
+
AggregationType[AggregationType["Min"] = 3] = "Min";
|
|
49222
49271
|
return AggregationType;
|
|
49223
49272
|
}({});
|
|
49224
49273
|
|
|
@@ -83247,6 +83296,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
83247
83296
|
/* harmony import */ var _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateConverter__WEBPACK_IMPORTED_MODULE_130__ = __webpack_require__(/*! ./ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateConverter.ts");
|
|
83248
83297
|
/* harmony import */ var _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryConverter__WEBPACK_IMPORTED_MODULE_131__ = __webpack_require__(/*! ./ElementProcessors/MultiControls/AggregationQuery/AggregationQueryConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AggregationQuery/AggregationQueryConverter.ts");
|
|
83249
83298
|
/* harmony import */ var _ElementProcessors_MultiControls_ContextVar_ExprEvalConverter__WEBPACK_IMPORTED_MODULE_132__ = __webpack_require__(/*! ./ElementProcessors/MultiControls/ContextVar/ExprEvalConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/ContextVar/ExprEvalConverter.ts");
|
|
83299
|
+
/* harmony import */ var _ElementProcessors_ValueViewers_Pluralize_PluralizeConverter__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(/*! ./ElementProcessors/ValueViewers/Pluralize/PluralizeConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeConverter.ts");
|
|
83300
|
+
|
|
83250
83301
|
|
|
83251
83302
|
|
|
83252
83303
|
|
|
@@ -83386,7 +83437,7 @@ function buildConvertersFromNodeClassMap() {
|
|
|
83386
83437
|
// <ModalForm>
|
|
83387
83438
|
_ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_56__.BodyConverter, _ElementProcessors_Modal_ErrorBlock_ErrorBlockConverter__WEBPACK_IMPORTED_MODULE_57__.ErrorBlockConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_58__.FooterConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormCancelConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_61__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_62__.ModalFormLabelConverter, _ElementProcessors_Modal_ModalFormRemove_ModalFormRemoveConverter__WEBPACK_IMPORTED_MODULE_63__.ModalFormRemoveConverter,
|
|
83388
83439
|
// </ModalForm>
|
|
83389
|
-
_ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_64__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_65__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_67__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_68__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_69__.PicklistConverter, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistConverter__WEBPACK_IMPORTED_MODULE_121__.TreePicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_70__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_71__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_72__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_73__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_74__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_75__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_76__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_77__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_78__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_79__.SupConverter, _ElementProcessors_Typography_Nobr_NobrConverter__WEBPACK_IMPORTED_MODULE_80__.NobrConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_89__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_90__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_99__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_95__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_96__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_97__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_66__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_98__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_94__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_93__.UnitItemConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_14__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_15__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_16__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_92__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_81__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_86__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_82__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_84__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_83__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_85__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_87__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_2__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_1__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_6__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_5__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_104__.DropdownButtonConverter, _ElementProcessors_ValueEditors_Fias_FiasConverter__WEBPACK_IMPORTED_MODULE_0__.FiasConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_3__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_103__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_102__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_106__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_105__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_107__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_108__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_109__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_110__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_111__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_112__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_116__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_117__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_118__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_119__.SelectAllCheckboxConverter, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxConverter__WEBPACK_IMPORTED_MODULE_123__.SelectCheckboxConverter, _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_124__.ModalHeaderConverter, _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_125__.GlobalModalsConverter, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberConverter, _ElementProcessors_Layout_OptionalBlock_OptionalBlockConverter__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockConverter, _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateConverter__WEBPACK_IMPORTED_MODULE_130__.EmptyTemplateConverter, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryConverter__WEBPACK_IMPORTED_MODULE_131__.AggregationQueryConverter, _ElementProcessors_MultiControls_ContextVar_ExprEvalConverter__WEBPACK_IMPORTED_MODULE_132__.ExprEvalConverter];
|
|
83440
|
+
_ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_64__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_65__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_67__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_68__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_69__.PicklistConverter, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistConverter__WEBPACK_IMPORTED_MODULE_121__.TreePicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_70__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_71__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_72__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_73__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_74__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_75__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_76__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_77__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_78__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_79__.SupConverter, _ElementProcessors_Typography_Nobr_NobrConverter__WEBPACK_IMPORTED_MODULE_80__.NobrConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_89__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_90__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_99__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_95__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_96__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_97__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_66__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_98__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_94__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_93__.UnitItemConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_14__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_15__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_16__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_92__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_81__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_86__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_82__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_84__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_83__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_85__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_87__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_2__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_1__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_6__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_5__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_104__.DropdownButtonConverter, _ElementProcessors_ValueEditors_Fias_FiasConverter__WEBPACK_IMPORTED_MODULE_0__.FiasConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_3__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_103__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_102__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_106__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_105__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_107__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_108__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_109__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_110__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_111__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_112__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_116__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_117__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_118__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_119__.SelectAllCheckboxConverter, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxConverter__WEBPACK_IMPORTED_MODULE_123__.SelectCheckboxConverter, _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_124__.ModalHeaderConverter, _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_125__.GlobalModalsConverter, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberConverter, _ElementProcessors_Layout_OptionalBlock_OptionalBlockConverter__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockConverter, _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateConverter__WEBPACK_IMPORTED_MODULE_130__.EmptyTemplateConverter, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryConverter__WEBPACK_IMPORTED_MODULE_131__.AggregationQueryConverter, _ElementProcessors_MultiControls_ContextVar_ExprEvalConverter__WEBPACK_IMPORTED_MODULE_132__.ExprEvalConverter, _ElementProcessors_ValueViewers_Pluralize_PluralizeConverter__WEBPACK_IMPORTED_MODULE_133__.PluralizeConverter];
|
|
83390
83441
|
return new Map(converters.flatMap(converterClass => {
|
|
83391
83442
|
let classes = converterClass.getAcceptNodeClass();
|
|
83392
83443
|
classes = Array.isArray(classes) ? classes : [classes];
|
|
@@ -85914,7 +85965,11 @@ const bindingPathLink = {
|
|
|
85914
85965
|
url: "#/sections/Bases/BindingPath.md"
|
|
85915
85966
|
};
|
|
85916
85967
|
function docLink(link, text) {
|
|
85917
|
-
|
|
85968
|
+
// eslint-disable-next-line no-warning-comments
|
|
85969
|
+
// @todo выпилить или переосмыслить использование docLink
|
|
85970
|
+
// файлы, на которые даются ссылки, были удалены в коммите: 11338ba52e0859a402f64a25a7febb6a308a535b
|
|
85971
|
+
// return `[${text ?? link.defaultText}](${link.url})`;
|
|
85972
|
+
return text !== null && text !== void 0 ? text : link.defaultText;
|
|
85918
85973
|
}
|
|
85919
85974
|
|
|
85920
85975
|
/***/ }),
|
|
@@ -95801,7 +95856,7 @@ class AddRowButtonConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE
|
|
|
95801
95856
|
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
95802
95857
|
|
|
95803
95858
|
// eslint-disable-next-line no-warning-comments
|
|
95804
|
-
// TODO(2026-
|
|
95859
|
+
// TODO(2026-05-01): Необходимо разобраться с тем, что тут конфликтят свойства в type. Подробности в задаче https://yt.skbkontur.ru/issue/FS-9234
|
|
95805
95860
|
const fakeNode = new _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_7__.TypeNode();
|
|
95806
95861
|
fakeNode.base = "string";
|
|
95807
95862
|
fakeNode.children = [];
|
|
@@ -110160,6 +110215,117 @@ class LinetextConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__
|
|
|
110160
110215
|
|
|
110161
110216
|
/***/ }),
|
|
110162
110217
|
|
|
110218
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeConverter.ts":
|
|
110219
|
+
/*!*****************************************************************************************************************!*\
|
|
110220
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeConverter.ts ***!
|
|
110221
|
+
\*****************************************************************************************************************/
|
|
110222
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
110223
|
+
|
|
110224
|
+
"use strict";
|
|
110225
|
+
__webpack_require__.r(__webpack_exports__);
|
|
110226
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
110227
|
+
/* harmony export */ PluralizeConverter: () => (/* binding */ PluralizeConverter)
|
|
110228
|
+
/* harmony export */ });
|
|
110229
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
110230
|
+
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
110231
|
+
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
110232
|
+
/* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
|
|
110233
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
110234
|
+
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
110235
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
110236
|
+
/* harmony import */ var _PluralizeNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PluralizeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts");
|
|
110237
|
+
|
|
110238
|
+
|
|
110239
|
+
|
|
110240
|
+
|
|
110241
|
+
|
|
110242
|
+
|
|
110243
|
+
|
|
110244
|
+
|
|
110245
|
+
class PluralizeConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_0__.SugarNodeConverterBase {
|
|
110246
|
+
static getAcceptNodeClass() {
|
|
110247
|
+
return _PluralizeNode__WEBPACK_IMPORTED_MODULE_7__.PluralizeNode;
|
|
110248
|
+
}
|
|
110249
|
+
doBuildDataDeclaration() {
|
|
110250
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection;
|
|
110251
|
+
}
|
|
110252
|
+
buildChildrenDataDeclaration() {
|
|
110253
|
+
return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection;
|
|
110254
|
+
}
|
|
110255
|
+
*doTraverseChildren() {
|
|
110256
|
+
// no children
|
|
110257
|
+
}
|
|
110258
|
+
doConvert(_context) {
|
|
110259
|
+
var _node$expression;
|
|
110260
|
+
const node = this.getCurrentNodeAs(_PluralizeNode__WEBPACK_IMPORTED_MODULE_7__.PluralizeNode);
|
|
110261
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("Pluralize");
|
|
110262
|
+
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|
|
110263
|
+
const expressionWithDependencies = (0,_common_ConditionUtils__WEBPACK_IMPORTED_MODULE_3__.convertConditionToJsOrFailWithFriendlySugarError)((_node$expression = node.expression) !== null && _node$expression !== void 0 ? _node$expression : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)(), "path", "count", _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_5__.KCLangRuntimeUtils.kcLangUtilsName, node, "expression");
|
|
110264
|
+
markupBuilder.prop(x => x.expression).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(expressionWithDependencies.condition, expressionWithDependencies.dependencies));
|
|
110265
|
+
markupBuilder.prop(x => x.oneElementWordForm).set(node.oneElementWordForm);
|
|
110266
|
+
markupBuilder.prop(x => x.fourElementsWordForm).set(node.fourElementsWordForm);
|
|
110267
|
+
markupBuilder.prop(x => x.fiveElementsWordForm).set(node.fiveElementsWordForm);
|
|
110268
|
+
return markupBuilder.buildConverterResult();
|
|
110269
|
+
}
|
|
110270
|
+
}
|
|
110271
|
+
|
|
110272
|
+
/***/ }),
|
|
110273
|
+
|
|
110274
|
+
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts":
|
|
110275
|
+
/*!************************************************************************************************************!*\
|
|
110276
|
+
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts ***!
|
|
110277
|
+
\************************************************************************************************************/
|
|
110278
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
110279
|
+
|
|
110280
|
+
"use strict";
|
|
110281
|
+
__webpack_require__.r(__webpack_exports__);
|
|
110282
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
110283
|
+
/* harmony export */ PluralizeNode: () => (/* binding */ PluralizeNode)
|
|
110284
|
+
/* harmony export */ });
|
|
110285
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
|
|
110286
|
+
/* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
110287
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
|
|
110288
|
+
/* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
|
|
110289
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
|
|
110290
|
+
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
110291
|
+
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
110292
|
+
|
|
110293
|
+
|
|
110294
|
+
|
|
110295
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
110296
|
+
|
|
110297
|
+
let PluralizeNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("pluralize", `Возвращает нужную форму существительного в зависимости от числа`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("expression", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression.required, "Выражение для получения числа"), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("oneElementWordForm", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Форма для одного элемента. Например, 1 _яблоко_`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("fourElementsWordForm", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Форма для двух или четырех элементов. Например, 4 _яблока_`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("fiveElementsWordForm", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Форма для пяти элементов. Например, 5 _яблок_`), _dec(_class = (_class2 = class PluralizeNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
110298
|
+
constructor(...args) {
|
|
110299
|
+
super(...args);
|
|
110300
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor, this);
|
|
110301
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "oneElementWordForm", _descriptor2, this);
|
|
110302
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fourElementsWordForm", _descriptor3, this);
|
|
110303
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiveElementsWordForm", _descriptor4, this);
|
|
110304
|
+
}
|
|
110305
|
+
}, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "expression", [_dec2], {
|
|
110306
|
+
configurable: true,
|
|
110307
|
+
enumerable: true,
|
|
110308
|
+
writable: true,
|
|
110309
|
+
initializer: null
|
|
110310
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "oneElementWordForm", [_dec3], {
|
|
110311
|
+
configurable: true,
|
|
110312
|
+
enumerable: true,
|
|
110313
|
+
writable: true,
|
|
110314
|
+
initializer: null
|
|
110315
|
+
}), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "fourElementsWordForm", [_dec4], {
|
|
110316
|
+
configurable: true,
|
|
110317
|
+
enumerable: true,
|
|
110318
|
+
writable: true,
|
|
110319
|
+
initializer: null
|
|
110320
|
+
}), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "fiveElementsWordForm", [_dec5], {
|
|
110321
|
+
configurable: true,
|
|
110322
|
+
enumerable: true,
|
|
110323
|
+
writable: true,
|
|
110324
|
+
initializer: null
|
|
110325
|
+
}), _class2)) || _class);
|
|
110326
|
+
|
|
110327
|
+
/***/ }),
|
|
110328
|
+
|
|
110163
110329
|
/***/ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/TextConverter.ts":
|
|
110164
110330
|
/*!*******************************************************************************************************!*\
|
|
110165
110331
|
!*** ./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Text/TextConverter.ts ***!
|
|
@@ -113389,6 +113555,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
113389
113555
|
/* harmony import */ var _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateNode__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(/*! ../ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/EmptyTemplate/EmptyTemplateNode.ts");
|
|
113390
113556
|
/* harmony import */ var _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_134__ = __webpack_require__(/*! ../ElementProcessors/MultiControls/AggregationQuery/AggregationQueryNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/AggregationQuery/AggregationQueryNode.ts");
|
|
113391
113557
|
/* harmony import */ var _ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_135__ = __webpack_require__(/*! ../ElementProcessors/MultiControls/ContextVar/ExprEvalNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/ContextVar/ExprEvalNode.ts");
|
|
113558
|
+
/* harmony import */ var _ElementProcessors_ValueViewers_Pluralize_PluralizeNode__WEBPACK_IMPORTED_MODULE_136__ = __webpack_require__(/*! ../ElementProcessors/ValueViewers/Pluralize/PluralizeNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueViewers/Pluralize/PluralizeNode.ts");
|
|
113559
|
+
|
|
113392
113560
|
|
|
113393
113561
|
|
|
113394
113562
|
|
|
@@ -113653,6 +113821,7 @@ function registerDefaultSugarNodes(result) {
|
|
|
113653
113821
|
result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_134__.AggregationQuerySelectNode);
|
|
113654
113822
|
result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_134__.AggregationQueryContentNode);
|
|
113655
113823
|
result.registerNode(_ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_135__.ExprEvalNode);
|
|
113824
|
+
result.registerNode(_ElementProcessors_ValueViewers_Pluralize_PluralizeNode__WEBPACK_IMPORTED_MODULE_136__.PluralizeNode);
|
|
113656
113825
|
}
|
|
113657
113826
|
function createDefaultSugarSerializer() {
|
|
113658
113827
|
const result = new _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_109__.SugarSerializer({
|
|
@@ -161145,7 +161314,7 @@ module.exports = "";
|
|
|
161145
161314
|
\************************************************************************/
|
|
161146
161315
|
/***/ ((module) => {
|
|
161147
161316
|
|
|
161148
|
-
module.exports = "Корневой элемент для
|
|
161317
|
+
module.exports = "Корневой элемент для именованных и анонимных типов для валидаций (подробнее в разделе про [валидации](../../dev/Неразобрано/Старая%20дока/Валидации.md)).\n\nВалидации определяются атрибутом `base` и добавлением дополнительных ограничений в дочерние элементы типа. Например:\n\n```xml\n<type base=\"integer\" name=\"rate\" />\n```\n\nЗадаст тип `rate` (можно использовать в атрибуте `type` у контрола), с валидацией на целое число. Если необходимо\nзадать минимальное значение, пишем:\n\n```xml\n<type base=\"integer\" name=\"rate\">\n <mininclusive value=\"10\" />\n</type>\n```\n\nКоличество ограничений может быть любым:\n\n```xml\n<type base=\"integer\" name=\"rate\">\n <mininclusive value=\"10\" />\n <maxinclusive value=\"99\" />\n</type>\n```\n\nТакой тип задаст проверку на диапазон от 10 до 99.\n";
|
|
161149
161318
|
|
|
161150
161319
|
/***/ }),
|
|
161151
161320
|
|