bia-framework
Version:
Bia Framework to work with angular 2
66 lines • 3.17 kB
JavaScript
;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
var core_1 = require("@angular/core");
var common_1 = require("@angular/common");
var odisseia_form_1 = require("../odisseia-form/odisseia-form");
var CoreControlFormBase_1 = require("../odisseia-form/CoreControlFormBase");
var OdisseiaInput = (function (_super) {
__extends(OdisseiaInput, _super);
function OdisseiaInput(formHost) {
_super.call(this, formHost);
this.bindChange = new core_1.EventEmitter();
this.setupBind(this.name, this.bind, this.bindChange);
}
__decorate([
core_1.Input(),
__metadata('design:type', String)
], OdisseiaInput.prototype, "name", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Object)
], OdisseiaInput.prototype, "bind", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', Object)
], OdisseiaInput.prototype, "bindChange", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], OdisseiaInput.prototype, "description", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], OdisseiaInput.prototype, "inputType", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], OdisseiaInput.prototype, "isDisabled", void 0);
OdisseiaInput = __decorate([
core_1.Component({
selector: "odisseia-input",
templateUrl: "node_modules/bia-framework/components/odisseia-input/odisseia-Input.component.html",
directives: [common_1.NgFormControl, common_1.NgClass, common_1.NgFor, common_1.NgModel]
}),
__param(0, core_1.Host()),
__metadata('design:paramtypes', [odisseia_form_1.CoreForm])
], OdisseiaInput);
return OdisseiaInput;
}(CoreControlFormBase_1.CoreControlFormBase));
exports.OdisseiaInput = OdisseiaInput;
//# sourceMappingURL=odisseia-input.js.map