@kontur.candy/generator 5.74.0-forminform.0 → 5.74.0-forminform.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +393 -217
- 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],
|
|
@@ -50114,9 +50147,11 @@ class KCLangAntlrVisitor {
|
|
|
50114
50147
|
};
|
|
50115
50148
|
}
|
|
50116
50149
|
visitConstString(ctx) {
|
|
50150
|
+
const stringLiteralAsIs = ctx.STRING_LITERAL().text;
|
|
50151
|
+
const literalValue = stringLiteralAsIs.startsWith("'") ? stringLiteralAsIs.replace(/^\'|\'$/g, "").replace(/\\'/g, "'") : stringLiteralAsIs.replace(/^\"|\"$/g, "").replace(/\\"/g, '"');
|
|
50117
50152
|
return {
|
|
50118
50153
|
type: "string",
|
|
50119
|
-
value:
|
|
50154
|
+
value: literalValue
|
|
50120
50155
|
};
|
|
50121
50156
|
}
|
|
50122
50157
|
visitConstDecimal(ctx) {
|
|
@@ -59335,6 +59370,9 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
59335
59370
|
case "count":
|
|
59336
59371
|
visitor.visitCountKCLangNode(node);
|
|
59337
59372
|
break;
|
|
59373
|
+
case "instanceCount":
|
|
59374
|
+
visitor.visitInstanceCountKCLangNode(node);
|
|
59375
|
+
break;
|
|
59338
59376
|
case "or":
|
|
59339
59377
|
for (const expression of node.expressions) {
|
|
59340
59378
|
traverseKCLangExpression(expression, visitor);
|
|
@@ -59406,6 +59444,9 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
59406
59444
|
case "dateTime":
|
|
59407
59445
|
visitor.visitDateTimeKCLangNode(node);
|
|
59408
59446
|
break;
|
|
59447
|
+
case "sumOfDayWeights":
|
|
59448
|
+
visitor.visitSumOfDayWeightsKCLangNode(node);
|
|
59449
|
+
break;
|
|
59409
59450
|
case "getPicklistValues":
|
|
59410
59451
|
visitor.visitGetPicklistValuesKCLangNode(node);
|
|
59411
59452
|
break;
|
|
@@ -59539,6 +59580,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
59539
59580
|
visitCountKCLangNode(node) {
|
|
59540
59581
|
// default empty implementation
|
|
59541
59582
|
}
|
|
59583
|
+
visitInstanceCountKCLangNode(node) {
|
|
59584
|
+
// default empty implementation
|
|
59585
|
+
}
|
|
59542
59586
|
visitSubstringKCLangNode(node) {
|
|
59543
59587
|
// default empty implementation
|
|
59544
59588
|
}
|
|
@@ -59590,6 +59634,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
59590
59634
|
visitDateTimeKCLangNode(node) {
|
|
59591
59635
|
// default empty implementation
|
|
59592
59636
|
}
|
|
59637
|
+
visitSumOfDayWeightsKCLangNode(node) {
|
|
59638
|
+
// default empty implementation
|
|
59639
|
+
}
|
|
59593
59640
|
visitHasAutoFlagKCLangNode(node) {
|
|
59594
59641
|
// default empty implementation
|
|
59595
59642
|
}
|
|
@@ -59767,6 +59814,8 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
59767
59814
|
return `${pathFnName}("${expression.select}")`;
|
|
59768
59815
|
case "count":
|
|
59769
59816
|
return `${countFnName}("${expression.select}")`;
|
|
59817
|
+
case "instanceCount":
|
|
59818
|
+
return `${countFnName}("${expression.select}")`;
|
|
59770
59819
|
case "multiply":
|
|
59771
59820
|
case "division":
|
|
59772
59821
|
case "noteq":
|
|
@@ -59963,6 +60012,7 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
59963
60012
|
case "addMonths":
|
|
59964
60013
|
case "addYears":
|
|
59965
60014
|
case "dateToString":
|
|
60015
|
+
case "sumOfDayWeights":
|
|
59966
60016
|
case "getPicklistValues":
|
|
59967
60017
|
case "nodeps":
|
|
59968
60018
|
case "array":
|
|
@@ -60115,6 +60165,7 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
60115
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");
|
|
60116
60166
|
case "differenceInMonths":
|
|
60117
60167
|
case "differenceInDays":
|
|
60168
|
+
case "sumOfDayWeights":
|
|
60118
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");
|
|
60119
60170
|
case "addDays":
|
|
60120
60171
|
case "addMonths":
|
|
@@ -60141,6 +60192,8 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
60141
60192
|
return `<m:argument select="${printPath(expression.select)}" />`;
|
|
60142
60193
|
case "count":
|
|
60143
60194
|
return `<m:count select="${printPath(expression.select)}" />`;
|
|
60195
|
+
case "instanceCount":
|
|
60196
|
+
return `<m:instanceCount select="${printPath(expression.select)}" />`;
|
|
60144
60197
|
case "join":
|
|
60145
60198
|
return [`<m:join>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.array, prefixPath), 2), `</m:join>`].join("\n");
|
|
60146
60199
|
case "property":
|
|
@@ -60190,7 +60243,15 @@ function removeTrailingSlash(inputStr) {
|
|
|
60190
60243
|
return inputStr;
|
|
60191
60244
|
}
|
|
60192
60245
|
function joinPaths(paths) {
|
|
60193
|
-
|
|
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;
|
|
60194
60255
|
}
|
|
60195
60256
|
function generateBlockKCXmlFormulas(block, parents) {
|
|
60196
60257
|
const nextParents = [...parents, {
|
|
@@ -60262,6 +60323,11 @@ function guessConditionTarget(condition) {
|
|
|
60262
60323
|
result = node.select;
|
|
60263
60324
|
}
|
|
60264
60325
|
}
|
|
60326
|
+
visitInstanceCountKCLangNode(node) {
|
|
60327
|
+
if (result == undefined) {
|
|
60328
|
+
result = node.select;
|
|
60329
|
+
}
|
|
60330
|
+
}
|
|
60265
60331
|
}
|
|
60266
60332
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new GuessConditionTargetVisitor());
|
|
60267
60333
|
return result;
|
|
@@ -60317,6 +60383,11 @@ function inferConditionTarget(condition, targetValue) {
|
|
|
60317
60383
|
result = node.select;
|
|
60318
60384
|
}
|
|
60319
60385
|
}
|
|
60386
|
+
visitInstanceCountKCLangNode(node) {
|
|
60387
|
+
if (result == undefined && node.select.endsWith(this.path)) {
|
|
60388
|
+
result = node.select;
|
|
60389
|
+
}
|
|
60390
|
+
}
|
|
60320
60391
|
}
|
|
60321
60392
|
(0,_IKCLangExpressionVisitor__WEBPACK_IMPORTED_MODULE_5__.traverseKCLangExpression)(condition.expression, new InferConditionTargetVisitor(targetValue));
|
|
60322
60393
|
return result;
|
|
@@ -65660,6 +65731,10 @@ function traverseFormulaExpression(expression, visitor) {
|
|
|
65660
65731
|
visitor.beforeCountExpression(expression);
|
|
65661
65732
|
visitor.afterCountExpression(expression);
|
|
65662
65733
|
}
|
|
65734
|
+
if (expression instanceof _KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
65735
|
+
visitor.beforeInstanceCountExpression(expression);
|
|
65736
|
+
visitor.afterInstanceCountExpression(expression);
|
|
65737
|
+
}
|
|
65663
65738
|
}
|
|
65664
65739
|
|
|
65665
65740
|
/***/ }),
|
|
@@ -65727,6 +65802,13 @@ class FormulaProcessor {
|
|
|
65727
65802
|
const argumentName = this.addDependency(expression.select);
|
|
65728
65803
|
this.returnExpression(_babel_types__WEBPACK_IMPORTED_MODULE_0__.identifier(argumentName));
|
|
65729
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
|
+
}
|
|
65730
65812
|
beforeMultySumExpression(expression) {
|
|
65731
65813
|
// noop
|
|
65732
65814
|
}
|
|
@@ -66242,6 +66324,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66242
66324
|
/* harmony export */ FormulaGtExpression: () => (/* binding */ FormulaGtExpression),
|
|
66243
66325
|
/* harmony export */ FormulaHasAutoFlagExpression: () => (/* binding */ FormulaHasAutoFlagExpression),
|
|
66244
66326
|
/* harmony export */ FormulaHashSetExpression: () => (/* binding */ FormulaHashSetExpression),
|
|
66327
|
+
/* harmony export */ FormulaInstanceCountExpression: () => (/* binding */ FormulaInstanceCountExpression),
|
|
66245
66328
|
/* harmony export */ FormulaIsDateExpression: () => (/* binding */ FormulaIsDateExpression),
|
|
66246
66329
|
/* harmony export */ FormulaIsInnExpression: () => (/* binding */ FormulaIsInnExpression),
|
|
66247
66330
|
/* harmony export */ FormulaIsRegNumSfrExpression: () => (/* binding */ FormulaIsRegNumSfrExpression),
|
|
@@ -66267,6 +66350,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66267
66350
|
/* harmony export */ FormulaRoundExpression: () => (/* binding */ FormulaRoundExpression),
|
|
66268
66351
|
/* harmony export */ FormulaSubstringExpression: () => (/* binding */ FormulaSubstringExpression),
|
|
66269
66352
|
/* harmony export */ FormulaSumExpression: () => (/* binding */ FormulaSumExpression),
|
|
66353
|
+
/* harmony export */ FormulaSumOfDayWeightsExpression: () => (/* binding */ FormulaSumOfDayWeightsExpression),
|
|
66270
66354
|
/* harmony export */ FormulaWhenExpression: () => (/* binding */ FormulaWhenExpression),
|
|
66271
66355
|
/* harmony export */ FormulaXAbsExpression: () => (/* binding */ FormulaXAbsExpression),
|
|
66272
66356
|
/* harmony export */ Formulas: () => (/* binding */ Formulas),
|
|
@@ -66285,7 +66369,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66285
66369
|
|
|
66286
66370
|
|
|
66287
66371
|
|
|
66288
|
-
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;
|
|
66289
66373
|
|
|
66290
66374
|
|
|
66291
66375
|
|
|
@@ -66894,27 +66978,24 @@ let FormulaDateTimeExpression = (_dec96 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
66894
66978
|
writable: true,
|
|
66895
66979
|
initializer: null
|
|
66896
66980
|
})), _class84)) || _class83);
|
|
66897
|
-
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 {
|
|
66898
66982
|
constructor(...args) {
|
|
66899
66983
|
super(...args);
|
|
66900
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
66984
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "arguments", _descriptor55, this);
|
|
66901
66985
|
}
|
|
66902
|
-
|
|
66903
|
-
return "isSnils";
|
|
66904
|
-
}
|
|
66905
|
-
}, (_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], {
|
|
66906
66987
|
configurable: true,
|
|
66907
66988
|
enumerable: true,
|
|
66908
66989
|
writable: true,
|
|
66909
66990
|
initializer: null
|
|
66910
66991
|
})), _class86)) || _class85);
|
|
66911
|
-
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 {
|
|
66912
66993
|
constructor(...args) {
|
|
66913
66994
|
super(...args);
|
|
66914
66995
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor56, this);
|
|
66915
66996
|
}
|
|
66916
66997
|
getLegacyExpressionTypeForFunctionName() {
|
|
66917
|
-
return "
|
|
66998
|
+
return "isSnils";
|
|
66918
66999
|
}
|
|
66919
67000
|
}, (_descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class88.prototype, "select", [_dec101], {
|
|
66920
67001
|
configurable: true,
|
|
@@ -66922,13 +67003,13 @@ let FormulaIsRegNumSfrExpression = (_dec100 = (0,_markupGenerator_Serializer_Sug
|
|
|
66922
67003
|
writable: true,
|
|
66923
67004
|
initializer: null
|
|
66924
67005
|
})), _class88)) || _class87);
|
|
66925
|
-
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 {
|
|
66926
67007
|
constructor(...args) {
|
|
66927
67008
|
super(...args);
|
|
66928
67009
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor57, this);
|
|
66929
67010
|
}
|
|
66930
67011
|
getLegacyExpressionTypeForFunctionName() {
|
|
66931
|
-
return "
|
|
67012
|
+
return "isRegNumSfr";
|
|
66932
67013
|
}
|
|
66933
67014
|
}, (_descriptor57 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class90.prototype, "select", [_dec103], {
|
|
66934
67015
|
configurable: true,
|
|
@@ -66936,13 +67017,13 @@ let FormulaIsInnExpression = (_dec102 = (0,_markupGenerator_Serializer_SugarSeri
|
|
|
66936
67017
|
writable: true,
|
|
66937
67018
|
initializer: null
|
|
66938
67019
|
})), _class90)) || _class89);
|
|
66939
|
-
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 {
|
|
66940
67021
|
constructor(...args) {
|
|
66941
67022
|
super(...args);
|
|
66942
67023
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor58, this);
|
|
66943
67024
|
}
|
|
66944
67025
|
getLegacyExpressionTypeForFunctionName() {
|
|
66945
|
-
return "
|
|
67026
|
+
return "isInn";
|
|
66946
67027
|
}
|
|
66947
67028
|
}, (_descriptor58 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class92.prototype, "select", [_dec105], {
|
|
66948
67029
|
configurable: true,
|
|
@@ -66950,122 +67031,125 @@ let FormulaIsValidMirCardNumberExpression = (_dec104 = (0,_markupGenerator_Seria
|
|
|
66950
67031
|
writable: true,
|
|
66951
67032
|
initializer: null
|
|
66952
67033
|
})), _class92)) || _class91);
|
|
66953
|
-
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 {
|
|
66954
67049
|
constructor(...args) {
|
|
66955
67050
|
super(...args);
|
|
66956
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "bik",
|
|
66957
|
-
_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);
|
|
66958
67053
|
}
|
|
66959
67054
|
getLegacyExpressionTypeForFunctionName() {
|
|
66960
67055
|
return "isValidAccountNumber";
|
|
66961
67056
|
}
|
|
66962
|
-
}, (
|
|
67057
|
+
}, (_descriptor60 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "bik", [_dec109], {
|
|
66963
67058
|
configurable: true,
|
|
66964
67059
|
enumerable: true,
|
|
66965
67060
|
writable: true,
|
|
66966
67061
|
initializer: null
|
|
66967
|
-
}),
|
|
67062
|
+
}), _descriptor61 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class96.prototype, "account", [_dec110], {
|
|
66968
67063
|
configurable: true,
|
|
66969
67064
|
enumerable: true,
|
|
66970
67065
|
writable: true,
|
|
66971
67066
|
initializer: null
|
|
66972
|
-
})),
|
|
66973
|
-
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 {
|
|
66974
67069
|
constructor(...args) {
|
|
66975
67070
|
super(...args);
|
|
66976
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select",
|
|
66977
|
-
_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);
|
|
66978
67073
|
}
|
|
66979
|
-
}, (
|
|
67074
|
+
}, (_descriptor62 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "select", [_dec112], {
|
|
66980
67075
|
configurable: true,
|
|
66981
67076
|
enumerable: true,
|
|
66982
67077
|
writable: true,
|
|
66983
67078
|
initializer: null
|
|
66984
|
-
}),
|
|
67079
|
+
}), _descriptor63 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class98.prototype, "type", [_dec113], {
|
|
66985
67080
|
configurable: true,
|
|
66986
67081
|
enumerable: true,
|
|
66987
67082
|
writable: true,
|
|
66988
67083
|
initializer: function () {
|
|
66989
67084
|
return "decimal";
|
|
66990
67085
|
}
|
|
66991
|
-
})),
|
|
66992
|
-
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 {
|
|
66993
67088
|
constructor(...args) {
|
|
66994
67089
|
super(...args);
|
|
66995
|
-
_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);
|
|
66996
67091
|
}
|
|
66997
|
-
}, (
|
|
67092
|
+
}, (_descriptor64 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class100.prototype, "items", [_dec115], {
|
|
66998
67093
|
configurable: true,
|
|
66999
67094
|
enumerable: true,
|
|
67000
67095
|
writable: true,
|
|
67001
67096
|
initializer: null
|
|
67002
|
-
})),
|
|
67003
|
-
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 {
|
|
67004
67099
|
constructor(...args) {
|
|
67005
67100
|
super(...args);
|
|
67006
|
-
_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);
|
|
67007
67102
|
}
|
|
67008
|
-
}, (
|
|
67103
|
+
}, (_descriptor65 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class102.prototype, "filterColumn", [_dec117], {
|
|
67009
67104
|
configurable: true,
|
|
67010
67105
|
enumerable: true,
|
|
67011
67106
|
writable: true,
|
|
67012
67107
|
initializer: null
|
|
67013
|
-
})),
|
|
67014
|
-
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 {
|
|
67015
67110
|
constructor(...args) {
|
|
67016
67111
|
super(...args);
|
|
67017
|
-
_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);
|
|
67018
67113
|
}
|
|
67019
|
-
}, (
|
|
67114
|
+
}, (_descriptor66 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class104.prototype, "filterKey", [_dec119], {
|
|
67020
67115
|
configurable: true,
|
|
67021
67116
|
enumerable: true,
|
|
67022
67117
|
writable: true,
|
|
67023
67118
|
initializer: null
|
|
67024
|
-
})),
|
|
67025
|
-
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 {
|
|
67026
67121
|
constructor(...args) {
|
|
67027
67122
|
super(...args);
|
|
67028
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gId",
|
|
67029
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterColumn",
|
|
67030
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "filterKey",
|
|
67031
|
-
_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);
|
|
67032
67127
|
}
|
|
67033
67128
|
getLegacyExpressionTypeForFunctionName() {
|
|
67034
67129
|
return "getPicklistValues";
|
|
67035
67130
|
}
|
|
67036
|
-
}, (
|
|
67131
|
+
}, (_descriptor67 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "gId", [_dec121], {
|
|
67037
67132
|
configurable: true,
|
|
67038
67133
|
enumerable: true,
|
|
67039
67134
|
writable: true,
|
|
67040
67135
|
initializer: null
|
|
67041
|
-
}),
|
|
67136
|
+
}), _descriptor68 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterColumn", [_dec122], {
|
|
67042
67137
|
configurable: true,
|
|
67043
67138
|
enumerable: true,
|
|
67044
67139
|
writable: true,
|
|
67045
67140
|
initializer: null
|
|
67046
|
-
}),
|
|
67141
|
+
}), _descriptor69 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class106.prototype, "filterKey", [_dec123], {
|
|
67047
67142
|
configurable: true,
|
|
67048
67143
|
enumerable: true,
|
|
67049
67144
|
writable: true,
|
|
67050
67145
|
initializer: null
|
|
67051
|
-
}),
|
|
67052
|
-
configurable: true,
|
|
67053
|
-
enumerable: true,
|
|
67054
|
-
writable: true,
|
|
67055
|
-
initializer: null
|
|
67056
|
-
})), _class104)) || _class103);
|
|
67057
|
-
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 {
|
|
67058
|
-
constructor(...args) {
|
|
67059
|
-
super(...args);
|
|
67060
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor70, this);
|
|
67061
|
-
}
|
|
67062
|
-
}, (_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], {
|
|
67063
67147
|
configurable: true,
|
|
67064
67148
|
enumerable: true,
|
|
67065
67149
|
writable: true,
|
|
67066
67150
|
initializer: null
|
|
67067
67151
|
})), _class106)) || _class105);
|
|
67068
|
-
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 {
|
|
67069
67153
|
constructor(...args) {
|
|
67070
67154
|
super(...args);
|
|
67071
67155
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor71, this);
|
|
@@ -67076,265 +67160,287 @@ let FormulaHashSetExpression = (_dec125 = (0,_markupGenerator_Serializer_SugarSe
|
|
|
67076
67160
|
writable: true,
|
|
67077
67161
|
initializer: null
|
|
67078
67162
|
})), _class108)) || _class107);
|
|
67079
|
-
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 {
|
|
67080
67164
|
constructor(...args) {
|
|
67081
67165
|
super(...args);
|
|
67082
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67166
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor72, this);
|
|
67083
67167
|
}
|
|
67084
|
-
|
|
67085
|
-
return "exists";
|
|
67086
|
-
}
|
|
67087
|
-
}, (_descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "select", [_dec128], {
|
|
67168
|
+
}, (_descriptor72 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class110.prototype, "expression", [_dec128], {
|
|
67088
67169
|
configurable: true,
|
|
67089
67170
|
enumerable: true,
|
|
67090
67171
|
writable: true,
|
|
67091
67172
|
initializer: null
|
|
67092
67173
|
})), _class110)) || _class109);
|
|
67093
|
-
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 {
|
|
67094
67175
|
constructor(...args) {
|
|
67095
67176
|
super(...args);
|
|
67096
67177
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor73, this);
|
|
67097
67178
|
}
|
|
67179
|
+
getLegacyExpressionTypeForFunctionName() {
|
|
67180
|
+
return "exists";
|
|
67181
|
+
}
|
|
67098
67182
|
}, (_descriptor73 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class112.prototype, "select", [_dec130], {
|
|
67099
67183
|
configurable: true,
|
|
67100
67184
|
enumerable: true,
|
|
67101
67185
|
writable: true,
|
|
67102
67186
|
initializer: null
|
|
67103
67187
|
})), _class112)) || _class111);
|
|
67104
|
-
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 {
|
|
67105
67189
|
constructor(...args) {
|
|
67106
67190
|
super(...args);
|
|
67107
67191
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor74, this);
|
|
67108
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withNullOrEmptyValues", _descriptor75, this);
|
|
67109
67192
|
}
|
|
67110
67193
|
}, (_descriptor74 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "select", [_dec132], {
|
|
67111
67194
|
configurable: true,
|
|
67112
67195
|
enumerable: true,
|
|
67113
67196
|
writable: true,
|
|
67114
67197
|
initializer: null
|
|
67115
|
-
}), _descriptor75 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class114.prototype, "withNullOrEmptyValues", [_dec133], {
|
|
67116
|
-
configurable: true,
|
|
67117
|
-
enumerable: true,
|
|
67118
|
-
writable: true,
|
|
67119
|
-
initializer: null
|
|
67120
67198
|
})), _class114)) || _class113);
|
|
67121
|
-
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 {
|
|
67122
67200
|
constructor(...args) {
|
|
67123
67201
|
super(...args);
|
|
67124
|
-
_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);
|
|
67125
67204
|
}
|
|
67126
|
-
}, (
|
|
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], {
|
|
67127
67211
|
configurable: true,
|
|
67128
67212
|
enumerable: true,
|
|
67129
67213
|
writable: true,
|
|
67130
67214
|
initializer: null
|
|
67131
67215
|
})), _class116)) || _class115);
|
|
67132
|
-
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 {
|
|
67133
67217
|
constructor(...args) {
|
|
67134
67218
|
super(...args);
|
|
67135
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67219
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "select", _descriptor77, this);
|
|
67136
67220
|
}
|
|
67137
|
-
}, (_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], {
|
|
67138
67222
|
configurable: true,
|
|
67139
67223
|
enumerable: true,
|
|
67140
67224
|
writable: true,
|
|
67141
67225
|
initializer: null
|
|
67142
67226
|
})), _class118)) || _class117);
|
|
67143
|
-
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 {
|
|
67144
67228
|
constructor(...args) {
|
|
67145
67229
|
super(...args);
|
|
67146
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
67230
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "array", _descriptor78, this);
|
|
67147
67231
|
}
|
|
67148
|
-
}, (_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], {
|
|
67149
67233
|
configurable: true,
|
|
67150
67234
|
enumerable: true,
|
|
67151
67235
|
writable: true,
|
|
67152
67236
|
initializer: null
|
|
67153
67237
|
})), _class120)) || _class119);
|
|
67154
|
-
let
|
|
67155
|
-
|
|
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 {
|
|
67156
67262
|
constructor(...args) {
|
|
67157
67263
|
super(...args);
|
|
67158
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
67159
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
67160
|
-
_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);
|
|
67161
67267
|
}
|
|
67162
|
-
}, (
|
|
67268
|
+
}, (_descriptor81 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "match", [_dec146], {
|
|
67163
67269
|
configurable: true,
|
|
67164
67270
|
enumerable: true,
|
|
67165
67271
|
writable: true,
|
|
67166
67272
|
initializer: null
|
|
67167
|
-
}),
|
|
67273
|
+
}), _descriptor82 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "target", [_dec147], {
|
|
67168
67274
|
configurable: true,
|
|
67169
67275
|
enumerable: true,
|
|
67170
67276
|
writable: true,
|
|
67171
67277
|
initializer: null
|
|
67172
|
-
}),
|
|
67278
|
+
}), _descriptor83 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class127.prototype, "expression", [_dec148], {
|
|
67173
67279
|
configurable: true,
|
|
67174
67280
|
enumerable: true,
|
|
67175
67281
|
writable: true,
|
|
67176
67282
|
initializer: null
|
|
67177
|
-
})),
|
|
67178
|
-
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 {
|
|
67179
67285
|
constructor(...args) {
|
|
67180
67286
|
super(...args);
|
|
67181
|
-
_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);
|
|
67182
67288
|
}
|
|
67183
|
-
}, (
|
|
67289
|
+
}, (_descriptor84 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class129.prototype, "expression", [_dec150], {
|
|
67184
67290
|
configurable: true,
|
|
67185
67291
|
enumerable: true,
|
|
67186
67292
|
writable: true,
|
|
67187
67293
|
initializer: null
|
|
67188
|
-
})),
|
|
67189
|
-
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 {
|
|
67190
67296
|
constructor(...args) {
|
|
67191
67297
|
super(...args);
|
|
67192
|
-
_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);
|
|
67193
67299
|
}
|
|
67194
|
-
}, (
|
|
67300
|
+
}, (_descriptor85 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class131.prototype, "items", [_dec152], {
|
|
67195
67301
|
configurable: true,
|
|
67196
67302
|
enumerable: true,
|
|
67197
67303
|
writable: true,
|
|
67198
67304
|
initializer: null
|
|
67199
|
-
})),
|
|
67200
|
-
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 {
|
|
67201
67307
|
constructor(...args) {
|
|
67202
67308
|
super(...args);
|
|
67203
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "match",
|
|
67204
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "target",
|
|
67205
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description",
|
|
67206
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "errorLevel",
|
|
67207
|
-
_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);
|
|
67208
67314
|
}
|
|
67209
|
-
}, (
|
|
67315
|
+
}, (_descriptor86 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "match", [_dec154], {
|
|
67210
67316
|
configurable: true,
|
|
67211
67317
|
enumerable: true,
|
|
67212
67318
|
writable: true,
|
|
67213
67319
|
initializer: null
|
|
67214
|
-
}),
|
|
67320
|
+
}), _descriptor87 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "target", [_dec155], {
|
|
67215
67321
|
configurable: true,
|
|
67216
67322
|
enumerable: true,
|
|
67217
67323
|
writable: true,
|
|
67218
67324
|
initializer: null
|
|
67219
|
-
}),
|
|
67325
|
+
}), _descriptor88 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "description", [_dec156], {
|
|
67220
67326
|
configurable: true,
|
|
67221
67327
|
enumerable: true,
|
|
67222
67328
|
writable: true,
|
|
67223
67329
|
initializer: null
|
|
67224
|
-
}),
|
|
67330
|
+
}), _descriptor89 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "errorLevel", [_dec157], {
|
|
67225
67331
|
configurable: true,
|
|
67226
67332
|
enumerable: true,
|
|
67227
67333
|
writable: true,
|
|
67228
67334
|
initializer: null
|
|
67229
|
-
}),
|
|
67335
|
+
}), _descriptor90 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class133.prototype, "expression", [_dec158], {
|
|
67230
67336
|
configurable: true,
|
|
67231
67337
|
enumerable: true,
|
|
67232
67338
|
writable: true,
|
|
67233
67339
|
initializer: null
|
|
67234
|
-
})),
|
|
67235
|
-
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 {
|
|
67236
67342
|
constructor(...args) {
|
|
67237
67343
|
super(...args);
|
|
67238
|
-
_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);
|
|
67239
67345
|
}
|
|
67240
|
-
}, (
|
|
67346
|
+
}, (_descriptor91 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class135.prototype, "items", [_dec160], {
|
|
67241
67347
|
configurable: true,
|
|
67242
67348
|
enumerable: true,
|
|
67243
67349
|
writable: true,
|
|
67244
67350
|
initializer: null
|
|
67245
|
-
})),
|
|
67246
|
-
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 {
|
|
67247
67353
|
constructor(...args) {
|
|
67248
67354
|
super(...args);
|
|
67249
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "formulas",
|
|
67250
|
-
_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);
|
|
67251
67357
|
}
|
|
67252
|
-
}, (
|
|
67358
|
+
}, (_descriptor92 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "formulas", [_dec162], {
|
|
67253
67359
|
configurable: true,
|
|
67254
67360
|
enumerable: true,
|
|
67255
67361
|
writable: true,
|
|
67256
67362
|
initializer: null
|
|
67257
|
-
}),
|
|
67363
|
+
}), _descriptor93 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class137.prototype, "conditions", [_dec163], {
|
|
67258
67364
|
configurable: true,
|
|
67259
67365
|
enumerable: true,
|
|
67260
67366
|
writable: true,
|
|
67261
67367
|
initializer: null
|
|
67262
|
-
})),
|
|
67263
|
-
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 {
|
|
67264
67370
|
constructor(...args) {
|
|
67265
67371
|
super(...args);
|
|
67266
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67267
|
-
_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);
|
|
67268
67374
|
}
|
|
67269
|
-
}, (
|
|
67375
|
+
}, (_descriptor94 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "sourceKeyPath", [_dec165], {
|
|
67270
67376
|
configurable: true,
|
|
67271
67377
|
enumerable: true,
|
|
67272
67378
|
writable: true,
|
|
67273
67379
|
initializer: null
|
|
67274
|
-
}),
|
|
67380
|
+
}), _descriptor95 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class139.prototype, "sourceValueExpression", [_dec166], {
|
|
67275
67381
|
configurable: true,
|
|
67276
67382
|
enumerable: true,
|
|
67277
67383
|
writable: true,
|
|
67278
67384
|
initializer: null
|
|
67279
|
-
})),
|
|
67280
|
-
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 {
|
|
67281
67387
|
constructor(...args) {
|
|
67282
67388
|
super(...args);
|
|
67283
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dictPath",
|
|
67284
|
-
_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);
|
|
67285
67391
|
}
|
|
67286
|
-
}, (
|
|
67392
|
+
}, (_descriptor96 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "dictPath", [_dec168], {
|
|
67287
67393
|
configurable: true,
|
|
67288
67394
|
enumerable: true,
|
|
67289
67395
|
writable: true,
|
|
67290
67396
|
initializer: null
|
|
67291
|
-
}),
|
|
67397
|
+
}), _descriptor97 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class141.prototype, "targetKeys", [_dec169], {
|
|
67292
67398
|
configurable: true,
|
|
67293
67399
|
enumerable: true,
|
|
67294
67400
|
writable: true,
|
|
67295
67401
|
initializer: null
|
|
67296
|
-
})),
|
|
67297
|
-
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 {
|
|
67298
67404
|
constructor(...args) {
|
|
67299
67405
|
super(...args);
|
|
67300
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67301
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "sourceKeyPath",
|
|
67302
|
-
_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);
|
|
67303
67409
|
}
|
|
67304
|
-
}, (
|
|
67410
|
+
}, (_descriptor98 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "targetKeys", [_dec171], {
|
|
67305
67411
|
configurable: true,
|
|
67306
67412
|
enumerable: true,
|
|
67307
67413
|
writable: true,
|
|
67308
67414
|
initializer: null
|
|
67309
|
-
}),
|
|
67415
|
+
}), _descriptor99 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceKeyPath", [_dec172], {
|
|
67310
67416
|
configurable: true,
|
|
67311
67417
|
enumerable: true,
|
|
67312
67418
|
writable: true,
|
|
67313
67419
|
initializer: null
|
|
67314
|
-
}),
|
|
67420
|
+
}), _descriptor100 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class143.prototype, "sourceValuePath", [_dec173], {
|
|
67315
67421
|
configurable: true,
|
|
67316
67422
|
enumerable: true,
|
|
67317
67423
|
writable: true,
|
|
67318
67424
|
initializer: null
|
|
67319
|
-
})),
|
|
67320
|
-
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 {
|
|
67321
67427
|
constructor(...args) {
|
|
67322
67428
|
super(...args);
|
|
67323
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "targetKeys",
|
|
67324
|
-
_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);
|
|
67325
67431
|
}
|
|
67326
|
-
}, (
|
|
67432
|
+
}, (_descriptor101 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "targetKeys", [_dec175], {
|
|
67327
67433
|
configurable: true,
|
|
67328
67434
|
enumerable: true,
|
|
67329
67435
|
writable: true,
|
|
67330
67436
|
initializer: null
|
|
67331
|
-
}),
|
|
67437
|
+
}), _descriptor102 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class145.prototype, "sourceKeyPath", [_dec176], {
|
|
67332
67438
|
configurable: true,
|
|
67333
67439
|
enumerable: true,
|
|
67334
67440
|
writable: true,
|
|
67335
67441
|
initializer: null
|
|
67336
|
-
})),
|
|
67337
|
-
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];
|
|
67338
67444
|
|
|
67339
67445
|
/***/ }),
|
|
67340
67446
|
|
|
@@ -69705,6 +69811,12 @@ class KCXmlGeneratorBase {
|
|
|
69705
69811
|
}
|
|
69706
69812
|
return gcf(x => x.count, `"${finalPath.toLegacyPath()}"`, `"${(_expression$withNullO = expression.withNullOrEmptyValues) !== null && _expression$withNullO !== void 0 ? _expression$withNullO : false}"`);
|
|
69707
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
|
+
}
|
|
69708
69820
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaWhenExpression) {
|
|
69709
69821
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.expressions, 2);
|
|
69710
69822
|
const compiledCondition = this.compileExpression(prefix, targetFullPath, expression.expressions[0], deps);
|
|
@@ -69733,7 +69845,7 @@ class KCXmlGeneratorBase {
|
|
|
69733
69845
|
return gcf(x => x.eq, ...compiledParts);
|
|
69734
69846
|
}
|
|
69735
69847
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConstExpression) {
|
|
69736
|
-
return gcf(x => x.const,
|
|
69848
|
+
return gcf(x => x.const, `${JSON.stringify(expression.value)}`);
|
|
69737
69849
|
}
|
|
69738
69850
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaGtExpression) {
|
|
69739
69851
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayHasLength)(expression.arguments, 2);
|
|
@@ -69761,8 +69873,8 @@ class KCXmlGeneratorBase {
|
|
|
69761
69873
|
}
|
|
69762
69874
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaRegexMatchExpression) {
|
|
69763
69875
|
const compiledArgument = this.compileExpression(prefix, targetFullPath, expression.argument, deps);
|
|
69764
|
-
const preparedPattern = expression.pattern
|
|
69765
|
-
return gcf(x => x.regexMatch, compiledArgument,
|
|
69876
|
+
const preparedPattern = JSON.stringify(expression.pattern);
|
|
69877
|
+
return gcf(x => x.regexMatch, compiledArgument, preparedPattern);
|
|
69766
69878
|
}
|
|
69767
69879
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaMultiplyExpression) {
|
|
69768
69880
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(expression.arguments, 2);
|
|
@@ -69930,6 +70042,9 @@ class KCXmlGeneratorBase {
|
|
|
69930
70042
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaHasAutoFlagExpression) {
|
|
69931
70043
|
return "null";
|
|
69932
70044
|
}
|
|
70045
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaSumOfDayWeightsExpression) {
|
|
70046
|
+
return "null";
|
|
70047
|
+
}
|
|
69933
70048
|
// -----
|
|
69934
70049
|
|
|
69935
70050
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_5__.NotSupportedError(`Unsupported node type: ${expression.constructor.name}`);
|
|
@@ -70972,7 +71087,7 @@ function getAllMatches(regexPattern, sourceString) {
|
|
|
70972
71087
|
}
|
|
70973
71088
|
function getRequisitesFromEvaluablePropValue(filter) {
|
|
70974
71089
|
var _filter$match$map$fil, _filter$match, _getAllMatches$map$fi;
|
|
70975
|
-
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 : [])];
|
|
70976
71091
|
}
|
|
70977
71092
|
function getPathsFromEvaluablePropValue(evaluableProp) {
|
|
70978
71093
|
const pathRegex = /(?<=path\((?:'|")).*?(?=(?:'|"))/g;
|
|
@@ -71189,6 +71304,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71189
71304
|
/* harmony export */ StringLiteralExpression: () => (/* binding */ StringLiteralExpression),
|
|
71190
71305
|
/* harmony export */ SubstringExpression: () => (/* binding */ SubstringExpression),
|
|
71191
71306
|
/* harmony export */ SumBinaryExpression: () => (/* binding */ SumBinaryExpression),
|
|
71307
|
+
/* harmony export */ SumOfDayWeightsExpression: () => (/* binding */ SumOfDayWeightsExpression),
|
|
71192
71308
|
/* harmony export */ TrimExpression: () => (/* binding */ TrimExpression),
|
|
71193
71309
|
/* harmony export */ TypeReferenceExpression: () => (/* binding */ TypeReferenceExpression),
|
|
71194
71310
|
/* harmony export */ UnaryExpression: () => (/* binding */ UnaryExpression),
|
|
@@ -71944,6 +72060,22 @@ class DifferenceInDaysExpression extends FLangDecimalExpression {
|
|
|
71944
72060
|
return `differenceInDays(${expressions})`;
|
|
71945
72061
|
}
|
|
71946
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
|
+
}
|
|
71947
72079
|
class IsSnilsExpression extends FLangBoolExpression {
|
|
71948
72080
|
constructor(expression) {
|
|
71949
72081
|
super();
|
|
@@ -73110,6 +73242,9 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73110
73242
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaCountExpression) {
|
|
73111
73243
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToDecimalIfNeed)(this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule, "Count"), 0);
|
|
73112
73244
|
}
|
|
73245
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaInstanceCountExpression) {
|
|
73246
|
+
return this.compiledInstanceCountExpression(prefix, target, expression.select);
|
|
73247
|
+
}
|
|
73113
73248
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaLengthExpression) {
|
|
73114
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)));
|
|
73115
73250
|
}
|
|
@@ -73170,6 +73305,10 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73170
73305
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDateTimeExpression) {
|
|
73171
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);
|
|
73172
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
|
+
}
|
|
73173
73312
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaIsSnilsExpression) {
|
|
73174
73313
|
const arg = this.compiledArgumentExpression(prefix, target, expression.select, "string", addPrecalculationRule);
|
|
73175
73314
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.IsSnilsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(arg));
|
|
@@ -73473,6 +73612,17 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
73473
73612
|
return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_6__.reject)(`Unknown ExpressionTypeProperty [${type}]`);
|
|
73474
73613
|
}
|
|
73475
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
|
+
}
|
|
73476
73626
|
compiledArgumentExpression(prefix, target, selectPath, selectType, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
73477
73627
|
const builtInType = this.convertExpressionTypePropertyToFLangType(selectType !== null && selectType !== void 0 ? selectType : "string");
|
|
73478
73628
|
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, selectPath);
|
|
@@ -74360,7 +74510,7 @@ class ValidationRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_9
|
|
|
74360
74510
|
}
|
|
74361
74511
|
buildKcValidationRuleCheck(condition) {
|
|
74362
74512
|
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(condition.match.replace(/\@/g, ""), true).normalize();
|
|
74363
|
-
const target = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(condition.target.replace(/\@/g, ""),
|
|
74513
|
+
const target = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(condition.target.replace(/\@/g, ""), "auto");
|
|
74364
74514
|
const fullTarget = this.adjustPathMultiplicity(prefix.joinWith(target).normalize());
|
|
74365
74515
|
const precalculationRules = [];
|
|
74366
74516
|
return {
|
|
@@ -78124,10 +78274,10 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78124
78274
|
}
|
|
78125
78275
|
}
|
|
78126
78276
|
};
|
|
78127
|
-
applyReplacements([/path\('([^']*?)',\s*'children'\)\??\.length/g, "
|
|
78277
|
+
applyReplacements([/path\('([^']*?)',\s*'children'\)\??\.length/g, "instanceCount($1)"]);
|
|
78128
78278
|
applyReplacements([/\/0\//g, "/"]);
|
|
78129
78279
|
applyReplacements([/^path\('([^@']*?)'\)$/g, "$1"]);
|
|
78130
|
-
applyReplacements([/count\('([^']*?)'\)/g, "
|
|
78280
|
+
applyReplacements([/count\('([^']*?)'\)/g, "instanceCount($1)"]);
|
|
78131
78281
|
applyReplacements([/path\('([^']*?)',\s*'error'\)\??\.length/g, "1"]);
|
|
78132
78282
|
applyReplacements([/!path\('([^']*?)', 'error'\)/g, "(1 == 0)"]);
|
|
78133
78283
|
applyReplacements([/path\('([^']*?)',\s*'\$errorCount'\)/g, "0"]);
|
|
@@ -78143,6 +78293,7 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78143
78293
|
applyReplacements([/path\('([^']*?)'\)\.length/g, "length($1)"]);
|
|
78144
78294
|
applyReplacements([/path\('@formsClientInfo\/[^']*?'\)/g, "''"]);
|
|
78145
78295
|
applyReplacements([/path\('@featureFlags\/([^']*?)'\)/g, "getProperty('$1')"]);
|
|
78296
|
+
applyReplacements([/path\('@draftMeta\/([^']*?)'\)/g, "getProperty('draftMeta/$1')"]);
|
|
78146
78297
|
applyReplacements([/path\('@settings\/someSettings'\)/g, "getProperty('someSettings')"]);
|
|
78147
78298
|
applyReplacements([/path\('@settings\/scenario'\)/g, "''"]);
|
|
78148
78299
|
applyReplacements([/path\('@settings\/isForeign'\)/g, "'false'"]);
|
|
@@ -78191,7 +78342,7 @@ function naiveConvertJsConditionToKCLangCondition(condition) {
|
|
|
78191
78342
|
return result;
|
|
78192
78343
|
}
|
|
78193
78344
|
const predefinedJsConditions = {
|
|
78194
|
-
"count('../РасчНал')": "
|
|
78345
|
+
"count('../РасчНал')": "instanceCount(../РасчНал) > 0",
|
|
78195
78346
|
"'true'": "(1 == 1)",
|
|
78196
78347
|
"'false'": "(1 == 0)",
|
|
78197
78348
|
"": "(1 == 0)",
|
|
@@ -78879,7 +79030,7 @@ class AttachmentFormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
|
|
|
78879
79030
|
}
|
|
78880
79031
|
doConvert(context) {
|
|
78881
79032
|
const attachmentFormNode = this.getCurrentNodeAs(_AttachmentFormNode__WEBPACK_IMPORTED_MODULE_7__.AttachmentFormNode);
|
|
78882
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("
|
|
79033
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("AttachmentUnit");
|
|
78883
79034
|
markupBuilder.prop("data-tid").set("attachment" + attachmentFormNode.gfv);
|
|
78884
79035
|
markupBuilder.prop(x => x.unitId).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_3__.createUnitId)("attachment" + attachmentFormNode.gfv));
|
|
78885
79036
|
markupBuilder.prop(x => x.gfv).set(attachmentFormNode.gfv);
|
|
@@ -78914,16 +79065,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
78914
79065
|
|
|
78915
79066
|
|
|
78916
79067
|
|
|
78917
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
79068
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
78918
79069
|
|
|
78919
79070
|
|
|
78920
|
-
let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("attachmentform", `Встроенный редактор для формализованного приложения`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("gfv", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `ГФВ приложения`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Крактое название раздела, в который поместить форму`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Описание формы приложения`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Путь до поля с именем приложения`), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
79071
|
+
let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("attachmentform", `Встроенный редактор для формализованного приложения`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/AttachmentForm sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("gfv", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `ГФВ приложения`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Крактое название раздела, в который поместить форму`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Описание формы приложения`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string.required, `Путь до поля с именем приложения`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("multiple", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.boolean, `Обозначение множественного раздела`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("navigationLimit", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Количество экземпляров множественного раздела после которого в левом меню будет включаться компактный режим отображения разделов. По умолчанию: 15. Используется только для множественных разделов`), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
78921
79072
|
constructor(...args) {
|
|
78922
79073
|
super(...args);
|
|
78923
79074
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gfv", _descriptor, this);
|
|
78924
79075
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor2, this);
|
|
78925
79076
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "description", _descriptor3, this);
|
|
78926
79077
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor4, this);
|
|
79078
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "multiple", _descriptor5, this);
|
|
79079
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "navigationLimit", _descriptor6, this);
|
|
78927
79080
|
}
|
|
78928
79081
|
getOwnPath() {
|
|
78929
79082
|
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each) : undefined;
|
|
@@ -78948,6 +79101,16 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
78948
79101
|
enumerable: true,
|
|
78949
79102
|
writable: true,
|
|
78950
79103
|
initializer: null
|
|
79104
|
+
}), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "multiple", [_dec6], {
|
|
79105
|
+
configurable: true,
|
|
79106
|
+
enumerable: true,
|
|
79107
|
+
writable: true,
|
|
79108
|
+
initializer: null
|
|
79109
|
+
}), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "navigationLimit", [_dec7], {
|
|
79110
|
+
configurable: true,
|
|
79111
|
+
enumerable: true,
|
|
79112
|
+
writable: true,
|
|
79113
|
+
initializer: null
|
|
78951
79114
|
})), _class2)) || _class);
|
|
78952
79115
|
|
|
78953
79116
|
/***/ }),
|
|
@@ -79675,7 +79838,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79675
79838
|
/* harmony import */ var _common_ConditionUtils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../common/ConditionUtils */ "./Generator/src/common/ConditionUtils.ts");
|
|
79676
79839
|
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
79677
79840
|
/* harmony import */ var _ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
79678
|
-
/* harmony import */ var
|
|
79841
|
+
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
79842
|
+
/* harmony import */ var _FormNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
|
|
79843
|
+
|
|
79679
79844
|
|
|
79680
79845
|
|
|
79681
79846
|
|
|
@@ -79700,10 +79865,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79700
79865
|
|
|
79701
79866
|
class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.SugarNodeConverterBase {
|
|
79702
79867
|
static getAcceptNodeClass() {
|
|
79703
|
-
return
|
|
79868
|
+
return _FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode;
|
|
79704
79869
|
}
|
|
79705
79870
|
doBuildDataDeclaration(context) {
|
|
79706
|
-
const node = this.getCurrentNodeAs(
|
|
79871
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79707
79872
|
const rootPath = (0,_getRootPath__WEBPACK_IMPORTED_MODULE_3__.getRootPath)(node);
|
|
79708
79873
|
const entrySections = ["default"];
|
|
79709
79874
|
const optionalSections = this.findOptionalSections(node);
|
|
@@ -79723,18 +79888,18 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
79723
79888
|
}
|
|
79724
79889
|
};
|
|
79725
79890
|
allAttachmentSections.forEach(attachmentSection => {
|
|
79726
|
-
result[`${attachmentSection.path}
|
|
79891
|
+
result[`${attachmentSection.path}/${_Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__.AttachmentInfoPath.toLegacyPath()}`] = {
|
|
79727
79892
|
section: [attachmentSection.id]
|
|
79728
79893
|
};
|
|
79729
79894
|
});
|
|
79730
79895
|
return result;
|
|
79731
79896
|
}
|
|
79732
79897
|
buildChildrenDataDeclaration(context) {
|
|
79733
|
-
const node = this.getCurrentNodeAs(
|
|
79898
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79734
79899
|
return context.processChildrenDataDeclaration(node.pages);
|
|
79735
79900
|
}
|
|
79736
79901
|
*doTraverseChildren() {
|
|
79737
|
-
const node = this.getCurrentNodeAs(
|
|
79902
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79738
79903
|
yield* node.pages;
|
|
79739
79904
|
if (node.attachmentForms) {
|
|
79740
79905
|
yield* node.attachmentForms;
|
|
@@ -79744,7 +79909,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
79744
79909
|
}
|
|
79745
79910
|
}
|
|
79746
79911
|
doConvert(context) {
|
|
79747
|
-
const node = this.getCurrentNodeAs(
|
|
79912
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_22__.FormNode);
|
|
79748
79913
|
if (node.simple) {
|
|
79749
79914
|
return this.buildSimpleForm(context, node);
|
|
79750
79915
|
} else if (node.plain) {
|
|
@@ -79997,13 +80162,14 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
79997
80162
|
return markupBuilder;
|
|
79998
80163
|
}
|
|
79999
80164
|
buildAttachmentFormUnit(node, attachmentFormNode, context) {
|
|
80000
|
-
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("
|
|
80165
|
+
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("AttachmentUnit");
|
|
80001
80166
|
markupBuilder.prop("data-tid").set(this.getAttachmentFormId(attachmentFormNode));
|
|
80002
80167
|
markupBuilder.prop(x => x.unitId).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_13__.createUnitId)(this.getAttachmentFormId(attachmentFormNode)));
|
|
80003
80168
|
markupBuilder.prop(x => x.gfv).set(attachmentFormNode.gfv);
|
|
80004
80169
|
markupBuilder.prop(x => x.caption).set(attachmentFormNode.name);
|
|
80005
80170
|
markupBuilder.prop(x => x.description).set(attachmentFormNode.description);
|
|
80006
80171
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(attachmentFormNode));
|
|
80172
|
+
markupBuilder.prop(x => x.multiple).set(attachmentFormNode.multiple);
|
|
80007
80173
|
return markupBuilder;
|
|
80008
80174
|
}
|
|
80009
80175
|
isPageContainsTableWithStickyElements(pageNode) {
|
|
@@ -80050,19 +80216,29 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
80050
80216
|
buildUnitItemsFromAttachmentForms(formNode, attachmentFormNodes) {
|
|
80051
80217
|
const unitItemBuilders = [];
|
|
80052
80218
|
for (const attachmentForm of attachmentFormNodes) {
|
|
80219
|
+
var _attachmentForm$multi;
|
|
80053
80220
|
const unitItemBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("UnitItem");
|
|
80054
80221
|
unitItemBuilder.prop("data-tid").set(this.getAttachmentFormId(attachmentForm));
|
|
80055
80222
|
unitItemBuilder.prop(x => x.id).set((0,_Engine_src_Controls_FormParts_Unit_UnitId_UnitId__WEBPACK_IMPORTED_MODULE_13__.createUnitId)(this.getAttachmentFormId(attachmentForm)));
|
|
80056
80223
|
unitItemBuilder.prop(x => x.name).set(attachmentForm.name);
|
|
80057
80224
|
unitItemBuilder.prop(x => x.optional).set(true);
|
|
80058
|
-
unitItemBuilder.prop(x => x.multiple).set(false);
|
|
80225
|
+
unitItemBuilder.prop(x => x.multiple).set((_attachmentForm$multi = attachmentForm.multiple) !== null && _attachmentForm$multi !== void 0 ? _attachmentForm$multi : false);
|
|
80059
80226
|
unitItemBuilder.prop(x => x.multipleAppearance).set("flat");
|
|
80060
80227
|
unitItemBuilder.prop(x => x.pages).set([]);
|
|
80061
80228
|
unitItemBuilder.prop(x => x.clearConfirmationSettings).set({});
|
|
80229
|
+
unitItemBuilder.prop(x => x.hasAttachment).set(true);
|
|
80230
|
+
//unitItemBuilder.prop(x => x.maxOccurs).set(attachmentForm.maxOccurs ?? context.getPathMaxOccurs(page.getFullPath()));
|
|
80231
|
+
|
|
80062
80232
|
if (attachmentForm.path != undefined) {
|
|
80063
80233
|
unitItemBuilder.prop(x => x.unitPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(attachmentForm));
|
|
80064
80234
|
}
|
|
80065
80235
|
unitItemBuilder.prop(x => x.evaluatorsContextPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_15__.getNewBindingPathExpression)(formNode));
|
|
80236
|
+
if (attachmentForm.multiple) {
|
|
80237
|
+
const navigationLimit = attachmentForm.navigationLimit != undefined ? attachmentForm.navigationLimit : formNode.navigationLimit != undefined ? formNode.navigationLimit : undefined;
|
|
80238
|
+
if (navigationLimit != undefined) {
|
|
80239
|
+
unitItemBuilder.prop(x => x.navigationLimit).set(navigationLimit);
|
|
80240
|
+
}
|
|
80241
|
+
}
|
|
80066
80242
|
unitItemBuilders.push(unitItemBuilder);
|
|
80067
80243
|
}
|
|
80068
80244
|
return unitItemBuilders;
|