@kontur.candy/generator 6.19.0 → 6.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -141012,7 +141012,9 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
141012
141012
|
console.warn(chalk__WEBPACK_IMPORTED_MODULE_4___default().yellow(`[WARN] Форма не содержит ссылок на fetch-функции. Будут автоматически подключены функции из каталога legacyfetchfuctions и kclangfetchfunctions\n` + `[WARN] В будущем необходимо явно прописывать ссылки на используемые fetch-функции`));
|
|
141013
141013
|
sugarReferences.fetchFunctionFiles = await getLegacyFetchFunctionsFiles(farmDirectory);
|
|
141014
141014
|
}
|
|
141015
|
-
|
|
141015
|
+
if (sugarReferences.kcLangFetchFunctionFiles.length === 0) {
|
|
141016
|
+
sugarReferences.kcLangFetchFunctionFiles = await getKclangFetchFunctionsFiles(farmDirectory);
|
|
141017
|
+
}
|
|
141016
141018
|
const additionalNormalizers = await readAdditionalNormalizersFiles(formSourcesPath);
|
|
141017
141019
|
const formJsonSettings = (_JSON$parse$settings = JSON.parse(await readFileSource(formSourcesPath, "form.json", "{}"))["settings"]) !== null && _JSON$parse$settings !== void 0 ? _JSON$parse$settings : {};
|
|
141018
141020
|
if (additionalNormalizers.length > 0 && !formJsonSettings.useServerSideFLangNormalization) {
|
|
@@ -141036,7 +141038,7 @@ async function readFormSources(formSourcesPath, farmDirectory) {
|
|
|
141036
141038
|
hooksContent: await readHooksFile(formSourcesPath),
|
|
141037
141039
|
customControlsContent: await readCustomControlsFiles(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "controls")),
|
|
141038
141040
|
fetchFunctionSources: await readFiles(sugarReferences.fetchFunctionFiles.filter(x => path__WEBPACK_IMPORTED_MODULE_1___default().extname(x) == ".js").map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x))),
|
|
141039
|
-
fetchFunctionKClangSources: await readFiles(
|
|
141041
|
+
fetchFunctionKClangSources: await readFiles(sugarReferences.kcLangFetchFunctionFiles.filter(x => path__WEBPACK_IMPORTED_MODULE_1___default().extname(x) == ".kclang").map(x => path__WEBPACK_IMPORTED_MODULE_1___default().resolve(formSugarDirectoryPath, x))),
|
|
141040
141042
|
localization: await connectJSFilesWithNames(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSourcesPath, "localization")),
|
|
141041
141043
|
importedFiles: await readImportedFiles(formSourcesPath),
|
|
141042
141044
|
additionalNormalizers: additionalNormalizers
|
|
@@ -153425,11 +153427,6 @@ class PageConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.Sug
|
|
|
153425
153427
|
const optionalFieldRequired = ((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false) && !((_node$multiple = node.multiple) !== null && _node$multiple !== void 0 ? _node$multiple : false);
|
|
153426
153428
|
return context.mergeDataDeclaration({
|
|
153427
153429
|
[this.getResolvedBindingPath(node)]: result
|
|
153428
|
-
}, {
|
|
153429
|
-
[this.getResolvedBindingPath(node)]: {
|
|
153430
|
-
// пробрасывание errorsCount и warningCount в inner
|
|
153431
|
-
errorAndWarningCountRequired: [true]
|
|
153432
|
-
}
|
|
153433
153430
|
}, context.addPageId(node, node.id), context.addPathSectionDeclarationEntry(node), optionalFieldRequired ? {
|
|
153434
153431
|
[optionalFieldPath]: {
|
|
153435
153432
|
value: context.initSequenceFactory.dataValue({
|