UNPKG

wj-elements

Version:

WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.

44 lines (43 loc) 1.17 kB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); import WJElement from "./wje-element.js"; class Route extends WJElement { /** * Creates an instance of Route. * @class */ constructor() { super(); __publicField(this, "className", "Route"); } /** * Returns the list of attributes to observe for changes. * @static * @returns {Array<string>} */ static get observedAttributes() { return []; } /** * Sets up the attributes for the component. */ setupAttributes() { this.isShadowRoot = "open"; } /** * Draws the component for the route. * @returns {DocumentFragment} */ draw() { let fragment = document.createDocumentFragment(); let slot = document.createElement("slot"); fragment.appendChild(slot); return fragment; } } Route.define("wje-route", Route); export { Route as default }; //# sourceMappingURL=wje-route.js.map