@vue/devtools-ui 7.0.5 → 7.0.7
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/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
|
|
3
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("floating-vue"),e=require("vue");const H=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},se={},ue={class:"h-3 w-3 $ui-inline-fcc"},ce=e.createElementVNode("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),de=[ce];function fe(t,n){return e.openBlock(),e.createElementBlock("div",ue,de)}const J=H(se,[["render",fe]]),pe={key:2},D=e.defineComponent({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:n}){const o=t,l=n,r=e.useAttrs(),s=e.computed(()=>r.to?"router-link":r.href?"a":"button"),a=e.computed(()=>o.loading||o.disabled);function u(c){if(a.value){c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation();return}l("click",c)}const i={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},d=e.useSlots(),f=e.computed(()=>o.flat?i.flat[o.type]:o.outlined?i.outlined[o.type]:i.normal[o.type]);return(c,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),e.mergeProps(c.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[i.common[o.type]],{"rounded-full":o.round==="full","$ui-base-br":o.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":o.flat||o.outlined},[c.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",c.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",f.value]]],onClickCapture:u}),{default:e.withCtx(()=>[c.loading?(e.openBlock(),e.createBlock(J,{key:0,class:"mt0.5 h-full w3"})):e.renderSlot(c.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),e.unref(d).default?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(c.$slots,"default")])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),me={},ge={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function ve(t,n){return e.openBlock(),e.createElementBlock("span",ge,[e.renderSlot(t.$slots,"default")])}const he=H(me,[["render",ve]]),R=e.defineComponent({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.inline?"span":"div"),{class:e.normalizeClass(["$ui-base",[n.icon,n.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function W(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function be(t,n,{enumerable:o=!1,unwrap:l=!0}={}){for(const[r,s]of Object.entries(n))r!=="value"&&(e.isRef(s)&&l?Object.defineProperty(t,r,{get(){return s.value},set(a){s.value=a},enumerable:o}):Object.defineProperty(t,r,{value:s,enumerable:o}));return t}function B(t){return typeof t=="function"?t():e.unref(t)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ye=t=>typeof t<"u",we=Object.prototype.toString,ke=t=>we.call(t)==="[object Object]",F=()=>{},q=Ce();function Ce(){var t,n;return Y&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function X(t,n){function o(...l){return new Promise((r,s)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(r).catch(s)})}return o}const Q=t=>t();function Be(t,n={}){let o,l,r=F;const s=u=>{clearTimeout(u),r(),r=F};return u=>{const i=B(t),d=B(n.maxWait);return o&&s(o),i<=0||d!==void 0&&d<=0?(l&&(s(l),l=null),Promise.resolve(u())):new Promise((f,c)=>{r=n.rejectOnCancel?c:f,d&&!l&&(l=setTimeout(()=>{o&&s(o),l=null,f(u())},d)),o=setTimeout(()=>{l&&s(l),l=null,f(u())},i)})}}function Ve(t=Q){const n=e.ref(!0);function o(){n.value=!1}function l(){n.value=!0}const r=(...s)=>{n.value&&t(...s)};return{isActive:e.readonly(n),pause:o,resume:l,eventFilter:r}}function $e(t){return t||e.getCurrentInstance()}function Z(...t){if(t.length!==1)return e.toRef(...t);const n=t[0];return typeof n=="function"?e.readonly(e.customRef(()=>({get:n,set:F}))):e.ref(n)}function Se(t,n=200,o={}){return X(Be(n,o),t)}function _e(t,n=200,o={}){const l=e.ref(t.value),r=Se(()=>{l.value=t.value},n,o);return e.watch(t,()=>r()),l}function Ne(t,n={}){let o=t,l,r;const s=e.customRef((p,m)=>(l=p,r=m,{get(){return a()},set(v){u(v)}}));function a(p=!0){return p&&l(),o}function u(p,m=!0){var v,h;if(p===o)return;const k=o;((v=n.onBeforeChange)==null?void 0:v.call(n,p,k))!==!1&&(o=p,(h=n.onChanged)==null||h.call(n,p,k),m&&r())}return be(s,{get:a,set:u,untrackedGet:()=>a(!1),silentSet:p=>u(p,!1),peek:()=>a(!1),lay:p=>u(p,!1)},{enumerable:!0})}function Ee(t,n,o={}){const{eventFilter:l=Q,...r}=o;return e.watch(t,X(l,n),r)}function Te(t,n,o={}){const{eventFilter:l,...r}=o,{eventFilter:s,pause:a,resume:u,isActive:i}=Ve(l);return{stop:Ee(t,n,{...r,eventFilter:s}),pause:a,resume:u,isActive:i}}function U(t,n=!0,o){$e()?e.onMounted(t,o):n?t():e.nextTick(t)}function xe(t=!1,n={}){const{truthyValue:o=!0,falsyValue:l=!1}=n,r=e.isRef(t),s=e.ref(t);function a(u){if(arguments.length)return s.value=u,s.value;{const i=B(o);return s.value=s.value===i?B(l):i,s.value}}return r?a:[s,a]}function N(t){var n;const o=B(t);return(n=o==null?void 0:o.$el)!=null?n:o}const E=Y?window:void 0;function L(...t){let n,o,l,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,r]=t,n=E):[n,o,l,r]=t,!n)return F;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const s=[],a=()=>{s.forEach(f=>f()),s.length=0},u=(f,c,p,m)=>(f.addEventListener(c,p,m),()=>f.removeEventListener(c,p,m)),i=e.watch(()=>[N(n),B(r)],([f,c])=>{if(a(),!f)return;const p=ke(c)?{...c}:c;s.push(...o.flatMap(m=>l.map(v=>u(f,m,v,p))))},{immediate:!0,flush:"post"}),d=()=>{i(),a()};return W(d),d}function De(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function ee(...t){let n,o,l={};t.length===3?(n=t[0],o=t[1],l=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,o=t[0],l=t[1]):(n=t[0],o=t[1]):(n=!0,o=t[0]);const{target:r=E,eventName:s="keydown",passive:a=!1,dedupe:u=!1}=l,i=De(n);return L(r,s,f=>{f.repeat&&B(u)||i(f)&&o(f)},a)}function ze(){const t=e.ref(!1);return e.getCurrentInstance()&&e.onMounted(()=>{t.value=!0}),t}function te(t){const n=ze();return e.computed(()=>(n.value,!!t()))}function Oe(t,n={}){const{window:o=E}=n,l=te(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function");let r;const s=e.ref(!1),a=d=>{s.value=d.matches},u=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a))},i=e.watchEffect(()=>{l.value&&(u(),r=o.matchMedia(B(t)),"addEventListener"in r?r.addEventListener("change",a):r.addListener(a),s.value=r.matches)});return W(()=>{i(),u(),r=void 0}),s}function Me(t){return JSON.parse(JSON.stringify(t))}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},P="__vueuse_ssr_handlers__",Pe=Ae();function Ae(){return P in M||(M[P]=M[P]||{}),M[P]}function oe(t,n){return Pe[t]||n}function Re(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Fe={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},K="vueuse-storage";function Le(t,n,o,l={}){var r;const{flush:s="pre",deep:a=!0,listenToStorageChanges:u=!0,writeDefaults:i=!0,mergeDefaults:d=!1,shallow:f,window:c=E,eventFilter:p,onError:m=g=>{console.error(g)},initOnMounted:v}=l,h=(f?e.shallowRef:e.ref)(typeof n=="function"?n():n);if(!o)try{o=oe("getDefaultStorage",()=>{var g;return(g=E)==null?void 0:g.localStorage})()}catch(g){m(g)}if(!o)return h;const k=B(n),_=Re(k),V=(r=l.serializer)!=null?r:Fe[_],{pause:w,resume:b}=Te(h,()=>C(h.value),{flush:s,deep:a,eventFilter:p});return c&&u&&U(()=>{L(c,"storage",$),L(c,K,z),v&&$()}),v||$(),h;function C(g){try{if(g==null)o.removeItem(t);else{const y=V.write(g),x=o.getItem(t);x!==y&&(o.setItem(t,y),c&&c.dispatchEvent(new CustomEvent(K,{detail:{key:t,oldValue:x,newValue:y,storageArea:o}})))}}catch(y){m(y)}}function S(g){const y=g?g.newValue:o.getItem(t);if(y==null)return i&&k!=null&&o.setItem(t,V.write(k)),k;if(!g&&d){const x=V.read(y);return typeof d=="function"?d(x,k):_==="object"&&!Array.isArray(x)?{...k,...x}:x}else return typeof y!="string"?y:V.read(y)}function z(g){$(g.detail)}function $(g){if(!(g&&g.storageArea!==o)){if(g&&g.key==null){h.value=k;return}if(!(g&&g.key!==t)){w();try{(g==null?void 0:g.newValue)!==V.write(h.value)&&(h.value=S(g))}catch(y){m(y)}finally{g?e.nextTick(b):b()}}}}}function We(t){return Oe("(prefers-color-scheme: dark)",t)}function je(t={}){const{selector:n="html",attribute:o="class",initialValue:l="auto",window:r=E,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:i,emitAuto:d,disableTransition:f=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},p=We({window:r}),m=e.computed(()=>p.value?"dark":"light"),v=i||(a==null?Z(l):Le(a,l,s,{window:r,listenToStorageChanges:u})),h=e.computed(()=>v.value==="auto"?m.value:v.value),k=oe("updateHTMLAttrs",(b,C,S)=>{const z=typeof b=="string"?r==null?void 0:r.document.querySelector(b):N(b);if(!z)return;let $;if(f){$=r.document.createElement("style");const g="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";$.appendChild(document.createTextNode(g)),r.document.head.appendChild($)}if(C==="class"){const g=S.split(/\s/g);Object.values(c).flatMap(y=>(y||"").split(/\s/g)).filter(Boolean).forEach(y=>{g.includes(y)?z.classList.add(y):z.classList.remove(y)})}else z.setAttribute(C,S);f&&(r.getComputedStyle($).opacity,document.head.removeChild($))});function _(b){var C;k(n,o,(C=c[b])!=null?C:b)}function V(b){t.onChanged?t.onChanged(b,_):_(b)}e.watch(h,V,{flush:"post",immediate:!0}),U(()=>V(h.value));const w=e.computed({get(){return d?v.value:h.value},set(b){v.value=b}});try{return Object.assign(w,{store:v,system:m,state:h})}catch{return w}}function Ie(t,n,o={}){const{window:l=E,...r}=o;let s;const a=te(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},i=e.computed(()=>Array.isArray(t)?t.map(c=>N(c)):[N(t)]),d=e.watch(i,c=>{if(u(),a.value&&l){s=new ResizeObserver(n);for(const p of c)p&&s.observe(p,r)}},{immediate:!0,flush:"post",deep:!0}),f=()=>{u(),d()};return W(f),{isSupported:a,stop:f}}function He(t,n={width:0,height:0},o={}){const{window:l=E,box:r="content-box"}=o,s=e.computed(()=>{var c,p;return(p=(c=N(t))==null?void 0:c.namespaceURI)==null?void 0:p.includes("svg")}),a=e.ref(n.width),u=e.ref(n.height),{stop:i}=Ie(t,([c])=>{const p=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&s.value){const m=N(t);if(m){const v=l.getComputedStyle(m);a.value=Number.parseFloat(v.width),u.value=Number.parseFloat(v.height)}}else if(p){const m=Array.isArray(p)?p:[p];a.value=m.reduce((v,{inlineSize:h})=>v+h,0),u.value=m.reduce((v,{blockSize:h})=>v+h,0)}else a.value=c.contentRect.width,u.value=c.contentRect.height},o);U(()=>{const c=N(t);c&&(a.value="offsetWidth"in c?c.offsetWidth:n.width,u.value="offsetHeight"in c?c.offsetHeight:n.height)});const d=e.watch(()=>N(t),c=>{a.value=c?n.width:0,u.value=c?n.height:0});function f(){i(),d()}return{width:a,height:u,stop:f}}function j(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function ne(t){const n=window.getComputedStyle(t);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&t.clientWidth<t.scrollWidth||n.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const o=t.parentNode;return!o||o.tagName==="BODY"?!1:ne(o)}}function Je(t){const n=t||window.event,o=n.target;return ne(o)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const A=new WeakMap;function Ue(t,n=!1){const o=e.ref(n);let l=null,r;e.watch(Z(t),u=>{const i=j(B(u));if(i){const d=i;A.get(d)||A.set(d,r),o.value&&(d.style.overflow="hidden")}},{immediate:!0});const s=()=>{const u=j(B(t));!u||o.value||(q&&(l=L(u,"touchmove",i=>{Je(i)},{passive:!1})),u.style.overflow="hidden",o.value=!0)},a=()=>{var u;const i=j(B(t));!i||!o.value||(q&&(l==null||l()),i.style.overflow=(u=A.get(i))!=null?u:"",A.delete(i),o.value=!1)};return W(a),e.computed({get(){return o.value},set(u){u?s():a()}})}function T(t,n,o,l={}){var r,s,a;const{clone:u=!1,passive:i=!1,eventName:d,deep:f=!1,defaultValue:c,shouldEmit:p}=l,m=e.getCurrentInstance(),v=o||(m==null?void 0:m.emit)||((r=m==null?void 0:m.$emit)==null?void 0:r.bind(m))||((a=(s=m==null?void 0:m.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(m==null?void 0:m.proxy));let h=d;n||(n="modelValue"),h=h||`update:${n.toString()}`;const k=w=>u?typeof u=="function"?u(w):Me(w):w,_=()=>ye(t[n])?k(t[n]):c,V=w=>{p?p(w)&&v(h,w):v(h,w)};if(i){const w=_(),b=e.ref(w);let C=!1;return e.watch(()=>t[n],S=>{C||(C=!0,b.value=k(S),e.nextTick(()=>C=!1))}),e.watch(b,S=>{!C&&(S!==t[n]||f)&&V(S)},{deep:f}),b}else return e.computed({get(){return _()},set(w){V(w)}})}const Ge={class:"$ui-dark-toggle-vtr"},qe=e.defineComponent({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const n=t,o=T(n,"isDark"),l=je({initialValue:o.value?"dark":"light",onChanged:i=>{o.value=i==="dark"}}),r=e.computed({get:()=>l.value==="dark",set:i=>l.value=i?"dark":"light"}),s=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(i){if(!s||!i||!n.animation){r.value=!r.value;return}const d=i.clientX,f=i.clientY,c=Math.hypot(Math.max(d,innerWidth-d),Math.max(f,innerHeight-f));document.startViewTransition(async()=>{r.value=!r.value,await e.nextTick()}).ready.then(()=>{const m=[`circle(0px at ${d}px ${f}px)`,`circle(${c}px at ${d}px ${f}px)`];document.documentElement.animate({clipPath:r.value?[...m].reverse():m},{duration:n.animationDuration,easing:"ease-in",pseudoElement:r.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const u={mode:l,isDark:r,toggle:a};return(i,d)=>(e.openBlock(),e.createElementBlock("span",Ge,[e.renderSlot(i.$slots,"default",e.normalizeProps(e.guardReactiveProps(u)))]))}}),Ke={},Ye={class:"$ui-base border $ui-border-base rounded shadow-sm"};function Xe(t,n){return e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(t.$slots,"default")])}const Qe=H(Ke,[["render",Xe]]),G=e.defineComponent({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[n.dim?"bg-opacity-50!":"bg-opacity-0!",n.blur?"backdrop-blur-sm":""]])},[e.renderSlot(n.$slots,"default")],2))}}),Ze={class:"h7.5 w-full $ui-fbc"},et={class:"text-4.5"},tt=e.createElementVNode("div",{class:"i-carbon-close"},null,-1),ot=[tt],nt={class:"content transition-all transition-duration-300"},rt={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},at={class:"$ui-fcc"},re=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean}},emits:["close","update:modelValue"],setup(t,{emit:n}){const o=t,r=T(o,"modelValue",n,{passive:!0}),s=Ue(()=>window.document.documentElement);e.watchEffect(()=>{r.value?s.value=!0:s.value=!1});function a(){r.value&&o.autoClose&&(r.value=!1)}ee("Escape",()=>{a()});const u=e.ref(!1);return e.onMounted(()=>u.value=!0),(i,d)=>u.value||i.mountTo==="body"?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:i.mountTo},[e.createVNode(e.Transition,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createBlock(G,{key:0,dim:i.dim,blur:i.blur},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:e.normalizeStyle({width:o.width,height:o.height})},[e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.renderSlot(i.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),i.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:a},ot)):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.renderSlot(i.$slots,"default")]),e.createElementVNode("div",rt,[e.renderSlot(i.$slots,"footer",{},()=>[e.renderSlot(i.$slots,"footer",{},()=>[e.createElementVNode("div",at,[e.createVNode(D,{type:"primary",onClick:a},{default:e.withCtx(()=>[e.createTextVNode(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):e.createCommentVNode("",!0)]),_:3})],8,["to"])):e.createCommentVNode("",!0)}}),lt=["type","placeholder","disabled"],it={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},I="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",ae=e.defineComponent({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},password:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:n}){const o=t,l=n,r=T(o,"modelValue",l),s=_e(e.computed(()=>o.loading),o.loadingDebounceTime),a=Ne(!1,{onChanged(c){l("updateFocused",c)}}),u=e.computed(()=>o.variant==="flat"||o.variant==="warning"),i=e.computed(()=>o.disabled||s.value),d=e.ref();let f=!1;return e.watchEffect(()=>{s.value&&a.value?f=!0:!s.value&&f&&(f=!1,e.nextTick(()=>{a.value=!0}))}),e.onMounted(()=>{o.autoFocus&&(a.value=!0)}),e.watchEffect(()=>{var c;a.value&&((c=d.value)==null||c.focus())}),(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":c.variant==="flat","cursor-not-allowed opacity-50":i.value,accent:c.variant==="accent",focused:e.unref(a)},[c.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:p[2]||(p[2]=()=>{a.value=!0})},[c.leftIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(I)},[e.createVNode(R,{icon:c.leftIcon},null,8,["icon"])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":p[0]||(p[0]=m=>e.isRef(r)?r.value=m:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:o.password?"password":"text",placeholder:c.placeholder,disabled:i.value,onBlur:p[1]||(p[1]=m=>a.value=!1)},null,40,lt),[[e.vModelDynamic,e.unref(r)]]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(I)},[e.createVNode(J)])):c.rightIcon?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(I)},[e.createVNode(R,{icon:c.rightIcon},null,8,["icon"])])):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",it))],2))}}),st={class:"$ui-base"},ut=e.defineComponent({__name:"FormField",props:{modelValue:{},status:{default:"normal"},showMessage:{type:Boolean,default:!0},message:{default:""},placeholder:{}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,r=T(o,"modelValue",n),s=e.ref(!1),a=e.computed(()=>o.message&&o.message.length&&o.showMessage),u={normal:"color-gray-600 dark:color-gray-400",warning:"color-warning-500 dark:color-warning-200",danger:"color-danger-500 dark:color-danger-200",success:"color-primary-700 dark:color-primary-500"},i={warning:"i-bx:bxs-error",danger:"i-ic-round-error",success:"i-ep:success-filled"};return(d,f)=>(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(ae,{modelValue:e.unref(r),"onUpdate:modelValue":f[0]||(f[0]=c=>e.isRef(r)?r.value=c:null),placeholder:d.placeholder,onUpdateFocused:f[1]||(f[1]=c=>s.value=c)},null,8,["modelValue","placeholder"]),e.createElementVNode("div",{class:e.normalizeClass(["mt2 $ui-base text-3.5",[u[d.status],{"opacity-65":!s.value}]])},[d.status!=="normal"&&a.value?(e.openBlock(),e.createBlock(R,{key:0,inline:"",icon:i[d.status]},null,8,["icon"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(a.value?d.message:""),1)],2)]))}}),ct={class:"overflow-hidden rounded-lg shadow-lg"},dt=e.createElementVNode("div",{class:"p2 opacity-40"}," Empty... ",-1),le=e.defineComponent({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const n=t;return e.provide("$ui-dropdown-disabled",e.computed(()=>n.disabled)),(o,l)=>(e.openBlock(),e.createBlock(e.unref(O.Dropdown),{disabled:o.disabled,class:"inline-block w-auto",shown:o.shown,triggers:[o.trigger],distance:o.distance+6,placement:o.placement,skidding:o.skidding,"onUpdate:shown":l[0]||(l[0]=r=>o.$emit("update:visible",r)),onClick:l[1]||(l[1]=r=>{r.stopPropagation()})},{popper:e.withCtx(({hide:r})=>[e.createElementVNode("div",ct,[e.renderSlot(o.$slots,"popper",e.normalizeProps(e.guardReactiveProps({hide:r})),()=>[dt])])]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(D,e.mergeProps({...o.buttonProps,disabled:o.disabled},{class:o.buttonClass}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(o.$slots,"button-icon")]),"icon-right":e.withCtx(()=>[e.renderSlot(o.$slots,"button-icon-right")]),_:2},[o.label?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),ft=e.defineComponent({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const n=t,o=e.inject("$ui-dropdown-disabled",void 0);return(l,r)=>e.withDirectives((e.openBlock(),e.createBlock(D,e.mergeProps({...n,round:!1},{disabled:e.unref(o),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:e.withCtx(()=>[e.renderSlot(l.$slots,"icon")]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["disabled"])),[[e.unref(O.VClosePopper)]])}}),pt={class:"$ui-fec gap2.5"},mt=e.defineComponent({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:n}){const o=t,l=n,r=T(o,"modelValue",l);e.watchEffect(()=>{r.value||l("close")});function s(a=!1){(o.autoClose||a)&&(r.value=!1)}return(a,u)=>(e.openBlock(),e.createBlock(re,{modelValue:e.unref(r),"onUpdate:modelValue":u[2]||(u[2]=i=>e.isRef(r)?r.value=i:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:e.withCtx(()=>[e.createElementVNode("div",pt,[e.createVNode(D,{onClick:u[0]||(u[0]=()=>{l("cancel"),s(!0)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelText),1)]),_:1}),e.createVNode(D,{loading:a.loading,type:"primary",onClick:u[1]||(u[1]=()=>{l("confirm"),s()})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.confirmText),1)]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{class:"h-auto w-auto"},()=>[e.createTextVNode(e.toDisplayString(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),gt={class:"m1 min-w-35 w-auto flex flex-col"},vt=["onClick"],ht=e.createElementVNode("div",{class:"i-mdi-chevron-down"},null,-1),bt=e.defineComponent({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,l=n,r=e.useSlots(),s=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)}),a=e.computed(()=>{const i=o.options.find(d=>d.value===s.value);return i!=null&&i.label?o.labelRenderer(i.label):o.placeholder});function u(i){o.multiple?s.value=s.value.includes(i.value)?s.value.filter(d=>d!==i.value):[...s.value,i.value]:s.value=i.value}return(i,d)=>(e.openBlock(),e.createBlock(le,e.mergeProps({label:a.value},{buttonProps:i.buttonProps,disabled:i.disabled}),e.createSlots({popper:e.withCtx(()=>[e.createElementVNode("div",gt,[e.unref(r).item?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.options,f=>(e.openBlock(),e.createElementBlock("div",{key:f.value,class:"cursor-pointer",onClick:c=>u(f)},[e.renderSlot(i.$slots,"item",e.normalizeProps(e.guardReactiveProps({item:f,active:i.multiple?s.value.includes(f.value):f.value===s.value,disabled:i.disabled})))],8,vt))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.options,f=>e.withDirectives((e.openBlock(),e.createBlock(D,{key:f.value,disabled:i.disabled,round:"normal",class:e.normalizeClass(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:i.multiple?s.value.includes(f.value):f.value===s.value}]),onClick:c=>u(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","class","onClick"])),[[e.unref(O.VClosePopper),i.autoClose]])),128))])]),"button-icon-right":e.withCtx(()=>[ht]),_:2},[e.unref(r).button?{name:"default",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),yt=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:n}){const r=T(t,"modelValue",n),s=xe(r);return(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[a.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:u[0]||(u[0]=i=>!a.disabled&&e.unref(s)())},[e.renderSlot(a.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass([{selected:e.unref(r)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[e.createElementVNode("div",{class:e.normalizeClass(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!a.disabled},{"opacity-65":a.disabled}]])},null,2)],2)],2))}}),wt=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:n}){const r=T(t,"modelValue",n);return(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[e.unref(r)?s.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:a[0]||(a[0]=u=>r.value=!e.unref(r))},[e.createElementVNode("div",{class:e.normalizeClass([[e.unref(r)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),kt=e.defineComponent({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean}},emits:["update:modelValue","close"],setup(t,{emit:n}){const o=t,l=n,{height:r}=He(()=>typeof o.top=="string"?document.querySelector(o.top):o.top,void 0,{box:"border-box"}),s=T(o,"modelValue",l),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};ee("Escape",()=>{o.closable&&(s.value=!1)});const u=e.computed(()=>a[o.placement]),i=e.ref(!1);return e.onMounted(()=>i.value=!0),(d,f)=>i.value||d.mountTo==="body"?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.mountTo},[e.createVNode(e.Transition,{"enter-from-class":`${u.value.transition}`,"leave-to-class":`${u.value.transition}`},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createBlock(G,{key:0,class:e.normalizeClass({"pointer-events-none":d.permanent}),dim:d.dim,blur:d.blur,onClick:f[2]||(f[2]=c=>d.closeOutside&&d.closable&&(s.value=!1))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([[u.value.class,d.contentClass??"",d.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:e.normalizeStyle({top:d.placement==="bottom"?"auto":`${e.unref(r)}px`,height:["top","bottom"].includes(d.placement)?"auto":`calc(100% - ${e.unref(r)}px)`}),onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},[d.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:f[0]||(f[0]=c=>s.value=!1)})):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):e.createCommentVNode("",!0)}}),ie=e.defineComponent({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const n=t,o={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},l={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},r=e.ref(!1);e.onMounted(()=>{r.value=!0,setTimeout(()=>{r.value=!1},n.duration)});const s=e.computed(()=>n.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[e.createVNode(e.Transition,{"enter-from-class":s.value,"leave-to-class":s.value,onAfterLeave:u[0]||(u[0]=()=>{var i;r.value||(i=a.onClose)==null||i.call(a)})},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex transition-all duration-300",style:e.normalizeStyle({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[e.createElementVNode("div",{class:e.normalizeClass(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,l[a.type]]])},[e.createElementVNode("div",{class:e.normalizeClass(o[a.type])},null,2),e.createElementVNode("div",null,e.toDisplayString(a.message),1)],2)],4)):e.createCommentVNode("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),Ct=e.defineComponent({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.unref(O.Tooltip),e.mergeProps({disabled:n.disabled,placement:n.placement},n.$attrs),{popper:e.withCtx(()=>[e.renderSlot(n.$slots,"popper")]),default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["disabled","placement"]))}});function Bt(t){const n=document.createElement("div");n.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(n);const o=t.onClose;function l(){e.render(null,n)}t.onClose=()=>{l(),o==null||o(),document.body.removeChild(n)};const r=e.h(ie,t);e.render(r,n)}Object.defineProperty(exports,"VTooltip",{enumerable:!0,get:()=>O.VTooltip});exports.VueBadge=he;exports.VueButton=D;exports.VueCard=Qe;exports.VueCheckbox=wt;exports.VueConfirm=mt;exports.VueDarkToggle=qe;exports.VueDialog=re;exports.VueDrawer=kt;exports.VueDropdown=le;exports.VueDropdownButton=ft;exports.VueFormField=ut;exports.VueIcon=R;exports.VueInput=ae;exports.VueLoadingIndicator=J;exports.VueNotification=ie;exports.VueOverlay=G;exports.VueSelect=bt;exports.VueSwitch=yt;exports.VueTooltip=Ct;exports.showVueNotification=Bt;
|
|
3
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("floating-vue"),e=require("vue");const H=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},se={},ue={class:"h-3 w-3 $ui-inline-fcc"},ce=e.createElementVNode("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),de=[ce];function fe(t,n){return e.openBlock(),e.createElementBlock("div",ue,de)}const J=H(se,[["render",fe]]),pe={key:2},D=e.defineComponent({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:n}){const o=t,l=n,r=e.useAttrs(),s=e.computed(()=>r.to?"router-link":r.href?"a":"button"),a=e.computed(()=>o.loading||o.disabled);function u(c){if(a.value){c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation();return}l("click",c)}const i={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},d=e.useSlots(),f=e.computed(()=>o.flat?i.flat[o.type]:o.outlined?i.outlined[o.type]:i.normal[o.type]);return(c,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),e.mergeProps(c.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[i.common[o.type]],{"rounded-full":o.round==="full","$ui-base-br":o.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":o.flat||o.outlined},[c.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",c.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",f.value]]],onClickCapture:u}),{default:e.withCtx(()=>[c.loading?(e.openBlock(),e.createBlock(J,{key:0,class:"mt0.5 h-full w3"})):e.renderSlot(c.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),e.unref(d).default?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(c.$slots,"default")])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),me={},ge={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function ve(t,n){return e.openBlock(),e.createElementBlock("span",ge,[e.renderSlot(t.$slots,"default")])}const he=H(me,[["render",ve]]),R=e.defineComponent({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.inline?"span":"div"),{class:e.normalizeClass(["$ui-base",[n.icon,n.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}});function W(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function be(t,n,{enumerable:o=!1,unwrap:l=!0}={}){for(const[r,s]of Object.entries(n))r!=="value"&&(e.isRef(s)&&l?Object.defineProperty(t,r,{get(){return s.value},set(a){s.value=a},enumerable:o}):Object.defineProperty(t,r,{value:s,enumerable:o}));return t}function B(t){return typeof t=="function"?t():e.unref(t)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ye=t=>typeof t<"u",we=Object.prototype.toString,ke=t=>we.call(t)==="[object Object]",F=()=>{},q=Ce();function Ce(){var t,n;return Y&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function X(t,n){function o(...l){return new Promise((r,s)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(r).catch(s)})}return o}const Q=t=>t();function Be(t,n={}){let o,l,r=F;const s=u=>{clearTimeout(u),r(),r=F};return u=>{const i=B(t),d=B(n.maxWait);return o&&s(o),i<=0||d!==void 0&&d<=0?(l&&(s(l),l=null),Promise.resolve(u())):new Promise((f,c)=>{r=n.rejectOnCancel?c:f,d&&!l&&(l=setTimeout(()=>{o&&s(o),l=null,f(u())},d)),o=setTimeout(()=>{l&&s(l),l=null,f(u())},i)})}}function Ve(t=Q){const n=e.ref(!0);function o(){n.value=!1}function l(){n.value=!0}const r=(...s)=>{n.value&&t(...s)};return{isActive:e.readonly(n),pause:o,resume:l,eventFilter:r}}function $e(t){return t||e.getCurrentInstance()}function Z(...t){if(t.length!==1)return e.toRef(...t);const n=t[0];return typeof n=="function"?e.readonly(e.customRef(()=>({get:n,set:F}))):e.ref(n)}function Se(t,n=200,o={}){return X(Be(n,o),t)}function _e(t,n=200,o={}){const l=e.ref(t.value),r=Se(()=>{l.value=t.value},n,o);return e.watch(t,()=>r()),l}function Ne(t,n={}){let o=t,l,r;const s=e.customRef((p,m)=>(l=p,r=m,{get(){return a()},set(v){u(v)}}));function a(p=!0){return p&&l(),o}function u(p,m=!0){var v,h;if(p===o)return;const k=o;((v=n.onBeforeChange)==null?void 0:v.call(n,p,k))!==!1&&(o=p,(h=n.onChanged)==null||h.call(n,p,k),m&&r())}return be(s,{get:a,set:u,untrackedGet:()=>a(!1),silentSet:p=>u(p,!1),peek:()=>a(!1),lay:p=>u(p,!1)},{enumerable:!0})}function Ee(t,n,o={}){const{eventFilter:l=Q,...r}=o;return e.watch(t,X(l,n),r)}function Te(t,n,o={}){const{eventFilter:l,...r}=o,{eventFilter:s,pause:a,resume:u,isActive:i}=Ve(l);return{stop:Ee(t,n,{...r,eventFilter:s}),pause:a,resume:u,isActive:i}}function U(t,n=!0,o){$e()?e.onMounted(t,o):n?t():e.nextTick(t)}function xe(t=!1,n={}){const{truthyValue:o=!0,falsyValue:l=!1}=n,r=e.isRef(t),s=e.ref(t);function a(u){if(arguments.length)return s.value=u,s.value;{const i=B(o);return s.value=s.value===i?B(l):i,s.value}}return r?a:[s,a]}function N(t){var n;const o=B(t);return(n=o==null?void 0:o.$el)!=null?n:o}const E=Y?window:void 0;function L(...t){let n,o,l,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,r]=t,n=E):[n,o,l,r]=t,!n)return F;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const s=[],a=()=>{s.forEach(f=>f()),s.length=0},u=(f,c,p,m)=>(f.addEventListener(c,p,m),()=>f.removeEventListener(c,p,m)),i=e.watch(()=>[N(n),B(r)],([f,c])=>{if(a(),!f)return;const p=ke(c)?{...c}:c;s.push(...o.flatMap(m=>l.map(v=>u(f,m,v,p))))},{immediate:!0,flush:"post"}),d=()=>{i(),a()};return W(d),d}function De(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function ee(...t){let n,o,l={};t.length===3?(n=t[0],o=t[1],l=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,o=t[0],l=t[1]):(n=t[0],o=t[1]):(n=!0,o=t[0]);const{target:r=E,eventName:s="keydown",passive:a=!1,dedupe:u=!1}=l,i=De(n);return L(r,s,f=>{f.repeat&&B(u)||i(f)&&o(f)},a)}function ze(){const t=e.ref(!1);return e.getCurrentInstance()&&e.onMounted(()=>{t.value=!0}),t}function te(t){const n=ze();return e.computed(()=>(n.value,!!t()))}function Oe(t,n={}){const{window:o=E}=n,l=te(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function");let r;const s=e.ref(!1),a=d=>{s.value=d.matches},u=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a))},i=e.watchEffect(()=>{l.value&&(u(),r=o.matchMedia(B(t)),"addEventListener"in r?r.addEventListener("change",a):r.addListener(a),s.value=r.matches)});return W(()=>{i(),u(),r=void 0}),s}function Me(t){return JSON.parse(JSON.stringify(t))}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},P="__vueuse_ssr_handlers__",Pe=Ae();function Ae(){return P in M||(M[P]=M[P]||{}),M[P]}function oe(t,n){return Pe[t]||n}function Re(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Fe={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},K="vueuse-storage";function Le(t,n,o,l={}){var r;const{flush:s="pre",deep:a=!0,listenToStorageChanges:u=!0,writeDefaults:i=!0,mergeDefaults:d=!1,shallow:f,window:c=E,eventFilter:p,onError:m=g=>{console.error(g)},initOnMounted:v}=l,h=(f?e.shallowRef:e.ref)(typeof n=="function"?n():n);if(!o)try{o=oe("getDefaultStorage",()=>{var g;return(g=E)==null?void 0:g.localStorage})()}catch(g){m(g)}if(!o)return h;const k=B(n),_=Re(k),V=(r=l.serializer)!=null?r:Fe[_],{pause:w,resume:b}=Te(h,()=>C(h.value),{flush:s,deep:a,eventFilter:p});return c&&u&&U(()=>{L(c,"storage",$),L(c,K,z),v&&$()}),v||$(),h;function C(g){try{if(g==null)o.removeItem(t);else{const y=V.write(g),x=o.getItem(t);x!==y&&(o.setItem(t,y),c&&c.dispatchEvent(new CustomEvent(K,{detail:{key:t,oldValue:x,newValue:y,storageArea:o}})))}}catch(y){m(y)}}function S(g){const y=g?g.newValue:o.getItem(t);if(y==null)return i&&k!=null&&o.setItem(t,V.write(k)),k;if(!g&&d){const x=V.read(y);return typeof d=="function"?d(x,k):_==="object"&&!Array.isArray(x)?{...k,...x}:x}else return typeof y!="string"?y:V.read(y)}function z(g){$(g.detail)}function $(g){if(!(g&&g.storageArea!==o)){if(g&&g.key==null){h.value=k;return}if(!(g&&g.key!==t)){w();try{(g==null?void 0:g.newValue)!==V.write(h.value)&&(h.value=S(g))}catch(y){m(y)}finally{g?e.nextTick(b):b()}}}}}function We(t){return Oe("(prefers-color-scheme: dark)",t)}function je(t={}){const{selector:n="html",attribute:o="class",initialValue:l="auto",window:r=E,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:i,emitAuto:d,disableTransition:f=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},p=We({window:r}),m=e.computed(()=>p.value?"dark":"light"),v=i||(a==null?Z(l):Le(a,l,s,{window:r,listenToStorageChanges:u})),h=e.computed(()=>v.value==="auto"?m.value:v.value),k=oe("updateHTMLAttrs",(b,C,S)=>{const z=typeof b=="string"?r==null?void 0:r.document.querySelector(b):N(b);if(!z)return;let $;if(f){$=r.document.createElement("style");const g="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";$.appendChild(document.createTextNode(g)),r.document.head.appendChild($)}if(C==="class"){const g=S.split(/\s/g);Object.values(c).flatMap(y=>(y||"").split(/\s/g)).filter(Boolean).forEach(y=>{g.includes(y)?z.classList.add(y):z.classList.remove(y)})}else z.setAttribute(C,S);f&&(r.getComputedStyle($).opacity,document.head.removeChild($))});function _(b){var C;k(n,o,(C=c[b])!=null?C:b)}function V(b){t.onChanged?t.onChanged(b,_):_(b)}e.watch(h,V,{flush:"post",immediate:!0}),U(()=>V(h.value));const w=e.computed({get(){return d?v.value:h.value},set(b){v.value=b}});try{return Object.assign(w,{store:v,system:m,state:h})}catch{return w}}function Ie(t,n,o={}){const{window:l=E,...r}=o;let s;const a=te(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},i=e.computed(()=>Array.isArray(t)?t.map(c=>N(c)):[N(t)]),d=e.watch(i,c=>{if(u(),a.value&&l){s=new ResizeObserver(n);for(const p of c)p&&s.observe(p,r)}},{immediate:!0,flush:"post",deep:!0}),f=()=>{u(),d()};return W(f),{isSupported:a,stop:f}}function He(t,n={width:0,height:0},o={}){const{window:l=E,box:r="content-box"}=o,s=e.computed(()=>{var c,p;return(p=(c=N(t))==null?void 0:c.namespaceURI)==null?void 0:p.includes("svg")}),a=e.ref(n.width),u=e.ref(n.height),{stop:i}=Ie(t,([c])=>{const p=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&s.value){const m=N(t);if(m){const v=l.getComputedStyle(m);a.value=Number.parseFloat(v.width),u.value=Number.parseFloat(v.height)}}else if(p){const m=Array.isArray(p)?p:[p];a.value=m.reduce((v,{inlineSize:h})=>v+h,0),u.value=m.reduce((v,{blockSize:h})=>v+h,0)}else a.value=c.contentRect.width,u.value=c.contentRect.height},o);U(()=>{const c=N(t);c&&(a.value="offsetWidth"in c?c.offsetWidth:n.width,u.value="offsetHeight"in c?c.offsetHeight:n.height)});const d=e.watch(()=>N(t),c=>{a.value=c?n.width:0,u.value=c?n.height:0});function f(){i(),d()}return{width:a,height:u,stop:f}}function j(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function ne(t){const n=window.getComputedStyle(t);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&t.clientWidth<t.scrollWidth||n.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const o=t.parentNode;return!o||o.tagName==="BODY"?!1:ne(o)}}function Je(t){const n=t||window.event,o=n.target;return ne(o)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const A=new WeakMap;function Ue(t,n=!1){const o=e.ref(n);let l=null,r;e.watch(Z(t),u=>{const i=j(B(u));if(i){const d=i;A.get(d)||A.set(d,r),o.value&&(d.style.overflow="hidden")}},{immediate:!0});const s=()=>{const u=j(B(t));!u||o.value||(q&&(l=L(u,"touchmove",i=>{Je(i)},{passive:!1})),u.style.overflow="hidden",o.value=!0)},a=()=>{var u;const i=j(B(t));!i||!o.value||(q&&(l==null||l()),i.style.overflow=(u=A.get(i))!=null?u:"",A.delete(i),o.value=!1)};return W(a),e.computed({get(){return o.value},set(u){u?s():a()}})}function T(t,n,o,l={}){var r,s,a;const{clone:u=!1,passive:i=!1,eventName:d,deep:f=!1,defaultValue:c,shouldEmit:p}=l,m=e.getCurrentInstance(),v=o||(m==null?void 0:m.emit)||((r=m==null?void 0:m.$emit)==null?void 0:r.bind(m))||((a=(s=m==null?void 0:m.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(m==null?void 0:m.proxy));let h=d;n||(n="modelValue"),h=h||`update:${n.toString()}`;const k=w=>u?typeof u=="function"?u(w):Me(w):w,_=()=>ye(t[n])?k(t[n]):c,V=w=>{p?p(w)&&v(h,w):v(h,w)};if(i){const w=_(),b=e.ref(w);let C=!1;return e.watch(()=>t[n],S=>{C||(C=!0,b.value=k(S),e.nextTick(()=>C=!1))}),e.watch(b,S=>{!C&&(S!==t[n]||f)&&V(S)},{deep:f}),b}else return e.computed({get(){return _()},set(w){V(w)}})}const Ge={class:"$ui-dark-toggle-vtr"},qe=e.defineComponent({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const n=t,o=T(n,"isDark"),l=je({initialValue:o.value?"dark":"light",onChanged:u=>{o.value=u==="dark"}}),r=e.computed({get:()=>l.value==="dark",set:u=>l.value=u?"dark":"light"}),s=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(u){if(!s||!u||!n.animation){r.value=!r.value;return}const i=u.clientX,d=u.clientY,f=Math.hypot(Math.max(i,innerWidth-i),Math.max(d,innerHeight-d));document.startViewTransition(async()=>{r.value=!r.value,await e.nextTick()}).ready.then(()=>{const p=[`circle(0px at ${i}px ${d}px)`,`circle(${f}px at ${i}px ${d}px)`];document.documentElement.animate({clipPath:r.value?[...p].reverse():p},{duration:n.animationDuration,easing:"ease-in",pseudoElement:r.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(u,i)=>(e.openBlock(),e.createElementBlock("span",Ge,[e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps({mode:e.unref(l),isDark:r.value,toggle:a})))]))}}),Ke={},Ye={class:"$ui-base border $ui-border-base rounded shadow-sm"};function Xe(t,n){return e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(t.$slots,"default")])}const Qe=H(Ke,[["render",Xe]]),G=e.defineComponent({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[n.dim?"bg-opacity-50!":"bg-opacity-0!",n.blur?"backdrop-blur-sm":""]])},[e.renderSlot(n.$slots,"default")],2))}}),Ze={class:"h7.5 w-full $ui-fbc"},et={class:"text-4.5"},tt=e.createElementVNode("div",{class:"i-carbon-close"},null,-1),ot=[tt],nt={class:"content transition-all transition-duration-300"},rt={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},at={class:"$ui-fcc"},re=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean}},emits:["close","update:modelValue"],setup(t,{emit:n}){const o=t,r=T(o,"modelValue",n,{passive:!0}),s=Ue(()=>window.document.documentElement);e.watchEffect(()=>{r.value?s.value=!0:s.value=!1});function a(){r.value&&o.autoClose&&(r.value=!1)}ee("Escape",()=>{a()});const u=e.ref(!1);return e.onMounted(()=>u.value=!0),(i,d)=>u.value||i.mountTo==="body"?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:i.mountTo},[e.createVNode(e.Transition,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createBlock(G,{key:0,dim:i.dim,blur:i.blur},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:e.normalizeStyle({width:o.width,height:o.height})},[e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.renderSlot(i.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),i.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:a},ot)):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.renderSlot(i.$slots,"default")]),e.createElementVNode("div",rt,[e.renderSlot(i.$slots,"footer",{},()=>[e.renderSlot(i.$slots,"footer",{},()=>[e.createElementVNode("div",at,[e.createVNode(D,{type:"primary",onClick:a},{default:e.withCtx(()=>[e.createTextVNode(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur"])):e.createCommentVNode("",!0)]),_:3})],8,["to"])):e.createCommentVNode("",!0)}}),lt=["type","placeholder","disabled"],it={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},I="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",ae=e.defineComponent({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},password:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:n}){const o=t,l=n,r=T(o,"modelValue",l),s=_e(e.computed(()=>o.loading),o.loadingDebounceTime),a=Ne(!1,{onChanged(c){l("updateFocused",c)}}),u=e.computed(()=>o.variant==="flat"||o.variant==="warning"||o.disabled||o.readonly),i=e.computed(()=>o.disabled||s.value),d=e.ref();let f=!1;return e.watchEffect(()=>{s.value&&a.value?f=!0:!s.value&&f&&(f=!1,e.nextTick(()=>{a.value=!0}))}),e.onMounted(()=>{o.autoFocus&&(a.value=!0)}),e.watchEffect(()=>{var c;a.value&&((c=d.value)==null||c.focus())}),(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":c.variant==="flat","cursor-not-allowed opacity-50":i.value,accent:c.variant==="accent",focused:e.unref(a)},[c.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:p[2]||(p[2]=()=>{a.value=!0})},[c.leftIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(I)},[e.createVNode(R,{icon:c.leftIcon},null,8,["icon"])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":p[0]||(p[0]=m=>e.isRef(r)?r.value=m:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:o.password?"password":"text",placeholder:c.placeholder,disabled:i.value||c.readonly,onBlur:p[1]||(p[1]=m=>a.value=!1)},null,40,lt),[[e.vModelDynamic,e.unref(r)]]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(I)},[e.createVNode(J)])):c.rightIcon?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(I)},[e.createVNode(R,{icon:c.rightIcon},null,8,["icon"])])):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",it))],2))}}),st={class:"$ui-base"},ut=e.defineComponent({__name:"FormField",props:{modelValue:{},status:{default:"normal"},showMessage:{type:Boolean,default:!0},message:{default:""},placeholder:{}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,r=T(o,"modelValue",n),s=e.ref(!1),a=e.computed(()=>o.message&&o.message.length&&o.showMessage),u={normal:"color-gray-600 dark:color-gray-400",warning:"color-warning-500 dark:color-warning-200",danger:"color-danger-500 dark:color-danger-200",success:"color-primary-700 dark:color-primary-500"},i={warning:"i-bx:bxs-error",danger:"i-ic-round-error",success:"i-ep:success-filled"};return(d,f)=>(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(ae,{modelValue:e.unref(r),"onUpdate:modelValue":f[0]||(f[0]=c=>e.isRef(r)?r.value=c:null),placeholder:d.placeholder,onUpdateFocused:f[1]||(f[1]=c=>s.value=c)},null,8,["modelValue","placeholder"]),e.createElementVNode("div",{class:e.normalizeClass(["mt2 $ui-base text-3.5",[u[d.status],{"opacity-65":!s.value}]])},[d.status!=="normal"&&a.value?(e.openBlock(),e.createBlock(R,{key:0,inline:"",icon:i[d.status]},null,8,["icon"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(a.value?d.message:""),1)],2)]))}}),ct={class:"overflow-hidden rounded-lg shadow-lg"},dt=e.createElementVNode("div",{class:"p2 opacity-40"}," Empty... ",-1),le=e.defineComponent({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const n=t;return e.provide("$ui-dropdown-disabled",e.computed(()=>n.disabled)),(o,l)=>(e.openBlock(),e.createBlock(e.unref(O.Dropdown),{disabled:o.disabled,class:"inline-block w-auto",shown:o.shown,triggers:[o.trigger],distance:o.distance+6,placement:o.placement,skidding:o.skidding,"onUpdate:shown":l[0]||(l[0]=r=>o.$emit("update:visible",r)),onClick:l[1]||(l[1]=r=>{r.stopPropagation()})},{popper:e.withCtx(({hide:r})=>[e.createElementVNode("div",ct,[e.renderSlot(o.$slots,"popper",e.normalizeProps(e.guardReactiveProps({hide:r})),()=>[dt])])]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(D,e.mergeProps({...o.buttonProps,disabled:o.disabled},{class:o.buttonClass}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(o.$slots,"button-icon")]),"icon-right":e.withCtx(()=>[e.renderSlot(o.$slots,"button-icon-right")]),_:2},[o.label?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),ft=e.defineComponent({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const n=t,o=e.inject("$ui-dropdown-disabled",void 0);return(l,r)=>e.withDirectives((e.openBlock(),e.createBlock(D,e.mergeProps({...n,round:!1},{disabled:e.unref(o),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:e.withCtx(()=>[e.renderSlot(l.$slots,"icon")]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["disabled"])),[[e.unref(O.VClosePopper)]])}}),pt={class:"$ui-fec gap2.5"},mt=e.defineComponent({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:n}){const o=t,l=n,r=T(o,"modelValue",l);e.watchEffect(()=>{r.value||l("close")});function s(a=!1){(o.autoClose||a)&&(r.value=!1)}return(a,u)=>(e.openBlock(),e.createBlock(re,{modelValue:e.unref(r),"onUpdate:modelValue":u[2]||(u[2]=i=>e.isRef(r)?r.value=i:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:e.withCtx(()=>[e.createElementVNode("div",pt,[e.createVNode(D,{onClick:u[0]||(u[0]=()=>{l("cancel"),s(!0)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelText),1)]),_:1}),e.createVNode(D,{loading:a.loading,type:"primary",onClick:u[1]||(u[1]=()=>{l("confirm"),s()})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.confirmText),1)]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{class:"h-auto w-auto"},()=>[e.createTextVNode(e.toDisplayString(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),gt={class:"m1 min-w-35 w-auto flex flex-col"},vt=["onClick"],ht=e.createElementVNode("div",{class:"i-mdi-chevron-down"},null,-1),bt=e.defineComponent({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,l=n,r=e.useSlots(),s=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)}),a=e.computed(()=>{const i=o.options.find(d=>d.value===s.value);return i!=null&&i.label?o.labelRenderer(i.label):o.placeholder});function u(i){o.multiple?s.value=s.value.includes(i.value)?s.value.filter(d=>d!==i.value):[...s.value,i.value]:s.value=i.value}return(i,d)=>(e.openBlock(),e.createBlock(le,e.mergeProps({label:a.value},{buttonProps:i.buttonProps,disabled:i.disabled}),e.createSlots({popper:e.withCtx(()=>[e.createElementVNode("div",gt,[e.unref(r).item?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.options,f=>(e.openBlock(),e.createElementBlock("div",{key:f.value,class:"cursor-pointer",onClick:c=>u(f)},[e.renderSlot(i.$slots,"item",e.normalizeProps(e.guardReactiveProps({item:f,active:i.multiple?s.value.includes(f.value):f.value===s.value,disabled:i.disabled})))],8,vt))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.options,f=>e.withDirectives((e.openBlock(),e.createBlock(D,{key:f.value,disabled:i.disabled,round:"normal",class:e.normalizeClass(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:i.multiple?s.value.includes(f.value):f.value===s.value}]),onClick:c=>u(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","class","onClick"])),[[e.unref(O.VClosePopper),i.autoClose]])),128))])]),"button-icon-right":e.withCtx(()=>[ht]),_:2},[e.unref(r).button?{name:"default",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),yt=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:n}){const r=T(t,"modelValue",n),s=xe(r);return(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[a.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:u[0]||(u[0]=i=>!a.disabled&&e.unref(s)())},[e.renderSlot(a.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass([{selected:e.unref(r)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[e.createElementVNode("div",{class:e.normalizeClass(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!a.disabled},{"opacity-65":a.disabled}]])},null,2)],2)],2))}}),wt=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:n}){const r=T(t,"modelValue",n);return(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[e.unref(r)?s.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:a[0]||(a[0]=u=>r.value=!e.unref(r))},[e.createElementVNode("div",{class:e.normalizeClass([[e.unref(r)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),kt=e.defineComponent({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean}},emits:["update:modelValue","close"],setup(t,{emit:n}){const o=t,l=n,{height:r}=He(()=>typeof o.top=="string"?document.querySelector(o.top):o.top,void 0,{box:"border-box"}),s=T(o,"modelValue",l),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};ee("Escape",()=>{o.closable&&(s.value=!1)});const u=e.computed(()=>a[o.placement]),i=e.ref(!1);return e.onMounted(()=>i.value=!0),(d,f)=>i.value||d.mountTo==="body"?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.mountTo},[e.createVNode(e.Transition,{"enter-from-class":`${u.value.transition}`,"leave-to-class":`${u.value.transition}`},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createBlock(G,{key:0,class:e.normalizeClass({"pointer-events-none":d.permanent}),dim:d.dim,blur:d.blur,onClick:f[2]||(f[2]=c=>d.closeOutside&&d.closable&&(s.value=!1))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([[u.value.class,d.contentClass??"",d.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:e.normalizeStyle({top:d.placement==="bottom"?"auto":`${e.unref(r)}px`,height:["top","bottom"].includes(d.placement)?"auto":`calc(100% - ${e.unref(r)}px)`}),onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},[d.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:f[0]||(f[0]=c=>s.value=!1)})):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default")],6)]),_:3},8,["class","dim","blur"])):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):e.createCommentVNode("",!0)}}),ie=e.defineComponent({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const n=t,o={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},l={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},r=e.ref(!1);e.onMounted(()=>{r.value=!0,setTimeout(()=>{r.value=!1},n.duration)});const s=e.computed(()=>n.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[e.createVNode(e.Transition,{"enter-from-class":s.value,"leave-to-class":s.value,onAfterLeave:u[0]||(u[0]=()=>{var i;r.value||(i=a.onClose)==null||i.call(a)})},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex transition-all duration-300",style:e.normalizeStyle({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[e.createElementVNode("div",{class:e.normalizeClass(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,l[a.type]]])},[e.createElementVNode("div",{class:e.normalizeClass(o[a.type])},null,2),e.createElementVNode("div",null,e.toDisplayString(a.message),1)],2)],4)):e.createCommentVNode("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}}),Ct=e.defineComponent({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.unref(O.Tooltip),e.mergeProps({disabled:n.disabled,placement:n.placement},n.$attrs),{popper:e.withCtx(()=>[e.renderSlot(n.$slots,"popper")]),default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["disabled","placement"]))}});function Bt(t){const n=document.createElement("div");n.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(n);const o=t.onClose;function l(){e.render(null,n)}t.onClose=()=>{l(),o==null||o(),document.body.removeChild(n)};const r=e.h(ie,t);e.render(r,n)}Object.defineProperty(exports,"VTooltip",{enumerable:!0,get:()=>O.VTooltip});exports.VueBadge=he;exports.VueButton=D;exports.VueCard=Qe;exports.VueCheckbox=wt;exports.VueConfirm=mt;exports.VueDarkToggle=qe;exports.VueDialog=re;exports.VueDrawer=kt;exports.VueDropdown=le;exports.VueDropdownButton=ft;exports.VueFormField=ut;exports.VueIcon=R;exports.VueInput=ae;exports.VueLoadingIndicator=J;exports.VueNotification=ie;exports.VueOverlay=G;exports.VueSelect=bt;exports.VueSwitch=yt;exports.VueTooltip=Ct;exports.showVueNotification=Bt;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Dropdown as Re, VClosePopper as $e, Tooltip as We } from "floating-vue";
|
|
4
4
|
import { VTooltip as $o } from "floating-vue";
|
|
5
|
-
import { openBlock as
|
|
5
|
+
import { openBlock as p, createElementBlock as $, createElementVNode as b, defineComponent as D, useAttrs as ze, computed as _, useSlots as _e, createBlock as M, resolveDynamicComponent as Ce, mergeProps as q, withCtx as y, renderSlot as w, unref as k, createCommentVNode as E, normalizeClass as S, ref as T, watch as R, customRef as Ve, isRef as Q, getCurrentScope as je, onScopeDispose as Ie, toRef as He, readonly as Se, onMounted as Y, nextTick as Z, getCurrentInstance as ue, shallowRef as Je, watchEffect as X, normalizeProps as de, guardReactiveProps as ce, Teleport as Be, createVNode as x, Transition as fe, normalizeStyle as pe, createTextVNode as j, toDisplayString as I, withDirectives as me, vModelDynamic as Ue, provide as Ge, createSlots as Te, inject as Ke, Fragment as he, renderList as be, withModifiers as Ye, h as Xe, render as ye } from "vue";
|
|
6
6
|
const ve = (e, o) => {
|
|
7
7
|
const t = e.__vccOpts || e;
|
|
8
8
|
for (const [a, n] of o)
|
|
@@ -31,7 +31,7 @@ const ve = (e, o) => {
|
|
|
31
31
|
Ze
|
|
32
32
|
];
|
|
33
33
|
function tt(e, o) {
|
|
34
|
-
return
|
|
34
|
+
return p(), $("div", Qe, et);
|
|
35
35
|
}
|
|
36
36
|
const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__PURE__ */ D({
|
|
37
37
|
inheritAttrs: !1,
|
|
@@ -92,8 +92,8 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
|
|
|
92
92
|
info: "hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",
|
|
93
93
|
success: "hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"
|
|
94
94
|
}
|
|
95
|
-
},
|
|
96
|
-
return (u, f) => (
|
|
95
|
+
}, d = _e(), c = _(() => t.flat ? l.flat[t.type] : t.outlined ? l.outlined[t.type] : l.normal[t.type]);
|
|
96
|
+
return (u, f) => (p(), M(Ce(s.value), q(u.$attrs, {
|
|
97
97
|
role: "button",
|
|
98
98
|
"aria-disabled": r.value,
|
|
99
99
|
class: ["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition", [
|
|
@@ -107,20 +107,20 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
|
|
|
107
107
|
[
|
|
108
108
|
u.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
|
|
109
109
|
u.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
|
|
110
|
-
|
|
110
|
+
c.value
|
|
111
111
|
]
|
|
112
112
|
]],
|
|
113
113
|
onClickCapture: i
|
|
114
114
|
}), {
|
|
115
115
|
default: y(() => [
|
|
116
|
-
u.loading ? (
|
|
116
|
+
u.loading ? (p(), M(De, {
|
|
117
117
|
key: 0,
|
|
118
118
|
class: "mt0.5 h-full w3"
|
|
119
119
|
})) : w(u.$slots, "icon", {
|
|
120
120
|
key: 1,
|
|
121
121
|
class: "h-full w3 $ui-inline-fcc"
|
|
122
122
|
}),
|
|
123
|
-
k(
|
|
123
|
+
k(d).default ? (p(), $("div", ot, [
|
|
124
124
|
w(u.$slots, "default")
|
|
125
125
|
])) : E("", !0),
|
|
126
126
|
w(u.$slots, "icon-right")
|
|
@@ -130,7 +130,7 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
|
|
|
130
130
|
}
|
|
131
131
|
}), nt = {}, rt = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
|
|
132
132
|
function at(e, o) {
|
|
133
|
-
return
|
|
133
|
+
return p(), $("span", rt, [
|
|
134
134
|
w(e.$slots, "default")
|
|
135
135
|
]);
|
|
136
136
|
}
|
|
@@ -142,7 +142,7 @@ const so = /* @__PURE__ */ ve(nt, [["render", at]]), ie = /* @__PURE__ */ D({
|
|
|
142
142
|
action: { type: Boolean, default: !1 }
|
|
143
143
|
},
|
|
144
144
|
setup(e) {
|
|
145
|
-
return (o, t) => (
|
|
145
|
+
return (o, t) => (p(), M(Ce(o.inline ? "span" : "div"), {
|
|
146
146
|
class: S(["$ui-base", [o.icon, o.action ? "cursor-pointer hover:op50" : ""]])
|
|
147
147
|
}, null, 8, ["class"]));
|
|
148
148
|
}
|
|
@@ -169,8 +169,8 @@ function N(e) {
|
|
|
169
169
|
const Oe = typeof window < "u" && typeof document < "u";
|
|
170
170
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
171
171
|
const st = (e) => typeof e < "u", it = Object.prototype.toString, ut = (e) => it.call(e) === "[object Object]", ne = () => {
|
|
172
|
-
}, we = /* @__PURE__ */
|
|
173
|
-
function
|
|
172
|
+
}, we = /* @__PURE__ */ dt();
|
|
173
|
+
function dt() {
|
|
174
174
|
var e, o;
|
|
175
175
|
return Oe && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
176
176
|
}
|
|
@@ -183,18 +183,18 @@ function Me(e, o) {
|
|
|
183
183
|
return t;
|
|
184
184
|
}
|
|
185
185
|
const Ae = (e) => e();
|
|
186
|
-
function
|
|
186
|
+
function ct(e, o = {}) {
|
|
187
187
|
let t, a, n = ne;
|
|
188
188
|
const s = (i) => {
|
|
189
189
|
clearTimeout(i), n(), n = ne;
|
|
190
190
|
};
|
|
191
191
|
return (i) => {
|
|
192
|
-
const l = N(e),
|
|
193
|
-
return t && s(t), l <= 0 ||
|
|
194
|
-
n = o.rejectOnCancel ? u :
|
|
195
|
-
t && s(t), a = null,
|
|
196
|
-
},
|
|
197
|
-
a && s(a), a = null,
|
|
192
|
+
const l = N(e), d = N(o.maxWait);
|
|
193
|
+
return t && s(t), l <= 0 || d !== void 0 && d <= 0 ? (a && (s(a), a = null), Promise.resolve(i())) : new Promise((c, u) => {
|
|
194
|
+
n = o.rejectOnCancel ? u : c, d && !a && (a = setTimeout(() => {
|
|
195
|
+
t && s(t), a = null, c(i());
|
|
196
|
+
}, d)), t = setTimeout(() => {
|
|
197
|
+
a && s(a), a = null, c(i());
|
|
198
198
|
}, l);
|
|
199
199
|
});
|
|
200
200
|
};
|
|
@@ -223,7 +223,7 @@ function Ee(...e) {
|
|
|
223
223
|
}
|
|
224
224
|
function mt(e, o = 200, t = {}) {
|
|
225
225
|
return Me(
|
|
226
|
-
|
|
226
|
+
ct(o, t),
|
|
227
227
|
e
|
|
228
228
|
);
|
|
229
229
|
}
|
|
@@ -235,7 +235,7 @@ function vt(e, o = 200, t = {}) {
|
|
|
235
235
|
}
|
|
236
236
|
function gt(e, o = {}) {
|
|
237
237
|
let t = e, a, n;
|
|
238
|
-
const s = Ve((f,
|
|
238
|
+
const s = Ve((f, m) => (a = f, n = m, {
|
|
239
239
|
get() {
|
|
240
240
|
return r();
|
|
241
241
|
},
|
|
@@ -246,12 +246,12 @@ function gt(e, o = {}) {
|
|
|
246
246
|
function r(f = !0) {
|
|
247
247
|
return f && a(), t;
|
|
248
248
|
}
|
|
249
|
-
function i(f,
|
|
249
|
+
function i(f, m = !0) {
|
|
250
250
|
var g, h;
|
|
251
251
|
if (f === t)
|
|
252
252
|
return;
|
|
253
253
|
const O = t;
|
|
254
|
-
((g = o.onBeforeChange) == null ? void 0 : g.call(o, f, O)) !== !1 && (t = f, (h = o.onChanged) == null || h.call(o, f, O),
|
|
254
|
+
((g = o.onBeforeChange) == null ? void 0 : g.call(o, f, O)) !== !1 && (t = f, (h = o.onChanged) == null || h.call(o, f, O), m && n());
|
|
255
255
|
}
|
|
256
256
|
return lt(
|
|
257
257
|
s,
|
|
@@ -324,22 +324,22 @@ function re(...e) {
|
|
|
324
324
|
return ne;
|
|
325
325
|
Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
|
|
326
326
|
const s = [], r = () => {
|
|
327
|
-
s.forEach((
|
|
328
|
-
}, i = (
|
|
327
|
+
s.forEach((c) => c()), s.length = 0;
|
|
328
|
+
}, i = (c, u, f, m) => (c.addEventListener(u, f, m), () => c.removeEventListener(u, f, m)), l = R(
|
|
329
329
|
() => [z(o), N(n)],
|
|
330
|
-
([
|
|
331
|
-
if (r(), !
|
|
330
|
+
([c, u]) => {
|
|
331
|
+
if (r(), !c)
|
|
332
332
|
return;
|
|
333
333
|
const f = ut(u) ? { ...u } : u;
|
|
334
334
|
s.push(
|
|
335
|
-
...t.flatMap((
|
|
335
|
+
...t.flatMap((m) => a.map((g) => i(c, m, g, f)))
|
|
336
336
|
);
|
|
337
337
|
},
|
|
338
338
|
{ immediate: !0, flush: "post" }
|
|
339
|
-
),
|
|
339
|
+
), d = () => {
|
|
340
340
|
l(), r();
|
|
341
341
|
};
|
|
342
|
-
return ae(
|
|
342
|
+
return ae(d), d;
|
|
343
343
|
}
|
|
344
344
|
function wt(e) {
|
|
345
345
|
return typeof e == "function" ? e : typeof e == "string" ? (o) => o.key === e : Array.isArray(e) ? (o) => e.includes(o.key) : () => !0;
|
|
@@ -353,8 +353,8 @@ function Ne(...e) {
|
|
|
353
353
|
passive: r = !1,
|
|
354
354
|
dedupe: i = !1
|
|
355
355
|
} = a, l = wt(o);
|
|
356
|
-
return re(n, s, (
|
|
357
|
-
|
|
356
|
+
return re(n, s, (c) => {
|
|
357
|
+
c.repeat && N(i) || l(c) && t(c);
|
|
358
358
|
}, r);
|
|
359
359
|
}
|
|
360
360
|
function kt() {
|
|
@@ -370,8 +370,8 @@ function Pe(e) {
|
|
|
370
370
|
function $t(e, o = {}) {
|
|
371
371
|
const { window: t = H } = o, a = Pe(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
372
372
|
let n;
|
|
373
|
-
const s = T(!1), r = (
|
|
374
|
-
s.value =
|
|
373
|
+
const s = T(!1), r = (d) => {
|
|
374
|
+
s.value = d.matches;
|
|
375
375
|
}, i = () => {
|
|
376
376
|
n && ("removeEventListener" in n ? n.removeEventListener("change", r) : n.removeListener(r));
|
|
377
377
|
}, l = X(() => {
|
|
@@ -435,15 +435,15 @@ function Tt(e, o, t, a = {}) {
|
|
|
435
435
|
deep: r = !0,
|
|
436
436
|
listenToStorageChanges: i = !0,
|
|
437
437
|
writeDefaults: l = !0,
|
|
438
|
-
mergeDefaults:
|
|
439
|
-
shallow:
|
|
438
|
+
mergeDefaults: d = !1,
|
|
439
|
+
shallow: c,
|
|
440
440
|
window: u = H,
|
|
441
441
|
eventFilter: f,
|
|
442
|
-
onError:
|
|
442
|
+
onError: m = (v) => {
|
|
443
443
|
console.error(v);
|
|
444
444
|
},
|
|
445
445
|
initOnMounted: g
|
|
446
|
-
} = a, h = (
|
|
446
|
+
} = a, h = (c ? Je : T)(typeof o == "function" ? o() : o);
|
|
447
447
|
if (!t)
|
|
448
448
|
try {
|
|
449
449
|
t = xe("getDefaultStorage", () => {
|
|
@@ -451,7 +451,7 @@ function Tt(e, o, t, a = {}) {
|
|
|
451
451
|
return (v = H) == null ? void 0 : v.localStorage;
|
|
452
452
|
})();
|
|
453
453
|
} catch (v) {
|
|
454
|
-
|
|
454
|
+
m(v);
|
|
455
455
|
}
|
|
456
456
|
if (!t)
|
|
457
457
|
return h;
|
|
@@ -479,16 +479,16 @@ function Tt(e, o, t, a = {}) {
|
|
|
479
479
|
})));
|
|
480
480
|
}
|
|
481
481
|
} catch (V) {
|
|
482
|
-
|
|
482
|
+
m(V);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
function L(v) {
|
|
486
486
|
const V = v ? v.newValue : t.getItem(e);
|
|
487
487
|
if (V == null)
|
|
488
488
|
return l && O != null && t.setItem(e, P.write(O)), O;
|
|
489
|
-
if (!v &&
|
|
489
|
+
if (!v && d) {
|
|
490
490
|
const U = P.read(V);
|
|
491
|
-
return typeof
|
|
491
|
+
return typeof d == "function" ? d(U, O) : W === "object" && !Array.isArray(U) ? { ...O, ...U } : U;
|
|
492
492
|
} else
|
|
493
493
|
return typeof V != "string" ? V : P.read(V);
|
|
494
494
|
}
|
|
@@ -506,7 +506,7 @@ function Tt(e, o, t, a = {}) {
|
|
|
506
506
|
try {
|
|
507
507
|
(v == null ? void 0 : v.newValue) !== P.write(h.value) && (h.value = L(v));
|
|
508
508
|
} catch (V) {
|
|
509
|
-
|
|
509
|
+
m(V);
|
|
510
510
|
} finally {
|
|
511
511
|
v ? Z(C) : C();
|
|
512
512
|
}
|
|
@@ -527,21 +527,21 @@ function Ot(e = {}) {
|
|
|
527
527
|
storageKey: r = "vueuse-color-scheme",
|
|
528
528
|
listenToStorageChanges: i = !0,
|
|
529
529
|
storageRef: l,
|
|
530
|
-
emitAuto:
|
|
531
|
-
disableTransition:
|
|
530
|
+
emitAuto: d,
|
|
531
|
+
disableTransition: c = !0
|
|
532
532
|
} = e, u = {
|
|
533
533
|
auto: "",
|
|
534
534
|
light: "light",
|
|
535
535
|
dark: "dark",
|
|
536
536
|
...e.modes || {}
|
|
537
|
-
}, f = Dt({ window: n }),
|
|
537
|
+
}, f = Dt({ window: n }), m = _(() => f.value ? "dark" : "light"), g = l || (r == null ? Ee(a) : Tt(r, a, s, { window: n, listenToStorageChanges: i })), h = _(() => g.value === "auto" ? m.value : g.value), O = xe(
|
|
538
538
|
"updateHTMLAttrs",
|
|
539
539
|
(C, A, L) => {
|
|
540
540
|
const G = typeof C == "string" ? n == null ? void 0 : n.document.querySelector(C) : z(C);
|
|
541
541
|
if (!G)
|
|
542
542
|
return;
|
|
543
543
|
let F;
|
|
544
|
-
if (
|
|
544
|
+
if (c) {
|
|
545
545
|
F = n.document.createElement("style");
|
|
546
546
|
const v = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
|
|
547
547
|
F.appendChild(document.createTextNode(v)), n.document.head.appendChild(F);
|
|
@@ -553,7 +553,7 @@ function Ot(e = {}) {
|
|
|
553
553
|
});
|
|
554
554
|
} else
|
|
555
555
|
G.setAttribute(A, L);
|
|
556
|
-
|
|
556
|
+
c && (n.getComputedStyle(F).opacity, document.head.removeChild(F));
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
function W(C) {
|
|
@@ -566,14 +566,14 @@ function Ot(e = {}) {
|
|
|
566
566
|
R(h, P, { flush: "post", immediate: !0 }), ge(() => P(h.value));
|
|
567
567
|
const B = _({
|
|
568
568
|
get() {
|
|
569
|
-
return
|
|
569
|
+
return d ? g.value : h.value;
|
|
570
570
|
},
|
|
571
571
|
set(C) {
|
|
572
572
|
g.value = C;
|
|
573
573
|
}
|
|
574
574
|
});
|
|
575
575
|
try {
|
|
576
|
-
return Object.assign(B, { store: g, system:
|
|
576
|
+
return Object.assign(B, { store: g, system: m, state: h });
|
|
577
577
|
} catch {
|
|
578
578
|
return B;
|
|
579
579
|
}
|
|
@@ -583,7 +583,7 @@ function Mt(e, o, t = {}) {
|
|
|
583
583
|
let s;
|
|
584
584
|
const r = Pe(() => a && "ResizeObserver" in a), i = () => {
|
|
585
585
|
s && (s.disconnect(), s = void 0);
|
|
586
|
-
}, l = _(() => Array.isArray(e) ? e.map((u) => z(u)) : [z(e)]),
|
|
586
|
+
}, l = _(() => Array.isArray(e) ? e.map((u) => z(u)) : [z(e)]), d = R(
|
|
587
587
|
l,
|
|
588
588
|
(u) => {
|
|
589
589
|
if (i(), r.value && a) {
|
|
@@ -593,12 +593,12 @@ function Mt(e, o, t = {}) {
|
|
|
593
593
|
}
|
|
594
594
|
},
|
|
595
595
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
596
|
-
),
|
|
597
|
-
i(),
|
|
596
|
+
), c = () => {
|
|
597
|
+
i(), d();
|
|
598
598
|
};
|
|
599
|
-
return ae(
|
|
599
|
+
return ae(c), {
|
|
600
600
|
isSupported: r,
|
|
601
|
-
stop:
|
|
601
|
+
stop: c
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
function At(e, o = { width: 0, height: 0 }, t = {}) {
|
|
@@ -610,14 +610,14 @@ function At(e, o = { width: 0, height: 0 }, t = {}) {
|
|
|
610
610
|
([u]) => {
|
|
611
611
|
const f = n === "border-box" ? u.borderBoxSize : n === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
|
|
612
612
|
if (a && s.value) {
|
|
613
|
-
const
|
|
614
|
-
if (
|
|
615
|
-
const g = a.getComputedStyle(
|
|
613
|
+
const m = z(e);
|
|
614
|
+
if (m) {
|
|
615
|
+
const g = a.getComputedStyle(m);
|
|
616
616
|
r.value = Number.parseFloat(g.width), i.value = Number.parseFloat(g.height);
|
|
617
617
|
}
|
|
618
618
|
} else if (f) {
|
|
619
|
-
const
|
|
620
|
-
r.value =
|
|
619
|
+
const m = Array.isArray(f) ? f : [f];
|
|
620
|
+
r.value = m.reduce((g, { inlineSize: h }) => g + h, 0), i.value = m.reduce((g, { blockSize: h }) => g + h, 0);
|
|
621
621
|
} else
|
|
622
622
|
r.value = u.contentRect.width, i.value = u.contentRect.height;
|
|
623
623
|
},
|
|
@@ -627,19 +627,19 @@ function At(e, o = { width: 0, height: 0 }, t = {}) {
|
|
|
627
627
|
const u = z(e);
|
|
628
628
|
u && (r.value = "offsetWidth" in u ? u.offsetWidth : o.width, i.value = "offsetHeight" in u ? u.offsetHeight : o.height);
|
|
629
629
|
});
|
|
630
|
-
const
|
|
630
|
+
const d = R(
|
|
631
631
|
() => z(e),
|
|
632
632
|
(u) => {
|
|
633
633
|
r.value = u ? o.width : 0, i.value = u ? o.height : 0;
|
|
634
634
|
}
|
|
635
635
|
);
|
|
636
|
-
function
|
|
637
|
-
l(),
|
|
636
|
+
function c() {
|
|
637
|
+
l(), d();
|
|
638
638
|
}
|
|
639
639
|
return {
|
|
640
640
|
width: r,
|
|
641
641
|
height: i,
|
|
642
|
-
stop:
|
|
642
|
+
stop: c
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
function le(e) {
|
|
@@ -665,8 +665,8 @@ function Nt(e, o = !1) {
|
|
|
665
665
|
R(Ee(e), (i) => {
|
|
666
666
|
const l = le(N(i));
|
|
667
667
|
if (l) {
|
|
668
|
-
const
|
|
669
|
-
oe.get(
|
|
668
|
+
const d = l;
|
|
669
|
+
oe.get(d) || oe.set(d, n), t.value && (d.style.overflow = "hidden");
|
|
670
670
|
}
|
|
671
671
|
}, {
|
|
672
672
|
immediate: !0
|
|
@@ -700,12 +700,12 @@ function J(e, o, t, a = {}) {
|
|
|
700
700
|
const {
|
|
701
701
|
clone: i = !1,
|
|
702
702
|
passive: l = !1,
|
|
703
|
-
eventName:
|
|
704
|
-
deep:
|
|
703
|
+
eventName: d,
|
|
704
|
+
deep: c = !1,
|
|
705
705
|
defaultValue: u,
|
|
706
706
|
shouldEmit: f
|
|
707
|
-
} = a,
|
|
708
|
-
let h =
|
|
707
|
+
} = a, m = ue(), g = t || (m == null ? void 0 : m.emit) || ((n = m == null ? void 0 : m.$emit) == null ? void 0 : n.bind(m)) || ((r = (s = m == null ? void 0 : m.proxy) == null ? void 0 : s.$emit) == null ? void 0 : r.bind(m == null ? void 0 : m.proxy));
|
|
708
|
+
let h = d;
|
|
709
709
|
o || (o = "modelValue"), h = h || `update:${o.toString()}`;
|
|
710
710
|
const O = (B) => i ? typeof i == "function" ? i(B) : _t(B) : B, W = () => st(e[o]) ? O(e[o]) : u, P = (B) => {
|
|
711
711
|
f ? f(B) && g(h, B) : g(h, B);
|
|
@@ -721,9 +721,9 @@ function J(e, o, t, a = {}) {
|
|
|
721
721
|
), R(
|
|
722
722
|
C,
|
|
723
723
|
(L) => {
|
|
724
|
-
!A && (L !== e[o] ||
|
|
724
|
+
!A && (L !== e[o] || c) && P(L);
|
|
725
725
|
},
|
|
726
|
-
{ deep:
|
|
726
|
+
{ deep: c }
|
|
727
727
|
), C;
|
|
728
728
|
} else
|
|
729
729
|
return _({
|
|
@@ -745,32 +745,32 @@ const Pt = { class: "$ui-dark-toggle-vtr" }, io = /* @__PURE__ */ D({
|
|
|
745
745
|
setup(e) {
|
|
746
746
|
const o = e, t = J(o, "isDark"), a = Ot({
|
|
747
747
|
initialValue: t.value ? "dark" : "light",
|
|
748
|
-
onChanged: (
|
|
749
|
-
t.value =
|
|
748
|
+
onChanged: (i) => {
|
|
749
|
+
t.value = i === "dark";
|
|
750
750
|
}
|
|
751
751
|
}), n = _({
|
|
752
752
|
get: () => a.value === "dark",
|
|
753
|
-
set: (
|
|
753
|
+
set: (i) => a.value = i ? "dark" : "light"
|
|
754
754
|
}), s = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
755
|
-
function r(
|
|
756
|
-
if (!s || !
|
|
755
|
+
function r(i) {
|
|
756
|
+
if (!s || !i || !o.animation) {
|
|
757
757
|
n.value = !n.value;
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
|
-
const
|
|
761
|
-
Math.max(
|
|
760
|
+
const l = i.clientX, d = i.clientY, c = Math.hypot(
|
|
761
|
+
Math.max(l, innerWidth - l),
|
|
762
762
|
Math.max(d, innerHeight - d)
|
|
763
763
|
);
|
|
764
764
|
document.startViewTransition(async () => {
|
|
765
765
|
n.value = !n.value, await Z();
|
|
766
766
|
}).ready.then(() => {
|
|
767
|
-
const
|
|
768
|
-
`circle(0px at ${
|
|
769
|
-
`circle(${
|
|
767
|
+
const f = [
|
|
768
|
+
`circle(0px at ${l}px ${d}px)`,
|
|
769
|
+
`circle(${c}px at ${l}px ${d}px)`
|
|
770
770
|
];
|
|
771
771
|
document.documentElement.animate(
|
|
772
772
|
{
|
|
773
|
-
clipPath: n.value ? [...
|
|
773
|
+
clipPath: n.value ? [...f].reverse() : f
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
776
|
duration: o.animationDuration,
|
|
@@ -780,18 +780,13 @@ const Pt = { class: "$ui-dark-toggle-vtr" }, io = /* @__PURE__ */ D({
|
|
|
780
780
|
);
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
|
-
|
|
784
|
-
mode: a,
|
|
785
|
-
isDark: n,
|
|
786
|
-
toggle: r
|
|
787
|
-
};
|
|
788
|
-
return (l, c) => (m(), $("span", Pt, [
|
|
789
|
-
w(l.$slots, "default", ce(de(i)))
|
|
783
|
+
return (i, l) => (p(), $("span", Pt, [
|
|
784
|
+
w(i.$slots, "default", de(ce({ mode: k(a), isDark: n.value, toggle: r })))
|
|
790
785
|
]));
|
|
791
786
|
}
|
|
792
787
|
}), xt = {}, Ft = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
|
|
793
788
|
function Lt(e, o) {
|
|
794
|
-
return
|
|
789
|
+
return p(), $("div", Ft, [
|
|
795
790
|
w(e.$slots, "default")
|
|
796
791
|
]);
|
|
797
792
|
}
|
|
@@ -802,7 +797,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
802
797
|
blur: { type: Boolean }
|
|
803
798
|
},
|
|
804
799
|
setup(e) {
|
|
805
|
-
return (o, t) => (
|
|
800
|
+
return (o, t) => (p(), $("div", {
|
|
806
801
|
class: S(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
|
|
807
802
|
o.dim ? "bg-opacity-50!" : "bg-opacity-0!",
|
|
808
803
|
o.blur ? "backdrop-blur-sm" : ""
|
|
@@ -839,7 +834,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
839
834
|
r();
|
|
840
835
|
});
|
|
841
836
|
const i = T(!1);
|
|
842
|
-
return Y(() => i.value = !0), (l,
|
|
837
|
+
return Y(() => i.value = !0), (l, d) => i.value || l.mountTo === "body" ? (p(), M(Be, {
|
|
843
838
|
key: 0,
|
|
844
839
|
to: l.mountTo
|
|
845
840
|
}, [
|
|
@@ -850,7 +845,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
850
845
|
"leave-to-class": "opacity-0 [&_.modal]:scale-95"
|
|
851
846
|
}, {
|
|
852
847
|
default: y(() => [
|
|
853
|
-
k(n) ? (
|
|
848
|
+
k(n) ? (p(), M(Le, {
|
|
854
849
|
key: 0,
|
|
855
850
|
dim: l.dim,
|
|
856
851
|
blur: l.blur
|
|
@@ -869,7 +864,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
869
864
|
j(I(t.title), 1)
|
|
870
865
|
])
|
|
871
866
|
]),
|
|
872
|
-
l.closable ? (
|
|
867
|
+
l.closable ? (p(), $("div", {
|
|
873
868
|
key: 0,
|
|
874
869
|
class: "h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",
|
|
875
870
|
onClick: r
|
|
@@ -919,7 +914,8 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
919
914
|
rightIcon: {},
|
|
920
915
|
loading: { type: Boolean, default: !1 },
|
|
921
916
|
autoFocus: { type: Boolean, default: !1 },
|
|
922
|
-
loadingDebounceTime: { default: 0 }
|
|
917
|
+
loadingDebounceTime: { default: 0 },
|
|
918
|
+
readonly: { type: Boolean, default: !1 }
|
|
923
919
|
},
|
|
924
920
|
emits: ["update:modelValue", "updateFocused", "keyTab"],
|
|
925
921
|
setup(e, { emit: o }) {
|
|
@@ -927,18 +923,18 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
927
923
|
onChanged(u) {
|
|
928
924
|
a("updateFocused", u);
|
|
929
925
|
}
|
|
930
|
-
}), i = _(() => t.variant === "flat" || t.variant === "warning"), l = _(() => t.disabled || s.value),
|
|
931
|
-
let
|
|
926
|
+
}), i = _(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), l = _(() => t.disabled || s.value), d = T();
|
|
927
|
+
let c = !1;
|
|
932
928
|
return X(() => {
|
|
933
|
-
s.value && r.value ?
|
|
929
|
+
s.value && r.value ? c = !0 : !s.value && c && (c = !1, Z(() => {
|
|
934
930
|
r.value = !0;
|
|
935
931
|
}));
|
|
936
932
|
}), Y(() => {
|
|
937
933
|
t.autoFocus && (r.value = !0);
|
|
938
934
|
}), X(() => {
|
|
939
935
|
var u;
|
|
940
|
-
r.value && ((u =
|
|
941
|
-
}), (u, f) => (
|
|
936
|
+
r.value && ((u = d.value) == null || u.focus());
|
|
937
|
+
}), (u, f) => (p(), $("div", {
|
|
942
938
|
class: S(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100", [
|
|
943
939
|
{
|
|
944
940
|
"border-none bg-transparent group": u.variant === "flat",
|
|
@@ -954,7 +950,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
954
950
|
r.value = !0;
|
|
955
951
|
})
|
|
956
952
|
}, [
|
|
957
|
-
u.leftIcon ? (
|
|
953
|
+
u.leftIcon ? (p(), $("div", {
|
|
958
954
|
key: 0,
|
|
959
955
|
class: S(se)
|
|
960
956
|
}, [
|
|
@@ -962,28 +958,28 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
962
958
|
])) : E("", !0),
|
|
963
959
|
me(b("input", {
|
|
964
960
|
ref_key: "inputRef",
|
|
965
|
-
ref:
|
|
966
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
961
|
+
ref: d,
|
|
962
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => Q(n) ? n.value = m : null),
|
|
967
963
|
class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
|
|
968
964
|
type: t.password ? "password" : "text",
|
|
969
965
|
placeholder: u.placeholder,
|
|
970
|
-
disabled: l.value,
|
|
971
|
-
onBlur: f[1] || (f[1] = (
|
|
966
|
+
disabled: l.value || u.readonly,
|
|
967
|
+
onBlur: f[1] || (f[1] = (m) => r.value = !1)
|
|
972
968
|
}, null, 40, Gt), [
|
|
973
969
|
[Ue, k(n)]
|
|
974
970
|
]),
|
|
975
|
-
k(s) ? (
|
|
971
|
+
k(s) ? (p(), $("div", {
|
|
976
972
|
key: 1,
|
|
977
973
|
class: S(se)
|
|
978
974
|
}, [
|
|
979
975
|
x(De)
|
|
980
|
-
])) : u.rightIcon ? (
|
|
976
|
+
])) : u.rightIcon ? (p(), $("div", {
|
|
981
977
|
key: 2,
|
|
982
978
|
class: S(se)
|
|
983
979
|
}, [
|
|
984
980
|
x(ie, { icon: u.rightIcon }, null, 8, ["icon"])
|
|
985
981
|
])) : E("", !0),
|
|
986
|
-
i.value ? E("", !0) : (
|
|
982
|
+
i.value ? E("", !0) : (p(), $("div", Kt))
|
|
987
983
|
], 2));
|
|
988
984
|
}
|
|
989
985
|
}), Xt = { class: "$ui-base" }, co = /* @__PURE__ */ D({
|
|
@@ -1007,25 +1003,25 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1007
1003
|
danger: "i-ic-round-error",
|
|
1008
1004
|
success: "i-ep:success-filled"
|
|
1009
1005
|
};
|
|
1010
|
-
return (
|
|
1006
|
+
return (d, c) => (p(), $("div", Xt, [
|
|
1011
1007
|
x(Yt, {
|
|
1012
1008
|
modelValue: k(n),
|
|
1013
|
-
"onUpdate:modelValue":
|
|
1014
|
-
placeholder:
|
|
1015
|
-
onUpdateFocused:
|
|
1009
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => Q(n) ? n.value = u : null),
|
|
1010
|
+
placeholder: d.placeholder,
|
|
1011
|
+
onUpdateFocused: c[1] || (c[1] = (u) => s.value = u)
|
|
1016
1012
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1017
1013
|
b("div", {
|
|
1018
1014
|
class: S(["mt2 $ui-base text-3.5", [
|
|
1019
|
-
i[
|
|
1015
|
+
i[d.status],
|
|
1020
1016
|
{ "opacity-65": !s.value }
|
|
1021
1017
|
]])
|
|
1022
1018
|
}, [
|
|
1023
|
-
|
|
1019
|
+
d.status !== "normal" && r.value ? (p(), M(ie, {
|
|
1024
1020
|
key: 0,
|
|
1025
1021
|
inline: "",
|
|
1026
|
-
icon: l[
|
|
1022
|
+
icon: l[d.status]
|
|
1027
1023
|
}, null, 8, ["icon"])) : E("", !0),
|
|
1028
|
-
j(" " + I(r.value ?
|
|
1024
|
+
j(" " + I(r.value ? d.message : ""), 1)
|
|
1029
1025
|
], 2)
|
|
1030
1026
|
]));
|
|
1031
1027
|
}
|
|
@@ -1045,7 +1041,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1045
1041
|
emits: ["update:visible"],
|
|
1046
1042
|
setup(e) {
|
|
1047
1043
|
const o = e;
|
|
1048
|
-
return Ge("$ui-dropdown-disabled", _(() => o.disabled)), (t, a) => (
|
|
1044
|
+
return Ge("$ui-dropdown-disabled", _(() => o.disabled)), (t, a) => (p(), M(k(Re), {
|
|
1049
1045
|
disabled: t.disabled,
|
|
1050
1046
|
class: "inline-block w-auto",
|
|
1051
1047
|
shown: t.shown,
|
|
@@ -1060,7 +1056,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1060
1056
|
}, {
|
|
1061
1057
|
popper: y(({ hide: n }) => [
|
|
1062
1058
|
b("div", qt, [
|
|
1063
|
-
w(t.$slots, "popper", ce(
|
|
1059
|
+
w(t.$slots, "popper", de(ce({ hide: n })), () => [
|
|
1064
1060
|
Qt
|
|
1065
1061
|
])
|
|
1066
1062
|
])
|
|
@@ -1106,7 +1102,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1106
1102
|
},
|
|
1107
1103
|
setup(e) {
|
|
1108
1104
|
const o = e, t = Ke("$ui-dropdown-disabled", void 0);
|
|
1109
|
-
return (a, n) => me((
|
|
1105
|
+
return (a, n) => me((p(), M(K, q({
|
|
1110
1106
|
...o,
|
|
1111
1107
|
round: !1
|
|
1112
1108
|
}, {
|
|
@@ -1146,7 +1142,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1146
1142
|
function s(r = !1) {
|
|
1147
1143
|
(t.autoClose || r) && (n.value = !1);
|
|
1148
1144
|
}
|
|
1149
|
-
return (r, i) => (
|
|
1145
|
+
return (r, i) => (p(), M(Ut, {
|
|
1150
1146
|
modelValue: k(n),
|
|
1151
1147
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => Q(n) ? n.value = l : null),
|
|
1152
1148
|
width: r.width,
|
|
@@ -1206,39 +1202,39 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1206
1202
|
get: () => t.modelValue,
|
|
1207
1203
|
set: (l) => a("update:modelValue", l)
|
|
1208
1204
|
}), r = _(() => {
|
|
1209
|
-
const l = t.options.find((
|
|
1205
|
+
const l = t.options.find((d) => d.value === s.value);
|
|
1210
1206
|
return l != null && l.label ? t.labelRenderer(l.label) : t.placeholder;
|
|
1211
1207
|
});
|
|
1212
1208
|
function i(l) {
|
|
1213
|
-
t.multiple ? s.value = s.value.includes(l.value) ? s.value.filter((
|
|
1209
|
+
t.multiple ? s.value = s.value.includes(l.value) ? s.value.filter((d) => d !== l.value) : [...s.value, l.value] : s.value = l.value;
|
|
1214
1210
|
}
|
|
1215
|
-
return (l,
|
|
1211
|
+
return (l, d) => (p(), M(Zt, q({ label: r.value }, {
|
|
1216
1212
|
buttonProps: l.buttonProps,
|
|
1217
1213
|
disabled: l.disabled
|
|
1218
1214
|
}), Te({
|
|
1219
1215
|
popper: y(() => [
|
|
1220
1216
|
b("div", to, [
|
|
1221
|
-
k(n).item ? (
|
|
1222
|
-
key:
|
|
1217
|
+
k(n).item ? (p(!0), $(he, { key: 0 }, be(l.options, (c) => (p(), $("div", {
|
|
1218
|
+
key: c.value,
|
|
1223
1219
|
class: "cursor-pointer",
|
|
1224
|
-
onClick: (u) => i(
|
|
1220
|
+
onClick: (u) => i(c)
|
|
1225
1221
|
}, [
|
|
1226
|
-
w(l.$slots, "item", ce(
|
|
1227
|
-
item:
|
|
1228
|
-
active: l.multiple ? s.value.includes(
|
|
1222
|
+
w(l.$slots, "item", de(ce({
|
|
1223
|
+
item: c,
|
|
1224
|
+
active: l.multiple ? s.value.includes(c.value) : c.value === s.value,
|
|
1229
1225
|
disabled: l.disabled
|
|
1230
1226
|
})))
|
|
1231
|
-
], 8, oo))), 128)) : (
|
|
1232
|
-
key:
|
|
1227
|
+
], 8, oo))), 128)) : (p(!0), $(he, { key: 1 }, be(l.options, (c) => me((p(), M(K, {
|
|
1228
|
+
key: c.value,
|
|
1233
1229
|
disabled: l.disabled,
|
|
1234
1230
|
round: "normal",
|
|
1235
1231
|
class: S(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
|
|
1236
|
-
active: l.multiple ? s.value.includes(
|
|
1232
|
+
active: l.multiple ? s.value.includes(c.value) : c.value === s.value
|
|
1237
1233
|
}]),
|
|
1238
|
-
onClick: (u) => i(
|
|
1234
|
+
onClick: (u) => i(c)
|
|
1239
1235
|
}, {
|
|
1240
1236
|
default: y(() => [
|
|
1241
|
-
j(I(
|
|
1237
|
+
j(I(c.label), 1)
|
|
1242
1238
|
]),
|
|
1243
1239
|
_: 2
|
|
1244
1240
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
@@ -1269,7 +1265,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1269
1265
|
emits: ["update:modelValue"],
|
|
1270
1266
|
setup(e, { emit: o }) {
|
|
1271
1267
|
const n = J(e, "modelValue", o), s = yt(n);
|
|
1272
|
-
return (r, i) => (
|
|
1268
|
+
return (r, i) => (p(), $("div", {
|
|
1273
1269
|
class: S([[
|
|
1274
1270
|
r.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
1275
1271
|
], "$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),
|
|
@@ -1300,7 +1296,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1300
1296
|
emits: ["update:modelValue"],
|
|
1301
1297
|
setup(e, { emit: o }) {
|
|
1302
1298
|
const n = J(e, "modelValue", o);
|
|
1303
|
-
return (s, r) => (
|
|
1299
|
+
return (s, r) => (p(), $("div", {
|
|
1304
1300
|
class: S(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
|
|
1305
1301
|
k(n) ? s.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
|
|
1306
1302
|
]]),
|
|
@@ -1352,40 +1348,40 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1352
1348
|
t.closable && (s.value = !1);
|
|
1353
1349
|
});
|
|
1354
1350
|
const i = _(() => r[t.placement]), l = T(!1);
|
|
1355
|
-
return Y(() => l.value = !0), (
|
|
1351
|
+
return Y(() => l.value = !0), (d, c) => l.value || d.mountTo === "body" ? (p(), M(Be, {
|
|
1356
1352
|
key: 0,
|
|
1357
|
-
to:
|
|
1353
|
+
to: d.mountTo
|
|
1358
1354
|
}, [
|
|
1359
1355
|
x(fe, {
|
|
1360
1356
|
"enter-from-class": `${i.value.transition}`,
|
|
1361
1357
|
"leave-to-class": `${i.value.transition}`
|
|
1362
1358
|
}, {
|
|
1363
1359
|
default: y(() => [
|
|
1364
|
-
k(s) ? (
|
|
1360
|
+
k(s) ? (p(), M(Le, {
|
|
1365
1361
|
key: 0,
|
|
1366
1362
|
class: S({
|
|
1367
|
-
"pointer-events-none":
|
|
1363
|
+
"pointer-events-none": d.permanent
|
|
1368
1364
|
}),
|
|
1369
|
-
dim:
|
|
1370
|
-
blur:
|
|
1371
|
-
onClick:
|
|
1365
|
+
dim: d.dim,
|
|
1366
|
+
blur: d.blur,
|
|
1367
|
+
onClick: c[2] || (c[2] = (u) => d.closeOutside && d.closable && (s.value = !1))
|
|
1372
1368
|
}, {
|
|
1373
1369
|
default: y(() => [
|
|
1374
1370
|
b("div", {
|
|
1375
|
-
class: S([[i.value.class,
|
|
1371
|
+
class: S([[i.value.class, d.contentClass ?? "", d.contentBlur ? "$ui-glass-effect" : "$ui-bg-base"], "drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),
|
|
1376
1372
|
style: pe({
|
|
1377
|
-
top:
|
|
1378
|
-
height: ["top", "bottom"].includes(
|
|
1373
|
+
top: d.placement === "bottom" ? "auto" : `${k(n)}px`,
|
|
1374
|
+
height: ["top", "bottom"].includes(d.placement) ? "auto" : `calc(100% - ${k(n)}px)`
|
|
1379
1375
|
}),
|
|
1380
|
-
onClick:
|
|
1376
|
+
onClick: c[1] || (c[1] = Ye(() => {
|
|
1381
1377
|
}, ["stop"]))
|
|
1382
1378
|
}, [
|
|
1383
|
-
|
|
1379
|
+
d.closable ? (p(), $("div", {
|
|
1384
1380
|
key: 0,
|
|
1385
1381
|
class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
|
|
1386
|
-
onClick:
|
|
1382
|
+
onClick: c[0] || (c[0] = (u) => s.value = !1)
|
|
1387
1383
|
})) : E("", !0),
|
|
1388
|
-
w(
|
|
1384
|
+
w(d.$slots, "default")
|
|
1389
1385
|
], 6)
|
|
1390
1386
|
]),
|
|
1391
1387
|
_: 3
|
|
@@ -1423,7 +1419,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1423
1419
|
}, o.duration);
|
|
1424
1420
|
});
|
|
1425
1421
|
const s = _(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
|
|
1426
|
-
return (r, i) => (
|
|
1422
|
+
return (r, i) => (p(), $("div", {
|
|
1427
1423
|
class: S(["fixed left-0 right-0 $ui-z-max-override text-center", [
|
|
1428
1424
|
{ "top-0": r.placement.startsWith("top") },
|
|
1429
1425
|
{ "bottom-0": r.placement.startsWith("bottom") }
|
|
@@ -1438,7 +1434,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1438
1434
|
})
|
|
1439
1435
|
}, {
|
|
1440
1436
|
default: y(() => [
|
|
1441
|
-
n.value ? (
|
|
1437
|
+
n.value ? (p(), $("div", {
|
|
1442
1438
|
key: 0,
|
|
1443
1439
|
class: "flex transition-all duration-300",
|
|
1444
1440
|
style: pe({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
|
|
@@ -1468,7 +1464,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
|
|
|
1468
1464
|
shown: { type: Boolean }
|
|
1469
1465
|
},
|
|
1470
1466
|
setup(e) {
|
|
1471
|
-
return (o, t) => (
|
|
1467
|
+
return (o, t) => (p(), M(k(We), q({
|
|
1472
1468
|
disabled: o.disabled,
|
|
1473
1469
|
placement: o.placement
|
|
1474
1470
|
}, o.$attrs), {
|
|
@@ -25,8 +25,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
25
|
animationDuration: number;
|
|
26
26
|
}, {}>, {
|
|
27
27
|
default?(_: {
|
|
28
|
-
mode: import("@vueuse/core").
|
|
29
|
-
isDark:
|
|
28
|
+
mode: import("@vueuse/core").BasicColorSchema;
|
|
29
|
+
isDark: boolean;
|
|
30
30
|
toggle: typeof toggle;
|
|
31
31
|
}): any;
|
|
32
32
|
}>;
|
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
autoFocus?: boolean | undefined;
|
|
11
11
|
loadingDebounceTime?: number | undefined;
|
|
12
|
+
readonly?: boolean | undefined;
|
|
12
13
|
}>, {
|
|
13
14
|
placeholder: string;
|
|
14
15
|
variant: string;
|
|
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
21
|
loading: boolean;
|
|
21
22
|
autoFocus: boolean;
|
|
22
23
|
loadingDebounceTime: number;
|
|
24
|
+
readonly: boolean;
|
|
23
25
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
26
|
"update:modelValue": (value: string) => void;
|
|
25
27
|
updateFocused: (value: boolean) => void;
|
|
@@ -35,6 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
35
37
|
loading?: boolean | undefined;
|
|
36
38
|
autoFocus?: boolean | undefined;
|
|
37
39
|
loadingDebounceTime?: number | undefined;
|
|
40
|
+
readonly?: boolean | undefined;
|
|
38
41
|
}>, {
|
|
39
42
|
placeholder: string;
|
|
40
43
|
variant: string;
|
|
@@ -46,6 +49,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
49
|
loading: boolean;
|
|
47
50
|
autoFocus: boolean;
|
|
48
51
|
loadingDebounceTime: number;
|
|
52
|
+
readonly: boolean;
|
|
49
53
|
}>>> & {
|
|
50
54
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
55
|
onUpdateFocused?: ((value: boolean) => any) | undefined;
|
|
@@ -58,6 +62,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
58
62
|
password: boolean;
|
|
59
63
|
autoFocus: boolean;
|
|
60
64
|
loadingDebounceTime: number;
|
|
65
|
+
readonly: boolean;
|
|
61
66
|
}, {}>;
|
|
62
67
|
export default _default;
|
|
63
68
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|