import{d as I,r as d,c as V,k as D,l as g,D as U,o as c,b as t,a as x,s as L,q as n,T as A,F as E,h as C,n as P,y as N,_ as B,z as $,m as z,A as o,e as b,B as R,C as S,E as F,G as _,H,U as K,N as O,I as W,J as j,R as q,t as G,K as J,L as M,O as Z}from"./index-952241fc.js";const Q={key:0,class:"text-secondary"},X={class:"p-1",style:{"max-width":"250px"}},Y=I({__name:"TagInputDropdown",props:{property:Object,modelValue:Array,excluded:Array,canCreate:Boolean,canCustomize:Boolean,canLink:Boolean,canDelete:Boolean,autoFocus:Boolean,noWrap:Boolean,teleport:Boolean},emits:["update:modelValue","hide"],setup(k,{expose:u,emit:m}){const a=k,i=m;u({getHeight:w});const p=d(null),y=d(null),r=V(()=>a.modelValue??[]),v=V(()=>r.value.map(f=>a.property.tags[f]));function w(){return p.value==null?0:p.value.clientHeight}return(f,l)=>(c(),D(U,{"auto-focus":!1,onHide:l[1]||(l[1]=e=>i("hide")),teleport:a.teleport},{button:g(()=>[t("div",{class:P(["btn-class",a.noWrap?"text-nowrap":"text-wrap"]),ref_key:"heightElem",ref:p},[(c(!0),x(E,null,L(v.value,e=>(c(),x("span",null,[n(A,{id:e.id,class:"me-1"},null,8,["id"])]))),256)),v.value.length==0?(c(),x("span",Q,"None")):C("",!0)],2)]),popup:g(()=>[t("div",X,[n(N,{property:a.property,"model-value":r.value,excluded:a.excluded,"can-create":a.canCreate,"can-customize":a.canCustomize,"can-link":a.canLink,"can-delete":a.canDelete,"auto-focus":a.autoFocus,"onUpdate:modelValue":l[0]||(l[0]=e=>i("update:modelValue",e)),ref_key:"inputElem",ref:y},null,8,["property","model-value","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])])]),_:1},8,["teleport"]))}});const h=B(Y,[["__scopeId","data-v-b59274db"]]),ee={key:0,class:"d-flex flex-wrap p-2"},te={class:"item border rounded"},le={class:"mb-1"},se={class:"item border rounded"},oe={class:"mb-1"},ne={class:"item border rounded"},ae={class:"item border rounded"},de={class:"mb-1"},re={class:"item border rounded"},ue={class:"mb-1"},ie={class:"item border rounded"},pe={class:"item border rounded"},me={class:"item border rounded"},ye={class:"mb-1"},ve={class:"item border rounded"},ce=I({__name:"TestView",setup(k){const u=$(),m=d(`Lorem Ipsum is simply dummy text 
 
of the printing and typesetting industry.`),a=d("google.com"),i=d(12.3),p=d(0),y=d(!0),r=d("2024-04-04T23:26:00Z"),v=d([]),w=V(()=>u.instances[1]),f=V(()=>u.properties[3]);return z(()=>{window.addEventListener("keydown",l=>{l.key=="Control"&&(o.ctrl=!0),l.key=="Alt"&&(o.ctrl=!0,o.alt=!0),l.key=="Shift"&&(o.shift=!0),l.key=="ArrowLeft"&&(o.left=!0),l.key=="ArrowRight"&&(o.right=!0,console.log("keeeyy"))}),window.addEventListener("keyup",l=>{l.key=="Control"&&(o.ctrl=!1),l.key=="Alt"&&(o.ctrl=!1,o.alt=!1),l.key=="Shift"&&(o.shift=!1),l.key=="ArrowLeft"&&(o.left=!1),l.key=="ArrowRight"&&(o.right=!1)}),window.addEventListener("mousemove",l=>{o.ctrl=l.ctrlKey,o.alt=l.altKey,o.shift=l.shiftKey,o.ctrl=o.ctrl||o.alt})}),(l,e)=>b(u).propertyList.length?(c(),x("div",ee,[t("div",te,[e[8]||(e[8]=t("h5",{class:"text-secondary"},"Date",-1)),e[9]||(e[9]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",le,[n(R,{date:r.value},null,8,["date"])]),e[10]||(e[10]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(S,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=s=>r.value=s)},null,8,["modelValue"])])]),t("div",se,[e[11]||(e[11]=t("h5",{class:"text-secondary"},"Text",-1)),e[12]||(e[12]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",oe,[n(F,{text:m.value},null,8,["text"])]),e[13]||(e[13]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(_,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=s=>m.value=s)},null,8,["modelValue"])])]),t("div",ne,[e[14]||(e[14]=t("h5",{class:"text-secondary"},"BDInput Row Text",-1)),n(H,{instance:w.value,"property-id":f.value.id},{default:g(({set:s,value:T})=>[n(M,{"model-value":T,"onUpdate:modelValue":s,width:200},null,8,["model-value","onUpdate:modelValue"])]),_:1},8,["instance","property-id"])]),t("div",ae,[e[15]||(e[15]=t("h5",{class:"text-secondary"},"Url",-1)),e[16]||(e[16]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",de,[n(K,{url:a.value},null,8,["url"])]),e[17]||(e[17]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(_,{modelValue:a.value,"onUpdate:modelValue":e[2]||(e[2]=s=>a.value=s),"url-mode":!0},null,8,["modelValue"])])]),t("div",re,[e[18]||(e[18]=t("h5",{class:"text-secondary"},"Number",-1)),e[19]||(e[19]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",ue,[n(O,{number:i.value},null,8,["number"])]),e[20]||(e[20]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(W,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=s=>i.value=s)},null,8,["modelValue"])])]),t("div",ie,[e[21]||(e[21]=t("h5",{class:"text-secondary"},"CellColorInput",-1)),t("div",null,[n(j,{modelValue:p.value,"onUpdate:modelValue":e[4]||(e[4]=s=>p.value=s),rounded:!0},null,8,["modelValue"])])]),t("div",pe,[e[22]||(e[22]=t("h5",{class:"text-secondary"},"RowDateInput",-1)),t("div",null,[n(q,{modelValue:r.value,"onUpdate:modelValue":e[5]||(e[5]=s=>r.value=s)},null,8,["modelValue"])])]),t("div",me,[e[23]||(e[23]=t("h5",{class:"text-secondary"},"Checkbox",-1)),e[24]||(e[24]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",ye,G(!!y.value),1),e[25]||(e[25]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(J,{modelValue:y.value,"onUpdate:modelValue":e[6]||(e[6]=s=>y.value=s),label:"Checkbox"},null,8,["modelValue"])])]),t("div",ve,[e[26]||(e[26]=t("h5",{class:"text-secondary"},"Tags",-1)),t("div",null,[n(h,{property:b(u).propertyList.find(s=>s.type==b(Z).multi_tags),modelValue:v.value,"onUpdate:modelValue":e[7]||(e[7]=s=>v.value=s),"can-create":!0,"no-wrap":!0},null,8,["property","modelValue"])])])])):C("",!0)}});const xe=B(ce,[["__scopeId","data-v-039e5b52"]]);export{xe as default};
