/**
@license
Copyright (c) 2018 Vaadin Ltd.
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
export const EventContextMixin=t=>class EventContextMixin extends t{getEventContext(t){const e={},n=t.composedPath(),o=n[n.indexOf(this.$.table)-3];return o?(e.section=["body","header","footer","details"].filter((t=>o.getAttribute("part").indexOf(t)>-1))[0],o._column&&(e.column=o._column),"body"!==e.section&&"details"!==e.section||Object.assign(e,this.__getRowModel(o.parentElement)),e):e}};