@kontur.candy/generator 5.93.0 → 5.94.0-sum-in-menu.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 +36 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47673,6 +47673,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47673
47673
|
/* harmony export */ OptionalElementsExistenceFieldName: () => (/* binding */ OptionalElementsExistenceFieldName),
|
|
47674
47674
|
/* harmony export */ OptionalSectionFilledFieldName: () => (/* binding */ OptionalSectionFilledFieldName),
|
|
47675
47675
|
/* harmony export */ TruthyTechnicalFieldValue: () => (/* binding */ TruthyTechnicalFieldValue),
|
|
47676
|
+
/* harmony export */ UnitItemExtraInfoPath: () => (/* binding */ UnitItemExtraInfoPath),
|
|
47676
47677
|
/* harmony export */ UnitLabelPath: () => (/* binding */ UnitLabelPath),
|
|
47677
47678
|
/* harmony export */ reservedForTechnicalUsageFields: () => (/* binding */ reservedForTechnicalUsageFields)
|
|
47678
47679
|
/* harmony export */ });
|
|
@@ -47680,6 +47681,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47680
47681
|
|
|
47681
47682
|
const UnitLabelPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("label");
|
|
47682
47683
|
const AttachmentInfoPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("attachment");
|
|
47684
|
+
const UnitItemExtraInfoPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("unitextrainfo");
|
|
47683
47685
|
const TruthyTechnicalFieldValue = "1";
|
|
47684
47686
|
const FalsyTechnicalFieldValue = null;
|
|
47685
47687
|
const OptionalSectionFilledFieldName = "isFilledOptional";
|
|
@@ -49733,7 +49735,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49733
49735
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49734
49736
|
/* harmony export */ safeCast: () => (/* binding */ safeCast),
|
|
49735
49737
|
/* harmony export */ strictCast: () => (/* binding */ strictCast),
|
|
49736
|
-
/* harmony export */ tryCast: () => (/* binding */ tryCast)
|
|
49738
|
+
/* harmony export */ tryCast: () => (/* binding */ tryCast),
|
|
49739
|
+
/* harmony export */ tryParseAttachmentUnitPaths: () => (/* binding */ tryParseAttachmentUnitPaths)
|
|
49737
49740
|
/* harmony export */ });
|
|
49738
49741
|
function tryCast(input, type) {
|
|
49739
49742
|
if (input == undefined) {
|
|
@@ -49759,6 +49762,13 @@ function strictCast(input, type) {
|
|
|
49759
49762
|
// @ts-ignore
|
|
49760
49763
|
return result;
|
|
49761
49764
|
}
|
|
49765
|
+
function tryParseAttachmentUnitPaths(input) {
|
|
49766
|
+
try {
|
|
49767
|
+
return JSON.parse(input);
|
|
49768
|
+
} catch (e) {
|
|
49769
|
+
return input;
|
|
49770
|
+
}
|
|
49771
|
+
}
|
|
49762
49772
|
|
|
49763
49773
|
/***/ }),
|
|
49764
49774
|
|
|
@@ -81376,7 +81386,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81376
81386
|
|
|
81377
81387
|
|
|
81378
81388
|
|
|
81379
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
81389
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
81380
81390
|
|
|
81381
81391
|
|
|
81382
81392
|
|
|
@@ -81406,7 +81416,7 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
81406
81416
|
tid?: string;
|
|
81407
81417
|
handler?: string;
|
|
81408
81418
|
};
|
|
81409
|
-
`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
81419
|
+
`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("attachmentUnitItemInfoPaths", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Путь до поля в приложение для прокидывания значения в левое меню`), _dec13 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(), _dec(_class = (_class2 = class AttachmentFormNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
|
|
81410
81420
|
constructor(...args) {
|
|
81411
81421
|
super(...args);
|
|
81412
81422
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "gfv", _descriptor, this);
|
|
@@ -81419,7 +81429,8 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
81419
81429
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "optional", _descriptor8, this);
|
|
81420
81430
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "pageActions", _descriptor9, this);
|
|
81421
81431
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "extraPageActions", _descriptor10, this);
|
|
81422
|
-
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "
|
|
81432
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "attachmentUnitItemInfoPaths", _descriptor11, this);
|
|
81433
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor12, this);
|
|
81423
81434
|
}
|
|
81424
81435
|
getOwnPath() {
|
|
81425
81436
|
return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each) : undefined;
|
|
@@ -81474,7 +81485,12 @@ let AttachmentFormNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
|
|
|
81474
81485
|
enumerable: true,
|
|
81475
81486
|
writable: true,
|
|
81476
81487
|
initializer: null
|
|
81477
|
-
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "
|
|
81488
|
+
}), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "attachmentUnitItemInfoPaths", [_dec12], {
|
|
81489
|
+
configurable: true,
|
|
81490
|
+
enumerable: true,
|
|
81491
|
+
writable: true,
|
|
81492
|
+
initializer: null
|
|
81493
|
+
}), _descriptor12 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec13], {
|
|
81478
81494
|
configurable: true,
|
|
81479
81495
|
enumerable: true,
|
|
81480
81496
|
writable: true,
|
|
@@ -82129,7 +82145,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82129
82145
|
/* harmony import */ var _Common_KCLangRuntimeUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../../../Common/KCLangRuntimeUtils */ "./Common/KCLangRuntimeUtils.ts");
|
|
82130
82146
|
/* harmony import */ var _ComponentMarkupBuilder_PathHelper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/PathHelper */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/PathHelper.ts");
|
|
82131
82147
|
/* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
|
|
82132
|
-
/* harmony import */ var
|
|
82148
|
+
/* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
|
|
82149
|
+
/* harmony import */ var _common_CastUtils__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../../../common/CastUtils */ "./Generator/src/common/CastUtils.ts");
|
|
82150
|
+
/* harmony import */ var _FormNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
|
|
82151
|
+
|
|
82152
|
+
|
|
82133
82153
|
|
|
82134
82154
|
|
|
82135
82155
|
|
|
@@ -82155,10 +82175,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82155
82175
|
|
|
82156
82176
|
class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.SugarNodeConverterBase {
|
|
82157
82177
|
static getAcceptNodeClass() {
|
|
82158
|
-
return
|
|
82178
|
+
return _FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode;
|
|
82159
82179
|
}
|
|
82160
82180
|
doBuildDataDeclaration(context) {
|
|
82161
|
-
const node = this.getCurrentNodeAs(
|
|
82181
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82162
82182
|
const rootPath = (0,_getRootPath__WEBPACK_IMPORTED_MODULE_3__.getRootPath)(node);
|
|
82163
82183
|
const entrySections = ["default"];
|
|
82164
82184
|
const optionalSections = this.findOptionalSections(node);
|
|
@@ -82185,11 +82205,11 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82185
82205
|
return result;
|
|
82186
82206
|
}
|
|
82187
82207
|
buildChildrenDataDeclaration(context) {
|
|
82188
|
-
const node = this.getCurrentNodeAs(
|
|
82208
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82189
82209
|
return context.processChildrenDataDeclaration(node.pages);
|
|
82190
82210
|
}
|
|
82191
82211
|
*doTraverseChildren() {
|
|
82192
|
-
const node = this.getCurrentNodeAs(
|
|
82212
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82193
82213
|
yield* node.pages;
|
|
82194
82214
|
if (node.attachmentForms) {
|
|
82195
82215
|
yield* node.attachmentForms;
|
|
@@ -82202,7 +82222,7 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82202
82222
|
}
|
|
82203
82223
|
}
|
|
82204
82224
|
doConvert(context) {
|
|
82205
|
-
const node = this.getCurrentNodeAs(
|
|
82225
|
+
const node = this.getCurrentNodeAs(_FormNode__WEBPACK_IMPORTED_MODULE_24__.FormNode);
|
|
82206
82226
|
if (node.simple) {
|
|
82207
82227
|
return this.buildSimpleForm(context, node);
|
|
82208
82228
|
} else if (node.plain) {
|
|
@@ -82501,6 +82521,11 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
|
|
|
82501
82521
|
dependencies: compiledCondition === null || compiledCondition === void 0 ? void 0 : compiledCondition.dependencies
|
|
82502
82522
|
});
|
|
82503
82523
|
}
|
|
82524
|
+
if (attachmentFormNode.attachmentUnitItemInfoPaths != undefined) {
|
|
82525
|
+
const parsedPaths = (0,_common_CastUtils__WEBPACK_IMPORTED_MODULE_23__.tryParseAttachmentUnitPaths)(attachmentFormNode.attachmentUnitItemInfoPaths);
|
|
82526
|
+
const resolvePaths = Array.isArray(parsedPaths) ? parsedPaths.map(path => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_22__.createModelPath)(path, true)) : (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_22__.createModelPath)(parsedPaths, true);
|
|
82527
|
+
markupBuilder.prop(x => x.attachmentUnitItemInfoPaths).set(resolvePaths);
|
|
82528
|
+
}
|
|
82504
82529
|
markupBuilder.appendChild(context.convertChildNodes(attachmentFormNode.children));
|
|
82505
82530
|
return markupBuilder;
|
|
82506
82531
|
}
|