@kontur.candy/generator 5.73.2 → 5.73.4
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 +349 -200
- 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":
|
|
@@ -60192,7 +60243,15 @@ function removeTrailingSlash(inputStr) {
|
|
|
60192
60243
|
return inputStr;
|
|
60193
60244
|
}
|
|
60194
60245
|
function joinPaths(paths) {
|
|
60195
|
-
|
|
60246
|
+
let result = "";
|
|
60247
|
+
for (const path of paths) {
|
|
60248
|
+
if (path.startsWith("/")) {
|
|
60249
|
+
result = removeTrailingSlash(path);
|
|
60250
|
+
} else {
|
|
60251
|
+
result += (result == "" ? "" : "/") + removeTrailingSlash(path);
|
|
60252
|
+
}
|
|
60253
|
+
}
|
|
60254
|
+
return result;
|
|
60196
60255
|
}
|
|
60197
60256
|
function generateBlockKCXmlFormulas(block, parents) {
|
|
60198
60257
|
const nextParents = [...parents, {
|
|
@@ -60264,6 +60323,11 @@ function guessConditionTarget(condition) {
|
|
|
60264
60323
|
result = node.select;
|
|
60265
60324
|
}
|
|
60266
60325
|
}
|
|
60326
|
+
visitInstanceCountKCLangNode(node) {
|
|
60327
|
+
if (result == undefined) {
|
|
60328
|
+
result = node.select;
|
|
60329
|
+
}
|
|
60330
|
+
}
|
|
60267
60331
|
}
|
|
60268
60332
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
60269
60333
|
return result;
|
|
@@ -60319,6 +60383,11 @@ function inferConditionTarget(condition, targetValue) {
|
|
|
60319
60383
|
result = node.select;
|
|
60320
60384
|
}
|
|
60321
60385
|
}
|
|
60386
|
+
visitInstanceCountKCLangNode(node) {
|
|
60387
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
60388
|
+
result = node.select;
|
|
60389
|
+
}
|
|
60390
|
+
}
|
|
60322
60391
|
}
|
|
60323
60392
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
60324
60393
|
return result;
|
|
@@ -65662,6 +65731,10 @@ function traverseFormulaExpression(expression, visitor) {
|
|
|
65662
65731
|
visitor.beforeCountExpression(expression);
|
|
65663
65732
|
visitor.afterCountExpression(expression);
|
|
65664
65733
|
}
|
|
65734
|
+
if (expression instanceof _KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
65735
|
+
visitor.beforeInstanceCountExpression(expression);
|
|
65736
|
+
visitor.afterInstanceCountExpression(expression);
|
|
65737
|
+
}
|
|
65665
65738
|
}
|
|
65666
65739
|
|
|
65667
65740
|
/***/ }),
|
|
@@ -65729,6 +65802,13 @@ class FormulaProcessor {
|
|
|
65729
65802
|
const argumentName = this.addDependency(expression.select);
|
|
65730
65803
|
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
65731
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
|
+
}
|
|
65732
65812
|
beforeMultySumExpression(expression) {
|
|
65733
65813
|
// noop
|
|
65734
65814
|
}
|
|
@@ -66244,6 +66324,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66244
66324
|
/* harmony export */ FormulaGtExpression: () => (/* binding */ FormulaGtExpression),
|
|
66245
66325
|
/* harmony export */ FormulaHasAutoFlagExpression: () => (/* binding */ FormulaHasAutoFlagExpression),
|
|
66246
66326
|
/* harmony export */ FormulaHashSetExpression: () => (/* binding */ FormulaHashSetExpression),
|
|
66327
|
+
/* harmony export */ FormulaInstanceCountExpression: () => (/* binding */ FormulaInstanceCountExpression),
|
|
66247
66328
|
/* harmony export */ FormulaIsDateExpression: () => (/* binding */ FormulaIsDateExpression),
|
|
66248
66329
|
/* harmony export */ FormulaIsInnExpression: () => (/* binding */ FormulaIsInnExpression),
|
|
66249
66330
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
@@ -66269,6 +66350,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66269
66350
|
/* harmony export */ FormulaRoundExpression: () => (/* binding */ FormulaRoundExpression),
|
|
66270
66351
|
/* harmony export */ FormulaSubstringExpression: () => (/* binding */ FormulaSubstringExpression),
|
|
66271
66352
|
/* harmony export */ FormulaSumExpression: () => (/* binding */ FormulaSumExpression),
|
|
66353
|
+
/* harmony export */ FormulaSumOfDayWeightsExpression: () => (/* binding */ FormulaSumOfDayWeightsExpression),
|
|
66272
66354
|
/* harmony export */ FormulaWhenExpression: () => (/* binding */ FormulaWhenExpression),
|
|
66273
66355
|
/* harmony export */ FormulaXAbsExpression: () => (/* binding */ FormulaXAbsExpression),
|
|
66274
66356
|
/* harmony export */ Formulas: () => (/* binding */ Formulas),
|
|
@@ -66287,7 +66369,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66287
66369
|
|
|
66288
66370
|
|
|
66289
66371
|
|
|
66290
|
-
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;
|
|
66291
66373
|
|
|
66292
66374
|
|
|
66293
66375
|
|
|
@@ -66896,27 +66978,24 @@ let FormulaDateTimeExpression = (_dec96 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
66896
66978
|
writable: true,
|
|
66897
66979
|
initializer: null
|
|
66898
66980
|
})), _class84)) || _class83);
|
|
66899
|
-
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 {
|
|
66900
66982
|
constructor(...args) {
|
|
66901
66983
|
super(...args);
|
|
66902
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
66984
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor55, this);
|
|
66903
66985
|
}
|
|
66904
|
-
|
|
66905
|
-
return "isSnils";
|
|
66906
|
-
}
|
|
66907
|
-
}, (_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], {
|
|
66908
66987
|
configurable: true,
|
|
66909
66988
|
enumerable: true,
|
|
66910
66989
|
writable: true,
|
|
66911
66990
|
initializer: null
|
|
66912
66991
|
})), _class86)) || _class85);
|
|
66913
|
-
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 {
|
|
66914
66993
|
constructor(...args) {
|
|
66915
66994
|
super(...args);
|
|
66916
66995
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor56, this);
|
|
66917
66996
|
}
|
|
66918
66997
|
getLegacyExpressionTypeForFunctionName() {
|
|
66919
|
-
return "
|
|
66998
|
+
return "isSnils";
|
|
66920
66999
|
}
|
|
66921
67000
|
}, (_descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "select", [_dec101], {
|
|
66922
67001
|
configurable: true,
|
|
@@ -66924,13 +67003,13 @@ let FormulaIsRegNumSfrExpression = (_dec100 = (0,_markupGenerator_Serializer_Sug
|
|
|
66924
67003
|
writable: true,
|
|
66925
67004
|
initializer: null
|
|
66926
67005
|
})), _class88)) || _class87);
|
|
66927
|
-
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 {
|
|
66928
67007
|
constructor(...args) {
|
|
66929
67008
|
super(...args);
|
|
66930
67009
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor57, this);
|
|
66931
67010
|
}
|
|
66932
67011
|
getLegacyExpressionTypeForFunctionName() {
|
|
66933
|
-
return "
|
|
67012
|
+
return "isRegNumSfr";
|
|
66934
67013
|
}
|
|
66935
67014
|
}, (_descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "select", [_dec103], {
|
|
66936
67015
|
configurable: true,
|
|
@@ -66938,13 +67017,13 @@ let FormulaIsInnExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSeri
|
|
|
66938
67017
|
writable: true,
|
|
66939
67018
|
initializer: null
|
|
66940
67019
|
})), _class90)) || _class89);
|
|
66941
|
-
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 {
|
|
66942
67021
|
constructor(...args) {
|
|
66943
67022
|
super(...args);
|
|
66944
67023
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor58, this);
|
|
66945
67024
|
}
|
|
66946
67025
|
getLegacyExpressionTypeForFunctionName() {
|
|
66947
|
-
return "
|
|
67026
|
+
return "isInn";
|
|
66948
67027
|
}
|
|
66949
67028
|
}, (_descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "select", [_dec105], {
|
|
66950
67029
|
configurable: true,
|
|
@@ -66952,122 +67031,125 @@ let FormulaIsValidMirCardNumberExpression = (_dec104 = (0,_markupGenerator_Seria
|
|
|
66952
67031
|
writable: true,
|
|
66953
67032
|
initializer: null
|
|
66954
67033
|
})), _class92)) || _class91);
|
|
66955
|
-
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 {
|
|
66956
67049
|
constructor(...args) {
|
|
66957
67050
|
super(...args);
|
|
66958
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik",
|
|
66959
|
-
_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);
|
|
66960
67053
|
}
|
|
66961
67054
|
getLegacyExpressionTypeForFunctionName() {
|
|
66962
67055
|
return "isValidAccountNumber";
|
|
66963
67056
|
}
|
|
66964
|
-
}, (
|
|
67057
|
+
}, (_descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "bik", [_dec109], {
|
|
66965
67058
|
configurable: true,
|
|
66966
67059
|
enumerable: true,
|
|
66967
67060
|
writable: true,
|
|
66968
67061
|
initializer: null
|
|
66969
|
-
}),
|
|
67062
|
+
}), _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "account", [_dec110], {
|
|
66970
67063
|
configurable: true,
|
|
66971
67064
|
enumerable: true,
|
|
66972
67065
|
writable: true,
|
|
66973
67066
|
initializer: null
|
|
66974
|
-
})),
|
|
66975
|
-
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 {
|
|
66976
67069
|
constructor(...args) {
|
|
66977
67070
|
super(...args);
|
|
66978
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
66979
|
-
_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);
|
|
66980
67073
|
}
|
|
66981
|
-
}, (
|
|
67074
|
+
}, (_descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "select", [_dec112], {
|
|
66982
67075
|
configurable: true,
|
|
66983
67076
|
enumerable: true,
|
|
66984
67077
|
writable: true,
|
|
66985
67078
|
initializer: null
|
|
66986
|
-
}),
|
|
67079
|
+
}), _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "type", [_dec113], {
|
|
66987
67080
|
configurable: true,
|
|
66988
67081
|
enumerable: true,
|
|
66989
67082
|
writable: true,
|
|
66990
67083
|
initializer: function () {
|
|
66991
67084
|
return "decimal";
|
|
66992
67085
|
}
|
|
66993
|
-
})),
|
|
66994
|
-
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 {
|
|
66995
67088
|
constructor(...args) {
|
|
66996
67089
|
super(...args);
|
|
66997
|
-
_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);
|
|
66998
67091
|
}
|
|
66999
|
-
}, (
|
|
67092
|
+
}, (_descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "items", [_dec115], {
|
|
67000
67093
|
configurable: true,
|
|
67001
67094
|
enumerable: true,
|
|
67002
67095
|
writable: true,
|
|
67003
67096
|
initializer: null
|
|
67004
|
-
})),
|
|
67005
|
-
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 {
|
|
67006
67099
|
constructor(...args) {
|
|
67007
67100
|
super(...args);
|
|
67008
|
-
_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);
|
|
67009
67102
|
}
|
|
67010
|
-
}, (
|
|
67103
|
+
}, (_descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "filterColumn", [_dec117], {
|
|
67011
67104
|
configurable: true,
|
|
67012
67105
|
enumerable: true,
|
|
67013
67106
|
writable: true,
|
|
67014
67107
|
initializer: null
|
|
67015
|
-
})),
|
|
67016
|
-
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 {
|
|
67017
67110
|
constructor(...args) {
|
|
67018
67111
|
super(...args);
|
|
67019
|
-
_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);
|
|
67020
67113
|
}
|
|
67021
|
-
}, (
|
|
67114
|
+
}, (_descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "filterKey", [_dec119], {
|
|
67022
67115
|
configurable: true,
|
|
67023
67116
|
enumerable: true,
|
|
67024
67117
|
writable: true,
|
|
67025
67118
|
initializer: null
|
|
67026
|
-
})),
|
|
67027
|
-
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 {
|
|
67028
67121
|
constructor(...args) {
|
|
67029
67122
|
super(...args);
|
|
67030
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
67031
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
67032
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
67033
|
-
_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);
|
|
67034
67127
|
}
|
|
67035
67128
|
getLegacyExpressionTypeForFunctionName() {
|
|
67036
67129
|
return "getPicklistValues";
|
|
67037
67130
|
}
|
|
67038
|
-
}, (
|
|
67131
|
+
}, (_descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "gId", [_dec121], {
|
|
67039
67132
|
configurable: true,
|
|
67040
67133
|
enumerable: true,
|
|
67041
67134
|
writable: true,
|
|
67042
67135
|
initializer: null
|
|
67043
|
-
}),
|
|
67136
|
+
}), _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterColumn", [_dec122], {
|
|
67044
67137
|
configurable: true,
|
|
67045
67138
|
enumerable: true,
|
|
67046
67139
|
writable: true,
|
|
67047
67140
|
initializer: null
|
|
67048
|
-
}),
|
|
67141
|
+
}), _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterKey", [_dec123], {
|
|
67049
67142
|
configurable: true,
|
|
67050
67143
|
enumerable: true,
|
|
67051
67144
|
writable: true,
|
|
67052
67145
|
initializer: null
|
|
67053
|
-
}),
|
|
67054
|
-
configurable: true,
|
|
67055
|
-
enumerable: true,
|
|
67056
|
-
writable: true,
|
|
67057
|
-
initializer: null
|
|
67058
|
-
})), _class104)) || _class103);
|
|
67059
|
-
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 {
|
|
67060
|
-
constructor(...args) {
|
|
67061
|
-
super(...args);
|
|
67062
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor70, this);
|
|
67063
|
-
}
|
|
67064
|
-
}, (_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], {
|
|
67065
67147
|
configurable: true,
|
|
67066
67148
|
enumerable: true,
|
|
67067
67149
|
writable: true,
|
|
67068
67150
|
initializer: null
|
|
67069
67151
|
})), _class106)) || _class105);
|
|
67070
|
-
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 {
|
|
67071
67153
|
constructor(...args) {
|
|
67072
67154
|
super(...args);
|
|
67073
67155
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor71, this);
|
|
@@ -67078,265 +67160,287 @@ let FormulaHashSetExpression = (_dec125 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
67078
67160
|
writable: true,
|
|
67079
67161
|
initializer: null
|
|
67080
67162
|
})), _class108)) || _class107);
|
|
67081
|
-
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 {
|
|
67082
67164
|
constructor(...args) {
|
|
67083
67165
|
super(...args);
|
|
67084
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67085
|
-
}
|
|
67086
|
-
getLegacyExpressionTypeForFunctionName() {
|
|
67087
|
-
return "exists";
|
|
67166
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor72, this);
|
|
67088
67167
|
}
|
|
67089
|
-
}, (_descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "
|
|
67168
|
+
}, (_descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "expression", [_dec128], {
|
|
67090
67169
|
configurable: true,
|
|
67091
67170
|
enumerable: true,
|
|
67092
67171
|
writable: true,
|
|
67093
67172
|
initializer: null
|
|
67094
67173
|
})), _class110)) || _class109);
|
|
67095
|
-
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 {
|
|
67096
67175
|
constructor(...args) {
|
|
67097
67176
|
super(...args);
|
|
67098
67177
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor73, this);
|
|
67099
67178
|
}
|
|
67179
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
67180
|
+
return "exists";
|
|
67181
|
+
}
|
|
67100
67182
|
}, (_descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "select", [_dec130], {
|
|
67101
67183
|
configurable: true,
|
|
67102
67184
|
enumerable: true,
|
|
67103
67185
|
writable: true,
|
|
67104
67186
|
initializer: null
|
|
67105
67187
|
})), _class112)) || _class111);
|
|
67106
|
-
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 {
|
|
67107
67189
|
constructor(...args) {
|
|
67108
67190
|
super(...args);
|
|
67109
67191
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor74, this);
|
|
67110
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor75, this);
|
|
67111
67192
|
}
|
|
67112
67193
|
}, (_descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "select", [_dec132], {
|
|
67113
67194
|
configurable: true,
|
|
67114
67195
|
enumerable: true,
|
|
67115
67196
|
writable: true,
|
|
67116
67197
|
initializer: null
|
|
67117
|
-
}), _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "withNullOrEmptyValues", [_dec133], {
|
|
67118
|
-
configurable: true,
|
|
67119
|
-
enumerable: true,
|
|
67120
|
-
writable: true,
|
|
67121
|
-
initializer: null
|
|
67122
67198
|
})), _class114)) || _class113);
|
|
67123
|
-
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 {
|
|
67124
67200
|
constructor(...args) {
|
|
67125
67201
|
super(...args);
|
|
67126
|
-
_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);
|
|
67127
67204
|
}
|
|
67128
|
-
}, (
|
|
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], {
|
|
67129
67211
|
configurable: true,
|
|
67130
67212
|
enumerable: true,
|
|
67131
67213
|
writable: true,
|
|
67132
67214
|
initializer: null
|
|
67133
67215
|
})), _class116)) || _class115);
|
|
67134
|
-
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 {
|
|
67135
67217
|
constructor(...args) {
|
|
67136
67218
|
super(...args);
|
|
67137
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67219
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor77, this);
|
|
67138
67220
|
}
|
|
67139
|
-
}, (_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], {
|
|
67140
67222
|
configurable: true,
|
|
67141
67223
|
enumerable: true,
|
|
67142
67224
|
writable: true,
|
|
67143
67225
|
initializer: null
|
|
67144
67226
|
})), _class118)) || _class117);
|
|
67145
|
-
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 {
|
|
67146
67228
|
constructor(...args) {
|
|
67147
67229
|
super(...args);
|
|
67148
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67230
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor78, this);
|
|
67149
67231
|
}
|
|
67150
|
-
}, (_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], {
|
|
67151
67233
|
configurable: true,
|
|
67152
67234
|
enumerable: true,
|
|
67153
67235
|
writable: true,
|
|
67154
67236
|
initializer: null
|
|
67155
67237
|
})), _class120)) || _class119);
|
|
67156
|
-
let
|
|
67157
|
-
|
|
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 {
|
|
67158
67262
|
constructor(...args) {
|
|
67159
67263
|
super(...args);
|
|
67160
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
67161
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
67162
|
-
_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);
|
|
67163
67267
|
}
|
|
67164
|
-
}, (
|
|
67268
|
+
}, (_descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "match", [_dec146], {
|
|
67165
67269
|
configurable: true,
|
|
67166
67270
|
enumerable: true,
|
|
67167
67271
|
writable: true,
|
|
67168
67272
|
initializer: null
|
|
67169
|
-
}),
|
|
67273
|
+
}), _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "target", [_dec147], {
|
|
67170
67274
|
configurable: true,
|
|
67171
67275
|
enumerable: true,
|
|
67172
67276
|
writable: true,
|
|
67173
67277
|
initializer: null
|
|
67174
|
-
}),
|
|
67278
|
+
}), _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "expression", [_dec148], {
|
|
67175
67279
|
configurable: true,
|
|
67176
67280
|
enumerable: true,
|
|
67177
67281
|
writable: true,
|
|
67178
67282
|
initializer: null
|
|
67179
|
-
})),
|
|
67180
|
-
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 {
|
|
67181
67285
|
constructor(...args) {
|
|
67182
67286
|
super(...args);
|
|
67183
|
-
_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);
|
|
67184
67288
|
}
|
|
67185
|
-
}, (
|
|
67289
|
+
}, (_descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class129.prototype, "expression", [_dec150], {
|
|
67186
67290
|
configurable: true,
|
|
67187
67291
|
enumerable: true,
|
|
67188
67292
|
writable: true,
|
|
67189
67293
|
initializer: null
|
|
67190
|
-
})),
|
|
67191
|
-
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 {
|
|
67192
67296
|
constructor(...args) {
|
|
67193
67297
|
super(...args);
|
|
67194
|
-
_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);
|
|
67195
67299
|
}
|
|
67196
|
-
}, (
|
|
67300
|
+
}, (_descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "items", [_dec152], {
|
|
67197
67301
|
configurable: true,
|
|
67198
67302
|
enumerable: true,
|
|
67199
67303
|
writable: true,
|
|
67200
67304
|
initializer: null
|
|
67201
|
-
})),
|
|
67202
|
-
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 {
|
|
67203
67307
|
constructor(...args) {
|
|
67204
67308
|
super(...args);
|
|
67205
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
67206
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
67207
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
67208
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
67209
|
-
_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);
|
|
67210
67314
|
}
|
|
67211
|
-
}, (
|
|
67315
|
+
}, (_descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "match", [_dec154], {
|
|
67212
67316
|
configurable: true,
|
|
67213
67317
|
enumerable: true,
|
|
67214
67318
|
writable: true,
|
|
67215
67319
|
initializer: null
|
|
67216
|
-
}),
|
|
67320
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "target", [_dec155], {
|
|
67217
67321
|
configurable: true,
|
|
67218
67322
|
enumerable: true,
|
|
67219
67323
|
writable: true,
|
|
67220
67324
|
initializer: null
|
|
67221
|
-
}),
|
|
67325
|
+
}), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "description", [_dec156], {
|
|
67222
67326
|
configurable: true,
|
|
67223
67327
|
enumerable: true,
|
|
67224
67328
|
writable: true,
|
|
67225
67329
|
initializer: null
|
|
67226
|
-
}),
|
|
67330
|
+
}), _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "errorLevel", [_dec157], {
|
|
67227
67331
|
configurable: true,
|
|
67228
67332
|
enumerable: true,
|
|
67229
67333
|
writable: true,
|
|
67230
67334
|
initializer: null
|
|
67231
|
-
}),
|
|
67335
|
+
}), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec158], {
|
|
67232
67336
|
configurable: true,
|
|
67233
67337
|
enumerable: true,
|
|
67234
67338
|
writable: true,
|
|
67235
67339
|
initializer: null
|
|
67236
|
-
})),
|
|
67237
|
-
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 {
|
|
67238
67342
|
constructor(...args) {
|
|
67239
67343
|
super(...args);
|
|
67240
|
-
_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);
|
|
67241
67345
|
}
|
|
67242
|
-
}, (
|
|
67346
|
+
}, (_descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec160], {
|
|
67243
67347
|
configurable: true,
|
|
67244
67348
|
enumerable: true,
|
|
67245
67349
|
writable: true,
|
|
67246
67350
|
initializer: null
|
|
67247
|
-
})),
|
|
67248
|
-
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 {
|
|
67249
67353
|
constructor(...args) {
|
|
67250
67354
|
super(...args);
|
|
67251
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
67252
|
-
_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);
|
|
67253
67357
|
}
|
|
67254
|
-
}, (
|
|
67358
|
+
}, (_descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "formulas", [_dec162], {
|
|
67255
67359
|
configurable: true,
|
|
67256
67360
|
enumerable: true,
|
|
67257
67361
|
writable: true,
|
|
67258
67362
|
initializer: null
|
|
67259
|
-
}),
|
|
67363
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "conditions", [_dec163], {
|
|
67260
67364
|
configurable: true,
|
|
67261
67365
|
enumerable: true,
|
|
67262
67366
|
writable: true,
|
|
67263
67367
|
initializer: null
|
|
67264
|
-
})),
|
|
67265
|
-
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 {
|
|
67266
67370
|
constructor(...args) {
|
|
67267
67371
|
super(...args);
|
|
67268
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67269
|
-
_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);
|
|
67270
67374
|
}
|
|
67271
|
-
}, (
|
|
67375
|
+
}, (_descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "sourceKeyPath", [_dec165], {
|
|
67272
67376
|
configurable: true,
|
|
67273
67377
|
enumerable: true,
|
|
67274
67378
|
writable: true,
|
|
67275
67379
|
initializer: null
|
|
67276
|
-
}),
|
|
67380
|
+
}), _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "sourceValueExpression", [_dec166], {
|
|
67277
67381
|
configurable: true,
|
|
67278
67382
|
enumerable: true,
|
|
67279
67383
|
writable: true,
|
|
67280
67384
|
initializer: null
|
|
67281
|
-
})),
|
|
67282
|
-
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 {
|
|
67283
67387
|
constructor(...args) {
|
|
67284
67388
|
super(...args);
|
|
67285
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
67286
|
-
_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);
|
|
67287
67391
|
}
|
|
67288
|
-
}, (
|
|
67392
|
+
}, (_descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "dictPath", [_dec168], {
|
|
67289
67393
|
configurable: true,
|
|
67290
67394
|
enumerable: true,
|
|
67291
67395
|
writable: true,
|
|
67292
67396
|
initializer: null
|
|
67293
|
-
}),
|
|
67397
|
+
}), _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "targetKeys", [_dec169], {
|
|
67294
67398
|
configurable: true,
|
|
67295
67399
|
enumerable: true,
|
|
67296
67400
|
writable: true,
|
|
67297
67401
|
initializer: null
|
|
67298
|
-
})),
|
|
67299
|
-
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 {
|
|
67300
67404
|
constructor(...args) {
|
|
67301
67405
|
super(...args);
|
|
67302
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67303
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67304
|
-
_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);
|
|
67305
67409
|
}
|
|
67306
|
-
}, (
|
|
67410
|
+
}, (_descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "targetKeys", [_dec171], {
|
|
67307
67411
|
configurable: true,
|
|
67308
67412
|
enumerable: true,
|
|
67309
67413
|
writable: true,
|
|
67310
67414
|
initializer: null
|
|
67311
|
-
}),
|
|
67415
|
+
}), _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec172], {
|
|
67312
67416
|
configurable: true,
|
|
67313
67417
|
enumerable: true,
|
|
67314
67418
|
writable: true,
|
|
67315
67419
|
initializer: null
|
|
67316
|
-
}),
|
|
67420
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValuePath", [_dec173], {
|
|
67317
67421
|
configurable: true,
|
|
67318
67422
|
enumerable: true,
|
|
67319
67423
|
writable: true,
|
|
67320
67424
|
initializer: null
|
|
67321
|
-
})),
|
|
67322
|
-
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 {
|
|
67323
67427
|
constructor(...args) {
|
|
67324
67428
|
super(...args);
|
|
67325
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67326
|
-
_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);
|
|
67327
67431
|
}
|
|
67328
|
-
}, (
|
|
67432
|
+
}, (_descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec175], {
|
|
67329
67433
|
configurable: true,
|
|
67330
67434
|
enumerable: true,
|
|
67331
67435
|
writable: true,
|
|
67332
67436
|
initializer: null
|
|
67333
|
-
}),
|
|
67437
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "sourceKeyPath", [_dec176], {
|
|
67334
67438
|
configurable: true,
|
|
67335
67439
|
enumerable: true,
|
|
67336
67440
|
writable: true,
|
|
67337
67441
|
initializer: null
|
|
67338
|
-
})),
|
|
67339
|
-
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];
|
|
67340
67444
|
|
|
67341
67445
|
/***/ }),
|
|
67342
67446
|
|
|
@@ -69707,6 +69811,12 @@ class KCXmlGeneratorBase {
|
|
|
69707
69811
|
}
|
|
69708
69812
|
return gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
69709
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
|
+
}
|
|
69710
69820
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
69711
69821
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
69712
69822
|
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
|
|
@@ -69932,6 +70042,9 @@ class KCXmlGeneratorBase {
|
|
|
69932
70042
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHasAutoFlagExpression) {
|
|
69933
70043
|
return "null";
|
|
69934
70044
|
}
|
|
70045
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumOfDayWeightsExpression) {
|
|
70046
|
+
return "null";
|
|
70047
|
+
}
|
|
69935
70048
|
// -----
|
|
69936
70049
|
|
|
69937
70050
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
@@ -70974,7 +71087,7 @@ function getAllMatches(regexPattern, sourceString) {
|
|
|
70974
71087
|
}
|
|
70975
71088
|
function getRequisitesFromEvaluablePropValue(filter) {
|
|
70976
71089
|
var _filter$match$map$fil, _filter$match, _getAllMatches$map$fi;
|
|
70977
|
-
return [...((_filter$match$map$fil = (_filter$match = filter.match(/path([^)]+)/g)) === null || _filter$match === void 0 ? void 0 : _filter$match.map(path => path.slice(6, -1)).filter(path => path.startsWith("@clientInfo") || path.startsWith("@formsClientInfo")).map(path => `${path}.value`)) !== null && _filter$match$map$fil !== void 0 ? _filter$match$map$fil : []), ...((_getAllMatches$map$fi = getAllMatches(/getProperty\('([^']+?)'\)/g, filter).map(path => path[1]).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).filter(path => path.startsWith("currentAccount") || path.startsWith("recipient") || (path === null || path === void 0 ? void 0 : path.startsWith("sender"))).map(path => `@formsClientInfo/${path}.value`)) !== null && _getAllMatches$map$fi !== void 0 ? _getAllMatches$map$fi : [])];
|
|
71090
|
+
return [...((_filter$match$map$fil = (_filter$match = filter.match(/path([^)]+)/g)) === null || _filter$match === void 0 ? void 0 : _filter$match.map(path => path.slice(6, -1)).filter(path => path.startsWith("@clientInfo") || path.startsWith("@formsClientInfo") || path.startsWith("@draftMeta")).map(path => `${path}.value`)) !== null && _filter$match$map$fil !== void 0 ? _filter$match$map$fil : []), ...((_getAllMatches$map$fi = getAllMatches(/getProperty\('([^']+?)'\)/g, filter).map(path => path[1]).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).filter(path => path.startsWith("currentAccount") || path.startsWith("recipient") || (path === null || path === void 0 ? void 0 : path.startsWith("sender"))).map(path => `@formsClientInfo/${path}.value`)) !== null && _getAllMatches$map$fi !== void 0 ? _getAllMatches$map$fi : [])];
|
|
70978
71091
|
}
|
|
70979
71092
|
function getPathsFromEvaluablePropValue(evaluableProp) {
|
|
70980
71093
|
const pathRegex = /(?<=path\((?:'|")).*?(?=(?:'|"))/g;
|
|
@@ -71191,6 +71304,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71191
71304
|
/* harmony export */ StringLiteralExpression: () => (/* binding */ StringLiteralExpression),
|
|
71192
71305
|
/* harmony export */ SubstringExpression: () => (/* binding */ SubstringExpression),
|
|
71193
71306
|
/* harmony export */ SumBinaryExpression: () => (/* binding */ SumBinaryExpression),
|
|
71307
|
+
/* harmony export */ SumOfDayWeightsExpression: () => (/* binding */ SumOfDayWeightsExpression),
|
|
71194
71308
|
/* harmony export */ TrimExpression: () => (/* binding */ TrimExpression),
|
|
71195
71309
|
/* harmony export */ TypeReferenceExpression: () => (/* binding */ TypeReferenceExpression),
|
|
71196
71310
|
/* harmony export */ UnaryExpression: () => (/* binding */ UnaryExpression),
|
|
@@ -71946,6 +72060,22 @@ class DifferenceInDaysExpression extends FLangDecimalExpression {
|
|
|
71946
72060
|
return `differenceInDays(${expressions})`;
|
|
71947
72061
|
}
|
|
71948
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
|
+
}
|
|
71949
72079
|
class IsSnilsExpression extends FLangBoolExpression {
|
|
71950
72080
|
constructor(expression) {
|
|
71951
72081
|
super();
|
|
@@ -73112,6 +73242,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73112
73242
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaCountExpression) {
|
|
73113
73243
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule, "Count"), 0);
|
|
73114
73244
|
}
|
|
73245
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
73246
|
+
return this.compiledInstanceCountExpression(prefix, target, expression.select);
|
|
73247
|
+
}
|
|
73115
73248
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
|
|
73116
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)));
|
|
73117
73250
|
}
|
|
@@ -73172,6 +73305,10 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73172
73305
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateTimeExpression) {
|
|
73173
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);
|
|
73174
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
|
+
}
|
|
73175
73312
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
73176
73313
|
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
73177
73314
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
@@ -73475,6 +73612,17 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73475
73612
|
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)(`Unknown ExpressionTypeProperty [${type}]`);
|
|
73476
73613
|
}
|
|
73477
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
|
+
}
|
|
73478
73626
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
73479
73627
|
const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
|
|
73480
73628
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
@@ -78126,10 +78274,10 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78126
78274
|
}
|
|
78127
78275
|
}
|
|
78128
78276
|
};
|
|
78129
|
-
applyReplacements([/path\('([^']*?)',\s*'children'\)\??\.length/g, "
|
|
78277
|
+
applyReplacements([/path\('([^']*?)',\s*'children'\)\??\.length/g, "instanceCount($1)"]);
|
|
78130
78278
|
applyReplacements([/\/0\//g, "/"]);
|
|
78131
78279
|
applyReplacements([/^path\('([^@']*?)'\)$/g, "$1"]);
|
|
78132
|
-
applyReplacements([/count\('([^']*?)'\)/g, "
|
|
78280
|
+
applyReplacements([/count\('([^']*?)'\)/g, "instanceCount($1)"]);
|
|
78133
78281
|
applyReplacements([/path\('([^']*?)',\s*'error'\)\??\.length/g, "1"]);
|
|
78134
78282
|
applyReplacements([/!path\('([^']*?)', 'error'\)/g, "(1 == 0)"]);
|
|
78135
78283
|
applyReplacements([/path\('([^']*?)',\s*'\$errorCount'\)/g, "0"]);
|
|
@@ -78145,6 +78293,7 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78145
78293
|
applyReplacements([/path\('([^']*?)'\)\.length/g, "length($1)"]);
|
|
78146
78294
|
applyReplacements([/path\('@formsClientInfo\/[^']*?'\)/g, "''"]);
|
|
78147
78295
|
applyReplacements([/path\('@featureFlags\/([^']*?)'\)/g, "getProperty('$1')"]);
|
|
78296
|
+
applyReplacements([/path\('@draftMeta\/([^']*?)'\)/g, "getProperty('draftMeta/$1')"]);
|
|
78148
78297
|
applyReplacements([/path\('@settings\/someSettings'\)/g, "getProperty('someSettings')"]);
|
|
78149
78298
|
applyReplacements([/path\('@settings\/scenario'\)/g, "''"]);
|
|
78150
78299
|
applyReplacements([/path\('@settings\/isForeign'\)/g, "'false'"]);
|
|
@@ -78193,7 +78342,7 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78193
78342
|
return result;
|
|
78194
78343
|
}
|
|
78195
78344
|
const predefinedJsConditions = {
|
|
78196
|
-
"count('../РасчНал')": "
|
|
78345
|
+
"count('../РасчНал')": "instanceCount(../РасчНал) > 0",
|
|
78197
78346
|
"'true'": "(1 == 1)",
|
|
78198
78347
|
"'false'": "(1 == 0)",
|
|
78199
78348
|
"": "(1 == 0)",
|