bitfront-library
Version:
Angular CLI project with components and classes used by other Angular projects of the BIT foundation.
48 lines • 2.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BitColumnBooleanComponent = void 0;
var core_1 = require("@angular/core");
var i0 = require("@angular/core");
var i1 = require("@angular/common");
function BitColumnBooleanComponent_span_0_Template(rf, ctx) { if (rf & 1) {
i0.ɵɵelementStart(0, "span", 1);
i0.ɵɵtext(1);
i0.ɵɵelementEnd();
} if (rf & 2) {
var ctx_r0 = i0.ɵɵnextContext();
i0.ɵɵadvance(1);
i0.ɵɵtextInterpolate1(" ", ctx_r0.data[ctx_r0.field] ? ctx_r0.textTrue : ctx_r0.textFalse, " ");
} }
/**
* Componenente que muestra un paginador en la sección footer.
**/
var BitColumnBooleanComponent = /** @class */ (function () {
function BitColumnBooleanComponent() {
this.textTrue = "Sí";
this.textFalse = "No";
}
BitColumnBooleanComponent.ɵfac = function BitColumnBooleanComponent_Factory(t) { return new (t || BitColumnBooleanComponent)(); };
BitColumnBooleanComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BitColumnBooleanComponent, selectors: [["bit-column-boolean"]], inputs: { data: "data", field: "field", textTrue: "textTrue", textFalse: "textFalse" }, decls: 1, vars: 1, consts: [["class", "ui-cell-data", 4, "ngIf"], [1, "ui-cell-data"]], template: function BitColumnBooleanComponent_Template(rf, ctx) { if (rf & 1) {
i0.ɵɵtemplate(0, BitColumnBooleanComponent_span_0_Template, 2, 1, "span", 0);
} if (rf & 2) {
i0.ɵɵproperty("ngIf", ctx.data);
} }, directives: [i1.NgIf], encapsulation: 2 });
return BitColumnBooleanComponent;
}());
exports.BitColumnBooleanComponent = BitColumnBooleanComponent;
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BitColumnBooleanComponent, [{
type: core_1.Component,
args: [{
selector: "bit-column-boolean",
template: "\n <span class=\"ui-cell-data\" *ngIf=\"data\">\n {{ data[field] ? textTrue : textFalse }}\n </span>\n "
}]
}], function () { return []; }, { data: [{
type: core_1.Input
}], field: [{
type: core_1.Input
}], textTrue: [{
type: core_1.Input
}], textFalse: [{
type: core_1.Input
}] }); })();
//# sourceMappingURL=bit-column-boolean.component.js.map