/**
@license
Copyright (c) 2018 Vaadin Ltd.
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import{GridColumnElement as e}from"./vaadin-grid-column.js";import"./vaadin-grid-sorter.js";import{html as t}from"../../../@polymer/polymer/lib/utils/html-tag.js";class GridSortColumnElement extends e{static get template(){return t`
    <template class="header" id="headerTemplate">
      <vaadin-grid-sorter path="[[path]]" direction="{{direction}}">[[_getHeader(header, path)]]</vaadin-grid-sorter>
    </template>
`}static get is(){return"vaadin-grid-sort-column"}static get properties(){return{path:String,direction:{type:String,notify:!0}}}_prepareHeaderTemplate(){const e=this._prepareTemplatizer(this.$.headerTemplate);return e.templatizer.dataHost=this,e}_getHeader(e,t){return e||this._generateHeader(t)}}customElements.define(GridSortColumnElement.is,GridSortColumnElement);export{GridSortColumnElement};