@kontur.candy/generator 5.117.0-test-9142.0 → 5.117.0-test-fias-widget.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 +277 -167
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46700,24 +46700,6 @@ class KCLangRuntimeUtils {
|
|
|
46700
46700
|
dateNow() {
|
|
46701
46701
|
return new Date().toLocaleDateString("ru-RU");
|
|
46702
46702
|
}
|
|
46703
|
-
numerator(argument) {
|
|
46704
|
-
var _wrapDecimalOperand;
|
|
46705
|
-
if (!argument) {
|
|
46706
|
-
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](0);
|
|
46707
|
-
}
|
|
46708
|
-
return (_wrapDecimalOperand = (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(argument.split("/")[0])) !== null && _wrapDecimalOperand !== void 0 ? _wrapDecimalOperand : 0;
|
|
46709
|
-
}
|
|
46710
|
-
denominator(argument) {
|
|
46711
|
-
var _wrapDecimalOperand2;
|
|
46712
|
-
if (!argument) {
|
|
46713
|
-
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](0);
|
|
46714
|
-
}
|
|
46715
|
-
const denominatorVal = argument.split("/")[1];
|
|
46716
|
-
if (denominatorVal === undefined) {
|
|
46717
|
-
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](1);
|
|
46718
|
-
}
|
|
46719
|
-
return (_wrapDecimalOperand2 = (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(denominatorVal)) !== null && _wrapDecimalOperand2 !== void 0 ? _wrapDecimalOperand2 : 0;
|
|
46720
|
-
}
|
|
46721
46703
|
}
|
|
46722
46704
|
KCLangRuntimeUtils.kcLangUtilsName = "kcLangUtils";
|
|
46723
46705
|
|
|
@@ -48238,6 +48220,138 @@ let SubHeaderColors = /*#__PURE__*/function (SubHeaderColors) {
|
|
|
48238
48220
|
|
|
48239
48221
|
/***/ }),
|
|
48240
48222
|
|
|
48223
|
+
/***/ "./Engine/src/Controls/ValueEditors/Fias/FiasEditor/FiasWidget/FiasWidgetTypes.ts":
|
|
48224
|
+
/*!****************************************************************************************!*\
|
|
48225
|
+
!*** ./Engine/src/Controls/ValueEditors/Fias/FiasEditor/FiasWidget/FiasWidgetTypes.ts ***!
|
|
48226
|
+
\****************************************************************************************/
|
|
48227
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
48228
|
+
|
|
48229
|
+
"use strict";
|
|
48230
|
+
__webpack_require__.r(__webpack_exports__);
|
|
48231
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48232
|
+
/* harmony export */ FiasDivision: () => (/* binding */ FiasDivision),
|
|
48233
|
+
/* harmony export */ FiasEstateStatuses: () => (/* binding */ FiasEstateStatuses),
|
|
48234
|
+
/* harmony export */ FiasExtraFields: () => (/* binding */ FiasExtraFields),
|
|
48235
|
+
/* harmony export */ FiasFields: () => (/* binding */ FiasFields),
|
|
48236
|
+
/* harmony export */ FiasFlatType: () => (/* binding */ FiasFlatType),
|
|
48237
|
+
/* harmony export */ FiasLiveStatuses: () => (/* binding */ FiasLiveStatuses),
|
|
48238
|
+
/* harmony export */ FiasRoomType: () => (/* binding */ FiasRoomType),
|
|
48239
|
+
/* harmony export */ FiasSchema: () => (/* binding */ FiasSchema),
|
|
48240
|
+
/* harmony export */ FiasStructureStatuses: () => (/* binding */ FiasStructureStatuses),
|
|
48241
|
+
/* harmony export */ GarHouseAddType: () => (/* binding */ GarHouseAddType),
|
|
48242
|
+
/* harmony export */ GarHouseType: () => (/* binding */ GarHouseType)
|
|
48243
|
+
/* harmony export */ });
|
|
48244
|
+
// по-хорошему надо импортить из "@skbkontur/fias-widget-npm-loader", но в этом случае валятся тесты на mocha, нет времени щас чинить
|
|
48245
|
+
|
|
48246
|
+
let GarHouseType = /*#__PURE__*/function (GarHouseType) {
|
|
48247
|
+
GarHouseType["None"] = "None";
|
|
48248
|
+
GarHouseType["Hold"] = "Hold";
|
|
48249
|
+
GarHouseType["House"] = "House";
|
|
48250
|
+
GarHouseType["HouseHold"] = "HouseHold";
|
|
48251
|
+
GarHouseType["Garage"] = "Garage";
|
|
48252
|
+
GarHouseType["Building"] = "Building";
|
|
48253
|
+
GarHouseType["Mine"] = "Mine";
|
|
48254
|
+
GarHouseType["Structure"] = "Structure";
|
|
48255
|
+
GarHouseType["Construction"] = "Construction";
|
|
48256
|
+
GarHouseType["Litera"] = "Litera";
|
|
48257
|
+
GarHouseType["Housing"] = "Housing";
|
|
48258
|
+
GarHouseType["Basement"] = "Basement";
|
|
48259
|
+
GarHouseType["BoilerRoom"] = "BoilerRoom";
|
|
48260
|
+
GarHouseType["Cellar"] = "Cellar";
|
|
48261
|
+
GarHouseType["UnfinishedConstruction"] = "UnfinishedConstruction";
|
|
48262
|
+
return GarHouseType;
|
|
48263
|
+
}({});
|
|
48264
|
+
let GarHouseAddType = /*#__PURE__*/function (GarHouseAddType) {
|
|
48265
|
+
GarHouseAddType["None"] = "None";
|
|
48266
|
+
GarHouseAddType["Structure"] = "Structure";
|
|
48267
|
+
GarHouseAddType["Construction"] = "Construction";
|
|
48268
|
+
GarHouseAddType["Litera"] = "Litera";
|
|
48269
|
+
GarHouseAddType["Housing"] = "Housing";
|
|
48270
|
+
return GarHouseAddType;
|
|
48271
|
+
}({});
|
|
48272
|
+
let FiasDivision = /*#__PURE__*/function (FiasDivision) {
|
|
48273
|
+
FiasDivision["Administrative"] = "administrative";
|
|
48274
|
+
FiasDivision["Municipal"] = "municipal";
|
|
48275
|
+
return FiasDivision;
|
|
48276
|
+
}({});
|
|
48277
|
+
let FiasSchema = /*#__PURE__*/function (FiasSchema) {
|
|
48278
|
+
FiasSchema["Fias"] = "fias";
|
|
48279
|
+
FiasSchema["Gar"] = "gar";
|
|
48280
|
+
return FiasSchema;
|
|
48281
|
+
}({});
|
|
48282
|
+
let FiasEstateStatuses = /*#__PURE__*/function (FiasEstateStatuses) {
|
|
48283
|
+
FiasEstateStatuses["None"] = "None";
|
|
48284
|
+
FiasEstateStatuses["Hold"] = "Hold";
|
|
48285
|
+
FiasEstateStatuses["House"] = "House";
|
|
48286
|
+
FiasEstateStatuses["HouseHold"] = "HouseHold";
|
|
48287
|
+
FiasEstateStatuses["Garage"] = "Garage";
|
|
48288
|
+
FiasEstateStatuses["Building"] = "Building";
|
|
48289
|
+
FiasEstateStatuses["Mine"] = "Mine";
|
|
48290
|
+
FiasEstateStatuses["Basement"] = "Basement";
|
|
48291
|
+
FiasEstateStatuses["BoilerRoom"] = "BoilerRoom";
|
|
48292
|
+
FiasEstateStatuses["Cellar"] = "Cellar";
|
|
48293
|
+
return FiasEstateStatuses;
|
|
48294
|
+
}({});
|
|
48295
|
+
let FiasStructureStatuses = /*#__PURE__*/function (FiasStructureStatuses) {
|
|
48296
|
+
FiasStructureStatuses["Structure"] = "Structure";
|
|
48297
|
+
FiasStructureStatuses["Construction"] = "Construction";
|
|
48298
|
+
FiasStructureStatuses["Liter"] = "Liter";
|
|
48299
|
+
FiasStructureStatuses["None"] = "None";
|
|
48300
|
+
return FiasStructureStatuses;
|
|
48301
|
+
}({});
|
|
48302
|
+
let FiasLiveStatuses = /*#__PURE__*/function (FiasLiveStatuses) {
|
|
48303
|
+
FiasLiveStatuses["active"] = "active";
|
|
48304
|
+
FiasLiveStatuses["inactive"] = "inactive";
|
|
48305
|
+
return FiasLiveStatuses;
|
|
48306
|
+
}({});
|
|
48307
|
+
let FiasFlatType = /*#__PURE__*/function (FiasFlatType) {
|
|
48308
|
+
FiasFlatType[FiasFlatType["None"] = 0] = "None";
|
|
48309
|
+
FiasFlatType[FiasFlatType["Placement"] = 1] = "Placement";
|
|
48310
|
+
FiasFlatType[FiasFlatType["Apartment"] = 2] = "Apartment";
|
|
48311
|
+
FiasFlatType[FiasFlatType["Office"] = 3] = "Office";
|
|
48312
|
+
FiasFlatType[FiasFlatType["Room"] = 4] = "Room";
|
|
48313
|
+
FiasFlatType[FiasFlatType["WorkArea"] = 5] = "WorkArea";
|
|
48314
|
+
FiasFlatType[FiasFlatType["Stock"] = 6] = "Stock";
|
|
48315
|
+
FiasFlatType[FiasFlatType["ShoppingRoom"] = 7] = "ShoppingRoom";
|
|
48316
|
+
FiasFlatType[FiasFlatType["Workshop"] = 8] = "Workshop";
|
|
48317
|
+
FiasFlatType[FiasFlatType["Pavilion"] = 9] = "Pavilion";
|
|
48318
|
+
FiasFlatType[FiasFlatType["Basement"] = 10] = "Basement";
|
|
48319
|
+
FiasFlatType[FiasFlatType["BoilerRoom"] = 11] = "BoilerRoom";
|
|
48320
|
+
FiasFlatType[FiasFlatType["Cellar"] = 12] = "Cellar";
|
|
48321
|
+
FiasFlatType[FiasFlatType["Garage"] = 13] = "Garage";
|
|
48322
|
+
FiasFlatType[FiasFlatType["CarPlace"] = 14] = "CarPlace";
|
|
48323
|
+
return FiasFlatType;
|
|
48324
|
+
}({});
|
|
48325
|
+
let FiasRoomType = /*#__PURE__*/function (FiasRoomType) {
|
|
48326
|
+
FiasRoomType[FiasRoomType["None"] = 0] = "None";
|
|
48327
|
+
FiasRoomType[FiasRoomType["Room"] = 1] = "Room";
|
|
48328
|
+
FiasRoomType[FiasRoomType["Placement"] = 2] = "Placement";
|
|
48329
|
+
return FiasRoomType;
|
|
48330
|
+
}({});
|
|
48331
|
+
let FiasFields = /*#__PURE__*/function (FiasFields) {
|
|
48332
|
+
FiasFields["region"] = "region";
|
|
48333
|
+
FiasFields["district"] = "district";
|
|
48334
|
+
FiasFields["municipaldistrict"] = "municipaldistrict";
|
|
48335
|
+
FiasFields["city"] = "city";
|
|
48336
|
+
FiasFields["intracityarea"] = "intracityarea";
|
|
48337
|
+
FiasFields["urbansettlement"] = "urbansettlement";
|
|
48338
|
+
FiasFields["settlement"] = "settlement";
|
|
48339
|
+
FiasFields["planningstructure"] = "planningstructure";
|
|
48340
|
+
FiasFields["street"] = "street";
|
|
48341
|
+
FiasFields["stead"] = "stead";
|
|
48342
|
+
FiasFields["house"] = "house";
|
|
48343
|
+
FiasFields["garhouse"] = "garhouse";
|
|
48344
|
+
FiasFields["room"] = "room";
|
|
48345
|
+
FiasFields["apartment"] = "apartment";
|
|
48346
|
+
return FiasFields;
|
|
48347
|
+
}({});
|
|
48348
|
+
let FiasExtraFields = /*#__PURE__*/function (FiasExtraFields) {
|
|
48349
|
+
FiasExtraFields["postalcode"] = "postalcode";
|
|
48350
|
+
return FiasExtraFields;
|
|
48351
|
+
}({});
|
|
48352
|
+
|
|
48353
|
+
/***/ }),
|
|
48354
|
+
|
|
48241
48355
|
/***/ "./Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types.ts":
|
|
48242
48356
|
/*!**************************************************************************************!*\
|
|
48243
48357
|
!*** ./Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types.ts ***!
|
|
@@ -50579,7 +50693,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50579
50693
|
/* harmony export */ dateNowKCLangFunction: () => (/* binding */ dateNowKCLangFunction),
|
|
50580
50694
|
/* harmony export */ dateTimeKCLangFunction: () => (/* binding */ dateTimeKCLangFunction),
|
|
50581
50695
|
/* harmony export */ dateToStringKCLangFunction: () => (/* binding */ dateToStringKCLangFunction),
|
|
50582
|
-
/* harmony export */ denominatorKCLangFunction: () => (/* binding */ denominatorKCLangFunction),
|
|
50583
50696
|
/* harmony export */ differenceInDaysKCLangFunction: () => (/* binding */ differenceInDaysKCLangFunction),
|
|
50584
50697
|
/* harmony export */ differenceInMonthsKCLangFunction: () => (/* binding */ differenceInMonthsKCLangFunction),
|
|
50585
50698
|
/* harmony export */ existsKCLangFunction: () => (/* binding */ existsKCLangFunction),
|
|
@@ -50609,7 +50722,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50609
50722
|
/* harmony export */ makeDictKCLangFunction: () => (/* binding */ makeDictKCLangFunction),
|
|
50610
50723
|
/* harmony export */ newlineKCLangFunction: () => (/* binding */ newlineKCLangFunction),
|
|
50611
50724
|
/* harmony export */ noDepsKCLangFunction: () => (/* binding */ noDepsKCLangFunction),
|
|
50612
|
-
/* harmony export */ numeratorKCLangFunction: () => (/* binding */ numeratorKCLangFunction),
|
|
50613
50725
|
/* harmony export */ regexMatchKCLangFunction: () => (/* binding */ regexMatchKCLangFunction),
|
|
50614
50726
|
/* harmony export */ roundKCLangFunction: () => (/* binding */ roundKCLangFunction),
|
|
50615
50727
|
/* harmony export */ substringKCLangFunction: () => (/* binding */ substringKCLangFunction),
|
|
@@ -51374,36 +51486,6 @@ const joinKCLangFunction = params => {
|
|
|
51374
51486
|
array: arrayParam
|
|
51375
51487
|
};
|
|
51376
51488
|
};
|
|
51377
|
-
const numeratorKCLangFunction = params => {
|
|
51378
|
-
var _params$56;
|
|
51379
|
-
const errors = Array.from(validateParams(params, 1));
|
|
51380
|
-
if (errors.length > 0) {
|
|
51381
|
-
return new FunctionValidationErrorCollection(errors);
|
|
51382
|
-
}
|
|
51383
|
-
const param = (_params$56 = params[0]) === null || _params$56 === void 0 ? void 0 : _params$56.value;
|
|
51384
|
-
if (param == undefined) {
|
|
51385
|
-
throw new Error("Unexpected error!");
|
|
51386
|
-
}
|
|
51387
|
-
return {
|
|
51388
|
-
type: "numerator",
|
|
51389
|
-
expression: param
|
|
51390
|
-
};
|
|
51391
|
-
};
|
|
51392
|
-
const denominatorKCLangFunction = params => {
|
|
51393
|
-
var _params$57;
|
|
51394
|
-
const errors = Array.from(validateParams(params, 1));
|
|
51395
|
-
if (errors.length > 0) {
|
|
51396
|
-
return new FunctionValidationErrorCollection(errors);
|
|
51397
|
-
}
|
|
51398
|
-
const param = (_params$57 = params[0]) === null || _params$57 === void 0 ? void 0 : _params$57.value;
|
|
51399
|
-
if (param == undefined) {
|
|
51400
|
-
throw new Error("Unexpected error!");
|
|
51401
|
-
}
|
|
51402
|
-
return {
|
|
51403
|
-
type: "denominator",
|
|
51404
|
-
expression: param
|
|
51405
|
-
};
|
|
51406
|
-
};
|
|
51407
51489
|
|
|
51408
51490
|
/***/ }),
|
|
51409
51491
|
|
|
@@ -51481,9 +51563,7 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
51481
51563
|
makeDict: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.makeDictKCLangFunction],
|
|
51482
51564
|
getSumByKeys: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.getSumByKeysKCLangFunction],
|
|
51483
51565
|
join: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.joinKCLangFunction],
|
|
51484
|
-
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
|
|
51485
|
-
numerator: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.numeratorKCLangFunction],
|
|
51486
|
-
denominator: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.denominatorKCLangFunction]
|
|
51566
|
+
isEqualToAutoCalculated: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_7__.isEqualToAutoCalculatedFunction]
|
|
51487
51567
|
});
|
|
51488
51568
|
class KCLangAntlrParser {
|
|
51489
51569
|
static parse(code) {
|
|
@@ -61384,12 +61464,6 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
61384
61464
|
case "property":
|
|
61385
61465
|
visitor.visitGetPropertyByNameNode(node);
|
|
61386
61466
|
break;
|
|
61387
|
-
case "numerator":
|
|
61388
|
-
visitor.visitNumeratorKCLangNode(node);
|
|
61389
|
-
break;
|
|
61390
|
-
case "denominator":
|
|
61391
|
-
visitor.visitDenominatorKCLangNode(node);
|
|
61392
|
-
break;
|
|
61393
61467
|
default:
|
|
61394
61468
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
61395
61469
|
break;
|
|
@@ -61570,12 +61644,6 @@ class DefaultKCLangExpressionVisitor {
|
|
|
61570
61644
|
visitGetPropertyByNameNode(_node) {
|
|
61571
61645
|
// default empty implementation
|
|
61572
61646
|
}
|
|
61573
|
-
visitNumeratorKCLangNode(_node) {
|
|
61574
|
-
// default empty implementation
|
|
61575
|
-
}
|
|
61576
|
-
visitDenominatorKCLangNode(_node) {
|
|
61577
|
-
// default empty implementation
|
|
61578
|
-
}
|
|
61579
61647
|
}
|
|
61580
61648
|
|
|
61581
61649
|
/***/ }),
|
|
@@ -61678,10 +61746,6 @@ const getJsOperatorByExpressionType = expressionType => {
|
|
|
61678
61746
|
return gn(x => x.not);
|
|
61679
61747
|
case "length":
|
|
61680
61748
|
return gn(x => x.length);
|
|
61681
|
-
case "numerator":
|
|
61682
|
-
return gn(x => x.numerator);
|
|
61683
|
-
case "denominator":
|
|
61684
|
-
return gn(x => x.denominator);
|
|
61685
61749
|
default:
|
|
61686
61750
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expressionType);
|
|
61687
61751
|
/* eslint-enable @typescript-eslint/unbound-method */
|
|
@@ -61759,8 +61823,6 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
61759
61823
|
case "xabs":
|
|
61760
61824
|
case "minus":
|
|
61761
61825
|
case "not":
|
|
61762
|
-
case "numerator":
|
|
61763
|
-
case "denominator":
|
|
61764
61826
|
{
|
|
61765
61827
|
const jsOperator = getJsOperatorByExpressionType(expression.type);
|
|
61766
61828
|
return `${utilsName}.${jsOperator}(${generateJsExpression(expression.expression)})`;
|
|
@@ -61985,8 +62047,6 @@ function generateKCXmlExpression(expression, prefixPath = "") {
|
|
|
61985
62047
|
case "nodeps":
|
|
61986
62048
|
case "hashSet":
|
|
61987
62049
|
case "length":
|
|
61988
|
-
case "numerator":
|
|
61989
|
-
case "denominator":
|
|
61990
62050
|
return [`<m:${expression.type}>`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression, prefixPath), 1), `</m:${expression.type}>`].join("\n");
|
|
61991
62051
|
case "isSnils":
|
|
61992
62052
|
case "isInn":
|
|
@@ -68241,7 +68301,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68241
68301
|
/* harmony export */ FormulaDateNowExpression: () => (/* binding */ FormulaDateNowExpression),
|
|
68242
68302
|
/* harmony export */ FormulaDateTimeExpression: () => (/* binding */ FormulaDateTimeExpression),
|
|
68243
68303
|
/* harmony export */ FormulaDateToStringExpression: () => (/* binding */ FormulaDateToStringExpression),
|
|
68244
|
-
/* harmony export */ FormulaDenominatorExpression: () => (/* binding */ FormulaDenominatorExpression),
|
|
68245
68304
|
/* harmony export */ FormulaDifferenceInDaysExpression: () => (/* binding */ FormulaDifferenceInDaysExpression),
|
|
68246
68305
|
/* harmony export */ FormulaDifferenceInMonthsExpression: () => (/* binding */ FormulaDifferenceInMonthsExpression),
|
|
68247
68306
|
/* harmony export */ FormulaDivisionExpression: () => (/* binding */ FormulaDivisionExpression),
|
|
@@ -68286,7 +68345,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68286
68345
|
/* harmony export */ FormulaNewLineExpression: () => (/* binding */ FormulaNewLineExpression),
|
|
68287
68346
|
/* harmony export */ FormulaNoDepsNode: () => (/* binding */ FormulaNoDepsNode),
|
|
68288
68347
|
/* harmony export */ FormulaNotExpression: () => (/* binding */ FormulaNotExpression),
|
|
68289
|
-
/* harmony export */ FormulaNumeratorExpression: () => (/* binding */ FormulaNumeratorExpression),
|
|
68290
68348
|
/* harmony export */ FormulaOneOfExpression: () => (/* binding */ FormulaOneOfExpression),
|
|
68291
68349
|
/* harmony export */ FormulaOneOfItemsExpression: () => (/* binding */ FormulaOneOfItemsExpression),
|
|
68292
68350
|
/* harmony export */ FormulaOrExpression: () => (/* binding */ FormulaOrExpression),
|
|
@@ -68314,7 +68372,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68314
68372
|
|
|
68315
68373
|
|
|
68316
68374
|
|
|
68317
|
-
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _class95, _class96, _descriptor60, _dec110, _dec111, _class97, _class98, _descriptor61, _dec112, _dec113, _class99, _class100, _descriptor62, _dec114, _dec115, _dec116, _class101, _class102, _descriptor63, _descriptor64, _dec117, _dec118, _dec119, _class103, _class104, _descriptor65, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _class107, _class108, _descriptor68, _dec124, _dec125, _class109, _class110, _descriptor69, _dec126, _dec127, _dec128, _dec129, _dec130, _class111, _class112, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _class117, _class118, _descriptor76, _dec137, _dec138, _class119, _class120, _descriptor77, _dec139, _dec140, _dec141, _class121, _class122, _descriptor78, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _dec145, _dec146, _class125, _class126, _descriptor81, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _dec150, _class129, _class130, _descriptor84, _dec151, _dec152, _class131, _class132, _descriptor85, _dec153, _class133, _dec154, _dec155, _dec156, _dec157, _class134, _class135, _descriptor86, _descriptor87, _descriptor88, _dec158, _dec159, _class136, _class137, _descriptor89, _dec160, _dec161, _class138, _class139, _descriptor90, _dec162, _dec163, _dec164, _dec165, _dec166, _dec167, _class140, _class141, _descriptor91, _descriptor92, _descriptor93, _descriptor94, _descriptor95, _dec168, _dec169, _class142, _class143, _descriptor96, _dec170, _dec171, _dec172, _class144, _class145, _descriptor97, _descriptor98, _dec173, _dec174, _dec175, _class146, _class147, _descriptor99, _descriptor100, _dec176, _dec177, _dec178, _class148, _class149, _descriptor101, _descriptor102, _dec179, _dec180, _dec181, _dec182, _class150, _class151, _descriptor103, _descriptor104, _descriptor105, _dec183, _dec184, _dec185, _class152, _class153, _descriptor106, _descriptor107
|
|
68375
|
+
var _dec, _dec2, _class, _class2, _descriptor, _dec3, _class3, _dec4, _dec5, _class4, _class5, _descriptor2, _dec6, _dec7, _class6, _class7, _descriptor3, _dec8, _dec9, _class8, _class9, _descriptor4, _dec10, _dec11, _class10, _class11, _descriptor5, _dec12, _dec13, _class12, _class13, _descriptor6, _dec14, _dec15, _dec16, _class14, _class15, _descriptor7, _descriptor8, _dec17, _dec18, _dec19, _class16, _class17, _descriptor9, _descriptor10, _dec20, _dec21, _class18, _class19, _descriptor11, _dec22, _dec23, _class20, _class21, _descriptor12, _dec24, _dec25, _class22, _class23, _descriptor13, _dec26, _dec27, _class24, _class25, _descriptor14, _dec28, _dec29, _class26, _class27, _descriptor15, _dec30, _dec31, _class28, _class29, _descriptor16, _dec32, _dec33, _class30, _class31, _descriptor17, _dec34, _dec35, _class32, _class33, _descriptor18, _dec36, _dec37, _class34, _class35, _descriptor19, _dec38, _dec39, _dec40, _dec41, _class36, _class37, _descriptor20, _descriptor21, _descriptor22, _dec42, _dec43, _class38, _class39, _descriptor23, _dec44, _dec45, _class40, _class41, _descriptor24, _dec46, _dec47, _dec48, _class42, _class43, _descriptor25, _descriptor26, _dec49, _dec50, _class44, _class45, _descriptor27, _dec51, _dec52, _class46, _class47, _descriptor28, _dec53, _dec54, _class48, _class49, _descriptor29, _dec55, _dec56, _class50, _class51, _descriptor30, _dec57, _dec58, _dec59, _class52, _class53, _descriptor31, _descriptor32, _dec60, _dec61, _dec62, _dec63, _class54, _class55, _descriptor33, _descriptor34, _descriptor35, _dec64, _dec65, _dec66, _class56, _class57, _descriptor36, _descriptor37, _dec67, _class58, _dec68, _dec69, _class59, _class60, _descriptor38, _dec70, _dec71, _class61, _class62, _descriptor39, _dec72, _dec73, _class63, _class64, _descriptor40, _dec74, _dec75, _class65, _class66, _descriptor41, _dec76, _dec77, _class67, _class68, _descriptor42, _dec78, _dec79, _class69, _class70, _descriptor43, _dec80, _dec81, _class71, _class72, _descriptor44, _dec82, _dec83, _class73, _class74, _descriptor45, _dec84, _dec85, _dec86, _class75, _class76, _descriptor46, _descriptor47, _dec87, _dec88, _dec89, _class77, _class78, _descriptor48, _descriptor49, _dec90, _dec91, _dec92, _class79, _class80, _descriptor50, _descriptor51, _dec93, _dec94, _dec95, _class81, _class82, _descriptor52, _descriptor53, _dec96, _dec97, _class83, _class84, _descriptor54, _dec98, _dec99, _class85, _class86, _descriptor55, _dec100, _dec101, _class87, _class88, _descriptor56, _dec102, _dec103, _class89, _class90, _descriptor57, _dec104, _dec105, _class91, _class92, _descriptor58, _dec106, _dec107, _class93, _class94, _descriptor59, _dec108, _dec109, _class95, _class96, _descriptor60, _dec110, _dec111, _class97, _class98, _descriptor61, _dec112, _dec113, _class99, _class100, _descriptor62, _dec114, _dec115, _dec116, _class101, _class102, _descriptor63, _descriptor64, _dec117, _dec118, _dec119, _class103, _class104, _descriptor65, _descriptor66, _dec120, _dec121, _class105, _class106, _descriptor67, _dec122, _dec123, _class107, _class108, _descriptor68, _dec124, _dec125, _class109, _class110, _descriptor69, _dec126, _dec127, _dec128, _dec129, _dec130, _class111, _class112, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _dec131, _dec132, _class113, _class114, _descriptor74, _dec133, _dec134, _class115, _class116, _descriptor75, _dec135, _dec136, _class117, _class118, _descriptor76, _dec137, _dec138, _class119, _class120, _descriptor77, _dec139, _dec140, _dec141, _class121, _class122, _descriptor78, _descriptor79, _dec142, _dec143, _class123, _class124, _descriptor80, _dec144, _dec145, _dec146, _class125, _class126, _descriptor81, _descriptor82, _dec147, _dec148, _class127, _class128, _descriptor83, _dec149, _dec150, _class129, _class130, _descriptor84, _dec151, _dec152, _class131, _class132, _descriptor85, _dec153, _class133, _dec154, _dec155, _dec156, _dec157, _class134, _class135, _descriptor86, _descriptor87, _descriptor88, _dec158, _dec159, _class136, _class137, _descriptor89, _dec160, _dec161, _class138, _class139, _descriptor90, _dec162, _dec163, _dec164, _dec165, _dec166, _dec167, _class140, _class141, _descriptor91, _descriptor92, _descriptor93, _descriptor94, _descriptor95, _dec168, _dec169, _class142, _class143, _descriptor96, _dec170, _dec171, _dec172, _class144, _class145, _descriptor97, _descriptor98, _dec173, _dec174, _dec175, _class146, _class147, _descriptor99, _descriptor100, _dec176, _dec177, _dec178, _class148, _class149, _descriptor101, _descriptor102, _dec179, _dec180, _dec181, _dec182, _class150, _class151, _descriptor103, _descriptor104, _descriptor105, _dec183, _dec184, _dec185, _class152, _class153, _descriptor106, _descriptor107;
|
|
68318
68376
|
|
|
68319
68377
|
|
|
68320
68378
|
|
|
@@ -69445,29 +69503,7 @@ let FormulaGroupCountExpression = (_dec183 = (0,_markupGenerator_Serializer_Suga
|
|
|
69445
69503
|
writable: true,
|
|
69446
69504
|
initializer: null
|
|
69447
69505
|
}), _class153)) || _class152);
|
|
69448
|
-
|
|
69449
|
-
constructor(...args) {
|
|
69450
|
-
super(...args);
|
|
69451
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor108, this);
|
|
69452
|
-
}
|
|
69453
|
-
}, _descriptor108 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class155.prototype, "expression", [_dec187], {
|
|
69454
|
-
configurable: true,
|
|
69455
|
-
enumerable: true,
|
|
69456
|
-
writable: true,
|
|
69457
|
-
initializer: null
|
|
69458
|
-
}), _class155)) || _class154);
|
|
69459
|
-
let FormulaDenominatorExpression = (_dec188 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.sugarNode)("denominator", `Получение делителя из дроби A/B`), _dec189 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_5__.singleChild)(), _dec188(_class156 = (_class157 = class FormulaDenominatorExpression extends FormulaExpression {
|
|
69460
|
-
constructor(...args) {
|
|
69461
|
-
super(...args);
|
|
69462
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "expression", _descriptor109, this);
|
|
69463
|
-
}
|
|
69464
|
-
}, _descriptor109 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class157.prototype, "expression", [_dec189], {
|
|
69465
|
-
configurable: true,
|
|
69466
|
-
enumerable: true,
|
|
69467
|
-
writable: true,
|
|
69468
|
-
initializer: null
|
|
69469
|
-
}), _class157)) || _class156);
|
|
69470
|
-
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaIsEqualToAutoCalculatedExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsOgrnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression, FormulaNumeratorExpression, FormulaDenominatorExpression];
|
|
69506
|
+
const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, FormulaConstExpression, FormulaMultySumExpression, FormulaRoundExpression, FormulaFloorExpression, FormulaAbsExpression, FormulaDivisionExpression, FormulaMinusExpression, FormulaMultiplyExpression, FormulaChooseExpression, FormulaEqExpression, FormulaGtExpression, FormulaLtExpression, FormulaGeExpression, FormulaLeExpression, FormulaAndExpression, FormulaOrExpression, FormulaNotExpression, FormulaRegexMatchExpression, FormulaSubstringExpression, FormulaXAbsExpression, FormulaExistsExpression, FormulaLengthExpression, FormulaWhenExpression, FormulaCountExpression, FormulaInstanceCountExpression, FormulaIsEqualToAutoCalculatedExpression, FormulaDateNowExpression, FormulaGetDaysInMonthExpression, FormulaGetDayExpression, FormulaGetMonthExpression, FormulaGetYearExpression, FormulaIsDateExpression, FormulaDifferenceInMonthsExpression, FormulaDifferenceInDaysExpression, FormulaAddDaysExpression, FormulaAddMonthsExpression, FormulaAddYearsExpression, FormulaDateToStringExpression, FormulaDateTimeExpression, FormulaSumOfDayWeightsExpression, FormulaIsSnilsExpression, FormulaIsRegNumSfrExpression, FormulaIsInnExpression, FormulaIsOgrnExpression, FormulaIsValidAccountNumberExpression, FormulaIsValidMirCardNumberExpression, FormulaCastExpression, FormulaConcatExpression, FormulaGroupSumExpression, FormulaGroupCountExpression, FormulaNewLineExpression, FormulaOneOfExpression, FormulaGetPicklistValuesExpression, FormulaArrayExpression, FormulaFirstOrDefaultExpression, FormulaHashSetExpression, FormulaFilterColumnExpression, FormulaFilterKeyExpression, FormulaNoDepsNode, FormulaHasAutoFlagExpression, FormulaMakeDictExpression, FormulaGetSumByKeysExpression, FormulaJoinExpression, FormulaPropertyByNameExpression];
|
|
69471
69507
|
|
|
69472
69508
|
/***/ }),
|
|
69473
69509
|
|
|
@@ -73356,7 +73392,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73356
73392
|
/* harmony export */ DateTimeExpression: () => (/* binding */ DateTimeExpression),
|
|
73357
73393
|
/* harmony export */ DateToStringExpression: () => (/* binding */ DateToStringExpression),
|
|
73358
73394
|
/* harmony export */ DecimalLiteralExpression: () => (/* binding */ DecimalLiteralExpression),
|
|
73359
|
-
/* harmony export */ DenominatorExpression: () => (/* binding */ DenominatorExpression),
|
|
73360
73395
|
/* harmony export */ DeserializeEnumerationExpression: () => (/* binding */ DeserializeEnumerationExpression),
|
|
73361
73396
|
/* harmony export */ DictLiteralExpression: () => (/* binding */ DictLiteralExpression),
|
|
73362
73397
|
/* harmony export */ DifferenceInDaysExpression: () => (/* binding */ DifferenceInDaysExpression),
|
|
@@ -73414,7 +73449,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73414
73449
|
/* harmony export */ NullCoalesceExpression: () => (/* binding */ NullCoalesceExpression),
|
|
73415
73450
|
/* harmony export */ NullLiteralExpression: () => (/* binding */ NullLiteralExpression),
|
|
73416
73451
|
/* harmony export */ NumLenExpression: () => (/* binding */ NumLenExpression),
|
|
73417
|
-
/* harmony export */ NumerationExpression: () => (/* binding */ NumerationExpression),
|
|
73418
73452
|
/* harmony export */ OneOfExpression: () => (/* binding */ OneOfExpression),
|
|
73419
73453
|
/* harmony export */ OrBinaryExpression: () => (/* binding */ OrBinaryExpression),
|
|
73420
73454
|
/* harmony export */ PrepareNumberExpression: () => (/* binding */ PrepareNumberExpression),
|
|
@@ -74822,16 +74856,6 @@ class SetStatement extends FLangStatement {
|
|
|
74822
74856
|
return `${this.left.convertToString()} = ${this.right.convertToString()};`;
|
|
74823
74857
|
}
|
|
74824
74858
|
}
|
|
74825
|
-
class NumerationExpression extends FlangSingleArgumentDecimalExpression {
|
|
74826
|
-
convertToString() {
|
|
74827
|
-
return `numerator(${this.expression.convertToString()})`;
|
|
74828
|
-
}
|
|
74829
|
-
}
|
|
74830
|
-
class DenominatorExpression extends FlangSingleArgumentDecimalExpression {
|
|
74831
|
-
convertToString() {
|
|
74832
|
-
return `denominator(${this.expression.convertToString()})`;
|
|
74833
|
-
}
|
|
74834
|
-
}
|
|
74835
74859
|
|
|
74836
74860
|
/***/ }),
|
|
74837
74861
|
|
|
@@ -75643,12 +75667,6 @@ class FormulaExpressionToFlangExpressionConverter {
|
|
|
75643
75667
|
const arg = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule));
|
|
75644
75668
|
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandIfNeed)(arg, targetType);
|
|
75645
75669
|
}
|
|
75646
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaNumeratorExpression) {
|
|
75647
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.NumerationExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
75648
|
-
}
|
|
75649
|
-
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDenominatorExpression) {
|
|
75650
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_9__.DenominatorExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(this.compileExpressionToFlangExpressionInternal(expression.expression, prefix, target, addPrecalculationRule)));
|
|
75651
|
-
}
|
|
75652
75670
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}, ${expression.sourceXmlNode.name}`);
|
|
75653
75671
|
}
|
|
75654
75672
|
castOperandForComparisonExpression(formulaExpression, flangExpression) {
|
|
@@ -98342,8 +98360,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98342
98360
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
98343
98361
|
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
98344
98362
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
98345
|
-
/* harmony import */ var
|
|
98346
|
-
/* harmony import */ var
|
|
98363
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
98364
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
|
|
98365
|
+
/* harmony import */ var _FiasNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FiasNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias/FiasNode.ts");
|
|
98366
|
+
|
|
98347
98367
|
|
|
98348
98368
|
|
|
98349
98369
|
|
|
@@ -98352,19 +98372,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98352
98372
|
|
|
98353
98373
|
class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
98354
98374
|
static getAcceptNodeClass() {
|
|
98355
|
-
return
|
|
98375
|
+
return _FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode;
|
|
98356
98376
|
}
|
|
98357
98377
|
get nodePaths() {
|
|
98358
|
-
const node = this.getCurrentNodeAs(
|
|
98378
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98359
98379
|
const createPaths = node.fiasfield.map(field => (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node, field.path));
|
|
98360
98380
|
return createPaths;
|
|
98361
98381
|
}
|
|
98362
98382
|
doBuildNodeValidations(validationGenerator) {
|
|
98363
|
-
const node = this.getCurrentNodeAs(
|
|
98383
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98364
98384
|
validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
|
|
98365
98385
|
}
|
|
98366
98386
|
doBuildDataDeclaration(context) {
|
|
98367
|
-
const node = this.getCurrentNodeAs(
|
|
98387
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98368
98388
|
const PathDeclarations = [];
|
|
98369
98389
|
if (node.fiasfield && node.fiasfield.length > 0) {
|
|
98370
98390
|
var _node$fiasfield$;
|
|
@@ -98389,7 +98409,7 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98389
98409
|
}
|
|
98390
98410
|
doConvert() {
|
|
98391
98411
|
var _node$title, _node$withSteads, _node$division, _node$searchToAddress;
|
|
98392
|
-
const node = this.getCurrentNodeAs(
|
|
98412
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98393
98413
|
const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("Fias");
|
|
98394
98414
|
markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_0__.getNewBindingPathExpression)(node));
|
|
98395
98415
|
markupBuilder.prop(x => x.hasOwnBindingPath).set(node.getOwnPathForKCLang() != undefined);
|
|
@@ -98399,7 +98419,7 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98399
98419
|
markupBuilder.prop(x => x.searchToAddressLevel).set((_node$searchToAddress = node.searchToAddressLevel) !== null && _node$searchToAddress !== void 0 ? _node$searchToAddress : "room");
|
|
98400
98420
|
markupBuilder.prop(x => x.pathToFullAddress).set(node.pathToFullAddress);
|
|
98401
98421
|
markupBuilder.prop(x => x.onlyInput).set(node.onlyInput);
|
|
98402
|
-
(0,
|
|
98422
|
+
(0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_5__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
|
|
98403
98423
|
const parsedExtendFields = this.parseExtendFields(node.fiasfield);
|
|
98404
98424
|
if (node.childrenoptions) {
|
|
98405
98425
|
markupBuilder.prop(x => x.childrenOptions).set({
|
|
@@ -98415,9 +98435,25 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98415
98435
|
const mvdOptions = this.extractMvdOptions(node.mvdoptions);
|
|
98416
98436
|
markupBuilder.prop(x => x.mvdOptions).set(mvdOptions);
|
|
98417
98437
|
}
|
|
98438
|
+
if (node.adrgaroptions) {
|
|
98439
|
+
const adrGarOptions = this.extractAdrGarOptions(node.adrgaroptions);
|
|
98440
|
+
markupBuilder.prop(x => x.adrGarOptions).set(adrGarOptions);
|
|
98441
|
+
}
|
|
98418
98442
|
markupBuilder.prop(x => x.extendedFields).set(parsedExtendFields);
|
|
98419
98443
|
return markupBuilder.buildConverterResult();
|
|
98420
98444
|
}
|
|
98445
|
+
*doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
|
|
98446
|
+
const node = this.getCurrentNodeAs(_FiasNode__WEBPACK_IMPORTED_MODULE_6__.FiasNode);
|
|
98447
|
+
const element = formSchemaRng.getElementByPath(node.getFullPath());
|
|
98448
|
+
const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
|
|
98449
|
+
const typeNode = buildContext.getTypeNode(node.validationInfo);
|
|
98450
|
+
const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
|
|
98451
|
+
const ownPath = node.getOwnPathForKCLang();
|
|
98452
|
+
if (typeNode == undefined && schemaTypeNode == undefined || ownPath == undefined) {
|
|
98453
|
+
return;
|
|
98454
|
+
}
|
|
98455
|
+
yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional);
|
|
98456
|
+
}
|
|
98421
98457
|
parseExtendFields(fiasFields) {
|
|
98422
98458
|
return fiasFields.map(field => {
|
|
98423
98459
|
var _field$setToModel, _field$valuesources$e, _field$optional, _field$showInModal, _field$child;
|
|
@@ -98465,6 +98501,18 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98465
98501
|
extendModal: (_options$extendModal = options.extendModal) !== null && _options$extendModal !== void 0 ? _options$extendModal : true
|
|
98466
98502
|
};
|
|
98467
98503
|
}
|
|
98504
|
+
extractAdrGarOptions(options) {
|
|
98505
|
+
return {
|
|
98506
|
+
extendModal: options.extendModal,
|
|
98507
|
+
initialUpdateByFiasId: options.initialUpdateByFiasId,
|
|
98508
|
+
countrySelector: options.countrySelector,
|
|
98509
|
+
divisionSelector: options.divisionSelector,
|
|
98510
|
+
countryCode: options.countryCode,
|
|
98511
|
+
fiasSchema: options.fiasSchema,
|
|
98512
|
+
viewMode: options.viewMode,
|
|
98513
|
+
menuAlign: options.menuAlign
|
|
98514
|
+
};
|
|
98515
|
+
}
|
|
98468
98516
|
}
|
|
98469
98517
|
|
|
98470
98518
|
/***/ }),
|
|
@@ -98478,6 +98526,7 @@ class FiasConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
|
|
|
98478
98526
|
"use strict";
|
|
98479
98527
|
__webpack_require__.r(__webpack_exports__);
|
|
98480
98528
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
98529
|
+
/* harmony export */ FiasAdrGarOptions: () => (/* binding */ FiasAdrGarOptions),
|
|
98481
98530
|
/* harmony export */ FiasChildren: () => (/* binding */ FiasChildren),
|
|
98482
98531
|
/* harmony export */ FiasExtendedField: () => (/* binding */ FiasExtendedField),
|
|
98483
98532
|
/* harmony export */ FiasFnsOptions: () => (/* binding */ FiasFnsOptions),
|
|
@@ -98495,20 +98544,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98495
98544
|
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
98496
98545
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
98497
98546
|
/* harmony import */ var _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Serializer/DeprecationReason */ "./Generator/src/generators/markupGenerator/Serializer/DeprecationReason.ts");
|
|
98498
|
-
/* harmony import */ var
|
|
98499
|
-
/* harmony import */ var
|
|
98500
|
-
/* harmony import */ var
|
|
98547
|
+
/* harmony import */ var _Engine_src_Controls_ValueEditors_Fias_FiasEditor_FiasWidget_FiasWidgetTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/ValueEditors/Fias/FiasEditor/FiasWidget/FiasWidgetTypes */ "./Engine/src/Controls/ValueEditors/Fias/FiasEditor/FiasWidget/FiasWidgetTypes.ts");
|
|
98548
|
+
/* harmony import */ var _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types */ "./Engine/src/Controls/ValueEditors/Fias/FiasInput/Utils/Convertations/Types.ts");
|
|
98549
|
+
/* harmony import */ var _CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../CommonNodeProperties/ValidationInfoNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/ValidationInfoNode.ts");
|
|
98550
|
+
/* harmony import */ var _CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/TooltipSettingsNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/TooltipSettingsNode.ts");
|
|
98551
|
+
|
|
98501
98552
|
|
|
98502
98553
|
|
|
98554
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec9, _dec10, _dec11, _class3, _class4, _descriptor8, _descriptor9, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class5, _class6, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _dec27, _dec28, _dec29, _class7, _class8, _descriptor24, _descriptor25, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _class9, _class10, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _dec36, _dec37, _class11, _class12, _descriptor31, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _class13, _class14, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _dec62, _dec63, _dec64, _class15, _class16, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56;
|
|
98503
98555
|
|
|
98504
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec9, _dec10, _dec11, _class3, _class4, _descriptor8, _descriptor9, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class5, _class6, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _dec27, _dec28, _dec29, _class7, _class8, _descriptor24, _descriptor25, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _class9, _class10, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _dec36, _dec37, _class11, _class12, _descriptor31, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _class13, _class14, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47;
|
|
98505
98556
|
|
|
98506
98557
|
|
|
98507
98558
|
|
|
98508
98559
|
|
|
98509
98560
|
|
|
98510
98561
|
|
|
98511
|
-
let FiasValueSource = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("valuesource", "Описание дополнительных полей для фиаса"), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("convertationMethod", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum(
|
|
98562
|
+
let FiasValueSource = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("valuesource", "Описание дополнительных полей для фиаса"), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("convertationMethod", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum(_Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getFlatTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getFlatTypeLongName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getRoomTypeLongName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getRoomTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getHouseTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getHouseTypeLongName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getHouseTypeObjectID, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getFlatTypeObjectID, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getMunicipalDistrictTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getMunicipalDistrictTypeCode, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getUrbanSettlementTypeCode, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getUrbanSettlementTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.extractRegionCode, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.extractOKTMO8Symbols, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.convertAbbreviationToShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.convertAbbreviationToFullName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationMethods.getMunicipalDistrictTypeCodeWithFT), `Методы для конвертации полученных значений от api фиаса в модель`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fiasApiPath", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Путь до значения, полученного от api фиаса`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("autoValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Значение, которое поставится по дефолту`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("postfix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Постфикс, если есть значение`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Префикс, если есть значение`), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("onValueDontExist", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Значение, которое засетиться, если fiasApiPath отсутствует`), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("ifFiasApiDependExist", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Значение засетиться, если значение по пути fiasApiPath существует`), _dec(_class = (_class2 = class FiasValueSource extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
98512
98563
|
constructor(...args) {
|
|
98513
98564
|
super(...args);
|
|
98514
98565
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "convertationMethod", _descriptor, this);
|
|
@@ -98572,7 +98623,7 @@ let FiasValueSources = (_dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED
|
|
|
98572
98623
|
writable: true,
|
|
98573
98624
|
initializer: null
|
|
98574
98625
|
}), _class4)) || _class3);
|
|
98575
|
-
let FiasExtendedField = (_dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fiasfield", "Описание дополнительных полей для фиаса"), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.required, `По этому пути в иннер будет сетится полученное значение`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("string", "guid", "kladr", "index"), `Тип для поля, string - строка значение из ответа фиаса, guid, kladr - уникальный адресный идентификатор`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.
|
|
98626
|
+
let FiasExtendedField = (_dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fiasfield", "Описание дополнительных полей для фиаса"), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.required, `По этому пути в иннер будет сетится полученное значение`), _dec14 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("type", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("string", "guid", "kladr", "index"), `Тип для поля, string - строка значение из ответа фиаса, guid, kladr - уникальный адресный идентификатор`), _dec15 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("description", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString.default(""), `Описание поля - будет выводиться на полях "Заполнить вручную"`), _dec16 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("display", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли пользователю выводиться эта строчка при просмотре адреса`), _dec17 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("skipDefaultValidation", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Не запускать стандартную валидацию (сейчас работает только для индексов)`), _dec18 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("setToModel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли это поле сетиться в иннер. По умолчанию: true"`), _dec19 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("showInModal", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Будет ли значение показываться в модальном окне ручного ввода. По умолчанию: true`), _dec20 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("optional", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Опциональность элемента, работает для индекса в ФСС`), _dec21 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("prefix", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Префикс для значения из иннера. Если значение есть - применяется префикс`), _dec22 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("valuesources", [FiasValueSources]), _dec23 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("parentGuid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("region", "district", "city", "street", "garhouse", "room"), `Выгрузка родительского элемента GUID-a, применимо только к полям c type: guid`), _dec24 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("convertToShow", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum(_Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getMunicipalDistrictTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getUrbanSettlementTypeShortName, _Engine_src_Controls_ValueEditors_Fias_FiasInput_Utils_Convertations_Types__WEBPACK_IMPORTED_MODULE_7__.fiasConvertationToShowMethods.getRegionNameByCode), `Метода для конвертации данных из модели для отображения пользователю`), _dec25 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("child", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, `Является ли данный path - частью children`), _dec26 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("clearSubstring", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Подстрока, которую нужно удалить перед показом пользователю"), _dec12(_class5 = (_class6 = class FiasExtendedField extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
98576
98627
|
constructor(...args) {
|
|
98577
98628
|
super(...args);
|
|
98578
98629
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor10, this);
|
|
@@ -98724,113 +98775,172 @@ let FiasMvdOptions = (_dec36 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_
|
|
|
98724
98775
|
writable: true,
|
|
98725
98776
|
initializer: null
|
|
98726
98777
|
}), _class12)) || _class11);
|
|
98727
|
-
let
|
|
98778
|
+
let FiasAdrGarOptions = (_dec38 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("adrgaroptions", "Для работы с адресом в формате АдрГАР. Используется в формах Диадока. Под капотом виджет ФИАС."), _dec39 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("extendModal", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean.default(true), "Расширенная модалка для ФИАСа. Только для работы с адресом в формате АдрГАР."), _dec40 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("initialUpdateByFiasId", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean.default(false), "Если нашелся адрес по внешнему FiasId (если он есть в иннере), перезаписать адрес в иннере на найденный."), _dec41 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fiasSchema", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum(_Engine_src_Controls_ValueEditors_Fias_FiasEditor_FiasWidget_FiasWidgetTypes__WEBPACK_IMPORTED_MODULE_6__.FiasSchema.Gar, _Engine_src_Controls_ValueEditors_Fias_FiasEditor_FiasWidget_FiasWidgetTypes__WEBPACK_IMPORTED_MODULE_6__.FiasSchema.Fias).default(_Engine_src_Controls_ValueEditors_Fias_FiasEditor_FiasWidget_FiasWidgetTypes__WEBPACK_IMPORTED_MODULE_6__.FiasSchema.Gar), "Схема ФИАС. gar (по умолчанию) или fias."), _dec42 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("divisionSelector", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean.default(true), "Показывать выбор типа деления (по умолчанию true)."), _dec43 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("viewMode", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("multiline", "singleline", "multiline-editing").default("multiline"), "Режим отображение комбобокса: multiline (по умолчанию), singleline, multiline-editing"), _dec44 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("countrySelector", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean.default(true), "Показывать выбор страны (по умолчанию true)."), _dec45 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("countryCode", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string.default("643"), "Дефолтная страна. РФ=643 (по умолчанию)."), _dec46 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("menuAlign", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("left", "right"), "Выравнивание выпадающего меню."), _dec38(_class13 = (_class14 = class FiasAdrGarOptions extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
98779
|
+
constructor(...args) {
|
|
98780
|
+
super(...args);
|
|
98781
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "extendModal", _descriptor32, this);
|
|
98782
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "initialUpdateByFiasId", _descriptor33, this);
|
|
98783
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiasSchema", _descriptor34, this);
|
|
98784
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "divisionSelector", _descriptor35, this);
|
|
98785
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "viewMode", _descriptor36, this);
|
|
98786
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "countrySelector", _descriptor37, this);
|
|
98787
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "countryCode", _descriptor38, this);
|
|
98788
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "menuAlign", _descriptor39, this);
|
|
98789
|
+
}
|
|
98790
|
+
}, _descriptor32 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "extendModal", [_dec39], {
|
|
98791
|
+
configurable: true,
|
|
98792
|
+
enumerable: true,
|
|
98793
|
+
writable: true,
|
|
98794
|
+
initializer: null
|
|
98795
|
+
}), _descriptor33 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "initialUpdateByFiasId", [_dec40], {
|
|
98796
|
+
configurable: true,
|
|
98797
|
+
enumerable: true,
|
|
98798
|
+
writable: true,
|
|
98799
|
+
initializer: null
|
|
98800
|
+
}), _descriptor34 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "fiasSchema", [_dec41], {
|
|
98801
|
+
configurable: true,
|
|
98802
|
+
enumerable: true,
|
|
98803
|
+
writable: true,
|
|
98804
|
+
initializer: null
|
|
98805
|
+
}), _descriptor35 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "divisionSelector", [_dec42], {
|
|
98806
|
+
configurable: true,
|
|
98807
|
+
enumerable: true,
|
|
98808
|
+
writable: true,
|
|
98809
|
+
initializer: null
|
|
98810
|
+
}), _descriptor36 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "viewMode", [_dec43], {
|
|
98811
|
+
configurable: true,
|
|
98812
|
+
enumerable: true,
|
|
98813
|
+
writable: true,
|
|
98814
|
+
initializer: null
|
|
98815
|
+
}), _descriptor37 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "countrySelector", [_dec44], {
|
|
98816
|
+
configurable: true,
|
|
98817
|
+
enumerable: true,
|
|
98818
|
+
writable: true,
|
|
98819
|
+
initializer: null
|
|
98820
|
+
}), _descriptor38 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "countryCode", [_dec45], {
|
|
98821
|
+
configurable: true,
|
|
98822
|
+
enumerable: true,
|
|
98823
|
+
writable: true,
|
|
98824
|
+
initializer: null
|
|
98825
|
+
}), _descriptor39 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class14.prototype, "menuAlign", [_dec46], {
|
|
98826
|
+
configurable: true,
|
|
98827
|
+
enumerable: true,
|
|
98828
|
+
writable: true,
|
|
98829
|
+
initializer: null
|
|
98830
|
+
}), _class14)) || _class13);
|
|
98831
|
+
let FiasNode = (_dec47 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("fias", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias sync recursive .md$")), _dec48 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec49 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_8__.ValidationInfoNode), _dec50 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_9__.TooltipSettingsNode), _dec51 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("withSteads", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Земельные участки для формы"), _dec52 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("title", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Текст в титульнике лайтбокса"), _dec53 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("pathToFullAddress", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, "Путь, по которому будет засечен полный адрес"), _dec54 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("searchToAddressLevel", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("region", "district", "city", "street", "garhouse", "room"), `До какого элемента будет осуществлятся поиск.
|
|
98728
98832
|
Пример: House - поиск до дома.
|
|
98729
98833
|
Конечный - room, поиск до квартиры.
|
|
98730
|
-
По умолчанию - room`),
|
|
98834
|
+
По умолчанию - room`), _dec55 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("division", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.enum("municipal", "administrative"), "Территориальное деление, по умолчанию - municipal"), _dec56 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("withForeignCountry", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec57 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)("fiasfield", [FiasExtendedField]), _dec58 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("childrenoptions", [FiasChildren]), _dec59 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("fnsoptions", [FiasFnsOptions]), _dec60 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("mvdoptions", [FiasMvdOptions]), _dec61 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.singleChild)("adrgaroptions", [FiasAdrGarOptions]), _dec62 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("onlyInput", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.boolean, "Временный костыль на то, чтобы показывать фиас в рамках багованного мультилайна"), _dec63 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("optionalIndex", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec64 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.deprecatedAttr)("postalTransfer", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec47(_class15 = (_class16 = class FiasNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.SugarNodeBase {
|
|
98731
98835
|
constructor(...args) {
|
|
98732
98836
|
super(...args);
|
|
98733
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding",
|
|
98734
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo",
|
|
98735
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings",
|
|
98736
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withSteads",
|
|
98737
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title",
|
|
98738
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToFullAddress",
|
|
98739
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "searchToAddressLevel",
|
|
98740
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "division",
|
|
98741
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withForeignCountry",
|
|
98742
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiasfield",
|
|
98743
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "childrenoptions",
|
|
98744
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fnsoptions",
|
|
98745
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "mvdoptions",
|
|
98746
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
98747
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
98748
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
98837
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor40, this);
|
|
98838
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "validationInfo", _descriptor41, this);
|
|
98839
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "tooltipSettings", _descriptor42, this);
|
|
98840
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withSteads", _descriptor43, this);
|
|
98841
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "title", _descriptor44, this);
|
|
98842
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pathToFullAddress", _descriptor45, this);
|
|
98843
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "searchToAddressLevel", _descriptor46, this);
|
|
98844
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "division", _descriptor47, this);
|
|
98845
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "withForeignCountry", _descriptor48, this);
|
|
98846
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fiasfield", _descriptor49, this);
|
|
98847
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "childrenoptions", _descriptor50, this);
|
|
98848
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "fnsoptions", _descriptor51, this);
|
|
98849
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "mvdoptions", _descriptor52, this);
|
|
98850
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "adrgaroptions", _descriptor53, this);
|
|
98851
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onlyInput", _descriptor54, this);
|
|
98852
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optionalIndex", _descriptor55, this);
|
|
98853
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "postalTransfer", _descriptor56, this);
|
|
98749
98854
|
}
|
|
98750
98855
|
getOwnPath() {
|
|
98751
98856
|
return this.dataBinding.getOwnPath();
|
|
98752
98857
|
}
|
|
98753
|
-
},
|
|
98858
|
+
}, _descriptor40 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "dataBinding", [_dec48], {
|
|
98754
98859
|
configurable: true,
|
|
98755
98860
|
enumerable: true,
|
|
98756
98861
|
writable: true,
|
|
98757
98862
|
initializer: null
|
|
98758
|
-
}),
|
|
98863
|
+
}), _descriptor41 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "validationInfo", [_dec49], {
|
|
98759
98864
|
configurable: true,
|
|
98760
98865
|
enumerable: true,
|
|
98761
98866
|
writable: true,
|
|
98762
98867
|
initializer: null
|
|
98763
|
-
}),
|
|
98868
|
+
}), _descriptor42 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "tooltipSettings", [_dec50], {
|
|
98764
98869
|
configurable: true,
|
|
98765
98870
|
enumerable: true,
|
|
98766
98871
|
writable: true,
|
|
98767
98872
|
initializer: null
|
|
98768
|
-
}),
|
|
98873
|
+
}), _descriptor43 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "withSteads", [_dec51], {
|
|
98769
98874
|
configurable: true,
|
|
98770
98875
|
enumerable: true,
|
|
98771
98876
|
writable: true,
|
|
98772
98877
|
initializer: null
|
|
98773
|
-
}),
|
|
98878
|
+
}), _descriptor44 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "title", [_dec52], {
|
|
98774
98879
|
configurable: true,
|
|
98775
98880
|
enumerable: true,
|
|
98776
98881
|
writable: true,
|
|
98777
98882
|
initializer: null
|
|
98778
|
-
}),
|
|
98883
|
+
}), _descriptor45 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "pathToFullAddress", [_dec53], {
|
|
98779
98884
|
configurable: true,
|
|
98780
98885
|
enumerable: true,
|
|
98781
98886
|
writable: true,
|
|
98782
98887
|
initializer: null
|
|
98783
|
-
}),
|
|
98888
|
+
}), _descriptor46 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "searchToAddressLevel", [_dec54], {
|
|
98784
98889
|
configurable: true,
|
|
98785
98890
|
enumerable: true,
|
|
98786
98891
|
writable: true,
|
|
98787
98892
|
initializer: null
|
|
98788
|
-
}),
|
|
98893
|
+
}), _descriptor47 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "division", [_dec55], {
|
|
98789
98894
|
configurable: true,
|
|
98790
98895
|
enumerable: true,
|
|
98791
98896
|
writable: true,
|
|
98792
98897
|
initializer: null
|
|
98793
|
-
}),
|
|
98898
|
+
}), _descriptor48 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "withForeignCountry", [_dec56], {
|
|
98794
98899
|
configurable: true,
|
|
98795
98900
|
enumerable: true,
|
|
98796
98901
|
writable: true,
|
|
98797
98902
|
initializer: null
|
|
98798
|
-
}),
|
|
98903
|
+
}), _descriptor49 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "fiasfield", [_dec57], {
|
|
98799
98904
|
configurable: true,
|
|
98800
98905
|
enumerable: true,
|
|
98801
98906
|
writable: true,
|
|
98802
98907
|
initializer: null
|
|
98803
|
-
}),
|
|
98908
|
+
}), _descriptor50 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "childrenoptions", [_dec58], {
|
|
98804
98909
|
configurable: true,
|
|
98805
98910
|
enumerable: true,
|
|
98806
98911
|
writable: true,
|
|
98807
98912
|
initializer: null
|
|
98808
|
-
}),
|
|
98913
|
+
}), _descriptor51 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "fnsoptions", [_dec59], {
|
|
98809
98914
|
configurable: true,
|
|
98810
98915
|
enumerable: true,
|
|
98811
98916
|
writable: true,
|
|
98812
98917
|
initializer: null
|
|
98813
|
-
}),
|
|
98918
|
+
}), _descriptor52 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "mvdoptions", [_dec60], {
|
|
98814
98919
|
configurable: true,
|
|
98815
98920
|
enumerable: true,
|
|
98816
98921
|
writable: true,
|
|
98817
98922
|
initializer: null
|
|
98818
|
-
}),
|
|
98923
|
+
}), _descriptor53 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "adrgaroptions", [_dec61], {
|
|
98819
98924
|
configurable: true,
|
|
98820
98925
|
enumerable: true,
|
|
98821
98926
|
writable: true,
|
|
98822
98927
|
initializer: null
|
|
98823
|
-
}),
|
|
98928
|
+
}), _descriptor54 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "onlyInput", [_dec62], {
|
|
98824
98929
|
configurable: true,
|
|
98825
98930
|
enumerable: true,
|
|
98826
98931
|
writable: true,
|
|
98827
98932
|
initializer: null
|
|
98828
|
-
}),
|
|
98933
|
+
}), _descriptor55 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "optionalIndex", [_dec63], {
|
|
98829
98934
|
configurable: true,
|
|
98830
98935
|
enumerable: true,
|
|
98831
98936
|
writable: true,
|
|
98832
98937
|
initializer: null
|
|
98833
|
-
}),
|
|
98938
|
+
}), _descriptor56 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class16.prototype, "postalTransfer", [_dec64], {
|
|
98939
|
+
configurable: true,
|
|
98940
|
+
enumerable: true,
|
|
98941
|
+
writable: true,
|
|
98942
|
+
initializer: null
|
|
98943
|
+
}), _class16)) || _class15);
|
|
98834
98944
|
|
|
98835
98945
|
/***/ }),
|
|
98836
98946
|
|
|
@@ -137789,7 +137899,7 @@ module.exports = "<h4>Атрибут emptyValueFilter</h4>\nЕсли нет вв
|
|
|
137789
137899
|
\*****************************************************************************************************/
|
|
137790
137900
|
/***/ ((module) => {
|
|
137791
137901
|
|
|
137792
|
-
module.exports = "Теги: #ФИАС #справочник #адресов #fias\n\nКонтрол нужен для отображения [справочника адресов ФИАС](https://www.nalog.gov.ru/rn77/service/fias/).\nПоддерживает **муниципальное и административно-территориальное деление** (подробнее о структуре адресов можно узнать на [сайте ФИАС](https://fias.nalog.ru/)).\n\n**Структура справочника** в общем виде выглядит следующим образом:\n\n```xml\n<fias\n path=\"АнкетныеДанные/АдресРегистрации\"\n title=\"Адрес регистрации\"\n searchToAddressLevel=\"room\">\n <fiasfield\n path=\"Регион/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\" Регион географическое название\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"region.name\" />\n </valuesources>\n </fiasfield>\n ...\n <fiasfield path=\"Индекс\" type=\"string\" display=\"false\" description=\"Индекс\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.postalCode\" />\n </valuesources>\n </fiasfield>\n</fias>\n```\n\n### Настройка полей справочника\n\nВ справочнике ФИАС можно настроить поля, которые будут выгружаться в иннер после заполнения справочника, а также отображаться в модалке редактирования адреса.\nКаждое поле задается тегом **< fiasfield >**, внутри которого прописываются источники данных.\nВ качестве атрибутов-настроек поля можно задать:\n\n- **path** - относительный путь в иннере, по которому будет выгружаться значение поля. Например, path=\"Регион/ГеографическоеНазвание\" или path=\"Регион/Сокращение\";\n- **type** - тип данных;\n- **display** - если true, то данное поле будет показано в модалке редактирования адреса;\n- **description** - название поля, которое отображается в модалке.\n\nИсточники данных задаются тегом **< valuesources >**. Внутри перечисляются источники, каждый из которых задается отдельным тегом <valuesource>, внутри которого атрибутами указываются:\n\n- fiasApiPath - это название поля в апи [сервиса ФИАСа](https://api.testkontur.ru/fias/v1.2/addresses/), из которого нужно тянуть данные. [Документация](https://wiki.skbkontur.ru/pages/viewpage.action?pageId=186435051) по сервису ФИАС.\n- convertationMethod:\n - getHouseTypeShortName - получает сокращенное наименование здания,\n - getFlatTypeShortName - получает сокращенное наименование помещения,\n - getRoomTypeShortName - получает сокращенное наименование комнаты,\n - extractRegionCode - получает код региона,\n - getMunicipalDistrictTypeCode - получает код типа муниципального района,\n - getUrbanSettlementTypeCode - получает код типа для поселения,\n - convertAbbreviationToFullName - конвертирует аббревиатуру в адресе в полное наименование,\n - getHouseTypeLongName - получает полное наименование типа здания,\n - getFlatTypeLongName - получает полное наименование типа помещения,\n - getRoomTypeLongName - получает полное наименование типа комнаты,\n - extractOKTMO8Symbols - получает ОКТМО в 8-значном формате.\n- endComma - задается внутри valuesources, если true, то запятая проставляется после значения поля, иначе без запятой, по умолчанию true. Например, \"Республика Татарстан, улица Ленина\" - для поля \"Регион/Сокращение\" = \"Республика\" endComma должно быть равно false, для \"Регион/Наименование\" = \"Татарстан\" должно быть true или не задано.\n\nПример поля в ФИАСе:\n\n```\n<fiasfield path=\"Корпус/Номер\" type=\"string\" display=\"true\" description=\"Корпус номер\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.addNum1\" />\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"addType2.addType2\" />\n <valuesource fiasApiPath=\"garhouse.addNum2\" />\n </valuesources>\n</fiasfield>\n```\n\n### Настройки справочника\n\n**division:** значение настройки может быть municipal или administrative, меняет отображение адресов в справочнике в соответствии с территориальным делением: муниципальное, административное.\nПо умолчанию municipal.\n\n**searchToAddressLevel:** уровень, до которого ищутся адресные объекты.\nНапример, если задан уровень до комнаты searchToAddressLevel=room, тогда в результатах поиска у найденных адресов будут отображаться все части адреса до комнаты, если searchToAddressLevel=street, то в адресе будет отображаться улица и всё, что выше неё.\nВ выбранном значении в инпуте тоже будут отображаться только те части адреса, которые соответствуют выбранному уровню.\n\n**withSteads:** включает показ земельных участков в справочнике.\nЕсли значение настройки true, то в справочнике при поиске в списке адресов показываются адреса с зем. участками. Выгрузку в иннер зем. участков и отображение в модалке нужно настраивать отдельно.\n\n**onlyInput:** без этой настройки, если поле со справочником не заполнено, то оно отображается в виде обычного инпута, а когда заполнено, в виде текста со ссылкой \"Редактировать\".\nИногда бывает нужно отображать контрол всегда в состоянии инпута, например, внутри таблицы. Для этого нужно установить onlyInput=true.\n\n### Модальная форма редактирования адреса\n\nВ настоящее время есть 2 реализации данного контрола: с настраиваемой модалкой редактирования адреса и ненастраиваемой модалкой.\n\n#### ФИАС с настраиваемой модалкой\n\nПолностью настраиваемый справочник, где можно конфигурировать поля в иннере и модалке ресурсами.\nПо умолчанию справочник является настраиваемым, т.е. если в ФИАСе не указан тег **< fnsoptions >**/**< mvdoptions >**, то это настраиваемый справочник.\n\nПример настраиваемого справочника:\n\n```xml\n\n<fias\n path=\"АнкетныеДанные/АдресРегистрации\"\n title=\"Адрес регистрации\"\n searchToAddressLevel=\"room\"\n division=\"administrative\"\n pathToFullAddress=\"fullAddress\">\n <fiasfield\n path=\"Регион/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\" Регион географическое название\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"region.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Регион/Сокращение\" type=\"string\" display=\"true\" description=\"Регион сокращение\">\n <valuesources>\n <valuesource fiasApiPath=\"region.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Район/Сокращение\" type=\"string\" display=\"true\" description=\"Район сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"district.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Район/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Район географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"district.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Город/Сокращение\" type=\"string\" display=\"true\" description=\"Город сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"city.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Город/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Город географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"city.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"НаселенныйПункт/Сокращение\"\n type=\"string\"\n display=\"true\"\n description=\"Населенный пункт сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"settlement.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"НаселенныйПункт/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Населенный пункт географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"settlement.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Улица/Сокращение\"\n type=\"string\"\n display=\"true\"\n description=\"Улица сокращение\"\n showInModal=\"false\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"planningstructure.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Улица/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Улица географическое название\"\n showInModal=\"false\">\n <valuesources>\n <valuesource fiasApiPath=\"planningstructure.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Улица/Сокращение\" type=\"string\" display=\"true\" description=\"Улица сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"street.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Улица/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Улица географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"street.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Дом/Сокращение\" type=\"string\" display=\"true\" description=\"Дом сокращение\">\n <valuesources endComma=\"false\">\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"garhouse.houseType\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Дом/Номер\" type=\"string\" display=\"true\" description=\"Дом номер\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.houseNum\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Корпус/Сокращение\" type=\"string\" display=\"true\" description=\"Корпус сокращение\">\n <valuesources endComma=\"false\">\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"garhouse.addType1\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Корпус/Номер\" type=\"string\" display=\"true\" description=\"Корпус номер\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.addNum1\" />\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"addType2.addType2\" />\n <valuesource fiasApiPath=\"garhouse.addNum2\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Квартира/Сокращение\" type=\"string\" display=\"true\" description=\"Квартира сокращение\">\n <valuesources endComma=\"false\">\n <valuesource convertationMethod=\"getFlatTypeShortName\" fiasApiPath=\"room.flatType\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Квартира/Номер\" type=\"string\" display=\"true\" description=\"Квартира номер\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"room.flatNumber\" />\n <valuesource convertationMethod=\"getRoomTypeShortName\" fiasApiPath=\"room.roomType\" />\n <valuesource fiasApiPath=\"room.roomNumber\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Индекс\" type=\"string\" display=\"false\" description=\"Индекс\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.postalCode\" />\n </valuesources>\n </fiasfield>\n</fias>\n\n```\n\n#### ФИАС с НЕнастраиваемой модалкой\n\n- подходит для большинства форм ФНС;\n- в модальной форме редактирования адреса набор полей неизменен (его нельзя настроить ресурсами);\n- некоторые поля реализованы в виде выпадающих справочников, набор значений которых также нельзя настроить в ресурсах;\n- количество полей модалки НЕ настраивается, нет возможности задать неограниченное добавление полей. Количество полей фиксированное и соответствует количеству полей, возвращаемых ФИАСом.\n- есть возможность заполнения адреса по введенному guid-у адреса.\n\nДля включения такой модалки внутри ФИАСа должен быть указан тег **< fnsoptions >**/**< mvdoptions >**.\n\n```xml\n<fias path=\"АдрОбъектРФ\" title=\"Адрес\" searchToAddressLevel=\"room\" division=\"municipal\" withSteads=\"true\">\n <fnsoptions abbreviationSize=\"long\" />\n ...\n</fias>\n```\n\nСписок полей в ненастраиваемой модалке:\n\n- Индекс (опциональный)\n- Регион\n- Муниципальный район / округ (Вид + Наименование)\n- Поселение (Вид + Наименование)\n- Населенный пункт (Тип + Наименование)\n- Элемент планировочной структуры (Тип + Наименование)\n- Элемент улично-дорожной сети (Тип + Наименование)\n- Номер земельного участка\n- Номер здания / сооружения (Тип + Наименование): 3 пары Вид+Наименование - Дом, Корпус, Строение\n- Номер помещения / квартиры / машино-места (Тип + Наименование)\n- Помещение в пределах квартиры (Тип + Наименование)\n- Уникальный идентификатор адресного объекта в ГАР\n\nФормат полей и ограничения на ввод данных указаны в [wiki](https://wiki.skbkontur.ru/pages/viewpage.action?pageId=430311482).\n\nДля ФИАСа с НЕнастраиваемой модалкой есть свои настройки:\n\n**withIndex:** включает отображение поля с почтовым индексом. По умолчанию выключен.\n\n**withSteads:** включает показ земельных участков в справочнике.\nЕсли значение настройки true, то:\n\n- в справочнике при поиске в списке адресов показываются адреса с зем. участками;\n- в модалке редактирования адреса появляется поле \"Земельный участок\";\n- значение зем. участка, выбранного в справочнике, засетится по указанному в поле ФИАСа пути.\n По умолчанию показ зем. участков выключен.\n\n**abbreviationSize:** short или long (по умолчанию long). Если short, то аббревиатуры в адресе выгружаются в сокращенном виде. Например, \"ул. Ленина\". При значении long - в не сокращенном, например, \"улица Ленина\".\nНастройка указывается атрибутом в теге fnsoptions/mvdoptions.\nНастройку можно указать только общую для всех полей: нельзя настроить разный вид аббревиатур для каждого поля в отдельности.\n\n**pathToFullAddress:** задает путь, по которому засетится полный адрес (строится как конкатенация значений всех полей ФИАСа).\n\nОстальные настройки такие же, как в настраиваемом ФИАСе.\n\nПример ФИАСа с ненастраиваемой модалкой:\n\n```xml\n<fias path=\"АдрОбъектРФ\" title=\"Адрес\" searchToAddressLevel=\"room\" division=\"municipal\" withSteads=\"true\">\n <childrenoptions childrenInStack=\"2\" path=\"Здание\" />\n <fnsoptions abbreviationSize=\"long\" />\n <fiasfield\n path=\"Регион\"\n type=\"string\"\n display=\"true\"\n description=\"Адрес\"\n convertToShow=\"getRegionNameByCode\">\n <valuesources>\n <valuesource convertationMethod=\"extractRegionCode\" fiasApiPath=\"region.code\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"МуниципРайон/ВидКод\"\n type=\"string\"\n display=\"true\"\n description=\"Адрес\"\n convertToShow=\"getMunicipalDistrictTypeShortName\">\n <valuesources endComma=\"false\">\n <valuesource\n convertationMethod=\"getMunicipalDistrictTypeCode\"\n fiasApiPath=\"municipaldistrict.abbreviation\"\n />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"МуниципРайон/Наим\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources>\n <valuesource fiasApiPath=\"municipaldistrict.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"ГородСелПоселен/ВидКод\"\n type=\"string\"\n display=\"true\"\n description=\"Адрес\"\n convertToShow=\"getUrbanSettlementTypeShortName\">\n <valuesources endComma=\"false\">\n <valuesource\n convertationMethod=\"getUrbanSettlementTypeCode\"\n fiasApiPath=\"urbansettlement.abbreviation\"\n />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"ГородСелПоселен/Наим\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources>\n <valuesource fiasApiPath=\"urbansettlement.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"НаселенПункт/Вид\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources endComma=\"false\">\n <valuesource\n convertationMethod=\"convertAbbreviationToFullName\"\n fiasApiPath=\"district.abbreviation\"\n />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"НаселенПункт/Наим\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources>\n <valuesource fiasApiPath=\"district.name\" />\n </valuesources>\n </fiasfield>\n ...\n <fiasfield path=\"ИдНом\" type=\"guid\" display=\"true\" description=\"\">\n <valuesources>\n <valuesource />\n </valuesources>\n </fiasfield>\n</fias>\n```\n\n### Валидации в ФИАСе\n\n- справочник ФИАС поддерживает только условные валидации типа error и warning;\n- валидации срабатывают только на основной инпут, появляется красная или оранжевая рамка в соответствии с уровнем ошибки;\n- валидации на полях внутри модальной формы не реализованы и работать не будут.\n\n### Апи ФИАСа\n\nЕсть возможность обращаться к методам и полям справочника ФИАС напрямую, например, из хэлпера или хуков. Это может понадобиться для реализации какого-либо функционала, отсутствующего в контроле.\nДля этого из publicForm нужно вызвать createFiasApiClient.\n\nКакие методы для работы с ФИАСом есть в FiasApi:\n\n- fetchSteadsByTextAndParentFiasId(text: string, parentFiasId: string) - асинхронный, возвращает массив найденных зем. участков - FiasStead[];\n- fetchSuggestAddressesByText(text: string) - асинхронный, возвращает массив найденных адресов со всеми полями - FiasAddressFields[];\n- fetchFullAddressesByFiasId(fiasId: string) - асинхронный, ищет адреса по id, возвращает FiasAddressFields;\n- fetchFlatByParentFiasId(parentFiasId: string, number: string) - асинхронный, для поиска квартир, возвращает FiasFlatRoom;\n- fetchCountriesByName(countryName: string) - асинхронный, находит список стран по имени - FiasCountry[];\n- fetchRegions() - асинхронный, возвращает список регионов - RegionsType\n\nПример:\n```js\nexport default async function ({ publicForm }) {\nconst fiasApi = publicForm.createFiasApiClient();\nconst suggestedAddresses = await fiasApi.fetchSuggestAddressesByText(\"Свердловская обл, г Екатеринбург, ул Малопрудная, д 5\");\n}\n```\nЗдесь вызывается метод fetchSuggestAddressesByText, который по строке адреса возвращает suggestedAddresses - подходящие адреса из апи ФИАСа. Возвращаемое значение - массив адресов, а каждый адрес - структура, содержащая все поля адреса, возвращаемые апи (регион, район и т.д.).";
|
|
137902
|
+
module.exports = "Теги: #ФИАС #справочник #адресов #fias\n\nКонтрол нужен для отображения [справочника адресов ФИАС](https://www.nalog.gov.ru/rn77/service/fias/).\nПоддерживает **муниципальное и административно-территориальное деление** (подробнее о структуре адресов можно узнать на [сайте ФИАС](https://fias.nalog.ru/)).\n\n**Структура справочника** в общем виде выглядит следующим образом:\n\n```xml\n<fias\n path=\"АнкетныеДанные/АдресРегистрации\"\n title=\"Адрес регистрации\"\n searchToAddressLevel=\"room\">\n <fiasfield\n path=\"Регион/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\" Регион географическое название\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"region.name\" />\n </valuesources>\n </fiasfield>\n ...\n <fiasfield path=\"Индекс\" type=\"string\" display=\"false\" description=\"Индекс\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.postalCode\" />\n </valuesources>\n </fiasfield>\n</fias>\n```\n\n### Настройка полей справочника\n\nВ справочнике ФИАС можно настроить поля, которые будут выгружаться в иннер после заполнения справочника, а также отображаться в модалке редактирования адреса.\nКаждое поле задается тегом **< fiasfield >**, внутри которого прописываются источники данных.\nВ качестве атрибутов-настроек поля можно задать:\n\n- **path** - относительный путь в иннере, по которому будет выгружаться значение поля. Например, path=\"Регион/ГеографическоеНазвание\" или path=\"Регион/Сокращение\";\n- **type** - тип данных;\n- **display** - если true, то данное поле будет показано в модалке редактирования адреса;\n- **description** - название поля, которое отображается в модалке.\n\nИсточники данных задаются тегом **< valuesources >**. Внутри перечисляются источники, каждый из которых задается отдельным тегом <valuesource>, внутри которого атрибутами указываются:\n\n- fiasApiPath - это название поля в апи [сервиса ФИАСа](https://api.testkontur.ru/fias/v1.2/addresses/), из которого нужно тянуть данные. [Документация](https://wiki.skbkontur.ru/pages/viewpage.action?pageId=186435051) по сервису ФИАС.\n- convertationMethod:\n - getHouseTypeShortName - получает сокращенное наименование здания,\n - getFlatTypeShortName - получает сокращенное наименование помещения,\n - getRoomTypeShortName - получает сокращенное наименование комнаты,\n - extractRegionCode - получает код региона,\n - getMunicipalDistrictTypeCode - получает код типа муниципального района,\n - getUrbanSettlementTypeCode - получает код типа для поселения,\n - convertAbbreviationToFullName - конвертирует аббревиатуру в адресе в полное наименование,\n - getHouseTypeLongName - получает полное наименование типа здания,\n - getFlatTypeLongName - получает полное наименование типа помещения,\n - getRoomTypeLongName - получает полное наименование типа комнаты,\n - extractOKTMO8Symbols - получает ОКТМО в 8-значном формате.\n- endComma - задается внутри valuesources, если true, то запятая проставляется после значения поля, иначе без запятой, по умолчанию true. Например, \"Республика Татарстан, улица Ленина\" - для поля \"Регион/Сокращение\" = \"Республика\" endComma должно быть равно false, для \"Регион/Наименование\" = \"Татарстан\" должно быть true или не задано.\n\nПример поля в ФИАСе:\n\n```\n<fiasfield path=\"Корпус/Номер\" type=\"string\" display=\"true\" description=\"Корпус номер\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.addNum1\" />\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"addType2.addType2\" />\n <valuesource fiasApiPath=\"garhouse.addNum2\" />\n </valuesources>\n</fiasfield>\n```\n\n### Настройки справочника\n\n**division:** значение настройки может быть municipal или administrative, меняет отображение адресов в справочнике в соответствии с территориальным делением: муниципальное, административное.\nПо умолчанию municipal.\n\n**searchToAddressLevel:** уровень, до которого ищутся адресные объекты.\nНапример, если задан уровень до комнаты searchToAddressLevel=room, тогда в результатах поиска у найденных адресов будут отображаться все части адреса до комнаты, если searchToAddressLevel=street, то в адресе будет отображаться улица и всё, что выше неё.\nВ выбранном значении в инпуте тоже будут отображаться только те части адреса, которые соответствуют выбранному уровню.\n\n**withSteads:** включает показ земельных участков в справочнике.\nЕсли значение настройки true, то в справочнике при поиске в списке адресов показываются адреса с зем. участками. Выгрузку в иннер зем. участков и отображение в модалке нужно настраивать отдельно.\n\n**onlyInput:** без этой настройки, если поле со справочником не заполнено, то оно отображается в виде обычного инпута, а когда заполнено, в виде текста со ссылкой \"Редактировать\".\nИногда бывает нужно отображать контрол всегда в состоянии инпута, например, внутри таблицы. Для этого нужно установить onlyInput=true.\n\n### Модальная форма редактирования адреса\n\nВ настоящее время есть 2 реализации данного контрола: с настраиваемой модалкой редактирования адреса и ненастраиваемой модалкой.\n\n#### ФИАС с настраиваемой модалкой\n\nПолностью настраиваемый справочник, где можно конфигурировать поля в иннере и модалке ресурсами.\nПо умолчанию справочник является настраиваемым, т.е. если в ФИАСе не указан тег **< fnsoptions >**/**< mvdoptions >**, то это настраиваемый справочник.\n\nПример настраиваемого справочника:\n\n```xml\n\n<fias\n path=\"АнкетныеДанные/АдресРегистрации\"\n title=\"Адрес регистрации\"\n searchToAddressLevel=\"room\"\n division=\"administrative\"\n pathToFullAddress=\"fullAddress\">\n <fiasfield\n path=\"Регион/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\" Регион географическое название\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"region.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Регион/Сокращение\" type=\"string\" display=\"true\" description=\"Регион сокращение\">\n <valuesources>\n <valuesource fiasApiPath=\"region.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Район/Сокращение\" type=\"string\" display=\"true\" description=\"Район сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"district.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Район/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Район географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"district.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Город/Сокращение\" type=\"string\" display=\"true\" description=\"Город сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"city.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Город/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Город географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"city.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"НаселенныйПункт/Сокращение\"\n type=\"string\"\n display=\"true\"\n description=\"Населенный пункт сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"settlement.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"НаселенныйПункт/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Населенный пункт географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"settlement.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Улица/Сокращение\"\n type=\"string\"\n display=\"true\"\n description=\"Улица сокращение\"\n showInModal=\"false\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"planningstructure.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Улица/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Улица географическое название\"\n showInModal=\"false\">\n <valuesources>\n <valuesource fiasApiPath=\"planningstructure.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Улица/Сокращение\" type=\"string\" display=\"true\" description=\"Улица сокращение\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"street.abbreviation\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"Улица/ГеографическоеНазвание\"\n type=\"string\"\n display=\"true\"\n description=\"Улица географическое название\">\n <valuesources>\n <valuesource fiasApiPath=\"street.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Дом/Сокращение\" type=\"string\" display=\"true\" description=\"Дом сокращение\">\n <valuesources endComma=\"false\">\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"garhouse.houseType\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Дом/Номер\" type=\"string\" display=\"true\" description=\"Дом номер\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.houseNum\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Корпус/Сокращение\" type=\"string\" display=\"true\" description=\"Корпус сокращение\">\n <valuesources endComma=\"false\">\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"garhouse.addType1\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Корпус/Номер\" type=\"string\" display=\"true\" description=\"Корпус номер\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.addNum1\" />\n <valuesource convertationMethod=\"getHouseTypeShortName\" fiasApiPath=\"addType2.addType2\" />\n <valuesource fiasApiPath=\"garhouse.addNum2\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Квартира/Сокращение\" type=\"string\" display=\"true\" description=\"Квартира сокращение\">\n <valuesources endComma=\"false\">\n <valuesource convertationMethod=\"getFlatTypeShortName\" fiasApiPath=\"room.flatType\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Квартира/Номер\" type=\"string\" display=\"true\" description=\"Квартира номер\">\n <valuesources endComma=\"false\">\n <valuesource fiasApiPath=\"room.flatNumber\" />\n <valuesource convertationMethod=\"getRoomTypeShortName\" fiasApiPath=\"room.roomType\" />\n <valuesource fiasApiPath=\"room.roomNumber\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"Индекс\" type=\"string\" display=\"false\" description=\"Индекс\">\n <valuesources>\n <valuesource fiasApiPath=\"garhouse.postalCode\" />\n </valuesources>\n </fiasfield>\n</fias>\n\n```\n\n#### ФИАС с НЕнастраиваемой модалкой\n\n- подходит для большинства форм ФНС;\n- в модальной форме редактирования адреса набор полей неизменен (его нельзя настроить ресурсами);\n- некоторые поля реализованы в виде выпадающих справочников, набор значений которых также нельзя настроить в ресурсах;\n- количество полей модалки НЕ настраивается, нет возможности задать неограниченное добавление полей. Количество полей фиксированное и соответствует количеству полей, возвращаемых ФИАСом.\n- есть возможность заполнения адреса по введенному guid-у адреса.\n\nДля включения такой модалки внутри ФИАСа должен быть указан тег **< fnsoptions >**/**< mvdoptions >**.\n\n```xml\n<fias path=\"АдрОбъектРФ\" title=\"Адрес\" searchToAddressLevel=\"room\" division=\"municipal\" withSteads=\"true\">\n <fnsoptions abbreviationSize=\"long\" />\n ...\n</fias>\n```\n\nСписок полей в ненастраиваемой модалке:\n\n- Индекс (опциональный)\n- Регион\n- Муниципальный район / округ (Вид + Наименование)\n- Поселение (Вид + Наименование)\n- Населенный пункт (Тип + Наименование)\n- Элемент планировочной структуры (Тип + Наименование)\n- Элемент улично-дорожной сети (Тип + Наименование)\n- Номер земельного участка\n- Номер здания / сооружения (Тип + Наименование): 3 пары Вид+Наименование - Дом, Корпус, Строение\n- Номер помещения / квартиры / машино-места (Тип + Наименование)\n- Помещение в пределах квартиры (Тип + Наименование)\n- Уникальный идентификатор адресного объекта в ГАР\n\nФормат полей и ограничения на ввод данных указаны в [wiki](https://wiki.skbkontur.ru/pages/viewpage.action?pageId=430311482).\n\nДля ФИАСа с НЕнастраиваемой модалкой есть свои настройки:\n\n**withIndex:** включает отображение поля с почтовым индексом. По умолчанию выключен.\n\n**withSteads:** включает показ земельных участков в справочнике.\nЕсли значение настройки true, то:\n\n- в справочнике при поиске в списке адресов показываются адреса с зем. участками;\n- в модалке редактирования адреса появляется поле \"Земельный участок\";\n- значение зем. участка, выбранного в справочнике, засетится по указанному в поле ФИАСа пути.\n По умолчанию показ зем. участков выключен.\n\n**abbreviationSize:** short или long (по умолчанию long). Если short, то аббревиатуры в адресе выгружаются в сокращенном виде. Например, \"ул. Ленина\". При значении long - в не сокращенном, например, \"улица Ленина\".\nНастройка указывается атрибутом в теге fnsoptions/mvdoptions.\nНастройку можно указать только общую для всех полей: нельзя настроить разный вид аббревиатур для каждого поля в отдельности.\n\n**pathToFullAddress:** задает путь, по которому засетится полный адрес (строится как конкатенация значений всех полей ФИАСа).\n\nОстальные настройки такие же, как в настраиваемом ФИАСе.\n\nПример ФИАСа с ненастраиваемой модалкой:\n\n```xml\n<fias path=\"АдрОбъектРФ\" title=\"Адрес\" searchToAddressLevel=\"room\" division=\"municipal\" withSteads=\"true\">\n <childrenoptions childrenInStack=\"2\" path=\"Здание\" />\n <fnsoptions abbreviationSize=\"long\" />\n <fiasfield\n path=\"Регион\"\n type=\"string\"\n display=\"true\"\n description=\"Адрес\"\n convertToShow=\"getRegionNameByCode\">\n <valuesources>\n <valuesource convertationMethod=\"extractRegionCode\" fiasApiPath=\"region.code\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"МуниципРайон/ВидКод\"\n type=\"string\"\n display=\"true\"\n description=\"Адрес\"\n convertToShow=\"getMunicipalDistrictTypeShortName\">\n <valuesources endComma=\"false\">\n <valuesource\n convertationMethod=\"getMunicipalDistrictTypeCode\"\n fiasApiPath=\"municipaldistrict.abbreviation\"\n />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"МуниципРайон/Наим\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources>\n <valuesource fiasApiPath=\"municipaldistrict.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield\n path=\"ГородСелПоселен/ВидКод\"\n type=\"string\"\n display=\"true\"\n description=\"Адрес\"\n convertToShow=\"getUrbanSettlementTypeShortName\">\n <valuesources endComma=\"false\">\n <valuesource\n convertationMethod=\"getUrbanSettlementTypeCode\"\n fiasApiPath=\"urbansettlement.abbreviation\"\n />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"ГородСелПоселен/Наим\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources>\n <valuesource fiasApiPath=\"urbansettlement.name\" />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"НаселенПункт/Вид\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources endComma=\"false\">\n <valuesource\n convertationMethod=\"convertAbbreviationToFullName\"\n fiasApiPath=\"district.abbreviation\"\n />\n </valuesources>\n </fiasfield>\n <fiasfield path=\"НаселенПункт/Наим\" type=\"string\" display=\"true\" description=\"Адрес\">\n <valuesources>\n <valuesource fiasApiPath=\"district.name\" />\n </valuesources>\n </fiasfield>\n ...\n <fiasfield path=\"ИдНом\" type=\"guid\" display=\"true\" description=\"\">\n <valuesources>\n <valuesource />\n </valuesources>\n </fiasfield>\n</fias>\n```\n\n### Валидации в ФИАСе\n\n- справочник ФИАС поддерживает только условные валидации типа error и warning;\n- валидации срабатывают только на основной инпут, появляется красная или оранжевая рамка в соответствии с уровнем ошибки;\n- валидации на полях внутри модальной формы не реализованы и работать не будут.\n\n### Апи ФИАСа\n\nЕсть возможность обращаться к методам и полям справочника ФИАС напрямую, например, из хэлпера или хуков. Это может понадобиться для реализации какого-либо функционала, отсутствующего в контроле.\nДля этого из publicForm нужно вызвать createFiasApiClient.\n\nКакие методы для работы с ФИАСом есть в FiasApi:\n\n- fetchSteadsByTextAndParentFiasId(text: string, parentFiasId: string) - асинхронный, возвращает массив найденных зем. участков - FiasStead[];\n- fetchSuggestAddressesByText(text: string) - асинхронный, возвращает массив найденных адресов со всеми полями - FiasAddressFields[];\n- fetchFullAddressesByFiasId(fiasId: string) - асинхронный, ищет адреса по id, возвращает FiasAddressFields;\n- fetchFlatByParentFiasId(parentFiasId: string, number: string) - асинхронный, для поиска квартир, возвращает FiasFlatRoom;\n- fetchCountriesByName(countryName: string) - асинхронный, находит список стран по имени - FiasCountry[];\n- fetchRegions() - асинхронный, возвращает список регионов - RegionsType\n\nПример:\n```js\nexport default async function ({ publicForm }) {\nconst fiasApi = publicForm.createFiasApiClient();\nconst suggestedAddresses = await fiasApi.fetchSuggestAddressesByText(\"Свердловская обл, г Екатеринбург, ул Малопрудная, д 5\");\n}\n```\nЗдесь вызывается метод fetchSuggestAddressesByText, который по строке адреса возвращает suggestedAddresses - подходящие адреса из апи ФИАСа. Возвращаемое значение - массив адресов, а каждый адрес - структура, содержащая все поля адреса, возвращаемые апи (регион, район и т.д.).\n\n## Отображение виджета\n\nМожно переключить контрол в режим рендера внешнего виджета вместо контрола из движка. Этот кейс нужен Диадоку, но может быть еще где-то пригодится.\n\nЧтобы переключить в режим виджета, нужно добавить ноду:\n```xml\n<adrgaroptions />\n```\nУ нее есть свои настройки, которые влияют на поведение и отображение виджета, см. сгенеренную доку по ноде.\n\nВ режиме виджета поведение контрола может отличаться от стандартного. Например, настройки полей стали лаконичнее:\n```xml\n<fiasfield path=\"Регион\" type=\"string\">\n <valuesources>\n <valuesource convertationMethod=\"extractRegionCode\" fiasApiPath=\"region.data.code\" />\n </valuesources>\n</fiasfield>\n```\nВесь используемый набор атрибутов в примере выше. Остальные настройки игнорируются.\n\nВажный момент с `type=\"guid\"` и `type=\"index\"`. Эти настройки отвечают за валидное сохранение почтового индекса адреса и `fiasId`.\n";
|
|
137793
137903
|
|
|
137794
137904
|
/***/ }),
|
|
137795
137905
|
|