@kontur.candy/generator 4.276.2 → 4.276.4
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 +24 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -150094,8 +150094,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150094
150094
|
/* harmony export */ });
|
|
150095
150095
|
/* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
|
|
150096
150096
|
/* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
|
|
150097
|
-
/* harmony import */ var
|
|
150098
|
-
/* harmony import */ var
|
|
150097
|
+
/* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
|
|
150098
|
+
/* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
|
|
150099
150099
|
/* harmony import */ var _IconNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IconNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/IconNode.ts");
|
|
150100
150100
|
/* harmony import */ var _GetIconName__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./GetIconName */ "./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon/GetIconName.ts");
|
|
150101
150101
|
|
|
@@ -150104,7 +150104,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150104
150104
|
|
|
150105
150105
|
|
|
150106
150106
|
|
|
150107
|
-
class IconConverter extends
|
|
150107
|
+
class IconConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
|
|
150108
150108
|
static getAcceptNodeClass() {
|
|
150109
150109
|
return _IconNode__WEBPACK_IMPORTED_MODULE_4__.IconNode;
|
|
150110
150110
|
}
|
|
@@ -150123,8 +150123,9 @@ class IconConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.Sug
|
|
|
150123
150123
|
|
|
150124
150124
|
doConvert(context) {
|
|
150125
150125
|
const node = this.getCurrentNodeAs(_IconNode__WEBPACK_IMPORTED_MODULE_4__.IconNode);
|
|
150126
|
-
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)(
|
|
150126
|
+
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("Icon");
|
|
150127
150127
|
mb.prop(x => x.name).set((0,_GetIconName__WEBPACK_IMPORTED_MODULE_5__.getIconName)(node, node.name));
|
|
150128
|
+
mb.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
|
|
150128
150129
|
return mb.buildConverterResult();
|
|
150129
150130
|
}
|
|
150130
150131
|
|
|
@@ -150151,19 +150152,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150151
150152
|
/* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
|
|
150152
150153
|
/* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
|
|
150153
150154
|
/* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
|
|
150155
|
+
/* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
|
|
150154
150156
|
|
|
150155
150157
|
|
|
150156
150158
|
|
|
150157
150159
|
|
|
150158
|
-
var _dec, _dec2, _class, _class2, _descriptor;
|
|
150160
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
150159
150161
|
|
|
150160
150162
|
|
|
150161
150163
|
|
|
150162
|
-
|
|
150164
|
+
|
|
150165
|
+
let IconNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("icon", `Иконка`, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/Typography/Icon sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("name", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string.required, `Название иконки, можно посмотреть http://tech.skbkontur.ru/react-ui/#/Icons`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__.DataBindingMixinNode), _dec(_class = (_class2 = class IconNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
|
|
150163
150166
|
constructor(...args) {
|
|
150164
150167
|
super(...args);
|
|
150165
150168
|
|
|
150166
150169
|
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "name", _descriptor, this);
|
|
150170
|
+
|
|
150171
|
+
_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor2, this);
|
|
150172
|
+
}
|
|
150173
|
+
|
|
150174
|
+
get path() {
|
|
150175
|
+
return this.dataBinding.path;
|
|
150176
|
+
}
|
|
150177
|
+
|
|
150178
|
+
getOwnPath() {
|
|
150179
|
+
return this.dataBinding.getOwnPath();
|
|
150167
150180
|
}
|
|
150168
150181
|
|
|
150169
150182
|
}, (_descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "name", [_dec2], {
|
|
@@ -150171,6 +150184,11 @@ let IconNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4
|
|
|
150171
150184
|
enumerable: true,
|
|
150172
150185
|
writable: true,
|
|
150173
150186
|
initializer: null
|
|
150187
|
+
}), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataBinding", [_dec3], {
|
|
150188
|
+
configurable: true,
|
|
150189
|
+
enumerable: true,
|
|
150190
|
+
writable: true,
|
|
150191
|
+
initializer: null
|
|
150174
150192
|
})), _class2)) || _class);
|
|
150175
150193
|
|
|
150176
150194
|
/***/ }),
|