You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
3.3 KiB
JavaScript
69 lines
3.3 KiB
JavaScript
"use strict";
|
|
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);
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var core_1 = require("@angular/core");
|
|
var common_1 = require("@angular/common");
|
|
var shared_1 = require("../common/shared");
|
|
var Card = /** @class */ (function () {
|
|
function Card(el) {
|
|
this.el = el;
|
|
}
|
|
Card.prototype.getBlockableElement = function () {
|
|
return this.el.nativeElement.children[0];
|
|
};
|
|
__decorate([
|
|
core_1.Input(),
|
|
__metadata("design:type", String)
|
|
], Card.prototype, "header", void 0);
|
|
__decorate([
|
|
core_1.Input(),
|
|
__metadata("design:type", String)
|
|
], Card.prototype, "subheader", void 0);
|
|
__decorate([
|
|
core_1.Input(),
|
|
__metadata("design:type", Object)
|
|
], Card.prototype, "style", void 0);
|
|
__decorate([
|
|
core_1.Input(),
|
|
__metadata("design:type", String)
|
|
], Card.prototype, "styleClass", void 0);
|
|
__decorate([
|
|
core_1.ContentChild(shared_1.Header),
|
|
__metadata("design:type", Object)
|
|
], Card.prototype, "headerFacet", void 0);
|
|
__decorate([
|
|
core_1.ContentChild(shared_1.Footer),
|
|
__metadata("design:type", Object)
|
|
], Card.prototype, "footerFacet", void 0);
|
|
Card = __decorate([
|
|
core_1.Component({
|
|
selector: 'p-card',
|
|
template: "\n <div [ngClass]=\"'ui-card ui-widget ui-widget-content ui-corner-all'\" [ngStyle]=\"style\" [class]=\"styleClass\">\n <div class=\"ui-card-header\" *ngIf=\"headerFacet\">\n <ng-content select=\"p-header\"></ng-content>\n </div>\n <div class=\"ui-card-body\">\n <div class=\"ui-card-title\" *ngIf=\"header\">{{header}}</div>\n <div class=\"ui-card-subtitle\" *ngIf=\"subheader\">{{subheader}}</div>\n <div class=\"ui-card-content\">\n <ng-content></ng-content>\n </div>\n <div class=\"ui-card-footer\" *ngIf=\"footerFacet\">\n <ng-content select=\"p-footer\"></ng-content>\n </div>\n </div>\n </div>\n "
|
|
}),
|
|
__metadata("design:paramtypes", [core_1.ElementRef])
|
|
], Card);
|
|
return Card;
|
|
}());
|
|
exports.Card = Card;
|
|
var CardModule = /** @class */ (function () {
|
|
function CardModule() {
|
|
}
|
|
CardModule = __decorate([
|
|
core_1.NgModule({
|
|
imports: [common_1.CommonModule],
|
|
exports: [Card, shared_1.SharedModule],
|
|
declarations: [Card]
|
|
})
|
|
], CardModule);
|
|
return CardModule;
|
|
}());
|
|
exports.CardModule = CardModule;
|
|
//# sourceMappingURL=card.js.map
|