dendelion-ui 0.0.7 → 0.0.10
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 +2 -2
- package/dist/dendelion-ui.es.js +494 -331
- package/dist/dendelion-ui.umd.js +2 -2
- package/dist/types/components/button/Button.vue.d.ts +17 -14
- package/dist/types/components/button/SimpleButton.vue.d.ts +1 -1
- package/dist/types/components/button/interface.d.ts +3 -2
- package/dist/types/components/card/Card.vue.d.ts +18 -14
- package/dist/types/components/card/CardBody.vue.d.ts +9 -12
- package/dist/types/components/card/interface.d.ts +3 -3
- package/dist/types/components/container/Container.vue.d.ts +15 -12
- package/dist/types/components/modal/Modal.vue.d.ts +28 -16
- package/dist/types/components/modal/interface.d.ts +2 -0
- package/dist/types/components/search/SearchBar.vue.d.ts +1 -3
- package/dist/types/components/stepper/Step.vue.d.ts +13 -12
- package/dist/types/components/stepper/StepList.vue.d.ts +9 -12
- package/dist/types/components/stepper/StepPanel.vue.d.ts +14 -12
- package/dist/types/components/stepper/StepPanels.vue.d.ts +15 -12
- package/dist/types/components/stepper/Stepper.vue.d.ts +16 -12
- package/dist/types/components/table/interface.d.ts +2 -2
- package/dist/types/types/backgroundColor.d.ts +25 -0
- package/dist/types/types/buttonColor.d.ts +25 -0
- package/dist/types/types/buttonSize.d.ts +12 -0
- package/dist/types/types/index.d.ts +6 -2
- package/dist/types/types/roundedSize.d.ts +12 -0
- package/dist/types/types/tableSize.d.ts +12 -0
- package/dist/types/types/{color.d.ts → textColor.d.ts} +3 -3
- package/package.json +1 -1
- package/src/components/button/Button.vue +3 -3
- package/src/components/button/interface.ts +2 -2
- package/src/components/card/Card.vue +4 -4
- package/src/components/card/interface.ts +3 -3
- package/src/components/modal/Modal.vue +12 -4
- package/src/components/modal/interface.ts +2 -0
- package/src/components/table/Table.vue +3 -3
- package/src/components/table/interface.ts +2 -2
- package/src/shims-vue.d.ts +0 -1
- package/src/types/backgroundColor.ts +71 -0
- package/src/types/buttonColor.ts +73 -0
- package/src/types/buttonSize.ts +32 -0
- package/src/types/index.ts +6 -2
- package/src/types/roundedSize.ts +32 -0
- package/src/types/tableSize.ts +32 -0
- package/src/types/textColor.ts +71 -0
- package/dist/types/types/size.d.ts +0 -12
- package/src/types/color.ts +0 -72
- package/src/types/size.ts +0 -32
package/dist/dendelion-ui.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(u,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(u=typeof globalThis<"u"?globalThis:u||self,t(u.DendelionUI={},u.Vue))})(this,function(u,t){"use strict";var X=(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))(X||{});class C{static toClassName(n){switch(n){case 0:return"bg-primary";case 1:return"bg-primary-content";case 2:return"bg-secondary";case 3:return"bg-secondary-content";case 4:return"bg-accent";case 5:return"bg-accent-content";case 6:return"bg-neutral";case 7:return"bg-neutral-content";case 8:return"base-100";case 9:return"bg-base-200";case 10:return"bg-base-300";case 11:return"bg-base-content";case 12:return"bg-info";case 13:return"bg-info-content";case 14:return"bg-success";case 15:return"bg-success-content";case 16:return"bg-warning";case 17:return"bg-warning-content";case 18:return"bg-error";case 19:return"bg-error-content";default:return"bg-base-content"}}}var B=(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))(B||{});class R{static toClassName(n){switch(n){case 0:return"btn-primary";case 1:return"btn-primary-content";case 2:return"btn-secondary";case 3:return"btn-secondary-content";case 4:return"btn-accent";case 5:return"btn-accent-content";case 6:return"btn-neutral";case 7:return"btn-neutral-content";case 8:return"base-100";case 9:return"btn-base-200";case 10:return"btn-base-300";case 11:return"btn-base-content";case 12:return"btn-info";case 13:return"btn-info-content";case 14:return"btn-success";case 15:return"btn-success-content";case 16:return"btn-warning";case 17:return"btn-warning-content";case 18:return"btn-error";case 19:return"btn-error-content";default:return"btn-base-content"}}}var H=(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))(H||{});class re{static toClassName(n){switch(n){case 0:return"text-primary";case 1:return"text-primary-content";case 2:return"text-secondary";case 3:return"text-secondary-content";case 4:return"text-accent";case 5:return"text-accent-content";case 6:return"text-neutral";case 7:return"text-neutral-content";case 8:return"base-100";case 9:return"text-base-200";case 10:return"text-base-300";case 11:return"text-base-content";case 12:return"text-info";case 13:return"text-info-content";case 14:return"text-success";case 15:return"text-success-content";case 16:return"text-warning";case 17:return"text-warning-content";case 18:return"text-error";case 19:return"text-error-content";default:return"text-base-content"}}}var D=(e=>(e[e.XS=0]="XS",e[e.SM=1]="SM",e[e.MD=2]="MD",e[e.LG=3]="LG",e[e.XL=4]="XL",e[e.TWOXL=5]="TWOXL",e[e.THREEXL=6]="THREEXL",e))(D||{});class G{static toClassName(n){switch(n){case 0:return"btn-xs";case 1:return"btn-sm";case 2:return"btn-md";case 3:return"btn-lg";case 4:return"btn-xl";case 5:return"btn-2xl";case 6:return"btn-3xl";default:return"btn-md"}}}var K=(e=>(e[e.XS=0]="XS",e[e.SM=1]="SM",e[e.MD=2]="MD",e[e.LG=3]="LG",e[e.XL=4]="XL",e[e.TWOXL=5]="TWOXL",e[e.THREEXL=6]="THREEXL",e))(K||{});class j{static toClassName(n){switch(n){case 0:return"rounded-xs";case 1:return"rounded-sm";case 2:return"rounded-md";case 3:return"rounded-lg";case 4:return"rounded-xl";case 5:return"rounded-2xl";case 6:return"rounded-3xl";default:return"rounded-md"}}}var P=(e=>(e[e.XS=0]="XS",e[e.SM=1]="SM",e[e.MD=2]="MD",e[e.LG=3]="LG",e[e.XL=4]="XL",e[e.TWOXL=5]="TWOXL",e[e.THREEXL=6]="THREEXL",e))(P||{});class Z{static toClassName(n){switch(n){case 0:return"table-xs";case 1:return"table-sm";case 2:return"table-md";case 3:return"table-lg";case 4:return"table-xl";case 5:return"table-2xl";case 6:return"table-3xl";default:return"table-md"}}}function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var I;function Z(){return I||(I=1,function(t){(function(){var n={}.hasOwnProperty;function s(){for(var r="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(r=a(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 s.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=a(c,f));return c}function a(r,c){return c?r?r+" "+c:r+c:r}t.exports?(s.default=s,t.exports=s):window.classNames=s})()}(T)),T.exports}var J=Z();const L=A(J),Y=["type"],Q={class:"group-[.is-loading]:text-transparent"},ee=e.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:z.Neutral},click:{}},setup(t){const n=t,s=e.computed(()=>L("btn","group",`btn-${P.toClassName(n.color)}`,n.loading?"is-loading":""));return(o,a)=>(e.openBlock(),e.createElementBlock("button",{onClick:a[0]||(a[0]=r=>o.click?o.click:void 0),class:e.normalizeClass(s.value),type:o.type},[a[1]||(a[1]=e.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),e.createElementVNode("span",Q,[e.renderSlot(o.$slots,"default")])],10,Y))}}),v=(t,n)=>{const s=t.__vccOpts||t;for(const[o,a]of n)s[o]=a;return s},te={};function ne(t,n){return e.openBlock(),e.createElementBlock("button")}const re=v(te,[["render",ne]]);var F=(t=>(t[t.XS=0]="XS",t[t.SM=1]="SM",t[t.MD=2]="MD",t[t.LG=3]="LG",t[t.XL=4]="XL",t[t.TWOXL=5]="TWOXL",t[t.THREEXL=6]="THREEXL",t))(F||{});class X{static toClassName(n){switch(n){case 0:return"xs";case 1:return"sm";case 2:return"md";case 3:return"lg";case 4:return"xl";case 5:return"2xl";case 6:return"3xl";default:return"md"}}}const ae=e.defineComponent({__name:"Card",props:{backgroundColor:{default:z.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(t){const n=t,s=e.ref(L("card",`bg-${n.backgroundColor}`,n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?`rounded-${n.roundedSize}`:""));return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value)},[e.renderSlot(o.$slots,"default")],2))}}),se={},oe={class:"card-body"};function ce(t,n){return e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(t.$slots,"default")])}const le=v(se,[["render",ce]]),ie=e.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(t){return(n,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"card-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1}))}}),de=e.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(t){const n=t,s=e.ref([n.container?"container":"",n.padding?"p-6":""]);return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value)},[e.renderSlot(o.$slots,"default")],2))}});var D={},W={},K;function U(){return K||(K=1,function(t){t.__esModule=!0,t.default=a;var n=/[\u0300-\u036f]/g,s=/ł/g,o=/ñ/g;function a(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(s,"l").replace(o,"n").trim()}}(W)),W}var M={},H;function j(){if(H)return M;H=1,M.__esModule=!0,M.aggressiveFuzzyMatch=y,M.createFuzzySearchImpl=O,M.experimentalSmartFuzzyMatch=B,M.fuzzyMatchImpl=_;var t=n(U());function n(i){return i&&i.__esModule?i:{default:i}}var s=Number.MAX_SAFE_INTEGER,o=function(l,h){return l.score-h.score},a=function(l,h){return l[0]-h[0]},r=new Set(` []()-–—'"“”`.split(""));function c(i){return r.has(i)}function f(i,l,h,S,d,k,b){if(i===S)return[0,[[0,i.length-1]]];var u=S.length,g=l.length,E=d.length;if(l===d)return[.1,[[0,g-1]]];if(l.startsWith(d))return[.5,[[0,E-1]]];var N=i.indexOf(S);if(N>-1&&c(i[N-1]))return[.9,[[N,N+u-1]]];var x=l.indexOf(d);if(x>-1&&c(l[x-1]))return[1,[[x,x+u-1]]];var w=k.length;if(w>1&&k.every(function($){return h.has($)})){var C=1.5+w*.2;return[C,k.map(function($){var V=l.indexOf($);return[V,V+$.length-1]}).sort(a)]}return x>-1?[2,[[x,x+u-1]]]:b==="aggressive"?y(l,d):b==="smart"?B(l,d):null}function y(i,l){for(var h=i.length,S=l.length,d=0,k=l[d],b=[],u=-1,g=-2,E=0;E<h;E+=1)if(i[E]===k){if(E!==g+1&&(u>=0&&b.push([u,g]),u=E),g=E,d+=1,d===S)return b.push([u,g]),m(b,i);k=l[d]}return null}function B(i,l){for(var h=i.length,S=[],d=0,k=l[d],b=-1,u=-2;;){var g=i.indexOf(k,u+1);if(g===-1)break;if(g===0||c(i[g-1]))b=g;else{var E=l.length-d,N=i.length-g,x=Math.min(3,E,N),w=l.slice(d,d+x);if(i.slice(g,g+x)===w)b=g;else{u+=1;continue}}for(u=b;u<h&&i[u]===k;u+=1)d+=1,k=l[d];if(u-=1,S.push([b,u]),d===l.length)return m(S,i)}return null}function m(i,l){var h=2;return i.forEach(function(S){var d=S[0],k=S[1],b=k-d+1,u=d===0||l[d]===" "||l[d-1]===" ",g=k===l.length-1||l[k]===" "||l[k+1]===" ",E=u&&g;E?h+=.2:u?h+=.4:b>=3?h+=.8:h+=1.6}),[h,i]}function _(i,l){var h=(0,t.default)(l),S=h.split(" "),d=(0,t.default)(i),k=new Set(d.split(" ")),b=f(i,d,k,l,h,S,"smart");return b?{item:i,score:b[0],matches:[b[1]]}:null}function O(i,l){var h=l.strategy,S=h===void 0?"aggressive":h,d=l.getText,k=i.map(function(b){var u;if(d)u=d(b);else{var g=l.key?b[l.key]:b;u=[g]}var E=u.map(function(N){var x=N||"",w=(0,t.default)(x),C=new Set(w.split(" "));return[x,w,C]});return[b,E]});return function(b){var u=[],g=(0,t.default)(b),E=g.split(" ");return g.length?(k.forEach(function(N){for(var x=N[0],w=N[1],C=s,$=[],V=0,We=w.length;V<We;V+=1){var R=w[V],Oe=R[0],Re=R[1],qe=R[2],q=f(Oe,Re,qe,b,g,E,S);q?(C=Math.min(C,q[0]),$.push(q[1])):$.push(null)}C<s&&u.push({item:x,score:C,matches:$})}),u.sort(o),u):[]}}return M}var G;function ue(){return G||(G=1,function(t){t.__esModule=!0,t.default=o,t.fuzzyMatch=a;var n=s(U());t.normalizeText=n.default;function s(r){return r&&r.__esModule?r:{default:r}}function o(r,c){return c===void 0&&(c={}),j().createFuzzySearchImpl(r,c)}function a(r,c){return j().fuzzyMatchImpl(r,c)}}(D)),D}var fe=ue();const pe=A(fe),me={key:0},he=["colspan"],be=["innerHTML"],ge=e.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:F.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{}},setup(t){const n=e.ref([]),s=e.ref([]),o=e.ref(null),a=t,r=e.ref(L("table",`table-${X.toClassName(a.size)}`,{"table-zebra":a.zebra,"table-pin-rows":a.pinRows,"table-pin-cols ":a.pinCols})),c=(y,B)=>String(!y||typeof y!="object"?y:B.split(".").reduce((m,_)=>m&&(typeof m=="object"?m[_]:m),y));e.onMounted(()=>{n.value=a.dataSource,s.value=a.dataSource}),e.watch(()=>a.dataSource,y=>{n.value=y,s.value=y},{immediate:!0}),e.watch(()=>a.searchValue,y=>{if(a.searchFunction){s.value=a.searchFunction(y??"");return}s.value=y?f(y):n.value},{immediate:!0});const f=y=>{const B=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(_=>{const O=n.value.map(h=>c(h,_)),l=pe(O)(y);for(const h of l){const S=n.value.filter(d=>c(d,_)===h.item);B.push(...S)}}),B):[]};return(y,B)=>(e.openBlock(),e.createElementBlock("table",{ref_key:"table",ref:o,class:e.normalizeClass(r.value)},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,m=>(e.openBlock(),e.createElementBlock("th",{key:m.title},e.toDisplayString(m.title),1))),128))])]),e.createElementVNode("tbody",null,[s.value.length===0?(e.openBlock(),e.createElementBlock("tr",me,[e.createElementVNode("td",{colspan:a.columns.length}," No data found ",8,he)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(s.value,m=>(e.openBlock(),e.createElementBlock("tr",{key:String(m)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,_=>(e.openBlock(),e.createElementBlock("td",{key:_.title},[_.render?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c(m,_.data)),1)],64)),typeof _.render=="function"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[typeof _.render(c(m,_.data),m)=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:_.render(c(m,_.data),m)},null,8,be)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.render(c(m,_.data),m)),{key:1}))],64)):e.createCommentVNode("",!0)]))),128))]))),128))])],2))}}),ye=e.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(t,{expose:n,emit:s}){const o=t,a=e.ref(o.value),r=s,c=f=>{a.value=f,r("update:value",f)};return e.provide("stepper",{value:a,updateValue:c}),e.watch(()=>o.value,f=>{a.value=f}),n({updateValue:c}),(f,y)=>e.renderSlot(f.$slots,"default",{updateValue:c})}}),_e=e.defineComponent({__name:"Step",props:{value:{}},setup(t){const n=t,s=e.inject("stepper"),o=e.ref("");return e.watch(()=>s==null?void 0:s.value.value,a=>{a&&n.value&&(o.value=Number(a)>=Number(n.value)?"step-primary":"")}),e.onMounted(()=>{s&&(o.value=s.value.value===n.value?"step-primary":"",Number(s.value.value)>=Number(n.value)&&(o.value="step-primary"))}),(a,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["step",o.value])},[e.renderSlot(a.$slots,"default")],2))}}),ke={},Be={class:"steps"};function Se(t,n){return e.openBlock(),e.createElementBlock("ul",Be,[e.renderSlot(t.$slots,"default")])}const Ee=v(ke,[["render",Se]]),xe={key:0},Ne=e.defineComponent({__name:"StepPanels",setup(t){const n=e.inject("stepper");return(s,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var a,r;return[(a=e.unref(n))!=null&&a.value?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(s.$slots,"default",{currentStep:(r=e.unref(n))==null?void 0:r.value})])):e.createCommentVNode("",!0)]}),_:3}))}}),we={key:0},Ce=e.defineComponent({__name:"StepPanel",props:{value:{}},setup(t,{expose:n}){const s=e.computed(()=>o==null?void 0:o.value.value),o=e.inject("stepper"),a=r=>{o&&o.updateValue(r.toString())};return n({activateCallback:a}),(r,c)=>r.value===s.value?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(r.$slots,"default",{activateCallback:a})])):e.createCommentVNode("",!0)}}),$e={className:"modal-box"},Me={key:0,method:"dialog"},Ve=e.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1}},emits:["close"],setup(t,{expose:n,emit:s}){const o=e.ref(null),a=s,r=t,c=e.ref(L("modal",{"overflow-visible":r.overflow}));return n({showModal:()=>{var B;(B=o.value)==null||B.showModal()},closeModal:()=>{var B;(B=o.value)==null||B.close()}}),(B,m)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"modal",ref:o,class:e.normalizeClass(c.value),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:m[0]||(m[0]=_=>a("close",_))},[e.createElementVNode("div",$e,[B.closeButton?(e.openBlock(),e.createElementBlock("form",Me,m[1]||(m[1]=[e.createElementVNode("button",{className:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕",-1)]))):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"default")])],34))}}),ze={class:"hidden w-full max-w-sm lg:flex"},Le={class:"relative mx-3 w-full"},Te={class:"w-full max-w-full relative"},ve=["value"],Fe=e.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:n}){const s=t,o=e.ref(null),a=n,r=c=>{(c.ctrlKey||c.metaKey)&&c.key.toLowerCase()==="k"&&(c.preventDefault(),o.value&&o.value.focus())};return e.onMounted(()=>{document.addEventListener("keydown",r)}),e.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(c,f)=>(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("label",Le,[f[1]||(f[1]=e.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElementVNode("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})],-1)),e.createElementVNode("div",Te,[e.createElementVNode("form",null,[e.createElementVNode("input",{ref_key:"searchInput",ref:o,type:"search",placeholder:"Zoeken...",value:s.modelValue,onInput:f[0]||(f[0]=y=>a("update:modelValue",y.target.value)),class:"bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"},null,40,ve)])]),f[2]||(f[2]=e.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex"},[e.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),e.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),De=["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"];p.Button=ee,p.Card=ae,p.CardBody=le,p.CardTitle=ie,p.Color=z,p.ColorUtils=P,p.Container=de,p.Modal=Ve,p.SearchBar=Fe,p.SimpleButton=re,p.Size=F,p.SizeUtils=X,p.Step=_e,p.StepList=Ee,p.StepPanel=Ce,p.StepPanels=Ne,p.Stepper=ye,p.Table=ge,p.dendelionSafeList=De,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
5
|
+
*/var Y;function ae(){return Y||(Y=1,function(e){(function(){var n={}.hasOwnProperty;function s(){for(var r="",l=0;l<arguments.length;l++){var m=arguments[l];m&&(r=a(r,c(m)))}return r}function c(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return s.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var l="";for(var m in r)n.call(r,m)&&r[m]&&(l=a(l,m));return l}function a(r,l){return l?r?r+" "+l:r+l:r}e.exports?(s.default=s,e.exports=s):window.classNames=s})()}(O)),O.exports}var se=ae();const W=J(se),ce=["type","disabled"],le={class:"group-[.is-loading]:text-transparent"},oe=t.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:B.Neutral},disabled:{type:Boolean},click:{}},setup(e){const n=e,s=t.computed(()=>W("btn","group",R.toClassName(n.color),n.loading?"is-loading":"",n.disabled?"disabled":""));return(c,a)=>(t.openBlock(),t.createElementBlock("button",{onClick:a[0]||(a[0]=r=>c.click?c.click:void 0),class:t.normalizeClass(s.value),type:c.type,disabled:c.disabled||c.loading},[a[1]||(a[1]=t.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),t.createElementVNode("span",le,[t.renderSlot(c.$slots,"default")])],10,ce))}}),A=(e,n)=>{const s=e.__vccOpts||e;for(const[c,a]of n)s[c]=a;return s},ie={};function ue(e,n){return t.openBlock(),t.createElementBlock("button")}const de=A(ie,[["render",ue]]),fe=t.defineComponent({__name:"Card",props:{backgroundColor:{default:X.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(e){const n=e,s=t.ref(W("card",C.toClassName(n.backgroundColor),n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?j.toClassName(n.roundedSize):""));return(c,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value)},[t.renderSlot(c.$slots,"default")],2))}}),pe={},me={class:"card-body"};function be(e,n){return t.openBlock(),t.createElementBlock("div",me,[t.renderSlot(e.$slots,"default")])}const he=A(pe,[["render",be]]),ye=t.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(e){return(n,s)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.is),{class:"card-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.text),1)]),_:1}))}}),ge=t.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(e){const n=e,s=t.ref([n.container?"container":"",n.padding?"p-6":""]);return(c,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value)},[t.renderSlot(c.$slots,"default")],2))}});var I={},z={},Q;function T(){return Q||(Q=1,function(e){e.__esModule=!0,e.default=a;var n=/[\u0300-\u036f]/g,s=/ł/g,c=/ñ/g;function a(r){return r.toLowerCase().normalize("NFD").replace(n,"").replace(s,"l").replace(c,"n").trim()}}(z)),z}var $={},ee;function te(){if(ee)return $;ee=1,$.__esModule=!0,$.aggressiveFuzzyMatch=_,$.createFuzzySearchImpl=F,$.experimentalSmartFuzzyMatch=L,$.fuzzyMatchImpl=g;var e=n(T());function n(i){return i&&i.__esModule?i:{default:i}}var s=Number.MAX_SAFE_INTEGER,c=function(o,b){return o.score-b.score},a=function(o,b){return o[0]-b[0]},r=new Set(` []()-–—'"“”`.split(""));function l(i){return r.has(i)}function m(i,o,b,S,d,E,h){if(i===S)return[0,[[0,i.length-1]]];var p=S.length,y=o.length,N=d.length;if(o===d)return[.1,[[0,y-1]]];if(o.startsWith(d))return[.5,[[0,N-1]]];var w=i.indexOf(S);if(w>-1&&l(i[w-1]))return[.9,[[w,w+p-1]]];var k=o.indexOf(d);if(k>-1&&l(o[k-1]))return[1,[[k,k+p-1]]];var M=E.length;if(M>1&&E.every(function(x){return b.has(x)})){var V=1.5+M*.2;return[V,E.map(function(x){var v=o.indexOf(x);return[v,v+x.length-1]}).sort(a)]}return k>-1?[2,[[k,k+p-1]]]:h==="aggressive"?_(o,d):h==="smart"?L(o,d):null}function _(i,o){for(var b=i.length,S=o.length,d=0,E=o[d],h=[],p=-1,y=-2,N=0;N<b;N+=1)if(i[N]===E){if(N!==y+1&&(p>=0&&h.push([p,y]),p=N),y=N,d+=1,d===S)return h.push([p,y]),f(h,i);E=o[d]}return null}function L(i,o){for(var b=i.length,S=[],d=0,E=o[d],h=-1,p=-2;;){var y=i.indexOf(E,p+1);if(y===-1)break;if(y===0||l(i[y-1]))h=y;else{var N=o.length-d,w=i.length-y,k=Math.min(3,N,w),M=o.slice(d,d+k);if(i.slice(y,y+k)===M)h=y;else{p+=1;continue}}for(p=h;p<b&&i[p]===E;p+=1)d+=1,E=o[d];if(p-=1,S.push([h,p]),d===o.length)return f(S,i)}return null}function f(i,o){var b=2;return i.forEach(function(S){var d=S[0],E=S[1],h=E-d+1,p=d===0||o[d]===" "||o[d-1]===" ",y=E===o.length-1||o[E]===" "||o[E+1]===" ",N=p&&y;N?b+=.2:p?b+=.4:h>=3?b+=.8:b+=1.6}),[b,i]}function g(i,o){var b=(0,e.default)(o),S=b.split(" "),d=(0,e.default)(i),E=new Set(d.split(" ")),h=m(i,d,E,o,b,S,"smart");return h?{item:i,score:h[0],matches:[h[1]]}:null}function F(i,o){var b=o.strategy,S=b===void 0?"aggressive":b,d=o.getText,E=i.map(function(h){var p;if(d)p=d(h);else{var y=o.key?h[o.key]:h;p=[y]}var N=p.map(function(w){var k=w||"",M=(0,e.default)(k),V=new Set(M.split(" "));return[k,M,V]});return[h,N]});return function(h){var p=[],y=(0,e.default)(h),N=y.split(" ");return y.length?(E.forEach(function(w){for(var k=w[0],M=w[1],V=s,x=[],v=0,He=M.length;v<He;v+=1){var U=M[v],Ge=U[0],Ke=U[1],je=U[2],q=m(Ge,Ke,je,h,y,N,S);q?(V=Math.min(V,q[0]),x.push(q[1])):x.push(null)}V<s&&p.push({item:k,score:V,matches:x})}),p.sort(c),p):[]}}return $}var ne;function _e(){return ne||(ne=1,function(e){e.__esModule=!0,e.default=c,e.fuzzyMatch=a;var n=s(T());e.normalizeText=n.default;function s(r){return r&&r.__esModule?r:{default:r}}function c(r,l){return l===void 0&&(l={}),te().createFuzzySearchImpl(r,l)}function a(r,l){return te().fuzzyMatchImpl(r,l)}}(I)),I}var Ee=_e();const Se=J(Ee),Ne={key:0},ke=["colspan"],we=["innerHTML"],Me=t.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:P.MD},columns:{},dataSource:{},ajax:{},searchValue:{},searchFunction:{}},setup(e){const n=t.ref([]),s=t.ref([]),c=t.ref(null),a=e,r=t.ref(W("table",Z.toClassName(a.size),{"table-zebra":a.zebra,"table-pin-rows":a.pinRows,"table-pin-cols ":a.pinCols})),l=(_,L)=>String(!_||typeof _!="object"?_:L.split(".").reduce((f,g)=>f&&(typeof f=="object"?f[g]:f),_));t.onMounted(()=>{n.value=a.dataSource,s.value=a.dataSource}),t.watch(()=>a.dataSource,_=>{n.value=_,s.value=_},{immediate:!0}),t.watch(()=>a.searchValue,_=>{if(a.searchFunction){s.value=a.searchFunction(_??"");return}s.value=_?m(_):n.value},{immediate:!0});const m=_=>{const L=[];return n.value.length>0?(Object.keys(n.value[0]).forEach(g=>{const F=n.value.map(b=>l(b,g)),o=Se(F)(_);for(const b of o){const S=n.value.filter(d=>l(d,g)===b.item);L.push(...S)}}),L):[]};return(_,L)=>(t.openBlock(),t.createElementBlock("table",{ref_key:"table",ref:c,class:t.normalizeClass(r.value)},[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.columns,f=>(t.openBlock(),t.createElementBlock("th",{key:f.title},t.toDisplayString(f.title),1))),128))])]),t.createElementVNode("tbody",null,[s.value.length===0?(t.openBlock(),t.createElementBlock("tr",Ne,[t.createElementVNode("td",{colspan:a.columns.length}," No data found ",8,ke)])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(s.value,f=>(t.openBlock(),t.createElementBlock("tr",{key:String(f)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.columns,g=>(t.openBlock(),t.createElementBlock("td",{key:g.title},[g.render?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(l(f,g.data)),1)],64)),typeof g.render=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[typeof g.render(l(f,g.data),f)=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,innerHTML:g.render(l(f,g.data),f)},null,8,we)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.render(l(f,g.data),f)),{key:1}))],64)):t.createCommentVNode("",!0)]))),128))]))),128))])],2))}}),Le=t.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(e,{expose:n,emit:s}){const c=e,a=t.ref(c.value),r=s,l=m=>{a.value=m,r("update:value",m)};return t.provide("stepper",{value:a,updateValue:l}),t.watch(()=>c.value,m=>{a.value=m}),n({updateValue:l}),(m,_)=>t.renderSlot(m.$slots,"default",{updateValue:l})}}),Ve=t.defineComponent({__name:"Step",props:{value:{}},setup(e){const n=e,s=t.inject("stepper"),c=t.ref("");return t.watch(()=>s==null?void 0:s.value.value,a=>{a&&n.value&&(c.value=Number(a)>=Number(n.value)?"step-primary":"")}),t.onMounted(()=>{s&&(c.value=s.value.value===n.value?"step-primary":"",Number(s.value.value)>=Number(n.value)&&(c.value="step-primary"))}),(a,r)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["step",c.value])},[t.renderSlot(a.$slots,"default")],2))}}),xe={},$e={class:"steps"};function ve(e,n){return t.openBlock(),t.createElementBlock("ul",$e,[t.renderSlot(e.$slots,"default")])}const We=A(xe,[["render",ve]]),Fe={key:0},Xe=t.defineComponent({__name:"StepPanels",setup(e){const n=t.inject("stepper");return(s,c)=>(t.openBlock(),t.createBlock(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>{var a,r;return[(a=t.unref(n))!=null&&a.value?(t.openBlock(),t.createElementBlock("div",Fe,[t.renderSlot(s.$slots,"default",{currentStep:(r=t.unref(n))==null?void 0:r.value})])):t.createCommentVNode("",!0)]}),_:3}))}}),Be={key:0},De=t.defineComponent({__name:"StepPanel",props:{value:{}},setup(e,{expose:n}){const s=t.computed(()=>c==null?void 0:c.value.value),c=t.inject("stepper"),a=r=>{c&&c.updateValue(r.toString())};return n({activateCallback:a}),(r,l)=>r.value===s.value?(t.openBlock(),t.createElementBlock("div",Be,[t.renderSlot(r.$slots,"default",{activateCallback:a})])):t.createCommentVNode("",!0)}}),Pe={class:"modal-box"},Oe={key:0,method:"dialog"},Ae=t.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0},overflow:{type:Boolean,default:!1},closeButtonSize:{default:D.SM}},emits:["close"],setup(e,{expose:n,emit:s}){const c=t.ref(null),a=s,r=e,l=t.ref(W("modal",{"overflow-visible":r.overflow})),m=t.ref(W("btn",G.toClassName(r.closeButtonSize),"btn-circle","btn-ghost","absolute","right-2","top-2"));return n({showModal:()=>{var f;(f=c.value)==null||f.showModal()},closeModal:()=>{var f;(f=c.value)==null||f.close()}}),(f,g)=>(t.openBlock(),t.createElementBlock("dialog",{ref_key:"modal",ref:c,class:t.normalizeClass(l.value),"aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:g[0]||(g[0]=F=>a("close",F))},[t.createElementVNode("div",Pe,[f.closeButton?(t.openBlock(),t.createElementBlock("form",Oe,[t.createElementVNode("button",{class:t.normalizeClass(m.value)},"✕",2)])):t.createCommentVNode("",!0),t.renderSlot(f.$slots,"default")]),g[1]||(g[1]=t.createElementVNode("form",{method:"dialog",class:"modal-backdrop"},[t.createElementVNode("button",null,"close")],-1))],34))}}),Ie={class:"hidden w-full max-w-sm lg:flex"},ze={class:"relative mx-3 w-full"},Ue={class:"w-full max-w-full relative"},qe=["value"],Ce=t.defineComponent({__name:"SearchBar",props:["modelValue"],emits:["update:modelValue"],setup(e,{emit:n}){const s=e,c=t.ref(null),a=n,r=l=>{(l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),c.value&&c.value.focus())};return t.onMounted(()=>{document.addEventListener("keydown",r)}),t.onUnmounted(()=>{document.removeEventListener("keydown",r)}),(l,m)=>(t.openBlock(),t.createElementBlock("div",Ie,[t.createElementVNode("label",ze,[m[1]||(m[1]=t.createElementVNode("svg",{class:"pointer-events-none absolute z-10 my-3.5 ms-4 opacity-60 text-base-content","aria-hidden":"true",width:"16",height:"16",viewBox:"0.48 0.48 23.04 23.04",fill:"currentColor"},[t.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"}),t.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)),t.createElementVNode("div",Ue,[t.createElementVNode("form",null,[t.createElementVNode("input",{ref_key:"searchInput",ref:c,type:"search",placeholder:"Zoeken...",value:s.modelValue,onInput:m[0]||(m[0]=_=>a("update:modelValue",_.target.value)),class:"bg-transparent color-[inherit] border-[2px] border-solid border-transparent focus:border-[2px] focus:border-base-200 focus:outline-none rounded-xl w-full px-3 py-2 ps-10"},null,40,qe)])]),m[2]||(m[2]=t.createElementVNode("div",{class:"pointer-events-none absolute end-10 top-2.5 gap-1 opacity-50 rtl:flex-row-reverse hidden lg:flex"},[t.createElementVNode("kbd",{class:"kbd kbd-sm"},"ctrl"),t.createElementVNode("kbd",{class:"kbd kbd-sm"},"K")],-1))])]))}}),Re=["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"];u.BackgroundColor=X,u.BackgroundColorUtils=C,u.Button=oe,u.ButtonColor=B,u.ButtonColorUtils=R,u.ButtonSize=D,u.ButtonSizeUtils=G,u.Card=fe,u.CardBody=he,u.CardTitle=ye,u.Container=ge,u.Modal=Ae,u.RoundedSize=K,u.RoundedSizeUtils=j,u.SearchBar=Ce,u.SimpleButton=de,u.Step=Ve,u.StepList=We,u.StepPanel=De,u.StepPanels=Xe,u.Stepper=Le,u.Table=Me,u.TableSize=P,u.TableSizeUtils=Z,u.TextColor=H,u.TextColorUtils=re,u.dendelionSafeList=Re,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonColor } from '@/types';
|
|
2
2
|
import { ButtonProps } from './interface';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
declare const classes: import("vue").ComputedRef<string>;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<ButtonProps, {
|
|
10
|
+
classes: typeof classes;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
12
|
+
type: import("./interface").Type;
|
|
13
|
+
color: ButtonColor;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
15
|
declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
13
16
|
type: import("./interface").Type;
|
|
14
|
-
color:
|
|
15
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
16
|
-
declare const _default:
|
|
17
|
+
color: ButtonColor;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
20
|
export default _default;
|
|
18
|
-
type
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
22
|
new (): {
|
|
20
23
|
$slots: S;
|
|
21
24
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonColor } from "@/types";
|
|
2
2
|
export type Type = 'button' | 'submit' | 'reset';
|
|
3
3
|
export type ButtonProps = {
|
|
4
4
|
type?: Type;
|
|
5
5
|
loading?: boolean;
|
|
6
|
-
color?:
|
|
6
|
+
color?: ButtonColor;
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
click?: () => void;
|
|
8
9
|
};
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { CardProps } from './interface';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { BackgroundColor } from '@/types';
|
|
3
|
+
declare const classes: import("vue").Ref<string, string>;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<CardProps, {
|
|
10
|
+
classes: typeof classes;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
12
|
+
backgroundColor: BackgroundColor;
|
|
13
|
+
shadow: boolean;
|
|
14
|
+
fullWidth: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
16
|
declare const __VLS_component: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
13
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: BackgroundColor;
|
|
14
18
|
shadow: boolean;
|
|
15
19
|
fullWidth: boolean;
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
17
|
-
declare const _default:
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
22
|
export default _default;
|
|
19
|
-
type
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
24
|
new (): {
|
|
21
25
|
$slots: S;
|
|
22
26
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
}>;
|
|
6
|
+
declare const __VLS_self: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
9
|
export default _default;
|
|
13
|
-
type
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
11
|
new (): {
|
|
15
12
|
$slots: S;
|
|
16
13
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BackgroundColor, RoundedSize } from "@/types";
|
|
2
2
|
export type CardProps = {
|
|
3
|
-
backgroundColor?:
|
|
3
|
+
backgroundColor?: BackgroundColor;
|
|
4
4
|
shadow?: boolean;
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
rounded?: boolean;
|
|
7
|
-
roundedSize?:
|
|
7
|
+
roundedSize?: RoundedSize;
|
|
8
8
|
};
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { ContainerProps } from './interface';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
declare const classes: import("vue").Ref<string[], string[]>;
|
|
3
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
}>;
|
|
8
|
+
declare const __VLS_self: import("vue").DefineComponent<ContainerProps, {
|
|
9
|
+
classes: typeof classes;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {
|
|
11
|
+
container: boolean;
|
|
12
|
+
padding: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
14
|
declare const __VLS_component: import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {
|
|
12
15
|
container: boolean;
|
|
13
16
|
padding: boolean;
|
|
14
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
15
|
-
declare const _default:
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
19
|
export default _default;
|
|
17
|
-
type
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
21
|
new (): {
|
|
19
22
|
$slots: S;
|
|
20
23
|
};
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import { ModalProps } from './interface';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
2
|
+
import { ButtonSize } from '@/types';
|
|
3
|
+
declare const modal: import("vue").Ref<HTMLDialogElement | null, HTMLDialogElement | null>;
|
|
4
|
+
declare const emit: (event: "close", ...args: any[]) => void;
|
|
5
|
+
declare const classes: import("vue").Ref<string, string>;
|
|
6
|
+
declare const closeButtonClasses: import("vue").Ref<string, string>;
|
|
7
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
}>;
|
|
12
|
+
declare const __VLS_self: import("vue").DefineComponent<ModalProps, {
|
|
13
|
+
modal: typeof modal;
|
|
14
|
+
emit: typeof emit;
|
|
15
|
+
classes: typeof classes;
|
|
16
|
+
closeButtonClasses: typeof closeButtonClasses;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
close: (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
|
|
20
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
closeButton: boolean;
|
|
23
|
+
overflow: boolean;
|
|
24
|
+
closeButtonSize: ButtonSize;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
26
|
declare const __VLS_component: import("vue").DefineComponent<ModalProps, {
|
|
14
27
|
showModal: () => void;
|
|
15
28
|
closeModal: () => void;
|
|
@@ -20,12 +33,11 @@ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {
|
|
|
20
33
|
}>, {
|
|
21
34
|
closeButton: boolean;
|
|
22
35
|
overflow: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
closeButtonSize: ButtonSize;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
39
|
export default _default;
|
|
28
|
-
type
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
41
|
new (): {
|
|
30
42
|
$slots: S;
|
|
31
43
|
};
|
|
@@ -6,7 +6,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
modelValue?: any;
|
|
7
7
|
}> & Readonly<{
|
|
8
8
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
10
|
-
searchInput: HTMLInputElement;
|
|
11
|
-
}, HTMLDivElement>;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
10
|
export default _default;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
1
2
|
import { StepperProps } from './interface';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
12
|
-
declare const _default:
|
|
3
|
+
declare const activeClass: Ref<string, string>;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<StepperProps, {
|
|
10
|
+
activeClass: typeof activeClass;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
14
|
export default _default;
|
|
14
|
-
type
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
16
17
|
$slots: S;
|
|
17
18
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
}>;
|
|
6
|
+
declare const __VLS_self: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
9
|
export default _default;
|
|
13
|
-
type
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
11
|
new (): {
|
|
15
12
|
$slots: S;
|
|
16
13
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { StepperProps } from './interface';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
2
|
+
declare const stepperValue: import("vue").ComputedRef<string | undefined>;
|
|
3
|
+
declare const activateCallback: (index: number) => void;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_1: {
|
|
6
|
+
activateCallback: (index: number) => void;
|
|
11
7
|
};
|
|
12
|
-
type
|
|
8
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
}>;
|
|
11
|
+
declare const __VLS_self: import("vue").DefineComponent<StepperProps, {
|
|
12
|
+
stepperValue: typeof stepperValue;
|
|
13
|
+
activateCallback: typeof activateCallback;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
15
|
declare const __VLS_component: import("vue").DefineComponent<StepperProps, {
|
|
14
16
|
activateCallback: (index: number) => void;
|
|
15
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default:
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
19
|
export default _default;
|
|
18
|
-
type
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
21
|
new (): {
|
|
20
22
|
$slots: S;
|
|
21
23
|
};
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
2
|
+
declare const stepper: {
|
|
3
|
+
value: Ref<string>;
|
|
4
|
+
updateValue: (value: string) => void;
|
|
5
|
+
} | undefined;
|
|
6
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
|
+
declare var __VLS_5: {
|
|
8
|
+
currentStep: Ref<string, string>;
|
|
11
9
|
};
|
|
12
|
-
type
|
|
10
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
11
|
+
default?: (props: typeof __VLS_5) => any;
|
|
12
|
+
}>;
|
|
13
|
+
declare const __VLS_self: import("vue").DefineComponent<{}, {
|
|
14
|
+
stepper: typeof stepper;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
16
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
declare const _default:
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
18
|
export default _default;
|
|
16
|
-
type
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
20
|
new (): {
|
|
18
21
|
$slots: S;
|
|
19
22
|
};
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { StepperProps } from './interface';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
updateValue: (value: string) => void;
|
|
7
|
-
}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
2
|
+
declare const updateValue: (value: string) => void;
|
|
3
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
4
|
+
declare var __VLS_1: {
|
|
5
|
+
updateValue: (value: string) => void;
|
|
11
6
|
};
|
|
12
|
-
type
|
|
7
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
}>;
|
|
10
|
+
declare const __VLS_self: import("vue").DefineComponent<StepperProps, {
|
|
11
|
+
updateValue: typeof updateValue;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:value": (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{
|
|
15
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
17
|
declare const __VLS_component: import("vue").DefineComponent<StepperProps, {
|
|
14
18
|
updateValue: (value: string) => void;
|
|
15
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -17,9 +21,9 @@ declare const __VLS_component: import("vue").DefineComponent<StepperProps, {
|
|
|
17
21
|
}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{
|
|
18
22
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
19
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const _default:
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
25
|
export default _default;
|
|
22
|
-
type
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
27
|
new (): {
|
|
24
28
|
$slots: S;
|
|
25
29
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableSize } from "@/types";
|
|
2
2
|
import { Component, VNode } from "vue";
|
|
3
3
|
export type TableProps<T> = {
|
|
4
4
|
zebra?: boolean;
|
|
5
5
|
pinRows?: boolean;
|
|
6
6
|
pinCols?: boolean;
|
|
7
|
-
size?:
|
|
7
|
+
size?: TableSize;
|
|
8
8
|
columns: Column<T>[];
|
|
9
9
|
dataSource: T[];
|
|
10
10
|
ajax?: (params: object) => Promise<object> | string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum BackgroundColor {
|
|
2
|
+
Primary = 0,
|
|
3
|
+
PrimaryContent = 1,
|
|
4
|
+
Secondary = 2,
|
|
5
|
+
SecondaryContent = 3,
|
|
6
|
+
Accent = 4,
|
|
7
|
+
AccentContent = 5,
|
|
8
|
+
Neutral = 6,
|
|
9
|
+
NeutralContent = 7,
|
|
10
|
+
Base100 = 8,
|
|
11
|
+
Base200 = 9,
|
|
12
|
+
Base300 = 10,
|
|
13
|
+
BaseContent = 11,
|
|
14
|
+
Info = 12,
|
|
15
|
+
InfoContent = 13,
|
|
16
|
+
Success = 14,
|
|
17
|
+
SuccessContent = 15,
|
|
18
|
+
Warning = 16,
|
|
19
|
+
WarningContent = 17,
|
|
20
|
+
Error = 18,
|
|
21
|
+
ErrorContent = 19
|
|
22
|
+
}
|
|
23
|
+
export declare class BackgroundColorUtils {
|
|
24
|
+
static toClassName(color: BackgroundColor): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum ButtonColor {
|
|
2
|
+
Primary = 0,
|
|
3
|
+
PrimaryContent = 1,
|
|
4
|
+
Secondary = 2,
|
|
5
|
+
SecondaryContent = 3,
|
|
6
|
+
Accent = 4,
|
|
7
|
+
AccentContent = 5,
|
|
8
|
+
Neutral = 6,
|
|
9
|
+
NeutralContent = 7,
|
|
10
|
+
Base100 = 8,
|
|
11
|
+
Base200 = 9,
|
|
12
|
+
Base300 = 10,
|
|
13
|
+
BaseContent = 11,
|
|
14
|
+
Info = 12,
|
|
15
|
+
InfoContent = 13,
|
|
16
|
+
Success = 14,
|
|
17
|
+
SuccessContent = 15,
|
|
18
|
+
Warning = 16,
|
|
19
|
+
WarningContent = 17,
|
|
20
|
+
Error = 18,
|
|
21
|
+
ErrorContent = 19
|
|
22
|
+
}
|
|
23
|
+
export declare class ButtonColorUtils {
|
|
24
|
+
static toClassName(color: ButtonColor): string;
|
|
25
|
+
}
|