(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.dl = global.dl || {}))); }(this, (function (exports) { 'use strict'; // import '@webcomponents/shadycss/scoping-shim'; var Template = function (name, templateString, useShadow) { if ( useShadow === void 0 ) useShadow = true; var template = document.createElement('template'); template.innerHTML = templateString; // ShadyCSS.prepareTemplate(template, name); return function (superclass) { return class extends superclass { constructor() { super(); var clone = document.importNode(template.content, true); if (useShadow) { // ShadyCSS.applyStyle(this); this.shadow_ = this.attachShadow({mode: 'open'}); this.shadow_.appendChild(clone); } else { this.appendChild(clone); } } get root() { if (useShadow) { return this.shadow_; } return this; } $(query) { return this.root.querySelector(query); } $$(query) { return this.root.querySelectorAll(query); } } } }; // import logo from "./distill-logo.svg"; var logo = ""; var T = Template('dt-header', `
`); class DTHeader extends T(HTMLElement) { static get is() { return 'dt-header'; } } customElements.define(DTHeader.is, DTHeader); exports.dtheader = DTHeader; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=template.js.map