/**
@license
Copyright (c) 2017 Vaadin Ltd.
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
export const DisabledMixin=e=>class DisabledMixin extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){e?(this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled","true")):(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled"))}click(){this.disabled||super.click()}};