@kontur.candy/generator 4.274.0 → 4.275.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 +189 -55
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114953,7 +114953,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114953
114953
|
/* harmony export */ "sumKCLangFunction": () => (/* binding */ sumKCLangFunction),
|
|
114954
114954
|
/* harmony export */ "substringKCLangFunction": () => (/* binding */ substringKCLangFunction),
|
|
114955
114955
|
/* harmony export */ "groupSumKCLangFunction": () => (/* binding */ groupSumKCLangFunction),
|
|
114956
|
-
/* harmony export */ "concatKCLangFunction": () => (/* binding */ concatKCLangFunction)
|
|
114956
|
+
/* harmony export */ "concatKCLangFunction": () => (/* binding */ concatKCLangFunction),
|
|
114957
|
+
/* harmony export */ "newlineKCLangFunction": () => (/* binding */ newlineKCLangFunction)
|
|
114957
114958
|
/* harmony export */ });
|
|
114958
114959
|
class ArgumentValidationError {
|
|
114959
114960
|
constructor(validationMessage) {
|
|
@@ -115236,6 +115237,17 @@ const concatKCLangFunction = params => {
|
|
|
115236
115237
|
expressions: params.map(x => x.value)
|
|
115237
115238
|
};
|
|
115238
115239
|
};
|
|
115240
|
+
const newlineKCLangFunction = params => {
|
|
115241
|
+
const errors = Array.from(validateParams(params, 0, 0));
|
|
115242
|
+
|
|
115243
|
+
if (errors.length > 0) {
|
|
115244
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115245
|
+
}
|
|
115246
|
+
|
|
115247
|
+
return {
|
|
115248
|
+
type: "newline"
|
|
115249
|
+
};
|
|
115250
|
+
};
|
|
115239
115251
|
|
|
115240
115252
|
/***/ }),
|
|
115241
115253
|
|
|
@@ -115274,7 +115286,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
115274
115286
|
substring: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.substringKCLangFunction],
|
|
115275
115287
|
count: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.countKCLangFunction],
|
|
115276
115288
|
groupSum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.groupSumKCLangFunction],
|
|
115277
|
-
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.concatKCLangFunction]
|
|
115289
|
+
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.concatKCLangFunction],
|
|
115290
|
+
newline: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.newlineKCLangFunction]
|
|
115278
115291
|
});
|
|
115279
115292
|
|
|
115280
115293
|
class ErrorListener {
|
|
@@ -121049,6 +121062,10 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
121049
121062
|
visitor.visitConcatKCLangNode(node);
|
|
121050
121063
|
break;
|
|
121051
121064
|
|
|
121065
|
+
case "newline":
|
|
121066
|
+
visitor.visitNewLineKCLangNode(node);
|
|
121067
|
+
break;
|
|
121068
|
+
|
|
121052
121069
|
default:
|
|
121053
121070
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
121054
121071
|
break;
|
|
@@ -121124,6 +121141,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
121124
121141
|
visitXAbsKCLangNode(node) {// default empty implementation
|
|
121125
121142
|
}
|
|
121126
121143
|
|
|
121144
|
+
visitNewLineKCLangNode(node) {// default empty implementation
|
|
121145
|
+
}
|
|
121146
|
+
|
|
121127
121147
|
}
|
|
121128
121148
|
|
|
121129
121149
|
/***/ }),
|
|
@@ -121482,6 +121502,9 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
121482
121502
|
case "concat":
|
|
121483
121503
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
121484
121504
|
|
|
121505
|
+
case "newline":
|
|
121506
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
121507
|
+
|
|
121485
121508
|
default:
|
|
121486
121509
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
121487
121510
|
}
|
|
@@ -121605,6 +121628,9 @@ function generateKCXmlExpression(expression) {
|
|
|
121605
121628
|
case "substring":
|
|
121606
121629
|
return [expression.length != undefined ? `<m:substring start="${expression.start}" length="${expression.length}">` : `<m:substring start="${expression.start}">`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:substring>`].join("\n");
|
|
121607
121630
|
|
|
121631
|
+
case "newline":
|
|
121632
|
+
return `<m:newline />`;
|
|
121633
|
+
|
|
121608
121634
|
case "regexMatch":
|
|
121609
121635
|
return [`<m:regexMatch pattern="${expression.pattern}">`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:regexMatch>`].join("\n");
|
|
121610
121636
|
|
|
@@ -127611,6 +127637,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
127611
127637
|
/* harmony export */ "FormulaMultySumExpression": () => (/* binding */ FormulaMultySumExpression),
|
|
127612
127638
|
/* harmony export */ "FormulaCountExpression": () => (/* binding */ FormulaCountExpression),
|
|
127613
127639
|
/* harmony export */ "FormulaConcatExpression": () => (/* binding */ FormulaConcatExpression),
|
|
127640
|
+
/* harmony export */ "FormulaNewLineExpression": () => (/* binding */ FormulaNewLineExpression),
|
|
127614
127641
|
/* harmony export */ "Formula": () => (/* binding */ Formula),
|
|
127615
127642
|
/* harmony export */ "Formulas": () => (/* binding */ Formulas),
|
|
127616
127643
|
/* harmony export */ "ConditionNode": () => (/* binding */ ConditionNode),
|
|
@@ -127631,7 +127658,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
127631
127658
|
|
|
127632
127659
|
|
|
127633
127660
|
|
|
127634
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class4, _dec4, _dec5, _class5, _class6, _descriptor2, _dec6, _dec7, _dec8, _dec9, _class8, _class9, _descriptor3, _descriptor4, _descriptor5, _dec10, _dec11, _class11, _class12, _descriptor6, _dec12, _dec13, _class14, _class15, _descriptor7, _dec14, _dec15, _class17, _class18, _descriptor8, _dec16, _dec17, _dec18, _class20, _class21, _descriptor9, _descriptor10, _dec19, _dec20, _class23, _class24, _descriptor11, _dec21, _dec22, _class26, _class27, _descriptor12, _dec23, _dec24, _class29, _class30, _descriptor13, _dec25, _dec26, _class32, _class33, _descriptor14, _dec27, _dec28, _class35, _class36, _descriptor15, _dec29, _dec30, _class38, _class39, _descriptor16, _dec31, _dec32, _class41, _class42, _descriptor17, _dec33, _dec34, _class44, _class45, _descriptor18, _dec35, _dec36, _class47, _class48, _descriptor19, _dec37, _dec38, _dec39, _dec40, _class50, _class51, _descriptor20, _descriptor21, _descriptor22, _dec41, _dec42, _class53, _class54, _descriptor23, _dec43, _dec44, _class56, _class57, _descriptor24, _dec45, _dec46, _dec47, _class59, _class60, _descriptor25, _descriptor26, _dec48, _dec49, _class62, _class63, _descriptor27, _dec50, _dec51, _class65, _class66, _descriptor28, _dec52, _dec53, _class68, _class69, _descriptor29, _dec54, _dec55, _dec56, _class71, _class72, _descriptor30, _descriptor31, _dec57, _dec58, _dec59, _dec60, _class74, _class75, _descriptor32, _descriptor33, _descriptor34, _dec61, _dec62, _dec63, _class77, _class78, _descriptor35, _descriptor36, _dec64, _class80, _dec65, _dec66, _dec67, _class81, _class82, _descriptor37, _descriptor38, _dec68, _dec69, _class84, _class85, _descriptor39, _dec70, _dec71, _class87, _class88, _descriptor40, _dec72, _dec73, _class90, _class91, _descriptor41, _dec74, _dec75, _class93, _class94, _descriptor42, _dec76, _dec77, _dec78, _dec79,
|
|
127661
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class4, _dec4, _dec5, _class5, _class6, _descriptor2, _dec6, _dec7, _dec8, _dec9, _class8, _class9, _descriptor3, _descriptor4, _descriptor5, _dec10, _dec11, _class11, _class12, _descriptor6, _dec12, _dec13, _class14, _class15, _descriptor7, _dec14, _dec15, _class17, _class18, _descriptor8, _dec16, _dec17, _dec18, _class20, _class21, _descriptor9, _descriptor10, _dec19, _dec20, _class23, _class24, _descriptor11, _dec21, _dec22, _class26, _class27, _descriptor12, _dec23, _dec24, _class29, _class30, _descriptor13, _dec25, _dec26, _class32, _class33, _descriptor14, _dec27, _dec28, _class35, _class36, _descriptor15, _dec29, _dec30, _class38, _class39, _descriptor16, _dec31, _dec32, _class41, _class42, _descriptor17, _dec33, _dec34, _class44, _class45, _descriptor18, _dec35, _dec36, _class47, _class48, _descriptor19, _dec37, _dec38, _dec39, _dec40, _class50, _class51, _descriptor20, _descriptor21, _descriptor22, _dec41, _dec42, _class53, _class54, _descriptor23, _dec43, _dec44, _class56, _class57, _descriptor24, _dec45, _dec46, _dec47, _class59, _class60, _descriptor25, _descriptor26, _dec48, _dec49, _class62, _class63, _descriptor27, _dec50, _dec51, _class65, _class66, _descriptor28, _dec52, _dec53, _class68, _class69, _descriptor29, _dec54, _dec55, _dec56, _class71, _class72, _descriptor30, _descriptor31, _dec57, _dec58, _dec59, _dec60, _class74, _class75, _descriptor32, _descriptor33, _descriptor34, _dec61, _dec62, _dec63, _class77, _class78, _descriptor35, _descriptor36, _dec64, _class80, _dec65, _dec66, _dec67, _class81, _class82, _descriptor37, _descriptor38, _dec68, _dec69, _class84, _class85, _descriptor39, _dec70, _dec71, _class87, _class88, _descriptor40, _dec72, _dec73, _class90, _class91, _descriptor41, _dec74, _dec75, _class93, _class94, _descriptor42, _dec76, _class96, _dec77, _dec78, _dec79, _dec80, _class97, _class98, _descriptor43, _descriptor44, _descriptor45, _dec81, _dec82, _class100, _class101, _descriptor46, _dec83, _dec84, _dec85, _dec86, _dec87, _dec88, _class103, _class104, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _dec89, _dec90, _class106, _class107, _descriptor52, _dec91, _dec92, _dec93, _class109, _class110, _descriptor53, _descriptor54;
|
|
127635
127662
|
|
|
127636
127663
|
|
|
127637
127664
|
|
|
@@ -128211,7 +128238,8 @@ let FormulaConcatExpression = (_dec74 = (0,_markupGenerator_Serializer_SugarSeri
|
|
|
128211
128238
|
writable: true,
|
|
128212
128239
|
initializer: null
|
|
128213
128240
|
})), _class94)) || _class93);
|
|
128214
|
-
let
|
|
128241
|
+
let FormulaNewLineExpression = (_dec76 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec76(_class96 = class FormulaNewLineExpression extends FormulaExpression {}) || _class96);
|
|
128242
|
+
let Formula = (_dec77 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec78 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec79 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec80 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec77(_class97 = (_class98 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128215
128243
|
constructor(...args) {
|
|
128216
128244
|
super(...args);
|
|
128217
128245
|
|
|
@@ -128222,36 +128250,36 @@ let Formula = (_dec76 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_
|
|
|
128222
128250
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor45, this);
|
|
128223
128251
|
}
|
|
128224
128252
|
|
|
128225
|
-
}, (_descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128253
|
+
}, (_descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "match", [_dec78], {
|
|
128226
128254
|
configurable: true,
|
|
128227
128255
|
enumerable: true,
|
|
128228
128256
|
writable: true,
|
|
128229
128257
|
initializer: null
|
|
128230
|
-
}), _descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128258
|
+
}), _descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "target", [_dec79], {
|
|
128231
128259
|
configurable: true,
|
|
128232
128260
|
enumerable: true,
|
|
128233
128261
|
writable: true,
|
|
128234
128262
|
initializer: null
|
|
128235
|
-
}), _descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128263
|
+
}), _descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "expression", [_dec80], {
|
|
128236
128264
|
configurable: true,
|
|
128237
128265
|
enumerable: true,
|
|
128238
128266
|
writable: true,
|
|
128239
128267
|
initializer: null
|
|
128240
|
-
})),
|
|
128241
|
-
let Formulas = (
|
|
128268
|
+
})), _class98)) || _class97);
|
|
128269
|
+
let Formulas = (_dec81 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec82 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec81(_class100 = (_class101 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128242
128270
|
constructor(...args) {
|
|
128243
128271
|
super(...args);
|
|
128244
128272
|
|
|
128245
128273
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor46, this);
|
|
128246
128274
|
}
|
|
128247
128275
|
|
|
128248
|
-
}, (_descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128276
|
+
}, (_descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class101.prototype, "items", [_dec82], {
|
|
128249
128277
|
configurable: true,
|
|
128250
128278
|
enumerable: true,
|
|
128251
128279
|
writable: true,
|
|
128252
128280
|
initializer: null
|
|
128253
|
-
})),
|
|
128254
|
-
let ConditionNode = (
|
|
128281
|
+
})), _class101)) || _class100);
|
|
128282
|
+
let ConditionNode = (_dec83 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec84 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec85 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec86 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec87 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType["enum"]("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec88 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec83(_class103 = (_class104 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128255
128283
|
constructor(...args) {
|
|
128256
128284
|
super(...args);
|
|
128257
128285
|
|
|
@@ -128266,46 +128294,46 @@ let ConditionNode = (_dec82 = (0,_markupGenerator_Serializer_SugarSerializer__WE
|
|
|
128266
128294
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor51, this);
|
|
128267
128295
|
}
|
|
128268
128296
|
|
|
128269
|
-
}, (_descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128297
|
+
}, (_descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "match", [_dec84], {
|
|
128270
128298
|
configurable: true,
|
|
128271
128299
|
enumerable: true,
|
|
128272
128300
|
writable: true,
|
|
128273
128301
|
initializer: null
|
|
128274
|
-
}), _descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128302
|
+
}), _descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "target", [_dec85], {
|
|
128275
128303
|
configurable: true,
|
|
128276
128304
|
enumerable: true,
|
|
128277
128305
|
writable: true,
|
|
128278
128306
|
initializer: null
|
|
128279
|
-
}), _descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128307
|
+
}), _descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "description", [_dec86], {
|
|
128280
128308
|
configurable: true,
|
|
128281
128309
|
enumerable: true,
|
|
128282
128310
|
writable: true,
|
|
128283
128311
|
initializer: null
|
|
128284
|
-
}), _descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128312
|
+
}), _descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "errorLevel", [_dec87], {
|
|
128285
128313
|
configurable: true,
|
|
128286
128314
|
enumerable: true,
|
|
128287
128315
|
writable: true,
|
|
128288
128316
|
initializer: null
|
|
128289
|
-
}), _descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128317
|
+
}), _descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "expression", [_dec88], {
|
|
128290
128318
|
configurable: true,
|
|
128291
128319
|
enumerable: true,
|
|
128292
128320
|
writable: true,
|
|
128293
128321
|
initializer: null
|
|
128294
|
-
})),
|
|
128295
|
-
let ConditionsNode = (
|
|
128322
|
+
})), _class104)) || _class103);
|
|
128323
|
+
let ConditionsNode = (_dec89 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec90 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec89(_class106 = (_class107 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128296
128324
|
constructor(...args) {
|
|
128297
128325
|
super(...args);
|
|
128298
128326
|
|
|
128299
128327
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor52, this);
|
|
128300
128328
|
}
|
|
128301
128329
|
|
|
128302
|
-
}, (_descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128330
|
+
}, (_descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class107.prototype, "items", [_dec90], {
|
|
128303
128331
|
configurable: true,
|
|
128304
128332
|
enumerable: true,
|
|
128305
128333
|
writable: true,
|
|
128306
128334
|
initializer: null
|
|
128307
|
-
})),
|
|
128308
|
-
let MathContainer = (
|
|
128335
|
+
})), _class107)) || _class106);
|
|
128336
|
+
let MathContainer = (_dec91 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec92 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec93 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec91(_class109 = (_class110 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
128309
128337
|
constructor(...args) {
|
|
128310
128338
|
super(...args);
|
|
128311
128339
|
|
|
@@ -128314,18 +128342,18 @@ let MathContainer = (_dec90 = (0,_markupGenerator_Serializer_SugarSerializer__WE
|
|
|
128314
128342
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor54, this);
|
|
128315
128343
|
}
|
|
128316
128344
|
|
|
128317
|
-
}, (_descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128345
|
+
}, (_descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "formulas", [_dec92], {
|
|
128318
128346
|
configurable: true,
|
|
128319
128347
|
enumerable: true,
|
|
128320
128348
|
writable: true,
|
|
128321
128349
|
initializer: null
|
|
128322
|
-
}), _descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
128350
|
+
}), _descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "conditions", [_dec93], {
|
|
128323
128351
|
configurable: true,
|
|
128324
128352
|
enumerable: true,
|
|
128325
128353
|
writable: true,
|
|
128326
128354
|
initializer: null
|
|
128327
|
-
})),
|
|
128328
|
-
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaDateNowExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression];
|
|
128355
|
+
})), _class110)) || _class109);
|
|
128356
|
+
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaDateNowExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaNewLineExpression];
|
|
128329
128357
|
|
|
128330
128358
|
/***/ }),
|
|
128331
128359
|
|
|
@@ -130590,6 +130618,10 @@ class KCXmlGeneratorBase {
|
|
|
130590
130618
|
return gcf(x => x.concat, `[${compiledExpressions}]`);
|
|
130591
130619
|
}
|
|
130592
130620
|
|
|
130621
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaNewLineExpression) {
|
|
130622
|
+
return gcf(x => x.const, `"\\r\\n"`);
|
|
130623
|
+
}
|
|
130624
|
+
|
|
130593
130625
|
throw new Error(`Unsupported node type: ${expression.constructor.name}`);
|
|
130594
130626
|
}
|
|
130595
130627
|
/* eslint-enable @typescript-eslint/unbound-method */
|
|
@@ -131511,7 +131543,10 @@ class FLangValidationBuildContext {
|
|
|
131511
131543
|
}, undefined);
|
|
131512
131544
|
|
|
131513
131545
|
if (enumerationRuleBody != undefined) {
|
|
131514
|
-
|
|
131546
|
+
var _ref, _typeNode$description;
|
|
131547
|
+
|
|
131548
|
+
const validationErrorMessage = (_ref = (_typeNode$description = typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _typeNode$description !== void 0 ? _typeNode$description : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _ref !== void 0 ? _ref : "Поле заполнено не по справочнику";
|
|
131549
|
+
yield [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(enumerationRuleBody), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${validationErrorMessage}"]`)];
|
|
131515
131550
|
}
|
|
131516
131551
|
|
|
131517
131552
|
const makeArrayLiteral = text => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${text}"]`);
|
|
@@ -131580,10 +131615,10 @@ class FLangValidationBuildContext {
|
|
|
131580
131615
|
const pattern = (_typeNodePattern$valu = typeNodePattern === null || typeNodePattern === void 0 ? void 0 : typeNodePattern.value) !== null && _typeNodePattern$valu !== void 0 ? _typeNodePattern$valu : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : (_schemaTypeNode$patte = schemaTypeNode.patterns) === null || _schemaTypeNode$patte === void 0 ? void 0 : _schemaTypeNode$patte[0];
|
|
131581
131616
|
|
|
131582
131617
|
if (pattern != undefined) {
|
|
131583
|
-
var
|
|
131618
|
+
var _ref2, _typeNode$description2;
|
|
131584
131619
|
|
|
131585
131620
|
const totalDigitsRuleBody = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.CallExpression("regexMatch", [valueReference, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(pattern)]));
|
|
131586
|
-
const validationErrorMessage = (
|
|
131621
|
+
const validationErrorMessage = (_ref2 = (_typeNode$description2 = typeNode === null || typeNode === void 0 ? void 0 : typeNode.description) !== null && _typeNode$description2 !== void 0 ? _typeNode$description2 : schemaTypeNode === null || schemaTypeNode === void 0 ? void 0 : schemaTypeNode.description) !== null && _ref2 !== void 0 ? _ref2 : "Поле заполнено неверно";
|
|
131587
131622
|
yield [totalDigitsRuleBody, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.StringLiteralExpression(`["${validationErrorMessage}"]`)];
|
|
131588
131623
|
}
|
|
131589
131624
|
|
|
@@ -132506,6 +132541,15 @@ class NormalizationRulesGenerator {
|
|
|
132506
132541
|
return this.compileConcatExpression(expression, prefix, target, addPrecalculationRule);
|
|
132507
132542
|
}
|
|
132508
132543
|
|
|
132544
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaSubstringExpression) {
|
|
132545
|
+
const arg = this.compileExpressionToFlashExpression(expression.expression, prefix, target, addPrecalculationRule);
|
|
132546
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CallExpression("substring", [arg, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(expression.start), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(expression.length)]);
|
|
132547
|
+
}
|
|
132548
|
+
|
|
132549
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaNewLineExpression) {
|
|
132550
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("\r\n");
|
|
132551
|
+
}
|
|
132552
|
+
|
|
132509
132553
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}`);
|
|
132510
132554
|
}
|
|
132511
132555
|
|
|
@@ -154588,7 +154632,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
154588
154632
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
154589
154633
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
154590
154634
|
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
154591
|
-
/* harmony import */ var
|
|
154635
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
154636
|
+
/* harmony import */ var _RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RadioGroupNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/RadioGroup/RadioGroupNode.ts");
|
|
154637
|
+
|
|
154592
154638
|
|
|
154593
154639
|
|
|
154594
154640
|
|
|
@@ -154597,38 +154643,52 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
154597
154643
|
|
|
154598
154644
|
class RadioGroupConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
154599
154645
|
static getAcceptNodeClass() {
|
|
154600
|
-
return
|
|
154646
|
+
return _RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode;
|
|
154601
154647
|
}
|
|
154602
154648
|
|
|
154603
154649
|
doBuildNodeValidations(validationGenerator) {
|
|
154604
|
-
const node = this.getCurrentNodeAs(
|
|
154650
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154605
154651
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
154606
154652
|
}
|
|
154607
154653
|
|
|
154654
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
154655
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154656
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
154657
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
154658
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
154659
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
154660
|
+
|
|
154661
|
+
if (typeNode == undefined && schemaTypeNode == undefined) {
|
|
154662
|
+
return [];
|
|
154663
|
+
}
|
|
154664
|
+
|
|
154665
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
154666
|
+
}
|
|
154667
|
+
|
|
154608
154668
|
doBuildNormalizeRules(builder) {
|
|
154609
|
-
const node = this.getCurrentNodeAs(
|
|
154669
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154610
154670
|
return [builder.valueInitializer(node, node.dataBinding, false), ...builder.specialFieldsInitializer(node, {})];
|
|
154611
154671
|
}
|
|
154612
154672
|
|
|
154613
154673
|
doBuildDataDeclaration(context) {
|
|
154614
|
-
const node = this.getCurrentNodeAs(
|
|
154674
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154615
154675
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false)]]), context.addSpecialFieldsEntry(node, {
|
|
154616
154676
|
optional: node.dataBinding.optional
|
|
154617
154677
|
}), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
|
|
154618
154678
|
}
|
|
154619
154679
|
|
|
154620
154680
|
buildChildrenDataDeclaration(context) {
|
|
154621
|
-
const node = this.getCurrentNodeAs(
|
|
154681
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154622
154682
|
return context.processChildrenDataDeclaration(node.items);
|
|
154623
154683
|
}
|
|
154624
154684
|
|
|
154625
154685
|
*doTraverseChildren() {
|
|
154626
|
-
const node = this.getCurrentNodeAs(
|
|
154686
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154627
154687
|
yield* node.items;
|
|
154628
154688
|
}
|
|
154629
154689
|
|
|
154630
154690
|
doConvert(context) {
|
|
154631
|
-
const node = this.getCurrentNodeAs(
|
|
154691
|
+
const node = this.getCurrentNodeAs(_RadioGroupNode__WEBPACK_IMPORTED_MODULE_6__.RadioGroupNode);
|
|
154632
154692
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
154633
154693
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("RadioGroup");
|
|
154634
154694
|
|
|
@@ -155405,14 +155465,14 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155405
155465
|
}
|
|
155406
155466
|
|
|
155407
155467
|
doConvert(context) {
|
|
155408
|
-
var _node$columnNames$cod, _node$columnNames, _node$columnNames$nam, _node$columnNames2, _node$columnNames$law, _node$columnNames3, _node$width;
|
|
155468
|
+
var _node$gId, _node$columnNames$cod, _node$columnNames, _node$columnNames$nam, _node$columnNames2, _node$columnNames$law, _node$columnNames3, _node$width;
|
|
155409
155469
|
|
|
155410
155470
|
const node = this.getCurrentNodeAs(_TaxRebateNode__WEBPACK_IMPORTED_MODULE_7__.TaxRebateNode);
|
|
155411
155471
|
this.ensurePathExists(node, node.dataBinding.path);
|
|
155412
155472
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("TaxRebate");
|
|
155413
155473
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_5__.getNewBindingPathExpression)(node));
|
|
155414
155474
|
markupBuilder.prop(x => x.placeholder).set(node.placeholder);
|
|
155415
|
-
markupBuilder.prop(x => x.gId).set(node.gId);
|
|
155475
|
+
markupBuilder.prop(x => x.gId).set((_node$gId = node.gId) !== null && _node$gId !== void 0 ? _node$gId : "");
|
|
155416
155476
|
markupBuilder.prop(x => x.codesWithLawReference).set(node.codesWithLawReference);
|
|
155417
155477
|
markupBuilder.prop(x => x.columnNamesMap).set({
|
|
155418
155478
|
code: (_node$columnNames$cod = (_node$columnNames = node.columnNames) === null || _node$columnNames === void 0 ? void 0 : _node$columnNames.code) !== null && _node$columnNames$cod !== void 0 ? _node$columnNames$cod : "code",
|
|
@@ -155420,6 +155480,38 @@ class TaxRebateConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155420
155480
|
lawReferenceRequired: (_node$columnNames$law = (_node$columnNames3 = node.columnNames) === null || _node$columnNames3 === void 0 ? void 0 : _node$columnNames3.lawReferenceRequired) !== null && _node$columnNames$law !== void 0 ? _node$columnNames$law : "lawReferenceRequired"
|
|
155421
155481
|
});
|
|
155422
155482
|
|
|
155483
|
+
if (node.lawPattern != undefined) {
|
|
155484
|
+
var _node$lawPattern$law, _node$lawPattern$law2, _node$lawPattern$law3, _node$lawPattern$law4, _node$lawPattern$law5, _node$lawPattern$law6, _node$lawPattern$code;
|
|
155485
|
+
|
|
155486
|
+
markupBuilder.prop(x => x.lawPattern).set({
|
|
155487
|
+
law1Length: (_node$lawPattern$law = node.lawPattern.law1Length) !== null && _node$lawPattern$law !== void 0 ? _node$lawPattern$law : 0,
|
|
155488
|
+
law2Length: (_node$lawPattern$law2 = node.lawPattern.law2Length) !== null && _node$lawPattern$law2 !== void 0 ? _node$lawPattern$law2 : 0,
|
|
155489
|
+
law3Length: (_node$lawPattern$law3 = node.lawPattern.law3Length) !== null && _node$lawPattern$law3 !== void 0 ? _node$lawPattern$law3 : 0,
|
|
155490
|
+
law1Name: node.lawPattern.law1Name,
|
|
155491
|
+
law2Name: node.lawPattern.law2Name,
|
|
155492
|
+
law3Name: node.lawPattern.law3Name,
|
|
155493
|
+
lawNote: node.lawPattern.lawNote,
|
|
155494
|
+
law1Delimiter: (_node$lawPattern$law4 = node.lawPattern.law1Delimiter) !== null && _node$lawPattern$law4 !== void 0 ? _node$lawPattern$law4 : "/",
|
|
155495
|
+
law2Delimiter: (_node$lawPattern$law5 = node.lawPattern.law2Delimiter) !== null && _node$lawPattern$law5 !== void 0 ? _node$lawPattern$law5 : "",
|
|
155496
|
+
law3Delimiter: (_node$lawPattern$law6 = node.lawPattern.law3Delimiter) !== null && _node$lawPattern$law6 !== void 0 ? _node$lawPattern$law6 : "",
|
|
155497
|
+
codeLength: node.gId ? 0 : (_node$lawPattern$code = node.lawPattern.codeLength) !== null && _node$lawPattern$code !== void 0 ? _node$lawPattern$code : 7
|
|
155498
|
+
});
|
|
155499
|
+
} else {
|
|
155500
|
+
markupBuilder.prop(x => x.lawPattern).set({
|
|
155501
|
+
law1Length: 4,
|
|
155502
|
+
law2Length: 4,
|
|
155503
|
+
law3Length: 4,
|
|
155504
|
+
law1Name: "Статья",
|
|
155505
|
+
law2Name: "Пункт",
|
|
155506
|
+
law3Name: "Подпункт",
|
|
155507
|
+
lawNote: "Закон субъекта РФ, который устанавливает льготу",
|
|
155508
|
+
law1Delimiter: "/",
|
|
155509
|
+
law2Delimiter: "",
|
|
155510
|
+
law3Delimiter: "",
|
|
155511
|
+
codeLength: 0
|
|
155512
|
+
});
|
|
155513
|
+
}
|
|
155514
|
+
|
|
155423
155515
|
if (node.disabled != undefined) {
|
|
155424
155516
|
markupBuilder.prop(x => x.disabled).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled));
|
|
155425
155517
|
|
|
@@ -155464,15 +155556,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
155464
155556
|
|
|
155465
155557
|
|
|
155466
155558
|
|
|
155467
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
155559
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
155560
|
+
|
|
155561
|
+
|
|
155468
155562
|
|
|
155469
155563
|
|
|
155470
155564
|
|
|
155471
155565
|
|
|
155472
155566
|
|
|
155567
|
+
let TaxRebateNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.sugarNode)("taxrebate", `Редактор для кода налоговой льготы. Для случаем льготы без указания статьи ведёт себя как комбобокс, а при необходимости показывает редактор ссылки.`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/TaxRebate sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("placeholder", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.localizedString, ""), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("gId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.string, `Глобальный идентификатор справочника. Если указан, lawPattern (для 1-3 элементов) будет применен для элементов из codesWithLawReference.
|
|
155568
|
+
Если не указан - контрол будет как input (code+law1..3) с разделителями.`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("columnNamesMap", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.objectLiteral(), `Поле дает возможность указать колонки для пиклиста соотв. полям налоговой льготы (code, name, lawReferenceRequired).`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("codesWithLawReference", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.delimitedStringArray, `Коды налоговых льгот, для которых требуется указачение ссылки на Налоговый Кодекс.`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("lawPattern", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.objectLiteral(), `Поле дает возможность указать описание закона (lawNote), разделитель, длину и имя каждого доп. элемента (lawXLength, lawXName, lawXDelimiter)
|
|
155569
|
+
и длину основного кода (codeLength), если не указан gId
|
|
155473
155570
|
|
|
155571
|
+
все элементы не обязательны, дефолтные
|
|
155474
155572
|
|
|
155475
|
-
|
|
155573
|
+
lawPattern={{
|
|
155574
|
+
law1Length: 4,
|
|
155575
|
+
law2Length: 4,
|
|
155576
|
+
law3Length: 4,
|
|
155577
|
+
law1Name: "Статья",
|
|
155578
|
+
law2Name: "Пункт",
|
|
155579
|
+
law3Name: "Подпункт",
|
|
155580
|
+
lawNote: "Закон субъекта РФ, который устанавливает льготу",
|
|
155581
|
+
law1Delimiter: "/",
|
|
155582
|
+
law2Delimiter: "",
|
|
155583
|
+
law3Delimiter: "",
|
|
155584
|
+
codeLength: 0,
|
|
155585
|
+
}}
|
|
155586
|
+
`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("disabled", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_7__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attr)("width", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_6__.attrType.lengthUnit, "Ширина поля"), _dec(_class = (_class2 = class TaxRebateNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_5__.SugarNodeWithLegacyVisibility {
|
|
155476
155587
|
constructor(...args) {
|
|
155477
155588
|
super(...args);
|
|
155478
155589
|
|
|
@@ -155490,9 +155601,11 @@ let TaxRebateNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
155490
155601
|
|
|
155491
155602
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "codesWithLawReference", _descriptor7, this);
|
|
155492
155603
|
|
|
155493
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
155604
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "lawPattern", _descriptor8, this);
|
|
155494
155605
|
|
|
155495
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
155606
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "disabled", _descriptor9, this);
|
|
155607
|
+
|
|
155608
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "width", _descriptor10, this);
|
|
155496
155609
|
}
|
|
155497
155610
|
|
|
155498
155611
|
getOwnPath() {
|
|
@@ -155534,12 +155647,17 @@ let TaxRebateNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MOD
|
|
|
155534
155647
|
enumerable: true,
|
|
155535
155648
|
writable: true,
|
|
155536
155649
|
initializer: null
|
|
155537
|
-
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
155650
|
+
}), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "lawPattern", [_dec9], {
|
|
155538
155651
|
configurable: true,
|
|
155539
155652
|
enumerable: true,
|
|
155540
155653
|
writable: true,
|
|
155541
155654
|
initializer: null
|
|
155542
|
-
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
155655
|
+
}), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "disabled", [_dec10], {
|
|
155656
|
+
configurable: true,
|
|
155657
|
+
enumerable: true,
|
|
155658
|
+
writable: true,
|
|
155659
|
+
initializer: null
|
|
155660
|
+
}), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "width", [_dec11], {
|
|
155543
155661
|
configurable: true,
|
|
155544
155662
|
enumerable: true,
|
|
155545
155663
|
writable: true,
|
|
@@ -155851,8 +155969,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
155851
155969
|
/* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
|
|
155852
155970
|
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
155853
155971
|
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
155854
|
-
/* harmony import */ var
|
|
155855
|
-
/* harmony import */ var
|
|
155972
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
155973
|
+
/* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
|
|
155974
|
+
/* harmony import */ var _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PopupTextAreaNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/popupTextArea/PopupTextAreaNode.ts");
|
|
155975
|
+
|
|
155856
155976
|
|
|
155857
155977
|
|
|
155858
155978
|
|
|
@@ -155862,16 +155982,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
155862
155982
|
|
|
155863
155983
|
class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
|
|
155864
155984
|
static getAcceptNodeClass() {
|
|
155865
|
-
return
|
|
155985
|
+
return _PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode;
|
|
155866
155986
|
}
|
|
155867
155987
|
|
|
155868
155988
|
doBuildNodeValidations(validationGenerator) {
|
|
155869
|
-
const node = this.getCurrentNodeAs(
|
|
155989
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155870
155990
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
155871
155991
|
}
|
|
155872
155992
|
|
|
155993
|
+
doBuildFLangValidations(buildContext, formSchemaRng) {
|
|
155994
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155995
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
155996
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
|
|
155997
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
155998
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
155999
|
+
|
|
156000
|
+
if (typeNode == undefined && schemaTypeNode == undefined) {
|
|
156001
|
+
return [];
|
|
156002
|
+
}
|
|
156003
|
+
|
|
156004
|
+
return buildContext.buildBasicValidations(targetPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
156005
|
+
}
|
|
156006
|
+
|
|
155873
156007
|
doBuildDataDeclaration(context) {
|
|
155874
|
-
const node = this.getCurrentNodeAs(
|
|
156008
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155875
156009
|
return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, node.disabled)]]), context.addSpecialFieldsEntry(node, {
|
|
155876
156010
|
optional: node.dataBinding.optional,
|
|
155877
156011
|
disabled: node.disabled
|
|
@@ -155879,22 +156013,22 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
155879
156013
|
}
|
|
155880
156014
|
|
|
155881
156015
|
buildChildrenDataDeclaration(context) {
|
|
155882
|
-
const node = this.getCurrentNodeAs(
|
|
156016
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155883
156017
|
return context.processChildrenDataDeclaration(node.helpNodes);
|
|
155884
156018
|
}
|
|
155885
156019
|
|
|
155886
156020
|
*doTraverseChildren() {
|
|
155887
|
-
const node = this.getCurrentNodeAs(
|
|
156021
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155888
156022
|
yield* node.helpNodes;
|
|
155889
156023
|
}
|
|
155890
156024
|
|
|
155891
156025
|
get nodePaths() {
|
|
155892
|
-
const node = this.getCurrentNodeAs(
|
|
156026
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155893
156027
|
return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
|
|
155894
156028
|
}
|
|
155895
156029
|
|
|
155896
156030
|
doConvert(context) {
|
|
155897
|
-
const node = this.getCurrentNodeAs(
|
|
156031
|
+
const node = this.getCurrentNodeAs(_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_7__.PopupTextAreaNode);
|
|
155898
156032
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("PopupTextArea");
|
|
155899
156033
|
markupBuilder.prop(x => x.width).set(node.width || "100%");
|
|
155900
156034
|
markupBuilder.prop(x => x.popupWidth).set(node.popupWidth || "100%");
|
|
@@ -155913,7 +156047,7 @@ class PopupTextAreaConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
155913
156047
|
}
|
|
155914
156048
|
|
|
155915
156049
|
if (node.disabled2 != undefined) {
|
|
155916
|
-
markupBuilder.prop(x => x.disabled2).set((0,
|
|
156050
|
+
markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
|
|
155917
156051
|
|
|
155918
156052
|
if (this.getLegacyNode().getParent() != undefined) {
|
|
155919
156053
|
markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
|