const t=window.Ema.h;import"./chunk-de721f0a.js";import{d as e}from"./chunk-f41c48db.js";class a{constructor(){this.id=e.getUUID()}componentDidLoad(){this.postRender()}componentDidUpdate(){this.postRender()}postRender(){this.changeHandler()}changeHandler(){this.change.emit({data:this.getData(),el:this.el,timestamp:e.getTimeStamp()})}async setData(t,e=!1){this.data||(this.data={}),e?Object.keys(t).forEach(e=>{this.data[e]=t[e]}):this.data=t}async getData(){return this.data}async getId(){return this.id}render(){return this.dataJson&&(this.data=JSON.parse(this.dataJson)),t("div",null,t("button",null,"Click button"))}static get is(){return"ema-test"}static get properties(){return{data:{state:!0},dataJson:{type:String,attr:"data-json"},el:{elementRef:!0},getData:{method:!0},getId:{method:!0},setData:{method:!0}}}static get events(){return[{name:"change",method:"change",bubbles:!0,cancelable:!0,composed:!0}]}static get style(){return":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}"}}export{a as EmaTest};