import { Component, Event, h, Host, Prop } from '@stencil/core';
export class DvnAppRouteLink {
  render() {
    return (h(Host, { onClick: () => {
        if (!this.url)
          return;
        this.action.emit({
          type: 'navigation',
          direction: 'forward',
          url: this.url,
          viewId: this.viewId,
        });
      }, style: { display: 'block' } },
      h("slot", null)));
  }
  static get is() { return "dvn-app-route-link"; }
  static get properties() { return {
    "url": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "url",
      "reflect": false
    },
    "viewId": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "view-id",
      "reflect": false
    }
  }; }
  static get events() { return [{
      "method": "action",
      "name": "action",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
}
