4 lines
70 KiB
JavaScript
4 lines
70 KiB
JavaScript
|
|
import{A as e,C as t,Ct as n,I as r,J as i,Q as a,R as o,St as s,V as c,Y as l,_ as u,at as d,b as f,g as p,h as m,l as h,m as g,pt as _,ut as v,v as y,w as b,wt as x,x as S,xt as C,y as w,yt as T,z as E}from"./vue.runtime.esm-bundler-DS0mm12S.js";import{T as D,b as O,p as ee}from"./dist-3yfE1dPa.js";import{i as k,n as A,r as te,t as ne}from"./circle-plus-B762ZQmf.js";import{a as re,i as ie,n as ae,o as oe,r as se,t as ce}from"./SelectValue-BHFTqCZG.js";import{S as le,_ as ue,a as de,c as fe,d as pe,f as me,g as he,h as ge,i as _e,m as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te,v as Ee,y as De}from"./PopoverTrigger-D3ftISNq.js";import{t as Oe}from"./chevrons-up-down-Bbw1im9J.js";import{t as ke}from"./circle-Cc5GzalR.js";import{t as Ae}from"./eye-off-DDZmXXZv.js";import{J as j,K as je,Y as M,Z as Me,q as Ne}from"./index-De70L21J.js";import{b as Pe,d as Fe,l as Ie,x as Le,y as Re}from"./Teleport-DzgMZwe8.js";import{t as ze}from"./Checkbox-BgKyz7hN.js";import{n as N}from"./button-DveXNdlZ.js";import{a as Be,i as Ve,n as He,r as Ue,t as We}from"./DropdownMenuTrigger-CvM5INxe.js";import{t as Ge}from"./useForwardExpose-CNhbE6SX.js";import{a as Ke,n as qe,r as Je,t as Ye}from"./DropdownMenuLabel-D34bF97h.js";import{t as P}from"./Separator-CRDF5CnK.js";import{t as Xe}from"./Badge-C_vv39Gz.js";import{a as Ze,i as Qe,n as F,o as $e,r as et,t as tt}from"./TableHead-yBibYjQa.js";var nt=D(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),rt=D(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),it=D(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),at=D(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),ot=D(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),st=D(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),ct=D(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),lt=D(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),ut=D(`refresh-ccw`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}]]),dt=D(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ft=S({__name:`MenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1,default:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`,`update:modelValue`],setup(t,{emit:n}){let i=t,o=n,s=Pe(O(i,[`modelValue`])),c=ee(i,`modelValue`,o);return Ke({modelValue:c}),(t,n)=>(r(),p(Be,e({role:`menuitemcheckbox`},T(s),{"aria-checked":T(Fe)(T(c))?`mixed`:T(c),"data-state":T(Ie)(T(c)),onSelect:n[0]||=async e=>{o(`select`,e),T(Fe)(T(c))?c.value=!0:c.value=!T(c)}}),{default:a(()=>[E(t.$slots,`default`,{modelValue:T(c)})]),_:3},16,[`aria-checked`,`data-state`]))}}),pt=S({__name:`DropdownMenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`sele
|
||
|
|
font-size: .6rem;
|
||
|
|
font-weight: bold;
|
||
|
|
color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return i}}function B(e,t,n,r){return{debug:()=>e?.debugAll??e[t],key:!1,onChange:r}}function yt(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:z(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),B(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function bt(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:z(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],B(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:z(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},B(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var V=`debugHeaders`;function xt(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var St={createTable:e=>{e.getHeaderGroups=z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return H(t,[...a,...s,...o],e)},B(e.options,V,`getHeaderGroups`)),e.getCenterHeaderGroups=z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),H(t,n,e,`center`)),B(e.options,V,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>H(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),B(e.options,V,`getLeftHeaderGroups`)),e.getRightHeaderGroups=z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>H(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),B(e.options,V,`getRightHeaderGroups`)),e.getFooterGroups=z(()=>[e.getHeaderGroups()],e=>[...e].reverse(),B(e.options,V,`getFooterGroups`)),e.getLeftFooterGroups=z(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),B(e.options,V,`getLeftFooterGroups`)),e.getCenterFooterGroups=z(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),B(e.options,V,`getCenterFooterGroups`)),e.getRightFooterGroups=z(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),B(e.options,V,`getRightFooterGroups`)),e.getFlatHeaders=z(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),B(e.options,V,`getFlatHeaders`)),e.getLeftFlatHeaders=z(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),B(e.options,V,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=z(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),B(e.options,V,`getCenterFlatHeaders`)),e.getRightFlatHeaders=z(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),B(e.options,V,`getRightFlatHeaders`)),e.getCenterLeafHeaders=z(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),B(e.options,V,`getCenterLea
|