Files
monisuo/monisuo-admin/dist/assets/DropdownMenuShortcut-CzXoajBd.js

4 lines
70 KiB
JavaScript
Raw Normal View History

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}from"./createLucideIcon-BHlxd6NP.js";import{i as O,n as k,r as ee,t as te}from"./circle-plus-gCMO9eLb.js";import{a as ne,i as re,n as ie,o as ae,r as oe,t as se}from"./SelectValue-CPTo3Tck.js";import{S as ce,_ as le,a as ue,c as de,d as fe,f as pe,g as me,h as he,i as ge,m as _e,n as ve,o as ye,p as be,r as xe,s as Se,t as Ce,u as we,v as Te,y as Ee}from"./PopoverTrigger-BIiUi3V_.js";import{t as De}from"./chevrons-up-down-0Ktk5jeW.js";import{t as Oe}from"./circle-DamJJ93T.js";import{t as ke}from"./eye-off-C5q6VhPh.js";import{t as Ae}from"./Spinner-DJesLX-i.js";import{n as A,t as j}from"./utils-u71wZLxr.js";import{t as je}from"./_plugin-vue_export-helper-CYlxKsUj.js";import{X as Me,_t as Ne,rt as Pe}from"./index-aDrlI3dP.js";import{b as Fe,d as Ie,l as Le,x as Re,y as ze}from"./Teleport-CHY6zPT-.js";import{t as Be}from"./Checkbox-C4YZX1qq.js";import{n as M}from"./button-DQxx5HZh.js";import{a as Ve,i as He,n as Ue,r as We,t as Ge}from"./DropdownMenuTrigger-ClTgNT5d.js";import{t as Ke}from"./useForwardExpose-DNY3s-e3.js";import{a as qe,n as Je,r as Ye,t as Xe}from"./DropdownMenuLabel-7A-LG7N6.js";import{t as N}from"./Separator-B3Ic7udQ.js";import{t as Ze}from"./Badge-B93DSkNh.js";import{a as Qe,i as $e,n as P,o as et,r as tt,t as nt}from"./TableHead-Cg6B6rf4.js";var rt=D(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),it=D(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),at=D(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),ot=D(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),st=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`}]]),ct=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`}]]),lt=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`}]]),ut=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`}]]),dt=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`}]]),ft=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`}]]),pt=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=Fe(Pe(i,[`modelValue`])),c=Me(i,`modelValue`,o);return qe({modelValue:c}),(t,n)=>(r(),p(Ve,e({role:`menuitemcheckbox`},T(s),{"aria-checked":T(Ie)(T(c))?`mixed`:T(c),"data-state":T(Le)(T(c)),onSelect:n[0]||=async e=>{o(`select`,e),T(Ie)(T(c))?c.value=!0:c.value=!T(c)}}),{default:a(()=>[E(t.$slots,`default`,{modelValue:T(c)})]),_:3},16,[`aria-checked`,`data-state`]))}}),mt=S({__name:`DropdownMenuCheckboxItem`,props:{modelValue:{type:[Boolean,String],required:!1},disabled:{
2026-03-23 01:50:00 +08:00
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 z(e,t,n,r){return{debug:()=>e?.debugAll??e[t],key:!1,onChange:r}}function bt(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:R(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),z(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function xt(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:R(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],z(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:R(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},z(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var B=`debugHeaders`;function St(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 Ct={createTable:e=>{e.getHeaderGroups=R(()=>[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 V(t,[...a,...s,...o],e)},z(e.options,B,`getHeaderGroups`)),e.getCenterHeaderGroups=R(()=>[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))),V(t,n,e,`center`)),z(e.options,B,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=R(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>V(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),z(e.options,B,`getLeftHeaderGroups`)),e.getRightHeaderGroups=R(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>V(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),z(e.options,B,`getRightHeaderGroups`)),e.getFooterGroups=R(()=>[e.getHeaderGroups()],e=>[...e].reverse(),z(e.options,B,`getFooterGroups`)),e.getLeftFooterGroups=R(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),z(e.options,B,`getLeftFooterGroups`)),e.getCenterFooterGroups=R(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),z(e.options,B,`getCenterFooterGroups`)),e.getRightFooterGroups=R(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),z(e.options,B,`getRightFooterGroups`)),e.getFlatHeaders=R(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),z(e.options,B,`getFlatHeaders`)),e.getLeftFlatHeaders=R(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),z(e.options,B,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=R(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),z(e.options,B,`getCenterFlatHeaders`)),e.getRightFlatHeaders=R(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),z(e.options,B,`getRightFlatHeaders`)),e.getCenterLeafHeaders=R(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),z(e.options,B,`getCenterLea