dendelion-ui 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var U;function se(){return U||(U=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(r=s(r,o(d)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var d in r)n.call(r,d)&&r[d]&&(l=s(l,d));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var le=se();const M=Q(le),ce=["type","disabled"],ue={class:"group-[.is-loading]:text-transparent"},ie=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:L.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>M("btn","group",H.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(o,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(a.value),type:o.type,disabled:o.disabled||o.loading},[s[1]||(s[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",ue,[e.renderSlot(o.$slots,"default")])],10,ce))}}),P=(t,n)=>{const a=t.__vccOpts||t;for(const[o,s]of n)a[o]=s;return a},de={};function pe(t,n){return e.openBlock(),e.createElementBlock("button")}const fe=P(de,[["render",pe]]),me=e.defineComponent({__name:"Card",props:{backgroundColor:{default:L.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref(M("card",j.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?J.toClassName(n.roundedSize):""));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),be={},ve={class:"card-body"};function he(t,n){return e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(t.$slots,"default")])}const ge=P(be,[["render",he]]),ye=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),ke=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),V=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,o)=>a&&(typeof a=="object"?a[o]:a),t));var W={},O={},A;function ee(){return A||(A=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,a=/ł/g,o=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(o,"n").trim()}}(O)),O}var z={},q;function I(){if(q)return z;q=1,z.__esModule=!0,z.aggressiveFuzzyMatch=p,z.createFuzzySearchImpl=y,z.experimentalSmartFuzzyMatch=S,z.fuzzyMatchImpl=B;var t=n(ee());function n(u){return u&&u.__esModule?u:{default:u}}var a=Number.MAX_SAFE_INTEGER,o=function(c,m){return c.score-m.score},s=function(c,m){return c[0]-m[0]},r=new Set(`  []()-–—'"“”`.split(""));function l(u){return r.has(u)}function d(u,c,m,k,i,g,b){if(u===k)return[0,[[0,u.length-1]]];var f=k.length,v=c.length,_=i.length;if(c===i)return[.1,[[0,v-1]]];if(c.startsWith(i))return[.5,[[0,_-1]]];var C=u.indexOf(k);if(C>-1&&l(u[C-1]))return[.9,[[C,C+f-1]]];var x=c.indexOf(i);if(x>-1&&l(c[x-1]))return[1,[[x,x+f-1]]];var E=g.length;if(E>1&&g.every(function(N){return m.has(N)})){var w=1.5+E*.2;return[w,g.map(function(N){var $=c.indexOf(N);return[$,$+N.length-1]}).sort(s)]}return x>-1?[2,[[x,x+f-1]]]:b==="aggressive"?p(c,i):b==="smart"?S(c,i):null}function p(u,c){for(var m=u.length,k=c.length,i=0,g=c[i],b=[],f=-1,v=-2,_=0;_<m;_+=1)if(u[_]===g){if(_!==v+1&&(f>=0&&b.push([f,v]),f=_),v=_,i+=1,i===k)return b.push([f,v]),h(b,u);g=c[i]}return null}function S(u,c){for(var m=u.length,k=[],i=0,g=c[i],b=-1,f=-2;;){var v=u.indexOf(g,f+1);if(v===-1)break;if(v===0||l(u[v-1]))b=v;else{var _=c.length-i,C=u.length-v,x=Math.min(3,_,C),E=c.slice(i,i+x);if(u.slice(v,v+x)===E)b=v;else{f+=1;continue}}for(f=b;f<m&&u[f]===g;f+=1)i+=1,g=c[i];if(f-=1,k.push([b,f]),i===c.length)return h(k,u)}return null}function h(u,c){var m=2;return u.forEach(function(k){var i=k[0],g=k[1],b=g-i+1,f=i===0||c[i]===" "||c[i-1]===" ",v=g===c.length-1||c[g]===" "||c[g+1]===" ",_=f&&v;_?m+=.2:f?m+=.4:b>=3?m+=.8:m+=1.6}),[m,u]}function B(u,c){var m=(0,t.default)(c),k=m.split(" "),i=(0,t.default)(u),g=new Set(i.split(" ")),b=d(u,i,g,c,m,k,"smart");return b?{item:u,score:b[0],matches:[b[1]]}:null}function y(u,c){var m=c.strategy,k=m===void 0?"aggressive":m,i=c.getText,g=u.map(function(b){var f;if(i)f=i(b);else{var v=c.key?b[c.key]:b;f=[v]}var _=f.map(function(C){var x=C||"",E=(0,t.default)(x),w=new Set(E.split(" "));return[x,E,w]});return[b,_]});return function(b){var f=[],v=(0,t.default)(b),_=v.split(" ");return v.length?(g.forEach(function(C){for(var x=C[0],E=C[1],w=a,N=[],$=0,te=E.length;$<te;$+=1){var F=E[$],ne=F[0],re=F[1],ae=F[2],R=d(ne,re,ae,b,v,_,k);R?(w=Math.min(w,R[0]),N.push(R[1])):N.push(null)}w<a&&f.push({item:x,score:w,matches:N})}),f.sort(o),f):[]}}return z}var X;function Be(){return X||(X=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=s;var n=a(ee());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function o(r,l){return l===void 0&&(l={}),I().createFuzzySearchImpl(r,l)}function s(r,l){return I().fuzzyMatchImpl(r,l)}}(W)),W}var _e=Be();const xe=Q(_e),Se={key:0},Ce={key:0},Ee=["innerHTML"],we={key:1},Ne={key:2},K=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(V(n.row,n.column.data),n.row):V(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const o=(r,l)=>l.render===void 0?{}:l.render(V(r,l.data),r).props,s=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,l)=>(e.openBlock(),e.createElementBlock("td",null,[r.column.render?r.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",Se,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",{innerHTML:a.value},null,8,Ee)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(a.value.component)),e.normalizeProps(e.guardReactiveProps(o(r.row,r.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(V)(r.row,r.column.data)),1)],64))]))}}),ze={key:0},Ve={key:1},$e={key:0},Me=["colspan"],Te=["onClick"],Le={key:2},Fe={key:0},Re=["colspan"],De=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:T.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),o=e.ref(null),s=t,r=e.ref(M("table",Z.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),l=(p,S)=>{s.onRowClick&&s.onRowClick(p,S)};e.onMounted(()=>{n.value=s.dataSource,a.value=s.dataSource}),e.watch(()=>s.dataSource,p=>{n.value=p,a.value=p},{immediate:!0}),e.watch(()=>s.searchValue,p=>{if(s.searchFunction){a.value=s.searchFunction(p??"");return}a.value=p?d(p):n.value},{immediate:!0});const d=p=>{const S=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(B=>{const y=n.value.map(m=>V(m,B)),c=xe(y)(p);for(const m of c){const k=n.value.filter(i=>V(i,B)===m.item);S.push(...k)}}),S):[]};return(p,S)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(r.value)},[p.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",ze,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,h=>(e.openBlock(),e.createElementBlock("th",{key:h.title},e.toDisplayString(h.title),1))),128))])])),p.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ve,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",$e,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,Me)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(h,B)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(s.onRowClick?"hover":""),key:JSON.stringify(h),onClick:y=>l(h,B)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,y=>(e.openBlock(),e.createBlock(K,{key:y.data,column:y,row:h,rowIndex:B},null,8,["column","row","rowIndex"]))),128))],10,Te))),128))])),p.horizontal?(e.openBlock(),e.createElementBlock("tbody",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,h=>(e.openBlock(),e.createElementBlock("tr",{key:h.title},[e.createElementVNode("th",null,e.toDisplayString(h.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(B,y)=>(e.openBlock(),e.createBlock(K,{key:y,column:h,row:B,rowIndex:y},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Fe,[e.createElementVNode("td",{colspan:s.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Re)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),We=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const o=t,s=e.ref(o.value),r=a,l=d=>{s.value=d,r("update:value",d)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>o.value,d=>{s.value=d}),n({updateValue:l}),(d,p)=>e.renderSlot(d.$slots,"default",{updateValue:l})}}),Oe=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),o=e.ref("");return e.watch(()=>a?.value.value,s=>{s&&n.value&&(o.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(o.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(s.$slots,"default")],2))}}),Pe={},Ue={class:"steps"};function Ae(t,n){return e.openBlock(),e.createElementBlock("ul",Ue,[e.renderSlot(t.$slots,"default")])}const qe=P(Pe,[["render",Ae]]),Ie={key:0},Xe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ke={key:0},je=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>o?.value.value),o=e.inject("stepper"),s=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===a.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),He={key:0,method:"dialog"},Ge=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:T.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),s=a,r=t,l=e.ref(M("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),d=e.ref(M("modal")),p=e.ref(M("btn",G.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{o.value?.showModal()},closeModal:()=>{o.value?.close()}}),(B,y)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass([d.value,B.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:y[0]||(y[0]=u=>s("close",u))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[B.closeButton?(e.openBlock(),e.createElementBlock("form",He,[e.createElementVNode("button",{class:e.normalizeClass(p.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"default")],2),y[1]||(y[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),Je={class:"hidden w-full max-w-sm lg:flex"},Ze={class:"relative mx-3 w-full"},Ye={class:"relative w-full max-w-full"},Qe=["value"],et=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("label",Ze,[d[1]||(d[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Ye,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:d[0]||(d[0]=p=>s("update:modelValue",p.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Qe)])]),d[2]||(d[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),tt=["name","value"],nt=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:T.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),o=t,s=e.computed(()=>100/o.items.length),r=e.computed(()=>["tabs",o.placement==="top"?"tabs-top":"tabs-bottom",`${Y.toClassName(o.size)}`,{"tabs-box":o.box,"tabs-border":o.border,"tabs-lift":o.lift}]),l=e.ref(o.activeTab??0),d=p=>{l.value=p};return e.watch(()=>o.activeTab,p=>{l.value=p}),n({activeIndex:l,setActiveTab:d}),(p,S)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(h,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:B},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(o.fullWidth?{width:s.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:B,"onUpdate:modelValue":S[0]||(S[0]=y=>l.value=y)},null,8,tt),[[e.vModelRadio,l.value]]),e.createTextVNode(" "+e.toDisplayString(h.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",h.disabled?"tab-disabled":""])},[e.renderSlot(p.$slots,h.slot)],2)],64))),128))],2))}}),rt=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];exports.BackgroundColorUtils=j;exports.Button=ie;exports.ButtonColorUtils=H;exports.ButtonSizeUtils=G;exports.Card=me;exports.CardBody=ge;exports.CardTitle=ye;exports.Color=L;exports.Container=ke;exports.Modal=Ge;exports.RoundedSizeUtils=J;exports.SearchBar=et;exports.SimpleButton=fe;exports.Size=T;exports.Step=Oe;exports.StepList=qe;exports.StepPanel=je;exports.StepPanels=Xe;exports.Stepper=We;exports.Table=De;exports.TableSizeUtils=Z;exports.Tabs=nt;exports.TabsSizeUtils=Y;exports.TextColorUtils=oe;exports.dendelionSafeList=rt;exports.getValue=V;
5
+ */var U;function se(){return U||(U=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(r=s(r,o(d)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var d in r)n.call(r,d)&&r[d]&&(l=s(l,d));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var le=se();const $=Q(le),ce=["type","disabled"],ue={class:"group-[.is-loading]:text-transparent"},ie=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:L.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>$("btn","group",H.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(o,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(a.value),type:o.type,disabled:o.disabled||o.loading},[s[1]||(s[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",ue,[e.renderSlot(o.$slots,"default")])],10,ce))}}),P=(t,n)=>{const a=t.__vccOpts||t;for(const[o,s]of n)a[o]=s;return a},de={};function pe(t,n){return e.openBlock(),e.createElementBlock("button")}const fe=P(de,[["render",pe]]),me=e.defineComponent({__name:"Card",props:{backgroundColor:{default:L.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref($("card",j.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?J.toClassName(n.roundedSize):""));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),be={},ve={class:"card-body"};function he(t,n){return e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(t.$slots,"default")])}const ge=P(be,[["render",he]]),ye=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),ke=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),V=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,o)=>a&&(typeof a=="object"?a[o]:a),t));var W={},O={},A;function ee(){return A||(A=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,a=/ł/g,o=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(o,"n").trim()}}(O)),O}var z={},q;function I(){if(q)return z;q=1,z.__esModule=!0,z.aggressiveFuzzyMatch=_,z.createFuzzySearchImpl=k,z.experimentalSmartFuzzyMatch=v,z.fuzzyMatchImpl=g;var t=n(ee());function n(c){return c&&c.__esModule?c:{default:c}}var a=Number.MAX_SAFE_INTEGER,o=function(u,m){return u.score-m.score},s=function(u,m){return u[0]-m[0]},r=new Set(`  []()-–—'"“”`.split(""));function l(c){return r.has(c)}function d(c,u,m,y,i,h,f){if(c===y)return[0,[[0,c.length-1]]];var p=y.length,b=u.length,B=i.length;if(u===i)return[.1,[[0,b-1]]];if(u.startsWith(i))return[.5,[[0,B-1]]];var S=c.indexOf(y);if(S>-1&&l(c[S-1]))return[.9,[[S,S+p-1]]];var x=u.indexOf(i);if(x>-1&&l(u[x-1]))return[1,[[x,x+p-1]]];var E=h.length;if(E>1&&h.every(function(N){return m.has(N)})){var w=1.5+E*.2;return[w,h.map(function(N){var M=u.indexOf(N);return[M,M+N.length-1]}).sort(s)]}return x>-1?[2,[[x,x+p-1]]]:f==="aggressive"?_(u,i):f==="smart"?v(u,i):null}function _(c,u){for(var m=c.length,y=u.length,i=0,h=u[i],f=[],p=-1,b=-2,B=0;B<m;B+=1)if(c[B]===h){if(B!==b+1&&(p>=0&&f.push([p,b]),p=B),b=B,i+=1,i===y)return f.push([p,b]),C(f,c);h=u[i]}return null}function v(c,u){for(var m=c.length,y=[],i=0,h=u[i],f=-1,p=-2;;){var b=c.indexOf(h,p+1);if(b===-1)break;if(b===0||l(c[b-1]))f=b;else{var B=u.length-i,S=c.length-b,x=Math.min(3,B,S),E=u.slice(i,i+x);if(c.slice(b,b+x)===E)f=b;else{p+=1;continue}}for(p=f;p<m&&c[p]===h;p+=1)i+=1,h=u[i];if(p-=1,y.push([f,p]),i===u.length)return C(y,c)}return null}function C(c,u){var m=2;return c.forEach(function(y){var i=y[0],h=y[1],f=h-i+1,p=i===0||u[i]===" "||u[i-1]===" ",b=h===u.length-1||u[h]===" "||u[h+1]===" ",B=p&&b;B?m+=.2:p?m+=.4:f>=3?m+=.8:m+=1.6}),[m,c]}function g(c,u){var m=(0,t.default)(u),y=m.split(" "),i=(0,t.default)(c),h=new Set(i.split(" ")),f=d(c,i,h,u,m,y,"smart");return f?{item:c,score:f[0],matches:[f[1]]}:null}function k(c,u){var m=u.strategy,y=m===void 0?"aggressive":m,i=u.getText,h=c.map(function(f){var p;if(i)p=i(f);else{var b=u.key?f[u.key]:f;p=[b]}var B=p.map(function(S){var x=S||"",E=(0,t.default)(x),w=new Set(E.split(" "));return[x,E,w]});return[f,B]});return function(f){var p=[],b=(0,t.default)(f),B=b.split(" ");return b.length?(h.forEach(function(S){for(var x=S[0],E=S[1],w=a,N=[],M=0,te=E.length;M<te;M+=1){var F=E[M],ne=F[0],re=F[1],ae=F[2],R=d(ne,re,ae,f,b,B,y);R?(w=Math.min(w,R[0]),N.push(R[1])):N.push(null)}w<a&&p.push({item:x,score:w,matches:N})}),p.sort(o),p):[]}}return z}var X;function Be(){return X||(X=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=s;var n=a(ee());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function o(r,l){return l===void 0&&(l={}),I().createFuzzySearchImpl(r,l)}function s(r,l){return I().fuzzyMatchImpl(r,l)}}(W)),W}var _e=Be();const xe=Q(_e),Ce={key:0},Se={key:0},Ee=["innerHTML"],we={key:1},Ne={key:2},K=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(V(n.row,n.column.data),n.row):V(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const o=(r,l)=>l.render===void 0?{}:l.render(V(r,l.data),r).props,s=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,l)=>(e.openBlock(),e.createElementBlock("td",null,[r.column.render?r.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",Ce,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Se,[e.createElementVNode("div",{innerHTML:a.value},null,8,Ee)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(a.value.component)),e.normalizeProps(e.guardReactiveProps(o(r.row,r.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(V)(r.row,r.column.data)),1)],64))]))}}),ze={key:0},Ve={key:1},$e={key:0},Me=["colspan"],Te=["onClick"],Le={key:2},Fe={key:0},Re=["colspan"],De=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:T.MD},customRowClasses:{default:void 0},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),o=e.ref(null),s=t,r=e.ref($(s.customRowClasses,{hover:s.onRowClick})),l=e.ref($("table",Z.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),d=(v,C)=>{s.onRowClick&&s.onRowClick(v,C)};e.onMounted(()=>{n.value=s.dataSource,a.value=s.dataSource}),e.watch(()=>s.dataSource,v=>{n.value=v,a.value=v},{immediate:!0}),e.watch(()=>s.searchValue,v=>{if(s.searchFunction){a.value=s.searchFunction(v??"");return}a.value=v?_(v):n.value},{immediate:!0});const _=v=>{const C=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(k=>{const c=n.value.map(y=>V(y,k)),m=xe(c)(v);for(const y of m){const i=n.value.filter(h=>V(h,k)===y.item);C.push(...i)}}),C):[]};return(v,C)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(l.value)},[v.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",ze,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,g=>(e.openBlock(),e.createElementBlock("th",{key:g.title},e.toDisplayString(g.title),1))),128))])])),v.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ve,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",$e,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,Me)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(g,k)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(r.value),key:JSON.stringify(g),onClick:c=>d(g,k)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,c=>(e.openBlock(),e.createBlock(K,{key:c.data,column:c,row:g,rowIndex:k},null,8,["column","row","rowIndex"]))),128))],10,Te))),128))])),v.horizontal?(e.openBlock(),e.createElementBlock("tbody",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,g=>(e.openBlock(),e.createElementBlock("tr",{key:g.title},[e.createElementVNode("th",null,e.toDisplayString(g.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(k,c)=>(e.openBlock(),e.createBlock(K,{key:c,column:g,row:k,rowIndex:c},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Fe,[e.createElementVNode("td",{colspan:s.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Re)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),We=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const o=t,s=e.ref(o.value),r=a,l=d=>{s.value=d,r("update:value",d)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>o.value,d=>{s.value=d}),n({updateValue:l}),(d,_)=>e.renderSlot(d.$slots,"default",{updateValue:l})}}),Oe=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),o=e.ref("");return e.watch(()=>a?.value.value,s=>{s&&n.value&&(o.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(o.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(s.$slots,"default")],2))}}),Pe={},Ue={class:"steps"};function Ae(t,n){return e.openBlock(),e.createElementBlock("ul",Ue,[e.renderSlot(t.$slots,"default")])}const qe=P(Pe,[["render",Ae]]),Ie={key:0},Xe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ke={key:0},je=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>o?.value.value),o=e.inject("stepper"),s=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===a.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),He={key:0,method:"dialog"},Ge=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:T.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),s=a,r=t,l=e.ref($("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),d=e.ref($("modal")),_=e.ref($("btn",G.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{o.value?.showModal()},closeModal:()=>{o.value?.close()}}),(g,k)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass([d.value,g.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:k[0]||(k[0]=c=>s("close",c))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[g.closeButton?(e.openBlock(),e.createElementBlock("form",He,[e.createElementVNode("button",{class:e.normalizeClass(_.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"default")],2),k[1]||(k[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),Je={class:"hidden w-full max-w-sm lg:flex"},Ze={class:"relative mx-3 w-full"},Ye={class:"relative w-full max-w-full"},Qe=["value"],et=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("label",Ze,[d[1]||(d[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Ye,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:d[0]||(d[0]=_=>s("update:modelValue",_.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Qe)])]),d[2]||(d[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),tt=["name","value"],nt=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:T.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),o=t,s=e.computed(()=>100/o.items.length),r=e.computed(()=>["tabs",o.placement==="top"?"tabs-top":"tabs-bottom",`${Y.toClassName(o.size)}`,{"tabs-box":o.box,"tabs-border":o.border,"tabs-lift":o.lift}]),l=e.ref(o.activeTab??0),d=_=>{l.value=_};return e.watch(()=>o.activeTab,_=>{l.value=_}),n({activeIndex:l,setActiveTab:d}),(_,v)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(C,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:g},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(o.fullWidth?{width:s.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:g,"onUpdate:modelValue":v[0]||(v[0]=k=>l.value=k)},null,8,tt),[[e.vModelRadio,l.value]]),e.createTextVNode(" "+e.toDisplayString(C.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",C.disabled?"tab-disabled":""])},[e.renderSlot(_.$slots,C.slot)],2)],64))),128))],2))}}),rt=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];exports.BackgroundColorUtils=j;exports.Button=ie;exports.ButtonColorUtils=H;exports.ButtonSizeUtils=G;exports.Card=me;exports.CardBody=ge;exports.CardTitle=ye;exports.Color=L;exports.Container=ke;exports.Modal=Ge;exports.RoundedSizeUtils=J;exports.SearchBar=et;exports.SimpleButton=fe;exports.Size=T;exports.Step=Oe;exports.StepList=qe;exports.StepPanel=je;exports.StepPanels=Xe;exports.Stepper=We;exports.Table=De;exports.TableSizeUtils=Z;exports.Tabs=nt;exports.TabsSizeUtils=Y;exports.TextColorUtils=oe;exports.dendelionSafeList=rt;exports.getValue=V;
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, computed as I, createElementBlock as i, openBlock as u, normalizeClass as N, createElementVNode as h, renderSlot as T, ref as $, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, createCommentVNode as R, Fragment as E, unref as K, isVNode as ye, normalizeProps as _e, guardReactiveProps as xe, defineAsyncComponent as se, watch as U, renderList as O, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as $e, vModelRadio as Ce } from "vue";
1
+ import { defineComponent as M, computed as I, createElementBlock as i, openBlock as c, normalizeClass as N, createElementVNode as v, renderSlot as T, ref as C, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, createCommentVNode as E, Fragment as R, unref as K, isVNode as ye, normalizeProps as _e, guardReactiveProps as xe, defineAsyncComponent as se, watch as U, renderList as P, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as Ce, vModelRadio as $e } from "vue";
2
2
  var re = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(re || {});
3
3
  class Me {
4
4
  static toClassName(t) {
@@ -211,7 +211,7 @@ class Le {
211
211
  }
212
212
  }
213
213
  }
214
- class Ee {
214
+ class Re {
215
215
  static toClassName(t) {
216
216
  switch (t) {
217
217
  case 0:
@@ -239,7 +239,7 @@ var Z = { exports: {} };
239
239
  http://jedwatson.github.io/classnames
240
240
  */
241
241
  var oe;
242
- function Re() {
242
+ function Ee() {
243
243
  return oe || (oe = 1, function(e) {
244
244
  (function() {
245
245
  var t = {}.hasOwnProperty;
@@ -271,8 +271,8 @@ function Re() {
271
271
  })();
272
272
  }(Z)), Z.exports;
273
273
  }
274
- var Fe = Re();
275
- const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ C({
274
+ var Fe = Ee();
275
+ const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "group-[.is-loading]:text-transparent" }, gt = /* @__PURE__ */ M({
276
276
  __name: "Button",
277
277
  props: {
278
278
  type: { default: "button" },
@@ -285,7 +285,7 @@ const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
285
285
  },
286
286
  setup(e) {
287
287
  const t = e, r = I(
288
- () => A(
288
+ () => D(
289
289
  "btn",
290
290
  "group",
291
291
  ze.toClassName(t.color),
@@ -295,14 +295,14 @@ const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
295
295
  t.disabled ? "disabled" : ""
296
296
  )
297
297
  );
298
- return (a, s) => (u(), i("button", {
298
+ return (a, s) => (c(), i("button", {
299
299
  onClick: s[0] || (s[0] = (n) => a.click ? a.click : void 0),
300
300
  class: N(r.value),
301
301
  type: a.type,
302
302
  disabled: a.disabled || a.loading
303
303
  }, [
304
- s[1] || (s[1] = h("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
305
- h("span", Ve, [
304
+ s[1] || (s[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
305
+ v("span", Ve, [
306
306
  T(a.$slots, "default")
307
307
  ])
308
308
  ], 10, We));
@@ -314,9 +314,9 @@ const A = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
314
314
  return r;
315
315
  }, De = {};
316
316
  function Oe(e, t) {
317
- return u(), i("button");
317
+ return c(), i("button");
318
318
  }
319
- const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ C({
319
+ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ M({
320
320
  __name: "Card",
321
321
  props: {
322
322
  backgroundColor: { default: re.Primary },
@@ -326,8 +326,8 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ C({
326
326
  roundedSize: {}
327
327
  },
328
328
  setup(e) {
329
- const t = e, r = $(
330
- A(
329
+ const t = e, r = C(
330
+ D(
331
331
  "card",
332
332
  Me.toClassName(t.backgroundColor),
333
333
  t.shadow ? "shadow-lg" : "",
@@ -335,7 +335,7 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ C({
335
335
  t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Te.toClassName(t.roundedSize) : ""
336
336
  )
337
337
  );
338
- return (a, s) => (u(), i("div", {
338
+ return (a, s) => (c(), i("div", {
339
339
  class: N(r.value)
340
340
  }, [
341
341
  T(a.$slots, "default")
@@ -343,43 +343,43 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ C({
343
343
  }
344
344
  }), Pe = {}, Ae = { class: "card-body" };
345
345
  function qe(e, t) {
346
- return u(), i("div", Ae, [
346
+ return c(), i("div", Ae, [
347
347
  T(e.$slots, "default")
348
348
  ]);
349
349
  }
350
- const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ C({
350
+ const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
351
351
  __name: "CardTitle",
352
352
  props: {
353
353
  is: { default: "h1" },
354
354
  text: { default: "" }
355
355
  },
356
356
  setup(e) {
357
- return (t, r) => (u(), q(ee(t.is), { class: "card-title" }, {
357
+ return (t, r) => (c(), q(ee(t.is), { class: "card-title" }, {
358
358
  default: fe(() => [
359
359
  te(X(t.text), 1)
360
360
  ]),
361
361
  _: 1
362
362
  }));
363
363
  }
364
- }), St = /* @__PURE__ */ C({
364
+ }), St = /* @__PURE__ */ M({
365
365
  __name: "Container",
366
366
  props: {
367
367
  container: { type: Boolean, default: !0 },
368
368
  padding: { type: Boolean, default: !0 }
369
369
  },
370
370
  setup(e) {
371
- const t = e, r = $([
371
+ const t = e, r = C([
372
372
  t.container ? "container" : "",
373
373
  //To disable the max width in some cases
374
374
  t.padding ? "p-6" : ""
375
375
  ]);
376
- return (a, s) => (u(), i("div", {
376
+ return (a, s) => (c(), i("div", {
377
377
  class: N(r.value)
378
378
  }, [
379
379
  T(a.$slots, "default")
380
380
  ], 2));
381
381
  }
382
- }), P = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, a) => r && (typeof r == "object" ? r[a] : r), e));
382
+ }), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, a) => r && (typeof r == "object" ? r[a] : r), e));
383
383
  var Y = {}, Q = {}, ue;
384
384
  function be() {
385
385
  return ue || (ue = 1, function(e) {
@@ -393,126 +393,126 @@ function be() {
393
393
  var V = {}, ce;
394
394
  function le() {
395
395
  if (ce) return V;
396
- ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = p, V.createFuzzySearchImpl = x, V.experimentalSmartFuzzyMatch = M, V.fuzzyMatchImpl = S;
396
+ ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = g, V.fuzzyMatchImpl = _;
397
397
  var e = t(be());
398
- function t(l) {
399
- return l && l.__esModule ? l : { default: l };
398
+ function t(u) {
399
+ return u && u.__esModule ? u : { default: u };
400
400
  }
401
- var r = Number.MAX_SAFE_INTEGER, a = function(c, v) {
401
+ var r = Number.MAX_SAFE_INTEGER, a = function(l, m) {
402
402
  return (
403
403
  /*: number*/
404
- c.score - v.score
404
+ l.score - m.score
405
405
  );
406
- }, s = function(c, v) {
406
+ }, s = function(l, m) {
407
407
  return (
408
408
  /*: number*/
409
- c[0] - v[0]
409
+ l[0] - m[0]
410
410
  );
411
411
  }, n = new Set(`  []()-–—'"“”`.split(""));
412
- function o(l) {
413
- return n.has(l);
412
+ function o(u) {
413
+ return n.has(u);
414
414
  }
415
- function f(l, c, v, w, d, _, m) {
416
- if (l === w)
417
- return [0, [[0, l.length - 1]]];
418
- var b = w.length, g = c.length, k = d.length;
419
- if (c === d)
420
- return [0.1, [[0, g - 1]]];
421
- if (c.startsWith(d))
422
- return [0.5, [[0, k - 1]]];
423
- var z = l.indexOf(w);
424
- if (z > -1 && o(l[z - 1]))
425
- return [0.9, [[z, z + b - 1]]];
426
- var B = c.indexOf(d);
427
- if (B > -1 && o(c[B - 1]))
428
- return [1, [[B, B + b - 1]]];
429
- var L = _.length;
430
- if (L > 1 && _.every(function(W) {
431
- return v.has(W);
415
+ function f(u, l, m, x, d, y, b) {
416
+ if (u === x)
417
+ return [0, [[0, u.length - 1]]];
418
+ var p = x.length, h = l.length, S = d.length;
419
+ if (l === d)
420
+ return [0.1, [[0, h - 1]]];
421
+ if (l.startsWith(d))
422
+ return [0.5, [[0, S - 1]]];
423
+ var z = u.indexOf(x);
424
+ if (z > -1 && o(u[z - 1]))
425
+ return [0.9, [[z, z + p - 1]]];
426
+ var B = l.indexOf(d);
427
+ if (B > -1 && o(l[B - 1]))
428
+ return [1, [[B, B + p - 1]]];
429
+ var L = y.length;
430
+ if (L > 1 && y.every(function(W) {
431
+ return m.has(W);
432
432
  })) {
433
433
  var F = 1.5 + L * 0.2;
434
- return [F, _.map(function(W) {
435
- var D = c.indexOf(W);
436
- return [D, D + W.length - 1];
434
+ return [F, y.map(function(W) {
435
+ var O = l.indexOf(W);
436
+ return [O, O + W.length - 1];
437
437
  }).sort(s)];
438
438
  }
439
- return B > -1 ? [2, [[B, B + b - 1]]] : m === "aggressive" ? p(c, d) : m === "smart" ? M(c, d) : null;
439
+ return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? g(l, d) : null;
440
440
  }
441
- function p(l, c) {
442
- for (var v = l.length, w = c.length, d = 0, _ = c[d], m = [], b = -1, g = -2, k = 0; k < v; k += 1)
443
- if (l[k] === _) {
444
- if (k !== g + 1 && (b >= 0 && m.push([b, g]), b = k), g = k, d += 1, d === w)
445
- return m.push([b, g]), y(m, l);
446
- _ = c[d];
441
+ function k(u, l) {
442
+ for (var m = u.length, x = l.length, d = 0, y = l[d], b = [], p = -1, h = -2, S = 0; S < m; S += 1)
443
+ if (u[S] === y) {
444
+ if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, d += 1, d === x)
445
+ return b.push([p, h]), $(b, u);
446
+ y = l[d];
447
447
  }
448
448
  return null;
449
449
  }
450
- function M(l, c) {
451
- for (var v = l.length, w = [], d = 0, _ = c[d], m = -1, b = -2; ; ) {
452
- var g = l.indexOf(_, b + 1);
453
- if (g === -1)
450
+ function g(u, l) {
451
+ for (var m = u.length, x = [], d = 0, y = l[d], b = -1, p = -2; ; ) {
452
+ var h = u.indexOf(y, p + 1);
453
+ if (h === -1)
454
454
  break;
455
- if (g === 0 || o(l[g - 1]))
456
- m = g;
455
+ if (h === 0 || o(u[h - 1]))
456
+ b = h;
457
457
  else {
458
- var k = c.length - d, z = l.length - g, B = Math.min(3, k, z), L = c.slice(d, d + B);
459
- if (l.slice(g, g + B) === L)
460
- m = g;
458
+ var S = l.length - d, z = u.length - h, B = Math.min(3, S, z), L = l.slice(d, d + B);
459
+ if (u.slice(h, h + B) === L)
460
+ b = h;
461
461
  else {
462
- b += 1;
462
+ p += 1;
463
463
  continue;
464
464
  }
465
465
  }
466
- for (b = m; b < v && l[b] === _; b += 1)
467
- d += 1, _ = c[d];
468
- if (b -= 1, w.push([m, b]), d === c.length)
469
- return y(w, l);
466
+ for (p = b; p < m && u[p] === y; p += 1)
467
+ d += 1, y = l[d];
468
+ if (p -= 1, x.push([b, p]), d === l.length)
469
+ return $(x, u);
470
470
  }
471
471
  return null;
472
472
  }
473
- function y(l, c) {
474
- var v = 2;
475
- return l.forEach(function(w) {
476
- var d = w[0], _ = w[1], m = _ - d + 1, b = d === 0 || c[d] === " " || c[d - 1] === " ", g = _ === c.length - 1 || c[_] === " " || c[_ + 1] === " ", k = b && g;
477
- k ? v += 0.2 : b ? v += 0.4 : m >= 3 ? v += 0.8 : v += 1.6;
478
- }), [v, l];
473
+ function $(u, l) {
474
+ var m = 2;
475
+ return u.forEach(function(x) {
476
+ var d = x[0], y = x[1], b = y - d + 1, p = d === 0 || l[d] === " " || l[d - 1] === " ", h = y === l.length - 1 || l[y] === " " || l[y + 1] === " ", S = p && h;
477
+ S ? m += 0.2 : p ? m += 0.4 : b >= 3 ? m += 0.8 : m += 1.6;
478
+ }), [m, u];
479
479
  }
480
- function S(l, c) {
481
- var v = (0, e.default)(c), w = v.split(" "), d = (0, e.default)(l), _ = new Set(d.split(" ")), m = f(l, d, _, c, v, w, "smart");
482
- return m ? {
483
- item: l,
484
- score: m[0],
485
- matches: [m[1]]
480
+ function _(u, l) {
481
+ var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u), y = new Set(d.split(" ")), b = f(u, d, y, l, m, x, "smart");
482
+ return b ? {
483
+ item: u,
484
+ score: b[0],
485
+ matches: [b[1]]
486
486
  } : null;
487
487
  }
488
- function x(l, c) {
489
- var v = c.strategy, w = v === void 0 ? "aggressive" : v, d = c.getText, _ = l.map(function(m) {
490
- var b;
488
+ function w(u, l) {
489
+ var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, y = u.map(function(b) {
490
+ var p;
491
491
  if (d)
492
- b = d(m);
492
+ p = d(b);
493
493
  else {
494
- var g = c.key ? m[c.key] : m;
495
- b = [g];
494
+ var h = l.key ? b[l.key] : b;
495
+ p = [h];
496
496
  }
497
- var k = b.map(function(z) {
497
+ var S = p.map(function(z) {
498
498
  var B = z || "", L = (0, e.default)(B), F = new Set(L.split(" "));
499
499
  return [B, L, F];
500
500
  });
501
- return [m, k];
501
+ return [b, S];
502
502
  });
503
- return function(m) {
504
- var b = [], g = (0, e.default)(m), k = g.split(" ");
505
- return g.length ? (_.forEach(function(z) {
506
- for (var B = z[0], L = z[1], F = r, W = [], D = 0, ve = L.length; D < ve; D += 1) {
507
- var j = L[D], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, m, g, k, w);
503
+ return function(b) {
504
+ var p = [], h = (0, e.default)(b), S = h.split(" ");
505
+ return h.length ? (y.forEach(function(z) {
506
+ for (var B = z[0], L = z[1], F = r, W = [], O = 0, ve = L.length; O < ve; O += 1) {
507
+ var j = L[O], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, b, h, S, x);
508
508
  J ? (F = Math.min(F, J[0]), W.push(J[1])) : W.push(null);
509
509
  }
510
- F < r && b.push({
510
+ F < r && p.push({
511
511
  item: B,
512
512
  score: F,
513
513
  matches: W
514
514
  });
515
- }), b.sort(a), b) : [];
515
+ }), p.sort(a), p) : [];
516
516
  };
517
517
  }
518
518
  return V;
@@ -535,7 +535,7 @@ function Ie() {
535
535
  }(Y)), Y;
536
536
  }
537
537
  var Xe = Ie();
538
- const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */ C({
538
+ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["innerHTML"], je = { key: 1 }, Je = { key: 2 }, de = /* @__PURE__ */ M({
539
539
  __name: "TableColumn",
540
540
  props: {
541
541
  column: {},
@@ -543,28 +543,28 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
543
543
  rowIndex: {}
544
544
  },
545
545
  setup(e) {
546
- const t = e, r = I(() => t.column.render ? t.column.render(P(t.row, t.column.data), t.row) : P(t.row, t.column.data));
546
+ const t = e, r = I(() => t.column.render ? t.column.render(A(t.row, t.column.data), t.row) : A(t.row, t.column.data));
547
547
  H(() => {
548
548
  r.value && typeof r.value == "object" && "then" in r.value && console.warn("Async component detected in TableColumn, this may cause issues with rendering.");
549
549
  });
550
- const a = (n, o) => o.render === void 0 ? {} : o.render(P(n, o.data), n).props, s = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? se(() => n) : typeof n == "function" ? se(n) : n);
551
- return (n, o) => (u(), i("td", null, [
552
- n.column.render ? n.row ? (u(), i(E, { key: 1 }, [
553
- r.value ? (u(), i("div", Ke, [
554
- typeof r.value == "string" ? (u(), i("div", He, [
555
- h("div", { innerHTML: r.value }, null, 8, Ge)
556
- ])) : ye(r.value) ? (u(), i("div", je, [
557
- (u(), q(ee(r.value)))
558
- ])) : (u(), i("div", Je, [
559
- (u(), q(ee(s(r.value.component)), _e(xe(a(n.row, n.column))), null, 16))
550
+ const a = (n, o) => o.render === void 0 ? {} : o.render(A(n, o.data), n).props, s = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? se(() => n) : typeof n == "function" ? se(n) : n);
551
+ return (n, o) => (c(), i("td", null, [
552
+ n.column.render ? n.row ? (c(), i(R, { key: 1 }, [
553
+ r.value ? (c(), i("div", Ke, [
554
+ typeof r.value == "string" ? (c(), i("div", He, [
555
+ v("div", { innerHTML: r.value }, null, 8, Ge)
556
+ ])) : ye(r.value) ? (c(), i("div", je, [
557
+ (c(), q(ee(r.value)))
558
+ ])) : (c(), i("div", Je, [
559
+ (c(), q(ee(s(r.value.component)), _e(xe(a(n.row, n.column))), null, 16))
560
560
  ]))
561
- ])) : R("", !0)
562
- ], 64)) : R("", !0) : (u(), i(E, { key: 0 }, [
563
- te(X(K(P)(n.row, n.column.data)), 1)
561
+ ])) : E("", !0)
562
+ ], 64)) : E("", !0) : (c(), i(R, { key: 0 }, [
563
+ te(X(K(A)(n.row, n.column.data)), 1)
564
564
  ], 64))
565
565
  ]));
566
566
  }
567
- }), Ze = { key: 0 }, Ye = { key: 1 }, Qe = { key: 0 }, et = ["colspan"], tt = ["onClick"], nt = { key: 2 }, rt = { key: 0 }, at = ["colspan"], kt = /* @__PURE__ */ C({
567
+ }), Ze = { key: 0 }, Ye = { key: 1 }, Qe = { key: 0 }, et = ["colspan"], tt = ["onClick"], nt = { key: 2 }, rt = { key: 0 }, at = ["colspan"], kt = /* @__PURE__ */ M({
568
568
  __name: "Table",
569
569
  props: {
570
570
  zebra: { type: Boolean, default: !1 },
@@ -572,6 +572,7 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
572
572
  pinCols: { type: Boolean, default: !1 },
573
573
  horizontal: { type: Boolean, default: !1 },
574
574
  size: { default: G.MD },
575
+ customRowClasses: { default: void 0 },
575
576
  columns: {},
576
577
  dataSource: {},
577
578
  ajax: {},
@@ -580,103 +581,106 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
580
581
  onRowClick: {}
581
582
  },
582
583
  setup(e) {
583
- const t = $([]), r = $([]), a = $(null), s = e, n = $(
584
- A("table", Le.toClassName(s.size), {
584
+ const t = C([]), r = C([]), a = C(null), s = e, n = C(D(
585
+ s.customRowClasses,
586
+ { hover: s.onRowClick }
587
+ )), o = C(
588
+ D("table", Le.toClassName(s.size), {
585
589
  "table-zebra": s.zebra,
586
590
  "table-pin-rows": s.pinRows,
587
591
  "table-pin-cols ": s.pinCols
588
592
  })
589
- ), o = (p, M) => {
590
- s.onRowClick && s.onRowClick(p, M);
593
+ ), f = (g, $) => {
594
+ s.onRowClick && s.onRowClick(g, $);
591
595
  };
592
596
  H(() => {
593
597
  t.value = s.dataSource, r.value = s.dataSource;
594
598
  }), U(
595
599
  () => s.dataSource,
596
- (p) => {
597
- t.value = p, r.value = p;
600
+ (g) => {
601
+ t.value = g, r.value = g;
598
602
  },
599
603
  { immediate: !0 }
600
604
  ), U(
601
605
  () => s.searchValue,
602
- (p) => {
606
+ (g) => {
603
607
  if (s.searchFunction) {
604
- r.value = s.searchFunction(p ?? "");
608
+ r.value = s.searchFunction(g ?? "");
605
609
  return;
606
610
  }
607
- r.value = p ? f(p) : t.value;
611
+ r.value = g ? k(g) : t.value;
608
612
  },
609
613
  { immediate: !0 }
610
614
  );
611
- const f = (p) => {
612
- const M = [];
613
- return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((S) => {
614
- const x = t.value.map((v) => P(v, S)), c = Ue(x)(p);
615
- for (const v of c) {
616
- const w = t.value.filter((d) => P(d, S) === v.item);
617
- M.push(...w);
615
+ const k = (g) => {
616
+ const $ = [];
617
+ return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((w) => {
618
+ const u = t.value.map((x) => A(x, w)), m = Ue(u)(g);
619
+ for (const x of m) {
620
+ const d = t.value.filter((y) => A(y, w) === x.item);
621
+ $.push(...d);
618
622
  }
619
- }), M) : [];
623
+ }), $) : [];
620
624
  };
621
- return (p, M) => (u(), i("table", {
625
+ return (g, $) => (c(), i("table", {
622
626
  ref_key: "table",
623
627
  ref: a,
624
- class: N(n.value)
628
+ class: N(o.value)
625
629
  }, [
626
- p.horizontal ? R("", !0) : (u(), i("thead", Ze, [
627
- h("tr", null, [
628
- (u(!0), i(E, null, O(s.columns, (y) => (u(), i("th", {
629
- key: y.title
630
- }, X(y.title), 1))), 128))
630
+ g.horizontal ? E("", !0) : (c(), i("thead", Ze, [
631
+ v("tr", null, [
632
+ (c(!0), i(R, null, P(s.columns, (_) => (c(), i("th", {
633
+ key: _.title
634
+ }, X(_.title), 1))), 128))
631
635
  ])
632
636
  ])),
633
- p.horizontal ? R("", !0) : (u(), i("tbody", Ye, [
634
- r.value.length === 0 ? (u(), i("tr", Qe, [
635
- h("td", {
637
+ g.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
638
+ r.value.length === 0 ? (c(), i("tr", Qe, [
639
+ v("td", {
636
640
  colspan: s.columns.length
637
641
  }, "No data found", 8, et)
638
- ])) : (u(!0), i(E, { key: 1 }, O(r.value, (y, S) => (u(), i("tr", {
639
- class: N(s.onRowClick ? "hover" : ""),
640
- key: JSON.stringify(y),
641
- onClick: (x) => o(y, S)
642
+ ])) : (c(!0), i(R, { key: 1 }, P(r.value, (_, w) => (c(), i("tr", {
643
+ class: N(n.value),
644
+ key: JSON.stringify(_),
645
+ onClick: (u) => f(_, w)
642
646
  }, [
643
- (u(!0), i(E, null, O(s.columns, (x) => (u(), q(de, {
644
- key: x.data,
645
- column: x,
646
- row: y,
647
- rowIndex: S
647
+ (c(!0), i(R, null, P(s.columns, (u) => (c(), q(de, {
648
+ key: u.data,
649
+ column: u,
650
+ row: _,
651
+ rowIndex: w
648
652
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
649
653
  ], 10, tt))), 128))
650
654
  ])),
651
- p.horizontal ? (u(), i("tbody", nt, [
652
- (u(!0), i(E, null, O(s.columns, (y) => (u(), i("tr", {
653
- key: y.title
655
+ g.horizontal ? (c(), i("tbody", nt, [
656
+ (c(!0), i(R, null, P(s.columns, (_) => (c(), i("tr", {
657
+ key: _.title
654
658
  }, [
655
- h("th", null, X(y.title), 1),
656
- (u(!0), i(E, null, O(r.value, (S, x) => (u(), q(de, {
657
- key: x,
658
- column: y,
659
- row: S,
660
- rowIndex: x
659
+ v("th", null, X(_.title), 1),
660
+ (c(!0), i(R, null, P(r.value, (w, u) => (c(), q(de, {
661
+ key: u,
662
+ column: _,
663
+ row: w,
664
+ rowIndex: u
661
665
  }, null, 8, ["column", "row", "rowIndex"]))), 128))
662
666
  ]))), 128)),
663
- r.value.length === 0 ? (u(), i("tr", rt, [
664
- h("td", {
667
+ r.value.length === 0 ? (c(), i("tr", rt, [
668
+ v("td", {
665
669
  colspan: s.columns.length + 1,
666
670
  style: { "text-align": "center", padding: "1rem" }
667
671
  }, " No data found ", 8, at)
668
- ])) : R("", !0)
669
- ])) : R("", !0)
672
+ ])) : E("", !0)
673
+ ])) : E("", !0)
670
674
  ], 2));
671
675
  }
672
- }), Bt = /* @__PURE__ */ C({
676
+ }), Bt = /* @__PURE__ */ M({
673
677
  __name: "Stepper",
674
678
  props: {
675
679
  value: {}
676
680
  },
677
681
  emits: ["update:value"],
678
682
  setup(e, { expose: t, emit: r }) {
679
- const a = e, s = $(a.value), n = r, o = (f) => {
683
+ const a = e, s = C(a.value), n = r, o = (f) => {
680
684
  s.value = f, n("update:value", f);
681
685
  };
682
686
  return we("stepper", {
@@ -689,15 +693,15 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
689
693
  }
690
694
  ), t({
691
695
  updateValue: o
692
- }), (f, p) => T(f.$slots, "default", { updateValue: o });
696
+ }), (f, k) => T(f.$slots, "default", { updateValue: o });
693
697
  }
694
- }), $t = /* @__PURE__ */ C({
698
+ }), Ct = /* @__PURE__ */ M({
695
699
  __name: "Step",
696
700
  props: {
697
701
  value: {}
698
702
  },
699
703
  setup(e) {
700
- const t = e, r = ne("stepper"), a = $("");
704
+ const t = e, r = ne("stepper"), a = C("");
701
705
  return U(
702
706
  () => r?.value.value,
703
707
  (s) => {
@@ -705,7 +709,7 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
705
709
  }
706
710
  ), H(() => {
707
711
  r && (a.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (a.value = "step-primary"));
708
- }), (s, n) => (u(), i("li", {
712
+ }), (s, n) => (c(), i("li", {
709
713
  class: N(["step", a.value])
710
714
  }, [
711
715
  T(s.$slots, "default")
@@ -713,29 +717,29 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
713
717
  }
714
718
  }), st = {}, ot = { class: "steps" };
715
719
  function ut(e, t) {
716
- return u(), i("ul", ot, [
720
+ return c(), i("ul", ot, [
717
721
  T(e.$slots, "default")
718
722
  ]);
719
723
  }
720
- const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @__PURE__ */ C({
724
+ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @__PURE__ */ M({
721
725
  __name: "StepPanels",
722
726
  setup(e) {
723
727
  const t = ne("stepper");
724
- return (r, a) => (u(), q(Se, {
728
+ return (r, a) => (c(), q(Se, {
725
729
  name: "fade",
726
730
  mode: "out-in"
727
731
  }, {
728
732
  default: fe(() => [
729
- K(t)?.value ? (u(), i("div", ct, [
733
+ K(t)?.value ? (c(), i("div", ct, [
730
734
  T(r.$slots, "default", {
731
735
  currentStep: K(t)?.value
732
736
  })
733
- ])) : R("", !0)
737
+ ])) : E("", !0)
734
738
  ]),
735
739
  _: 3
736
740
  }));
737
741
  }
738
- }), lt = { key: 0 }, zt = /* @__PURE__ */ C({
742
+ }), lt = { key: 0 }, zt = /* @__PURE__ */ M({
739
743
  __name: "StepPanel",
740
744
  props: {
741
745
  value: {}
@@ -746,14 +750,14 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
746
750
  };
747
751
  return t({
748
752
  activateCallback: s
749
- }), (n, o) => n.value === r.value ? (u(), i("div", lt, [
753
+ }), (n, o) => n.value === r.value ? (c(), i("div", lt, [
750
754
  T(n.$slots, "default", { activateCallback: s })
751
- ])) : R("", !0);
755
+ ])) : E("", !0);
752
756
  }
753
757
  }), it = {
754
758
  key: 0,
755
759
  method: "dialog"
756
- }, Nt = /* @__PURE__ */ C({
760
+ }, Nt = /* @__PURE__ */ M({
757
761
  __name: "Modal",
758
762
  props: {
759
763
  closeButton: { type: Boolean, default: !0 },
@@ -763,12 +767,12 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
763
767
  },
764
768
  emits: ["close"],
765
769
  setup(e, { expose: t, emit: r }) {
766
- const a = $(null), s = r, n = e, o = $(A("modal-box", n.extraBoxClasses, {
770
+ const a = C(null), s = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
767
771
  "overflow-visible": n.overflow
768
- })), f = $(
769
- A("modal")
770
- ), p = $(
771
- A(
772
+ })), f = C(
773
+ D("modal")
774
+ ), k = C(
775
+ D(
772
776
  "btn",
773
777
  Ne.toClassName(n.closeButtonSize),
774
778
  "btn-circle",
@@ -785,48 +789,48 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
785
789
  closeModal: () => {
786
790
  a.value?.close();
787
791
  }
788
- }), (S, x) => (u(), i("dialog", {
792
+ }), (_, w) => (c(), i("dialog", {
789
793
  ref_key: "modal",
790
794
  ref: a,
791
- class: N([f.value, S.$attrs.class]),
795
+ class: N([f.value, _.$attrs.class]),
792
796
  "aria-modal": "true",
793
797
  "aria-hidden": "true",
794
798
  role: "dialog",
795
- onClose: x[0] || (x[0] = (l) => s("close", l))
799
+ onClose: w[0] || (w[0] = (u) => s("close", u))
796
800
  }, [
797
- h("div", {
801
+ v("div", {
798
802
  class: N(o.value)
799
803
  }, [
800
- S.closeButton ? (u(), i("form", it, [
801
- h("button", {
802
- class: N(p.value)
804
+ _.closeButton ? (c(), i("form", it, [
805
+ v("button", {
806
+ class: N(k.value)
803
807
  }, "✕", 2)
804
- ])) : R("", !0),
805
- T(S.$slots, "default")
808
+ ])) : E("", !0),
809
+ T(_.$slots, "default")
806
810
  ], 2),
807
- x[1] || (x[1] = h("form", {
811
+ w[1] || (w[1] = v("form", {
808
812
  method: "dialog",
809
813
  class: "modal-backdrop"
810
814
  }, [
811
- h("button", null, "close")
815
+ v("button", null, "close")
812
816
  ], -1))
813
817
  ], 34));
814
818
  }
815
- }), dt = { class: "hidden w-full max-w-sm lg:flex" }, ft = { class: "relative mx-3 w-full" }, pt = { class: "relative w-full max-w-full" }, bt = ["value"], Tt = /* @__PURE__ */ C({
819
+ }), dt = { class: "hidden w-full max-w-sm lg:flex" }, ft = { class: "relative mx-3 w-full" }, pt = { class: "relative w-full max-w-full" }, bt = ["value"], Tt = /* @__PURE__ */ M({
816
820
  __name: "SearchBar",
817
821
  props: ["modelValue"],
818
822
  emits: ["update:modelValue"],
819
823
  setup(e, { emit: t }) {
820
- const r = e, a = $(null), s = t, n = (o) => {
824
+ const r = e, a = C(null), s = t, n = (o) => {
821
825
  (o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), a.value && a.value.focus());
822
826
  };
823
827
  return H(() => {
824
828
  document.addEventListener("keydown", n);
825
829
  }), ke(() => {
826
830
  document.removeEventListener("keydown", n);
827
- }), (o, f) => (u(), i("div", dt, [
828
- h("label", ft, [
829
- f[1] || (f[1] = h("svg", {
831
+ }), (o, f) => (c(), i("div", dt, [
832
+ v("label", ft, [
833
+ f[1] || (f[1] = v("svg", {
830
834
  class: "pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60",
831
835
  "aria-hidden": "true",
832
836
  width: "16",
@@ -834,33 +838,33 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
834
838
  viewBox: "0.48 0.48 23.04 23.04",
835
839
  fill: "currentColor"
836
840
  }, [
837
- h("path", {
841
+ v("path", {
838
842
  fill: "none",
839
843
  d: "M0 0h24v24H0z"
840
844
  }),
841
- h("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })
845
+ v("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })
842
846
  ], -1)),
843
- h("div", pt, [
844
- h("form", null, [
845
- h("input", {
847
+ v("div", pt, [
848
+ v("form", null, [
849
+ v("input", {
846
850
  ref_key: "searchInput",
847
851
  ref: a,
848
852
  type: "search",
849
853
  placeholder: "Zoeken...",
850
854
  value: r.modelValue,
851
- onInput: f[0] || (f[0] = (p) => s("update:modelValue", p.target.value)),
855
+ onInput: f[0] || (f[0] = (k) => s("update:modelValue", k.target.value)),
852
856
  class: "color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"
853
857
  }, null, 40, bt)
854
858
  ])
855
859
  ]),
856
- f[2] || (f[2] = h("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
857
- h("kbd", { class: "kbd kbd-sm" }, "ctrl"),
858
- h("kbd", { class: "kbd kbd-sm" }, "K")
860
+ f[2] || (f[2] = v("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
861
+ v("kbd", { class: "kbd kbd-sm" }, "ctrl"),
862
+ v("kbd", { class: "kbd kbd-sm" }, "K")
859
863
  ], -1))
860
864
  ])
861
865
  ]));
862
866
  }
863
- }), vt = ["name", "value"], Lt = /* @__PURE__ */ C({
867
+ }), vt = ["name", "value"], Lt = /* @__PURE__ */ M({
864
868
  __name: "Tabs",
865
869
  props: {
866
870
  box: { type: Boolean, default: !1 },
@@ -876,48 +880,48 @@ const Ct = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
876
880
  const r = Math.random().toString(36).substring(2, 15), a = e, s = I(() => 100 / a.items.length), n = I(() => [
877
881
  "tabs",
878
882
  a.placement === "top" ? "tabs-top" : "tabs-bottom",
879
- `${Ee.toClassName(a.size)}`,
883
+ `${Re.toClassName(a.size)}`,
880
884
  {
881
885
  "tabs-box": a.box,
882
886
  "tabs-border": a.border,
883
887
  "tabs-lift": a.lift
884
888
  }
885
- ]), o = $(a.activeTab ?? 0), f = (p) => {
886
- o.value = p;
889
+ ]), o = C(a.activeTab ?? 0), f = (k) => {
890
+ o.value = k;
887
891
  };
888
- return U(() => a.activeTab, (p) => {
889
- o.value = p;
892
+ return U(() => a.activeTab, (k) => {
893
+ o.value = k;
890
894
  }), t({
891
895
  activeIndex: o,
892
896
  setActiveTab: f
893
- }), (p, M) => (u(), i("div", {
897
+ }), (k, g) => (c(), i("div", {
894
898
  role: "tablist",
895
899
  class: N(n.value)
896
900
  }, [
897
- (u(!0), i(E, null, O(a.items, (y, S) => (u(), i(E, { key: S }, [
898
- h("label", {
901
+ (c(!0), i(R, null, P(a.items, ($, _) => (c(), i(R, { key: _ }, [
902
+ v("label", {
899
903
  class: "tab",
900
904
  style: Be(a.fullWidth ? { width: s.value + "%" } : {})
901
905
  }, [
902
- $e(h("input", {
906
+ Ce(v("input", {
903
907
  type: "radio",
904
908
  name: K(r),
905
- value: S,
906
- "onUpdate:modelValue": M[0] || (M[0] = (x) => o.value = x)
909
+ value: _,
910
+ "onUpdate:modelValue": g[0] || (g[0] = (w) => o.value = w)
907
911
  }, null, 8, vt), [
908
- [Ce, o.value]
912
+ [$e, o.value]
909
913
  ]),
910
- te(" " + X(y.label), 1)
914
+ te(" " + X($.label), 1)
911
915
  ], 4),
912
- h("div", {
913
- class: N(["tab-content p-6", y.disabled ? "tab-disabled" : ""])
916
+ v("div", {
917
+ class: N(["tab-content p-6", $.disabled ? "tab-disabled" : ""])
914
918
  }, [
915
- T(p.$slots, y.slot)
919
+ T(k.$slots, $.slot)
916
920
  ], 2)
917
921
  ], 64))), 128))
918
922
  ], 2));
919
923
  }
920
- }), Et = [
924
+ }), Rt = [
921
925
  "bg-primary",
922
926
  "bg-primary-content",
923
927
  "bg-secondary",
@@ -1017,16 +1021,16 @@ export {
1017
1021
  Tt as SearchBar,
1018
1022
  yt as SimpleButton,
1019
1023
  G as Size,
1020
- $t as Step,
1021
- Ct as StepList,
1024
+ Ct as Step,
1025
+ $t as StepList,
1022
1026
  zt as StepPanel,
1023
1027
  Mt as StepPanels,
1024
1028
  Bt as Stepper,
1025
1029
  kt as Table,
1026
1030
  Le as TableSizeUtils,
1027
1031
  Lt as Tabs,
1028
- Ee as TabsSizeUtils,
1032
+ Re as TabsSizeUtils,
1029
1033
  ht as TextColorUtils,
1030
- Et as dendelionSafeList,
1031
- P as getValue
1034
+ Rt as dendelionSafeList,
1035
+ A as getValue
1032
1036
  };
@@ -2,4 +2,4 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var J;function re(){return J||(J=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(r=s(r,o(f)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var f in r)n.call(r,f)&&r[f]&&(l=s(l,f));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var ae=re();const M=G(ae),oe=["type","disabled"],se={class:"group-[.is-loading]:text-transparent"},le=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:R.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>M("btn","group",I.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(o,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(a.value),type:o.type,disabled:o.disabled||o.loading},[s[1]||(s[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",se,[e.renderSlot(o.$slots,"default")])],10,oe))}}),W=(t,n)=>{const a=t.__vccOpts||t;for(const[o,s]of n)a[o]=s;return a},ce={};function ie(t,n){return e.openBlock(),e.createElementBlock("button")}const de=W(ce,[["render",ie]]),ue=e.defineComponent({__name:"Card",props:{backgroundColor:{default:R.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref(M("card",q.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),fe={},pe={class:"card-body"};function me(t,n){return e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(t.$slots,"default")])}const be=W(fe,[["render",me]]),he=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),ge=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),$=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,o)=>a&&(typeof a=="object"?a[o]:a),t));var O={},P={},Z;function Y(){return Z||(Z=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,a=/ł/g,o=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(o,"n").trim()}}(P)),P}var T={},Q;function v(){if(Q)return T;Q=1,T.__esModule=!0,T.aggressiveFuzzyMatch=p,T.createFuzzySearchImpl=B,T.experimentalSmartFuzzyMatch=x,T.fuzzyMatchImpl=S;var t=n(Y());function n(i){return i&&i.__esModule?i:{default:i}}var a=Number.MAX_SAFE_INTEGER,o=function(c,b){return c.score-b.score},s=function(c,b){return c[0]-b[0]},r=new Set(`  []()-–—'"“”`.split(""));function l(i){return r.has(i)}function f(i,c,b,_,u,k,h){if(i===_)return[0,[[0,i.length-1]]];var m=_.length,g=c.length,C=u.length;if(c===u)return[.1,[[0,g-1]]];if(c.startsWith(u))return[.5,[[0,C-1]]];var w=i.indexOf(_);if(w>-1&&l(i[w-1]))return[.9,[[w,w+m-1]]];var E=c.indexOf(u);if(E>-1&&l(c[E-1]))return[1,[[E,E+m-1]]];var N=k.length;if(N>1&&k.every(function(V){return b.has(V)})){var z=1.5+N*.2;return[z,k.map(function(V){var L=c.indexOf(V);return[L,L+V.length-1]}).sort(s)]}return E>-1?[2,[[E,E+m-1]]]:h==="aggressive"?p(c,u):h==="smart"?x(c,u):null}function p(i,c){for(var b=i.length,_=c.length,u=0,k=c[u],h=[],m=-1,g=-2,C=0;C<b;C+=1)if(i[C]===k){if(C!==g+1&&(m>=0&&h.push([m,g]),m=C),g=C,u+=1,u===_)return h.push([m,g]),y(h,i);k=c[u]}return null}function x(i,c){for(var b=i.length,_=[],u=0,k=c[u],h=-1,m=-2;;){var g=i.indexOf(k,m+1);if(g===-1)break;if(g===0||l(i[g-1]))h=g;else{var C=c.length-u,w=i.length-g,E=Math.min(3,C,w),N=c.slice(u,u+E);if(i.slice(g,g+E)===N)h=g;else{m+=1;continue}}for(m=h;m<b&&i[m]===k;m+=1)u+=1,k=c[u];if(m-=1,_.push([h,m]),u===c.length)return y(_,i)}return null}function y(i,c){var b=2;return i.forEach(function(_){var u=_[0],k=_[1],h=k-u+1,m=u===0||c[u]===" "||c[u-1]===" ",g=k===c.length-1||c[k]===" "||c[k+1]===" ",C=m&&g;C?b+=.2:m?b+=.4:h>=3?b+=.8:b+=1.6}),[b,i]}function S(i,c){var b=(0,t.default)(c),_=b.split(" "),u=(0,t.default)(i),k=new Set(u.split(" ")),h=f(i,u,k,c,b,_,"smart");return h?{item:i,score:h[0],matches:[h[1]]}:null}function B(i,c){var b=c.strategy,_=b===void 0?"aggressive":b,u=c.getText,k=i.map(function(h){var m;if(u)m=u(h);else{var g=c.key?h[c.key]:h;m=[g]}var C=m.map(function(w){var E=w||"",N=(0,t.default)(E),z=new Set(N.split(" "));return[E,N,z]});return[h,C]});return function(h){var m=[],g=(0,t.default)(h),C=g.split(" ");return g.length?(k.forEach(function(w){for(var E=w[0],N=w[1],z=a,V=[],L=0,tt=N.length;L<tt;L+=1){var U=N[L],nt=U[0],rt=U[1],at=U[2],A=f(nt,rt,at,h,g,C,_);A?(z=Math.min(z,A[0]),V.push(A[1])):V.push(null)}z<a&&m.push({item:E,score:z,matches:V})}),m.sort(o),m):[]}}return T}var ee;function ye(){return ee||(ee=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=s;var n=a(Y());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function o(r,l){return l===void 0&&(l={}),v().createFuzzySearchImpl(r,l)}function s(r,l){return v().fuzzyMatchImpl(r,l)}}(O)),O}var ke=ye();const Be=G(ke),_e={key:0},Se={key:0},Ce=["innerHTML"],Ee={key:1},xe={key:2},te=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render($(n.row,n.column.data),n.row):$(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const o=(r,l)=>l.render===void 0?{}:l.render($(r,l.data),r).props,s=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,l)=>(e.openBlock(),e.createElementBlock("td",null,[r.column.render?r.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",_e,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Se,[e.createElementVNode("div",{innerHTML:a.value},null,8,Ce)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",Ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",xe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(a.value.component)),e.normalizeProps(e.guardReactiveProps(o(r.row,r.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref($)(r.row,r.column.data)),1)],64))]))}}),we={key:0},Ne={key:1},ze={key:0},Ve=["colspan"],$e=["onClick"],Te={key:2},Me={key:0},Le=["colspan"],Fe=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:F.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),o=e.ref(null),s=t,r=e.ref(M("table",K.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),l=(p,x)=>{s.onRowClick&&s.onRowClick(p,x)};e.onMounted(()=>{n.value=s.dataSource,a.value=s.dataSource}),e.watch(()=>s.dataSource,p=>{n.value=p,a.value=p},{immediate:!0}),e.watch(()=>s.searchValue,p=>{if(s.searchFunction){a.value=s.searchFunction(p??"");return}a.value=p?f(p):n.value},{immediate:!0});const f=p=>{const x=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(S=>{const B=n.value.map(b=>$(b,S)),c=Be(B)(p);for(const b of c){const _=n.value.filter(u=>$(u,S)===b.item);x.push(..._)}}),x):[]};return(p,x)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(r.value)},[p.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",we,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,y=>(e.openBlock(),e.createElementBlock("th",{key:y.title},e.toDisplayString(y.title),1))),128))])])),p.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ne,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",ze,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,Ve)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(y,S)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(s.onRowClick?"hover":""),key:JSON.stringify(y),onClick:B=>l(y,S)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,B=>(e.openBlock(),e.createBlock(te,{key:B.data,column:B,row:y,rowIndex:S},null,8,["column","row","rowIndex"]))),128))],10,$e))),128))])),p.horizontal?(e.openBlock(),e.createElementBlock("tbody",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,y=>(e.openBlock(),e.createElementBlock("tr",{key:y.title},[e.createElementVNode("th",null,e.toDisplayString(y.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,B)=>(e.openBlock(),e.createBlock(te,{key:B,column:y,row:S,rowIndex:B},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Me,[e.createElementVNode("td",{colspan:s.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Le)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Re=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const o=t,s=e.ref(o.value),r=a,l=f=>{s.value=f,r("update:value",f)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>o.value,f=>{s.value=f}),n({updateValue:l}),(f,p)=>e.renderSlot(f.$slots,"default",{updateValue:l})}}),De=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),o=e.ref("");return e.watch(()=>a?.value.value,s=>{s&&n.value&&(o.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(o.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(s.$slots,"default")],2))}}),We={},Oe={class:"steps"};function Pe(t,n){return e.openBlock(),e.createElementBlock("ul",Oe,[e.renderSlot(t.$slots,"default")])}const Ue=W(We,[["render",Pe]]),Ae={key:0},qe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ie={key:0},Xe=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>o?.value.value),o=e.inject("stepper"),s=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===a.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),je={key:0,method:"dialog"},Ke=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:F.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),s=a,r=t,l=e.ref(M("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),f=e.ref(M("modal")),p=e.ref(M("btn",X.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{o.value?.showModal()},closeModal:()=>{o.value?.close()}}),(S,B)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass([f.value,S.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:B[0]||(B[0]=i=>s("close",i))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[S.closeButton?(e.openBlock(),e.createElementBlock("form",je,[e.createElementVNode("button",{class:e.normalizeClass(p.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(S.$slots,"default")],2),B[1]||(B[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),He={class:"hidden w-full max-w-sm lg:flex"},Ge={class:"relative mx-3 w-full"},Je={class:"relative w-full max-w-full"},Ze=["value"],Ye=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,f)=>(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("label",Ge,[f[1]||(f[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Je,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:f[0]||(f[0]=p=>s("update:modelValue",p.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Ze)])]),f[2]||(f[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Qe=["name","value"],ve=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:F.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),o=t,s=e.computed(()=>100/o.items.length),r=e.computed(()=>["tabs",o.placement==="top"?"tabs-top":"tabs-bottom",`${H.toClassName(o.size)}`,{"tabs-box":o.box,"tabs-border":o.border,"tabs-lift":o.lift}]),l=e.ref(o.activeTab??0),f=p=>{l.value=p};return e.watch(()=>o.activeTab,p=>{l.value=p}),n({activeIndex:l,setActiveTab:f}),(p,x)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(y,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(o.fullWidth?{width:s.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:S,"onUpdate:modelValue":x[0]||(x[0]=B=>l.value=B)},null,8,Qe),[[e.vModelRadio,l.value]]),e.createTextVNode(" "+e.toDisplayString(y.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",y.disabled?"tab-disabled":""])},[e.renderSlot(p.$slots,y.slot)],2)],64))),128))],2))}}),et=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];d.BackgroundColorUtils=q,d.Button=le,d.ButtonColorUtils=I,d.ButtonSizeUtils=X,d.Card=ue,d.CardBody=be,d.CardTitle=he,d.Color=R,d.Container=ge,d.Modal=Ke,d.RoundedSizeUtils=j,d.SearchBar=Ye,d.SimpleButton=de,d.Size=F,d.Step=De,d.StepList=Ue,d.StepPanel=Xe,d.StepPanels=qe,d.Stepper=Re,d.Table=Fe,d.TableSizeUtils=K,d.Tabs=ve,d.TabsSizeUtils=H,d.TextColorUtils=ne,d.dendelionSafeList=et,d.getValue=$,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
5
+ */var J;function re(){return J||(J=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(r=s(r,o(f)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var f in r)n.call(r,f)&&r[f]&&(l=s(l,f));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var ae=re();const $=G(ae),oe=["type","disabled"],se={class:"group-[.is-loading]:text-transparent"},le=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:R.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>$("btn","group",I.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(o,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(a.value),type:o.type,disabled:o.disabled||o.loading},[s[1]||(s[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",se,[e.renderSlot(o.$slots,"default")])],10,oe))}}),W=(t,n)=>{const a=t.__vccOpts||t;for(const[o,s]of n)a[o]=s;return a},ce={};function ie(t,n){return e.openBlock(),e.createElementBlock("button")}const de=W(ce,[["render",ie]]),ue=e.defineComponent({__name:"Card",props:{backgroundColor:{default:R.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref($("card",q.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),fe={},pe={class:"card-body"};function me(t,n){return e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(t.$slots,"default")])}const be=W(fe,[["render",me]]),he=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),ge=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),T=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,o)=>a&&(typeof a=="object"?a[o]:a),t));var O={},P={},Z;function Y(){return Z||(Z=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,a=/ł/g,o=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(o,"n").trim()}}(P)),P}var M={},Q;function v(){if(Q)return M;Q=1,M.__esModule=!0,M.aggressiveFuzzyMatch=S,M.createFuzzySearchImpl=_,M.experimentalSmartFuzzyMatch=g,M.fuzzyMatchImpl=k;var t=n(Y());function n(c){return c&&c.__esModule?c:{default:c}}var a=Number.MAX_SAFE_INTEGER,o=function(i,b){return i.score-b.score},s=function(i,b){return i[0]-b[0]},r=new Set(`  []()-–—'"“”`.split(""));function l(c){return r.has(c)}function f(c,i,b,B,u,y,m){if(c===B)return[0,[[0,c.length-1]]];var p=B.length,h=i.length,C=u.length;if(i===u)return[.1,[[0,h-1]]];if(i.startsWith(u))return[.5,[[0,C-1]]];var x=c.indexOf(B);if(x>-1&&l(c[x-1]))return[.9,[[x,x+p-1]]];var E=i.indexOf(u);if(E>-1&&l(i[E-1]))return[1,[[E,E+p-1]]];var N=y.length;if(N>1&&y.every(function(V){return b.has(V)})){var z=1.5+N*.2;return[z,y.map(function(V){var L=i.indexOf(V);return[L,L+V.length-1]}).sort(s)]}return E>-1?[2,[[E,E+p-1]]]:m==="aggressive"?S(i,u):m==="smart"?g(i,u):null}function S(c,i){for(var b=c.length,B=i.length,u=0,y=i[u],m=[],p=-1,h=-2,C=0;C<b;C+=1)if(c[C]===y){if(C!==h+1&&(p>=0&&m.push([p,h]),p=C),h=C,u+=1,u===B)return m.push([p,h]),w(m,c);y=i[u]}return null}function g(c,i){for(var b=c.length,B=[],u=0,y=i[u],m=-1,p=-2;;){var h=c.indexOf(y,p+1);if(h===-1)break;if(h===0||l(c[h-1]))m=h;else{var C=i.length-u,x=c.length-h,E=Math.min(3,C,x),N=i.slice(u,u+E);if(c.slice(h,h+E)===N)m=h;else{p+=1;continue}}for(p=m;p<b&&c[p]===y;p+=1)u+=1,y=i[u];if(p-=1,B.push([m,p]),u===i.length)return w(B,c)}return null}function w(c,i){var b=2;return c.forEach(function(B){var u=B[0],y=B[1],m=y-u+1,p=u===0||i[u]===" "||i[u-1]===" ",h=y===i.length-1||i[y]===" "||i[y+1]===" ",C=p&&h;C?b+=.2:p?b+=.4:m>=3?b+=.8:b+=1.6}),[b,c]}function k(c,i){var b=(0,t.default)(i),B=b.split(" "),u=(0,t.default)(c),y=new Set(u.split(" ")),m=f(c,u,y,i,b,B,"smart");return m?{item:c,score:m[0],matches:[m[1]]}:null}function _(c,i){var b=i.strategy,B=b===void 0?"aggressive":b,u=i.getText,y=c.map(function(m){var p;if(u)p=u(m);else{var h=i.key?m[i.key]:m;p=[h]}var C=p.map(function(x){var E=x||"",N=(0,t.default)(E),z=new Set(N.split(" "));return[E,N,z]});return[m,C]});return function(m){var p=[],h=(0,t.default)(m),C=h.split(" ");return h.length?(y.forEach(function(x){for(var E=x[0],N=x[1],z=a,V=[],L=0,tt=N.length;L<tt;L+=1){var U=N[L],nt=U[0],rt=U[1],at=U[2],A=f(nt,rt,at,m,h,C,B);A?(z=Math.min(z,A[0]),V.push(A[1])):V.push(null)}z<a&&p.push({item:E,score:z,matches:V})}),p.sort(o),p):[]}}return M}var ee;function ye(){return ee||(ee=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=s;var n=a(Y());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function o(r,l){return l===void 0&&(l={}),v().createFuzzySearchImpl(r,l)}function s(r,l){return v().fuzzyMatchImpl(r,l)}}(O)),O}var ke=ye();const Be=G(ke),_e={key:0},Ce={key:0},Se=["innerHTML"],Ee={key:1},we={key:2},te=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(T(n.row,n.column.data),n.row):T(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const o=(r,l)=>l.render===void 0?{}:l.render(T(r,l.data),r).props,s=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,l)=>(e.openBlock(),e.createElementBlock("td",null,[r.column.render?r.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",_e,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",{innerHTML:a.value},null,8,Se)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",Ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(a.value.component)),e.normalizeProps(e.guardReactiveProps(o(r.row,r.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(T)(r.row,r.column.data)),1)],64))]))}}),xe={key:0},Ne={key:1},ze={key:0},Ve=["colspan"],$e=["onClick"],Te={key:2},Me={key:0},Le=["colspan"],Fe=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:F.MD},customRowClasses:{default:void 0},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),o=e.ref(null),s=t,r=e.ref($(s.customRowClasses,{hover:s.onRowClick})),l=e.ref($("table",K.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),f=(g,w)=>{s.onRowClick&&s.onRowClick(g,w)};e.onMounted(()=>{n.value=s.dataSource,a.value=s.dataSource}),e.watch(()=>s.dataSource,g=>{n.value=g,a.value=g},{immediate:!0}),e.watch(()=>s.searchValue,g=>{if(s.searchFunction){a.value=s.searchFunction(g??"");return}a.value=g?S(g):n.value},{immediate:!0});const S=g=>{const w=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(_=>{const c=n.value.map(B=>T(B,_)),b=Be(c)(g);for(const B of b){const u=n.value.filter(y=>T(y,_)===B.item);w.push(...u)}}),w):[]};return(g,w)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(l.value)},[g.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",xe,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,k=>(e.openBlock(),e.createElementBlock("th",{key:k.title},e.toDisplayString(k.title),1))),128))])])),g.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ne,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",ze,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,Ve)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(k,_)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(r.value),key:JSON.stringify(k),onClick:c=>f(k,_)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,c=>(e.openBlock(),e.createBlock(te,{key:c.data,column:c,row:k,rowIndex:_},null,8,["column","row","rowIndex"]))),128))],10,$e))),128))])),g.horizontal?(e.openBlock(),e.createElementBlock("tbody",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,k=>(e.openBlock(),e.createElementBlock("tr",{key:k.title},[e.createElementVNode("th",null,e.toDisplayString(k.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(_,c)=>(e.openBlock(),e.createBlock(te,{key:c,column:k,row:_,rowIndex:c},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Me,[e.createElementVNode("td",{colspan:s.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Le)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Re=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const o=t,s=e.ref(o.value),r=a,l=f=>{s.value=f,r("update:value",f)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>o.value,f=>{s.value=f}),n({updateValue:l}),(f,S)=>e.renderSlot(f.$slots,"default",{updateValue:l})}}),De=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),o=e.ref("");return e.watch(()=>a?.value.value,s=>{s&&n.value&&(o.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(o.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(s.$slots,"default")],2))}}),We={},Oe={class:"steps"};function Pe(t,n){return e.openBlock(),e.createElementBlock("ul",Oe,[e.renderSlot(t.$slots,"default")])}const Ue=W(We,[["render",Pe]]),Ae={key:0},qe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ie={key:0},Xe=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>o?.value.value),o=e.inject("stepper"),s=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===a.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),je={key:0,method:"dialog"},Ke=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:F.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),s=a,r=t,l=e.ref($("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),f=e.ref($("modal")),S=e.ref($("btn",X.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{o.value?.showModal()},closeModal:()=>{o.value?.close()}}),(k,_)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass([f.value,k.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:_[0]||(_[0]=c=>s("close",c))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[k.closeButton?(e.openBlock(),e.createElementBlock("form",je,[e.createElementVNode("button",{class:e.normalizeClass(S.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"default")],2),_[1]||(_[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),He={class:"hidden w-full max-w-sm lg:flex"},Ge={class:"relative mx-3 w-full"},Je={class:"relative w-full max-w-full"},Ze=["value"],Ye=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,f)=>(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("label",Ge,[f[1]||(f[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Je,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:f[0]||(f[0]=S=>s("update:modelValue",S.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Ze)])]),f[2]||(f[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Qe=["name","value"],ve=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:F.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),o=t,s=e.computed(()=>100/o.items.length),r=e.computed(()=>["tabs",o.placement==="top"?"tabs-top":"tabs-bottom",`${H.toClassName(o.size)}`,{"tabs-box":o.box,"tabs-border":o.border,"tabs-lift":o.lift}]),l=e.ref(o.activeTab??0),f=S=>{l.value=S};return e.watch(()=>o.activeTab,S=>{l.value=S}),n({activeIndex:l,setActiveTab:f}),(S,g)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(w,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:k},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(o.fullWidth?{width:s.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:k,"onUpdate:modelValue":g[0]||(g[0]=_=>l.value=_)},null,8,Qe),[[e.vModelRadio,l.value]]),e.createTextVNode(" "+e.toDisplayString(w.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",w.disabled?"tab-disabled":""])},[e.renderSlot(S.$slots,w.slot)],2)],64))),128))],2))}}),et=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];d.BackgroundColorUtils=q,d.Button=le,d.ButtonColorUtils=I,d.ButtonSizeUtils=X,d.Card=ue,d.CardBody=be,d.CardTitle=he,d.Color=R,d.Container=ge,d.Modal=Ke,d.RoundedSizeUtils=j,d.SearchBar=Ye,d.SimpleButton=de,d.Size=F,d.Step=De,d.StepList=Ue,d.StepPanel=Xe,d.StepPanels=qe,d.Stepper=Re,d.Table=Fe,d.TableSizeUtils=K,d.Tabs=ve,d.TabsSizeUtils=H,d.TextColorUtils=ne,d.dendelionSafeList=et,d.getValue=T,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
@@ -6,6 +6,7 @@ export type TableProps<T> = {
6
6
  pinCols?: boolean;
7
7
  horizontal?: boolean;
8
8
  size?: Size;
9
+ customRowClasses?: classNames.ArgumentArray;
9
10
  columns: Column<T>[];
10
11
  dataSource: T[];
11
12
  ajax?: (params: object) => Promise<object> | string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dendelion-ui",
3
3
  "private": false,
4
4
  "description": "Simpel component library using Tailwind css and DaisyUI",
5
- "version": "0.0.22",
5
+ "version": "0.0.23",
6
6
  "author": "ThatzOkay",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/ThatzOkay/DendelionUI#readme",