UNPKG

react-application-core

Version:

A react-based application core for the business applications.

52 lines 2.07 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Radio = void 0; var definition_1 = require("../../../definition"); var util_1 = require("../../../util"); var base_checkbox_component_1 = require("./base-checkbox.component"); /** * @component-impl * @stable [21.12.2020] */ var Radio = /** @class */ (function (_super) { __extends(Radio, _super); function Radio() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(Radio.prototype, "inputAttachmentElement", { /** * @stable [21.12.2020] * @protected */ get: function () { var _this = this; return util_1.ConditionUtils.orNull(this.value, function () { return _this.uiFactory.makeIcon(definition_1.IconsEnum.CIRCLE); }); }, enumerable: false, configurable: true }); /** * @stable [21.12.2020] * @protected */ Radio.prototype.getFieldClassName = function () { return util_1.ClsUtils.joinClassName(_super.prototype.getFieldClassName.call(this), definition_1.CheckboxClassesEnum.RADIO); }; Radio.defaultProps = util_1.PropsUtils.mergeWithParentDefaultProps({}, base_checkbox_component_1.BaseCheckbox); return Radio; }(base_checkbox_component_1.BaseCheckbox)); exports.Radio = Radio; //# sourceMappingURL=radio.component.js.map