@kontur.candy/generator 6.33.0-example.0 → 6.33.0-fs-9534-change-staff-docs-method.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 +949 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -127354,15 +127354,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
127354
127354
|
/* harmony export */ preprocessors: () => (/* binding */ preprocessors)
|
|
127355
127355
|
/* harmony export */ });
|
|
127356
127356
|
/* harmony import */ var _KladrPreprocessor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KladrPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/KladrPreprocessor.ts");
|
|
127357
|
-
/* harmony import */ var
|
|
127358
|
-
/* harmony import */ var
|
|
127357
|
+
/* harmony import */ var _PageIonPreprocessor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PageIonPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessor.ts");
|
|
127358
|
+
/* harmony import */ var _PageTitlefnsPreprocessor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PageTitlefnsPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessor.ts");
|
|
127359
|
+
/* harmony import */ var _PageTitlestatPreprocessor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PageTitlestatPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlestatPreprocessor.ts");
|
|
127360
|
+
/* harmony import */ var _TablePreprocessor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TablePreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/TablePreprocessor.ts");
|
|
127361
|
+
|
|
127362
|
+
|
|
127359
127363
|
|
|
127360
127364
|
|
|
127361
127365
|
|
|
127362
127366
|
const preprocessors = {
|
|
127363
127367
|
kladr: _KladrPreprocessor__WEBPACK_IMPORTED_MODULE_0__.kladrPreprocessor,
|
|
127364
|
-
|
|
127365
|
-
|
|
127368
|
+
page_ion: _PageIonPreprocessor__WEBPACK_IMPORTED_MODULE_1__.pageIonPreprocessor,
|
|
127369
|
+
page_titlestat: _PageTitlestatPreprocessor__WEBPACK_IMPORTED_MODULE_3__.pageTitlestatPreprocessor,
|
|
127370
|
+
page_titlefns: _PageTitlefnsPreprocessor__WEBPACK_IMPORTED_MODULE_2__.pageTitlefnsPreprocessor,
|
|
127371
|
+
table: _TablePreprocessor__WEBPACK_IMPORTED_MODULE_4__.tablePreprocessor
|
|
127366
127372
|
};
|
|
127367
127373
|
|
|
127368
127374
|
/***/ }),
|
|
@@ -127837,6 +127843,945 @@ function preprocessorMultipleTable(node) {
|
|
|
127837
127843
|
|
|
127838
127844
|
/***/ }),
|
|
127839
127845
|
|
|
127846
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessor.ts":
|
|
127847
|
+
/*!**********************************************************************************!*\
|
|
127848
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessor.ts ***!
|
|
127849
|
+
\**********************************************************************************/
|
|
127850
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127851
|
+
|
|
127852
|
+
"use strict";
|
|
127853
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127854
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127855
|
+
/* harmony export */ pageIonPreprocessor: () => (/* binding */ pageIonPreprocessor)
|
|
127856
|
+
/* harmony export */ });
|
|
127857
|
+
/* harmony import */ var _PageIonPreprocessors_PageIonPreprocessors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageIonPreprocessors/PageIonPreprocessors */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/PageIonPreprocessors.ts");
|
|
127858
|
+
|
|
127859
|
+
function pageIonPreprocessor(node) {
|
|
127860
|
+
node.setAttribute("template", "default");
|
|
127861
|
+
return preprocess(node);
|
|
127862
|
+
}
|
|
127863
|
+
function preprocess(node) {
|
|
127864
|
+
node.replaceChildren(node.children.map(child => {
|
|
127865
|
+
const preprocessor = _PageIonPreprocessors_PageIonPreprocessors__WEBPACK_IMPORTED_MODULE_0__.pageIonPreprocessors[child.name];
|
|
127866
|
+
if (preprocessor != undefined) {
|
|
127867
|
+
return preprocess(preprocessor(child));
|
|
127868
|
+
}
|
|
127869
|
+
return preprocess(child);
|
|
127870
|
+
}));
|
|
127871
|
+
return node;
|
|
127872
|
+
}
|
|
127873
|
+
|
|
127874
|
+
/***/ }),
|
|
127875
|
+
|
|
127876
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/FioPreprocessor.ts":
|
|
127877
|
+
/*!***************************************************************************************************!*\
|
|
127878
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/FioPreprocessor.ts ***!
|
|
127879
|
+
\***************************************************************************************************/
|
|
127880
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127881
|
+
|
|
127882
|
+
"use strict";
|
|
127883
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127884
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127885
|
+
/* harmony export */ fioPreprocessor: () => (/* binding */ fioPreprocessor)
|
|
127886
|
+
/* harmony export */ });
|
|
127887
|
+
function fioPreprocessor(node) {
|
|
127888
|
+
node.setAttribute("marginTop", "8");
|
|
127889
|
+
node.removeAttribute("subtemplate");
|
|
127890
|
+
return node;
|
|
127891
|
+
}
|
|
127892
|
+
|
|
127893
|
+
/***/ }),
|
|
127894
|
+
|
|
127895
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/LinetextPreprocessor.ts":
|
|
127896
|
+
/*!********************************************************************************************************!*\
|
|
127897
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/LinetextPreprocessor.ts ***!
|
|
127898
|
+
\********************************************************************************************************/
|
|
127899
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127900
|
+
|
|
127901
|
+
"use strict";
|
|
127902
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127903
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127904
|
+
/* harmony export */ linetextPreprocessor: () => (/* binding */ linetextPreprocessor)
|
|
127905
|
+
/* harmony export */ });
|
|
127906
|
+
function linetextPreprocessor(node) {
|
|
127907
|
+
node.setAttribute("textalign", "center");
|
|
127908
|
+
node.setAttribute("align", "middle");
|
|
127909
|
+
return node;
|
|
127910
|
+
}
|
|
127911
|
+
|
|
127912
|
+
/***/ }),
|
|
127913
|
+
|
|
127914
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/ListPreprocessor.ts":
|
|
127915
|
+
/*!****************************************************************************************************!*\
|
|
127916
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/ListPreprocessor.ts ***!
|
|
127917
|
+
\****************************************************************************************************/
|
|
127918
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127919
|
+
|
|
127920
|
+
"use strict";
|
|
127921
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127922
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127923
|
+
/* harmony export */ listPreprocessor: () => (/* binding */ listPreprocessor)
|
|
127924
|
+
/* harmony export */ });
|
|
127925
|
+
function listPreprocessor(node) {
|
|
127926
|
+
const item = node.getFirstChild("item");
|
|
127927
|
+
node.setAttribute("width", node.attributes.width || "600");
|
|
127928
|
+
if (item == undefined) {
|
|
127929
|
+
throw new Error("No children");
|
|
127930
|
+
}
|
|
127931
|
+
item.setAttribute("width", item.attributes.width || "210");
|
|
127932
|
+
return node;
|
|
127933
|
+
}
|
|
127934
|
+
|
|
127935
|
+
/***/ }),
|
|
127936
|
+
|
|
127937
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/PageIonPreprocessors.ts":
|
|
127938
|
+
/*!********************************************************************************************************!*\
|
|
127939
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/PageIonPreprocessors.ts ***!
|
|
127940
|
+
\********************************************************************************************************/
|
|
127941
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127942
|
+
|
|
127943
|
+
"use strict";
|
|
127944
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127945
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127946
|
+
/* harmony export */ pageIonPreprocessors: () => (/* binding */ pageIonPreprocessors)
|
|
127947
|
+
/* harmony export */ });
|
|
127948
|
+
/* harmony import */ var _FioPreprocessor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FioPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/FioPreprocessor.ts");
|
|
127949
|
+
/* harmony import */ var _LinetextPreprocessor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LinetextPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/LinetextPreprocessor.ts");
|
|
127950
|
+
/* harmony import */ var _ListPreprocessor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/ListPreprocessor.ts");
|
|
127951
|
+
/* harmony import */ var _TablePreprocessor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TablePreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/TablePreprocessor.ts");
|
|
127952
|
+
/* harmony import */ var _TextPreprocessor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/TextPreprocessor.ts");
|
|
127953
|
+
|
|
127954
|
+
|
|
127955
|
+
|
|
127956
|
+
|
|
127957
|
+
|
|
127958
|
+
const pageIonPreprocessors = {
|
|
127959
|
+
fio: _FioPreprocessor__WEBPACK_IMPORTED_MODULE_0__.fioPreprocessor,
|
|
127960
|
+
list: _ListPreprocessor__WEBPACK_IMPORTED_MODULE_2__.listPreprocessor,
|
|
127961
|
+
linetext: _LinetextPreprocessor__WEBPACK_IMPORTED_MODULE_1__.linetextPreprocessor,
|
|
127962
|
+
text: _TextPreprocessor__WEBPACK_IMPORTED_MODULE_4__.textPreprocessor,
|
|
127963
|
+
table: _TablePreprocessor__WEBPACK_IMPORTED_MODULE_3__.tablePreprocessor
|
|
127964
|
+
};
|
|
127965
|
+
|
|
127966
|
+
/***/ }),
|
|
127967
|
+
|
|
127968
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/TablePreprocessor.ts":
|
|
127969
|
+
/*!*****************************************************************************************************!*\
|
|
127970
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/TablePreprocessor.ts ***!
|
|
127971
|
+
\*****************************************************************************************************/
|
|
127972
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127973
|
+
|
|
127974
|
+
"use strict";
|
|
127975
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127976
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127977
|
+
/* harmony export */ tablePreprocessor: () => (/* binding */ tablePreprocessor)
|
|
127978
|
+
/* harmony export */ });
|
|
127979
|
+
function tablePreprocessor(node) {
|
|
127980
|
+
node.setAttribute("className", "candy-table-ion");
|
|
127981
|
+
node.removeAttribute("subtemplate");
|
|
127982
|
+
return node;
|
|
127983
|
+
}
|
|
127984
|
+
|
|
127985
|
+
/***/ }),
|
|
127986
|
+
|
|
127987
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/TextPreprocessor.ts":
|
|
127988
|
+
/*!****************************************************************************************************!*\
|
|
127989
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageIonPreprocessors/TextPreprocessor.ts ***!
|
|
127990
|
+
\****************************************************************************************************/
|
|
127991
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127992
|
+
|
|
127993
|
+
"use strict";
|
|
127994
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127995
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
127996
|
+
/* harmony export */ textPreprocessor: () => (/* binding */ textPreprocessor)
|
|
127997
|
+
/* harmony export */ });
|
|
127998
|
+
function textPreprocessor(node) {
|
|
127999
|
+
if (node.parent != undefined && node.parent.name === "column") {
|
|
128000
|
+
node.setAttribute("marginTop", "-6");
|
|
128001
|
+
node.setAttribute("marginBottom", "4");
|
|
128002
|
+
} else {
|
|
128003
|
+
node.setAttribute("marginTop", "8");
|
|
128004
|
+
}
|
|
128005
|
+
node.removeAttribute("subtemplate");
|
|
128006
|
+
return node;
|
|
128007
|
+
}
|
|
128008
|
+
|
|
128009
|
+
/***/ }),
|
|
128010
|
+
|
|
128011
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessor.ts":
|
|
128012
|
+
/*!***************************************************************************************!*\
|
|
128013
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessor.ts ***!
|
|
128014
|
+
\***************************************************************************************/
|
|
128015
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128016
|
+
|
|
128017
|
+
"use strict";
|
|
128018
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128019
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128020
|
+
/* harmony export */ pageTitlefnsPreprocessor: () => (/* binding */ pageTitlefnsPreprocessor)
|
|
128021
|
+
/* harmony export */ });
|
|
128022
|
+
/* harmony import */ var _XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
128023
|
+
/* harmony import */ var _PageTitlefnsPreprocessors_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PageTitlefnsPreprocessors/Elements/GetTitleElement */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts");
|
|
128024
|
+
/* harmony import */ var _PageTitlefnsPreprocessors_PageTitlefnsPreprocessors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PageTitlefnsPreprocessors/PageTitlefnsPreprocessors */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/PageTitlefnsPreprocessors.ts");
|
|
128025
|
+
|
|
128026
|
+
|
|
128027
|
+
|
|
128028
|
+
function preprocess(node) {
|
|
128029
|
+
const nodes = node.children.map(child => {
|
|
128030
|
+
var _pageTitlefnsPreproce;
|
|
128031
|
+
const preprocessor = (_pageTitlefnsPreproce = _PageTitlefnsPreprocessors_PageTitlefnsPreprocessors__WEBPACK_IMPORTED_MODULE_2__.pageTitlefnsPreprocessors[child.name]) !== null && _pageTitlefnsPreproce !== void 0 ? _pageTitlefnsPreproce : x => x;
|
|
128032
|
+
return preprocess(preprocessor(child));
|
|
128033
|
+
});
|
|
128034
|
+
node.replaceChildren(nodes);
|
|
128035
|
+
return node;
|
|
128036
|
+
}
|
|
128037
|
+
function pageTitlefnsPreprocessor(node) {
|
|
128038
|
+
const contentNode = node.getFirstChild("content");
|
|
128039
|
+
if (contentNode == undefined) {
|
|
128040
|
+
throw new Error(`Node ${node.name} does not contain 'content' node`);
|
|
128041
|
+
}
|
|
128042
|
+
const contentChildren = contentNode.children;
|
|
128043
|
+
const renderChildren = {};
|
|
128044
|
+
contentChildren.forEach(child => {
|
|
128045
|
+
renderChildren[child.name] = `${(0,_PageTitlefnsPreprocessors_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(child)}`;
|
|
128046
|
+
});
|
|
128047
|
+
const titleJsx = `
|
|
128048
|
+
<grid-row cols="3">
|
|
128049
|
+
<grid-col>
|
|
128050
|
+
<caption className="candy-page-caption-title">Титульный лист</caption>
|
|
128051
|
+
</grid-col>
|
|
128052
|
+
${renderChildren.inn || ""}
|
|
128053
|
+
${renderChildren.kpp || ""}
|
|
128054
|
+
<grid-col cols="3">
|
|
128055
|
+
<header>
|
|
128056
|
+
${node.attrAsString("formName", "")}
|
|
128057
|
+
</header>
|
|
128058
|
+
</grid-col>
|
|
128059
|
+
${renderChildren.normativehelp || ""}
|
|
128060
|
+
${renderChildren.corrnumber || ""}
|
|
128061
|
+
${renderChildren.period || ""}
|
|
128062
|
+
${renderChildren.year || ""}
|
|
128063
|
+
${renderChildren.ifns || ""}
|
|
128064
|
+
${renderChildren.local || ""}
|
|
128065
|
+
${renderChildren.name || ""}
|
|
128066
|
+
${renderChildren.okved || ""}
|
|
128067
|
+
${renderChildren.phone || ""}
|
|
128068
|
+
${renderChildren.reorganization || ""}
|
|
128069
|
+
${renderChildren.signer || ""}
|
|
128070
|
+
</grid-row>`;
|
|
128071
|
+
const content = (0,_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(titleJsx);
|
|
128072
|
+
contentNode.replaceChildren([content]);
|
|
128073
|
+
node.attributes.template = "default";
|
|
128074
|
+
return preprocess(node);
|
|
128075
|
+
}
|
|
128076
|
+
|
|
128077
|
+
/***/ }),
|
|
128078
|
+
|
|
128079
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts":
|
|
128080
|
+
/*!*****************************************************************************************************************!*\
|
|
128081
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts ***!
|
|
128082
|
+
\*****************************************************************************************************************/
|
|
128083
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128084
|
+
|
|
128085
|
+
"use strict";
|
|
128086
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128087
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128088
|
+
/* harmony export */ getTitleElement: () => (/* binding */ getTitleElement)
|
|
128089
|
+
/* harmony export */ });
|
|
128090
|
+
/* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
|
|
128091
|
+
/* harmony import */ var _CodeGeneration_PropsBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../CodeGeneration/PropsBuilder */ "./Generator/src/common/CodeGeneration/PropsBuilder.ts");
|
|
128092
|
+
/* harmony import */ var _TitleFnsElements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TitleFnsElements */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/TitleFnsElements.ts");
|
|
128093
|
+
|
|
128094
|
+
|
|
128095
|
+
|
|
128096
|
+
function getTitleElement(node, elemName) {
|
|
128097
|
+
var _ref, _elem$elements, _elementsJsx$join;
|
|
128098
|
+
const elem = (_ref = elemName ? _TitleFnsElements__WEBPACK_IMPORTED_MODULE_2__.titleFnsElements[elemName] : _TitleFnsElements__WEBPACK_IMPORTED_MODULE_2__.titleFnsElements[node.name]) !== null && _ref !== void 0 ? _ref : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)();
|
|
128099
|
+
const attributes = {
|
|
128100
|
+
...elem.defaults,
|
|
128101
|
+
...node.attributes
|
|
128102
|
+
};
|
|
128103
|
+
const propBuilder = new _CodeGeneration_PropsBuilder__WEBPACK_IMPORTED_MODULE_1__.PropsBuilder(attributes);
|
|
128104
|
+
const type = node.attributes.type ? "" : elem.type || "";
|
|
128105
|
+
const help = elem.help ? `<help>${elem.help}</help>` : "";
|
|
128106
|
+
const caption = elem.caption ? `<gray>${elem.caption}${help}</gray>` : "";
|
|
128107
|
+
const elementsJsx = (_elem$elements = elem.elements) === null || _elem$elements === void 0 ? void 0 : _elem$elements.map(ch => {
|
|
128108
|
+
const attrs = Object.keys(ch.attributes).map(attr => `${attr}="${ch.attributes[attr]}"`).join(" ");
|
|
128109
|
+
return `<${ch.name} ${attrs}/>`;
|
|
128110
|
+
});
|
|
128111
|
+
let titleElement = `${caption}<${elem.name} ${propBuilder}>${(_elementsJsx$join = elementsJsx === null || elementsJsx === void 0 ? void 0 : elementsJsx.join("")) !== null && _elementsJsx$join !== void 0 ? _elementsJsx$join : ""}${type}</${elem.name}>`;
|
|
128112
|
+
if ("isIndividual" in node || "isIndividual" in elem) {
|
|
128113
|
+
// @ts-ignore
|
|
128114
|
+
const isIndividual = node.isIndividual || elem.isIndividual;
|
|
128115
|
+
titleElement = `<if isIndividual="${isIndividual}">${titleElement}</if>`;
|
|
128116
|
+
}
|
|
128117
|
+
if (elem.cols) {
|
|
128118
|
+
return `<grid-col cols="${elem.cols}" className="title-col-bottom">${titleElement}</grid-col>`;
|
|
128119
|
+
}
|
|
128120
|
+
return titleElement;
|
|
128121
|
+
}
|
|
128122
|
+
|
|
128123
|
+
/***/ }),
|
|
128124
|
+
|
|
128125
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/TitleFnsElements.ts":
|
|
128126
|
+
/*!******************************************************************************************************************!*\
|
|
128127
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/TitleFnsElements.ts ***!
|
|
128128
|
+
\******************************************************************************************************************/
|
|
128129
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128130
|
+
|
|
128131
|
+
"use strict";
|
|
128132
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128133
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128134
|
+
/* harmony export */ titleFnsElements: () => (/* binding */ titleFnsElements)
|
|
128135
|
+
/* harmony export */ });
|
|
128136
|
+
/* harmony import */ var _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TitleFnsTypes */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/TitleFnsTypes.ts");
|
|
128137
|
+
|
|
128138
|
+
const emptyRequisite = "Зайдите в меню «Реквизиты и настройки» на главной странице, выберите пункт «Реквизиты плательщика» и заполните";
|
|
128139
|
+
const helpRequisite = "Значение подставляется автоматически из соответствующего поля в «Реквизитах плательщика» (Меню «Реквизиты и настройки» на главной странице)";
|
|
128140
|
+
const titleFnsElements = {
|
|
128141
|
+
inn: {
|
|
128142
|
+
name: "inn",
|
|
128143
|
+
defaults: {}
|
|
128144
|
+
},
|
|
128145
|
+
innorg: {
|
|
128146
|
+
caption: "ИНН",
|
|
128147
|
+
name: "text",
|
|
128148
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.innorg,
|
|
128149
|
+
defaults: {
|
|
128150
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/ИННЮЛ",
|
|
128151
|
+
fetchfn: "inn",
|
|
128152
|
+
disabled: "true",
|
|
128153
|
+
requisite: "true"
|
|
128154
|
+
}
|
|
128155
|
+
},
|
|
128156
|
+
innip: {
|
|
128157
|
+
caption: "ИНН",
|
|
128158
|
+
name: "text",
|
|
128159
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.innip,
|
|
128160
|
+
defaults: {
|
|
128161
|
+
path: "/Файл/Документ/СвНП/НПФЛ/ИННФЛ",
|
|
128162
|
+
fetchfn: "inn",
|
|
128163
|
+
disabled: "true",
|
|
128164
|
+
requisite: "true"
|
|
128165
|
+
}
|
|
128166
|
+
},
|
|
128167
|
+
kpp: {
|
|
128168
|
+
caption: "КПП",
|
|
128169
|
+
name: "input",
|
|
128170
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.kpp,
|
|
128171
|
+
maxLength: "9",
|
|
128172
|
+
isIndividual: false,
|
|
128173
|
+
cols: "1",
|
|
128174
|
+
defaults: {
|
|
128175
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/КПП",
|
|
128176
|
+
fetchfn: "kpp",
|
|
128177
|
+
requisite: "true"
|
|
128178
|
+
}
|
|
128179
|
+
},
|
|
128180
|
+
normativehelp: {
|
|
128181
|
+
name: "normativehelp",
|
|
128182
|
+
cols: "3",
|
|
128183
|
+
defaults: {}
|
|
128184
|
+
},
|
|
128185
|
+
corrnumber: {
|
|
128186
|
+
caption: "Номер корректировки",
|
|
128187
|
+
name: "input",
|
|
128188
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.corrnumber,
|
|
128189
|
+
maxLength: "3",
|
|
128190
|
+
cols: "1",
|
|
128191
|
+
defaults: {
|
|
128192
|
+
path: "/Файл/Документ/НомКорр",
|
|
128193
|
+
defaultValue: "0"
|
|
128194
|
+
}
|
|
128195
|
+
},
|
|
128196
|
+
period: {
|
|
128197
|
+
caption: "Налоговый период",
|
|
128198
|
+
name: "combobox",
|
|
128199
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.period,
|
|
128200
|
+
cols: "1",
|
|
128201
|
+
defaults: {
|
|
128202
|
+
path: "/Файл/Документ/Период",
|
|
128203
|
+
maxLength: "2",
|
|
128204
|
+
limit: "12",
|
|
128205
|
+
useincorrectvalue: "false",
|
|
128206
|
+
placeholder: "Начните вводить код"
|
|
128207
|
+
}
|
|
128208
|
+
},
|
|
128209
|
+
year: {
|
|
128210
|
+
caption: "Отчетный год",
|
|
128211
|
+
name: "input",
|
|
128212
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.year,
|
|
128213
|
+
maxLength: "4",
|
|
128214
|
+
cols: "1",
|
|
128215
|
+
defaults: {
|
|
128216
|
+
path: "/Файл/Документ/ОтчетГод",
|
|
128217
|
+
fetchfn: "year",
|
|
128218
|
+
settings: "true"
|
|
128219
|
+
}
|
|
128220
|
+
},
|
|
128221
|
+
ifns: {
|
|
128222
|
+
caption: "Представляется в налоговый орган",
|
|
128223
|
+
name: "combobox",
|
|
128224
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.ifns,
|
|
128225
|
+
cols: "2",
|
|
128226
|
+
defaults: {
|
|
128227
|
+
path: "/Файл/Документ/КодНО",
|
|
128228
|
+
maxLength: "4",
|
|
128229
|
+
useincorrectvalue: "false",
|
|
128230
|
+
limit: "10",
|
|
128231
|
+
gId: "572",
|
|
128232
|
+
fetchfn: "ifns"
|
|
128233
|
+
}
|
|
128234
|
+
},
|
|
128235
|
+
local: {
|
|
128236
|
+
name: "local",
|
|
128237
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.local,
|
|
128238
|
+
defaults: {}
|
|
128239
|
+
},
|
|
128240
|
+
commonlocal: {
|
|
128241
|
+
caption: "По месту учета",
|
|
128242
|
+
name: "combobox",
|
|
128243
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.local,
|
|
128244
|
+
cols: "1",
|
|
128245
|
+
defaults: {
|
|
128246
|
+
path: "/Файл/Документ/ПоМесту",
|
|
128247
|
+
useincorrectvalue: "false",
|
|
128248
|
+
maxLength: "3",
|
|
128249
|
+
limit: "10"
|
|
128250
|
+
}
|
|
128251
|
+
},
|
|
128252
|
+
orglocal: {
|
|
128253
|
+
caption: "По месту учета",
|
|
128254
|
+
name: "combobox",
|
|
128255
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.local,
|
|
128256
|
+
defaults: {
|
|
128257
|
+
path: "/Файл/Документ/ПоМесту",
|
|
128258
|
+
useincorrectvalue: "false",
|
|
128259
|
+
maxLength: "3",
|
|
128260
|
+
limit: "10"
|
|
128261
|
+
}
|
|
128262
|
+
},
|
|
128263
|
+
iplocal: {
|
|
128264
|
+
caption: "По месту учета",
|
|
128265
|
+
name: "combobox",
|
|
128266
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.local,
|
|
128267
|
+
defaults: {
|
|
128268
|
+
path: "/Файл/Документ/ПоМесту",
|
|
128269
|
+
useincorrectvalue: "false",
|
|
128270
|
+
maxLength: "3",
|
|
128271
|
+
limit: "10"
|
|
128272
|
+
}
|
|
128273
|
+
},
|
|
128274
|
+
name: {
|
|
128275
|
+
name: "namecommon",
|
|
128276
|
+
defaults: {}
|
|
128277
|
+
},
|
|
128278
|
+
orgname: {
|
|
128279
|
+
caption: "Налогоплательщик",
|
|
128280
|
+
name: "text",
|
|
128281
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.name,
|
|
128282
|
+
help: helpRequisite,
|
|
128283
|
+
defaults: {
|
|
128284
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/НаимОрг",
|
|
128285
|
+
emptydescription: `${emptyRequisite} поле Полное наименование организации`,
|
|
128286
|
+
fetchfn: "name",
|
|
128287
|
+
requisite: "true",
|
|
128288
|
+
disabled: "true"
|
|
128289
|
+
}
|
|
128290
|
+
},
|
|
128291
|
+
orgnametext: {
|
|
128292
|
+
caption: "Налогоплательщик",
|
|
128293
|
+
name: "text",
|
|
128294
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.name,
|
|
128295
|
+
help: helpRequisite,
|
|
128296
|
+
defaults: {
|
|
128297
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/НаимОрг",
|
|
128298
|
+
emptydescription: `${emptyRequisite} поле Полное наименование организации`,
|
|
128299
|
+
fetchfn: "editablenameorg",
|
|
128300
|
+
requisite: "true"
|
|
128301
|
+
}
|
|
128302
|
+
},
|
|
128303
|
+
orgnameinput: {
|
|
128304
|
+
caption: "Налогоплательщик",
|
|
128305
|
+
name: "input",
|
|
128306
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.name,
|
|
128307
|
+
defaults: {
|
|
128308
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/НаимОрг",
|
|
128309
|
+
emptydescription: `${emptyRequisite} поле Полное наименование организации`,
|
|
128310
|
+
fetchfn: "editablenameorg",
|
|
128311
|
+
requisite: "true"
|
|
128312
|
+
}
|
|
128313
|
+
},
|
|
128314
|
+
fioip: {
|
|
128315
|
+
caption: "Налогоплательщик",
|
|
128316
|
+
name: "fio",
|
|
128317
|
+
help: helpRequisite,
|
|
128318
|
+
defaults: {
|
|
128319
|
+
path: "/Файл/Документ/СвНП/НПФЛ/ФИО",
|
|
128320
|
+
fetchfn: "ip",
|
|
128321
|
+
emptydescription: `${emptyRequisite} Фамилия, имя, отчество физического лица`,
|
|
128322
|
+
requisite: "true",
|
|
128323
|
+
disabled: "true"
|
|
128324
|
+
}
|
|
128325
|
+
},
|
|
128326
|
+
okved: {
|
|
128327
|
+
caption: "Код ОКВЭД",
|
|
128328
|
+
name: "combobox",
|
|
128329
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.okved,
|
|
128330
|
+
cols: "1",
|
|
128331
|
+
defaults: {
|
|
128332
|
+
path: "/Файл/Документ/СвНП/ОКВЭД",
|
|
128333
|
+
maxLength: "8",
|
|
128334
|
+
limit: "10",
|
|
128335
|
+
gId: "10385",
|
|
128336
|
+
fetchfn: "okved"
|
|
128337
|
+
}
|
|
128338
|
+
},
|
|
128339
|
+
phone: {
|
|
128340
|
+
caption: "Контактный телефон",
|
|
128341
|
+
name: "text",
|
|
128342
|
+
help: helpRequisite,
|
|
128343
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.phone,
|
|
128344
|
+
cols: "1",
|
|
128345
|
+
defaults: {
|
|
128346
|
+
path: "/Файл/Документ/СвНП/Тлф",
|
|
128347
|
+
fetchfn: "payerphone",
|
|
128348
|
+
optional: "true",
|
|
128349
|
+
requisite: "true",
|
|
128350
|
+
disabled: "true"
|
|
128351
|
+
}
|
|
128352
|
+
},
|
|
128353
|
+
reorganization: {
|
|
128354
|
+
name: "reorganization",
|
|
128355
|
+
defaults: {}
|
|
128356
|
+
},
|
|
128357
|
+
reorgcode: {
|
|
128358
|
+
caption: "Форма реорганизации, ликвидации",
|
|
128359
|
+
name: "combobox",
|
|
128360
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.reorgcode,
|
|
128361
|
+
defaults: {
|
|
128362
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/СвРеоргЮЛ/ФормРеорг",
|
|
128363
|
+
useincorrectvalue: "false",
|
|
128364
|
+
maxLength: "1",
|
|
128365
|
+
limit: "10",
|
|
128366
|
+
gId: "800",
|
|
128367
|
+
optional: "true"
|
|
128368
|
+
}
|
|
128369
|
+
},
|
|
128370
|
+
reorginn: {
|
|
128371
|
+
caption: "ИНН реорганизованной организации",
|
|
128372
|
+
name: "input",
|
|
128373
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.innorg,
|
|
128374
|
+
maxLength: "10",
|
|
128375
|
+
visibilityPath: "СвНП/НПЮЛ/СвРеоргЮЛ/Реорг",
|
|
128376
|
+
defaults: {
|
|
128377
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/СвРеоргЮЛ/ИННЮЛ"
|
|
128378
|
+
}
|
|
128379
|
+
},
|
|
128380
|
+
reorgkpp: {
|
|
128381
|
+
caption: "КПП реорганизованной организации",
|
|
128382
|
+
name: "input",
|
|
128383
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.kpp,
|
|
128384
|
+
maxLength: "9",
|
|
128385
|
+
visibilityPath: "СвНП/НПЮЛ/СвРеоргЮЛ/Реорг",
|
|
128386
|
+
defaults: {
|
|
128387
|
+
path: "/Файл/Документ/СвНП/НПЮЛ/СвРеоргЮЛ/КПП"
|
|
128388
|
+
}
|
|
128389
|
+
},
|
|
128390
|
+
signer: {
|
|
128391
|
+
name: "signer",
|
|
128392
|
+
defaults: {}
|
|
128393
|
+
},
|
|
128394
|
+
signcode: {
|
|
128395
|
+
name: "radiogroup",
|
|
128396
|
+
// type: titleFnsTypes.signcode,
|
|
128397
|
+
type: undefined,
|
|
128398
|
+
elements: [{
|
|
128399
|
+
name: "radio",
|
|
128400
|
+
attributes: {
|
|
128401
|
+
value: "1",
|
|
128402
|
+
name: "Налогоплательщик"
|
|
128403
|
+
}
|
|
128404
|
+
}, {
|
|
128405
|
+
name: "radio",
|
|
128406
|
+
attributes: {
|
|
128407
|
+
value: "2",
|
|
128408
|
+
name: "Представитель налогоплательщика"
|
|
128409
|
+
}
|
|
128410
|
+
}],
|
|
128411
|
+
defaults: {
|
|
128412
|
+
path: "/Файл/Документ/Подписант/ПрПодп",
|
|
128413
|
+
defaultValue: "1"
|
|
128414
|
+
}
|
|
128415
|
+
},
|
|
128416
|
+
signfio: {
|
|
128417
|
+
caption: "Фамилия Имя Отчество",
|
|
128418
|
+
name: "fio",
|
|
128419
|
+
help: helpRequisite,
|
|
128420
|
+
defaults: {
|
|
128421
|
+
path: "/Файл/Документ/Подписант/ФИО",
|
|
128422
|
+
fetchfn: "sign",
|
|
128423
|
+
emptydescription: `${emptyRequisite} Фамилия, имя, отчество руководителя`,
|
|
128424
|
+
requisite: "true",
|
|
128425
|
+
disabled: "true"
|
|
128426
|
+
}
|
|
128427
|
+
},
|
|
128428
|
+
signorg: {
|
|
128429
|
+
caption: "Наименование организации — представителя<br/>налогоплательщика",
|
|
128430
|
+
name: "text",
|
|
128431
|
+
help: helpRequisite,
|
|
128432
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.name,
|
|
128433
|
+
defaults: {
|
|
128434
|
+
path: "/Файл/Документ/Подписант/СвПред/НаимОрг",
|
|
128435
|
+
fetchfn: "sendername",
|
|
128436
|
+
emptydescription: `${emptyRequisite} Наименование отправителя - юридического лица`,
|
|
128437
|
+
requisite: "true",
|
|
128438
|
+
disabled: "true"
|
|
128439
|
+
}
|
|
128440
|
+
},
|
|
128441
|
+
signdocument: {
|
|
128442
|
+
caption: "Наименование документа, подтверждающего<br/>полномочия представителя",
|
|
128443
|
+
name: "text",
|
|
128444
|
+
help: helpRequisite,
|
|
128445
|
+
type: _TitleFnsTypes__WEBPACK_IMPORTED_MODULE_0__.titleFnsTypes.signdocument,
|
|
128446
|
+
defaults: {
|
|
128447
|
+
path: "/Файл/Документ/Подписант/СвПред/НаимДок",
|
|
128448
|
+
fetchfn: "representativepaper",
|
|
128449
|
+
emptydescription: `${emptyRequisite} Наименование документа, подтверждающего полномочия представителя`,
|
|
128450
|
+
requisite: "true",
|
|
128451
|
+
disabled: "true"
|
|
128452
|
+
}
|
|
128453
|
+
}
|
|
128454
|
+
};
|
|
128455
|
+
|
|
128456
|
+
/***/ }),
|
|
128457
|
+
|
|
128458
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/TitleFnsTypes.ts":
|
|
128459
|
+
/*!***************************************************************************************************************!*\
|
|
128460
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/TitleFnsTypes.ts ***!
|
|
128461
|
+
\***************************************************************************************************************/
|
|
128462
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128463
|
+
|
|
128464
|
+
"use strict";
|
|
128465
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128466
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128467
|
+
/* harmony export */ titleFnsTypes: () => (/* binding */ titleFnsTypes)
|
|
128468
|
+
/* harmony export */ });
|
|
128469
|
+
const titleFnsTypes = {
|
|
128470
|
+
innorg: `<type base="string">
|
|
128471
|
+
<length value="10" />
|
|
128472
|
+
<pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{8}" />
|
|
128473
|
+
</type>`,
|
|
128474
|
+
innip: `<type base="string">
|
|
128475
|
+
<length value="12" />
|
|
128476
|
+
<pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{10}" />
|
|
128477
|
+
</type>`,
|
|
128478
|
+
kpp: `<type base="string" >
|
|
128479
|
+
<length value="9" />
|
|
128480
|
+
<pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})([0-9]{2})([0-9A-Z]{2})([0-9]{3})" />
|
|
128481
|
+
</type>`,
|
|
128482
|
+
corrnumber: `<type base="pattern" requiredDescription="Укажите 0 для первичного отчета или порядковый номер корректировки от 1 до 999" description="Номер корректировки должен принимать значение 0 для первичного отчета или значение от 1 до 999 для корректирующего">
|
|
128483
|
+
<pattern value="^\\d{0,3}$" />
|
|
128484
|
+
</type>`,
|
|
128485
|
+
period: `<type base="string" requiredDescription="Поле должно быть заполнено. Воспользуйтесь справочником для заполнения">
|
|
128486
|
+
<length value="2" />
|
|
128487
|
+
<enumeration value="21" />
|
|
128488
|
+
<enumeration value="22" />
|
|
128489
|
+
<enumeration value="23" />
|
|
128490
|
+
<enumeration value="24" />
|
|
128491
|
+
<enumeration value="51" />
|
|
128492
|
+
<enumeration value="54" />
|
|
128493
|
+
<enumeration value="55" />
|
|
128494
|
+
<enumeration value="56" />
|
|
128495
|
+
</type>`,
|
|
128496
|
+
year: '<type base="gYear" />',
|
|
128497
|
+
ifns: `<type base="string" requiredDescription="Поле должно быть заполнено. Воспользуйтесь справочником для заполнения">
|
|
128498
|
+
<length value="4" />
|
|
128499
|
+
<pattern value="[0-9]{4}" />
|
|
128500
|
+
</type>`,
|
|
128501
|
+
local: `<type base="string" requiredDescription="Поле должно быть заполнено. Воспользуйтесь справочником для заполнения" >
|
|
128502
|
+
<length value="3" />
|
|
128503
|
+
</type>`,
|
|
128504
|
+
name: `<type base="string">
|
|
128505
|
+
<minLength value="1" />
|
|
128506
|
+
<maxLength value="1000" />
|
|
128507
|
+
</type>`,
|
|
128508
|
+
okved: `<type base="string" requiredDescription="Поле должно быть заполнено. Воспользуйтесь справочником для заполнения" description="Значение должно быть корректным кодом ОКВЭД длиной от 2 до 8 символов. Воспользуйтесь справочником для заполнения">
|
|
128509
|
+
<maxLength value="8" />
|
|
128510
|
+
<minLength value="2" />
|
|
128511
|
+
<pattern value="([0-9]{2})|([0-9]{2}\.[0-9]{1})|([0-9]{2}\.[0-9]{2})|([0-9]{2}\.[0-9]{2}\.[0-9]{1})|([0-9]{2}\.[0-9]{2}\.[0-9]{2})" />
|
|
128512
|
+
</type>`,
|
|
128513
|
+
phone: `<type base="string">
|
|
128514
|
+
<minLength value="1" />
|
|
128515
|
+
<maxLength value="20" />
|
|
128516
|
+
</type>`,
|
|
128517
|
+
reorgcode: `<type base="string">
|
|
128518
|
+
<length value="1" />
|
|
128519
|
+
<enumeration value="1" />
|
|
128520
|
+
<enumeration value="2" />
|
|
128521
|
+
<enumeration value="3" />
|
|
128522
|
+
<enumeration value="5" />
|
|
128523
|
+
<enumeration value="6" />
|
|
128524
|
+
<enumeration value="0" />
|
|
128525
|
+
</type>`,
|
|
128526
|
+
signdocument: `<type base="string">
|
|
128527
|
+
<minLength value="1" />
|
|
128528
|
+
<maxLength value="120" />
|
|
128529
|
+
</type>`
|
|
128530
|
+
};
|
|
128531
|
+
|
|
128532
|
+
/***/ }),
|
|
128533
|
+
|
|
128534
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/INNPreprocessor.ts":
|
|
128535
|
+
/*!********************************************************************************************************!*\
|
|
128536
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/INNPreprocessor.ts ***!
|
|
128537
|
+
\********************************************************************************************************/
|
|
128538
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128539
|
+
|
|
128540
|
+
"use strict";
|
|
128541
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128542
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128543
|
+
/* harmony export */ innPreprocessor: () => (/* binding */ innPreprocessor)
|
|
128544
|
+
/* harmony export */ });
|
|
128545
|
+
/* harmony import */ var _XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
128546
|
+
/* harmony import */ var _Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Elements/GetTitleElement */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts");
|
|
128547
|
+
|
|
128548
|
+
|
|
128549
|
+
function innPreprocessor(node) {
|
|
128550
|
+
const jsx = `<grid-col cols="1">
|
|
128551
|
+
<if isIndividual="true">
|
|
128552
|
+
<then>
|
|
128553
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "innip")}
|
|
128554
|
+
</then>
|
|
128555
|
+
<else>
|
|
128556
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "innorg")}
|
|
128557
|
+
</else>
|
|
128558
|
+
</if>
|
|
128559
|
+
</grid-col>`;
|
|
128560
|
+
const content = (0,_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(jsx);
|
|
128561
|
+
content.removeAttribute("subtemplate");
|
|
128562
|
+
content.setParent(node.parent);
|
|
128563
|
+
return content;
|
|
128564
|
+
}
|
|
128565
|
+
|
|
128566
|
+
/***/ }),
|
|
128567
|
+
|
|
128568
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/LocalPreprocessor.ts":
|
|
128569
|
+
/*!**********************************************************************************************************!*\
|
|
128570
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/LocalPreprocessor.ts ***!
|
|
128571
|
+
\**********************************************************************************************************/
|
|
128572
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128573
|
+
|
|
128574
|
+
"use strict";
|
|
128575
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128576
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128577
|
+
/* harmony export */ localPreprocessor: () => (/* binding */ localPreprocessor)
|
|
128578
|
+
/* harmony export */ });
|
|
128579
|
+
/* harmony import */ var _XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
128580
|
+
/* harmony import */ var _Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Elements/GetTitleElement */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts");
|
|
128581
|
+
|
|
128582
|
+
|
|
128583
|
+
function localPreprocessor(node) {
|
|
128584
|
+
const {
|
|
128585
|
+
gId,
|
|
128586
|
+
gIdIp,
|
|
128587
|
+
gIdOrg
|
|
128588
|
+
} = node.attributes;
|
|
128589
|
+
let jsx = "";
|
|
128590
|
+
if (gId) {
|
|
128591
|
+
jsx = (0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "commonlocal");
|
|
128592
|
+
} else {
|
|
128593
|
+
node.removeAttribute("gIdIp");
|
|
128594
|
+
node.removeAttribute("gIdOrg");
|
|
128595
|
+
node.setAttribute("gId", gIdIp);
|
|
128596
|
+
const ipJsx = (0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "iplocal");
|
|
128597
|
+
node.setAttribute("gId", gIdOrg);
|
|
128598
|
+
const orgJsx = (0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "orglocal");
|
|
128599
|
+
jsx = `<grid-col cols="1">
|
|
128600
|
+
<if isIndividual="true">
|
|
128601
|
+
<then>
|
|
128602
|
+
${ipJsx}
|
|
128603
|
+
</then>
|
|
128604
|
+
<else>
|
|
128605
|
+
${orgJsx}
|
|
128606
|
+
</else>
|
|
128607
|
+
</if>
|
|
128608
|
+
</grid-col>`;
|
|
128609
|
+
}
|
|
128610
|
+
const content = (0,_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(jsx);
|
|
128611
|
+
content.removeAttribute("subtemplate");
|
|
128612
|
+
content.setParent(node.parent);
|
|
128613
|
+
return content;
|
|
128614
|
+
}
|
|
128615
|
+
|
|
128616
|
+
/***/ }),
|
|
128617
|
+
|
|
128618
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/NameCommonPreprocessor.ts":
|
|
128619
|
+
/*!***************************************************************************************************************!*\
|
|
128620
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/NameCommonPreprocessor.ts ***!
|
|
128621
|
+
\***************************************************************************************************************/
|
|
128622
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128623
|
+
|
|
128624
|
+
"use strict";
|
|
128625
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128626
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128627
|
+
/* harmony export */ nameCommonPreprocessor: () => (/* binding */ nameCommonPreprocessor)
|
|
128628
|
+
/* harmony export */ });
|
|
128629
|
+
/* harmony import */ var _XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
128630
|
+
/* harmony import */ var _Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Elements/GetTitleElement */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts");
|
|
128631
|
+
|
|
128632
|
+
|
|
128633
|
+
function nameCommonPreprocessor(node) {
|
|
128634
|
+
const editable = node.attributes.editable;
|
|
128635
|
+
const orgNameDefault = (0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "orgname");
|
|
128636
|
+
const orgNameText = (0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "orgnametext");
|
|
128637
|
+
const orgNameInput = (0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "orgnameinput");
|
|
128638
|
+
let orgName = "";
|
|
128639
|
+
if (editable) {
|
|
128640
|
+
orgName = `<block visibilityPath="СвНП/НПЮЛ/НаимОргНеРед">
|
|
128641
|
+
${orgNameText}
|
|
128642
|
+
</block>
|
|
128643
|
+
<block visibilityPath="СвНП/НПЮЛ/НаимОргРед">
|
|
128644
|
+
${orgNameInput}
|
|
128645
|
+
</block>`;
|
|
128646
|
+
} else {
|
|
128647
|
+
orgName = orgNameDefault;
|
|
128648
|
+
}
|
|
128649
|
+
const jsx = `<grid-col cols="3" className="title-col-bottom">
|
|
128650
|
+
<if isIndividual="true">
|
|
128651
|
+
<then>
|
|
128652
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "fioip")}
|
|
128653
|
+
</then>
|
|
128654
|
+
<else>
|
|
128655
|
+
${orgName}
|
|
128656
|
+
</else>
|
|
128657
|
+
</if>
|
|
128658
|
+
</grid-col>`;
|
|
128659
|
+
const content = (0,_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(jsx);
|
|
128660
|
+
content.removeAttribute("subtemplate");
|
|
128661
|
+
content.setParent(node.parent);
|
|
128662
|
+
return content;
|
|
128663
|
+
}
|
|
128664
|
+
|
|
128665
|
+
/***/ }),
|
|
128666
|
+
|
|
128667
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/PageTitlefnsPreprocessors.ts":
|
|
128668
|
+
/*!******************************************************************************************************************!*\
|
|
128669
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/PageTitlefnsPreprocessors.ts ***!
|
|
128670
|
+
\******************************************************************************************************************/
|
|
128671
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128672
|
+
|
|
128673
|
+
"use strict";
|
|
128674
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128675
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128676
|
+
/* harmony export */ pageTitlefnsPreprocessors: () => (/* binding */ pageTitlefnsPreprocessors)
|
|
128677
|
+
/* harmony export */ });
|
|
128678
|
+
/* harmony import */ var _INNPreprocessor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./INNPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/INNPreprocessor.ts");
|
|
128679
|
+
/* harmony import */ var _LocalPreprocessor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LocalPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/LocalPreprocessor.ts");
|
|
128680
|
+
/* harmony import */ var _NameCommonPreprocessor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NameCommonPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/NameCommonPreprocessor.ts");
|
|
128681
|
+
/* harmony import */ var _ReorganizationPreprocessor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ReorganizationPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/ReorganizationPreprocessor.ts");
|
|
128682
|
+
/* harmony import */ var _SignerPreprocessor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SignerPreprocessor */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/SignerPreprocessor.ts");
|
|
128683
|
+
|
|
128684
|
+
|
|
128685
|
+
|
|
128686
|
+
|
|
128687
|
+
|
|
128688
|
+
const pageTitlefnsPreprocessors = {
|
|
128689
|
+
inn: _INNPreprocessor__WEBPACK_IMPORTED_MODULE_0__.innPreprocessor,
|
|
128690
|
+
local: _LocalPreprocessor__WEBPACK_IMPORTED_MODULE_1__.localPreprocessor,
|
|
128691
|
+
namecommon: _NameCommonPreprocessor__WEBPACK_IMPORTED_MODULE_2__.nameCommonPreprocessor,
|
|
128692
|
+
reorganization: _ReorganizationPreprocessor__WEBPACK_IMPORTED_MODULE_3__.reorganizationPreprocessor,
|
|
128693
|
+
signer: _SignerPreprocessor__WEBPACK_IMPORTED_MODULE_4__.signerPreprocessor
|
|
128694
|
+
};
|
|
128695
|
+
|
|
128696
|
+
/***/ }),
|
|
128697
|
+
|
|
128698
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/ReorganizationPreprocessor.ts":
|
|
128699
|
+
/*!*******************************************************************************************************************!*\
|
|
128700
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/ReorganizationPreprocessor.ts ***!
|
|
128701
|
+
\*******************************************************************************************************************/
|
|
128702
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128703
|
+
|
|
128704
|
+
"use strict";
|
|
128705
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128706
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128707
|
+
/* harmony export */ reorganizationPreprocessor: () => (/* binding */ reorganizationPreprocessor)
|
|
128708
|
+
/* harmony export */ });
|
|
128709
|
+
/* harmony import */ var _XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
128710
|
+
/* harmony import */ var _Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Elements/GetTitleElement */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts");
|
|
128711
|
+
|
|
128712
|
+
|
|
128713
|
+
function reorganizationPreprocessor(node) {
|
|
128714
|
+
const jsx = `<grid-col cols="1" autocalc="reorganization">
|
|
128715
|
+
<if isIndividual="false">
|
|
128716
|
+
<then>
|
|
128717
|
+
<block className="title-col-bottom">
|
|
128718
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "reorgcode")}
|
|
128719
|
+
</block>
|
|
128720
|
+
<block className="title-col-bottom" visibilityPath="СвНП/НПЮЛ/СвРеоргЮЛ/Реорг">
|
|
128721
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "reorginn")}
|
|
128722
|
+
</block>
|
|
128723
|
+
<block className="title-col-bottom" visibilityPath="СвНП/НПЮЛ/СвРеоргЮЛ/Реорг">
|
|
128724
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "reorgkpp")}
|
|
128725
|
+
</block>
|
|
128726
|
+
</then>
|
|
128727
|
+
</if>
|
|
128728
|
+
</grid-col>`;
|
|
128729
|
+
const content = (0,_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(jsx);
|
|
128730
|
+
content.removeAttribute("subtemplate");
|
|
128731
|
+
content.setParent(node.parent);
|
|
128732
|
+
return content;
|
|
128733
|
+
}
|
|
128734
|
+
|
|
128735
|
+
/***/ }),
|
|
128736
|
+
|
|
128737
|
+
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/SignerPreprocessor.ts":
|
|
128738
|
+
/*!***********************************************************************************************************!*\
|
|
128739
|
+
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/SignerPreprocessor.ts ***!
|
|
128740
|
+
\***********************************************************************************************************/
|
|
128741
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128742
|
+
|
|
128743
|
+
"use strict";
|
|
128744
|
+
__webpack_require__.r(__webpack_exports__);
|
|
128745
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128746
|
+
/* harmony export */ signerPreprocessor: () => (/* binding */ signerPreprocessor)
|
|
128747
|
+
/* harmony export */ });
|
|
128748
|
+
/* harmony import */ var _XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../XmlParser/XmlParser */ "./Generator/src/common/XmlParser/XmlParser.ts");
|
|
128749
|
+
/* harmony import */ var _Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Elements/GetTitleElement */ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlefnsPreprocessors/Elements/GetTitleElement.ts");
|
|
128750
|
+
|
|
128751
|
+
|
|
128752
|
+
function signerPreprocessor(node) {
|
|
128753
|
+
const jsx = `<grid-col cols="3">
|
|
128754
|
+
<grid-row className="candy-title-signer" cols="6">
|
|
128755
|
+
<grid-col cols="3" autocalc="signer">
|
|
128756
|
+
<block className="title-col-bottom">
|
|
128757
|
+
<bold>Достоверность и полноту сведений, указанных<br/>в настоящей декларации, подтверждаю:</bold>
|
|
128758
|
+
</block>
|
|
128759
|
+
<block className="title-col-bottom">
|
|
128760
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "signcode")}
|
|
128761
|
+
</block>
|
|
128762
|
+
<block className="title-col-bottom" visibilityPath="Подписант/ПрПодпФИО">
|
|
128763
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "signfio")}
|
|
128764
|
+
</block>
|
|
128765
|
+
<block className="title-col-bottom" visibilityPath="Подписант/ПрПодпНаимОрг">
|
|
128766
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "signorg")}
|
|
128767
|
+
</block>
|
|
128768
|
+
<block className="title-col-bottom" visibilityPath="Подписант/ПрПодпНаимДок">
|
|
128769
|
+
${(0,_Elements_GetTitleElement__WEBPACK_IMPORTED_MODULE_1__.getTitleElement)(node, "signdocument")}
|
|
128770
|
+
</block>
|
|
128771
|
+
</grid-col>
|
|
128772
|
+
<grid-col cols="3">
|
|
128773
|
+
<cross />
|
|
128774
|
+
</grid-col>
|
|
128775
|
+
</grid-row>
|
|
128776
|
+
</grid-col>`;
|
|
128777
|
+
const content = (0,_XmlParser_XmlParser__WEBPACK_IMPORTED_MODULE_0__.parseXml)(jsx);
|
|
128778
|
+
content.removeAttribute("subtemplate");
|
|
128779
|
+
content.setParent(node.parent);
|
|
128780
|
+
return content;
|
|
128781
|
+
}
|
|
128782
|
+
|
|
128783
|
+
/***/ }),
|
|
128784
|
+
|
|
127840
128785
|
/***/ "./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlestatPreprocessor.ts":
|
|
127841
128786
|
/*!****************************************************************************************!*\
|
|
127842
128787
|
!*** ./Generator/src/common/SugarXmlParser/Preprocessors/PageTitlestatPreprocessor.ts ***!
|