@kontur.candy/generator 5.74.0-forminform.1 → 5.74.0-forminform.2
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 +348 -205
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48488,7 +48488,7 @@ function isJsCondition(condition) {
|
|
|
48488
48488
|
return condition != undefined && jsConditionRegexp.test(condition);
|
|
48489
48489
|
}
|
|
48490
48490
|
function convertConditionToJsWithDependencies(condition, pathFunctionName, countFunctionName, kcLangRuntimeObjectName) {
|
|
48491
|
-
if (condition != undefined && !jsConditionRegexp.test(condition)) {
|
|
48491
|
+
if (condition != undefined && (!jsConditionRegexp.test(condition) || /\s(or|and)\s/.test(condition))) {
|
|
48492
48492
|
return {
|
|
48493
48493
|
condition: _KCLang_KCLangToJsTranspiler__WEBPACK_IMPORTED_MODULE_2__.KCLangToJsTranspiler.transpileExpressionFromString(condition, {
|
|
48494
48494
|
pathSelectionFunctionName: pathFunctionName,
|
|
@@ -48787,6 +48787,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48787
48787
|
/* harmony export */ groupSumKCLangFunction: () => (/* binding */ groupSumKCLangFunction),
|
|
48788
48788
|
/* harmony export */ hasAutoFlagKCLangFunction: () => (/* binding */ hasAutoFlagKCLangFunction),
|
|
48789
48789
|
/* harmony export */ hashSetKCLangFunction: () => (/* binding */ hashSetKCLangFunction),
|
|
48790
|
+
/* harmony export */ instanceCountKCLangFunction: () => (/* binding */ instanceCountKCLangFunction),
|
|
48790
48791
|
/* harmony export */ isDateInMonthKCLangFunction: () => (/* binding */ isDateInMonthKCLangFunction),
|
|
48791
48792
|
/* harmony export */ isInnKCLangFunction: () => (/* binding */ isInnKCLangFunction),
|
|
48792
48793
|
/* harmony export */ isRegNumSfrKCLangFunction: () => (/* binding */ isRegNumSfrKCLangFunction),
|
|
@@ -48802,6 +48803,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48802
48803
|
/* harmony export */ roundKCLangFunction: () => (/* binding */ roundKCLangFunction),
|
|
48803
48804
|
/* harmony export */ substringKCLangFunction: () => (/* binding */ substringKCLangFunction),
|
|
48804
48805
|
/* harmony export */ sumKCLangFunction: () => (/* binding */ sumKCLangFunction),
|
|
48806
|
+
/* harmony export */ sumOfDayWeightsKCLangFunction: () => (/* binding */ sumOfDayWeightsKCLangFunction),
|
|
48805
48807
|
/* harmony export */ xabsKCLangFunction: () => (/* binding */ xabsKCLangFunction)
|
|
48806
48808
|
/* harmony export */ });
|
|
48807
48809
|
class ArgumentValidationError {
|
|
@@ -49143,13 +49145,32 @@ const countKCLangFunction = params => {
|
|
|
49143
49145
|
}
|
|
49144
49146
|
throw new Error("Invalid parameters!");
|
|
49145
49147
|
};
|
|
49146
|
-
const
|
|
49148
|
+
const instanceCountKCLangFunction = params => {
|
|
49147
49149
|
var _params$24;
|
|
49148
49150
|
const errors = Array.from(validateParams(params, 1));
|
|
49149
49151
|
if (errors.length > 0) {
|
|
49150
49152
|
return new FunctionValidationErrorCollection(errors);
|
|
49151
49153
|
}
|
|
49152
|
-
const
|
|
49154
|
+
const expr = (_params$24 = params[0]) === null || _params$24 === void 0 ? void 0 : _params$24.value;
|
|
49155
|
+
if ((expr === null || expr === void 0 ? void 0 : expr.type) === "argument") {
|
|
49156
|
+
const param = expr.select;
|
|
49157
|
+
if (param == undefined) {
|
|
49158
|
+
throw new Error("Unexpected error!");
|
|
49159
|
+
}
|
|
49160
|
+
return {
|
|
49161
|
+
type: "instanceCount",
|
|
49162
|
+
select: param
|
|
49163
|
+
};
|
|
49164
|
+
}
|
|
49165
|
+
throw new Error("Invalid parameters!");
|
|
49166
|
+
};
|
|
49167
|
+
const sumKCLangFunction = params => {
|
|
49168
|
+
var _params$25;
|
|
49169
|
+
const errors = Array.from(validateParams(params, 1));
|
|
49170
|
+
if (errors.length > 0) {
|
|
49171
|
+
return new FunctionValidationErrorCollection(errors);
|
|
49172
|
+
}
|
|
49173
|
+
const argumentExpr = (_params$25 = params[0]) === null || _params$25 === void 0 ? void 0 : _params$25.value;
|
|
49153
49174
|
if ((argumentExpr === null || argumentExpr === void 0 ? void 0 : argumentExpr.type) === "argument") {
|
|
49154
49175
|
const param = argumentExpr.select;
|
|
49155
49176
|
if (param == undefined) {
|
|
@@ -49173,14 +49194,14 @@ const sumKCLangFunction = params => {
|
|
|
49173
49194
|
throw new Error("Invalid parameters!");
|
|
49174
49195
|
};
|
|
49175
49196
|
const substringKCLangFunction = params => {
|
|
49176
|
-
var _params$
|
|
49197
|
+
var _params$26, _params$27, _params$28;
|
|
49177
49198
|
const errors = Array.from(validateParams(params, 2, 1));
|
|
49178
49199
|
if (errors.length > 0) {
|
|
49179
49200
|
return new FunctionValidationErrorCollection(errors);
|
|
49180
49201
|
}
|
|
49181
|
-
const exprParam = (_params$
|
|
49182
|
-
const startParam = (_params$
|
|
49183
|
-
const lengthParam = (_params$
|
|
49202
|
+
const exprParam = (_params$26 = params[0]) === null || _params$26 === void 0 ? void 0 : _params$26.value;
|
|
49203
|
+
const startParam = (_params$27 = params[1]) === null || _params$27 === void 0 ? void 0 : _params$27.value;
|
|
49204
|
+
const lengthParam = (_params$28 = params[2]) === null || _params$28 === void 0 ? void 0 : _params$28.value;
|
|
49184
49205
|
if (exprParam == undefined) {
|
|
49185
49206
|
throw new Error("Unexpected error!");
|
|
49186
49207
|
}
|
|
@@ -49198,14 +49219,14 @@ const substringKCLangFunction = params => {
|
|
|
49198
49219
|
};
|
|
49199
49220
|
};
|
|
49200
49221
|
const groupSumKCLangFunction = params => {
|
|
49201
|
-
var _params$
|
|
49222
|
+
var _params$29, _params$30, _params$31;
|
|
49202
49223
|
const errors = Array.from(validateParams(params, 3));
|
|
49203
49224
|
if (errors.length > 0) {
|
|
49204
49225
|
return new FunctionValidationErrorCollection(errors);
|
|
49205
49226
|
}
|
|
49206
|
-
const targetKeysParam = (_params$
|
|
49207
|
-
const sourceKeyPathParam = (_params$
|
|
49208
|
-
const sourceValuePathParam = (_params$
|
|
49227
|
+
const targetKeysParam = (_params$29 = params[0]) === null || _params$29 === void 0 ? void 0 : _params$29.value;
|
|
49228
|
+
const sourceKeyPathParam = (_params$30 = params[1]) === null || _params$30 === void 0 ? void 0 : _params$30.value;
|
|
49229
|
+
const sourceValuePathParam = (_params$31 = params[2]) === null || _params$31 === void 0 ? void 0 : _params$31.value;
|
|
49209
49230
|
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || (sourceValuePathParam === null || sourceValuePathParam === void 0 ? void 0 : sourceValuePathParam.type) !== "argument") {
|
|
49210
49231
|
const argumentsValidationError = new ArgumentValidationError("Expected 3 paths as arguments: targetKeys, sourceKeyPath, sourceValuePath");
|
|
49211
49232
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -49222,13 +49243,13 @@ const groupSumKCLangFunction = params => {
|
|
|
49222
49243
|
};
|
|
49223
49244
|
};
|
|
49224
49245
|
const groupCountKCLangFunction = params => {
|
|
49225
|
-
var _params$
|
|
49246
|
+
var _params$32, _params$33;
|
|
49226
49247
|
const errors = Array.from(validateParams(params, 2));
|
|
49227
49248
|
if (errors.length > 0) {
|
|
49228
49249
|
return new FunctionValidationErrorCollection(errors);
|
|
49229
49250
|
}
|
|
49230
|
-
const targetKeysParam = (_params$
|
|
49231
|
-
const sourceKeyPathParam = (_params$
|
|
49251
|
+
const targetKeysParam = (_params$32 = params[0]) === null || _params$32 === void 0 ? void 0 : _params$32.value;
|
|
49252
|
+
const sourceKeyPathParam = (_params$33 = params[1]) === null || _params$33 === void 0 ? void 0 : _params$33.value;
|
|
49232
49253
|
if (targetKeysParam == undefined || (sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument") {
|
|
49233
49254
|
const argumentsValidationError = new ArgumentValidationError("Expected 2 paths as arguments: targetKeyPath, sourceKeyPath");
|
|
49234
49255
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -49272,12 +49293,12 @@ const dateNowKCLangFunction = params => {
|
|
|
49272
49293
|
};
|
|
49273
49294
|
};
|
|
49274
49295
|
const getDaysInMonthKCLangFunction = params => {
|
|
49275
|
-
var _params$
|
|
49296
|
+
var _params$34;
|
|
49276
49297
|
const errors = Array.from(validateParams(params, 1));
|
|
49277
49298
|
if (errors.length > 0) {
|
|
49278
49299
|
return new FunctionValidationErrorCollection(errors);
|
|
49279
49300
|
}
|
|
49280
|
-
const param = (_params$
|
|
49301
|
+
const param = (_params$34 = params[0]) === null || _params$34 === void 0 ? void 0 : _params$34.value;
|
|
49281
49302
|
if (param == undefined) {
|
|
49282
49303
|
throw new Error("Unexpected error!");
|
|
49283
49304
|
}
|
|
@@ -49287,12 +49308,12 @@ const getDaysInMonthKCLangFunction = params => {
|
|
|
49287
49308
|
};
|
|
49288
49309
|
};
|
|
49289
49310
|
const getDayKCLangFunction = params => {
|
|
49290
|
-
var _params$
|
|
49311
|
+
var _params$35;
|
|
49291
49312
|
const errors = Array.from(validateParams(params, 1));
|
|
49292
49313
|
if (errors.length > 0) {
|
|
49293
49314
|
return new FunctionValidationErrorCollection(errors);
|
|
49294
49315
|
}
|
|
49295
|
-
const param = (_params$
|
|
49316
|
+
const param = (_params$35 = params[0]) === null || _params$35 === void 0 ? void 0 : _params$35.value;
|
|
49296
49317
|
if (param == undefined) {
|
|
49297
49318
|
throw new Error("Unexpected error!");
|
|
49298
49319
|
}
|
|
@@ -49302,12 +49323,12 @@ const getDayKCLangFunction = params => {
|
|
|
49302
49323
|
};
|
|
49303
49324
|
};
|
|
49304
49325
|
const getMonthKCLangFunction = params => {
|
|
49305
|
-
var _params$
|
|
49326
|
+
var _params$36;
|
|
49306
49327
|
const errors = Array.from(validateParams(params, 1));
|
|
49307
49328
|
if (errors.length > 0) {
|
|
49308
49329
|
return new FunctionValidationErrorCollection(errors);
|
|
49309
49330
|
}
|
|
49310
|
-
const param = (_params$
|
|
49331
|
+
const param = (_params$36 = params[0]) === null || _params$36 === void 0 ? void 0 : _params$36.value;
|
|
49311
49332
|
if (param == undefined) {
|
|
49312
49333
|
throw new Error("Unexpected error!");
|
|
49313
49334
|
}
|
|
@@ -49317,12 +49338,12 @@ const getMonthKCLangFunction = params => {
|
|
|
49317
49338
|
};
|
|
49318
49339
|
};
|
|
49319
49340
|
const getYearKCLangFunction = params => {
|
|
49320
|
-
var _params$
|
|
49341
|
+
var _params$37;
|
|
49321
49342
|
const errors = Array.from(validateParams(params, 1));
|
|
49322
49343
|
if (errors.length > 0) {
|
|
49323
49344
|
return new FunctionValidationErrorCollection(errors);
|
|
49324
49345
|
}
|
|
49325
|
-
const param = (_params$
|
|
49346
|
+
const param = (_params$37 = params[0]) === null || _params$37 === void 0 ? void 0 : _params$37.value;
|
|
49326
49347
|
if (param == undefined) {
|
|
49327
49348
|
throw new Error("Unexpected error!");
|
|
49328
49349
|
}
|
|
@@ -49332,12 +49353,12 @@ const getYearKCLangFunction = params => {
|
|
|
49332
49353
|
};
|
|
49333
49354
|
};
|
|
49334
49355
|
const isDateInMonthKCLangFunction = params => {
|
|
49335
|
-
var _params$
|
|
49356
|
+
var _params$38;
|
|
49336
49357
|
const errors = Array.from(validateParams(params, 1));
|
|
49337
49358
|
if (errors.length > 0) {
|
|
49338
49359
|
return new FunctionValidationErrorCollection(errors);
|
|
49339
49360
|
}
|
|
49340
|
-
const param = (_params$
|
|
49361
|
+
const param = (_params$38 = params[0]) === null || _params$38 === void 0 ? void 0 : _params$38.value;
|
|
49341
49362
|
if (param == undefined) {
|
|
49342
49363
|
throw new Error("Unexpected error!");
|
|
49343
49364
|
}
|
|
@@ -49366,14 +49387,24 @@ const differenceInDaysKCLangFunction = params => {
|
|
|
49366
49387
|
expressions: params.map(x => x.value)
|
|
49367
49388
|
};
|
|
49368
49389
|
};
|
|
49390
|
+
const sumOfDayWeightsKCLangFunction = params => {
|
|
49391
|
+
const errors = Array.from(validateParams(params, 2));
|
|
49392
|
+
if (errors.length > 0) {
|
|
49393
|
+
return new FunctionValidationErrorCollection(errors);
|
|
49394
|
+
}
|
|
49395
|
+
return {
|
|
49396
|
+
type: "sumOfDayWeights",
|
|
49397
|
+
expressions: params.map(x => x.value)
|
|
49398
|
+
};
|
|
49399
|
+
};
|
|
49369
49400
|
const addDaysKCLangFunction = params => {
|
|
49370
|
-
var _params$
|
|
49401
|
+
var _params$39, _params$40;
|
|
49371
49402
|
const errors = Array.from(validateParams(params, 2));
|
|
49372
49403
|
if (errors.length > 0) {
|
|
49373
49404
|
return new FunctionValidationErrorCollection(errors);
|
|
49374
49405
|
}
|
|
49375
|
-
const exprParam = (_params$
|
|
49376
|
-
const amountParam = (_params$
|
|
49406
|
+
const exprParam = (_params$39 = params[0]) === null || _params$39 === void 0 ? void 0 : _params$39.value;
|
|
49407
|
+
const amountParam = (_params$40 = params[1]) === null || _params$40 === void 0 ? void 0 : _params$40.value;
|
|
49377
49408
|
if (exprParam == undefined) {
|
|
49378
49409
|
throw new Error("Expected expression for addDays().");
|
|
49379
49410
|
}
|
|
@@ -49389,13 +49420,13 @@ const addDaysKCLangFunction = params => {
|
|
|
49389
49420
|
};
|
|
49390
49421
|
};
|
|
49391
49422
|
const addMonthsKCLangFunction = params => {
|
|
49392
|
-
var _params$
|
|
49423
|
+
var _params$41, _params$42;
|
|
49393
49424
|
const errors = Array.from(validateParams(params, 2));
|
|
49394
49425
|
if (errors.length > 0) {
|
|
49395
49426
|
return new FunctionValidationErrorCollection(errors);
|
|
49396
49427
|
}
|
|
49397
|
-
const exprParam = (_params$
|
|
49398
|
-
const amountParam = (_params$
|
|
49428
|
+
const exprParam = (_params$41 = params[0]) === null || _params$41 === void 0 ? void 0 : _params$41.value;
|
|
49429
|
+
const amountParam = (_params$42 = params[1]) === null || _params$42 === void 0 ? void 0 : _params$42.value;
|
|
49399
49430
|
if (exprParam == undefined) {
|
|
49400
49431
|
throw new Error("Expected expression for addMonths().");
|
|
49401
49432
|
}
|
|
@@ -49411,13 +49442,13 @@ const addMonthsKCLangFunction = params => {
|
|
|
49411
49442
|
};
|
|
49412
49443
|
};
|
|
49413
49444
|
const addYearsKCLangFunction = params => {
|
|
49414
|
-
var _params$
|
|
49445
|
+
var _params$43, _params$44;
|
|
49415
49446
|
const errors = Array.from(validateParams(params, 2));
|
|
49416
49447
|
if (errors.length > 0) {
|
|
49417
49448
|
return new FunctionValidationErrorCollection(errors);
|
|
49418
49449
|
}
|
|
49419
|
-
const exprParam = (_params$
|
|
49420
|
-
const amountParam = (_params$
|
|
49450
|
+
const exprParam = (_params$43 = params[0]) === null || _params$43 === void 0 ? void 0 : _params$43.value;
|
|
49451
|
+
const amountParam = (_params$44 = params[1]) === null || _params$44 === void 0 ? void 0 : _params$44.value;
|
|
49421
49452
|
if (exprParam == undefined) {
|
|
49422
49453
|
throw new Error("Expected expression for addYears().");
|
|
49423
49454
|
}
|
|
@@ -49433,13 +49464,13 @@ const addYearsKCLangFunction = params => {
|
|
|
49433
49464
|
};
|
|
49434
49465
|
};
|
|
49435
49466
|
const dateToStringKCLangFunction = params => {
|
|
49436
|
-
var _params$
|
|
49467
|
+
var _params$45, _params$46;
|
|
49437
49468
|
const errors = Array.from(validateParams(params, 1, 2));
|
|
49438
49469
|
if (errors.length > 0) {
|
|
49439
49470
|
return new FunctionValidationErrorCollection(errors);
|
|
49440
49471
|
}
|
|
49441
|
-
const exprParam = (_params$
|
|
49442
|
-
const formatParam = (_params$
|
|
49472
|
+
const exprParam = (_params$45 = params[0]) === null || _params$45 === void 0 ? void 0 : _params$45.value;
|
|
49473
|
+
const formatParam = (_params$46 = params[1]) === null || _params$46 === void 0 ? void 0 : _params$46.value;
|
|
49443
49474
|
if (exprParam == undefined) {
|
|
49444
49475
|
throw new Error("Expected expression for dateToString().");
|
|
49445
49476
|
}
|
|
@@ -49454,12 +49485,12 @@ const dateToStringKCLangFunction = params => {
|
|
|
49454
49485
|
};
|
|
49455
49486
|
};
|
|
49456
49487
|
const dateTimeKCLangFunction = params => {
|
|
49457
|
-
var _params$
|
|
49488
|
+
var _params$47;
|
|
49458
49489
|
const errors = Array.from(validateParams(params, 1));
|
|
49459
49490
|
if (errors.length > 0) {
|
|
49460
49491
|
return new FunctionValidationErrorCollection(errors);
|
|
49461
49492
|
}
|
|
49462
|
-
const param = (_params$
|
|
49493
|
+
const param = (_params$47 = params[0]) === null || _params$47 === void 0 ? void 0 : _params$47.value;
|
|
49463
49494
|
if (param == undefined) {
|
|
49464
49495
|
throw new Error("Unexpected error!");
|
|
49465
49496
|
}
|
|
@@ -49469,12 +49500,12 @@ const dateTimeKCLangFunction = params => {
|
|
|
49469
49500
|
};
|
|
49470
49501
|
};
|
|
49471
49502
|
const hasAutoFlagKCLangFunction = params => {
|
|
49472
|
-
var _params$
|
|
49503
|
+
var _params$48;
|
|
49473
49504
|
const errors = Array.from(validateParams(params, 1));
|
|
49474
49505
|
if (errors.length > 0) {
|
|
49475
49506
|
return new FunctionValidationErrorCollection(errors);
|
|
49476
49507
|
}
|
|
49477
|
-
const param = (_params$
|
|
49508
|
+
const param = (_params$48 = params[0]) === null || _params$48 === void 0 ? void 0 : _params$48.value;
|
|
49478
49509
|
if (param == undefined) {
|
|
49479
49510
|
throw new Error("Unexpected error!");
|
|
49480
49511
|
}
|
|
@@ -49484,13 +49515,13 @@ const hasAutoFlagKCLangFunction = params => {
|
|
|
49484
49515
|
};
|
|
49485
49516
|
};
|
|
49486
49517
|
const makeDictKCLangFunction = params => {
|
|
49487
|
-
var _params$
|
|
49518
|
+
var _params$49, _params$50;
|
|
49488
49519
|
const errors = Array.from(validateParams(params, 2));
|
|
49489
49520
|
if (errors.length > 0) {
|
|
49490
49521
|
return new FunctionValidationErrorCollection(errors);
|
|
49491
49522
|
}
|
|
49492
|
-
const sourceKeyPathParam = (_params$
|
|
49493
|
-
const sourceValuePathParam = (_params$
|
|
49523
|
+
const sourceKeyPathParam = (_params$49 = params[0]) === null || _params$49 === void 0 ? void 0 : _params$49.value;
|
|
49524
|
+
const sourceValuePathParam = (_params$50 = params[1]) === null || _params$50 === void 0 ? void 0 : _params$50.value;
|
|
49494
49525
|
if ((sourceKeyPathParam === null || sourceKeyPathParam === void 0 ? void 0 : sourceKeyPathParam.type) !== "argument" || sourceValuePathParam == undefined) {
|
|
49495
49526
|
const argumentsValidationError = new ArgumentValidationError("Invalid argument sourceKeyPath");
|
|
49496
49527
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -49502,13 +49533,13 @@ const makeDictKCLangFunction = params => {
|
|
|
49502
49533
|
};
|
|
49503
49534
|
};
|
|
49504
49535
|
const getSumByKeysKCLangFunction = params => {
|
|
49505
|
-
var _params$
|
|
49536
|
+
var _params$51, _params$52;
|
|
49506
49537
|
const errors = Array.from(validateParams(params, 2));
|
|
49507
49538
|
if (errors.length > 0) {
|
|
49508
49539
|
return new FunctionValidationErrorCollection(errors);
|
|
49509
49540
|
}
|
|
49510
|
-
const dictPathParam = (_params$
|
|
49511
|
-
const targetKeysParam = (_params$
|
|
49541
|
+
const dictPathParam = (_params$51 = params[0]) === null || _params$51 === void 0 ? void 0 : _params$51.value;
|
|
49542
|
+
const targetKeysParam = (_params$52 = params[1]) === null || _params$52 === void 0 ? void 0 : _params$52.value;
|
|
49512
49543
|
if (targetKeysParam == undefined || (dictPathParam === null || dictPathParam === void 0 ? void 0 : dictPathParam.type) !== "argument") {
|
|
49513
49544
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments dictPathParam, targetKeysParam");
|
|
49514
49545
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -49524,12 +49555,12 @@ const getSumByKeysKCLangFunction = params => {
|
|
|
49524
49555
|
};
|
|
49525
49556
|
};
|
|
49526
49557
|
const joinKCLangFunction = params => {
|
|
49527
|
-
var _params$
|
|
49558
|
+
var _params$53;
|
|
49528
49559
|
const errors = Array.from(validateParams(params, 1));
|
|
49529
49560
|
if (errors.length > 0) {
|
|
49530
49561
|
return new FunctionValidationErrorCollection(errors);
|
|
49531
49562
|
}
|
|
49532
|
-
const arrayParam = (_params$
|
|
49563
|
+
const arrayParam = (_params$53 = params[0]) === null || _params$53 === void 0 ? void 0 : _params$53.value;
|
|
49533
49564
|
if (arrayParam == undefined) {
|
|
49534
49565
|
const argumentsValidationError = new ArgumentValidationError("Invalid arguments arrayParam");
|
|
49535
49566
|
return new FunctionValidationErrorCollection([argumentsValidationError]);
|
|
@@ -49592,6 +49623,7 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
49592
49623
|
sum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.sumKCLangFunction],
|
|
49593
49624
|
substring: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.substringKCLangFunction],
|
|
49594
49625
|
count: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.countKCLangFunction],
|
|
49626
|
+
instanceCount: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.instanceCountKCLangFunction],
|
|
49595
49627
|
groupSum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.groupSumKCLangFunction],
|
|
49596
49628
|
groupCount: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.groupCountKCLangFunction],
|
|
49597
49629
|
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.concatKCLangFunction],
|
|
@@ -49604,6 +49636,7 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
49604
49636
|
isDate: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isDateInMonthKCLangFunction],
|
|
49605
49637
|
differenceInMonths: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.differenceInMonthsKCLangFunction],
|
|
49606
49638
|
differenceInDays: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.differenceInDaysKCLangFunction],
|
|
49639
|
+
sumOfDayWeights: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.sumOfDayWeightsKCLangFunction],
|
|
49607
49640
|
addDays: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.addDaysKCLangFunction],
|
|
49608
49641
|
addMonths: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.addMonthsKCLangFunction],
|
|
49609
49642
|
addYears: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.addYearsKCLangFunction],
|
|
@@ -59337,6 +59370,9 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
59337
59370
|
case "count":
|
|
59338
59371
|
visitor.visitCountKCLangNode(node);
|
|
59339
59372
|
break;
|
|
59373
|
+
case "instanceCount":
|
|
59374
|
+
visitor.visitInstanceCountKCLangNode(node);
|
|
59375
|
+
break;
|
|
59340
59376
|
case "or":
|
|
59341
59377
|
for (const expression of node.expressions) {
|
|
59342
59378
|
traverseKCLangExpression(expression, visitor);
|
|
@@ -59408,6 +59444,9 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
59408
59444
|
case "dateTime":
|
|
59409
59445
|
visitor.visitDateTimeKCLangNode(node);
|
|
59410
59446
|
break;
|
|
59447
|
+
case "sumOfDayWeights":
|
|
59448
|
+
visitor.visitSumOfDayWeightsKCLangNode(node);
|
|
59449
|
+
break;
|
|
59411
59450
|
case "getPicklistValues":
|
|
59412
59451
|
visitor.visitGetPicklistValuesKCLangNode(node);
|
|
59413
59452
|
break;
|
|
@@ -59541,6 +59580,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
59541
59580
|
visitCountKCLangNode(node) {
|
|
59542
59581
|
// default empty implementation
|
|
59543
59582
|
}
|
|
59583
|
+
visitInstanceCountKCLangNode(node) {
|
|
59584
|
+
// default empty implementation
|
|
59585
|
+
}
|
|
59544
59586
|
visitSubstringKCLangNode(node) {
|
|
59545
59587
|
// default empty implementation
|
|
59546
59588
|
}
|
|
@@ -59592,6 +59634,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
59592
59634
|
visitDateTimeKCLangNode(node) {
|
|
59593
59635
|
// default empty implementation
|
|
59594
59636
|
}
|
|
59637
|
+
visitSumOfDayWeightsKCLangNode(node) {
|
|
59638
|
+
// default empty implementation
|
|
59639
|
+
}
|
|
59595
59640
|
visitHasAutoFlagKCLangNode(node) {
|
|
59596
59641
|
// default empty implementation
|
|
59597
59642
|
}
|
|
@@ -59769,6 +59814,8 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
59769
59814
|
return `${pathFnName}("${expression.select}")`;
|
|
59770
59815
|
case "count":
|
|
59771
59816
|
return `${countFnName}("${expression.select}")`;
|
|
59817
|
+
case "instanceCount":
|
|
59818
|
+
return `${countFnName}("${expression.select}")`;
|
|
59772
59819
|
case "multiply":
|
|
59773
59820
|
case "division":
|
|
59774
59821
|
case "noteq":
|
|
@@ -59965,6 +60012,7 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
59965
60012
|
case "addMonths":
|
|
59966
60013
|
case "addYears":
|
|
59967
60014
|
case "dateToString":
|
|
60015
|
+
case "sumOfDayWeights":
|
|
59968
60016
|
case "getPicklistValues":
|
|
59969
60017
|
case "nodeps":
|
|
59970
60018
|
case "array":
|
|
@@ -60117,6 +60165,7 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
60117
60165
|
return [`<m:${expression.type}>`, expression.expression.type === "argument" ? (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(`<m:argument select="${printPath(expression.expression.select)}" type="string" />`, 1) : (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
60118
60166
|
case "differenceInMonths":
|
|
60119
60167
|
case "differenceInDays":
|
|
60168
|
+
case "sumOfDayWeights":
|
|
60120
60169
|
return [`<m:${expression.type}>`, ...expression.expressions.map(x => x.type === "argument" ? `<m:argument select="${printPath(x.select)}" type="string" />` : generateKCXmlExpression(x, prefixPath)).map(x => (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(x, 1)), `</m:${expression.type}>`].join("\n");
|
|
60121
60170
|
case "addDays":
|
|
60122
60171
|
case "addMonths":
|
|
@@ -60143,6 +60192,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
60143
60192
|
return `<m:argument select="${printPath(expression.select)}" />`;
|
|
60144
60193
|
case "count":
|
|
60145
60194
|
return `<m:count select="${printPath(expression.select)}" />`;
|
|
60195
|
+
case "instanceCount":
|
|
60196
|
+
return `<m:instanceCount select="${printPath(expression.select)}" />`;
|
|
60146
60197
|
case "join":
|
|
60147
60198
|
return [`<m:join>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.array, prefixPath), 2), `</m:join>`].join("\n");
|
|
60148
60199
|
case "property":
|
|
@@ -60272,6 +60323,11 @@ function guessConditionTarget(condition) {
|
|
|
60272
60323
|
result = node.select;
|
|
60273
60324
|
}
|
|
60274
60325
|
}
|
|
60326
|
+
visitInstanceCountKCLangNode(node) {
|
|
60327
|
+
if (result == undefined) {
|
|
60328
|
+
result = node.select;
|
|
60329
|
+
}
|
|
60330
|
+
}
|
|
60275
60331
|
}
|
|
60276
60332
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
60277
60333
|
return result;
|
|
@@ -60327,6 +60383,11 @@ function inferConditionTarget(condition, targetValue) {
|
|
|
60327
60383
|
result = node.select;
|
|
60328
60384
|
}
|
|
60329
60385
|
}
|
|
60386
|
+
visitInstanceCountKCLangNode(node) {
|
|
60387
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
60388
|
+
result = node.select;
|
|
60389
|
+
}
|
|
60390
|
+
}
|
|
60330
60391
|
}
|
|
60331
60392
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
60332
60393
|
return result;
|
|
@@ -65670,6 +65731,10 @@ function traverseFormulaExpression(expression, visitor) {
|
|
|
65670
65731
|
visitor.beforeCountExpression(expression);
|
|
65671
65732
|
visitor.afterCountExpression(expression);
|
|
65672
65733
|
}
|
|
65734
|
+
if (expression instanceof _KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
65735
|
+
visitor.beforeInstanceCountExpression(expression);
|
|
65736
|
+
visitor.afterInstanceCountExpression(expression);
|
|
65737
|
+
}
|
|
65673
65738
|
}
|
|
65674
65739
|
|
|
65675
65740
|
/***/ }),
|
|
@@ -65737,6 +65802,13 @@ class FormulaProcessor {
|
|
|
65737
65802
|
const argumentName = this.addDependency(expression.select);
|
|
65738
65803
|
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
65739
65804
|
}
|
|
65805
|
+
beforeInstanceCountExpression(expression) {
|
|
65806
|
+
// noop
|
|
65807
|
+
}
|
|
65808
|
+
afterInstanceCountExpression(expression) {
|
|
65809
|
+
const argumentName = this.addDependency(expression.select);
|
|
65810
|
+
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
65811
|
+
}
|
|
65740
65812
|
beforeMultySumExpression(expression) {
|
|
65741
65813
|
// noop
|
|
65742
65814
|
}
|
|
@@ -66252,6 +66324,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66252
66324
|
/* harmony export */ FormulaGtExpression: () => (/* binding */ FormulaGtExpression),
|
|
66253
66325
|
/* harmony export */ FormulaHasAutoFlagExpression: () => (/* binding */ FormulaHasAutoFlagExpression),
|
|
66254
66326
|
/* harmony export */ FormulaHashSetExpression: () => (/* binding */ FormulaHashSetExpression),
|
|
66327
|
+
/* harmony export */ FormulaInstanceCountExpression: () => (/* binding */ FormulaInstanceCountExpression),
|
|
66255
66328
|
/* harmony export */ FormulaIsDateExpression: () => (/* binding */ FormulaIsDateExpression),
|
|
66256
66329
|
/* harmony export */ FormulaIsInnExpression: () => (/* binding */ FormulaIsInnExpression),
|
|
66257
66330
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
@@ -66277,6 +66350,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66277
66350
|
/* harmony export */ FormulaRoundExpression: () => (/* binding */ FormulaRoundExpression),
|
|
66278
66351
|
/* harmony export */ FormulaSubstringExpression: () => (/* binding */ FormulaSubstringExpression),
|
|
66279
66352
|
/* harmony export */ FormulaSumExpression: () => (/* binding */ FormulaSumExpression),
|
|
66353
|
+
/* harmony export */ FormulaSumOfDayWeightsExpression: () => (/* binding */ FormulaSumOfDayWeightsExpression),
|
|
66280
66354
|
/* harmony export */ FormulaWhenExpression: () => (/* binding */ FormulaWhenExpression),
|
|
66281
66355
|
/* harmony export */ FormulaXAbsExpression: () => (/* binding */ FormulaXAbsExpression),
|
|
66282
66356
|
/* harmony export */ Formulas: () => (/* binding */ Formulas),
|
|
@@ -66295,7 +66369,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66295
66369
|
|
|
66296
66370
|
|
|
66297
66371
|
|
|
66298
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107,
|
|
66372
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _dec110, _class95, _class96, _descriptor60, _descriptor61, _dec111, _dec112, _dec113, _class97, _class98, _descriptor62, _descriptor63, _dec114, _dec115, _class99, _class100, _descriptor64, _dec116, _dec117, _class101, _class102, _descriptor65, _dec118, _dec119, _class103, _class104, _descriptor66, _dec120, _dec121, _dec122, _dec123, _dec124, _class105, _class106, _descriptor67, _descriptor68, _descriptor69, _descriptor70, _dec125, _dec126, _class107, _class108, _descriptor71, _dec127, _dec128, _class109, _class110, _descriptor72, _dec129, _dec130, _class111, _class112, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _dec135, _class115, _class116, _descriptor75, _descriptor76, _dec136, _dec137, _class117, _class118, _descriptor77, _dec138, _dec139, _class119, _class120, _descriptor78, _dec140, _dec141, _class121, _class122, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _class125, _dec145, _dec146, _dec147, _dec148, _class126, _class127, _descriptor81, _descriptor82, _descriptor83, _dec149, _dec150, _class128, _class129, _descriptor84, _dec151, _dec152, _class130, _class131, _descriptor85, _dec153, _dec154, _dec155, _dec156, _dec157, _dec158, _class132, _class133, _descriptor86, _descriptor87, _descriptor88, _descriptor89, _descriptor90, _dec159, _dec160, _class134, _class135, _descriptor91, _dec161, _dec162, _dec163, _class136, _class137, _descriptor92, _descriptor93, _dec164, _dec165, _dec166, _class138, _class139, _descriptor94, _descriptor95, _dec167, _dec168, _dec169, _class140, _class141, _descriptor96, _descriptor97, _dec170, _dec171, _dec172, _dec173, _class142, _class143, _descriptor98, _descriptor99, _descriptor100, _dec174, _dec175, _dec176, _class144, _class145, _descriptor101, _descriptor102;
|
|
66299
66373
|
|
|
66300
66374
|
|
|
66301
66375
|
|
|
@@ -66904,27 +66978,24 @@ let FormulaDateTimeExpression = (_dec96 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
66904
66978
|
writable: true,
|
|
66905
66979
|
initializer: null
|
|
66906
66980
|
})), _class84)) || _class83);
|
|
66907
|
-
let
|
|
66981
|
+
let FormulaSumOfDayWeightsExpression = (_dec98 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("sumofdayweights", `Сумма весов дней между датами (включительно)`), _dec99 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec98(_class85 = (_class86 = class FormulaSumOfDayWeightsExpression extends FormulaExpression {
|
|
66908
66982
|
constructor(...args) {
|
|
66909
66983
|
super(...args);
|
|
66910
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
66984
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor55, this);
|
|
66911
66985
|
}
|
|
66912
|
-
|
|
66913
|
-
return "isSnils";
|
|
66914
|
-
}
|
|
66915
|
-
}, (_descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class86.prototype, "select", [_dec99], {
|
|
66986
|
+
}, (_descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class86.prototype, "arguments", [_dec99], {
|
|
66916
66987
|
configurable: true,
|
|
66917
66988
|
enumerable: true,
|
|
66918
66989
|
writable: true,
|
|
66919
66990
|
initializer: null
|
|
66920
66991
|
})), _class86)) || _class85);
|
|
66921
|
-
let
|
|
66992
|
+
let FormulaIsSnilsExpression = (_dec100 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("issnils", `Проверка на валидность снилса`), _dec101 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec100(_class87 = (_class88 = class FormulaIsSnilsExpression extends FormulaExpression {
|
|
66922
66993
|
constructor(...args) {
|
|
66923
66994
|
super(...args);
|
|
66924
66995
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor56, this);
|
|
66925
66996
|
}
|
|
66926
66997
|
getLegacyExpressionTypeForFunctionName() {
|
|
66927
|
-
return "
|
|
66998
|
+
return "isSnils";
|
|
66928
66999
|
}
|
|
66929
67000
|
}, (_descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "select", [_dec101], {
|
|
66930
67001
|
configurable: true,
|
|
@@ -66932,13 +67003,13 @@ let FormulaIsRegNumSfrExpression = (_dec100 = (0,_markupGenerator_Serializer_Sug
|
|
|
66932
67003
|
writable: true,
|
|
66933
67004
|
initializer: null
|
|
66934
67005
|
})), _class88)) || _class87);
|
|
66935
|
-
let
|
|
67006
|
+
let FormulaIsRegNumSfrExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isregnumsfr", `Проверка на валидность рег-номера СФР`), _dec103 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec102(_class89 = (_class90 = class FormulaIsRegNumSfrExpression extends FormulaExpression {
|
|
66936
67007
|
constructor(...args) {
|
|
66937
67008
|
super(...args);
|
|
66938
67009
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor57, this);
|
|
66939
67010
|
}
|
|
66940
67011
|
getLegacyExpressionTypeForFunctionName() {
|
|
66941
|
-
return "
|
|
67012
|
+
return "isRegNumSfr";
|
|
66942
67013
|
}
|
|
66943
67014
|
}, (_descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "select", [_dec103], {
|
|
66944
67015
|
configurable: true,
|
|
@@ -66946,13 +67017,13 @@ let FormulaIsInnExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSeri
|
|
|
66946
67017
|
writable: true,
|
|
66947
67018
|
initializer: null
|
|
66948
67019
|
})), _class90)) || _class89);
|
|
66949
|
-
let
|
|
67020
|
+
let FormulaIsInnExpression = (_dec104 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isinn", `Проверка на валидность ИИН`), _dec105 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec104(_class91 = (_class92 = class FormulaIsInnExpression extends FormulaExpression {
|
|
66950
67021
|
constructor(...args) {
|
|
66951
67022
|
super(...args);
|
|
66952
67023
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor58, this);
|
|
66953
67024
|
}
|
|
66954
67025
|
getLegacyExpressionTypeForFunctionName() {
|
|
66955
|
-
return "
|
|
67026
|
+
return "isInn";
|
|
66956
67027
|
}
|
|
66957
67028
|
}, (_descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "select", [_dec105], {
|
|
66958
67029
|
configurable: true,
|
|
@@ -66960,122 +67031,125 @@ let FormulaIsValidMirCardNumberExpression = (_dec104 = (0,_markupGenerator_Seria
|
|
|
66960
67031
|
writable: true,
|
|
66961
67032
|
initializer: null
|
|
66962
67033
|
})), _class92)) || _class91);
|
|
66963
|
-
let
|
|
67034
|
+
let FormulaIsValidMirCardNumberExpression = (_dec106 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidmircardnumber", `Проверка на валидность карты МИР`), _dec107 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec106(_class93 = (_class94 = class FormulaIsValidMirCardNumberExpression extends FormulaExpression {
|
|
67035
|
+
constructor(...args) {
|
|
67036
|
+
super(...args);
|
|
67037
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor59, this);
|
|
67038
|
+
}
|
|
67039
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
67040
|
+
return "isValidMirCardNumber";
|
|
67041
|
+
}
|
|
67042
|
+
}, (_descriptor59 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class94.prototype, "select", [_dec107], {
|
|
67043
|
+
configurable: true,
|
|
67044
|
+
enumerable: true,
|
|
67045
|
+
writable: true,
|
|
67046
|
+
initializer: null
|
|
67047
|
+
})), _class94)) || _class93);
|
|
67048
|
+
let FormulaIsValidAccountNumberExpression = (_dec108 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("isvalidaccountnumber", `Проверка на валидность карты МИР`), _dec109 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("bik", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec110 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("account", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec108(_class95 = (_class96 = class FormulaIsValidAccountNumberExpression extends FormulaExpression {
|
|
66964
67049
|
constructor(...args) {
|
|
66965
67050
|
super(...args);
|
|
66966
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik",
|
|
66967
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account",
|
|
67051
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik", _descriptor60, this);
|
|
67052
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "account", _descriptor61, this);
|
|
66968
67053
|
}
|
|
66969
67054
|
getLegacyExpressionTypeForFunctionName() {
|
|
66970
67055
|
return "isValidAccountNumber";
|
|
66971
67056
|
}
|
|
66972
|
-
}, (
|
|
67057
|
+
}, (_descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "bik", [_dec109], {
|
|
66973
67058
|
configurable: true,
|
|
66974
67059
|
enumerable: true,
|
|
66975
67060
|
writable: true,
|
|
66976
67061
|
initializer: null
|
|
66977
|
-
}),
|
|
67062
|
+
}), _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "account", [_dec110], {
|
|
66978
67063
|
configurable: true,
|
|
66979
67064
|
enumerable: true,
|
|
66980
67065
|
writable: true,
|
|
66981
67066
|
initializer: null
|
|
66982
|
-
})),
|
|
66983
|
-
let FormulaArgumentExpression = (
|
|
67067
|
+
})), _class96)) || _class95);
|
|
67068
|
+
let FormulaArgumentExpression = (_dec111 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("argument", `TODO`), _dec112 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec113 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("type", typeArgumentValueParser, `Тип атрибута: string или decimal (по умолчанию)`), _dec111(_class97 = (_class98 = class FormulaArgumentExpression extends FormulaExpression {
|
|
66984
67069
|
constructor(...args) {
|
|
66985
67070
|
super(...args);
|
|
66986
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
66987
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type",
|
|
67071
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor62, this);
|
|
67072
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "type", _descriptor63, this);
|
|
66988
67073
|
}
|
|
66989
|
-
}, (
|
|
67074
|
+
}, (_descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "select", [_dec112], {
|
|
66990
67075
|
configurable: true,
|
|
66991
67076
|
enumerable: true,
|
|
66992
67077
|
writable: true,
|
|
66993
67078
|
initializer: null
|
|
66994
|
-
}),
|
|
67079
|
+
}), _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "type", [_dec113], {
|
|
66995
67080
|
configurable: true,
|
|
66996
67081
|
enumerable: true,
|
|
66997
67082
|
writable: true,
|
|
66998
67083
|
initializer: function () {
|
|
66999
67084
|
return "decimal";
|
|
67000
67085
|
}
|
|
67001
|
-
})),
|
|
67002
|
-
let FormulaArrayExpression = (
|
|
67086
|
+
})), _class98)) || _class97);
|
|
67087
|
+
let FormulaArrayExpression = (_dec114 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("array", `TODO`), _dec115 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec114(_class99 = (_class100 = class FormulaArrayExpression extends FormulaExpression {
|
|
67003
67088
|
constructor(...args) {
|
|
67004
67089
|
super(...args);
|
|
67005
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
67090
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor64, this);
|
|
67006
67091
|
}
|
|
67007
|
-
}, (
|
|
67092
|
+
}, (_descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "items", [_dec115], {
|
|
67008
67093
|
configurable: true,
|
|
67009
67094
|
enumerable: true,
|
|
67010
67095
|
writable: true,
|
|
67011
67096
|
initializer: null
|
|
67012
|
-
})),
|
|
67013
|
-
let FormulaFilterColumnExpression = (
|
|
67097
|
+
})), _class100)) || _class99);
|
|
67098
|
+
let FormulaFilterColumnExpression = (_dec116 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filtercolumn", `Получить значения пиклиста по фильру`), _dec117 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec116(_class101 = (_class102 = class FormulaFilterColumnExpression extends FormulaExpression {
|
|
67014
67099
|
constructor(...args) {
|
|
67015
67100
|
super(...args);
|
|
67016
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
67101
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor65, this);
|
|
67017
67102
|
}
|
|
67018
|
-
}, (
|
|
67103
|
+
}, (_descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "filterColumn", [_dec117], {
|
|
67019
67104
|
configurable: true,
|
|
67020
67105
|
enumerable: true,
|
|
67021
67106
|
writable: true,
|
|
67022
67107
|
initializer: null
|
|
67023
|
-
})),
|
|
67024
|
-
let FormulaFilterKeyExpression = (
|
|
67108
|
+
})), _class102)) || _class101);
|
|
67109
|
+
let FormulaFilterKeyExpression = (_dec118 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("filterkey", `Получить значения пиклиста по фильру`), _dec119 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec118(_class103 = (_class104 = class FormulaFilterKeyExpression extends FormulaExpression {
|
|
67025
67110
|
constructor(...args) {
|
|
67026
67111
|
super(...args);
|
|
67027
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
67112
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor66, this);
|
|
67028
67113
|
}
|
|
67029
|
-
}, (
|
|
67114
|
+
}, (_descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "filterKey", [_dec119], {
|
|
67030
67115
|
configurable: true,
|
|
67031
67116
|
enumerable: true,
|
|
67032
67117
|
writable: true,
|
|
67033
67118
|
initializer: null
|
|
67034
|
-
})),
|
|
67035
|
-
let FormulaGetPicklistValuesExpression = (
|
|
67119
|
+
})), _class104)) || _class103);
|
|
67120
|
+
let FormulaGetPicklistValuesExpression = (_dec120 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getpicklistvalues", `Получить значения пиклиста по фильру. Используется только для генерации FLANG. В калькуляторе не работает`), _dec121 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("gId", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec122 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filtercolumn", [FormulaFilterColumnExpression]), _dec123 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("filterkey", [FormulaFilterKeyExpression]), _dec124 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("resultColumn", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec120(_class105 = (_class106 = class FormulaGetPicklistValuesExpression extends FormulaExpression {
|
|
67036
67121
|
constructor(...args) {
|
|
67037
67122
|
super(...args);
|
|
67038
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
67039
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
67040
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
67041
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn",
|
|
67123
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId", _descriptor67, this);
|
|
67124
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn", _descriptor68, this);
|
|
67125
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey", _descriptor69, this);
|
|
67126
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "resultColumn", _descriptor70, this);
|
|
67042
67127
|
}
|
|
67043
67128
|
getLegacyExpressionTypeForFunctionName() {
|
|
67044
67129
|
return "getPicklistValues";
|
|
67045
67130
|
}
|
|
67046
|
-
}, (
|
|
67047
|
-
configurable: true,
|
|
67048
|
-
enumerable: true,
|
|
67049
|
-
writable: true,
|
|
67050
|
-
initializer: null
|
|
67051
|
-
}), _descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "filterColumn", [_dec120], {
|
|
67131
|
+
}, (_descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "gId", [_dec121], {
|
|
67052
67132
|
configurable: true,
|
|
67053
67133
|
enumerable: true,
|
|
67054
67134
|
writable: true,
|
|
67055
67135
|
initializer: null
|
|
67056
|
-
}), _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
67136
|
+
}), _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterColumn", [_dec122], {
|
|
67057
67137
|
configurable: true,
|
|
67058
67138
|
enumerable: true,
|
|
67059
67139
|
writable: true,
|
|
67060
67140
|
initializer: null
|
|
67061
|
-
}), _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(
|
|
67141
|
+
}), _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterKey", [_dec123], {
|
|
67062
67142
|
configurable: true,
|
|
67063
67143
|
enumerable: true,
|
|
67064
67144
|
writable: true,
|
|
67065
67145
|
initializer: null
|
|
67066
|
-
})
|
|
67067
|
-
let FormulaFirstOrDefaultExpression = (_dec123 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("firstordefault", `Взять первый элемент массива. Используется только для генерации FLANG. В калькуляторе не работает`), _dec124 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec123(_class105 = (_class106 = class FormulaFirstOrDefaultExpression extends FormulaExpression {
|
|
67068
|
-
constructor(...args) {
|
|
67069
|
-
super(...args);
|
|
67070
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor70, this);
|
|
67071
|
-
}
|
|
67072
|
-
}, (_descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "expression", [_dec124], {
|
|
67146
|
+
}), _descriptor70 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "resultColumn", [_dec124], {
|
|
67073
67147
|
configurable: true,
|
|
67074
67148
|
enumerable: true,
|
|
67075
67149
|
writable: true,
|
|
67076
67150
|
initializer: null
|
|
67077
67151
|
})), _class106)) || _class105);
|
|
67078
|
-
let
|
|
67152
|
+
let FormulaFirstOrDefaultExpression = (_dec125 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("firstordefault", `Взять первый элемент массива. Используется только для генерации FLANG. В калькуляторе не работает`), _dec126 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec125(_class107 = (_class108 = class FormulaFirstOrDefaultExpression extends FormulaExpression {
|
|
67079
67153
|
constructor(...args) {
|
|
67080
67154
|
super(...args);
|
|
67081
67155
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor71, this);
|
|
@@ -67086,265 +67160,287 @@ let FormulaHashSetExpression = (_dec125 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
67086
67160
|
writable: true,
|
|
67087
67161
|
initializer: null
|
|
67088
67162
|
})), _class108)) || _class107);
|
|
67089
|
-
let
|
|
67163
|
+
let FormulaHashSetExpression = (_dec127 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("hashset", `Оставить только уникальные значения в массиве. Используется только для генерации FLANG. В калькуляторе не работает`), _dec128 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec127(_class109 = (_class110 = class FormulaHashSetExpression extends FormulaExpression {
|
|
67090
67164
|
constructor(...args) {
|
|
67091
67165
|
super(...args);
|
|
67092
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67166
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor72, this);
|
|
67093
67167
|
}
|
|
67094
|
-
|
|
67095
|
-
return "exists";
|
|
67096
|
-
}
|
|
67097
|
-
}, (_descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "select", [_dec128], {
|
|
67168
|
+
}, (_descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "expression", [_dec128], {
|
|
67098
67169
|
configurable: true,
|
|
67099
67170
|
enumerable: true,
|
|
67100
67171
|
writable: true,
|
|
67101
67172
|
initializer: null
|
|
67102
67173
|
})), _class110)) || _class109);
|
|
67103
|
-
let
|
|
67174
|
+
let FormulaExistsExpression = (_dec129 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("exists", `TODO`), _dec130 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec129(_class111 = (_class112 = class FormulaExistsExpression extends FormulaExpression {
|
|
67104
67175
|
constructor(...args) {
|
|
67105
67176
|
super(...args);
|
|
67106
67177
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor73, this);
|
|
67107
67178
|
}
|
|
67179
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
67180
|
+
return "exists";
|
|
67181
|
+
}
|
|
67108
67182
|
}, (_descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "select", [_dec130], {
|
|
67109
67183
|
configurable: true,
|
|
67110
67184
|
enumerable: true,
|
|
67111
67185
|
writable: true,
|
|
67112
67186
|
initializer: null
|
|
67113
67187
|
})), _class112)) || _class111);
|
|
67114
|
-
let
|
|
67188
|
+
let FormulaMultySumExpression = (_dec131 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("multysum", `TODO`), _dec132 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec131(_class113 = (_class114 = class FormulaMultySumExpression extends FormulaExpression {
|
|
67115
67189
|
constructor(...args) {
|
|
67116
67190
|
super(...args);
|
|
67117
67191
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor74, this);
|
|
67118
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor75, this);
|
|
67119
67192
|
}
|
|
67120
67193
|
}, (_descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "select", [_dec132], {
|
|
67121
67194
|
configurable: true,
|
|
67122
67195
|
enumerable: true,
|
|
67123
67196
|
writable: true,
|
|
67124
67197
|
initializer: null
|
|
67125
|
-
}), _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "withNullOrEmptyValues", [_dec133], {
|
|
67126
|
-
configurable: true,
|
|
67127
|
-
enumerable: true,
|
|
67128
|
-
writable: true,
|
|
67129
|
-
initializer: null
|
|
67130
67198
|
})), _class114)) || _class113);
|
|
67131
|
-
let
|
|
67199
|
+
let FormulaCountExpression = (_dec133 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("count", `TODO`), _dec134 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec135 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("withNullOrEmptyValues", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.boolean, `брать в расчет незаполненные экземпляры`), _dec133(_class115 = (_class116 = class FormulaCountExpression extends FormulaExpression {
|
|
67132
67200
|
constructor(...args) {
|
|
67133
67201
|
super(...args);
|
|
67134
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67202
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor75, this);
|
|
67203
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor76, this);
|
|
67135
67204
|
}
|
|
67136
|
-
}, (
|
|
67205
|
+
}, (_descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class116.prototype, "select", [_dec134], {
|
|
67206
|
+
configurable: true,
|
|
67207
|
+
enumerable: true,
|
|
67208
|
+
writable: true,
|
|
67209
|
+
initializer: null
|
|
67210
|
+
}), _descriptor76 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class116.prototype, "withNullOrEmptyValues", [_dec135], {
|
|
67137
67211
|
configurable: true,
|
|
67138
67212
|
enumerable: true,
|
|
67139
67213
|
writable: true,
|
|
67140
67214
|
initializer: null
|
|
67141
67215
|
})), _class116)) || _class115);
|
|
67142
|
-
let
|
|
67216
|
+
let FormulaInstanceCountExpression = (_dec136 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("instancecount", `TODO`), _dec137 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("select", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec136(_class117 = (_class118 = class FormulaInstanceCountExpression extends FormulaExpression {
|
|
67143
67217
|
constructor(...args) {
|
|
67144
67218
|
super(...args);
|
|
67145
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67219
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor77, this);
|
|
67146
67220
|
}
|
|
67147
|
-
}, (_descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "
|
|
67221
|
+
}, (_descriptor77 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class118.prototype, "select", [_dec137], {
|
|
67148
67222
|
configurable: true,
|
|
67149
67223
|
enumerable: true,
|
|
67150
67224
|
writable: true,
|
|
67151
67225
|
initializer: null
|
|
67152
67226
|
})), _class118)) || _class117);
|
|
67153
|
-
let
|
|
67227
|
+
let FormulaJoinExpression = (_dec138 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("join", `TODO`), _dec139 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec138(_class119 = (_class120 = class FormulaJoinExpression extends FormulaExpression {
|
|
67154
67228
|
constructor(...args) {
|
|
67155
67229
|
super(...args);
|
|
67156
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67230
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor78, this);
|
|
67157
67231
|
}
|
|
67158
|
-
}, (_descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class120.prototype, "
|
|
67232
|
+
}, (_descriptor78 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class120.prototype, "array", [_dec139], {
|
|
67159
67233
|
configurable: true,
|
|
67160
67234
|
enumerable: true,
|
|
67161
67235
|
writable: true,
|
|
67162
67236
|
initializer: null
|
|
67163
67237
|
})), _class120)) || _class119);
|
|
67164
|
-
let
|
|
67165
|
-
|
|
67238
|
+
let FormulaPropertyByNameExpression = (_dec140 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("property", `TODO`), _dec141 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("name", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec140(_class121 = (_class122 = class FormulaPropertyByNameExpression extends FormulaExpression {
|
|
67239
|
+
constructor(...args) {
|
|
67240
|
+
super(...args);
|
|
67241
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor79, this);
|
|
67242
|
+
}
|
|
67243
|
+
}, (_descriptor79 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class122.prototype, "name", [_dec141], {
|
|
67244
|
+
configurable: true,
|
|
67245
|
+
enumerable: true,
|
|
67246
|
+
writable: true,
|
|
67247
|
+
initializer: null
|
|
67248
|
+
})), _class122)) || _class121);
|
|
67249
|
+
let FormulaConcatExpression = (_dec142 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("concat", `Конкатенация строк`), _dec143 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)(), _dec142(_class123 = (_class124 = class FormulaConcatExpression extends FormulaExpression {
|
|
67250
|
+
constructor(...args) {
|
|
67251
|
+
super(...args);
|
|
67252
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor80, this);
|
|
67253
|
+
}
|
|
67254
|
+
}, (_descriptor80 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class124.prototype, "arguments", [_dec143], {
|
|
67255
|
+
configurable: true,
|
|
67256
|
+
enumerable: true,
|
|
67257
|
+
writable: true,
|
|
67258
|
+
initializer: null
|
|
67259
|
+
})), _class124)) || _class123);
|
|
67260
|
+
let FormulaNewLineExpression = (_dec144 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("newline", `Перевод на новую строку`), _dec144(_class125 = class FormulaNewLineExpression extends FormulaExpression {}) || _class125);
|
|
67261
|
+
let Formula = (_dec145 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formula", `TODO`), _dec146 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec147 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec148 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec145(_class126 = (_class127 = class Formula extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
67166
67262
|
constructor(...args) {
|
|
67167
67263
|
super(...args);
|
|
67168
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
67169
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
67170
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
67264
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor81, this);
|
|
67265
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor82, this);
|
|
67266
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor83, this);
|
|
67171
67267
|
}
|
|
67172
|
-
}, (
|
|
67268
|
+
}, (_descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "match", [_dec146], {
|
|
67173
67269
|
configurable: true,
|
|
67174
67270
|
enumerable: true,
|
|
67175
67271
|
writable: true,
|
|
67176
67272
|
initializer: null
|
|
67177
|
-
}),
|
|
67273
|
+
}), _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "target", [_dec147], {
|
|
67178
67274
|
configurable: true,
|
|
67179
67275
|
enumerable: true,
|
|
67180
67276
|
writable: true,
|
|
67181
67277
|
initializer: null
|
|
67182
|
-
}),
|
|
67278
|
+
}), _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "expression", [_dec148], {
|
|
67183
67279
|
configurable: true,
|
|
67184
67280
|
enumerable: true,
|
|
67185
67281
|
writable: true,
|
|
67186
67282
|
initializer: null
|
|
67187
|
-
})),
|
|
67188
|
-
let FormulaNoDepsNode = (
|
|
67283
|
+
})), _class127)) || _class126);
|
|
67284
|
+
let FormulaNoDepsNode = (_dec149 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("nodeps", `Замыкает цикл пробега по зависимостям на элементе, что исключает бесконечную зацикленность. Только для серверной нормализации`), _dec150 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec149(_class128 = (_class129 = class FormulaNoDepsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
67189
67285
|
constructor(...args) {
|
|
67190
67286
|
super(...args);
|
|
67191
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
67287
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor84, this);
|
|
67192
67288
|
}
|
|
67193
|
-
}, (
|
|
67289
|
+
}, (_descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class129.prototype, "expression", [_dec150], {
|
|
67194
67290
|
configurable: true,
|
|
67195
67291
|
enumerable: true,
|
|
67196
67292
|
writable: true,
|
|
67197
67293
|
initializer: null
|
|
67198
|
-
})),
|
|
67199
|
-
let Formulas = (
|
|
67294
|
+
})), _class129)) || _class128);
|
|
67295
|
+
let Formulas = (_dec151 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("formulas", `TODO`), _dec152 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("formula", [Formula]), _dec151(_class130 = (_class131 = class Formulas extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
67200
67296
|
constructor(...args) {
|
|
67201
67297
|
super(...args);
|
|
67202
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
67298
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor85, this);
|
|
67203
67299
|
}
|
|
67204
|
-
}, (
|
|
67300
|
+
}, (_descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "items", [_dec152], {
|
|
67205
67301
|
configurable: true,
|
|
67206
67302
|
enumerable: true,
|
|
67207
67303
|
writable: true,
|
|
67208
67304
|
initializer: null
|
|
67209
|
-
})),
|
|
67210
|
-
let ConditionNode = (
|
|
67305
|
+
})), _class131)) || _class130);
|
|
67306
|
+
let ConditionNode = (_dec153 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("condition", `TODO`), _dec154 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("match", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec155 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("target", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec156 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("description", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, ``), _dec157 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("errorLevel", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.enum("Error", "Warning"), `Уровень ошибки может быть Error или Warning - параметр влияет на подсветку. Красную или Оранжевую соотвественно`), _dec158 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec153(_class132 = (_class133 = class ConditionNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
67211
67307
|
constructor(...args) {
|
|
67212
67308
|
super(...args);
|
|
67213
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
67214
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
67215
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
67216
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
67217
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression",
|
|
67309
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match", _descriptor86, this);
|
|
67310
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target", _descriptor87, this);
|
|
67311
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor88, this);
|
|
67312
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel", _descriptor89, this);
|
|
67313
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor90, this);
|
|
67218
67314
|
}
|
|
67219
|
-
}, (
|
|
67315
|
+
}, (_descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "match", [_dec154], {
|
|
67220
67316
|
configurable: true,
|
|
67221
67317
|
enumerable: true,
|
|
67222
67318
|
writable: true,
|
|
67223
67319
|
initializer: null
|
|
67224
|
-
}),
|
|
67320
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "target", [_dec155], {
|
|
67225
67321
|
configurable: true,
|
|
67226
67322
|
enumerable: true,
|
|
67227
67323
|
writable: true,
|
|
67228
67324
|
initializer: null
|
|
67229
|
-
}),
|
|
67325
|
+
}), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "description", [_dec156], {
|
|
67230
67326
|
configurable: true,
|
|
67231
67327
|
enumerable: true,
|
|
67232
67328
|
writable: true,
|
|
67233
67329
|
initializer: null
|
|
67234
|
-
}),
|
|
67330
|
+
}), _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "errorLevel", [_dec157], {
|
|
67235
67331
|
configurable: true,
|
|
67236
67332
|
enumerable: true,
|
|
67237
67333
|
writable: true,
|
|
67238
67334
|
initializer: null
|
|
67239
|
-
}),
|
|
67335
|
+
}), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec158], {
|
|
67240
67336
|
configurable: true,
|
|
67241
67337
|
enumerable: true,
|
|
67242
67338
|
writable: true,
|
|
67243
67339
|
initializer: null
|
|
67244
|
-
})),
|
|
67245
|
-
let ConditionsNode = (
|
|
67340
|
+
})), _class133)) || _class132);
|
|
67341
|
+
let ConditionsNode = (_dec159 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("conditions", `TODO`), _dec160 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.children)("condition", [ConditionNode]), _dec159(_class134 = (_class135 = class ConditionsNode extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
67246
67342
|
constructor(...args) {
|
|
67247
67343
|
super(...args);
|
|
67248
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items",
|
|
67344
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "items", _descriptor91, this);
|
|
67249
67345
|
}
|
|
67250
|
-
}, (
|
|
67346
|
+
}, (_descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec160], {
|
|
67251
67347
|
configurable: true,
|
|
67252
67348
|
enumerable: true,
|
|
67253
67349
|
writable: true,
|
|
67254
67350
|
initializer: null
|
|
67255
|
-
})),
|
|
67256
|
-
let MathContainer = (
|
|
67351
|
+
})), _class135)) || _class134);
|
|
67352
|
+
let MathContainer = (_dec161 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("math", `TODO`), _dec162 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("formulas", [Formulas]), _dec163 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("conditions", [ConditionsNode]), _dec161(_class136 = (_class137 = class MathContainer extends _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.SugarNodeBase {
|
|
67257
67353
|
constructor(...args) {
|
|
67258
67354
|
super(...args);
|
|
67259
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
67260
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions",
|
|
67355
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas", _descriptor92, this);
|
|
67356
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "conditions", _descriptor93, this);
|
|
67261
67357
|
}
|
|
67262
|
-
}, (
|
|
67358
|
+
}, (_descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "formulas", [_dec162], {
|
|
67263
67359
|
configurable: true,
|
|
67264
67360
|
enumerable: true,
|
|
67265
67361
|
writable: true,
|
|
67266
67362
|
initializer: null
|
|
67267
|
-
}),
|
|
67363
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "conditions", [_dec163], {
|
|
67268
67364
|
configurable: true,
|
|
67269
67365
|
enumerable: true,
|
|
67270
67366
|
writable: true,
|
|
67271
67367
|
initializer: null
|
|
67272
|
-
})),
|
|
67273
|
-
let FormulaMakeDictExpression = (
|
|
67368
|
+
})), _class137)) || _class136);
|
|
67369
|
+
let FormulaMakeDictExpression = (_dec164 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("makedict", `Получение словаря по ключу-значению из иннера`), _dec165 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ`), _dec166 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(undefined, [FormulaArgumentExpression, FormulaConstExpression, FormulaCastExpression], `Путь откуда брать значение или константа`), _dec164(_class138 = (_class139 = class FormulaMakeDictExpression extends FormulaExpression {
|
|
67274
67370
|
constructor(...args) {
|
|
67275
67371
|
super(...args);
|
|
67276
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67277
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression",
|
|
67372
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor94, this);
|
|
67373
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValueExpression", _descriptor95, this);
|
|
67278
67374
|
}
|
|
67279
|
-
}, (
|
|
67375
|
+
}, (_descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "sourceKeyPath", [_dec165], {
|
|
67280
67376
|
configurable: true,
|
|
67281
67377
|
enumerable: true,
|
|
67282
67378
|
writable: true,
|
|
67283
67379
|
initializer: null
|
|
67284
|
-
}),
|
|
67380
|
+
}), _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "sourceValueExpression", [_dec166], {
|
|
67285
67381
|
configurable: true,
|
|
67286
67382
|
enumerable: true,
|
|
67287
67383
|
writable: true,
|
|
67288
67384
|
initializer: null
|
|
67289
|
-
})),
|
|
67290
|
-
let FormulaGetSumByKeysExpression = (
|
|
67385
|
+
})), _class139)) || _class138);
|
|
67386
|
+
let FormulaGetSumByKeysExpression = (_dec167 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("getsumbykeys", `Вычисление суммы с группировкой в разных множественностях`), _dec168 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("dictPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь к словарю`), _dec169 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec167(_class140 = (_class141 = class FormulaGetSumByKeysExpression extends FormulaExpression {
|
|
67291
67387
|
constructor(...args) {
|
|
67292
67388
|
super(...args);
|
|
67293
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
67294
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67389
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath", _descriptor96, this);
|
|
67390
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor97, this);
|
|
67295
67391
|
}
|
|
67296
|
-
}, (
|
|
67392
|
+
}, (_descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "dictPath", [_dec168], {
|
|
67297
67393
|
configurable: true,
|
|
67298
67394
|
enumerable: true,
|
|
67299
67395
|
writable: true,
|
|
67300
67396
|
initializer: null
|
|
67301
|
-
}),
|
|
67397
|
+
}), _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "targetKeys", [_dec169], {
|
|
67302
67398
|
configurable: true,
|
|
67303
67399
|
enumerable: true,
|
|
67304
67400
|
writable: true,
|
|
67305
67401
|
initializer: null
|
|
67306
|
-
})),
|
|
67307
|
-
let FormulaGroupSumExpression = (
|
|
67402
|
+
})), _class141)) || _class140);
|
|
67403
|
+
let FormulaGroupSumExpression = (_dec170 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupsum", `Вычисление суммы с группировкой в разных множественностях`), _dec171 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec172 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec173 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceValuePath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь в суммируемой множественности откуда берем значение для свёртки`), _dec170(_class142 = (_class143 = class FormulaGroupSumExpression extends FormulaExpression {
|
|
67308
67404
|
constructor(...args) {
|
|
67309
67405
|
super(...args);
|
|
67310
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67311
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67312
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath",
|
|
67406
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor98, this);
|
|
67407
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor99, this);
|
|
67408
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceValuePath", _descriptor100, this);
|
|
67313
67409
|
}
|
|
67314
|
-
}, (
|
|
67410
|
+
}, (_descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "targetKeys", [_dec171], {
|
|
67315
67411
|
configurable: true,
|
|
67316
67412
|
enumerable: true,
|
|
67317
67413
|
writable: true,
|
|
67318
67414
|
initializer: null
|
|
67319
|
-
}),
|
|
67415
|
+
}), _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec172], {
|
|
67320
67416
|
configurable: true,
|
|
67321
67417
|
enumerable: true,
|
|
67322
67418
|
writable: true,
|
|
67323
67419
|
initializer: null
|
|
67324
|
-
}),
|
|
67420
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValuePath", [_dec173], {
|
|
67325
67421
|
configurable: true,
|
|
67326
67422
|
enumerable: true,
|
|
67327
67423
|
writable: true,
|
|
67328
67424
|
initializer: null
|
|
67329
|
-
})),
|
|
67330
|
-
let FormulaGroupCountExpression = (
|
|
67425
|
+
})), _class143)) || _class142);
|
|
67426
|
+
let FormulaGroupCountExpression = (_dec174 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("groupcount", `Вычисление количества элементов по группам в разных множественностях`), _dec175 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)("array", [FormulaArrayExpression]), _dec176 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attr)("sourceKeyPath", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.attrType.string.required, `Путь откуда брать ключ группы в суммируемой множественности`), _dec174(_class144 = (_class145 = class FormulaGroupCountExpression extends FormulaExpression {
|
|
67331
67427
|
constructor(...args) {
|
|
67332
67428
|
super(...args);
|
|
67333
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67334
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67429
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys", _descriptor101, this);
|
|
67430
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath", _descriptor102, this);
|
|
67335
67431
|
}
|
|
67336
|
-
}, (
|
|
67432
|
+
}, (_descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec175], {
|
|
67337
67433
|
configurable: true,
|
|
67338
67434
|
enumerable: true,
|
|
67339
67435
|
writable: true,
|
|
67340
67436
|
initializer: null
|
|
67341
|
-
}),
|
|
67437
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "sourceKeyPath", [_dec176], {
|
|
67342
67438
|
configurable: true,
|
|
67343
67439
|
enumerable: true,
|
|
67344
67440
|
writable: true,
|
|
67345
67441
|
initializer: null
|
|
67346
|
-
})),
|
|
67347
|
-
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression];
|
|
67442
|
+
})), _class145)) || _class144);
|
|
67443
|
+
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression];
|
|
67348
67444
|
|
|
67349
67445
|
/***/ }),
|
|
67350
67446
|
|
|
@@ -69715,6 +69811,12 @@ class KCXmlGeneratorBase {
|
|
|
69715
69811
|
}
|
|
69716
69812
|
return gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
69717
69813
|
}
|
|
69814
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaInstanceCountExpression) {
|
|
69815
|
+
const modelPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__.adjustPathMultiplicity)(this.schema, this.extendedSchemaInfo, prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeAttributePrefix(this.removeMultiplicity(expression.select)), "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
|
|
69816
|
+
const finalPath = modelPath.trimLastStarIfLastToken();
|
|
69817
|
+
deps.push(new RegularDependency(finalPath));
|
|
69818
|
+
return gcf(x => x.instanceCount, `"${finalPath.toLegacyPath()}"`);
|
|
69819
|
+
}
|
|
69718
69820
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
69719
69821
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
69720
69822
|
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
|
|
@@ -69940,6 +70042,9 @@ class KCXmlGeneratorBase {
|
|
|
69940
70042
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHasAutoFlagExpression) {
|
|
69941
70043
|
return "null";
|
|
69942
70044
|
}
|
|
70045
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumOfDayWeightsExpression) {
|
|
70046
|
+
return "null";
|
|
70047
|
+
}
|
|
69943
70048
|
// -----
|
|
69944
70049
|
|
|
69945
70050
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
@@ -71199,6 +71304,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71199
71304
|
/* harmony export */ StringLiteralExpression: () => (/* binding */ StringLiteralExpression),
|
|
71200
71305
|
/* harmony export */ SubstringExpression: () => (/* binding */ SubstringExpression),
|
|
71201
71306
|
/* harmony export */ SumBinaryExpression: () => (/* binding */ SumBinaryExpression),
|
|
71307
|
+
/* harmony export */ SumOfDayWeightsExpression: () => (/* binding */ SumOfDayWeightsExpression),
|
|
71202
71308
|
/* harmony export */ TrimExpression: () => (/* binding */ TrimExpression),
|
|
71203
71309
|
/* harmony export */ TypeReferenceExpression: () => (/* binding */ TypeReferenceExpression),
|
|
71204
71310
|
/* harmony export */ UnaryExpression: () => (/* binding */ UnaryExpression),
|
|
@@ -71954,6 +72060,22 @@ class DifferenceInDaysExpression extends FLangDecimalExpression {
|
|
|
71954
72060
|
return `differenceInDays(${expressions})`;
|
|
71955
72061
|
}
|
|
71956
72062
|
}
|
|
72063
|
+
class SumOfDayWeightsExpression extends FLangDecimalExpression {
|
|
72064
|
+
constructor(expressions) {
|
|
72065
|
+
super();
|
|
72066
|
+
this.expressions = void 0;
|
|
72067
|
+
this.expressions = expressions;
|
|
72068
|
+
}
|
|
72069
|
+
*getChildNodes() {
|
|
72070
|
+
for (const expression of this.expressions) {
|
|
72071
|
+
yield expression;
|
|
72072
|
+
}
|
|
72073
|
+
}
|
|
72074
|
+
convertToString() {
|
|
72075
|
+
const expressions = this.expressions.map(x => x.convertToString()).join(", ");
|
|
72076
|
+
return `sumOfDayWeights(${expressions})`;
|
|
72077
|
+
}
|
|
72078
|
+
}
|
|
71957
72079
|
class IsSnilsExpression extends FLangBoolExpression {
|
|
71958
72080
|
constructor(expression) {
|
|
71959
72081
|
super();
|
|
@@ -73120,6 +73242,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73120
73242
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaCountExpression) {
|
|
73121
73243
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule, "Count"), 0);
|
|
73122
73244
|
}
|
|
73245
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
73246
|
+
return this.compiledInstanceCountExpression(prefix, target, expression.select);
|
|
73247
|
+
}
|
|
73123
73248
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
|
|
73124
73249
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.LenExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.argument, prefix, target, addPrecalculationRule)));
|
|
73125
73250
|
}
|
|
@@ -73180,6 +73305,10 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73180
73305
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateTimeExpression) {
|
|
73181
73306
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.CastExpression(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.BuildInTypeExpression.dateTime);
|
|
73182
73307
|
}
|
|
73308
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaSumOfDayWeightsExpression) {
|
|
73309
|
+
const expressions = expression.arguments.map(x => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDateTimeIfNeed)(this.compileExpressionToFlangExpressionInternal(x, prefix, target, addPrecalculationRule)));
|
|
73310
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.SumOfDayWeightsExpression(expressions);
|
|
73311
|
+
}
|
|
73183
73312
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
73184
73313
|
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
73185
73314
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
@@ -73483,6 +73612,17 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73483
73612
|
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)(`Unknown ExpressionTypeProperty [${type}]`);
|
|
73484
73613
|
}
|
|
73485
73614
|
}
|
|
73615
|
+
compiledInstanceCountExpression(prefix, target, selectPath) {
|
|
73616
|
+
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath).trimLastStarIfLastToken();
|
|
73617
|
+
const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_5__.getMatchedAndDifferentModelPaths)(target.path, adjustedSelectPath);
|
|
73618
|
+
if (!splitInfo.differentPath.isContainIteration()) {
|
|
73619
|
+
const childrenExpression = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.makeStringValueReference)(adjustedSelectPath.toCurrentIteration().normalize(), "children");
|
|
73620
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.LenExpression(childrenExpression);
|
|
73621
|
+
// return new DecimalLiteralExpression();
|
|
73622
|
+
} else {
|
|
73623
|
+
throw new Error(`Instance count with nested multiplicity is not supported: target: ${target.path}, select path: ${selectPath}}`);
|
|
73624
|
+
}
|
|
73625
|
+
}
|
|
73486
73626
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
73487
73627
|
const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
|
|
73488
73628
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
@@ -78134,10 +78274,10 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78134
78274
|
}
|
|
78135
78275
|
}
|
|
78136
78276
|
};
|
|
78137
|
-
applyReplacements([/path\('([^']*?)',\s*'children'\)\??\.length/g, "
|
|
78277
|
+
applyReplacements([/path\('([^']*?)',\s*'children'\)\??\.length/g, "instanceCount($1)"]);
|
|
78138
78278
|
applyReplacements([/\/0\//g, "/"]);
|
|
78139
78279
|
applyReplacements([/^path\('([^@']*?)'\)$/g, "$1"]);
|
|
78140
|
-
applyReplacements([/count\('([^']*?)'\)/g, "
|
|
78280
|
+
applyReplacements([/count\('([^']*?)'\)/g, "instanceCount($1)"]);
|
|
78141
78281
|
applyReplacements([/path\('([^']*?)',\s*'error'\)\??\.length/g, "1"]);
|
|
78142
78282
|
applyReplacements([/!path\('([^']*?)', 'error'\)/g, "(1 == 0)"]);
|
|
78143
78283
|
applyReplacements([/path\('([^']*?)',\s*'\$errorCount'\)/g, "0"]);
|
|
@@ -78202,7 +78342,7 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78202
78342
|
return result;
|
|
78203
78343
|
}
|
|
78204
78344
|
const predefinedJsConditions = {
|
|
78205
|
-
"count('../РасчНал')": "
|
|
78345
|
+
"count('../РасчНал')": "instanceCount(../РасчНал) > 0",
|
|
78206
78346
|
"'true'": "(1 == 1)",
|
|
78207
78347
|
"'false'": "(1 == 0)",
|
|
78208
78348
|
"": "(1 == 0)",
|
|
@@ -79698,7 +79838,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79698
79838
|
/* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
|
|
79699
79839
|
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
79700
79840
|
/* harmony import */ var _ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
79701
|
-
/* harmony import */ var
|
|
79841
|
+
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
79842
|
+
/* harmony import */ var _FormNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
|
|
79843
|
+
|
|
79702
79844
|
|
|
79703
79845
|
|
|
79704
79846
|
|
|
@@ -79723,10 +79865,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79723
79865
|
|
|
79724
79866
|
class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.SugarNodeConverterBase {
|
|
79725
79867
|
static getAcceptNodeClass() {
|
|
79726
|
-
return
|
|
79868
|
+
return _FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode;
|
|
79727
79869
|
}
|
|
79728
79870
|
doBuildDataDeclaration(context) {
|
|
79729
|
-
const node = this.getCurrentNodeAs(
|
|
79871
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79730
79872
|
const rootPath = (0,_getRootPath__WEBPACK_IMPORTED_MODULE_3__.getRootPath)(node);
|
|
79731
79873
|
const entrySections = ["default"];
|
|
79732
79874
|
const optionalSections = this.findOptionalSections(node);
|
|
@@ -79746,18 +79888,18 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
79746
79888
|
}
|
|
79747
79889
|
};
|
|
79748
79890
|
allAttachmentSections.forEach(attachmentSection => {
|
|
79749
|
-
result[`${attachmentSection.path}
|
|
79891
|
+
result[`${attachmentSection.path}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__.AttachmentInfoPath.toLegacyPath()}`] = {
|
|
79750
79892
|
section: [attachmentSection.id]
|
|
79751
79893
|
};
|
|
79752
79894
|
});
|
|
79753
79895
|
return result;
|
|
79754
79896
|
}
|
|
79755
79897
|
buildChildrenDataDeclaration(context) {
|
|
79756
|
-
const node = this.getCurrentNodeAs(
|
|
79898
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79757
79899
|
return context.processChildrenDataDeclaration(node.pages);
|
|
79758
79900
|
}
|
|
79759
79901
|
*doTraverseChildren() {
|
|
79760
|
-
const node = this.getCurrentNodeAs(
|
|
79902
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79761
79903
|
yield* node.pages;
|
|
79762
79904
|
if (node.attachmentForms) {
|
|
79763
79905
|
yield* node.attachmentForms;
|
|
@@ -79767,7 +79909,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
79767
79909
|
}
|
|
79768
79910
|
}
|
|
79769
79911
|
doConvert(context) {
|
|
79770
|
-
const node = this.getCurrentNodeAs(
|
|
79912
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79771
79913
|
if (node.simple) {
|
|
79772
79914
|
return this.buildSimpleForm(context, node);
|
|
79773
79915
|
} else if (node.plain) {
|
|
@@ -80084,6 +80226,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
80084
80226
|
unitItemBuilder.prop(x => x.multipleAppearance).set("flat");
|
|
80085
80227
|
unitItemBuilder.prop(x => x.pages).set([]);
|
|
80086
80228
|
unitItemBuilder.prop(x => x.clearConfirmationSettings).set({});
|
|
80229
|
+
unitItemBuilder.prop(x => x.hasAttachment).set(true);
|
|
80087
80230
|
//unitItemBuilder.prop(x => x.maxOccurs).set(attachmentForm.maxOccurs ?? context.getPathMaxOccurs(page.getFullPath()));
|
|
80088
80231
|
|
|
80089
80232
|
if (attachmentForm.path != undefined) {
|