dendelion-ui 0.0.23 → 0.0.24
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.
- package/dist/dendelion-ui.cjs.js +1 -1
- package/dist/dendelion-ui.es.js +142 -142
- package/dist/dendelion-ui.umd.js +1 -1
- package/dist/types/components/button/Button.vue.d.ts +3 -2
- package/dist/types/components/button/SimpleButton.vue.d.ts +2 -1
- package/dist/types/components/card/Card.vue.d.ts +3 -2
- package/dist/types/components/card/CardBody.vue.d.ts +3 -2
- package/dist/types/components/card/CardTitle.vue.d.ts +2 -1
- package/dist/types/components/container/Container.vue.d.ts +3 -2
- package/dist/types/components/modal/Modal.vue.d.ts +3 -2
- package/dist/types/components/search/SearchBar.vue.d.ts +3 -2
- package/dist/types/components/stepper/Step.vue.d.ts +3 -2
- package/dist/types/components/stepper/StepList.vue.d.ts +3 -2
- package/dist/types/components/stepper/StepPanel.vue.d.ts +3 -2
- package/dist/types/components/stepper/StepPanels.vue.d.ts +3 -2
- package/dist/types/components/stepper/Stepper.vue.d.ts +3 -2
- package/dist/types/components/table/Table.vue.d.ts +4 -3
- package/dist/types/components/table/TableColumn.vue.d.ts +4 -3
- package/dist/types/components/table/interface.d.ts +1 -1
- package/dist/types/components/tabs/Tabs.vue.d.ts +3 -2
- package/package.json +12 -12
- package/src/components/table/interface.ts +1 -1
package/dist/dendelion-ui.cjs.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var U;function se(){return U||(U=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(r=s(r,o(d)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var d in r)n.call(r,d)&&r[d]&&(l=s(l,d));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var le=se();const $=Q(le),ce=["type","disabled"],ue={class:"group-[.is-loading]:text-transparent"},ie=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:L.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>$("btn","group",H.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(o,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(a.value),type:o.type,disabled:o.disabled||o.loading},[s[1]||(s[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",ue,[e.renderSlot(o.$slots,"default")])],10,ce))}}),P=(t,n)=>{const a=t.__vccOpts||t;for(const[o,s]of n)a[o]=s;return a},de={};function pe(t,n){return e.openBlock(),e.createElementBlock("button")}const fe=P(de,[["render",pe]]),me=e.defineComponent({__name:"Card",props:{backgroundColor:{default:L.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref($("card",j.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?J.toClassName(n.roundedSize):""));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),be={},ve={class:"card-body"};function he(t,n){return e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(t.$slots,"default")])}const ge=P(be,[["render",he]]),ye=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),ke=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),V=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,o)=>a&&(typeof a=="object"?a[o]:a),t));var W={},O={},A;function ee(){return A||(A=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,a=/ł/g,o=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(o,"n").trim()}}(O)),O}var z={},q;function I(){if(q)return z;q=1,z.__esModule=!0,z.aggressiveFuzzyMatch=_,z.createFuzzySearchImpl=k,z.experimentalSmartFuzzyMatch=v,z.fuzzyMatchImpl=g;var t=n(ee());function n(c){return c&&c.__esModule?c:{default:c}}var a=Number.MAX_SAFE_INTEGER,o=function(u,m){return u.score-m.score},s=function(u,m){return u[0]-m[0]},r=new Set(` []()-–—'"“”`.split(""));function l(c){return r.has(c)}function d(c,u,m,y,i,h,f){if(c===y)return[0,[[0,c.length-1]]];var p=y.length,b=u.length,B=i.length;if(u===i)return[.1,[[0,b-1]]];if(u.startsWith(i))return[.5,[[0,B-1]]];var S=c.indexOf(y);if(S>-1&&l(c[S-1]))return[.9,[[S,S+p-1]]];var x=u.indexOf(i);if(x>-1&&l(u[x-1]))return[1,[[x,x+p-1]]];var E=h.length;if(E>1&&h.every(function(N){return m.has(N)})){var w=1.5+E*.2;return[w,h.map(function(N){var M=u.indexOf(N);return[M,M+N.length-1]}).sort(s)]}return x>-1?[2,[[x,x+p-1]]]:f==="aggressive"?_(u,i):f==="smart"?v(u,i):null}function _(c,u){for(var m=c.length,y=u.length,i=0,h=u[i],f=[],p=-1,b=-2,B=0;B<m;B+=1)if(c[B]===h){if(B!==b+1&&(p>=0&&f.push([p,b]),p=B),b=B,i+=1,i===y)return f.push([p,b]),C(f,c);h=u[i]}return null}function v(c,u){for(var m=c.length,y=[],i=0,h=u[i],f=-1,p=-2;;){var b=c.indexOf(h,p+1);if(b===-1)break;if(b===0||l(c[b-1]))f=b;else{var B=u.length-i,S=c.length-b,x=Math.min(3,B,S),E=u.slice(i,i+x);if(c.slice(b,b+x)===E)f=b;else{p+=1;continue}}for(p=f;p<m&&c[p]===h;p+=1)i+=1,h=u[i];if(p-=1,y.push([f,p]),i===u.length)return C(y,c)}return null}function C(c,u){var m=2;return c.forEach(function(y){var i=y[0],h=y[1],f=h-i+1,p=i===0||u[i]===" "||u[i-1]===" ",b=h===u.length-1||u[h]===" "||u[h+1]===" ",B=p&&b;B?m+=.2:p?m+=.4:f>=3?m+=.8:m+=1.6}),[m,c]}function g(c,u){var m=(0,t.default)(u),y=m.split(" "),i=(0,t.default)(c),h=new Set(i.split(" ")),f=d(c,i,h,u,m,y,"smart");return f?{item:c,score:f[0],matches:[f[1]]}:null}function k(c,u){var m=u.strategy,y=m===void 0?"aggressive":m,i=u.getText,h=c.map(function(f){var p;if(i)p=i(f);else{var b=u.key?f[u.key]:f;p=[b]}var B=p.map(function(S){var x=S||"",E=(0,t.default)(x),w=new Set(E.split(" "));return[x,E,w]});return[f,B]});return function(f){var p=[],b=(0,t.default)(f),B=b.split(" ");return b.length?(h.forEach(function(S){for(var x=S[0],E=S[1],w=a,N=[],M=0,te=E.length;M<te;M+=1){var F=E[M],ne=F[0],re=F[1],ae=F[2],R=d(ne,re,ae,f,b,B,y);R?(w=Math.min(w,R[0]),N.push(R[1])):N.push(null)}w<a&&p.push({item:x,score:w,matches:N})}),p.sort(o),p):[]}}return z}var X;function Be(){return X||(X=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=s;var n=a(ee());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function o(r,l){return l===void 0&&(l={}),I().createFuzzySearchImpl(r,l)}function s(r,l){return I().fuzzyMatchImpl(r,l)}}(W)),W}var _e=Be();const xe=Q(_e),Ce={key:0},Se={key:0},Ee=["innerHTML"],we={key:1},Ne={key:2},K=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(V(n.row,n.column.data),n.row):V(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const o=(r,l)=>l.render===void 0?{}:l.render(V(r,l.data),r).props,s=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,l)=>(e.openBlock(),e.createElementBlock("td",null,[r.column.render?r.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",Ce,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Se,[e.createElementVNode("div",{innerHTML:a.value},null,8,Ee)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(a.value.component)),e.normalizeProps(e.guardReactiveProps(o(r.row,r.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(V)(r.row,r.column.data)),1)],64))]))}}),ze={key:0},Ve={key:1},$e={key:0},Me=["colspan"],Te=["onClick"],Le={key:2},Fe={key:0},Re=["colspan"],De=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:T.MD},customRowClasses:{default:void 0},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),o=e.ref(null),s=t,r=e.ref($(s.customRowClasses,{hover:s.onRowClick})),l=e.ref($("table",Z.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),d=(v,C)=>{s.onRowClick&&s.onRowClick(v,C)};e.onMounted(()=>{n.value=s.dataSource,a.value=s.dataSource}),e.watch(()=>s.dataSource,v=>{n.value=v,a.value=v},{immediate:!0}),e.watch(()=>s.searchValue,v=>{if(s.searchFunction){a.value=s.searchFunction(v??"");return}a.value=v?_(v):n.value},{immediate:!0});const _=v=>{const C=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(k=>{const c=n.value.map(y=>V(y,k)),m=xe(c)(v);for(const y of m){const i=n.value.filter(h=>V(h,k)===y.item);C.push(...i)}}),C):[]};return(v,C)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(l.value)},[v.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",ze,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,g=>(e.openBlock(),e.createElementBlock("th",{key:g.title},e.toDisplayString(g.title),1))),128))])])),v.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ve,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",$e,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,Me)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(g,k)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(r.value),key:JSON.stringify(g),onClick:c=>d(g,k)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,c=>(e.openBlock(),e.createBlock(K,{key:c.data,column:c,row:g,rowIndex:k},null,8,["column","row","rowIndex"]))),128))],10,Te))),128))])),v.horizontal?(e.openBlock(),e.createElementBlock("tbody",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,g=>(e.openBlock(),e.createElementBlock("tr",{key:g.title},[e.createElementVNode("th",null,e.toDisplayString(g.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(k,c)=>(e.openBlock(),e.createBlock(K,{key:c,column:g,row:k,rowIndex:c},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Fe,[e.createElementVNode("td",{colspan:s.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Re)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),We=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const o=t,s=e.ref(o.value),r=a,l=d=>{s.value=d,r("update:value",d)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>o.value,d=>{s.value=d}),n({updateValue:l}),(d,_)=>e.renderSlot(d.$slots,"default",{updateValue:l})}}),Oe=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),o=e.ref("");return e.watch(()=>a?.value.value,s=>{s&&n.value&&(o.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(o.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(s.$slots,"default")],2))}}),Pe={},Ue={class:"steps"};function Ae(t,n){return e.openBlock(),e.createElementBlock("ul",Ue,[e.renderSlot(t.$slots,"default")])}const qe=P(Pe,[["render",Ae]]),Ie={key:0},Xe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ke={key:0},je=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>o?.value.value),o=e.inject("stepper"),s=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===a.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),He={key:0,method:"dialog"},Ge=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:T.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),s=a,r=t,l=e.ref($("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),d=e.ref($("modal")),_=e.ref($("btn",G.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{o.value?.showModal()},closeModal:()=>{o.value?.close()}}),(g,k)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass([d.value,g.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:k[0]||(k[0]=c=>s("close",c))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[g.closeButton?(e.openBlock(),e.createElementBlock("form",He,[e.createElementVNode("button",{class:e.normalizeClass(_.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"default")],2),k[1]||(k[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),Je={class:"hidden w-full max-w-sm lg:flex"},Ze={class:"relative mx-3 w-full"},Ye={class:"relative w-full max-w-full"},Qe=["value"],et=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("label",Ze,[d[1]||(d[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Ye,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:d[0]||(d[0]=_=>s("update:modelValue",_.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Qe)])]),d[2]||(d[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),tt=["name","value"],nt=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:T.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),o=t,s=e.computed(()=>100/o.items.length),r=e.computed(()=>["tabs",o.placement==="top"?"tabs-top":"tabs-bottom",`${Y.toClassName(o.size)}`,{"tabs-box":o.box,"tabs-border":o.border,"tabs-lift":o.lift}]),l=e.ref(o.activeTab??0),d=_=>{l.value=_};return e.watch(()=>o.activeTab,_=>{l.value=_}),n({activeIndex:l,setActiveTab:d}),(_,v)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(C,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:g},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(o.fullWidth?{width:s.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:g,"onUpdate:modelValue":v[0]||(v[0]=k=>l.value=k)},null,8,tt),[[e.vModelRadio,l.value]]),e.createTextVNode(" "+e.toDisplayString(C.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",C.disabled?"tab-disabled":""])},[e.renderSlot(_.$slots,C.slot)],2)],64))),128))],2))}}),rt=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];exports.BackgroundColorUtils=j;exports.Button=ie;exports.ButtonColorUtils=H;exports.ButtonSizeUtils=G;exports.Card=me;exports.CardBody=ge;exports.CardTitle=ye;exports.Color=L;exports.Container=ke;exports.Modal=Ge;exports.RoundedSizeUtils=J;exports.SearchBar=et;exports.SimpleButton=fe;exports.Size=T;exports.Step=Oe;exports.StepList=qe;exports.StepPanel=je;exports.StepPanels=Xe;exports.Stepper=We;exports.Table=De;exports.TableSizeUtils=Z;exports.Tabs=nt;exports.TabsSizeUtils=Y;exports.TextColorUtils=oe;exports.dendelionSafeList=rt;exports.getValue=V;
|
|
5
|
+
*/var U;function se(){return U||(U=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(r=o(r,s(d)))}return r}function s(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var c="";for(var d in r)n.call(r,d)&&r[d]&&(c=o(c,d));return c}function o(r,c){return c?r?r+" "+c:r+c:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var ce=se();const $=Q(ce),le=["type","disabled"],ue={class:"group-[.is-loading]:text-transparent"},ie=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:L.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>$("btn","group",H.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(s,o)=>(e.openBlock(),e.createElementBlock("button",{onClick:o[0]||(o[0]=r=>t.click?t.click:void 0),class:e.normalizeClass(a.value),type:t.type,disabled:t.disabled||t.loading},[o[1]||(o[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",ue,[e.renderSlot(s.$slots,"default")])],10,le))}}),P=(t,n)=>{const a=t.__vccOpts||t;for(const[s,o]of n)a[s]=o;return a},de={};function fe(t,n){return e.openBlock(),e.createElementBlock("button")}const pe=P(de,[["render",fe]]),me=e.defineComponent({__name:"Card",props:{backgroundColor:{default:L.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref($("card",j.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?J.toClassName(n.roundedSize):""));return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(s.$slots,"default")],2))}}),be={},ve={class:"card-body"};function he(t,n){return e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(t.$slots,"default")])}const ge=P(be,[["render",he]]),ye=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:1}))}}),ke=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(s.$slots,"default")],2))}}),V=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,s)=>a&&(typeof a=="object"?a[s]:a),t));var W={},O={},A;function ee(){return A||(A=1,function(t){t.__esModule=!0,t.default=o;var n=/[\u0300-\u036f]/g,a=/ł/g,s=/ñ/g;function o(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(s,"n").trim()}}(O)),O}var z={},q;function I(){if(q)return z;q=1,z.__esModule=!0,z.aggressiveFuzzyMatch=x,z.createFuzzySearchImpl=k,z.experimentalSmartFuzzyMatch=y,z.fuzzyMatchImpl=h;var t=n(ee());function n(l){return l&&l.__esModule?l:{default:l}}var a=Number.MAX_SAFE_INTEGER,s=function(u,m){return u.score-m.score},o=function(u,m){return u[0]-m[0]},r=new Set(` []()-–—'"“”`.split(""));function c(l){return r.has(l)}function d(l,u,m,g,i,v,p){if(l===g)return[0,[[0,l.length-1]]];var f=g.length,b=u.length,B=i.length;if(u===i)return[.1,[[0,b-1]]];if(u.startsWith(i))return[.5,[[0,B-1]]];var S=l.indexOf(g);if(S>-1&&c(l[S-1]))return[.9,[[S,S+f-1]]];var _=u.indexOf(i);if(_>-1&&c(u[_-1]))return[1,[[_,_+f-1]]];var E=v.length;if(E>1&&v.every(function(N){return m.has(N)})){var w=1.5+E*.2;return[w,v.map(function(N){var M=u.indexOf(N);return[M,M+N.length-1]}).sort(o)]}return _>-1?[2,[[_,_+f-1]]]:p==="aggressive"?x(u,i):p==="smart"?y(u,i):null}function x(l,u){for(var m=l.length,g=u.length,i=0,v=u[i],p=[],f=-1,b=-2,B=0;B<m;B+=1)if(l[B]===v){if(B!==b+1&&(f>=0&&p.push([f,b]),f=B),b=B,i+=1,i===g)return p.push([f,b]),C(p,l);v=u[i]}return null}function y(l,u){for(var m=l.length,g=[],i=0,v=u[i],p=-1,f=-2;;){var b=l.indexOf(v,f+1);if(b===-1)break;if(b===0||c(l[b-1]))p=b;else{var B=u.length-i,S=l.length-b,_=Math.min(3,B,S),E=u.slice(i,i+_);if(l.slice(b,b+_)===E)p=b;else{f+=1;continue}}for(f=p;f<m&&l[f]===v;f+=1)i+=1,v=u[i];if(f-=1,g.push([p,f]),i===u.length)return C(g,l)}return null}function C(l,u){var m=2;return l.forEach(function(g){var i=g[0],v=g[1],p=v-i+1,f=i===0||u[i]===" "||u[i-1]===" ",b=v===u.length-1||u[v]===" "||u[v+1]===" ",B=f&&b;B?m+=.2:f?m+=.4:p>=3?m+=.8:m+=1.6}),[m,l]}function h(l,u){var m=(0,t.default)(u),g=m.split(" "),i=(0,t.default)(l),v=new Set(i.split(" ")),p=d(l,i,v,u,m,g,"smart");return p?{item:l,score:p[0],matches:[p[1]]}:null}function k(l,u){var m=u.strategy,g=m===void 0?"aggressive":m,i=u.getText,v=l.map(function(p){var f;if(i)f=i(p);else{var b=u.key?p[u.key]:p;f=[b]}var B=f.map(function(S){var _=S||"",E=(0,t.default)(_),w=new Set(E.split(" "));return[_,E,w]});return[p,B]});return function(p){var f=[],b=(0,t.default)(p),B=b.split(" ");return b.length?(v.forEach(function(S){for(var _=S[0],E=S[1],w=a,N=[],M=0,te=E.length;M<te;M+=1){var F=E[M],ne=F[0],re=F[1],ae=F[2],R=d(ne,re,ae,p,b,B,g);R?(w=Math.min(w,R[0]),N.push(R[1])):N.push(null)}w<a&&f.push({item:_,score:w,matches:N})}),f.sort(s),f):[]}}return z}var X;function Be(){return X||(X=1,function(t){t.__esModule=!0,t.default=s,t.fuzzyMatch=o;var n=a(ee());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function s(r,c){return c===void 0&&(c={}),I().createFuzzySearchImpl(r,c)}function o(r,c){return I().fuzzyMatchImpl(r,c)}}(W)),W}var xe=Be();const _e=Q(xe),Ce={key:0},Se={key:0},Ee=["innerHTML"],we={key:1},Ne={key:2},K=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(V(n.row,n.column.data),n.row):V(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const s=(r,c)=>c.render===void 0?{}:c.render(V(r,c.data),r).props,o=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,c)=>(e.openBlock(),e.createElementBlock("td",null,[t.column.render?t.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",Ce,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Se,[e.createElementVNode("div",{innerHTML:a.value},null,8,Ee)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(a.value.component)),e.normalizeProps(e.guardReactiveProps(s(t.row,t.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(V)(t.row,t.column.data)),1)],64))]))}}),ze={key:0},Ve={key:1},$e={key:0},Me=["colspan"],Te=["onClick"],Le={key:2},Fe={key:0},Re=["colspan"],De=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:T.MD},customRowClasses:{default:void 0},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),s=e.ref(null),o=t,r=e.ref($(o.customRowClasses,{hover:o.onRowClick})),c=e.ref($("table",Z.toClassName(o.size),{"table-zebra":o.zebra,"table-pin-rows":o.pinRows,"table-pin-cols ":o.pinCols})),d=(y,C)=>{o.onRowClick&&o.onRowClick(y,C)};e.onMounted(()=>{n.value=o.dataSource,a.value=o.dataSource}),e.watch(()=>o.dataSource,y=>{n.value=y,a.value=y},{immediate:!0}),e.watch(()=>o.searchValue,y=>{if(o.searchFunction){a.value=o.searchFunction(y??"");return}a.value=y?x(y):n.value},{immediate:!0});const x=y=>{const C=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(k=>{const l=n.value.map(g=>V(g,k)),m=_e(l)(y);for(const g of m){const i=n.value.filter(v=>V(v,k)===g.item);C.push(...i)}}),C):[]};return(y,C)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:s,class:e.normalizeClass(c.value)},[t.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",ze,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,h=>(e.openBlock(),e.createElementBlock("th",{key:h.title},e.toDisplayString(h.title),1))),128))])])),t.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ve,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",$e,[e.createElementVNode("td",{colspan:o.columns.length},"No data found",8,Me)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(h,k)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(r.value),key:JSON.stringify(h),onClick:l=>d(h,k)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,l=>(e.openBlock(),e.createBlock(K,{key:l.data,column:l,row:h,rowIndex:k},null,8,["column","row","rowIndex"]))),128))],10,Te))),128))])),t.horizontal?(e.openBlock(),e.createElementBlock("tbody",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,h=>(e.openBlock(),e.createElementBlock("tr",{key:h.title},[e.createElementVNode("th",null,e.toDisplayString(h.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(k,l)=>(e.openBlock(),e.createBlock(K,{key:l,column:h,row:k,rowIndex:l},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Fe,[e.createElementVNode("td",{colspan:o.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Re)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),We=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const s=t,o=e.ref(s.value),r=a,c=d=>{o.value=d,r("update:value",d)};return e.provide("stepper",{value:o,updateValue:c}),e.watch(()=>s.value,d=>{o.value=d}),n({updateValue:c}),(d,x)=>e.renderSlot(d.$slots,"default",{updateValue:c})}}),Oe=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),s=e.ref("");return e.watch(()=>a?.value.value,o=>{o&&n.value&&(s.value=Number(o)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(s.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(s.value="step-primary"))}),(o,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",s.value])},[e.renderSlot(o.$slots,"default")],2))}}),Pe={},Ue={class:"steps"};function Ae(t,n){return e.openBlock(),e.createElementBlock("ul",Ue,[e.renderSlot(t.$slots,"default")])}const qe=P(Pe,[["render",Ae]]),Ie={key:0},Xe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ke={key:0},je=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>s?.value.value),s=e.inject("stepper"),o=r=>{s&&s.updateValue(r.toString())};return n({activateCallback:o}),(r,c)=>t.value===a.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(r.$slots,"default",{activateCallback:o})])):e.createCommentVNode("",!0)}}),He={key:0,method:"dialog"},Ge=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:T.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const s=e.ref(null),o=a,r=t,c=e.ref($("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),d=e.ref($("modal")),x=e.ref($("btn",G.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{s.value?.showModal()},closeModal:()=>{s.value?.close()}}),(h,k)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:s,class:e.normalizeClass([d.value,h.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:k[0]||(k[0]=l=>o("close",l))},[e.createElementVNode("div",{class:e.normalizeClass(c.value)},[t.closeButton?(e.openBlock(),e.createElementBlock("form",He,[e.createElementVNode("button",{class:e.normalizeClass(x.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default")],2),k[1]||(k[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),Je={class:"hidden w-full max-w-sm lg:flex"},Ze={class:"relative mx-3 w-full"},Ye={class:"relative w-full max-w-full"},Qe=["value"],et=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,s=e.ref(null),o=n,r=c=>{(c.ctrlKey||c.metaKey)&&c.key.toLowerCase()==="k"&&(c.preventDefault(),s.value&&s.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(c,d)=>(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("label",Ze,[d[1]||(d[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Ye,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:s,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:d[0]||(d[0]=x=>o("update:modelValue",x.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Qe)])]),d[2]||(d[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),tt=["name","value"],nt=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:T.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),s=t,o=e.computed(()=>100/s.items.length),r=e.computed(()=>["tabs",s.placement==="top"?"tabs-top":"tabs-bottom",`${Y.toClassName(s.size)}`,{"tabs-box":s.box,"tabs-border":s.border,"tabs-lift":s.lift}]),c=e.ref(s.activeTab??0),d=x=>{c.value=x};return e.watch(()=>s.activeTab,x=>{c.value=x}),n({activeIndex:c,setActiveTab:d}),(x,y)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(C,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(s.fullWidth?{width:o.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:h,"onUpdate:modelValue":y[0]||(y[0]=k=>c.value=k)},null,8,tt),[[e.vModelRadio,c.value]]),e.createTextVNode(" "+e.toDisplayString(C.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",C.disabled?"tab-disabled":""])},[e.renderSlot(x.$slots,C.slot)],2)],64))),128))],2))}}),rt=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];exports.BackgroundColorUtils=j;exports.Button=ie;exports.ButtonColorUtils=H;exports.ButtonSizeUtils=G;exports.Card=me;exports.CardBody=ge;exports.CardTitle=ye;exports.Color=L;exports.Container=ke;exports.Modal=Ge;exports.RoundedSizeUtils=J;exports.SearchBar=et;exports.SimpleButton=pe;exports.Size=T;exports.Step=Oe;exports.StepList=qe;exports.StepPanel=je;exports.StepPanels=Xe;exports.Stepper=We;exports.Table=De;exports.TableSizeUtils=Z;exports.Tabs=nt;exports.TabsSizeUtils=Y;exports.TextColorUtils=oe;exports.dendelionSafeList=rt;exports.getValue=V;
|
package/dist/dendelion-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, computed as I, createElementBlock as i, openBlock as c, normalizeClass as N, createElementVNode as v, renderSlot as T, ref as C, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, createCommentVNode as E, Fragment as R, unref as K, isVNode as ye, normalizeProps as
|
|
1
|
+
import { defineComponent as M, computed as I, createElementBlock as i, openBlock as c, normalizeClass as N, createElementVNode as v, renderSlot as T, ref as C, createBlock as q, resolveDynamicComponent as ee, withCtx as fe, createTextVNode as te, toDisplayString as X, onMounted as H, createCommentVNode as E, Fragment as R, unref as K, isVNode as ye, normalizeProps as xe, guardReactiveProps as _e, defineAsyncComponent as se, watch as U, renderList as P, provide as we, inject as ne, Transition as Se, onUnmounted as ke, normalizeStyle as Be, withDirectives as Ce, vModelRadio as $e } from "vue";
|
|
2
2
|
var re = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(re || {});
|
|
3
3
|
class Me {
|
|
4
4
|
static toClassName(t) {
|
|
@@ -246,11 +246,11 @@ function Ee() {
|
|
|
246
246
|
function r() {
|
|
247
247
|
for (var n = "", o = 0; o < arguments.length; o++) {
|
|
248
248
|
var f = arguments[o];
|
|
249
|
-
f && (n =
|
|
249
|
+
f && (n = a(n, s(f)));
|
|
250
250
|
}
|
|
251
251
|
return n;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function s(n) {
|
|
254
254
|
if (typeof n == "string" || typeof n == "number")
|
|
255
255
|
return n;
|
|
256
256
|
if (typeof n != "object")
|
|
@@ -261,10 +261,10 @@ function Ee() {
|
|
|
261
261
|
return n.toString();
|
|
262
262
|
var o = "";
|
|
263
263
|
for (var f in n)
|
|
264
|
-
t.call(n, f) && n[f] && (o =
|
|
264
|
+
t.call(n, f) && n[f] && (o = a(o, f));
|
|
265
265
|
return o;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function a(n, o) {
|
|
268
268
|
return o ? n ? n + " " + o : n + o : n;
|
|
269
269
|
}
|
|
270
270
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
@@ -295,28 +295,28 @@ const D = /* @__PURE__ */ pe(Fe), We = ["type", "disabled"], Ve = { class: "grou
|
|
|
295
295
|
t.disabled ? "disabled" : ""
|
|
296
296
|
)
|
|
297
297
|
);
|
|
298
|
-
return (
|
|
299
|
-
onClick:
|
|
298
|
+
return (s, a) => (c(), i("button", {
|
|
299
|
+
onClick: a[0] || (a[0] = (n) => e.click ? e.click : void 0),
|
|
300
300
|
class: N(r.value),
|
|
301
|
-
type:
|
|
302
|
-
disabled:
|
|
301
|
+
type: e.type,
|
|
302
|
+
disabled: e.disabled || e.loading
|
|
303
303
|
}, [
|
|
304
|
-
|
|
304
|
+
a[1] || (a[1] = v("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
|
|
305
305
|
v("span", Ve, [
|
|
306
|
-
T(
|
|
306
|
+
T(s.$slots, "default")
|
|
307
307
|
])
|
|
308
308
|
], 10, We));
|
|
309
309
|
}
|
|
310
310
|
}), ae = (e, t) => {
|
|
311
311
|
const r = e.__vccOpts || e;
|
|
312
|
-
for (const [
|
|
313
|
-
r[
|
|
312
|
+
for (const [s, a] of t)
|
|
313
|
+
r[s] = a;
|
|
314
314
|
return r;
|
|
315
315
|
}, De = {};
|
|
316
316
|
function Oe(e, t) {
|
|
317
317
|
return c(), i("button");
|
|
318
318
|
}
|
|
319
|
-
const yt = /* @__PURE__ */ ae(De, [["render", Oe]]),
|
|
319
|
+
const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), xt = /* @__PURE__ */ M({
|
|
320
320
|
__name: "Card",
|
|
321
321
|
props: {
|
|
322
322
|
backgroundColor: { default: re.Primary },
|
|
@@ -335,10 +335,10 @@ const yt = /* @__PURE__ */ ae(De, [["render", Oe]]), _t = /* @__PURE__ */ M({
|
|
|
335
335
|
t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? Te.toClassName(t.roundedSize) : ""
|
|
336
336
|
)
|
|
337
337
|
);
|
|
338
|
-
return (
|
|
338
|
+
return (s, a) => (c(), i("div", {
|
|
339
339
|
class: N(r.value)
|
|
340
340
|
}, [
|
|
341
|
-
T(
|
|
341
|
+
T(s.$slots, "default")
|
|
342
342
|
], 2));
|
|
343
343
|
}
|
|
344
344
|
}), Pe = {}, Ae = { class: "card-body" };
|
|
@@ -347,16 +347,16 @@ function qe(e, t) {
|
|
|
347
347
|
T(e.$slots, "default")
|
|
348
348
|
]);
|
|
349
349
|
}
|
|
350
|
-
const
|
|
350
|
+
const _t = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
|
|
351
351
|
__name: "CardTitle",
|
|
352
352
|
props: {
|
|
353
353
|
is: { default: "h1" },
|
|
354
354
|
text: { default: "" }
|
|
355
355
|
},
|
|
356
356
|
setup(e) {
|
|
357
|
-
return (t, r) => (c(), q(ee(
|
|
357
|
+
return (t, r) => (c(), q(ee(e.is), { class: "card-title" }, {
|
|
358
358
|
default: fe(() => [
|
|
359
|
-
te(X(
|
|
359
|
+
te(X(e.text), 1)
|
|
360
360
|
]),
|
|
361
361
|
_: 1
|
|
362
362
|
}));
|
|
@@ -373,37 +373,37 @@ const xt = /* @__PURE__ */ ae(Pe, [["render", qe]]), wt = /* @__PURE__ */ M({
|
|
|
373
373
|
//To disable the max width in some cases
|
|
374
374
|
t.padding ? "p-6" : ""
|
|
375
375
|
]);
|
|
376
|
-
return (
|
|
376
|
+
return (s, a) => (c(), i("div", {
|
|
377
377
|
class: N(r.value)
|
|
378
378
|
}, [
|
|
379
|
-
T(
|
|
379
|
+
T(s.$slots, "default")
|
|
380
380
|
], 2));
|
|
381
381
|
}
|
|
382
|
-
}), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r,
|
|
382
|
+
}), A = (e, t) => String(!e || typeof e != "object" ? e : t.split(".").reduce((r, s) => r && (typeof r == "object" ? r[s] : r), e));
|
|
383
383
|
var Y = {}, Q = {}, ue;
|
|
384
384
|
function be() {
|
|
385
385
|
return ue || (ue = 1, function(e) {
|
|
386
|
-
e.__esModule = !0, e.default =
|
|
387
|
-
var t = /[\u0300-\u036f]/g, r = /ł/g,
|
|
388
|
-
function
|
|
389
|
-
return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(
|
|
386
|
+
e.__esModule = !0, e.default = a;
|
|
387
|
+
var t = /[\u0300-\u036f]/g, r = /ł/g, s = /ñ/g;
|
|
388
|
+
function a(n) {
|
|
389
|
+
return n.toLowerCase().normalize("NFD").replace(t, "").replace(r, "l").replace(s, "n").trim();
|
|
390
390
|
}
|
|
391
391
|
}(Q)), Q;
|
|
392
392
|
}
|
|
393
393
|
var V = {}, ce;
|
|
394
394
|
function le() {
|
|
395
395
|
if (ce) return V;
|
|
396
|
-
ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch =
|
|
396
|
+
ce = 1, V.__esModule = !0, V.aggressiveFuzzyMatch = k, V.createFuzzySearchImpl = w, V.experimentalSmartFuzzyMatch = _, V.fuzzyMatchImpl = y;
|
|
397
397
|
var e = t(be());
|
|
398
398
|
function t(u) {
|
|
399
399
|
return u && u.__esModule ? u : { default: u };
|
|
400
400
|
}
|
|
401
|
-
var r = Number.MAX_SAFE_INTEGER,
|
|
401
|
+
var r = Number.MAX_SAFE_INTEGER, s = function(l, m) {
|
|
402
402
|
return (
|
|
403
403
|
/*: number*/
|
|
404
404
|
l.score - m.score
|
|
405
405
|
);
|
|
406
|
-
},
|
|
406
|
+
}, a = function(l, m) {
|
|
407
407
|
return (
|
|
408
408
|
/*: number*/
|
|
409
409
|
l[0] - m[0]
|
|
@@ -412,7 +412,7 @@ function le() {
|
|
|
412
412
|
function o(u) {
|
|
413
413
|
return n.has(u);
|
|
414
414
|
}
|
|
415
|
-
function f(u, l, m, x, d,
|
|
415
|
+
function f(u, l, m, x, d, g, b) {
|
|
416
416
|
if (u === x)
|
|
417
417
|
return [0, [[0, u.length - 1]]];
|
|
418
418
|
var p = x.length, h = l.length, S = d.length;
|
|
@@ -426,30 +426,30 @@ function le() {
|
|
|
426
426
|
var B = l.indexOf(d);
|
|
427
427
|
if (B > -1 && o(l[B - 1]))
|
|
428
428
|
return [1, [[B, B + p - 1]]];
|
|
429
|
-
var L =
|
|
430
|
-
if (L > 1 &&
|
|
429
|
+
var L = g.length;
|
|
430
|
+
if (L > 1 && g.every(function(W) {
|
|
431
431
|
return m.has(W);
|
|
432
432
|
})) {
|
|
433
433
|
var F = 1.5 + L * 0.2;
|
|
434
|
-
return [F,
|
|
434
|
+
return [F, g.map(function(W) {
|
|
435
435
|
var O = l.indexOf(W);
|
|
436
436
|
return [O, O + W.length - 1];
|
|
437
|
-
}).sort(
|
|
437
|
+
}).sort(a)];
|
|
438
438
|
}
|
|
439
|
-
return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ?
|
|
439
|
+
return B > -1 ? [2, [[B, B + p - 1]]] : b === "aggressive" ? k(l, d) : b === "smart" ? _(l, d) : null;
|
|
440
440
|
}
|
|
441
441
|
function k(u, l) {
|
|
442
|
-
for (var m = u.length, x = l.length, d = 0,
|
|
443
|
-
if (u[S] ===
|
|
442
|
+
for (var m = u.length, x = l.length, d = 0, g = l[d], b = [], p = -1, h = -2, S = 0; S < m; S += 1)
|
|
443
|
+
if (u[S] === g) {
|
|
444
444
|
if (S !== h + 1 && (p >= 0 && b.push([p, h]), p = S), h = S, d += 1, d === x)
|
|
445
445
|
return b.push([p, h]), $(b, u);
|
|
446
|
-
|
|
446
|
+
g = l[d];
|
|
447
447
|
}
|
|
448
448
|
return null;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
for (var m = u.length, x = [], d = 0,
|
|
452
|
-
var h = u.indexOf(
|
|
450
|
+
function _(u, l) {
|
|
451
|
+
for (var m = u.length, x = [], d = 0, g = l[d], b = -1, p = -2; ; ) {
|
|
452
|
+
var h = u.indexOf(g, p + 1);
|
|
453
453
|
if (h === -1)
|
|
454
454
|
break;
|
|
455
455
|
if (h === 0 || o(u[h - 1]))
|
|
@@ -463,8 +463,8 @@ function le() {
|
|
|
463
463
|
continue;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
for (p = b; p < m && u[p] ===
|
|
467
|
-
d += 1,
|
|
466
|
+
for (p = b; p < m && u[p] === g; p += 1)
|
|
467
|
+
d += 1, g = l[d];
|
|
468
468
|
if (p -= 1, x.push([b, p]), d === l.length)
|
|
469
469
|
return $(x, u);
|
|
470
470
|
}
|
|
@@ -473,12 +473,12 @@ function le() {
|
|
|
473
473
|
function $(u, l) {
|
|
474
474
|
var m = 2;
|
|
475
475
|
return u.forEach(function(x) {
|
|
476
|
-
var d = x[0],
|
|
476
|
+
var d = x[0], g = x[1], b = g - d + 1, p = d === 0 || l[d] === " " || l[d - 1] === " ", h = g === l.length - 1 || l[g] === " " || l[g + 1] === " ", S = p && h;
|
|
477
477
|
S ? m += 0.2 : p ? m += 0.4 : b >= 3 ? m += 0.8 : m += 1.6;
|
|
478
478
|
}), [m, u];
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u),
|
|
480
|
+
function y(u, l) {
|
|
481
|
+
var m = (0, e.default)(l), x = m.split(" "), d = (0, e.default)(u), g = new Set(d.split(" ")), b = f(u, d, g, l, m, x, "smart");
|
|
482
482
|
return b ? {
|
|
483
483
|
item: u,
|
|
484
484
|
score: b[0],
|
|
@@ -486,7 +486,7 @@ function le() {
|
|
|
486
486
|
} : null;
|
|
487
487
|
}
|
|
488
488
|
function w(u, l) {
|
|
489
|
-
var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText,
|
|
489
|
+
var m = l.strategy, x = m === void 0 ? "aggressive" : m, d = l.getText, g = u.map(function(b) {
|
|
490
490
|
var p;
|
|
491
491
|
if (d)
|
|
492
492
|
p = d(b);
|
|
@@ -502,7 +502,7 @@ function le() {
|
|
|
502
502
|
});
|
|
503
503
|
return function(b) {
|
|
504
504
|
var p = [], h = (0, e.default)(b), S = h.split(" ");
|
|
505
|
-
return h.length ? (
|
|
505
|
+
return h.length ? (g.forEach(function(z) {
|
|
506
506
|
for (var B = z[0], L = z[1], F = r, W = [], O = 0, ve = L.length; O < ve; O += 1) {
|
|
507
507
|
var j = L[O], me = j[0], he = j[1], ge = j[2], J = f(me, he, ge, b, h, S, x);
|
|
508
508
|
J ? (F = Math.min(F, J[0]), W.push(J[1])) : W.push(null);
|
|
@@ -512,7 +512,7 @@ function le() {
|
|
|
512
512
|
score: F,
|
|
513
513
|
matches: W
|
|
514
514
|
});
|
|
515
|
-
}), p.sort(
|
|
515
|
+
}), p.sort(s), p) : [];
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
return V;
|
|
@@ -520,16 +520,16 @@ function le() {
|
|
|
520
520
|
var ie;
|
|
521
521
|
function Ie() {
|
|
522
522
|
return ie || (ie = 1, function(e) {
|
|
523
|
-
e.__esModule = !0, e.default =
|
|
523
|
+
e.__esModule = !0, e.default = s, e.fuzzyMatch = a;
|
|
524
524
|
var t = r(be());
|
|
525
525
|
e.normalizeText = t.default;
|
|
526
526
|
function r(n) {
|
|
527
527
|
return n && n.__esModule ? n : { default: n };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function s(n, o) {
|
|
530
530
|
return o === void 0 && (o = {}), le().createFuzzySearchImpl(n, o);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function a(n, o) {
|
|
533
533
|
return le().fuzzyMatchImpl(n, o);
|
|
534
534
|
}
|
|
535
535
|
}(Y)), Y;
|
|
@@ -547,20 +547,20 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
547
547
|
H(() => {
|
|
548
548
|
r.value && typeof r.value == "object" && "then" in r.value && console.warn("Async component detected in TableColumn, this may cause issues with rendering.");
|
|
549
549
|
});
|
|
550
|
-
const
|
|
550
|
+
const s = (n, o) => o.render === void 0 ? {} : o.render(A(n, o.data), n).props, a = (n) => (console.log("getComponent", n), n && typeof n == "object" && "then" in n ? se(() => n) : typeof n == "function" ? se(n) : n);
|
|
551
551
|
return (n, o) => (c(), i("td", null, [
|
|
552
|
-
|
|
552
|
+
e.column.render ? e.row ? (c(), i(R, { key: 1 }, [
|
|
553
553
|
r.value ? (c(), i("div", Ke, [
|
|
554
554
|
typeof r.value == "string" ? (c(), i("div", He, [
|
|
555
555
|
v("div", { innerHTML: r.value }, null, 8, Ge)
|
|
556
556
|
])) : ye(r.value) ? (c(), i("div", je, [
|
|
557
557
|
(c(), q(ee(r.value)))
|
|
558
558
|
])) : (c(), i("div", Je, [
|
|
559
|
-
(c(), q(ee(
|
|
559
|
+
(c(), q(ee(a(r.value.component)), xe(_e(s(e.row, e.column))), null, 16))
|
|
560
560
|
]))
|
|
561
561
|
])) : E("", !0)
|
|
562
562
|
], 64)) : E("", !0) : (c(), i(R, { key: 0 }, [
|
|
563
|
-
te(X(K(A)(
|
|
563
|
+
te(X(K(A)(e.row, e.column.data)), 1)
|
|
564
564
|
], 64))
|
|
565
565
|
]));
|
|
566
566
|
}
|
|
@@ -581,92 +581,92 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
581
581
|
onRowClick: {}
|
|
582
582
|
},
|
|
583
583
|
setup(e) {
|
|
584
|
-
const t = C([]), r = C([]),
|
|
585
|
-
|
|
586
|
-
{ hover:
|
|
584
|
+
const t = C([]), r = C([]), s = C(null), a = e, n = C(D(
|
|
585
|
+
a.customRowClasses,
|
|
586
|
+
{ hover: a.onRowClick }
|
|
587
587
|
)), o = C(
|
|
588
|
-
D("table", Le.toClassName(
|
|
589
|
-
"table-zebra":
|
|
590
|
-
"table-pin-rows":
|
|
591
|
-
"table-pin-cols ":
|
|
588
|
+
D("table", Le.toClassName(a.size), {
|
|
589
|
+
"table-zebra": a.zebra,
|
|
590
|
+
"table-pin-rows": a.pinRows,
|
|
591
|
+
"table-pin-cols ": a.pinCols
|
|
592
592
|
})
|
|
593
|
-
), f = (
|
|
594
|
-
|
|
593
|
+
), f = (_, $) => {
|
|
594
|
+
a.onRowClick && a.onRowClick(_, $);
|
|
595
595
|
};
|
|
596
596
|
H(() => {
|
|
597
|
-
t.value =
|
|
597
|
+
t.value = a.dataSource, r.value = a.dataSource;
|
|
598
598
|
}), U(
|
|
599
|
-
() =>
|
|
600
|
-
(
|
|
601
|
-
t.value =
|
|
599
|
+
() => a.dataSource,
|
|
600
|
+
(_) => {
|
|
601
|
+
t.value = _, r.value = _;
|
|
602
602
|
},
|
|
603
603
|
{ immediate: !0 }
|
|
604
604
|
), U(
|
|
605
|
-
() =>
|
|
606
|
-
(
|
|
607
|
-
if (
|
|
608
|
-
r.value =
|
|
605
|
+
() => a.searchValue,
|
|
606
|
+
(_) => {
|
|
607
|
+
if (a.searchFunction) {
|
|
608
|
+
r.value = a.searchFunction(_ ?? "");
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
|
-
r.value =
|
|
611
|
+
r.value = _ ? k(_) : t.value;
|
|
612
612
|
},
|
|
613
613
|
{ immediate: !0 }
|
|
614
614
|
);
|
|
615
|
-
const k = (
|
|
615
|
+
const k = (_) => {
|
|
616
616
|
const $ = [];
|
|
617
617
|
return t.value.length > 0 ? (Object.keys(t.value[0]).forEach((w) => {
|
|
618
|
-
const u = t.value.map((x) => A(x, w)), m = Ue(u)(
|
|
618
|
+
const u = t.value.map((x) => A(x, w)), m = Ue(u)(_);
|
|
619
619
|
for (const x of m) {
|
|
620
|
-
const d = t.value.filter((
|
|
620
|
+
const d = t.value.filter((g) => A(g, w) === x.item);
|
|
621
621
|
$.push(...d);
|
|
622
622
|
}
|
|
623
623
|
}), $) : [];
|
|
624
624
|
};
|
|
625
|
-
return (
|
|
625
|
+
return (_, $) => (c(), i("table", {
|
|
626
626
|
ref_key: "table",
|
|
627
|
-
ref:
|
|
627
|
+
ref: s,
|
|
628
628
|
class: N(o.value)
|
|
629
629
|
}, [
|
|
630
|
-
|
|
630
|
+
e.horizontal ? E("", !0) : (c(), i("thead", Ze, [
|
|
631
631
|
v("tr", null, [
|
|
632
|
-
(c(!0), i(R, null, P(
|
|
633
|
-
key:
|
|
634
|
-
}, X(
|
|
632
|
+
(c(!0), i(R, null, P(a.columns, (y) => (c(), i("th", {
|
|
633
|
+
key: y.title
|
|
634
|
+
}, X(y.title), 1))), 128))
|
|
635
635
|
])
|
|
636
636
|
])),
|
|
637
|
-
|
|
637
|
+
e.horizontal ? E("", !0) : (c(), i("tbody", Ye, [
|
|
638
638
|
r.value.length === 0 ? (c(), i("tr", Qe, [
|
|
639
639
|
v("td", {
|
|
640
|
-
colspan:
|
|
640
|
+
colspan: a.columns.length
|
|
641
641
|
}, "No data found", 8, et)
|
|
642
|
-
])) : (c(!0), i(R, { key: 1 }, P(r.value, (
|
|
642
|
+
])) : (c(!0), i(R, { key: 1 }, P(r.value, (y, w) => (c(), i("tr", {
|
|
643
643
|
class: N(n.value),
|
|
644
|
-
key: JSON.stringify(
|
|
645
|
-
onClick: (u) => f(
|
|
644
|
+
key: JSON.stringify(y),
|
|
645
|
+
onClick: (u) => f(y, w)
|
|
646
646
|
}, [
|
|
647
|
-
(c(!0), i(R, null, P(
|
|
647
|
+
(c(!0), i(R, null, P(a.columns, (u) => (c(), q(de, {
|
|
648
648
|
key: u.data,
|
|
649
649
|
column: u,
|
|
650
|
-
row:
|
|
650
|
+
row: y,
|
|
651
651
|
rowIndex: w
|
|
652
652
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
653
653
|
], 10, tt))), 128))
|
|
654
654
|
])),
|
|
655
|
-
|
|
656
|
-
(c(!0), i(R, null, P(
|
|
657
|
-
key:
|
|
655
|
+
e.horizontal ? (c(), i("tbody", nt, [
|
|
656
|
+
(c(!0), i(R, null, P(a.columns, (y) => (c(), i("tr", {
|
|
657
|
+
key: y.title
|
|
658
658
|
}, [
|
|
659
|
-
v("th", null, X(
|
|
659
|
+
v("th", null, X(y.title), 1),
|
|
660
660
|
(c(!0), i(R, null, P(r.value, (w, u) => (c(), q(de, {
|
|
661
661
|
key: u,
|
|
662
|
-
column:
|
|
662
|
+
column: y,
|
|
663
663
|
row: w,
|
|
664
664
|
rowIndex: u
|
|
665
665
|
}, null, 8, ["column", "row", "rowIndex"]))), 128))
|
|
666
666
|
]))), 128)),
|
|
667
667
|
r.value.length === 0 ? (c(), i("tr", rt, [
|
|
668
668
|
v("td", {
|
|
669
|
-
colspan:
|
|
669
|
+
colspan: a.columns.length + 1,
|
|
670
670
|
style: { "text-align": "center", padding: "1rem" }
|
|
671
671
|
}, " No data found ", 8, at)
|
|
672
672
|
])) : E("", !0)
|
|
@@ -680,16 +680,16 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
680
680
|
},
|
|
681
681
|
emits: ["update:value"],
|
|
682
682
|
setup(e, { expose: t, emit: r }) {
|
|
683
|
-
const
|
|
684
|
-
|
|
683
|
+
const s = e, a = C(s.value), n = r, o = (f) => {
|
|
684
|
+
a.value = f, n("update:value", f);
|
|
685
685
|
};
|
|
686
686
|
return we("stepper", {
|
|
687
|
-
value:
|
|
687
|
+
value: a,
|
|
688
688
|
updateValue: o
|
|
689
689
|
}), U(
|
|
690
|
-
() =>
|
|
690
|
+
() => s.value,
|
|
691
691
|
(f) => {
|
|
692
|
-
|
|
692
|
+
a.value = f;
|
|
693
693
|
}
|
|
694
694
|
), t({
|
|
695
695
|
updateValue: o
|
|
@@ -701,18 +701,18 @@ const Ue = /* @__PURE__ */ pe(Xe), Ke = { key: 0 }, He = { key: 0 }, Ge = ["inne
|
|
|
701
701
|
value: {}
|
|
702
702
|
},
|
|
703
703
|
setup(e) {
|
|
704
|
-
const t = e, r = ne("stepper"),
|
|
704
|
+
const t = e, r = ne("stepper"), s = C("");
|
|
705
705
|
return U(
|
|
706
706
|
() => r?.value.value,
|
|
707
|
-
(
|
|
708
|
-
|
|
707
|
+
(a) => {
|
|
708
|
+
a && t.value && (s.value = Number(a) >= Number(t.value) ? "step-primary" : "");
|
|
709
709
|
}
|
|
710
710
|
), H(() => {
|
|
711
|
-
r && (
|
|
712
|
-
}), (
|
|
713
|
-
class: N(["step",
|
|
711
|
+
r && (s.value = r.value.value === t.value ? "step-primary" : "", Number(r.value.value) >= Number(t.value) && (s.value = "step-primary"));
|
|
712
|
+
}), (a, n) => (c(), i("li", {
|
|
713
|
+
class: N(["step", s.value])
|
|
714
714
|
}, [
|
|
715
|
-
T(
|
|
715
|
+
T(a.$slots, "default")
|
|
716
716
|
], 2));
|
|
717
717
|
}
|
|
718
718
|
}), st = {}, ot = { class: "steps" };
|
|
@@ -725,7 +725,7 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
725
725
|
__name: "StepPanels",
|
|
726
726
|
setup(e) {
|
|
727
727
|
const t = ne("stepper");
|
|
728
|
-
return (r,
|
|
728
|
+
return (r, s) => (c(), q(Se, {
|
|
729
729
|
name: "fade",
|
|
730
730
|
mode: "out-in"
|
|
731
731
|
}, {
|
|
@@ -745,13 +745,13 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
745
745
|
value: {}
|
|
746
746
|
},
|
|
747
747
|
setup(e, { expose: t }) {
|
|
748
|
-
const r = I(() =>
|
|
749
|
-
|
|
748
|
+
const r = I(() => s?.value.value), s = ne("stepper"), a = (n) => {
|
|
749
|
+
s && s.updateValue(n.toString());
|
|
750
750
|
};
|
|
751
751
|
return t({
|
|
752
|
-
activateCallback:
|
|
753
|
-
}), (n, o) =>
|
|
754
|
-
T(n.$slots, "default", { activateCallback:
|
|
752
|
+
activateCallback: a
|
|
753
|
+
}), (n, o) => e.value === r.value ? (c(), i("div", lt, [
|
|
754
|
+
T(n.$slots, "default", { activateCallback: a })
|
|
755
755
|
])) : E("", !0);
|
|
756
756
|
}
|
|
757
757
|
}), it = {
|
|
@@ -767,7 +767,7 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
767
767
|
},
|
|
768
768
|
emits: ["close"],
|
|
769
769
|
setup(e, { expose: t, emit: r }) {
|
|
770
|
-
const
|
|
770
|
+
const s = C(null), a = r, n = e, o = C(D("modal-box", n.extraBoxClasses, {
|
|
771
771
|
"overflow-visible": n.overflow
|
|
772
772
|
})), f = C(
|
|
773
773
|
D("modal")
|
|
@@ -784,29 +784,29 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
784
784
|
);
|
|
785
785
|
return t({
|
|
786
786
|
showModal: () => {
|
|
787
|
-
|
|
787
|
+
s.value?.showModal();
|
|
788
788
|
},
|
|
789
789
|
closeModal: () => {
|
|
790
|
-
|
|
790
|
+
s.value?.close();
|
|
791
791
|
}
|
|
792
|
-
}), (
|
|
792
|
+
}), (y, w) => (c(), i("dialog", {
|
|
793
793
|
ref_key: "modal",
|
|
794
|
-
ref:
|
|
795
|
-
class: N([f.value,
|
|
794
|
+
ref: s,
|
|
795
|
+
class: N([f.value, y.$attrs.class]),
|
|
796
796
|
"aria-modal": "true",
|
|
797
797
|
"aria-hidden": "true",
|
|
798
798
|
role: "dialog",
|
|
799
|
-
onClose: w[0] || (w[0] = (u) =>
|
|
799
|
+
onClose: w[0] || (w[0] = (u) => a("close", u))
|
|
800
800
|
}, [
|
|
801
801
|
v("div", {
|
|
802
802
|
class: N(o.value)
|
|
803
803
|
}, [
|
|
804
|
-
|
|
804
|
+
e.closeButton ? (c(), i("form", it, [
|
|
805
805
|
v("button", {
|
|
806
806
|
class: N(k.value)
|
|
807
807
|
}, "✕", 2)
|
|
808
808
|
])) : E("", !0),
|
|
809
|
-
T(
|
|
809
|
+
T(y.$slots, "default")
|
|
810
810
|
], 2),
|
|
811
811
|
w[1] || (w[1] = v("form", {
|
|
812
812
|
method: "dialog",
|
|
@@ -821,8 +821,8 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
821
821
|
props: ["modelValue"],
|
|
822
822
|
emits: ["update:modelValue"],
|
|
823
823
|
setup(e, { emit: t }) {
|
|
824
|
-
const r = e,
|
|
825
|
-
(o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(),
|
|
824
|
+
const r = e, s = C(null), a = t, n = (o) => {
|
|
825
|
+
(o.ctrlKey || o.metaKey) && o.key.toLowerCase() === "k" && (o.preventDefault(), s.value && s.value.focus());
|
|
826
826
|
};
|
|
827
827
|
return H(() => {
|
|
828
828
|
document.addEventListener("keydown", n);
|
|
@@ -848,11 +848,11 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
848
848
|
v("form", null, [
|
|
849
849
|
v("input", {
|
|
850
850
|
ref_key: "searchInput",
|
|
851
|
-
ref:
|
|
851
|
+
ref: s,
|
|
852
852
|
type: "search",
|
|
853
853
|
placeholder: "Zoeken...",
|
|
854
854
|
value: r.modelValue,
|
|
855
|
-
onInput: f[0] || (f[0] = (k) =>
|
|
855
|
+
onInput: f[0] || (f[0] = (k) => a("update:modelValue", k.target.value)),
|
|
856
856
|
class: "color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"
|
|
857
857
|
}, null, 40, bt)
|
|
858
858
|
])
|
|
@@ -877,37 +877,37 @@ const $t = /* @__PURE__ */ ae(st, [["render", ut]]), ct = { key: 0 }, Mt = /* @_
|
|
|
877
877
|
activeTab: { default: 0 }
|
|
878
878
|
},
|
|
879
879
|
setup(e, { expose: t }) {
|
|
880
|
-
const r = Math.random().toString(36).substring(2, 15),
|
|
880
|
+
const r = Math.random().toString(36).substring(2, 15), s = e, a = I(() => 100 / s.items.length), n = I(() => [
|
|
881
881
|
"tabs",
|
|
882
|
-
|
|
883
|
-
`${Re.toClassName(
|
|
882
|
+
s.placement === "top" ? "tabs-top" : "tabs-bottom",
|
|
883
|
+
`${Re.toClassName(s.size)}`,
|
|
884
884
|
{
|
|
885
|
-
"tabs-box":
|
|
886
|
-
"tabs-border":
|
|
887
|
-
"tabs-lift":
|
|
885
|
+
"tabs-box": s.box,
|
|
886
|
+
"tabs-border": s.border,
|
|
887
|
+
"tabs-lift": s.lift
|
|
888
888
|
}
|
|
889
|
-
]), o = C(
|
|
889
|
+
]), o = C(s.activeTab ?? 0), f = (k) => {
|
|
890
890
|
o.value = k;
|
|
891
891
|
};
|
|
892
|
-
return U(() =>
|
|
892
|
+
return U(() => s.activeTab, (k) => {
|
|
893
893
|
o.value = k;
|
|
894
894
|
}), t({
|
|
895
895
|
activeIndex: o,
|
|
896
896
|
setActiveTab: f
|
|
897
|
-
}), (k,
|
|
897
|
+
}), (k, _) => (c(), i("div", {
|
|
898
898
|
role: "tablist",
|
|
899
899
|
class: N(n.value)
|
|
900
900
|
}, [
|
|
901
|
-
(c(!0), i(R, null, P(
|
|
901
|
+
(c(!0), i(R, null, P(s.items, ($, y) => (c(), i(R, { key: y }, [
|
|
902
902
|
v("label", {
|
|
903
903
|
class: "tab",
|
|
904
|
-
style: Be(
|
|
904
|
+
style: Be(s.fullWidth ? { width: a.value + "%" } : {})
|
|
905
905
|
}, [
|
|
906
906
|
Ce(v("input", {
|
|
907
907
|
type: "radio",
|
|
908
908
|
name: K(r),
|
|
909
|
-
value:
|
|
910
|
-
"onUpdate:modelValue":
|
|
909
|
+
value: y,
|
|
910
|
+
"onUpdate:modelValue": _[0] || (_[0] = (w) => o.value = w)
|
|
911
911
|
}, null, 8, vt), [
|
|
912
912
|
[$e, o.value]
|
|
913
913
|
]),
|
|
@@ -1011,8 +1011,8 @@ export {
|
|
|
1011
1011
|
gt as Button,
|
|
1012
1012
|
ze as ButtonColorUtils,
|
|
1013
1013
|
Ne as ButtonSizeUtils,
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
xt as Card,
|
|
1015
|
+
_t as CardBody,
|
|
1016
1016
|
wt as CardTitle,
|
|
1017
1017
|
re as Color,
|
|
1018
1018
|
St as Container,
|
package/dist/dendelion-ui.umd.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var J;function re(){return J||(J=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(r=s(r,o(f)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var f in r)n.call(r,f)&&r[f]&&(l=s(l,f));return l}function s(r,l){return l?r?r+" "+l:r+l:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var ae=re();const $=G(ae),oe=["type","disabled"],se={class:"group-[.is-loading]:text-transparent"},le=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:R.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>$("btn","group",I.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(o,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:s[0]||(s[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(a.value),type:o.type,disabled:o.disabled||o.loading},[s[1]||(s[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",se,[e.renderSlot(o.$slots,"default")])],10,oe))}}),W=(t,n)=>{const a=t.__vccOpts||t;for(const[o,s]of n)a[o]=s;return a},ce={};function ie(t,n){return e.openBlock(),e.createElementBlock("button")}const de=W(ce,[["render",ie]]),ue=e.defineComponent({__name:"Card",props:{backgroundColor:{default:R.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref($("card",q.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),fe={},pe={class:"card-body"};function me(t,n){return e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(t.$slots,"default")])}const be=W(fe,[["render",me]]),he=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),ge=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(o.$slots,"default")],2))}}),T=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,o)=>a&&(typeof a=="object"?a[o]:a),t));var O={},P={},Z;function Y(){return Z||(Z=1,function(t){t.__esModule=!0,t.default=s;var n=/[\u0300-\u036f]/g,a=/ł/g,o=/ñ/g;function s(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(o,"n").trim()}}(P)),P}var M={},Q;function v(){if(Q)return M;Q=1,M.__esModule=!0,M.aggressiveFuzzyMatch=S,M.createFuzzySearchImpl=_,M.experimentalSmartFuzzyMatch=g,M.fuzzyMatchImpl=k;var t=n(Y());function n(c){return c&&c.__esModule?c:{default:c}}var a=Number.MAX_SAFE_INTEGER,o=function(i,b){return i.score-b.score},s=function(i,b){return i[0]-b[0]},r=new Set(` []()-–—'"“”`.split(""));function l(c){return r.has(c)}function f(c,i,b,B,u,y,m){if(c===B)return[0,[[0,c.length-1]]];var p=B.length,h=i.length,C=u.length;if(i===u)return[.1,[[0,h-1]]];if(i.startsWith(u))return[.5,[[0,C-1]]];var x=c.indexOf(B);if(x>-1&&l(c[x-1]))return[.9,[[x,x+p-1]]];var E=i.indexOf(u);if(E>-1&&l(i[E-1]))return[1,[[E,E+p-1]]];var N=y.length;if(N>1&&y.every(function(V){return b.has(V)})){var z=1.5+N*.2;return[z,y.map(function(V){var L=i.indexOf(V);return[L,L+V.length-1]}).sort(s)]}return E>-1?[2,[[E,E+p-1]]]:m==="aggressive"?S(i,u):m==="smart"?g(i,u):null}function S(c,i){for(var b=c.length,B=i.length,u=0,y=i[u],m=[],p=-1,h=-2,C=0;C<b;C+=1)if(c[C]===y){if(C!==h+1&&(p>=0&&m.push([p,h]),p=C),h=C,u+=1,u===B)return m.push([p,h]),w(m,c);y=i[u]}return null}function g(c,i){for(var b=c.length,B=[],u=0,y=i[u],m=-1,p=-2;;){var h=c.indexOf(y,p+1);if(h===-1)break;if(h===0||l(c[h-1]))m=h;else{var C=i.length-u,x=c.length-h,E=Math.min(3,C,x),N=i.slice(u,u+E);if(c.slice(h,h+E)===N)m=h;else{p+=1;continue}}for(p=m;p<b&&c[p]===y;p+=1)u+=1,y=i[u];if(p-=1,B.push([m,p]),u===i.length)return w(B,c)}return null}function w(c,i){var b=2;return c.forEach(function(B){var u=B[0],y=B[1],m=y-u+1,p=u===0||i[u]===" "||i[u-1]===" ",h=y===i.length-1||i[y]===" "||i[y+1]===" ",C=p&&h;C?b+=.2:p?b+=.4:m>=3?b+=.8:b+=1.6}),[b,c]}function k(c,i){var b=(0,t.default)(i),B=b.split(" "),u=(0,t.default)(c),y=new Set(u.split(" ")),m=f(c,u,y,i,b,B,"smart");return m?{item:c,score:m[0],matches:[m[1]]}:null}function _(c,i){var b=i.strategy,B=b===void 0?"aggressive":b,u=i.getText,y=c.map(function(m){var p;if(u)p=u(m);else{var h=i.key?m[i.key]:m;p=[h]}var C=p.map(function(x){var E=x||"",N=(0,t.default)(E),z=new Set(N.split(" "));return[E,N,z]});return[m,C]});return function(m){var p=[],h=(0,t.default)(m),C=h.split(" ");return h.length?(y.forEach(function(x){for(var E=x[0],N=x[1],z=a,V=[],L=0,tt=N.length;L<tt;L+=1){var U=N[L],nt=U[0],rt=U[1],at=U[2],A=f(nt,rt,at,m,h,C,B);A?(z=Math.min(z,A[0]),V.push(A[1])):V.push(null)}z<a&&p.push({item:E,score:z,matches:V})}),p.sort(o),p):[]}}return M}var ee;function ye(){return ee||(ee=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=s;var n=a(Y());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function o(r,l){return l===void 0&&(l={}),v().createFuzzySearchImpl(r,l)}function s(r,l){return v().fuzzyMatchImpl(r,l)}}(O)),O}var ke=ye();const Be=G(ke),_e={key:0},Ce={key:0},Se=["innerHTML"],Ee={key:1},we={key:2},te=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(T(n.row,n.column.data),n.row):T(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const o=(r,l)=>l.render===void 0?{}:l.render(T(r,l.data),r).props,s=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,l)=>(e.openBlock(),e.createElementBlock("td",null,[r.column.render?r.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",_e,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",{innerHTML:a.value},null,8,Se)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",Ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(a.value.component)),e.normalizeProps(e.guardReactiveProps(o(r.row,r.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(T)(r.row,r.column.data)),1)],64))]))}}),xe={key:0},Ne={key:1},ze={key:0},Ve=["colspan"],$e=["onClick"],Te={key:2},Me={key:0},Le=["colspan"],Fe=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:F.MD},customRowClasses:{default:void 0},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),o=e.ref(null),s=t,r=e.ref($(s.customRowClasses,{hover:s.onRowClick})),l=e.ref($("table",K.toClassName(s.size),{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols})),f=(g,w)=>{s.onRowClick&&s.onRowClick(g,w)};e.onMounted(()=>{n.value=s.dataSource,a.value=s.dataSource}),e.watch(()=>s.dataSource,g=>{n.value=g,a.value=g},{immediate:!0}),e.watch(()=>s.searchValue,g=>{if(s.searchFunction){a.value=s.searchFunction(g??"");return}a.value=g?S(g):n.value},{immediate:!0});const S=g=>{const w=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(_=>{const c=n.value.map(B=>T(B,_)),b=Be(c)(g);for(const B of b){const u=n.value.filter(y=>T(y,_)===B.item);w.push(...u)}}),w):[]};return(g,w)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(l.value)},[g.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",xe,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,k=>(e.openBlock(),e.createElementBlock("th",{key:k.title},e.toDisplayString(k.title),1))),128))])])),g.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ne,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",ze,[e.createElementVNode("td",{colspan:s.columns.length},"No data found",8,Ve)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(k,_)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(r.value),key:JSON.stringify(k),onClick:c=>f(k,_)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,c=>(e.openBlock(),e.createBlock(te,{key:c.data,column:c,row:k,rowIndex:_},null,8,["column","row","rowIndex"]))),128))],10,$e))),128))])),g.horizontal?(e.openBlock(),e.createElementBlock("tbody",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.columns,k=>(e.openBlock(),e.createElementBlock("tr",{key:k.title},[e.createElementVNode("th",null,e.toDisplayString(k.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(_,c)=>(e.openBlock(),e.createBlock(te,{key:c,column:k,row:_,rowIndex:c},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Me,[e.createElementVNode("td",{colspan:s.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Le)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Re=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const o=t,s=e.ref(o.value),r=a,l=f=>{s.value=f,r("update:value",f)};return e.provide("stepper",{value:s,updateValue:l}),e.watch(()=>o.value,f=>{s.value=f}),n({updateValue:l}),(f,S)=>e.renderSlot(f.$slots,"default",{updateValue:l})}}),De=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),o=e.ref("");return e.watch(()=>a?.value.value,s=>{s&&n.value&&(o.value=Number(s)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(o.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(s,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(s.$slots,"default")],2))}}),We={},Oe={class:"steps"};function Pe(t,n){return e.openBlock(),e.createElementBlock("ul",Oe,[e.renderSlot(t.$slots,"default")])}const Ue=W(We,[["render",Pe]]),Ae={key:0},qe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ie={key:0},Xe=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>o?.value.value),o=e.inject("stepper"),s=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:s}),(r,l)=>r.value===a.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(r.$slots,"default",{activateCallback:s})])):e.createCommentVNode("",!0)}}),je={key:0,method:"dialog"},Ke=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:F.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),s=a,r=t,l=e.ref($("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),f=e.ref($("modal")),S=e.ref($("btn",X.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{o.value?.showModal()},closeModal:()=>{o.value?.close()}}),(k,_)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass([f.value,k.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:_[0]||(_[0]=c=>s("close",c))},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[k.closeButton?(e.openBlock(),e.createElementBlock("form",je,[e.createElementVNode("button",{class:e.normalizeClass(S.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"default")],2),_[1]||(_[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),He={class:"hidden w-full max-w-sm lg:flex"},Ge={class:"relative mx-3 w-full"},Je={class:"relative w-full max-w-full"},Ze=["value"],Ye=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=e.ref(null),s=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,f)=>(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("label",Ge,[f[1]||(f[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Je,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:f[0]||(f[0]=S=>s("update:modelValue",S.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Ze)])]),f[2]||(f[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Qe=["name","value"],ve=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:F.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),o=t,s=e.computed(()=>100/o.items.length),r=e.computed(()=>["tabs",o.placement==="top"?"tabs-top":"tabs-bottom",`${H.toClassName(o.size)}`,{"tabs-box":o.box,"tabs-border":o.border,"tabs-lift":o.lift}]),l=e.ref(o.activeTab??0),f=S=>{l.value=S};return e.watch(()=>o.activeTab,S=>{l.value=S}),n({activeIndex:l,setActiveTab:f}),(S,g)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(w,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:k},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(o.fullWidth?{width:s.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:k,"onUpdate:modelValue":g[0]||(g[0]=_=>l.value=_)},null,8,Qe),[[e.vModelRadio,l.value]]),e.createTextVNode(" "+e.toDisplayString(w.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",w.disabled?"tab-disabled":""])},[e.renderSlot(S.$slots,w.slot)],2)],64))),128))],2))}}),et=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];d.BackgroundColorUtils=q,d.Button=le,d.ButtonColorUtils=I,d.ButtonSizeUtils=X,d.Card=ue,d.CardBody=be,d.CardTitle=he,d.Color=R,d.Container=ge,d.Modal=Ke,d.RoundedSizeUtils=j,d.SearchBar=Ye,d.SimpleButton=de,d.Size=F,d.Step=De,d.StepList=Ue,d.StepPanel=Xe,d.StepPanels=qe,d.Stepper=Re,d.Table=Fe,d.TableSizeUtils=K,d.Tabs=ve,d.TabsSizeUtils=H,d.TextColorUtils=ne,d.dendelionSafeList=et,d.getValue=T,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
5
|
+
*/var J;function re(){return J||(J=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var r="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(r=o(r,s(f)))}return r}function s(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var c="";for(var f in r)n.call(r,f)&&r[f]&&(c=o(c,f));return c}function o(r,c){return c?r?r+" "+c:r+c:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(D)),D.exports}var ae=re();const $=G(ae),oe=["type","disabled"],se={class:"group-[.is-loading]:text-transparent"},ce=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:R.Neutral},soft:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean},click:{}},setup(t){const n=t,a=e.computed(()=>$("btn","group",I.toClassName(n.color),n.soft?"btn-soft":"",n.outline?"btn-outline":"",n.loading?"is-loading":"",n.disabled?"disabled":""));return(s,o)=>(e.openBlock(),e.createElementBlock("button",{onClick:o[0]||(o[0]=r=>t.click?t.click:void 0),class:e.normalizeClass(a.value),type:t.type,disabled:t.disabled||t.loading},[o[1]||(o[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",se,[e.renderSlot(s.$slots,"default")])],10,oe))}}),W=(t,n)=>{const a=t.__vccOpts||t;for(const[s,o]of n)a[s]=o;return a},le={};function ie(t,n){return e.openBlock(),e.createElementBlock("button")}const de=W(le,[["render",ie]]),ue=e.defineComponent({__name:"Card",props:{backgroundColor:{default:R.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,a=e.ref($("card",q.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(s.$slots,"default")],2))}}),fe={},me={class:"card-body"};function pe(t,n){return e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(t.$slots,"default")])}const be=W(fe,[["render",pe]]),he=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:1}))}}),ge=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(s.$slots,"default")],2))}}),T=(t,n)=>String(!t||typeof t!="object"?t:n.split(".").reduce((a,s)=>a&&(typeof a=="object"?a[s]:a),t));var O={},P={},Z;function Y(){return Z||(Z=1,function(t){t.__esModule=!0,t.default=o;var n=/[\u0300-\u036f]/g,a=/ł/g,s=/ñ/g;function o(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(a,"l").replace(s,"n").trim()}}(P)),P}var M={},Q;function v(){if(Q)return M;Q=1,M.__esModule=!0,M.aggressiveFuzzyMatch=C,M.createFuzzySearchImpl=_,M.experimentalSmartFuzzyMatch=B,M.fuzzyMatchImpl=y;var t=n(Y());function n(l){return l&&l.__esModule?l:{default:l}}var a=Number.MAX_SAFE_INTEGER,s=function(i,b){return i.score-b.score},o=function(i,b){return i[0]-b[0]},r=new Set(` []()-–—'"“”`.split(""));function c(l){return r.has(l)}function f(l,i,b,k,u,g,p){if(l===k)return[0,[[0,l.length-1]]];var m=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 w=l.indexOf(k);if(w>-1&&c(l[w-1]))return[.9,[[w,w+m-1]]];var S=i.indexOf(u);if(S>-1&&c(i[S-1]))return[1,[[S,S+m-1]]];var N=g.length;if(N>1&&g.every(function(V){return b.has(V)})){var z=1.5+N*.2;return[z,g.map(function(V){var L=i.indexOf(V);return[L,L+V.length-1]}).sort(o)]}return S>-1?[2,[[S,S+m-1]]]:p==="aggressive"?C(i,u):p==="smart"?B(i,u):null}function C(l,i){for(var b=l.length,k=i.length,u=0,g=i[u],p=[],m=-1,h=-2,x=0;x<b;x+=1)if(l[x]===g){if(x!==h+1&&(m>=0&&p.push([m,h]),m=x),h=x,u+=1,u===k)return p.push([m,h]),E(p,l);g=i[u]}return null}function B(l,i){for(var b=l.length,k=[],u=0,g=i[u],p=-1,m=-2;;){var h=l.indexOf(g,m+1);if(h===-1)break;if(h===0||c(l[h-1]))p=h;else{var x=i.length-u,w=l.length-h,S=Math.min(3,x,w),N=i.slice(u,u+S);if(l.slice(h,h+S)===N)p=h;else{m+=1;continue}}for(m=p;m<b&&l[m]===g;m+=1)u+=1,g=i[u];if(m-=1,k.push([p,m]),u===i.length)return E(k,l)}return null}function E(l,i){var b=2;return l.forEach(function(k){var u=k[0],g=k[1],p=g-u+1,m=u===0||i[u]===" "||i[u-1]===" ",h=g===i.length-1||i[g]===" "||i[g+1]===" ",x=m&&h;x?b+=.2:m?b+=.4:p>=3?b+=.8:b+=1.6}),[b,l]}function y(l,i){var b=(0,t.default)(i),k=b.split(" "),u=(0,t.default)(l),g=new Set(u.split(" ")),p=f(l,u,g,i,b,k,"smart");return p?{item:l,score:p[0],matches:[p[1]]}:null}function _(l,i){var b=i.strategy,k=b===void 0?"aggressive":b,u=i.getText,g=l.map(function(p){var m;if(u)m=u(p);else{var h=i.key?p[i.key]:p;m=[h]}var x=m.map(function(w){var S=w||"",N=(0,t.default)(S),z=new Set(N.split(" "));return[S,N,z]});return[p,x]});return function(p){var m=[],h=(0,t.default)(p),x=h.split(" ");return h.length?(g.forEach(function(w){for(var S=w[0],N=w[1],z=a,V=[],L=0,tt=N.length;L<tt;L+=1){var U=N[L],nt=U[0],rt=U[1],at=U[2],A=f(nt,rt,at,p,h,x,k);A?(z=Math.min(z,A[0]),V.push(A[1])):V.push(null)}z<a&&m.push({item:S,score:z,matches:V})}),m.sort(s),m):[]}}return M}var ee;function ye(){return ee||(ee=1,function(t){t.__esModule=!0,t.default=s,t.fuzzyMatch=o;var n=a(Y());t.normalizeText=n.default;function a(r){return r&&r.__esModule?r:{default:r}}function s(r,c){return c===void 0&&(c={}),v().createFuzzySearchImpl(r,c)}function o(r,c){return v().fuzzyMatchImpl(r,c)}}(O)),O}var ke=ye();const Be=G(ke),_e={key:0},xe={key:0},Ce=["innerHTML"],Se={key:1},Ee={key:2},te=e.defineComponent({__name:"TableColumn",props:{column:{},row:{},rowIndex:{}},setup(t){const n=t,a=e.computed(()=>n.column.render?n.column.render(T(n.row,n.column.data),n.row):T(n.row,n.column.data));e.onMounted(()=>{a.value&&typeof a.value=="object"&&"then"in a.value&&console.warn("Async component detected in TableColumn, this may cause issues with rendering.")});const s=(r,c)=>c.render===void 0?{}:c.render(T(r,c.data),r).props,o=r=>(console.log("getComponent",r),r&&typeof r=="object"&&"then"in r?e.defineAsyncComponent(()=>r):typeof r=="function"?e.defineAsyncComponent(r):r);return(r,c)=>(e.openBlock(),e.createElementBlock("td",null,[t.column.render?t.row?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",_e,[typeof a.value=="string"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",{innerHTML:a.value},null,8,Ce)])):e.isVNode(a.value)?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))])):(e.openBlock(),e.createElementBlock("div",Ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(a.value.component)),e.normalizeProps(e.guardReactiveProps(s(t.row,t.column))),null,16))]))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(T)(t.row,t.column.data)),1)],64))]))}}),we={key:0},Ne={key:1},ze={key:0},Ve=["colspan"],$e=["onClick"],Te={key:2},Me={key:0},Le=["colspan"],Fe=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},size:{default:F.MD},customRowClasses:{default:void 0},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{},onRowClick:{}},setup(t){const n=e.ref([]),a=e.ref([]),s=e.ref(null),o=t,r=e.ref($(o.customRowClasses,{hover:o.onRowClick})),c=e.ref($("table",K.toClassName(o.size),{"table-zebra":o.zebra,"table-pin-rows":o.pinRows,"table-pin-cols ":o.pinCols})),f=(B,E)=>{o.onRowClick&&o.onRowClick(B,E)};e.onMounted(()=>{n.value=o.dataSource,a.value=o.dataSource}),e.watch(()=>o.dataSource,B=>{n.value=B,a.value=B},{immediate:!0}),e.watch(()=>o.searchValue,B=>{if(o.searchFunction){a.value=o.searchFunction(B??"");return}a.value=B?C(B):n.value},{immediate:!0});const C=B=>{const E=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(_=>{const l=n.value.map(k=>T(k,_)),b=Be(l)(B);for(const k of b){const u=n.value.filter(g=>T(g,_)===k.item);E.push(...u)}}),E):[]};return(B,E)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:s,class:e.normalizeClass(c.value)},[t.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",we,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,y=>(e.openBlock(),e.createElementBlock("th",{key:y.title},e.toDisplayString(y.title),1))),128))])])),t.horizontal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tbody",Ne,[a.value.length===0?(e.openBlock(),e.createElementBlock("tr",ze,[e.createElementVNode("td",{colspan:o.columns.length},"No data found",8,Ve)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,(y,_)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass(r.value),key:JSON.stringify(y),onClick:l=>f(y,_)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,l=>(e.openBlock(),e.createBlock(te,{key:l.data,column:l,row:y,rowIndex:_},null,8,["column","row","rowIndex"]))),128))],10,$e))),128))])),t.horizontal?(e.openBlock(),e.createElementBlock("tbody",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,y=>(e.openBlock(),e.createElementBlock("tr",{key:y.title},[e.createElementVNode("th",null,e.toDisplayString(y.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(_,l)=>(e.openBlock(),e.createBlock(te,{key:l,column:y,row:_,rowIndex:l},null,8,["column","row","rowIndex"]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("tr",Me,[e.createElementVNode("td",{colspan:o.columns.length+1,style:{"text-align":"center",padding:"1rem"}}," No data found ",8,Le)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Re=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:a}){const s=t,o=e.ref(s.value),r=a,c=f=>{o.value=f,r("update:value",f)};return e.provide("stepper",{value:o,updateValue:c}),e.watch(()=>s.value,f=>{o.value=f}),n({updateValue:c}),(f,C)=>e.renderSlot(f.$slots,"default",{updateValue:c})}}),De=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,a=e.inject("stepper"),s=e.ref("");return e.watch(()=>a?.value.value,o=>{o&&n.value&&(s.value=Number(o)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{a&&(s.value=a.value.value===n.value?"step-primary":"",Number(a.value.value)>=Number(n.value)&&(s.value="step-primary"))}),(o,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",s.value])},[e.renderSlot(o.$slots,"default")],2))}}),We={},Oe={class:"steps"};function Pe(t,n){return e.openBlock(),e.createElementBlock("ul",Oe,[e.renderSlot(t.$slots,"default")])}const Ue=W(We,[["render",Pe]]),Ae={key:0},qe=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(a,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.unref(n)?.value?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(a.$slots,"default",{currentStep:e.unref(n)?.value})])):e.createCommentVNode("",!0)]),_:3}))}}),Ie={key:0},Xe=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const a=e.computed(()=>s?.value.value),s=e.inject("stepper"),o=r=>{s&&s.updateValue(r.toString())};return n({activateCallback:o}),(r,c)=>t.value===a.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(r.$slots,"default",{activateCallback:o})])):e.createCommentVNode("",!0)}}),je={key:0,method:"dialog"},Ke=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:F.SM},extraBoxClasses:{}},emits:["close"],setup(t,{expose:n,emit:a}){const s=e.ref(null),o=a,r=t,c=e.ref($("modal-box",r.extraBoxClasses,{"overflow-visible":r.overflow})),f=e.ref($("modal")),C=e.ref($("btn",X.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{s.value?.showModal()},closeModal:()=>{s.value?.close()}}),(y,_)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:s,class:e.normalizeClass([f.value,y.$attrs.class]),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:_[0]||(_[0]=l=>o("close",l))},[e.createElementVNode("div",{class:e.normalizeClass(c.value)},[t.closeButton?(e.openBlock(),e.createElementBlock("form",je,[e.createElementVNode("button",{class:e.normalizeClass(C.value)},"✕",2)])):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"default")],2),_[1]||(_[1]=e.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[e.createElementVNode("button",null,"close")],-1))],34))}}),He={class:"hidden w-full max-w-sm lg:flex"},Ge={class:"relative mx-3 w-full"},Je={class:"relative w-full max-w-full"},Ze=["value"],Ye=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const a=t,s=e.ref(null),o=n,r=c=>{(c.ctrlKey||c.metaKey)&&c.key.toLowerCase()==="k"&&(c.preventDefault(),s.value&&s.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(c,f)=>(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("label",Ge,[f[1]||(f[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 text-base-content opacity-60","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Je,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:s,type:"search",placeholder:"Zoeken...",value:a.modelValue,onInput:f[0]||(f[0]=C=>o("update:modelValue",C.target.value)),class:"color-[inherit] w-full rounded-xl border-[2px] border-solid border-transparent bg-transparent px-3 py-2 ps-10 focus:border-[2px] focus:border-base-200 focus:outline-none"},null,40,Ze)])]),f[2]||(f[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 hidden gap-1 opacity-50 lg:flex rtl:flex-row-reverse"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Qe=["name","value"],ve=e.defineComponent({__name:"Tabs",props:{box:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lift:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},placement:{default:"top"},size:{default:F.MD},items:{},activeTab:{default:0}},setup(t,{expose:n}){const a=Math.random().toString(36).substring(2,15),s=t,o=e.computed(()=>100/s.items.length),r=e.computed(()=>["tabs",s.placement==="top"?"tabs-top":"tabs-bottom",`${H.toClassName(s.size)}`,{"tabs-box":s.box,"tabs-border":s.border,"tabs-lift":s.lift}]),c=e.ref(s.activeTab??0),f=C=>{c.value=C};return e.watch(()=>s.activeTab,C=>{c.value=C}),n({activeIndex:c,setActiveTab:f}),(C,B)=>(e.openBlock(),e.createElementBlock("div",{role:"tablist",class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(E,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[e.createElementVNode("label",{class:"tab",style:e.normalizeStyle(s.fullWidth?{width:o.value+"%"}:{})},[e.withDirectives(e.createElementVNode("input",{type:"radio",name:e.unref(a),value:y,"onUpdate:modelValue":B[0]||(B[0]=_=>c.value=_)},null,8,Qe),[[e.vModelRadio,c.value]]),e.createTextVNode(" "+e.toDisplayString(E.label),1)],4),e.createElementVNode("div",{class:e.normalizeClass(["tab-content p-6",E.disabled?"tab-disabled":""])},[e.renderSlot(C.$slots,E.slot)],2)],64))),128))],2))}}),et=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];d.BackgroundColorUtils=q,d.Button=ce,d.ButtonColorUtils=I,d.ButtonSizeUtils=X,d.Card=ue,d.CardBody=be,d.CardTitle=he,d.Color=R,d.Container=ge,d.Modal=Ke,d.RoundedSizeUtils=j,d.SearchBar=Ye,d.SimpleButton=de,d.Size=F,d.Step=De,d.StepList=Ue,d.StepPanel=Xe,d.StepPanels=qe,d.Stepper=Re,d.Table=Fe,d.TableSizeUtils=K,d.Tabs=ve,d.TabsSizeUtils=H,d.TextColorUtils=ne,d.dendelionSafeList=et,d.getValue=T,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -4,13 +4,14 @@ declare var __VLS_1: {};
|
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_1) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
8
8
|
type: import("./interface").Type;
|
|
9
9
|
color: Color;
|
|
10
10
|
soft: boolean;
|
|
11
11
|
outline: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -4,12 +4,13 @@ declare var __VLS_1: {};
|
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_1) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
8
8
|
backgroundColor: Color;
|
|
9
9
|
shadow: boolean;
|
|
10
10
|
fullWidth: boolean;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -3,8 +3,9 @@ type __VLS_Props = {
|
|
|
3
3
|
is?: string | object | Component;
|
|
4
4
|
text: string;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
7
|
text: string;
|
|
8
8
|
is: string | object | Component;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
10
11
|
export default _default;
|
|
@@ -3,11 +3,12 @@ declare var __VLS_1: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {
|
|
7
7
|
container: boolean;
|
|
8
8
|
padding: boolean;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
12
13
|
type __VLS_WithSlots<T, S> = T & {
|
|
13
14
|
new (): {
|
|
@@ -4,7 +4,7 @@ declare var __VLS_1: {};
|
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_1) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<ModalProps, {
|
|
8
8
|
showModal: () => void;
|
|
9
9
|
closeModal: () => void;
|
|
10
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -16,7 +16,8 @@ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {
|
|
|
16
16
|
overflow: boolean;
|
|
17
17
|
closeButtonSize: Size;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
2
|
modelValue?: any;
|
|
3
|
-
},
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
"update:modelValue": (...args: any[]) => void;
|
|
5
5
|
}, string, import("vue").PublicProps, Readonly<{
|
|
6
6
|
modelValue?: any;
|
|
7
7
|
}> & Readonly<{
|
|
8
8
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
10
11
|
export default _default;
|
|
@@ -3,8 +3,9 @@ declare var __VLS_1: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
9
10
|
type __VLS_WithSlots<T, S> = T & {
|
|
10
11
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -5,10 +5,11 @@ declare var __VLS_1: {
|
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_1) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<StepperProps, {
|
|
9
9
|
activateCallback: (index: number) => void;
|
|
10
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -5,8 +5,9 @@ declare var __VLS_6: {
|
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
9
|
-
declare const
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
10
11
|
export default _default;
|
|
11
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
12
13
|
new (): {
|
|
@@ -5,14 +5,15 @@ declare var __VLS_1: {
|
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_1) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<StepperProps, {
|
|
9
9
|
updateValue: (value: string) => void;
|
|
10
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
"update:value": (...args: any[]) => void;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{
|
|
13
13
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
14
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
16
17
|
export default _default;
|
|
17
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
18
19
|
new (): {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { TableProps } from './interface';
|
|
2
|
-
declare const
|
|
3
|
-
props: __VLS_PrettifyLocal<
|
|
4
|
-
expose(exposed:
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<TableProps<T>> & import("vue").PublicProps;
|
|
4
|
+
expose: (exposed: {}) => void;
|
|
5
5
|
attrs: any;
|
|
6
6
|
slots: {};
|
|
7
7
|
emit: {};
|
|
8
8
|
}>) => import("vue").VNode & {
|
|
9
9
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
10
10
|
};
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
12
13
|
type __VLS_PrettifyLocal<T> = {
|
|
13
14
|
[K in keyof T as K]: T[K];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ColumnProps } from './interface';
|
|
2
|
-
declare const
|
|
3
|
-
props: __VLS_PrettifyLocal<
|
|
4
|
-
expose(exposed:
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<ColumnProps<T>> & import("vue").PublicProps;
|
|
4
|
+
expose: (exposed: {}) => void;
|
|
5
5
|
attrs: any;
|
|
6
6
|
slots: {};
|
|
7
7
|
emit: {};
|
|
8
8
|
}>) => import("vue").VNode & {
|
|
9
9
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
10
10
|
};
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
12
13
|
type __VLS_PrettifyLocal<T> = {
|
|
13
14
|
[K in keyof T as K]: T[K];
|
|
@@ -6,7 +6,7 @@ export type TableProps<T> = {
|
|
|
6
6
|
pinCols?: boolean;
|
|
7
7
|
horizontal?: boolean;
|
|
8
8
|
size?: Size;
|
|
9
|
-
customRowClasses?:
|
|
9
|
+
customRowClasses?: string;
|
|
10
10
|
columns: Column<T>[];
|
|
11
11
|
dataSource: T[];
|
|
12
12
|
ajax?: (params: object) => Promise<object> | string;
|
|
@@ -4,7 +4,7 @@ declare var __VLS_2: string, __VLS_3: {};
|
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<TabsProps, {
|
|
8
8
|
activeIndex: import("vue").Ref<number, number>;
|
|
9
9
|
setActiveTab: (index: number) => void;
|
|
10
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabsProps> & Readonly<{}>, {
|
|
@@ -16,7 +16,8 @@ declare const __VLS_component: import("vue").DefineComponent<TabsProps, {
|
|
|
16
16
|
placement: "top" | "bottom";
|
|
17
17
|
activeTab: number;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
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.
|
|
5
|
+
"version": "0.0.24",
|
|
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.
|
|
59
|
+
"vue": "^3.5.22"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
63
|
-
"@vue/tsconfig": "^0.8.
|
|
63
|
+
"@vue/tsconfig": "^0.8.1",
|
|
64
64
|
"autoprefixer": "^10.4.21",
|
|
65
|
-
"cross-env": "^10.
|
|
66
|
-
"daisyui": "^
|
|
67
|
-
"eslint": "^9.
|
|
68
|
-
"eslint-plugin-vue": "^10.
|
|
65
|
+
"cross-env": "^10.1.0",
|
|
66
|
+
"daisyui": "^5.3.10",
|
|
67
|
+
"eslint": "^9.38.0",
|
|
68
|
+
"eslint-plugin-vue": "^10.5.1",
|
|
69
69
|
"fluid-tailwind": "^1.0.4",
|
|
70
70
|
"prettier": "^3.6.2",
|
|
71
71
|
"prettier-eslint": "^16.4.2",
|
|
72
|
-
"prettier-plugin-tailwindcss": "^0.7.
|
|
72
|
+
"prettier-plugin-tailwindcss": "^0.7.1",
|
|
73
73
|
"rimraf": "^6.0.1",
|
|
74
|
-
"typescript": "^5.
|
|
75
|
-
"typescript-eslint": "^8.
|
|
76
|
-
"vite": "^7.
|
|
77
|
-
"vue-tsc": "^3.
|
|
74
|
+
"typescript": "^5.9.3",
|
|
75
|
+
"typescript-eslint": "^8.46.2",
|
|
76
|
+
"vite": "^7.1.12",
|
|
77
|
+
"vue-tsc": "^3.1.2"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -8,7 +8,7 @@ export type TableProps<T> = {
|
|
|
8
8
|
pinCols?: boolean;
|
|
9
9
|
horizontal?: boolean;
|
|
10
10
|
size?: Size;
|
|
11
|
-
customRowClasses?:
|
|
11
|
+
customRowClasses?: string;
|
|
12
12
|
columns: Column<T>[];
|
|
13
13
|
dataSource: T[];
|
|
14
14
|
ajax?: (params: object) => Promise<object> | string;
|