UNPKG

leaf-framework

Version:
21 lines 1.57 kB
import { Component, Input } from '@angular/core'; import { titleTemplateAnimation } from '../../animations/title-template.animation'; var LeafPageTemplate = /** @class */ (function () { function LeafPageTemplate() { } LeafPageTemplate.decorators = [ { type: Component, args: [{ selector: '[leaf-page-template]', template: "\n <div class=\"row wrapper border-bottom white-bg page-heading ng-scope\" *ngIf=\"title\" [@titleTemplateAnimation]>\n <div [ngClass]=\"{'col-sm-4': (titleRightWrapper.children.length > 0), 'col-sm-12' : (titleRightWrapper.children.length === 0)}\">\n <h2 class=\"m-b-xxs\">{{ title }}</h2>\n </div>\n <div class=\"col-sm-8\" [ngClass]=\"{'hidden': titleRightWrapper.children.length === 0}\">\n <div class=\"pull-right m-t-md\" #titleRightWrapper>\n <ng-content select=\"[title-right]\"></ng-content>\n </div>\n </div>\n </div>\n <div class=\"row\" >\n <div class=\"col-lg-12\">\n <div class=\"wrapper wrapper-content\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n </div>\n </div>\n ", animations: [titleTemplateAnimation] },] }, ]; /** @nocollapse */ LeafPageTemplate.ctorParameters = function () { return []; }; LeafPageTemplate.propDecorators = { 'title': [{ type: Input },], }; return LeafPageTemplate; }()); export { LeafPageTemplate }; //# sourceMappingURL=page-template.component.js.map