UNPKG

@rxdi/ui-kit

Version:

UI Components for building graphql-server website

56 lines 2.02 kB
"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 }); exports.ArticleComponent = void 0; const lit_html_1 = require("@rxdi/lit-html"); const style_1 = require("./style"); /** * @customElement rx-article */ let ArticleComponent = class ArticleComponent extends lit_html_1.LitElement { constructor() { super(...arguments); this.data = {}; } }; __decorate([ (0, lit_html_1.property)({ type: Object }), __metadata("design:type", Object) ], ArticleComponent.prototype, "data", void 0); ArticleComponent = __decorate([ (0, lit_html_1.Component)({ selector: 'rx-article', style: style_1.style, template() { return (0, lit_html_1.html) ` <article class="article"> <h1 class="title"> <a>${this.data.heading}</a> </h1> <p class="article-meta"> ${this.data.meta} </p> <p class="text-lead"> ${this.data.lead} </p> <p> ${this.data.information} </p> <div class="section"> ${this.data.section} </div> </article> `; } }) ], ArticleComponent); exports.ArticleComponent = ArticleComponent; //# sourceMappingURL=article.component.js.map