@kontur.candy/generator 5.95.0 → 5.96.0-fix-zero-report.1
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 +69 -36
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46320,7 +46320,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46320
46320
|
/* harmony export */ KCLangRuntimeUtils: () => (/* binding */ KCLangRuntimeUtils)
|
|
46321
46321
|
/* harmony export */ });
|
|
46322
46322
|
/* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.mjs");
|
|
46323
|
-
/* harmony import */ var
|
|
46323
|
+
/* harmony import */ var _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Engine/src/Engine/ValidationHelper/ValidationHelper */ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts");
|
|
46324
46324
|
/* harmony import */ var _Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Engine/src/Helpers/AutocalcCommonFunctions */ "./Engine/src/Helpers/AutocalcCommonFunctions.ts");
|
|
46325
46325
|
/* harmony import */ var _Engine_src_Helpers_DateHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Engine/src/Helpers/DateHelpers */ "./Engine/src/Helpers/DateHelpers.ts");
|
|
46326
46326
|
/* harmony import */ var _TypingUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TypingUtils */ "./Common/TypingUtils.ts");
|
|
@@ -46479,7 +46479,7 @@ class KCLangRuntimeUtils {
|
|
|
46479
46479
|
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedSnils)) {
|
|
46480
46480
|
return false;
|
|
46481
46481
|
}
|
|
46482
|
-
const result =
|
|
46482
|
+
const result = _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isSnils(normalizedSnils);
|
|
46483
46483
|
return result;
|
|
46484
46484
|
}
|
|
46485
46485
|
isRegNumSfr(valueSelector, path) {
|
|
@@ -46491,7 +46491,7 @@ class KCLangRuntimeUtils {
|
|
|
46491
46491
|
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedRegNum)) {
|
|
46492
46492
|
return false;
|
|
46493
46493
|
}
|
|
46494
|
-
const result =
|
|
46494
|
+
const result = _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isRegNumSfr(normalizedRegNum);
|
|
46495
46495
|
return result;
|
|
46496
46496
|
}
|
|
46497
46497
|
isInn(valueSelector, path) {
|
|
@@ -46503,7 +46503,7 @@ class KCLangRuntimeUtils {
|
|
|
46503
46503
|
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedSnils)) {
|
|
46504
46504
|
return false;
|
|
46505
46505
|
}
|
|
46506
|
-
const result =
|
|
46506
|
+
const result = _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isInn(normalizedSnils);
|
|
46507
46507
|
return result;
|
|
46508
46508
|
}
|
|
46509
46509
|
isOgrn(valueSelector, path) {
|
|
@@ -46515,7 +46515,7 @@ class KCLangRuntimeUtils {
|
|
|
46515
46515
|
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(normalizedOgrn)) {
|
|
46516
46516
|
return false;
|
|
46517
46517
|
}
|
|
46518
|
-
const result =
|
|
46518
|
+
const result = _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isOgrn(normalizedOgrn);
|
|
46519
46519
|
return result;
|
|
46520
46520
|
}
|
|
46521
46521
|
isValidAccountNumber(valueSelector, bik, account) {
|
|
@@ -46527,7 +46527,7 @@ class KCLangRuntimeUtils {
|
|
|
46527
46527
|
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(bikValue) || (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(accountValue)) {
|
|
46528
46528
|
return false;
|
|
46529
46529
|
}
|
|
46530
|
-
const result =
|
|
46530
|
+
const result = _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isValidAccountNumber(bikValue, accountValue);
|
|
46531
46531
|
return result;
|
|
46532
46532
|
}
|
|
46533
46533
|
isValidMirCardNumber(valueSelector, path) {
|
|
@@ -46538,7 +46538,7 @@ class KCLangRuntimeUtils {
|
|
|
46538
46538
|
if ((0,_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNullOrWhiteSpace)(value)) {
|
|
46539
46539
|
return false;
|
|
46540
46540
|
}
|
|
46541
|
-
const result =
|
|
46541
|
+
const result = _Engine_src_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_1__.ValidationHelper.isValidMirCardNumber(value);
|
|
46542
46542
|
return result;
|
|
46543
46543
|
}
|
|
46544
46544
|
convertToDecimal(argument) {
|
|
@@ -47712,6 +47712,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47712
47712
|
/* harmony export */ OptionalElementsExistenceFieldName: () => (/* binding */ OptionalElementsExistenceFieldName),
|
|
47713
47713
|
/* harmony export */ OptionalSectionFilledFieldName: () => (/* binding */ OptionalSectionFilledFieldName),
|
|
47714
47714
|
/* harmony export */ TruthyTechnicalFieldValue: () => (/* binding */ TruthyTechnicalFieldValue),
|
|
47715
|
+
/* harmony export */ UnitItemExtraInfoPath: () => (/* binding */ UnitItemExtraInfoPath),
|
|
47715
47716
|
/* harmony export */ UnitLabelPath: () => (/* binding */ UnitLabelPath),
|
|
47716
47717
|
/* harmony export */ reservedForTechnicalUsageFields: () => (/* binding */ reservedForTechnicalUsageFields)
|
|
47717
47718
|
/* harmony export */ });
|
|
@@ -47719,6 +47720,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47719
47720
|
|
|
47720
47721
|
const UnitLabelPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("label");
|
|
47721
47722
|
const AttachmentInfoPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("attachment");
|
|
47723
|
+
const UnitItemExtraInfoPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("unitextrainfo");
|
|
47722
47724
|
const TruthyTechnicalFieldValue = "1";
|
|
47723
47725
|
const FalsyTechnicalFieldValue = null;
|
|
47724
47726
|
const OptionalSectionFilledFieldName = "isFilledOptional";
|
|
@@ -48944,10 +48946,10 @@ class PathUtils {
|
|
|
48944
48946
|
|
|
48945
48947
|
/***/ }),
|
|
48946
48948
|
|
|
48947
|
-
/***/ "./Engine/src/Engine/ValidationHelper.ts":
|
|
48948
|
-
|
|
48949
|
-
!*** ./Engine/src/Engine/ValidationHelper.ts ***!
|
|
48950
|
-
|
|
48949
|
+
/***/ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts":
|
|
48950
|
+
/*!****************************************************************!*\
|
|
48951
|
+
!*** ./Engine/src/Engine/ValidationHelper/ValidationHelper.ts ***!
|
|
48952
|
+
\****************************************************************/
|
|
48951
48953
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
48952
48954
|
|
|
48953
48955
|
"use strict";
|
|
@@ -48955,7 +48957,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48955
48957
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48956
48958
|
/* harmony export */ ValidationHelper: () => (/* binding */ ValidationHelper)
|
|
48957
48959
|
/* harmony export */ });
|
|
48958
|
-
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*!
|
|
48960
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
48959
48961
|
|
|
48960
48962
|
class ValidationHelper {
|
|
48961
48963
|
static isBlank(str) {
|
|
@@ -49336,7 +49338,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49336
49338
|
/* harmony export */ parseDateString: () => (/* binding */ parseDateString),
|
|
49337
49339
|
/* harmony export */ tryGetValidDateShape: () => (/* binding */ tryGetValidDateShape)
|
|
49338
49340
|
/* harmony export */ });
|
|
49339
|
-
/* harmony import */ var
|
|
49341
|
+
/* harmony import */ var _Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Engine/ValidationHelper/ValidationHelper */ "./Engine/src/Engine/ValidationHelper/ValidationHelper.ts");
|
|
49340
49342
|
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
49341
49343
|
|
|
49342
49344
|
|
|
@@ -49475,7 +49477,7 @@ function convertDate(dateValue) {
|
|
|
49475
49477
|
return dateValue;
|
|
49476
49478
|
}
|
|
49477
49479
|
// dd.MM.yyyy
|
|
49478
|
-
if (
|
|
49480
|
+
if (_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__.ValidationHelper.isDateFormat(dateValue)) {
|
|
49479
49481
|
var _v$, _v$2, _v$3;
|
|
49480
49482
|
const v = dateValue.split(".");
|
|
49481
49483
|
const d = parseInt((_v$ = v[0]) !== null && _v$ !== void 0 ? _v$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)(), 10);
|
|
@@ -49485,7 +49487,7 @@ function convertDate(dateValue) {
|
|
|
49485
49487
|
}
|
|
49486
49488
|
|
|
49487
49489
|
// yyyy-MM-dd
|
|
49488
|
-
if (
|
|
49490
|
+
if (_Engine_ValidationHelper_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__.ValidationHelper.isDateFormatIso(dateValue)) {
|
|
49489
49491
|
return new Date(dateValue);
|
|
49490
49492
|
}
|
|
49491
49493
|
return null;
|
|
@@ -49775,7 +49777,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49775
49777
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49776
49778
|
/* harmony export */ safeCast: () => (/* binding */ safeCast),
|
|
49777
49779
|
/* harmony export */ strictCast: () => (/* binding */ strictCast),
|
|
49778
|
-
/* harmony export */ tryCast: () => (/* binding */ tryCast)
|
|
49780
|
+
/* harmony export */ tryCast: () => (/* binding */ tryCast),
|
|
49781
|
+
/* harmony export */ tryParseAttachmentUnitPaths: () => (/* binding */ tryParseAttachmentUnitPaths)
|
|
49779
49782
|
/* harmony export */ });
|
|
49780
49783
|
function tryCast(input, type) {
|
|
49781
49784
|
if (input == undefined) {
|
|
@@ -49801,6 +49804,14 @@ function strictCast(input, type) {
|
|
|
49801
49804
|
// @ts-ignore
|
|
49802
49805
|
return result;
|
|
49803
49806
|
}
|
|
49807
|
+
function tryParseAttachmentUnitPaths(input) {
|
|
49808
|
+
try {
|
|
49809
|
+
return JSON.parse(input);
|
|
49810
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49811
|
+
} catch (e) {
|
|
49812
|
+
return input;
|
|
49813
|
+
}
|
|
49814
|
+
}
|
|
49804
49815
|
|
|
49805
49816
|
/***/ }),
|
|
49806
49817
|
|
|
@@ -72628,8 +72639,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72628
72639
|
/* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_3__);
|
|
72629
72640
|
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! chalk */ "./node_modules/chalk/source/index.js");
|
|
72630
72641
|
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_4__);
|
|
72631
|
-
/* harmony import */ var
|
|
72632
|
-
/* harmony import */ var
|
|
72642
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! fs-extra */ "./node_modules/fs-extra/lib/index.js");
|
|
72643
|
+
/* harmony import */ var fs_extra__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(fs_extra__WEBPACK_IMPORTED_MODULE_12__);
|
|
72633
72644
|
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
|
|
72634
72645
|
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_5__);
|
|
72635
72646
|
/* harmony import */ var recursive_readdir__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recursive-readdir */ "./node_modules/recursive-readdir/index.js");
|
|
@@ -72637,7 +72648,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72637
72648
|
/* harmony import */ var _common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ExtractSugarReferences */ "./Generator/src/common/ExtractSugarReferences.ts");
|
|
72638
72649
|
/* harmony import */ var _Common_GetRngSchemaFileExtension__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../Common/GetRngSchemaFileExtension */ "./Common/GetRngSchemaFileExtension.ts");
|
|
72639
72650
|
/* harmony import */ var _Common_FormPathUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../Common/FormPathUtils */ "./Common/FormPathUtils.ts");
|
|
72640
|
-
/* harmony import */ var
|
|
72651
|
+
/* harmony import */ var _Common_WellKnownDirectories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../Common/WellKnownDirectories */ "./Common/WellKnownDirectories.ts");
|
|
72652
|
+
/* harmony import */ var _FsUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./FsUtils */ "./Generator/src/generators/FsUtils.ts");
|
|
72653
|
+
|
|
72641
72654
|
|
|
72642
72655
|
|
|
72643
72656
|
|
|
@@ -72663,7 +72676,7 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
72663
72676
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
72664
72677
|
// eslint-disable-next-line no-console
|
|
72665
72678
|
console.warn(chalk__WEBPACK_IMPORTED_MODULE_4___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
|
|
72666
|
-
const legacyfetchfunctionsDirectory = (await (0,
|
|
72679
|
+
const legacyfetchfunctionsDirectory = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_12__.pathExists)(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions"))) ? path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions") : path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "candy.farm", "legacyfetchfunctions");
|
|
72667
72680
|
sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
72668
72681
|
}
|
|
72669
72682
|
const result = {
|
|
@@ -72728,7 +72741,7 @@ async function extractReferences(formSugarDirectoryPath) {
|
|
|
72728
72741
|
return (0,_common_ExtractSugarReferences__WEBPACK_IMPORTED_MODULE_7__.extractSugarReferences)(indexContent, filePath => readFileAsync(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, filePath), "utf-8"));
|
|
72729
72742
|
}
|
|
72730
72743
|
async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
72731
|
-
if (!(await (0,
|
|
72744
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_12__.pathExists)(directoryPath))) {
|
|
72732
72745
|
return [];
|
|
72733
72746
|
}
|
|
72734
72747
|
const files = await readdirAsync(directoryPath);
|
|
@@ -72743,7 +72756,7 @@ async function getAllFilePathsInDirectory(directoryPath, _filelist) {
|
|
|
72743
72756
|
return filelist;
|
|
72744
72757
|
}
|
|
72745
72758
|
async function checkFileExists(filePath) {
|
|
72746
|
-
if (!(await (0,
|
|
72759
|
+
if (!(await (0,fs_extra__WEBPACK_IMPORTED_MODULE_12__.pathExists)(filePath))) {
|
|
72747
72760
|
return [];
|
|
72748
72761
|
}
|
|
72749
72762
|
return [filePath];
|
|
@@ -72752,10 +72765,10 @@ async function getAllDependencies(formSourcesPath, farmDirectory) {
|
|
|
72752
72765
|
const formSugarDirectoryPath = path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "sugar");
|
|
72753
72766
|
const sugarReferences = await extractReferences(formSugarDirectoryPath);
|
|
72754
72767
|
if (sugarReferences.fetchFunctionFiles.length === 0) {
|
|
72755
|
-
const legacyfetchfunctionsDirectory = (await (0,
|
|
72768
|
+
const legacyfetchfunctionsDirectory = (await (0,fs_extra__WEBPACK_IMPORTED_MODULE_12__.pathExists)(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions"))) ? path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "legacyfetchfunctions") : path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "candy.farm", "legacyfetchfunctions");
|
|
72756
72769
|
sugarReferences.fetchFunctionFiles = (await readdirAsync(legacyfetchfunctionsDirectory)).map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(legacyfetchfunctionsDirectory, x));
|
|
72757
72770
|
}
|
|
72758
|
-
return [path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), ...sugarReferences.fetchFunctionFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...sugarReferences.sugarFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x + ".sugar.xml")), ...sugarReferences.resourceFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "settings.json"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "hooks.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "converters"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "mergers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "jsHelpers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "xsltTemplates"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "tour", "tour.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "localization")))];
|
|
72771
|
+
return [path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, _Common_WellKnownDirectories__WEBPACK_IMPORTED_MODULE_10__.WellKnownDirectories.FormJsonFileName), path__WEBPACK_IMPORTED_MODULE_1___default().join(formSugarDirectoryPath, "index.sugar.xml"), ...sugarReferences.fetchFunctionFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...sugarReferences.sugarFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x + ".sugar.xml")), ...sugarReferences.resourceFiles.map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x)), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "settings.json"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSourcesPath, "hooks.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "autocalc"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "helpers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "converters"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "mergers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "jsHelpers"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "xsltTemplates"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "validations"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "schemas"))), ...(await checkFileExists(path__WEBPACK_IMPORTED_MODULE_1___default().join(farmDirectory, "tour", "tour.js"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "localization"))), ...(await getAllFilePathsInDirectory(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "normalizers")))];
|
|
72759
72772
|
}
|
|
72760
72773
|
async function getAllDependenciesHash(formSourcesPath, farmDirectory) {
|
|
72761
72774
|
const allDeps = await getAllDependencies(formSourcesPath, farmDirectory);
|
|
@@ -72783,7 +72796,7 @@ async function readSugarFiles(formSugarDirectoryPath, references) {
|
|
|
72783
72796
|
return result;
|
|
72784
72797
|
}
|
|
72785
72798
|
async function readCustomControlsFiles(formSugarDirectoryPath) {
|
|
72786
|
-
if (!(await (0,
|
|
72799
|
+
if (!(await (0,_FsUtils__WEBPACK_IMPORTED_MODULE_11__.isDirectoryExists)(formSugarDirectoryPath))) {
|
|
72787
72800
|
return {};
|
|
72788
72801
|
}
|
|
72789
72802
|
const fileNames = await recursive_readdir__WEBPACK_IMPORTED_MODULE_6___default()(formSugarDirectoryPath);
|
|
@@ -80777,6 +80790,8 @@ const predefinedJsConditions = {
|
|
|
80777
80790
|
"'false'": "(1 == 0)",
|
|
80778
80791
|
"": "(1 == 0)",
|
|
80779
80792
|
"''": "(1 == 0)",
|
|
80793
|
+
true: "(1 == 1)",
|
|
80794
|
+
false: "(1 == 0)",
|
|
80780
80795
|
"path('A') == 'true'": "(A as string)== 'true'",
|
|
80781
80796
|
"Number(path('Value1')) < 2": "Value1 < 2",
|
|
80782
80797
|
"Number(path('Value1')) < 5": "Value1 < 5",
|
|
@@ -81725,7 +81740,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81725
81740
|
|
|
81726
81741
|
|
|
81727
81742
|
|
|
81728
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
81743
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
81729
81744
|
|
|
81730
81745
|
|
|
81731
81746
|
|
|
@@ -81755,7 +81770,7 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
81755
81770
|
tid?: string;
|
|
81756
81771
|
handler?: string;
|
|
81757
81772
|
};
|
|
81758
|
-
`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
81773
|
+
`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("attachmentUnitItemInfoPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Путь до поля в приложение для прокидывания значения в левое меню`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
81759
81774
|
constructor(...args) {
|
|
81760
81775
|
super(...args);
|
|
81761
81776
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gfv", _descriptor, this);
|
|
@@ -81768,7 +81783,8 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
81768
81783
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor8, this);
|
|
81769
81784
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pageActions", _descriptor9, this);
|
|
81770
81785
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "extraPageActions", _descriptor10, this);
|
|
81771
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
81786
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attachmentUnitItemInfoPaths", _descriptor11, this);
|
|
81787
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor12, this);
|
|
81772
81788
|
}
|
|
81773
81789
|
getOwnPath() {
|
|
81774
81790
|
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;
|
|
@@ -81823,7 +81839,12 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
81823
81839
|
enumerable: true,
|
|
81824
81840
|
writable: true,
|
|
81825
81841
|
initializer: null
|
|
81826
|
-
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
81842
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "attachmentUnitItemInfoPaths", [_dec12], {
|
|
81843
|
+
configurable: true,
|
|
81844
|
+
enumerable: true,
|
|
81845
|
+
writable: true,
|
|
81846
|
+
initializer: null
|
|
81847
|
+
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec13], {
|
|
81827
81848
|
configurable: true,
|
|
81828
81849
|
enumerable: true,
|
|
81829
81850
|
writable: true,
|
|
@@ -82478,7 +82499,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82478
82499
|
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
82479
82500
|
/* harmony import */ var _ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
82480
82501
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
82481
|
-
/* harmony import */ var
|
|
82502
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
82503
|
+
/* harmony import */ var _common_CastUtils__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../../../common/CastUtils */ "./Generator/src/common/CastUtils.ts");
|
|
82504
|
+
/* harmony import */ var _FormNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
|
|
82505
|
+
|
|
82506
|
+
|
|
82482
82507
|
|
|
82483
82508
|
|
|
82484
82509
|
|
|
@@ -82504,10 +82529,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82504
82529
|
|
|
82505
82530
|
class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.SugarNodeConverterBase {
|
|
82506
82531
|
static getAcceptNodeClass() {
|
|
82507
|
-
return
|
|
82532
|
+
return _FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode;
|
|
82508
82533
|
}
|
|
82509
82534
|
doBuildDataDeclaration() {
|
|
82510
|
-
const node = this.getCurrentNodeAs(
|
|
82535
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82511
82536
|
const rootPath = (0,_getRootPath__WEBPACK_IMPORTED_MODULE_3__.getRootPath)(node);
|
|
82512
82537
|
const entrySections = ["default"];
|
|
82513
82538
|
const optionalSections = this.findOptionalSections(node);
|
|
@@ -82534,11 +82559,11 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82534
82559
|
return result;
|
|
82535
82560
|
}
|
|
82536
82561
|
buildChildrenDataDeclaration(context) {
|
|
82537
|
-
const node = this.getCurrentNodeAs(
|
|
82562
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82538
82563
|
return context.processChildrenDataDeclaration(node.pages);
|
|
82539
82564
|
}
|
|
82540
82565
|
*doTraverseChildren() {
|
|
82541
|
-
const node = this.getCurrentNodeAs(
|
|
82566
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82542
82567
|
yield* node.pages;
|
|
82543
82568
|
if (node.attachmentForms) {
|
|
82544
82569
|
yield* node.attachmentForms;
|
|
@@ -82551,7 +82576,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82551
82576
|
}
|
|
82552
82577
|
}
|
|
82553
82578
|
doConvert(context) {
|
|
82554
|
-
const node = this.getCurrentNodeAs(
|
|
82579
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82555
82580
|
if (node.simple) {
|
|
82556
82581
|
return this.buildSimpleForm(context, node);
|
|
82557
82582
|
} else if (node.plain) {
|
|
@@ -82625,7 +82650,9 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82625
82650
|
formMarkupBuilder.prop(x => x.externalInitSectionAction).set(context.generateHelperFunctionExpression(formNode, "onClick", formNode.onExternalInitSection));
|
|
82626
82651
|
}
|
|
82627
82652
|
if (formNode.zeroreportoptions) {
|
|
82628
|
-
|
|
82653
|
+
if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.arrayHasAtLeastOneItem)(formNode.zeroreportoptions.children)) {
|
|
82654
|
+
formMarkupBuilder.prop(x => x.zeroReportOptions).set(this.getConverterResultFromAttributeWithMarkup(context, formNode.zeroreportoptions.children));
|
|
82655
|
+
}
|
|
82629
82656
|
formMarkupBuilder.prop(x => x.zeroReportValidationPath).set(formNode.zeroreportoptions.dataScope.path);
|
|
82630
82657
|
formMarkupBuilder.prop(x => x.zeroReportDescription).set(formNode.zeroreportoptions.description);
|
|
82631
82658
|
}
|
|
@@ -82850,6 +82877,11 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82850
82877
|
dependencies: compiledCondition === null || compiledCondition === void 0 ? void 0 : compiledCondition.dependencies
|
|
82851
82878
|
});
|
|
82852
82879
|
}
|
|
82880
|
+
if (attachmentFormNode.attachmentUnitItemInfoPaths != undefined) {
|
|
82881
|
+
const parsedPaths = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_23__.tryParseAttachmentUnitPaths)(attachmentFormNode.attachmentUnitItemInfoPaths);
|
|
82882
|
+
const resolvePaths = Array.isArray(parsedPaths) ? parsedPaths.map(path => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_22__.createModelPath)(path, true)) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_22__.createModelPath)(parsedPaths, true);
|
|
82883
|
+
markupBuilder.prop(x => x.attachmentUnitItemInfoPaths).set(resolvePaths);
|
|
82884
|
+
}
|
|
82853
82885
|
markupBuilder.appendChild(context.convertChildNodes(attachmentFormNode.children));
|
|
82854
82886
|
return markupBuilder;
|
|
82855
82887
|
}
|
|
@@ -98581,6 +98613,7 @@ class InputConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Su
|
|
|
98581
98613
|
});
|
|
98582
98614
|
}
|
|
98583
98615
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
|
|
98616
|
+
markupBuilder.prop(x => x.placeholder).set(node.placeholder);
|
|
98584
98617
|
markupBuilder.prop(x => x.hint).set(this.getConverterResultFromAttributeWithMarkup(context, node.hint));
|
|
98585
98618
|
markupBuilder.prop(x => x.disabled).set(node.disabled);
|
|
98586
98619
|
markupBuilder.prop(x => x.showNegativeAsBrackets).set(node.showNegativeAsBrackets);
|