mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 22:07:10 -04:00
🔧:build SSR dist and deploy
This commit is contained in:
parent
76c26901d7
commit
c59ad6aedb
465 changed files with 214127 additions and 2 deletions
1
dist/client/assets/chunks/chunk-606d31d4.js
vendored
Normal file
1
dist/client/assets/chunks/chunk-606d31d4.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
import{j as r,D as i,E as u,ad as W,ae as A,d as j,V as G,G as H,c as B,Q as J,ah as X,as as Z,r as v,a4 as Y,R as g,ai as ee,A as oe,k as ae,l as O,N as T,q as e,H as $,m as M,I as V,J as te,U as se,F as le,f as ne,aq as re,ar as ce,S as ie,at as ue,M as k,n as de,W as pe,X as fe,_ as he}from"./chunk-449c23a2.js";import{_ as ve}from"./chunk-a3974c29.js";import{u as me}from"./chunk-27eb844d.js";const _e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=u("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1),we=[be];function xe(s,m){return r(),i("svg",_e,we)}const ye={name:"mdi-chevron-down",render:xe},E={small:{height:"28px",fontSize:"12px"},medium:{height:"34px",fontSize:"14px"},large:{height:"40px",fontSize:"16px"}},{useTheme:ge}=W({dark:{sizes:E,backgroundColor:"#333333",borderColor:"#333333",dropdownShadow:"rgba(0, 0, 0, 0.2) 0px 8px 24px",option:{hover:{backgroundColor:"#444444"},active:{textColor:A.dark.primary.color}},focus:{backgroundColor:"#1ea54c1a"}},light:{sizes:E,backgroundColor:"#ffffff",borderColor:"#e0e0e69e",dropdownShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",option:{hover:{backgroundColor:"#eee"},active:{textColor:A.light.primary.color}},focus:{backgroundColor:"#ffffff"}}});function ke({value:s,min:m=0,max:d=100}){return Math.min(Math.max(s,m),d)}const Ce=s=>(pe("data-v-350c641a"),s=s(),fe(),s),Se={"flex-1":"",truncate:""},ze={key:1,"lh-normal":""},Ie={key:2,class:"placeholder","lh-normal":""},Re={class:"c-select-dropdown",absolute:"","z-10":"","mt-1":"","max-h-312px":"","w-full":"","overflow-y-auto":"","pretty-scrollbar":""},De=Ce(()=>u("div",{"px-4":"","py-1":"","opacity-70":""}," No results found ",-1)),Ae=["onClick"],Be=j({__name:"c-select",props:{options:{default:()=>[]},value:{default:void 0},placeholder:{default:void 0},size:{default:"medium"},searchable:{type:Boolean,default:!1},label:{},labelFor:{},labelPosition:{},labelWidth:{},labelAlign:{}},emits:["update:value"],setup(s,{emit:m}){const d=s;G(o=>({b681f728:e(P).text.mutedColor,"24b10592":e(c).backgroundColor,"7208e40e":e(c).borderColor,"0e8b7fc4":e(S).fontSize,"3a8b14fb":e(S).height,"4f44bdef":e(c).dropdownShadow,"094b2a09":e(c).option.active.textColor,"9f7bab70":e(c).option.hover.backgroundColor}));const{options:N,placeholder:F,size:U,searchable:K}=H(d),_=B(()=>N.value.map(o=>typeof o=="string"?{label:o,value:o}:o)),L=J(),b=X(d,"value",m),c=ge(),P=Z(),a=v(!1),p=Y(_.value.find(o=>o.value===b.value)),n=v(0),C=v(null),S=B(()=>c.value.sizes[U.value]),f=v(""),z=v();g(()=>!a.value,()=>{n.value=0,f.value=""}),g(()=>a.value,()=>{de(()=>z.value?.focus())}),ee(C,I),g(L.escape,I),oe(b,o=>{const t=_.value.find(h=>h.value===o);t&&(p.value=t)});const{searchResult:w}=me({search:f,data:_.value,options:{keys:["label"],shouldSort:!1,threshold:.3,filterEmpty:!1}});function I(){a.value=!1}function R(){a.value=!a.value}function D({option:o}){p.value=o,b.value=o.value,a.value=!1}function q(o){const{key:t}=o,h=["Enter"].includes(t),l=["ArrowUp","ArrowDown"].includes(t),x=t==="ArrowDown";if(h){a.value&&n.value!==-1?D({option:w.value[n.value]}):R(),o.preventDefault();return}if(l){const y=x?1:-1;n.value=ke({value:n.value+y,min:0,max:_.value.length-1}),o.preventDefault()}}function Q(){n.value=0}return(o,t)=>{const h=ye;return r(),ae(ve,re(ce(d)),{default:O(()=>[u("div",{ref_key:"elementRef",ref:C,relative:"",class:"c-select","w-full":""},[u("div",{flex:"","flex-nowrap":"","cursor-pointer":"","items-center":"",class:T([{"is-open":e(a),"important:border-primary":e(a)},"c-select-input"]),tabindex:"0","hover:important:border-primary":"",onClick:R,onKeydown:q},[u("div",Se,[$(o.$slots,"displayed-value",{},()=>[e(K)&&e(a)?V((r(),i("input",{key:0,ref_key:"searchInputRef",ref:z,"onUpdate:modelValue":t[0]||(t[0]=l=>ie(f)?f.value=l:null),type:"text",placeholder:"Search...",class:"search-input","w-full":"","lh-normal":"","color-current":"",onInput:Q},null,544)),[[ue,e(f)]]):e(p)?(r(),i("span",ze,k(e(p).label),1)):(r(),i("span",Ie,k(e(F)??"Select an option"),1))],!0)]),M(h,{class:"chevron"})],34),M(ne,{name:"dropdown"},{default:O(()=>[V(u("div",Re,[e(w).length?(r(!0),i(le,{key:1},se(e(w),(l,x)=>(r(),i("div",{key:l.label,"cursor-pointer":"","px-4":"","py-1":"",class:T([{active:e(p)?.label===l.label,hover:e(n)===x},"c-select-dropdown-option"]),onClick:y=>D({option:l})},k(l.label),11,Ae))),128)):$(o.$slots,"empty",{key:0},()=>[De],!0)],512),[[te,e(a)]])]),_:3})],512)]),_:3},16)}}});const Me=he(Be,[["__scopeId","data-v-350c641a"]]);export{Me as _};
|
Loading…
Add table
Add a link
Reference in a new issue