dendelion-ui 0.0.13 → 0.0.14

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 P;function re(){return P||(P=1,function(t){(function(){var n={}.hasOwnProperty;function o(){for(var r="",l=0;l<arguments.length;l++){var p=arguments[l];p&&(r=s(r,c(p)))}return r}function c(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return o.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var p in r)n.call(r,p)&&r[p]&&(l=s(l,p));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(o.default=o,t.exports=o):window.classNames=o})()}(R)),R.exports}var ae=re();const M=Z(ae),se=["type","disabled"],oe={class:"group-[.is-loading]:text-transparent"},ce=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:$.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,o=e.computed(()=>M("btn","group",K.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(c,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>c.click?c.click:void 0),class:e.normalizeClass(o.value),type:c.type,disabled:c.disabled||c.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",oe,[e.renderSlot(c.$slots,"default")])],10,se))}}),O=(t,n)=>{const o=t.__vccOpts||t;for(const[c,s]of n)o[c]=s;return o},le={};function ue(t,n){return e.openBlock(),e.createElementBlock("button")}const ie=O(le,[["render",ue]]),de=e.defineComponent({__name:"Card",props:{backgroundColor:{default:$.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,o=e.ref(M("card",I.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$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=O(fe,[["render",me]]),ve=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,o)=>(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,o=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}});var D={},W={},q;function J(){return q||(q=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,o=/ł/g,c=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(o,"l").replace(c,"n").trim()}}(W)),W}var w={},A;function U(){if(A)return w;A=1,w.__esModule=!0,w.aggressiveFuzzyMatch=E,w.createFuzzySearchImpl=b,w.experimentalSmartFuzzyMatch=V,w.fuzzyMatchImpl=h;var t=n(J());function n(a){return a&&a.__esModule?a:{default:a}}var o=Number.MAX_SAFE_INTEGER,c=function(u,g){return u.score-g.score},s=function(u,g){return u[0]-g[0]},r=new Set(`  []()-–—'"“”`.split(""));function l(a){return r.has(a)}function p(a,u,g,_,i,y,m){if(a===_)return[0,[[0,a.length-1]]];var f=_.length,v=u.length,x=i.length;if(u===i)return[.1,[[0,v-1]]];if(u.startsWith(i))return[.5,[[0,x-1]]];var k=a.indexOf(_);if(k>-1&&l(a[k-1]))return[.9,[[k,k+f-1]]];var B=u.indexOf(i);if(B>-1&&l(u[B-1]))return[1,[[B,B+f-1]]];var S=y.length;if(S>1&&y.every(function(N){return g.has(N)})){var C=1.5+S*.2;return[C,y.map(function(N){var z=u.indexOf(N);return[z,z+N.length-1]}).sort(s)]}return B>-1?[2,[[B,B+f-1]]]:m==="aggressive"?E(u,i):m==="smart"?V(u,i):null}function E(a,u){for(var g=a.length,_=u.length,i=0,y=u[i],m=[],f=-1,v=-2,x=0;x<g;x+=1)if(a[x]===y){if(x!==v+1&&(f>=0&&m.push([f,v]),f=x),v=x,i+=1,i===_)return m.push([f,v]),d(m,a);y=u[i]}return null}function V(a,u){for(var g=a.length,_=[],i=0,y=u[i],m=-1,f=-2;;){var v=a.indexOf(y,f+1);if(v===-1)break;if(v===0||l(a[v-1]))m=v;else{var x=u.length-i,k=a.length-v,B=Math.min(3,x,k),S=u.slice(i,i+B);if(a.slice(v,v+B)===S)m=v;else{f+=1;continue}}for(f=m;f<g&&a[f]===y;f+=1)i+=1,y=u[i];if(f-=1,_.push([m,f]),i===u.length)return d(_,a)}return null}function d(a,u){var g=2;return a.forEach(function(_){var i=_[0],y=_[1],m=y-i+1,f=i===0||u[i]===" "||u[i-1]===" ",v=y===u.length-1||u[y]===" "||u[y+1]===" ",x=f&&v;x?g+=.2:f?g+=.4:m>=3?g+=.8:g+=1.6}),[g,a]}function h(a,u){var g=(0,t.default)(u),_=g.split(" "),i=(0,t.default)(a),y=new Set(i.split(" ")),m=p(a,i,y,u,g,_,"smart");return m?{item:a,score:m[0],matches:[m[1]]}:null}function b(a,u){var g=u.strategy,_=g===void 0?"aggressive":g,i=u.getText,y=a.map(function(m){var f;if(i)f=i(m);else{var v=u.key?m[u.key]:m;f=[v]}var x=f.map(function(k){var B=k||"",S=(0,t.default)(B),C=new Set(S.split(" "));return[B,S,C]});return[m,x]});return function(m){var f=[],v=(0,t.default)(m),x=v.split(" ");return v.length?(y.forEach(function(k){for(var B=k[0],S=k[1],C=o,N=[],z=0,Y=S.length;z<Y;z+=1){var L=S[z],Q=L[0],ee=L[1],te=L[2],F=p(Q,ee,te,m,v,x,_);F?(C=Math.min(C,F[0]),N.push(F[1])):N.push(null)}C<o&&f.push({item:B,score:C,matches:N})}),f.sort(c),f):[]}}return w}var X;function he(){return X||(X=1,function(t){t.__esModule=!0,t.default=c,t.fuzzyMatch=s;var n=o(J());t.normalizeText=n.default;function o(r){return r&&r.__esModule?r:{default:r}}function c(r,l){return l===void 0&&(l={}),U().createFuzzySearchImpl(r,l)}function s(r,l){return U().fuzzyMatchImpl(r,l)}}(D)),D}var ye=he();const _e=Z(ye),xe={key:0},Be=["colspan"],ke=["innerHTML"],Se=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:T.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{}},setup(t){const n=e.ref([]),o=e.ref([]),c=e.ref(null),s=t,r=e.ref(M("table",G.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),l=(d,h)=>String(!d||typeof d!="object"?d:h.split(".").reduce((b,a)=>b&&(typeof b=="object"?b[a]:b),d)),p=(d,h)=>h.render===void 0?{}:h.render(l(d,h.data),d).props,E=d=>d&&typeof d=="object"&&"then"in d?e.defineAsyncComponent(()=>d):typeof d=="function"?e.defineAsyncComponent(d):d;e.onMounted(()=>{n.value=s.dataSource,o.value=s.dataSource}),e.watch(()=>s.dataSource,d=>{n.value=d,o.value=d},{immediate:!0}),e.watch(()=>s.searchValue,d=>{if(s.searchFunction){o.value=s.searchFunction(d??"");return}o.value=d?V(d):n.value},{immediate:!0});const V=d=>{const h=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(a=>{const u=n.value.map(i=>l(i,a)),_=_e(u)(d);for(const i of _){const y=n.value.filter(m=>l(m,a)===i.item);h.push(...y)}}),h):[]};return(d,h)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:c,class:e.normalizeClass(r.value)},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,b=>(e.openBlock(),e.createElementBlock("th",{key:b.title},e.toDisplayString(b.title),1))),128))])]),e.createElementVNode("tbody",null,[o.value.length===0?(e.openBlock(),e.createElementBlock("tr",xe,[e.createElementVNode("td",{colspan:s.columns.length}," No data found ",8,Be)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.value,b=>(e.openBlock(),e.createElementBlock("tr",{key:String(b)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,a=>(e.openBlock(),e.createElementBlock("td",{key:a.title},[a.render?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l(b,a.data)),1)],64)),typeof a.render=="function"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[typeof a.render(l(b,a.data),b)=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:a.render(l(b,a.data),b)},null,8,ke)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E(a.render(l(b,a.data),b).component)),e.mergeProps({key:1,ref_for:!0},p(b,a)),null,16))],64)):e.createCommentVNode("",!0)]))),128))]))),128))])],2))}}),Ee=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:o}){const c=t,s=e.ref(c.value),r=o,l=p=>{s.value=p,r("update:value",p)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>c.value,p=>{s.value=p}),n({updateValue:l}),(p,E)=>e.renderSlot(p.$slots,"default",{updateValue:l})}}),Ce=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,o=e.inject("stepper"),c=e.ref("");return e.watch(()=>o==null?void 0:o.value.value,s=>{s&&n.value&&(c.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{o&&(c.value=o.value.value===n.value?"step-primary":"",Number(o.value.value)>=Number(n.value)&&(c.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",c.value])},[e.renderSlot(s.$slots,"default")],2))}}),Ne={},we={class:"steps"};function ze(t,n){return e.openBlock(),e.createElementBlock("ul",we,[e.renderSlot(t.$slots,"default")])}const Me=O(Ne,[["render",ze]]),Ve={key:0},$e=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(o,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var s,r;return[(s=e.unref(n))!=null&&s.value?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(o.$slots,"default",{currentStep:(r=e.unref(n))==null?void 0:r.value})])):e.createCommentVNode("",!0)]}),_:3}))}}),Te={key:0},Le=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const o=e.computed(()=>c==null?void 0:c.value.value),c=e.inject("stepper"),s=r=>{c&&c.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===o.value?(e.openBlock(),e.createElementBlock("div",Te,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),Fe={key:0,method:"dialog"},Re=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:o}){const c=e.ref(null),s=o,r=t,l=e.ref(M("modal-box",r.extraBoxClasses)),p=e.ref(M("modal",{"overflow-visible":r.overflow})),E=e.ref(M("btn",H.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{var h;(h=c.value)==null||h.showModal()},closeModal:()=>{var h;(h=c.value)==null||h.close()}}),(h,b)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:c,class:e.normalizeClass([p.value,h.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:b[0]||(b[0]=a=>s("close",a))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[h.closeButton?(e.openBlock(),e.createElementBlock("form",Fe,[e.createElementVNode("button",{class:e.normalizeClass(E.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default")],2),b[1]||(b[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),De={class:"hidden w-full max-w-sm lg:flex"},We={class:"relative mx-3 w-full"},Oe={class:"w-full max-w-full relative"},Pe=["value"],qe=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const o=t,c=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),c.value&&c.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,p)=>(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("label",We,[p[1]||(p[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content","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",Oe,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:c,type:"search",placeholder:"Zoeken...",value:o.modelValue,onInput:p[0]||(p[0]=E=>s("update:modelValue",E.target.value)),class:"bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"},null,40,Pe)])]),p[2]||(p[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Ae=["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=I;exports.Button=ce;exports.ButtonColorUtils=K;exports.ButtonSizeUtils=H;exports.Card=de;exports.CardBody=be;exports.CardTitle=ve;exports.Color=$;exports.Container=ge;exports.Modal=Re;exports.RoundedSizeUtils=j;exports.SearchBar=qe;exports.SimpleButton=ie;exports.Size=T;exports.Step=Ce;exports.StepList=Me;exports.StepPanel=Le;exports.StepPanels=$e;exports.Stepper=Ee;exports.Table=Se;exports.TableSizeUtils=G;exports.TextColorUtils=ne;exports.dendelionSafeList=Ae;
5
+ */var P;function re(){return P||(P=1,function(t){(function(){var n={}.hasOwnProperty;function o(){for(var a="",i=0;i<arguments.length;i++){var f=arguments[i];f&&(a=s(a,c(f)))}return a}function c(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return o.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var f in a)n.call(a,f)&&a[f]&&(i=s(i,f));return i}function s(a,i){return i?a?a+" "+i:a+i:a}t.exports?(o.default=o,t.exports=o):window.classNames=o})()}(R)),R.exports}var ae=re();const z=Z(ae),se=["type","disabled"],oe={class:"group-[.is-loading]:text-transparent"},ce=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:$.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,o=e.computed(()=>z("btn","group",K.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(c,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=a=>c.click?c.click:void 0),class:e.normalizeClass(o.value),type:c.type,disabled:c.disabled||c.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",oe,[e.renderSlot(c.$slots,"default")])],10,se))}}),O=(t,n)=>{const o=t.__vccOpts||t;for(const[c,s]of n)o[c]=s;return o},le={};function ue(t,n){return e.openBlock(),e.createElementBlock("button")}const ie=O(le,[["render",ue]]),de=e.defineComponent({__name:"Card",props:{backgroundColor:{default:$.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,o=e.ref(z("card",I.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$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=O(fe,[["render",me]]),ve=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,o)=>(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,o=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}});var D={},W={},q;function J(){return q||(q=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,o=/ł/g,c=/ñ/g;function s(a){return a.toLowerCase().normalize("NFD").replace(n,"").replace(o,"l").replace(c,"n").trim()}}(W)),W}var N={},A;function U(){if(A)return N;A=1,N.__esModule=!0,N.aggressiveFuzzyMatch=S,N.createFuzzySearchImpl=h,N.experimentalSmartFuzzyMatch=M,N.fuzzyMatchImpl=u;var t=n(J());function n(r){return r&&r.__esModule?r:{default:r}}var o=Number.MAX_SAFE_INTEGER,c=function(l,d){return l.score-d.score},s=function(l,d){return l[0]-d[0]},a=new Set(`  []()-–—'"“”`.split(""));function i(r){return a.has(r)}function f(r,l,d,y,p,v,b){if(r===y)return[0,[[0,r.length-1]]];var m=y.length,g=l.length,_=p.length;if(l===p)return[.1,[[0,g-1]]];if(l.startsWith(p))return[.5,[[0,_-1]]];var x=r.indexOf(y);if(x>-1&&i(r[x-1]))return[.9,[[x,x+m-1]]];var k=l.indexOf(p);if(k>-1&&i(l[k-1]))return[1,[[k,k+m-1]]];var B=v.length;if(B>1&&v.every(function(E){return d.has(E)})){var C=1.5+B*.2;return[C,v.map(function(E){var w=l.indexOf(E);return[w,w+E.length-1]}).sort(s)]}return k>-1?[2,[[k,k+m-1]]]:b==="aggressive"?S(l,p):b==="smart"?M(l,p):null}function S(r,l){for(var d=r.length,y=l.length,p=0,v=l[p],b=[],m=-1,g=-2,_=0;_<d;_+=1)if(r[_]===v){if(_!==g+1&&(m>=0&&b.push([m,g]),m=_),g=_,p+=1,p===y)return b.push([m,g]),V(b,r);v=l[p]}return null}function M(r,l){for(var d=r.length,y=[],p=0,v=l[p],b=-1,m=-2;;){var g=r.indexOf(v,m+1);if(g===-1)break;if(g===0||i(r[g-1]))b=g;else{var _=l.length-p,x=r.length-g,k=Math.min(3,_,x),B=l.slice(p,p+k);if(r.slice(g,g+k)===B)b=g;else{m+=1;continue}}for(m=b;m<d&&r[m]===v;m+=1)p+=1,v=l[p];if(m-=1,y.push([b,m]),p===l.length)return V(y,r)}return null}function V(r,l){var d=2;return r.forEach(function(y){var p=y[0],v=y[1],b=v-p+1,m=p===0||l[p]===" "||l[p-1]===" ",g=v===l.length-1||l[v]===" "||l[v+1]===" ",_=m&&g;_?d+=.2:m?d+=.4:b>=3?d+=.8:d+=1.6}),[d,r]}function u(r,l){var d=(0,t.default)(l),y=d.split(" "),p=(0,t.default)(r),v=new Set(p.split(" ")),b=f(r,p,v,l,d,y,"smart");return b?{item:r,score:b[0],matches:[b[1]]}:null}function h(r,l){var d=l.strategy,y=d===void 0?"aggressive":d,p=l.getText,v=r.map(function(b){var m;if(p)m=p(b);else{var g=l.key?b[l.key]:b;m=[g]}var _=m.map(function(x){var k=x||"",B=(0,t.default)(k),C=new Set(B.split(" "));return[k,B,C]});return[b,_]});return function(b){var m=[],g=(0,t.default)(b),_=g.split(" ");return g.length?(v.forEach(function(x){for(var k=x[0],B=x[1],C=o,E=[],w=0,Y=B.length;w<Y;w+=1){var L=B[w],Q=L[0],ee=L[1],te=L[2],F=f(Q,ee,te,b,g,_,y);F?(C=Math.min(C,F[0]),E.push(F[1])):E.push(null)}C<o&&m.push({item:k,score:C,matches:E})}),m.sort(c),m):[]}}return N}var X;function he(){return X||(X=1,function(t){t.__esModule=!0,t.default=c,t.fuzzyMatch=s;var n=o(J());t.normalizeText=n.default;function o(a){return a&&a.__esModule?a:{default:a}}function c(a,i){return i===void 0&&(i={}),U().createFuzzySearchImpl(a,i)}function s(a,i){return U().fuzzyMatchImpl(a,i)}}(D)),D}var ye=he();const _e=Z(ye),ke={key:0},xe=["colspan"],Be=["onClick"],Se=["innerHTML"],Ce=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:T.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),o=e.ref([]),c=e.ref(null),s=t,a=e.ref(z("table",G.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),i=(u,h)=>{s.onRowClick&&s.onRowClick(u,h)},f=(u,h)=>String(!u||typeof u!="object"?u:h.split(".").reduce((r,l)=>r&&(typeof r=="object"?r[l]:r),u)),S=(u,h)=>h.render===void 0?{}:h.render(f(u,h.data),u).props,M=u=>u&&typeof u=="object"&&"then"in u?e.defineAsyncComponent(()=>u):typeof u=="function"?e.defineAsyncComponent(u):u;e.onMounted(()=>{n.value=s.dataSource,o.value=s.dataSource}),e.watch(()=>s.dataSource,u=>{n.value=u,o.value=u},{immediate:!0}),e.watch(()=>s.searchValue,u=>{if(s.searchFunction){o.value=s.searchFunction(u??"");return}o.value=u?V(u):n.value},{immediate:!0});const V=u=>{const h=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(l=>{const d=n.value.map(v=>f(v,l)),p=_e(d)(u);for(const v of p){const b=n.value.filter(m=>f(m,l)===v.item);h.push(...b)}}),h):[]};return(u,h)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:c,class:e.normalizeClass(a.value)},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,r=>(e.openBlock(),e.createElementBlock("th",{key:r.title},e.toDisplayString(r.title),1))),128))])]),e.createElementVNode("tbody",null,[o.value.length===0?(e.openBlock(),e.createElementBlock("tr",ke,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,xe)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.value,(r,l)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(s.onRowClick?"hover":""),key:String(r),onClick:d=>i(r,l)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,d=>(e.openBlock(),e.createElementBlock("td",{key:d.title},[d.render?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f(r,d.data)),1)],64)),typeof d.render=="function"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[typeof d.render(f(r,d.data),r)=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:d.render(f(r,d.data),r)},null,8,Se)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(d.render(f(r,d.data),r).component)),e.mergeProps({key:1,ref_for:!0},S(r,d)),null,16))],64)):e.createCommentVNode("",!0)]))),128))],10,Be))),128))])],2))}}),Ee=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:o}){const c=t,s=e.ref(c.value),a=o,i=f=>{s.value=f,a("update:value",f)};return e.provide("stepper",{value:s,updateValue:i}),e.watch(()=>c.value,f=>{s.value=f}),n({updateValue:i}),(f,S)=>e.renderSlot(f.$slots,"default",{updateValue:i})}}),Ne=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,o=e.inject("stepper"),c=e.ref("");return e.watch(()=>o==null?void 0:o.value.value,s=>{s&&n.value&&(c.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{o&&(c.value=o.value.value===n.value?"step-primary":"",Number(o.value.value)>=Number(n.value)&&(c.value="step-primary"))}),(s,a)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",c.value])},[e.renderSlot(s.$slots,"default")],2))}}),we={},ze={class:"steps"};function Me(t,n){return e.openBlock(),e.createElementBlock("ul",ze,[e.renderSlot(t.$slots,"default")])}const Ve=O(we,[["render",Me]]),$e={key:0},Te=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(o,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var s,a;return[(s=e.unref(n))!=null&&s.value?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(o.$slots,"default",{currentStep:(a=e.unref(n))==null?void 0:a.value})])):e.createCommentVNode("",!0)]}),_:3}))}}),Le={key:0},Fe=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const o=e.computed(()=>c==null?void 0:c.value.value),c=e.inject("stepper"),s=a=>{c&&c.updateValue(a.toString())};return n({activateCallback:s}),(a,i)=>a.value===o.value?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(a.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),Re={key:0,method:"dialog"},De=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:o}){const c=e.ref(null),s=o,a=t,i=e.ref(z("modal-box",a.extraBoxClasses)),f=e.ref(z("modal",{"overflow-visible":a.overflow})),S=e.ref(z("btn",H.toClassName(a.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{var u;(u=c.value)==null||u.showModal()},closeModal:()=>{var u;(u=c.value)==null||u.close()}}),(u,h)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:c,class:e.normalizeClass([f.value,u.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:h[0]||(h[0]=r=>s("close",r))},[e.createElementVNode("div",{class:e.normalizeClass(i.value)},[u.closeButton?(e.openBlock(),e.createElementBlock("form",Re,[e.createElementVNode("button",{class:e.normalizeClass(S.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default")],2),h[1]||(h[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),We={class:"hidden w-full max-w-sm lg:flex"},Oe={class:"relative mx-3 w-full"},Pe={class:"relative w-full max-w-full"},qe=["value"],Ae=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const o=t,c=e.ref(null),s=n,a=i=>{(i.ctrlKey||i.metaKey)&&i.key.toLowerCase()==="k"&&(i.preventDefault(),c.value&&c.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",a)}),e.onUnmounted(()=>{document.removeEventListener("keydown",a)}),(i,f)=>(e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("label",Oe,[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",Pe,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:c,type:"search",placeholder:"Zoeken...",value:o.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,qe)])]),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))])]))}}),Ue=["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=I;exports.Button=ce;exports.ButtonColorUtils=K;exports.ButtonSizeUtils=H;exports.Card=de;exports.CardBody=be;exports.CardTitle=ve;exports.Color=$;exports.Container=ge;exports.Modal=De;exports.RoundedSizeUtils=j;exports.SearchBar=Ae;exports.SimpleButton=ie;exports.Size=T;exports.Step=Ne;exports.StepList=Ve;exports.StepPanel=Fe;exports.StepPanels=Te;exports.Stepper=Ee;exports.Table=Ce;exports.TableSizeUtils=G;exports.TextColorUtils=ne;exports.dendelionSafeList=Ue;
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, computed as ce, createElementBlock as h, openBlock as v, normalizeClass as E, createElementVNode as x, renderSlot as N, ref as B, createBlock as G, resolveDynamicComponent as oe, withCtx as le, createTextVNode as ie, toDisplayString as H, onMounted as j, watch as P, Fragment as V, renderList as X, createCommentVNode as D, mergeProps as he, defineAsyncComponent as ee, provide as me, inject as Z, Transition as ye, unref as te, onUnmounted as _e } from "vue";
1
+ import { defineComponent as C, computed as oe, createElementBlock as m, openBlock as v, normalizeClass as z, createElementVNode as y, renderSlot as M, ref as w, createBlock as G, resolveDynamicComponent as ce, withCtx as le, createTextVNode as ie, toDisplayString as H, onMounted as j, watch as P, Fragment as V, renderList as X, createCommentVNode as D, mergeProps as he, defineAsyncComponent as ee, provide as me, inject as Z, Transition as ye, unref as te, onUnmounted as _e } from "vue";
2
2
  var J = /* @__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))(J || {});
3
3
  class xe {
4
4
  static toClassName(t) {
@@ -96,7 +96,7 @@ class Se {
96
96
  }
97
97
  }
98
98
  }
99
- class Ye {
99
+ class Qe {
100
100
  static toClassName(t) {
101
101
  switch (t) {
102
102
  case 0:
@@ -221,40 +221,40 @@ var I = { exports: {} };
221
221
  http://jedwatson.github.io/classnames
222
222
  */
223
223
  var ne;
224
- function Me() {
224
+ function Ce() {
225
225
  return ne || (ne = 1, function(e) {
226
226
  (function() {
227
227
  var t = {}.hasOwnProperty;
228
228
  function s() {
229
- for (var n = "", c = 0; c < arguments.length; c++) {
230
- var f = arguments[c];
231
- f && (n = a(n, u(f)));
229
+ for (var r = "", l = 0; l < arguments.length; l++) {
230
+ var d = arguments[l];
231
+ d && (r = a(r, u(d)));
232
232
  }
233
- return n;
233
+ return r;
234
234
  }
235
- function u(n) {
236
- if (typeof n == "string" || typeof n == "number")
237
- return n;
238
- if (typeof n != "object")
235
+ function u(r) {
236
+ if (typeof r == "string" || typeof r == "number")
237
+ return r;
238
+ if (typeof r != "object")
239
239
  return "";
240
- if (Array.isArray(n))
241
- return s.apply(null, n);
242
- if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
243
- return n.toString();
244
- var c = "";
245
- for (var f in n)
246
- t.call(n, f) && n[f] && (c = a(c, f));
247
- return c;
240
+ if (Array.isArray(r))
241
+ return s.apply(null, r);
242
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
243
+ return r.toString();
244
+ var l = "";
245
+ for (var d in r)
246
+ t.call(r, d) && r[d] && (l = a(l, d));
247
+ return l;
248
248
  }
249
- function a(n, c) {
250
- return c ? n ? n + " " + c : n + c : n;
249
+ function a(r, l) {
250
+ return l ? r ? r + " " + l : r + l : r;
251
251
  }
252
252
  e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
253
253
  })();
254
254
  }(I)), I.exports;
255
255
  }
256
- var $e = Me();
257
- const W = /* @__PURE__ */ de($e), Ce = ["type", "disabled"], Ne = { class: "group-[.is-loading]:text-transparent" }, Qe = /* @__PURE__ */ $({
256
+ var $e = Ce();
257
+ const R = /* @__PURE__ */ de($e), Me = ["type", "disabled"], Ne = { class: "group-[.is-loading]:text-transparent" }, et = /* @__PURE__ */ C({
258
258
  __name: "Button",
259
259
  props: {
260
260
  type: { default: "button" },
@@ -266,26 +266,28 @@ const W = /* @__PURE__ */ de($e), Ce = ["type", "disabled"], Ne = { class: "grou
266
266
  click: {}
267
267
  },
268
268
  setup(e) {
269
- const t = e, s = ce(() => W(
270
- "btn",
271
- "group",
272
- Se.toClassName(t.color),
273
- t.soft ? "btn-soft" : "",
274
- t.outline ? "btn-outline" : "",
275
- t.loading ? "is-loading" : "",
276
- t.disabled ? "disabled" : ""
277
- ));
278
- return (u, a) => (v(), h("button", {
279
- onClick: a[0] || (a[0] = (n) => u.click ? u.click : void 0),
280
- class: E(s.value),
269
+ const t = e, s = oe(
270
+ () => R(
271
+ "btn",
272
+ "group",
273
+ Se.toClassName(t.color),
274
+ t.soft ? "btn-soft" : "",
275
+ t.outline ? "btn-outline" : "",
276
+ t.loading ? "is-loading" : "",
277
+ t.disabled ? "disabled" : ""
278
+ )
279
+ );
280
+ return (u, a) => (v(), m("button", {
281
+ onClick: a[0] || (a[0] = (r) => u.click ? u.click : void 0),
282
+ class: z(s.value),
281
283
  type: u.type,
282
284
  disabled: u.disabled || u.loading
283
285
  }, [
284
- a[1] || (a[1] = x("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
285
- x("span", Ne, [
286
- N(u.$slots, "default")
286
+ a[1] || (a[1] = y("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
287
+ y("span", Ne, [
288
+ M(u.$slots, "default")
287
289
  ])
288
- ], 10, Ce));
290
+ ], 10, Me));
289
291
  }
290
292
  }), Q = (e, t) => {
291
293
  const s = e.__vccOpts || e;
@@ -294,9 +296,9 @@ const W = /* @__PURE__ */ de($e), Ce = ["type", "disabled"], Ne = { class: "grou
294
296
  return s;
295
297
  }, ze = {};
296
298
  function Te(e, t) {
297
- return v(), h("button");
299
+ return v(), m("button");
298
300
  }
299
- const et = /* @__PURE__ */ Q(ze, [["render", Te]]), tt = /* @__PURE__ */ $({
301
+ const tt = /* @__PURE__ */ Q(ze, [["render", Te]]), nt = /* @__PURE__ */ C({
300
302
  __name: "Card",
301
303
  props: {
302
304
  backgroundColor: { default: J.Primary },
@@ -306,55 +308,57 @@ const et = /* @__PURE__ */ Q(ze, [["render", Te]]), tt = /* @__PURE__ */ $({
306
308
  roundedSize: {}
307
309
  },
308
310
  setup(e) {
309
- const t = e, s = B(W(
310
- "card",
311
- xe.toClassName(t.backgroundColor),
312
- t.shadow ? "shadow-lg" : "",
313
- t.fullWidth ? "w-full" : "",
314
- t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? we.toClassName(t.roundedSize) : ""
315
- ));
316
- return (u, a) => (v(), h("div", {
317
- class: E(s.value)
311
+ const t = e, s = w(
312
+ R(
313
+ "card",
314
+ xe.toClassName(t.backgroundColor),
315
+ t.shadow ? "shadow-lg" : "",
316
+ t.fullWidth ? "w-full" : "",
317
+ t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? we.toClassName(t.roundedSize) : ""
318
+ )
319
+ );
320
+ return (u, a) => (v(), m("div", {
321
+ class: z(s.value)
318
322
  }, [
319
- N(u.$slots, "default")
323
+ M(u.$slots, "default")
320
324
  ], 2));
321
325
  }
322
326
  }), Le = {}, Ee = { class: "card-body" };
323
327
  function Fe(e, t) {
324
- return v(), h("div", Ee, [
325
- N(e.$slots, "default")
328
+ return v(), m("div", Ee, [
329
+ M(e.$slots, "default")
326
330
  ]);
327
331
  }
328
- const nt = /* @__PURE__ */ Q(Le, [["render", Fe]]), rt = /* @__PURE__ */ $({
332
+ const rt = /* @__PURE__ */ Q(Le, [["render", Fe]]), at = /* @__PURE__ */ C({
329
333
  __name: "CardTitle",
330
334
  props: {
331
335
  is: { default: "h1" },
332
336
  text: { default: "" }
333
337
  },
334
338
  setup(e) {
335
- return (t, s) => (v(), G(oe(t.is), { class: "card-title" }, {
339
+ return (t, s) => (v(), G(ce(t.is), { class: "card-title" }, {
336
340
  default: le(() => [
337
341
  ie(H(t.text), 1)
338
342
  ]),
339
343
  _: 1
340
344
  }));
341
345
  }
342
- }), at = /* @__PURE__ */ $({
346
+ }), st = /* @__PURE__ */ C({
343
347
  __name: "Container",
344
348
  props: {
345
349
  container: { type: Boolean, default: !0 },
346
350
  padding: { type: Boolean, default: !0 }
347
351
  },
348
352
  setup(e) {
349
- const t = e, s = B([
353
+ const t = e, s = w([
350
354
  t.container ? "container" : "",
351
355
  //To disable the max width in some cases
352
356
  t.padding ? "p-6" : ""
353
357
  ]);
354
- return (u, a) => (v(), h("div", {
355
- class: E(s.value)
358
+ return (u, a) => (v(), m("div", {
359
+ class: z(s.value)
356
360
  }, [
357
- N(u.$slots, "default")
361
+ M(u.$slots, "default")
358
362
  ], 2));
359
363
  }
360
364
  });
@@ -363,137 +367,137 @@ function fe() {
363
367
  return re || (re = 1, function(e) {
364
368
  e.__esModule = !0, e.default = a;
365
369
  var t = /[\u0300-\u036f]/g, s = /ł/g, u = /ñ/g;
366
- function a(n) {
367
- return n.toLowerCase().normalize("NFD").replace(t, "").replace(s, "l").replace(u, "n").trim();
370
+ function a(r) {
371
+ return r.toLowerCase().normalize("NFD").replace(t, "").replace(s, "l").replace(u, "n").trim();
368
372
  }
369
373
  }(K)), K;
370
374
  }
371
- var F = {}, ae;
375
+ var E = {}, ae;
372
376
  function se() {
373
- if (ae) return F;
374
- ae = 1, F.__esModule = !0, F.aggressiveFuzzyMatch = z, F.createFuzzySearchImpl = b, F.experimentalSmartFuzzyMatch = O, F.fuzzyMatchImpl = y;
377
+ if (ae) return E;
378
+ ae = 1, E.__esModule = !0, E.aggressiveFuzzyMatch = N, E.createFuzzySearchImpl = _, E.experimentalSmartFuzzyMatch = W, E.fuzzyMatchImpl = c;
375
379
  var e = t(fe());
376
- function t(r) {
377
- return r && r.__esModule ? r : { default: r };
380
+ function t(n) {
381
+ return n && n.__esModule ? n : { default: n };
378
382
  }
379
- var s = Number.MAX_SAFE_INTEGER, u = function(o, m) {
383
+ var s = Number.MAX_SAFE_INTEGER, u = function(o, i) {
380
384
  return (
381
385
  /*: number*/
382
- o.score - m.score
386
+ o.score - i.score
383
387
  );
384
- }, a = function(o, m) {
388
+ }, a = function(o, i) {
385
389
  return (
386
390
  /*: number*/
387
- o[0] - m[0]
391
+ o[0] - i[0]
388
392
  );
389
- }, n = new Set(`  []()-–—'"“”`.split(""));
390
- function c(r) {
391
- return n.has(r);
393
+ }, r = new Set(`  []()-–—'"“”`.split(""));
394
+ function l(n) {
395
+ return r.has(n);
392
396
  }
393
- function f(r, o, m, S, l, _, p) {
394
- if (r === S)
395
- return [0, [[0, r.length - 1]]];
396
- var d = S.length, g = o.length, k = l.length;
397
- if (o === l)
398
- return [0.1, [[0, g - 1]]];
399
- if (o.startsWith(l))
400
- return [0.5, [[0, k - 1]]];
401
- var M = r.indexOf(S);
402
- if (M > -1 && c(r[M - 1]))
403
- return [0.9, [[M, M + d - 1]]];
404
- var w = o.indexOf(l);
405
- if (w > -1 && c(o[w - 1]))
406
- return [1, [[w, w + d - 1]]];
407
- var C = _.length;
408
- if (C > 1 && _.every(function(L) {
409
- return m.has(L);
397
+ function d(n, o, i, x, f, g, b) {
398
+ if (n === x)
399
+ return [0, [[0, n.length - 1]]];
400
+ var p = x.length, h = o.length, S = f.length;
401
+ if (o === f)
402
+ return [0.1, [[0, h - 1]]];
403
+ if (o.startsWith(f))
404
+ return [0.5, [[0, S - 1]]];
405
+ var B = n.indexOf(x);
406
+ if (B > -1 && l(n[B - 1]))
407
+ return [0.9, [[B, B + p - 1]]];
408
+ var k = o.indexOf(f);
409
+ if (k > -1 && l(o[k - 1]))
410
+ return [1, [[k, k + p - 1]]];
411
+ var $ = g.length;
412
+ if ($ > 1 && g.every(function(L) {
413
+ return i.has(L);
410
414
  })) {
411
- var T = 1.5 + C * 0.2;
412
- return [T, _.map(function(L) {
413
- var R = o.indexOf(L);
414
- return [R, R + L.length - 1];
415
+ var T = 1.5 + $ * 0.2;
416
+ return [T, g.map(function(L) {
417
+ var F = o.indexOf(L);
418
+ return [F, F + L.length - 1];
415
419
  }).sort(a)];
416
420
  }
417
- return w > -1 ? [2, [[w, w + d - 1]]] : p === "aggressive" ? z(o, l) : p === "smart" ? O(o, l) : null;
421
+ return k > -1 ? [2, [[k, k + p - 1]]] : b === "aggressive" ? N(o, f) : b === "smart" ? W(o, f) : null;
418
422
  }
419
- function z(r, o) {
420
- for (var m = r.length, S = o.length, l = 0, _ = o[l], p = [], d = -1, g = -2, k = 0; k < m; k += 1)
421
- if (r[k] === _) {
422
- if (k !== g + 1 && (d >= 0 && p.push([d, g]), d = k), g = k, l += 1, l === S)
423
- return p.push([d, g]), i(p, r);
424
- _ = o[l];
423
+ function N(n, o) {
424
+ for (var i = n.length, x = o.length, f = 0, g = o[f], b = [], p = -1, h = -2, S = 0; S < i; S += 1)
425
+ if (n[S] === g) {
426
+ if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, f += 1, f === x)
427
+ return b.push([p, h]), O(b, n);
428
+ g = o[f];
425
429
  }
426
430
  return null;
427
431
  }
428
- function O(r, o) {
429
- for (var m = r.length, S = [], l = 0, _ = o[l], p = -1, d = -2; ; ) {
430
- var g = r.indexOf(_, d + 1);
431
- if (g === -1)
432
+ function W(n, o) {
433
+ for (var i = n.length, x = [], f = 0, g = o[f], b = -1, p = -2; ; ) {
434
+ var h = n.indexOf(g, p + 1);
435
+ if (h === -1)
432
436
  break;
433
- if (g === 0 || c(r[g - 1]))
434
- p = g;
437
+ if (h === 0 || l(n[h - 1]))
438
+ b = h;
435
439
  else {
436
- var k = o.length - l, M = r.length - g, w = Math.min(3, k, M), C = o.slice(l, l + w);
437
- if (r.slice(g, g + w) === C)
438
- p = g;
440
+ var S = o.length - f, B = n.length - h, k = Math.min(3, S, B), $ = o.slice(f, f + k);
441
+ if (n.slice(h, h + k) === $)
442
+ b = h;
439
443
  else {
440
- d += 1;
444
+ p += 1;
441
445
  continue;
442
446
  }
443
447
  }
444
- for (d = p; d < m && r[d] === _; d += 1)
445
- l += 1, _ = o[l];
446
- if (d -= 1, S.push([p, d]), l === o.length)
447
- return i(S, r);
448
+ for (p = b; p < i && n[p] === g; p += 1)
449
+ f += 1, g = o[f];
450
+ if (p -= 1, x.push([b, p]), f === o.length)
451
+ return O(x, n);
448
452
  }
449
453
  return null;
450
454
  }
451
- function i(r, o) {
452
- var m = 2;
453
- return r.forEach(function(S) {
454
- var l = S[0], _ = S[1], p = _ - l + 1, d = l === 0 || o[l] === " " || o[l - 1] === " ", g = _ === o.length - 1 || o[_] === " " || o[_ + 1] === " ", k = d && g;
455
- k ? m += 0.2 : d ? m += 0.4 : p >= 3 ? m += 0.8 : m += 1.6;
456
- }), [m, r];
455
+ function O(n, o) {
456
+ var i = 2;
457
+ return n.forEach(function(x) {
458
+ var f = x[0], g = x[1], b = g - f + 1, p = f === 0 || o[f] === " " || o[f - 1] === " ", h = g === o.length - 1 || o[g] === " " || o[g + 1] === " ", S = p && h;
459
+ S ? i += 0.2 : p ? i += 0.4 : b >= 3 ? i += 0.8 : i += 1.6;
460
+ }), [i, n];
457
461
  }
458
- function y(r, o) {
459
- var m = (0, e.default)(o), S = m.split(" "), l = (0, e.default)(r), _ = new Set(l.split(" ")), p = f(r, l, _, o, m, S, "smart");
460
- return p ? {
461
- item: r,
462
- score: p[0],
463
- matches: [p[1]]
462
+ function c(n, o) {
463
+ var i = (0, e.default)(o), x = i.split(" "), f = (0, e.default)(n), g = new Set(f.split(" ")), b = d(n, f, g, o, i, x, "smart");
464
+ return b ? {
465
+ item: n,
466
+ score: b[0],
467
+ matches: [b[1]]
464
468
  } : null;
465
469
  }
466
- function b(r, o) {
467
- var m = o.strategy, S = m === void 0 ? "aggressive" : m, l = o.getText, _ = r.map(function(p) {
468
- var d;
469
- if (l)
470
- d = l(p);
470
+ function _(n, o) {
471
+ var i = o.strategy, x = i === void 0 ? "aggressive" : i, f = o.getText, g = n.map(function(b) {
472
+ var p;
473
+ if (f)
474
+ p = f(b);
471
475
  else {
472
- var g = o.key ? p[o.key] : p;
473
- d = [g];
476
+ var h = o.key ? b[o.key] : b;
477
+ p = [h];
474
478
  }
475
- var k = d.map(function(M) {
476
- var w = M || "", C = (0, e.default)(w), T = new Set(C.split(" "));
477
- return [w, C, T];
479
+ var S = p.map(function(B) {
480
+ var k = B || "", $ = (0, e.default)(k), T = new Set($.split(" "));
481
+ return [k, $, T];
478
482
  });
479
- return [p, k];
483
+ return [b, S];
480
484
  });
481
- return function(p) {
482
- var d = [], g = (0, e.default)(p), k = g.split(" ");
483
- return g.length ? (_.forEach(function(M) {
484
- for (var w = M[0], C = M[1], T = s, L = [], R = 0, pe = C.length; R < pe; R += 1) {
485
- var q = C[R], be = q[0], ve = q[1], ge = q[2], A = f(be, ve, ge, p, g, k, S);
485
+ return function(b) {
486
+ var p = [], h = (0, e.default)(b), S = h.split(" ");
487
+ return h.length ? (g.forEach(function(B) {
488
+ for (var k = B[0], $ = B[1], T = s, L = [], F = 0, pe = $.length; F < pe; F += 1) {
489
+ var q = $[F], be = q[0], ve = q[1], ge = q[2], A = d(be, ve, ge, b, h, S, x);
486
490
  A ? (T = Math.min(T, A[0]), L.push(A[1])) : L.push(null);
487
491
  }
488
- T < s && d.push({
489
- item: w,
492
+ T < s && p.push({
493
+ item: k,
490
494
  score: T,
491
495
  matches: L
492
496
  });
493
- }), d.sort(u), d) : [];
497
+ }), p.sort(u), p) : [];
494
498
  };
495
499
  }
496
- return F;
500
+ return E;
497
501
  }
498
502
  var ue;
499
503
  function Re() {
@@ -501,19 +505,19 @@ function Re() {
501
505
  e.__esModule = !0, e.default = u, e.fuzzyMatch = a;
502
506
  var t = s(fe());
503
507
  e.normalizeText = t.default;
504
- function s(n) {
505
- return n && n.__esModule ? n : { default: n };
508
+ function s(r) {
509
+ return r && r.__esModule ? r : { default: r };
506
510
  }
507
- function u(n, c) {
508
- return c === void 0 && (c = {}), se().createFuzzySearchImpl(n, c);
511
+ function u(r, l) {
512
+ return l === void 0 && (l = {}), se().createFuzzySearchImpl(r, l);
509
513
  }
510
- function a(n, c) {
511
- return se().fuzzyMatchImpl(n, c);
514
+ function a(r, l) {
515
+ return se().fuzzyMatchImpl(r, l);
512
516
  }
513
517
  }(U)), U;
514
518
  }
515
519
  var We = Re();
516
- const Oe = /* @__PURE__ */ de(We), Ve = { key: 0 }, De = ["colspan"], Pe = ["innerHTML"], st = /* @__PURE__ */ $({
520
+ const Oe = /* @__PURE__ */ de(We), Ve = { key: 0 }, De = ["colspan"], Pe = ["onClick"], qe = ["innerHTML"], ut = /* @__PURE__ */ C({
517
521
  __name: "Table",
518
522
  props: {
519
523
  zebra: { type: Boolean, default: !1 },
@@ -524,118 +528,139 @@ const Oe = /* @__PURE__ */ de(We), Ve = { key: 0 }, De = ["colspan"], Pe = ["inn
524
528
  dataSource: {},
525
529
  ajax: {},
526
530
  searchValue: {},
527
- searchFunction: {}
531
+ searchFunction: {},
532
+ onRowClick: {}
528
533
  },
529
534
  setup(e) {
530
- const t = B([]), s = B([]), u = B(null), a = e, n = B(W("table", Be.toClassName(a.size), {
531
- "table-zebra": a.zebra,
532
- "table-pin-rows": a.pinRows,
533
- "table-pin-cols ": a.pinCols
534
- })), c = (i, y) => String(!i || typeof i != "object" ? i : y.split(".").reduce((b, r) => b && (typeof b == "object" ? b[r] : b), i)), f = (i, y) => y.render === void 0 ? {} : y.render(c(i, y.data), i).props, z = (i) => i && typeof i == "object" && "then" in i ? ee(() => i) : typeof i == "function" ? ee(i) : i;
535
+ const t = w([]), s = w([]), u = w(null), a = e, r = w(
536
+ R("table", Be.toClassName(a.size), {
537
+ "table-zebra": a.zebra,
538
+ "table-pin-rows": a.pinRows,
539
+ "table-pin-cols ": a.pinCols
540
+ })
541
+ ), l = (c, _) => {
542
+ a.onRowClick && a.onRowClick(c, _);
543
+ }, d = (c, _) => String(!c || typeof c != "object" ? c : _.split(".").reduce((n, o) => n && (typeof n == "object" ? n[o] : n), c)), N = (c, _) => _.render === void 0 ? {} : _.render(d(c, _.data), c).props, W = (c) => c && typeof c == "object" && "then" in c ? ee(() => c) : typeof c == "function" ? ee(c) : c;
535
544
  j(() => {
536
545
  t.value = a.dataSource, s.value = a.dataSource;
537
- }), P(() => a.dataSource, (i) => {
538
- t.value = i, s.value = i;
539
- }, { immediate: !0 }), P(() => a.searchValue, (i) => {
540
- if (a.searchFunction) {
541
- s.value = a.searchFunction(i ?? "");
542
- return;
543
- }
544
- s.value = i ? O(i) : t.value;
545
- }, { immediate: !0 });
546
- const O = (i) => {
547
- const y = [];
548
- return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((r) => {
549
- const o = t.value.map((l) => c(l, r)), S = Oe(o)(i);
550
- for (const l of S) {
551
- const _ = t.value.filter((p) => c(p, r) === l.item);
552
- y.push(..._);
546
+ }), P(
547
+ () => a.dataSource,
548
+ (c) => {
549
+ t.value = c, s.value = c;
550
+ },
551
+ { immediate: !0 }
552
+ ), P(
553
+ () => a.searchValue,
554
+ (c) => {
555
+ if (a.searchFunction) {
556
+ s.value = a.searchFunction(c ?? "");
557
+ return;
558
+ }
559
+ s.value = c ? O(c) : t.value;
560
+ },
561
+ { immediate: !0 }
562
+ );
563
+ const O = (c) => {
564
+ const _ = [];
565
+ return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((o) => {
566
+ const i = t.value.map((g) => d(g, o)), f = Oe(i)(c);
567
+ for (const g of f) {
568
+ const b = t.value.filter((p) => d(p, o) === g.item);
569
+ _.push(...b);
553
570
  }
554
- }), y) : [];
571
+ }), _) : [];
555
572
  };
556
- return (i, y) => (v(), h("table", {
573
+ return (c, _) => (v(), m("table", {
557
574
  ref_key: "table",
558
575
  ref: u,
559
- class: E(n.value)
576
+ class: z(r.value)
560
577
  }, [
561
- x("thead", null, [
562
- x("tr", null, [
563
- (v(!0), h(V, null, X(a.columns, (b) => (v(), h("th", {
564
- key: b.title
565
- }, H(b.title), 1))), 128))
578
+ y("thead", null, [
579
+ y("tr", null, [
580
+ (v(!0), m(V, null, X(a.columns, (n) => (v(), m("th", {
581
+ key: n.title
582
+ }, H(n.title), 1))), 128))
566
583
  ])
567
584
  ]),
568
- x("tbody", null, [
569
- s.value.length === 0 ? (v(), h("tr", Ve, [
570
- x("td", {
585
+ y("tbody", null, [
586
+ s.value.length === 0 ? (v(), m("tr", Ve, [
587
+ y("td", {
571
588
  colspan: a.columns.length
572
- }, " No data found ", 8, De)
573
- ])) : (v(!0), h(V, { key: 1 }, X(s.value, (b) => (v(), h("tr", {
574
- key: String(b)
589
+ }, "No data found", 8, De)
590
+ ])) : (v(!0), m(V, { key: 1 }, X(s.value, (n, o) => (v(), m("tr", {
591
+ class: z(a.onRowClick ? "hover" : ""),
592
+ key: String(n),
593
+ onClick: (i) => l(n, o)
575
594
  }, [
576
- (v(!0), h(V, null, X(a.columns, (r) => (v(), h("td", {
577
- key: r.title
595
+ (v(!0), m(V, null, X(a.columns, (i) => (v(), m("td", {
596
+ key: i.title
578
597
  }, [
579
- r.render ? D("", !0) : (v(), h(V, { key: 0 }, [
580
- ie(H(c(b, r.data)), 1)
598
+ i.render ? D("", !0) : (v(), m(V, { key: 0 }, [
599
+ ie(H(d(n, i.data)), 1)
581
600
  ], 64)),
582
- typeof r.render == "function" ? (v(), h(V, { key: 1 }, [
583
- typeof r.render(c(b, r.data), b) == "string" ? (v(), h("div", {
601
+ typeof i.render == "function" ? (v(), m(V, { key: 1 }, [
602
+ typeof i.render(d(n, i.data), n) == "string" ? (v(), m("div", {
584
603
  key: 0,
585
- innerHTML: r.render(c(b, r.data), b)
586
- }, null, 8, Pe)) : (v(), G(oe(z(r.render(c(b, r.data), b).component)), he({
604
+ innerHTML: i.render(d(n, i.data), n)
605
+ }, null, 8, qe)) : (v(), G(ce(W(i.render(d(n, i.data), n).component)), he({
587
606
  key: 1,
588
607
  ref_for: !0
589
- }, f(b, r)), null, 16))
608
+ }, N(n, i)), null, 16))
590
609
  ], 64)) : D("", !0)
591
610
  ]))), 128))
592
- ]))), 128))
611
+ ], 10, Pe))), 128))
593
612
  ])
594
613
  ], 2));
595
614
  }
596
- }), ut = /* @__PURE__ */ $({
615
+ }), ot = /* @__PURE__ */ C({
597
616
  __name: "Stepper",
598
617
  props: {
599
618
  value: {}
600
619
  },
601
620
  emits: ["update:value"],
602
621
  setup(e, { expose: t, emit: s }) {
603
- const u = e, a = B(u.value), n = s, c = (f) => {
604
- a.value = f, n("update:value", f);
622
+ const u = e, a = w(u.value), r = s, l = (d) => {
623
+ a.value = d, r("update:value", d);
605
624
  };
606
625
  return me("stepper", {
607
626
  value: a,
608
- updateValue: c
609
- }), P(() => u.value, (f) => {
610
- a.value = f;
611
- }), t({
612
- updateValue: c
613
- }), (f, z) => N(f.$slots, "default", { updateValue: c });
627
+ updateValue: l
628
+ }), P(
629
+ () => u.value,
630
+ (d) => {
631
+ a.value = d;
632
+ }
633
+ ), t({
634
+ updateValue: l
635
+ }), (d, N) => M(d.$slots, "default", { updateValue: l });
614
636
  }
615
- }), ct = /* @__PURE__ */ $({
637
+ }), ct = /* @__PURE__ */ C({
616
638
  __name: "Step",
617
639
  props: {
618
640
  value: {}
619
641
  },
620
642
  setup(e) {
621
- const t = e, s = Z("stepper"), u = B("");
622
- return P(() => s == null ? void 0 : s.value.value, (a) => {
623
- a && t.value && (u.value = Number(a) >= Number(t.value) ? "step-primary" : "");
624
- }), j(() => {
643
+ const t = e, s = Z("stepper"), u = w("");
644
+ return P(
645
+ () => s == null ? void 0 : s.value.value,
646
+ (a) => {
647
+ a && t.value && (u.value = Number(a) >= Number(t.value) ? "step-primary" : "");
648
+ }
649
+ ), j(() => {
625
650
  s && (u.value = s.value.value === t.value ? "step-primary" : "", Number(s.value.value) >= Number(t.value) && (u.value = "step-primary"));
626
- }), (a, n) => (v(), h("li", {
627
- class: E(["step", u.value])
651
+ }), (a, r) => (v(), m("li", {
652
+ class: z(["step", u.value])
628
653
  }, [
629
- N(a.$slots, "default")
654
+ M(a.$slots, "default")
630
655
  ], 2));
631
656
  }
632
- }), qe = {}, Ae = { class: "steps" };
633
- function Xe(e, t) {
634
- return v(), h("ul", Ae, [
635
- N(e.$slots, "default")
657
+ }), Ae = {}, Xe = { class: "steps" };
658
+ function Ie(e, t) {
659
+ return v(), m("ul", Xe, [
660
+ M(e.$slots, "default")
636
661
  ]);
637
662
  }
638
- const ot = /* @__PURE__ */ Q(qe, [["render", Xe]]), Ie = { key: 0 }, lt = /* @__PURE__ */ $({
663
+ const lt = /* @__PURE__ */ Q(Ae, [["render", Ie]]), Ue = { key: 0 }, it = /* @__PURE__ */ C({
639
664
  __name: "StepPanels",
640
665
  setup(e) {
641
666
  const t = Z("stepper");
@@ -644,11 +669,11 @@ const ot = /* @__PURE__ */ Q(qe, [["render", Xe]]), Ie = { key: 0 }, lt = /* @__
644
669
  mode: "out-in"
645
670
  }, {
646
671
  default: le(() => {
647
- var a, n;
672
+ var a, r;
648
673
  return [
649
- (a = te(t)) != null && a.value ? (v(), h("div", Ie, [
650
- N(s.$slots, "default", {
651
- currentStep: (n = te(t)) == null ? void 0 : n.value
674
+ (a = te(t)) != null && a.value ? (v(), m("div", Ue, [
675
+ M(s.$slots, "default", {
676
+ currentStep: (r = te(t)) == null ? void 0 : r.value
652
677
  })
653
678
  ])) : D("", !0)
654
679
  ];
@@ -656,25 +681,25 @@ const ot = /* @__PURE__ */ Q(qe, [["render", Xe]]), Ie = { key: 0 }, lt = /* @__
656
681
  _: 3
657
682
  }));
658
683
  }
659
- }), Ue = { key: 0 }, it = /* @__PURE__ */ $({
684
+ }), Ke = { key: 0 }, dt = /* @__PURE__ */ C({
660
685
  __name: "StepPanel",
661
686
  props: {
662
687
  value: {}
663
688
  },
664
689
  setup(e, { expose: t }) {
665
- const s = ce(() => u == null ? void 0 : u.value.value), u = Z("stepper"), a = (n) => {
666
- u && u.updateValue(n.toString());
690
+ const s = oe(() => u == null ? void 0 : u.value.value), u = Z("stepper"), a = (r) => {
691
+ u && u.updateValue(r.toString());
667
692
  };
668
693
  return t({
669
694
  activateCallback: a
670
- }), (n, c) => n.value === s.value ? (v(), h("div", Ue, [
671
- N(n.$slots, "default", { activateCallback: a })
695
+ }), (r, l) => r.value === s.value ? (v(), m("div", Ke, [
696
+ M(r.$slots, "default", { activateCallback: a })
672
697
  ])) : D("", !0);
673
698
  }
674
- }), Ke = {
699
+ }), He = {
675
700
  key: 0,
676
701
  method: "dialog"
677
- }, dt = /* @__PURE__ */ $({
702
+ }, ft = /* @__PURE__ */ C({
678
703
  __name: "Modal",
679
704
  props: {
680
705
  closeButton: { type: Boolean, default: !0 },
@@ -684,94 +709,106 @@ const ot = /* @__PURE__ */ Q(qe, [["render", Xe]]), Ie = { key: 0 }, lt = /* @__
684
709
  },
685
710
  emits: ["close"],
686
711
  setup(e, { expose: t, emit: s }) {
687
- const u = B(null), a = s, n = e, c = B(W("modal-box", n.extraBoxClasses)), f = B(W("modal", {
688
- "overflow-visible": n.overflow
689
- })), z = B(W("btn", ke.toClassName(n.closeButtonSize), "btn-circle", "btn-ghost", "absolute", "right-2", "top-2"));
712
+ const u = w(null), a = s, r = e, l = w(R("modal-box", r.extraBoxClasses)), d = w(
713
+ R("modal", {
714
+ "overflow-visible": r.overflow
715
+ })
716
+ ), N = w(
717
+ R(
718
+ "btn",
719
+ ke.toClassName(r.closeButtonSize),
720
+ "btn-circle",
721
+ "btn-ghost",
722
+ "absolute",
723
+ "right-2",
724
+ "top-2"
725
+ )
726
+ );
690
727
  return t({
691
728
  showModal: () => {
692
- var y;
693
- (y = u.value) == null || y.showModal();
729
+ var c;
730
+ (c = u.value) == null || c.showModal();
694
731
  },
695
732
  closeModal: () => {
696
- var y;
697
- (y = u.value) == null || y.close();
733
+ var c;
734
+ (c = u.value) == null || c.close();
698
735
  }
699
- }), (y, b) => (v(), h("dialog", {
736
+ }), (c, _) => (v(), m("dialog", {
700
737
  ref_key: "modal",
701
738
  ref: u,
702
- class: E([f.value, y.$attrs.class]),
739
+ class: z([d.value, c.$attrs.class]),
703
740
  "aria-modal": "true",
704
741
  "aria-hidden": "true",
705
742
  role: "dialog",
706
- onClose: b[0] || (b[0] = (r) => a("close", r))
743
+ onClose: _[0] || (_[0] = (n) => a("close", n))
707
744
  }, [
708
- x("div", {
709
- class: E(c.value)
745
+ y("div", {
746
+ class: z(l.value)
710
747
  }, [
711
- y.closeButton ? (v(), h("form", Ke, [
712
- x("button", {
713
- class: E(z.value)
748
+ c.closeButton ? (v(), m("form", He, [
749
+ y("button", {
750
+ class: z(N.value)
714
751
  }, "✕", 2)
715
752
  ])) : D("", !0),
716
- N(y.$slots, "default")
753
+ M(c.$slots, "default")
717
754
  ], 2),
718
- b[1] || (b[1] = x("form", {
755
+ _[1] || (_[1] = y("form", {
719
756
  method: "dialog",
720
757
  class: "modal-backdrop"
721
758
  }, [
722
- x("button", null, "close")
759
+ y("button", null, "close")
723
760
  ], -1))
724
761
  ], 34));
725
762
  }
726
- }), He = { class: "hidden w-full max-w-sm lg:flex" }, Ge = { class: "relative mx-3 w-full" }, je = { class: "w-full max-w-full relative" }, Ze = ["value"], ft = /* @__PURE__ */ $({
763
+ }), Ge = { class: "hidden w-full max-w-sm lg:flex" }, je = { class: "relative mx-3 w-full" }, Ze = { class: "relative w-full max-w-full" }, Je = ["value"], pt = /* @__PURE__ */ C({
727
764
  __name: "SearchBar",
728
765
  props: ["modelValue"],
729
766
  emits: ["update:modelValue"],
730
767
  setup(e, { emit: t }) {
731
- const s = e, u = B(null), a = t, n = (c) => {
732
- (c.ctrlKey || c.metaKey) && c.key.toLowerCase() === "k" && (c.preventDefault(), u.value && u.value.focus());
768
+ const s = e, u = w(null), a = t, r = (l) => {
769
+ (l.ctrlKey || l.metaKey) && l.key.toLowerCase() === "k" && (l.preventDefault(), u.value && u.value.focus());
733
770
  };
734
771
  return j(() => {
735
- document.addEventListener("keydown", n);
772
+ document.addEventListener("keydown", r);
736
773
  }), _e(() => {
737
- document.removeEventListener("keydown", n);
738
- }), (c, f) => (v(), h("div", He, [
739
- x("label", Ge, [
740
- f[1] || (f[1] = x("svg", {
741
- class: "pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content",
774
+ document.removeEventListener("keydown", r);
775
+ }), (l, d) => (v(), m("div", Ge, [
776
+ y("label", je, [
777
+ d[1] || (d[1] = y("svg", {
778
+ class: "pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60",
742
779
  "aria-hidden": "true",
743
780
  width: "16",
744
781
  height: "16",
745
782
  viewBox: "0.48 0.48 23.04 23.04",
746
783
  fill: "currentColor"
747
784
  }, [
748
- x("path", {
785
+ y("path", {
749
786
  fill: "none",
750
787
  d: "M0 0h24v24H0z"
751
788
  }),
752
- x("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" })
789
+ y("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" })
753
790
  ], -1)),
754
- x("div", je, [
755
- x("form", null, [
756
- x("input", {
791
+ y("div", Ze, [
792
+ y("form", null, [
793
+ y("input", {
757
794
  ref_key: "searchInput",
758
795
  ref: u,
759
796
  type: "search",
760
797
  placeholder: "Zoeken...",
761
798
  value: s.modelValue,
762
- onInput: f[0] || (f[0] = (z) => a("update:modelValue", z.target.value)),
763
- class: "bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"
764
- }, null, 40, Ze)
799
+ onInput: d[0] || (d[0] = (N) => a("update:modelValue", N.target.value)),
800
+ 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"
801
+ }, null, 40, Je)
765
802
  ])
766
803
  ]),
767
- f[2] || (f[2] = x("div", { class: "pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex" }, [
768
- x("kbd", { class: "kbd kbd-sm" }, "ctrl"),
769
- x("kbd", { class: "kbd kbd-sm" }, "K")
804
+ d[2] || (d[2] = y("div", { class: "pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse" }, [
805
+ y("kbd", { class: "kbd kbd-sm" }, "ctrl"),
806
+ y("kbd", { class: "kbd kbd-sm" }, "K")
770
807
  ], -1))
771
808
  ])
772
809
  ]));
773
810
  }
774
- }), pt = [
811
+ }), bt = [
775
812
  "bg-primary",
776
813
  "bg-primary-content",
777
814
  "bg-secondary",
@@ -858,26 +895,26 @@ const ot = /* @__PURE__ */ Q(qe, [["render", Xe]]), Ie = { key: 0 }, lt = /* @__
858
895
  ];
859
896
  export {
860
897
  xe as BackgroundColorUtils,
861
- Qe as Button,
898
+ et as Button,
862
899
  Se as ButtonColorUtils,
863
900
  ke as ButtonSizeUtils,
864
- tt as Card,
865
- nt as CardBody,
866
- rt as CardTitle,
901
+ nt as Card,
902
+ rt as CardBody,
903
+ at as CardTitle,
867
904
  J as Color,
868
- at as Container,
869
- dt as Modal,
905
+ st as Container,
906
+ ft as Modal,
870
907
  we as RoundedSizeUtils,
871
- ft as SearchBar,
872
- et as SimpleButton,
908
+ pt as SearchBar,
909
+ tt as SimpleButton,
873
910
  Y as Size,
874
911
  ct as Step,
875
- ot as StepList,
876
- it as StepPanel,
877
- lt as StepPanels,
878
- ut as Stepper,
879
- st as Table,
912
+ lt as StepList,
913
+ dt as StepPanel,
914
+ it as StepPanels,
915
+ ot as Stepper,
916
+ ut as Table,
880
917
  Be as TableSizeUtils,
881
- Ye as TextColorUtils,
882
- pt as dendelionSafeList
918
+ Qe as TextColorUtils,
919
+ bt as dendelionSafeList
883
920
  };
@@ -1,5 +1,5 @@
1
- (function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.DendelionUI={},d.Vue))})(this,function(d,e){"use strict";var L=(t=>(t[t.Primary=0]="Primary",t[t.PrimaryContent=1]="PrimaryContent",t[t.Secondary=2]="Secondary",t[t.SecondaryContent=3]="SecondaryContent",t[t.Accent=4]="Accent",t[t.AccentContent=5]="AccentContent",t[t.Neutral=6]="Neutral",t[t.NeutralContent=7]="NeutralContent",t[t.Base100=8]="Base100",t[t.Base200=9]="Base200",t[t.Base300=10]="Base300",t[t.BaseContent=11]="BaseContent",t[t.Info=12]="Info",t[t.InfoContent=13]="InfoContent",t[t.Success=14]="Success",t[t.SuccessContent=15]="SuccessContent",t[t.Warning=16]="Warning",t[t.WarningContent=17]="WarningContent",t[t.Error=18]="Error",t[t.ErrorContent=19]="ErrorContent",t))(L||{});class U{static toClassName(n){switch(n){case 0:return"bg-primary";case 1:return"bg-primary-content";case 2:return"bg-secondary";case 3:return"bg-secondary-content";case 4:return"bg-accent";case 5:return"bg-accent-content";case 6:return"bg-neutral";case 7:return"bg-neutral-content";case 8:return"base-100";case 9:return"bg-base-200";case 10:return"bg-base-300";case 11:return"bg-base-content";case 12:return"bg-info";case 13:return"bg-info-content";case 14:return"bg-success";case 15:return"bg-success-content";case 16:return"bg-warning";case 17:return"bg-warning-content";case 18:return"bg-error";case 19:return"bg-error-content";default:return"bg-base-content"}}}class q{static toClassName(n){switch(n){case 0:return"btn-primary";case 1:return"btn-primary-content";case 2:return"btn-secondary";case 3:return"btn-secondary-content";case 4:return"btn-accent";case 5:return"btn-accent-content";case 6:return"btn-neutral";case 7:return"btn-neutral-content";case 8:return"base-100";case 9:return"btn-base-200";case 10:return"btn-base-300";case 11:return"btn-base-content";case 12:return"btn-info";case 13:return"btn-info-content";case 14:return"btn-success";case 15:return"btn-success-content";case 16:return"btn-warning";case 17:return"btn-warning-content";case 18:return"btn-error";case 19:return"btn-error-content";default:return"btn-base-content"}}}class Q{static toClassName(n){switch(n){case 0:return"text-primary";case 1:return"text-primary-content";case 2:return"text-secondary";case 3:return"text-secondary-content";case 4:return"text-accent";case 5:return"text-accent-content";case 6:return"text-neutral";case 7:return"text-neutral-content";case 8:return"base-100";case 9:return"text-base-200";case 10:return"text-base-300";case 11:return"text-base-content";case 12:return"text-info";case 13:return"text-info-content";case 14:return"text-success";case 15:return"text-success-content";case 16:return"text-warning";case 17:return"text-warning-content";case 18:return"text-error";case 19:return"text-error-content";default:return"text-base-content"}}}var F=(t=>(t[t.XS=0]="XS",t[t.SM=1]="SM",t[t.MD=2]="MD",t[t.LG=3]="LG",t[t.XL=4]="XL",t[t.TWOXL=5]="TWOXL",t[t.THREEXL=6]="THREEXL",t))(F||{});class A{static toClassName(n){switch(n){case 0:return"btn-xs";case 1:return"btn-sm";case 2:return"btn-md";case 3:return"btn-lg";case 4:return"btn-xl";case 5:return"btn-2xl";case 6:return"btn-3xl";default:return"btn-md"}}}class I{static toClassName(n){switch(n){case 0:return"rounded-xs";case 1:return"rounded-sm";case 2:return"rounded-md";case 3:return"rounded-lg";case 4:return"rounded-xl";case 5:return"rounded-2xl";case 6:return"rounded-3xl";default:return"rounded-md"}}}class X{static toClassName(n){switch(n){case 0:return"table-xs";case 1:return"table-sm";case 2:return"table-md";case 3:return"table-lg";case 4:return"table-xl";case 5:return"table-2xl";case 6:return"table-3xl";default:return"table-md"}}}function K(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v={exports:{}};/*!
1
+ (function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b.DendelionUI={},b.Vue))})(this,function(b,e){"use strict";var L=(t=>(t[t.Primary=0]="Primary",t[t.PrimaryContent=1]="PrimaryContent",t[t.Secondary=2]="Secondary",t[t.SecondaryContent=3]="SecondaryContent",t[t.Accent=4]="Accent",t[t.AccentContent=5]="AccentContent",t[t.Neutral=6]="Neutral",t[t.NeutralContent=7]="NeutralContent",t[t.Base100=8]="Base100",t[t.Base200=9]="Base200",t[t.Base300=10]="Base300",t[t.BaseContent=11]="BaseContent",t[t.Info=12]="Info",t[t.InfoContent=13]="InfoContent",t[t.Success=14]="Success",t[t.SuccessContent=15]="SuccessContent",t[t.Warning=16]="Warning",t[t.WarningContent=17]="WarningContent",t[t.Error=18]="Error",t[t.ErrorContent=19]="ErrorContent",t))(L||{});class U{static toClassName(n){switch(n){case 0:return"bg-primary";case 1:return"bg-primary-content";case 2:return"bg-secondary";case 3:return"bg-secondary-content";case 4:return"bg-accent";case 5:return"bg-accent-content";case 6:return"bg-neutral";case 7:return"bg-neutral-content";case 8:return"base-100";case 9:return"bg-base-200";case 10:return"bg-base-300";case 11:return"bg-base-content";case 12:return"bg-info";case 13:return"bg-info-content";case 14:return"bg-success";case 15:return"bg-success-content";case 16:return"bg-warning";case 17:return"bg-warning-content";case 18:return"bg-error";case 19:return"bg-error-content";default:return"bg-base-content"}}}class q{static toClassName(n){switch(n){case 0:return"btn-primary";case 1:return"btn-primary-content";case 2:return"btn-secondary";case 3:return"btn-secondary-content";case 4:return"btn-accent";case 5:return"btn-accent-content";case 6:return"btn-neutral";case 7:return"btn-neutral-content";case 8:return"base-100";case 9:return"btn-base-200";case 10:return"btn-base-300";case 11:return"btn-base-content";case 12:return"btn-info";case 13:return"btn-info-content";case 14:return"btn-success";case 15:return"btn-success-content";case 16:return"btn-warning";case 17:return"btn-warning-content";case 18:return"btn-error";case 19:return"btn-error-content";default:return"btn-base-content"}}}class Q{static toClassName(n){switch(n){case 0:return"text-primary";case 1:return"text-primary-content";case 2:return"text-secondary";case 3:return"text-secondary-content";case 4:return"text-accent";case 5:return"text-accent-content";case 6:return"text-neutral";case 7:return"text-neutral-content";case 8:return"base-100";case 9:return"text-base-200";case 10:return"text-base-300";case 11:return"text-base-content";case 12:return"text-info";case 13:return"text-info-content";case 14:return"text-success";case 15:return"text-success-content";case 16:return"text-warning";case 17:return"text-warning-content";case 18:return"text-error";case 19:return"text-error-content";default:return"text-base-content"}}}var F=(t=>(t[t.XS=0]="XS",t[t.SM=1]="SM",t[t.MD=2]="MD",t[t.LG=3]="LG",t[t.XL=4]="XL",t[t.TWOXL=5]="TWOXL",t[t.THREEXL=6]="THREEXL",t))(F||{});class A{static toClassName(n){switch(n){case 0:return"btn-xs";case 1:return"btn-sm";case 2:return"btn-md";case 3:return"btn-lg";case 4:return"btn-xl";case 5:return"btn-2xl";case 6:return"btn-3xl";default:return"btn-md"}}}class I{static toClassName(n){switch(n){case 0:return"rounded-xs";case 1:return"rounded-sm";case 2:return"rounded-md";case 3:return"rounded-lg";case 4:return"rounded-xl";case 5:return"rounded-2xl";case 6:return"rounded-3xl";default:return"rounded-md"}}}class X{static toClassName(n){switch(n){case 0:return"table-xs";case 1:return"table-sm";case 2:return"table-md";case 3:return"table-lg";case 4:return"table-xl";case 5:return"table-2xl";case 6:return"table-3xl";default:return"table-md"}}}function K(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v={exports:{}};/*!
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 ee(){return j||(j=1,function(t){(function(){var n={}.hasOwnProperty;function o(){for(var r="",l=0;l<arguments.length;l++){var m=arguments[l];m&&(r=s(r,c(m)))}return r}function c(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return o.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var m in r)n.call(r,m)&&r[m]&&(l=s(l,m));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(o.default=o,t.exports=o):window.classNames=o})()}(v)),v.exports}var te=ee();const V=K(te),ne=["type","disabled"],re={class:"group-[.is-loading]:text-transparent"},ae=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,o=e.computed(()=>V("btn","group",q.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(c,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>c.click?c.click:void 0),class:e.normalizeClass(o.value),type:c.type,disabled:c.disabled||c.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",re,[e.renderSlot(c.$slots,"default")])],10,ne))}}),D=(t,n)=>{const o=t.__vccOpts||t;for(const[c,s]of n)o[c]=s;return o},se={};function oe(t,n){return e.openBlock(),e.createElementBlock("button")}const ce=D(se,[["render",oe]]),le=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,o=e.ref(V("card",U.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?I.toClassName(n.roundedSize):""));return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}}),ie={},ue={class:"card-body"};function de(t,n){return e.openBlock(),e.createElementBlock("div",ue,[e.renderSlot(t.$slots,"default")])}const fe=D(ie,[["render",de]]),pe=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),me=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,o=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}});var R={},W={},H;function G(){return H||(H=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,o=/ł/g,c=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(o,"l").replace(c,"n").trim()}}(W)),W}var M={},Z;function J(){if(Z)return M;Z=1,M.__esModule=!0,M.aggressiveFuzzyMatch=N,M.createFuzzySearchImpl=g,M.experimentalSmartFuzzyMatch=T,M.fuzzyMatchImpl=_;var t=n(G());function n(a){return a&&a.__esModule?a:{default:a}}var o=Number.MAX_SAFE_INTEGER,c=function(i,y){return i.score-y.score},s=function(i,y){return i[0]-y[0]},r=new Set(`  []()-–—'"“”`.split(""));function l(a){return r.has(a)}function m(a,i,y,k,u,B,b){if(a===k)return[0,[[0,a.length-1]]];var p=k.length,h=i.length,x=u.length;if(i===u)return[.1,[[0,h-1]]];if(i.startsWith(u))return[.5,[[0,x-1]]];var E=a.indexOf(k);if(E>-1&&l(a[E-1]))return[.9,[[E,E+p-1]]];var S=i.indexOf(u);if(S>-1&&l(i[S-1]))return[1,[[S,S+p-1]]];var C=B.length;if(C>1&&B.every(function(z){return y.has(z)})){var w=1.5+C*.2;return[w,B.map(function(z){var $=i.indexOf(z);return[$,$+z.length-1]}).sort(s)]}return S>-1?[2,[[S,S+p-1]]]:b==="aggressive"?N(i,u):b==="smart"?T(i,u):null}function N(a,i){for(var y=a.length,k=i.length,u=0,B=i[u],b=[],p=-1,h=-2,x=0;x<y;x+=1)if(a[x]===B){if(x!==h+1&&(p>=0&&b.push([p,h]),p=x),h=x,u+=1,u===k)return b.push([p,h]),f(b,a);B=i[u]}return null}function T(a,i){for(var y=a.length,k=[],u=0,B=i[u],b=-1,p=-2;;){var h=a.indexOf(B,p+1);if(h===-1)break;if(h===0||l(a[h-1]))b=h;else{var x=i.length-u,E=a.length-h,S=Math.min(3,x,E),C=i.slice(u,u+S);if(a.slice(h,h+S)===C)b=h;else{p+=1;continue}}for(p=b;p<y&&a[p]===B;p+=1)u+=1,B=i[u];if(p-=1,k.push([b,p]),u===i.length)return f(k,a)}return null}function f(a,i){var y=2;return a.forEach(function(k){var u=k[0],B=k[1],b=B-u+1,p=u===0||i[u]===" "||i[u-1]===" ",h=B===i.length-1||i[B]===" "||i[B+1]===" ",x=p&&h;x?y+=.2:p?y+=.4:b>=3?y+=.8:y+=1.6}),[y,a]}function _(a,i){var y=(0,t.default)(i),k=y.split(" "),u=(0,t.default)(a),B=new Set(u.split(" ")),b=m(a,u,B,i,y,k,"smart");return b?{item:a,score:b[0],matches:[b[1]]}:null}function g(a,i){var y=i.strategy,k=y===void 0?"aggressive":y,u=i.getText,B=a.map(function(b){var p;if(u)p=u(b);else{var h=i.key?b[i.key]:b;p=[h]}var x=p.map(function(E){var S=E||"",C=(0,t.default)(S),w=new Set(C.split(" "));return[S,C,w]});return[b,x]});return function(b){var p=[],h=(0,t.default)(b),x=h.split(" ");return h.length?(B.forEach(function(E){for(var S=E[0],C=E[1],w=o,z=[],$=0,Pe=C.length;$<Pe;$+=1){var O=C[$],Ue=O[0],qe=O[1],Ae=O[2],P=m(Ue,qe,Ae,b,h,x,k);P?(w=Math.min(w,P[0]),z.push(P[1])):z.push(null)}w<o&&p.push({item:S,score:w,matches:z})}),p.sort(c),p):[]}}return M}var Y;function be(){return Y||(Y=1,function(t){t.__esModule=!0,t.default=c,t.fuzzyMatch=s;var n=o(G());t.normalizeText=n.default;function o(r){return r&&r.__esModule?r:{default:r}}function c(r,l){return l===void 0&&(l={}),J().createFuzzySearchImpl(r,l)}function s(r,l){return J().fuzzyMatchImpl(r,l)}}(R)),R}var ge=be();const he=K(ge),ye={key:0},_e=["colspan"],Be=["innerHTML"],ke=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:F.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{}},setup(t){const n=e.ref([]),o=e.ref([]),c=e.ref(null),s=t,r=e.ref(V("table",X.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),l=(f,_)=>String(!f||typeof f!="object"?f:_.split(".").reduce((g,a)=>g&&(typeof g=="object"?g[a]:g),f)),m=(f,_)=>_.render===void 0?{}:_.render(l(f,_.data),f).props,N=f=>f&&typeof f=="object"&&"then"in f?e.defineAsyncComponent(()=>f):typeof f=="function"?e.defineAsyncComponent(f):f;e.onMounted(()=>{n.value=s.dataSource,o.value=s.dataSource}),e.watch(()=>s.dataSource,f=>{n.value=f,o.value=f},{immediate:!0}),e.watch(()=>s.searchValue,f=>{if(s.searchFunction){o.value=s.searchFunction(f??"");return}o.value=f?T(f):n.value},{immediate:!0});const T=f=>{const _=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(a=>{const i=n.value.map(u=>l(u,a)),k=he(i)(f);for(const u of k){const B=n.value.filter(b=>l(b,a)===u.item);_.push(...B)}}),_):[]};return(f,_)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:c,class:e.normalizeClass(r.value)},[e.createElementVNode("thead",null,[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))])]),e.createElementVNode("tbody",null,[o.value.length===0?(e.openBlock(),e.createElementBlock("tr",ye,[e.createElementVNode("td",{colspan:s.columns.length}," No data found ",8,_e)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.value,g=>(e.openBlock(),e.createElementBlock("tr",{key:String(g)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,a=>(e.openBlock(),e.createElementBlock("td",{key:a.title},[a.render?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l(g,a.data)),1)],64)),typeof a.render=="function"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[typeof a.render(l(g,a.data),g)=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:a.render(l(g,a.data),g)},null,8,Be)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(a.render(l(g,a.data),g).component)),e.mergeProps({key:1,ref_for:!0},m(g,a)),null,16))],64)):e.createCommentVNode("",!0)]))),128))]))),128))])],2))}}),xe=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:o}){const c=t,s=e.ref(c.value),r=o,l=m=>{s.value=m,r("update:value",m)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>c.value,m=>{s.value=m}),n({updateValue:l}),(m,N)=>e.renderSlot(m.$slots,"default",{updateValue:l})}}),Se=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,o=e.inject("stepper"),c=e.ref("");return e.watch(()=>o==null?void 0:o.value.value,s=>{s&&n.value&&(c.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{o&&(c.value=o.value.value===n.value?"step-primary":"",Number(o.value.value)>=Number(n.value)&&(c.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",c.value])},[e.renderSlot(s.$slots,"default")],2))}}),Ee={},Ce={class:"steps"};function Ne(t,n){return e.openBlock(),e.createElementBlock("ul",Ce,[e.renderSlot(t.$slots,"default")])}const we=D(Ee,[["render",Ne]]),ze={key:0},Me=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(o,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var s,r;return[(s=e.unref(n))!=null&&s.value?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(o.$slots,"default",{currentStep:(r=e.unref(n))==null?void 0:r.value})])):e.createCommentVNode("",!0)]}),_:3}))}}),Ve={key:0},$e=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const o=e.computed(()=>c==null?void 0:c.value.value),c=e.inject("stepper"),s=r=>{c&&c.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===o.value?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),Te={key:0,method:"dialog"},Le=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:o}){const c=e.ref(null),s=o,r=t,l=e.ref(V("modal-box",r.extraBoxClasses)),m=e.ref(V("modal",{"overflow-visible":r.overflow})),N=e.ref(V("btn",A.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{var _;(_=c.value)==null||_.showModal()},closeModal:()=>{var _;(_=c.value)==null||_.close()}}),(_,g)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:c,class:e.normalizeClass([m.value,_.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:g[0]||(g[0]=a=>s("close",a))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[_.closeButton?(e.openBlock(),e.createElementBlock("form",Te,[e.createElementVNode("button",{class:e.normalizeClass(N.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"default")],2),g[1]||(g[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),Fe={class:"hidden w-full max-w-sm lg:flex"},ve={class:"relative mx-3 w-full"},De={class:"w-full max-w-full relative"},Re=["value"],We=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const o=t,c=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),c.value&&c.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,m)=>(e.openBlock(),e.createElementBlock("div",Fe,[e.createElementVNode("label",ve,[m[1]||(m[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content","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",De,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:c,type:"search",placeholder:"Zoeken...",value:o.modelValue,onInput:m[0]||(m[0]=N=>s("update:modelValue",N.target.value)),class:"bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"},null,40,Re)])]),m[2]||(m[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Oe=["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=U,d.Button=ae,d.ButtonColorUtils=q,d.ButtonSizeUtils=A,d.Card=le,d.CardBody=fe,d.CardTitle=pe,d.Color=L,d.Container=me,d.Modal=Le,d.RoundedSizeUtils=I,d.SearchBar=We,d.SimpleButton=ce,d.Size=F,d.Step=Se,d.StepList=we,d.StepPanel=$e,d.StepPanels=Me,d.Stepper=xe,d.Table=ke,d.TableSizeUtils=X,d.TextColorUtils=Q,d.dendelionSafeList=Oe,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
5
+ */var j;function ee(){return j||(j=1,function(t){(function(){var n={}.hasOwnProperty;function o(){for(var a="",u=0;u<arguments.length;u++){var f=arguments[u];f&&(a=s(a,c(f)))}return a}function c(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return o.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var f in a)n.call(a,f)&&a[f]&&(u=s(u,f));return u}function s(a,u){return u?a?a+" "+u:a+u:a}t.exports?(o.default=o,t.exports=o):window.classNames=o})()}(v)),v.exports}var te=ee();const M=K(te),ne=["type","disabled"],re={class:"group-[.is-loading]:text-transparent"},ae=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,o=e.computed(()=>M("btn","group",q.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(c,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=a=>c.click?c.click:void 0),class:e.normalizeClass(o.value),type:c.type,disabled:c.disabled||c.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",re,[e.renderSlot(c.$slots,"default")])],10,ne))}}),R=(t,n)=>{const o=t.__vccOpts||t;for(const[c,s]of n)o[c]=s;return o},se={};function oe(t,n){return e.openBlock(),e.createElementBlock("button")}const ce=R(se,[["render",oe]]),le=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,o=e.ref(M("card",U.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?I.toClassName(n.roundedSize):""));return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}}),ie={},ue={class:"card-body"};function de(t,n){return e.openBlock(),e.createElementBlock("div",ue,[e.renderSlot(t.$slots,"default")])}const fe=R(ie,[["render",de]]),pe=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),me=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,o=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}});var D={},W={},H;function G(){return H||(H=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,o=/ł/g,c=/ñ/g;function s(a){return a.toLowerCase().normalize("NFD").replace(n,"").replace(o,"l").replace(c,"n").trim()}}(W)),W}var z={},Z;function J(){if(Z)return z;Z=1,z.__esModule=!0,z.aggressiveFuzzyMatch=E,z.createFuzzySearchImpl=_,z.experimentalSmartFuzzyMatch=$,z.fuzzyMatchImpl=i;var t=n(G());function n(r){return r&&r.__esModule?r:{default:r}}var o=Number.MAX_SAFE_INTEGER,c=function(l,d){return l.score-d.score},s=function(l,d){return l[0]-d[0]},a=new Set(`  []()-–—'"“”`.split(""));function u(r){return a.has(r)}function f(r,l,d,k,p,h,g){if(r===k)return[0,[[0,r.length-1]]];var m=k.length,y=l.length,B=p.length;if(l===p)return[.1,[[0,y-1]]];if(l.startsWith(p))return[.5,[[0,B-1]]];var S=r.indexOf(k);if(S>-1&&u(r[S-1]))return[.9,[[S,S+m-1]]];var x=l.indexOf(p);if(x>-1&&u(l[x-1]))return[1,[[x,x+m-1]]];var C=h.length;if(C>1&&h.every(function(w){return d.has(w)})){var N=1.5+C*.2;return[N,h.map(function(w){var V=l.indexOf(w);return[V,V+w.length-1]}).sort(s)]}return x>-1?[2,[[x,x+m-1]]]:g==="aggressive"?E(l,p):g==="smart"?$(l,p):null}function E(r,l){for(var d=r.length,k=l.length,p=0,h=l[p],g=[],m=-1,y=-2,B=0;B<d;B+=1)if(r[B]===h){if(B!==y+1&&(m>=0&&g.push([m,y]),m=B),y=B,p+=1,p===k)return g.push([m,y]),T(g,r);h=l[p]}return null}function $(r,l){for(var d=r.length,k=[],p=0,h=l[p],g=-1,m=-2;;){var y=r.indexOf(h,m+1);if(y===-1)break;if(y===0||u(r[y-1]))g=y;else{var B=l.length-p,S=r.length-y,x=Math.min(3,B,S),C=l.slice(p,p+x);if(r.slice(y,y+x)===C)g=y;else{m+=1;continue}}for(m=g;m<d&&r[m]===h;m+=1)p+=1,h=l[p];if(m-=1,k.push([g,m]),p===l.length)return T(k,r)}return null}function T(r,l){var d=2;return r.forEach(function(k){var p=k[0],h=k[1],g=h-p+1,m=p===0||l[p]===" "||l[p-1]===" ",y=h===l.length-1||l[h]===" "||l[h+1]===" ",B=m&&y;B?d+=.2:m?d+=.4:g>=3?d+=.8:d+=1.6}),[d,r]}function i(r,l){var d=(0,t.default)(l),k=d.split(" "),p=(0,t.default)(r),h=new Set(p.split(" ")),g=f(r,p,h,l,d,k,"smart");return g?{item:r,score:g[0],matches:[g[1]]}:null}function _(r,l){var d=l.strategy,k=d===void 0?"aggressive":d,p=l.getText,h=r.map(function(g){var m;if(p)m=p(g);else{var y=l.key?g[l.key]:g;m=[y]}var B=m.map(function(S){var x=S||"",C=(0,t.default)(x),N=new Set(C.split(" "));return[x,C,N]});return[g,B]});return function(g){var m=[],y=(0,t.default)(g),B=y.split(" ");return y.length?(h.forEach(function(S){for(var x=S[0],C=S[1],N=o,w=[],V=0,Ue=C.length;V<Ue;V+=1){var O=C[V],qe=O[0],Ae=O[1],Ie=O[2],P=f(qe,Ae,Ie,g,y,B,k);P?(N=Math.min(N,P[0]),w.push(P[1])):w.push(null)}N<o&&m.push({item:x,score:N,matches:w})}),m.sort(c),m):[]}}return z}var Y;function be(){return Y||(Y=1,function(t){t.__esModule=!0,t.default=c,t.fuzzyMatch=s;var n=o(G());t.normalizeText=n.default;function o(a){return a&&a.__esModule?a:{default:a}}function c(a,u){return u===void 0&&(u={}),J().createFuzzySearchImpl(a,u)}function s(a,u){return J().fuzzyMatchImpl(a,u)}}(D)),D}var ge=be();const he=K(ge),ye={key:0},_e=["colspan"],ke=["onClick"],Be=["innerHTML"],xe=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:F.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),o=e.ref([]),c=e.ref(null),s=t,a=e.ref(M("table",X.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),u=(i,_)=>{s.onRowClick&&s.onRowClick(i,_)},f=(i,_)=>String(!i||typeof i!="object"?i:_.split(".").reduce((r,l)=>r&&(typeof r=="object"?r[l]:r),i)),E=(i,_)=>_.render===void 0?{}:_.render(f(i,_.data),i).props,$=i=>i&&typeof i=="object"&&"then"in i?e.defineAsyncComponent(()=>i):typeof i=="function"?e.defineAsyncComponent(i):i;e.onMounted(()=>{n.value=s.dataSource,o.value=s.dataSource}),e.watch(()=>s.dataSource,i=>{n.value=i,o.value=i},{immediate:!0}),e.watch(()=>s.searchValue,i=>{if(s.searchFunction){o.value=s.searchFunction(i??"");return}o.value=i?T(i):n.value},{immediate:!0});const T=i=>{const _=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(l=>{const d=n.value.map(h=>f(h,l)),p=he(d)(i);for(const h of p){const g=n.value.filter(m=>f(m,l)===h.item);_.push(...g)}}),_):[]};return(i,_)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:c,class:e.normalizeClass(a.value)},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,r=>(e.openBlock(),e.createElementBlock("th",{key:r.title},e.toDisplayString(r.title),1))),128))])]),e.createElementVNode("tbody",null,[o.value.length===0?(e.openBlock(),e.createElementBlock("tr",ye,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,_e)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.value,(r,l)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(s.onRowClick?"hover":""),key:String(r),onClick:d=>u(r,l)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,d=>(e.openBlock(),e.createElementBlock("td",{key:d.title},[d.render?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f(r,d.data)),1)],64)),typeof d.render=="function"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[typeof d.render(f(r,d.data),r)=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:d.render(f(r,d.data),r)},null,8,Be)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent($(d.render(f(r,d.data),r).component)),e.mergeProps({key:1,ref_for:!0},E(r,d)),null,16))],64)):e.createCommentVNode("",!0)]))),128))],10,ke))),128))])],2))}}),Se=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:o}){const c=t,s=e.ref(c.value),a=o,u=f=>{s.value=f,a("update:value",f)};return e.provide("stepper",{value:s,updateValue:u}),e.watch(()=>c.value,f=>{s.value=f}),n({updateValue:u}),(f,E)=>e.renderSlot(f.$slots,"default",{updateValue:u})}}),Ce=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,o=e.inject("stepper"),c=e.ref("");return e.watch(()=>o==null?void 0:o.value.value,s=>{s&&n.value&&(c.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{o&&(c.value=o.value.value===n.value?"step-primary":"",Number(o.value.value)>=Number(n.value)&&(c.value="step-primary"))}),(s,a)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",c.value])},[e.renderSlot(s.$slots,"default")],2))}}),Ee={},Ne={class:"steps"};function we(t,n){return e.openBlock(),e.createElementBlock("ul",Ne,[e.renderSlot(t.$slots,"default")])}const ze=R(Ee,[["render",we]]),Me={key:0},Ve=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(o,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var s,a;return[(s=e.unref(n))!=null&&s.value?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(o.$slots,"default",{currentStep:(a=e.unref(n))==null?void 0:a.value})])):e.createCommentVNode("",!0)]}),_:3}))}}),$e={key:0},Te=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const o=e.computed(()=>c==null?void 0:c.value.value),c=e.inject("stepper"),s=a=>{c&&c.updateValue(a.toString())};return n({activateCallback:s}),(a,u)=>a.value===o.value?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(a.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),Le={key:0,method:"dialog"},Fe=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:o}){const c=e.ref(null),s=o,a=t,u=e.ref(M("modal-box",a.extraBoxClasses)),f=e.ref(M("modal",{"overflow-visible":a.overflow})),E=e.ref(M("btn",A.toClassName(a.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{var i;(i=c.value)==null||i.showModal()},closeModal:()=>{var i;(i=c.value)==null||i.close()}}),(i,_)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:c,class:e.normalizeClass([f.value,i.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:_[0]||(_[0]=r=>s("close",r))},[e.createElementVNode("div",{class:e.normalizeClass(u.value)},[i.closeButton?(e.openBlock(),e.createElementBlock("form",Le,[e.createElementVNode("button",{class:e.normalizeClass(E.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")],2),_[1]||(_[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),ve={class:"hidden w-full max-w-sm lg:flex"},Re={class:"relative mx-3 w-full"},De={class:"relative w-full max-w-full"},We=["value"],Oe=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const o=t,c=e.ref(null),s=n,a=u=>{(u.ctrlKey||u.metaKey)&&u.key.toLowerCase()==="k"&&(u.preventDefault(),c.value&&c.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",a)}),e.onUnmounted(()=>{document.removeEventListener("keydown",a)}),(u,f)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("label",Re,[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",De,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:c,type:"search",placeholder:"Zoeken...",value:o.modelValue,onInput:f[0]||(f[0]=E=>s("update:modelValue",E.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,We)])]),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))])]))}}),Pe=["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"];b.BackgroundColorUtils=U,b.Button=ae,b.ButtonColorUtils=q,b.ButtonSizeUtils=A,b.Card=le,b.CardBody=fe,b.CardTitle=pe,b.Color=L,b.Container=me,b.Modal=Fe,b.RoundedSizeUtils=I,b.SearchBar=Oe,b.SimpleButton=ce,b.Size=F,b.Step=Ce,b.StepList=ze,b.StepPanel=Te,b.StepPanels=Ve,b.Stepper=Se,b.Table=xe,b.TableSizeUtils=X,b.TextColorUtils=Q,b.dendelionSafeList=Pe,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
@@ -1,3 +1,3 @@
1
- export { default as Button } from "./Button.vue";
2
- export { default as SimpleButton } from "./SimpleButton.vue";
3
- export type { ButtonProps, Type } from "./interface";
1
+ export { default as Button } from './Button.vue';
2
+ export { default as SimpleButton } from './SimpleButton.vue';
3
+ export type { ButtonProps, Type } from './interface';
@@ -1,4 +1,4 @@
1
- import { Color } from "@/types";
1
+ import { Color } from '@/types';
2
2
  export type Type = 'button' | 'submit' | 'reset';
3
3
  export type ButtonProps = {
4
4
  type?: Type;
@@ -1,4 +1,4 @@
1
- import { Color, Size } from "@/types";
1
+ import { Color, Size } from '@/types';
2
2
  export type CardProps = {
3
3
  backgroundColor?: Color;
4
4
  shadow?: boolean;
@@ -1,4 +1,4 @@
1
- import { Size } from "@/types";
1
+ import { Size } from '@/types';
2
2
  export type ModalProps = {
3
3
  closeButton?: boolean;
4
4
  overflow?: boolean;
@@ -1,5 +1,5 @@
1
- import { Size } from "@/types";
2
- import { Component } from "vue";
1
+ import { Size } from '@/types';
2
+ import { Component } from 'vue';
3
3
  export type TableProps<T> = {
4
4
  zebra?: boolean;
5
5
  pinRows?: boolean;
@@ -10,6 +10,7 @@ export type TableProps<T> = {
10
10
  ajax?: (params: object) => Promise<object> | string;
11
11
  searchValue?: string;
12
12
  searchFunction?: (searchValue: string) => T[];
13
+ onRowClick?: (row: T, rowIndex: number) => Promise<void> | void;
13
14
  };
14
15
  export type Column<T> = {
15
16
  title: 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.13",
5
+ "version": "0.0.14",
6
6
  "author": "ThatzOkay",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/ThatzOkay/DendelionUI#readme",
@@ -56,24 +56,24 @@
56
56
  "@nozbe/microfuzz": "^1.0.0",
57
57
  "classnames": "^2.5.1",
58
58
  "fuzzysearch": "^1.0.3",
59
- "vue": "^3.5.13"
59
+ "vue": "^3.5.18"
60
60
  },
61
61
  "devDependencies": {
62
- "@vitejs/plugin-vue": "^5.2.4",
62
+ "@vitejs/plugin-vue": "^6.0.1",
63
63
  "@vue/tsconfig": "^0.7.0",
64
64
  "autoprefixer": "^10.4.21",
65
- "cross-env": "^7.0.3",
65
+ "cross-env": "^10.0.0",
66
66
  "daisyui": "^4.12.24",
67
- "eslint": "^9.26.0",
68
- "eslint-plugin-vue": "^9.33.0",
67
+ "eslint": "^9.32.0",
68
+ "eslint-plugin-vue": "^10.3.0",
69
69
  "fluid-tailwind": "^1.0.4",
70
- "prettier": "^3.5.3",
70
+ "prettier": "^3.6.2",
71
71
  "prettier-eslint": "^16.4.2",
72
- "prettier-plugin-tailwindcss": "^0.6.11",
72
+ "prettier-plugin-tailwindcss": "^0.6.14",
73
73
  "rimraf": "^6.0.1",
74
74
  "typescript": "^5.8.3",
75
- "typescript-eslint": "^8.32.0",
76
- "vite": "^6.3.5",
77
- "vue-tsc": "^2.2.10"
75
+ "typescript-eslint": "^8.38.0",
76
+ "vite": "^7.0.6",
77
+ "vue-tsc": "^3.0.4"
78
78
  }
79
79
  }
@@ -11,7 +11,7 @@
11
11
  <tr v-if="filteredDataSource.length === 0">
12
12
  <td :colspan="props.columns.length">No data found</td>
13
13
  </tr>
14
- <tr v-else v-for="row in filteredDataSource" v-bind:key="String(row)">
14
+ <tr :class="props.onRowClick ? 'hover' : ''" v-else v-for="(row, rowIndex) in filteredDataSource" v-bind:key="String(row)" @click="handleRowClick(row as T, rowIndex)">
15
15
  <td v-for="column in props.columns" v-bind:key="column.title">
16
16
  <template v-if="!column.render">
17
17
  {{ getValue(row, column.data) }}
@@ -60,6 +60,12 @@ const tableClasses = ref(
60
60
  }),
61
61
  );
62
62
 
63
+ const handleRowClick = (row: T, rowIndex: number) => {
64
+ if (props.onRowClick) {
65
+ props.onRowClick(row, rowIndex);
66
+ }
67
+ }
68
+
63
69
  //I'll figure pagination later
64
70
  const getValue = (obj: any, keyPath: string): string => {
65
71
  if (!obj || typeof obj !== 'object') return String(obj);
@@ -11,6 +11,7 @@ export type TableProps<T> = {
11
11
  ajax?: (params: object) => Promise<object> | string;
12
12
  searchValue?: string;
13
13
  searchFunction?: (searchValue: string) => T[];
14
+ onRowClick?: (row: T, rowIndex: number) => Promise<void> | void;
14
15
  };
15
16
 
16
17
  export type Column<T> = {