import { LitElement } from "lit-element" ; import { v4 as uuid } from "uuid" ; type CustomEventDetail = { value ? : string | string [ ] ; oldValue ? : string | string [ ] ; data ? : string | null ; } ; export abstract class KucBase extends LitElement { public createRenderRoot ( ) { return this ; } } export const dispatchCustomEvent = ( el , eventName , detail ? ) => { const event = new CustomEvent ( eventName , { detail , bubbles : true , composed : true } ) ; return el . dispatchEvent ( event ) ; } ; export { CustomEventDetail } ; export const generateGUID = ( ) => uuid ( ) ;