@gkd-kit/inspect 0.0.1726227642140 → 0.0.1728462303035
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/assets/{ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js → ActionCard.vue_vue_type_script_setup_true_lang-D2f2zW7b.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js.map → ActionCard.vue_vue_type_script_setup_true_lang-D2f2zW7b.js.map} +1 -1
- package/dist/assets/{DevicePage-99_3J34X.js → DevicePage-BPmKnXuw.js} +2 -2
- package/dist/assets/{DevicePage-99_3J34X.js.map → DevicePage-BPmKnXuw.js.map} +1 -1
- package/dist/assets/{HomePage-9rLah5Wp.js → HomePage-BCLKJI9l.js} +2 -2
- package/dist/assets/{HomePage-9rLah5Wp.js.map → HomePage-BCLKJI9l.js.map} +1 -1
- package/dist/assets/{ImportPage-Dk5VjEU_.js → ImportPage-6CQo5Zvl.js} +2 -2
- package/dist/assets/{ImportPage-Dk5VjEU_.js.map → ImportPage-6CQo5Zvl.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-2K9o878c.js → PreviewSharePage-DiFufsy2.js} +2 -2
- package/dist/assets/{PreviewSharePage-2K9o878c.js.map → PreviewSharePage-DiFufsy2.js.map} +1 -1
- package/dist/assets/{SelectorPage-B_7oLClp.js → SelectorPage-1Bhoa1BZ.js} +2 -2
- package/dist/assets/SelectorPage-1Bhoa1BZ.js.map +1 -0
- package/dist/assets/{SnapshotPage-Bg4c8Oph.js → SnapshotPage-D-3NPjhd.js} +5 -5
- package/dist/assets/{SnapshotPage-Bg4c8Oph.js.map → SnapshotPage-D-3NPjhd.js.map} +1 -1
- package/dist/assets/{TrackGraph-DjnqLrXm.js → TrackGraph-c1dGOHx9.js} +2 -2
- package/dist/assets/{TrackGraph-DjnqLrXm.js.map → TrackGraph-c1dGOHx9.js.map} +1 -1
- package/dist/assets/{_404Page-B2M4OTwT.js → _404Page-SUKvHtMY.js} +2 -2
- package/dist/assets/{_404Page-B2M4OTwT.js.map → _404Page-SUKvHtMY.js.map} +1 -1
- package/dist/assets/{dayjs.min-BS9GBYxP.js → dayjs.min-Bn70kxL7.js} +10 -10
- package/dist/assets/{dayjs.min-BS9GBYxP.js.map → dayjs.min-Bn70kxL7.js.map} +1 -1
- package/dist/assets/{error-CMGw743e.js → error-q1gk-PhW.js} +2 -2
- package/dist/assets/{error-CMGw743e.js.map → error-q1gk-PhW.js.map} +1 -1
- package/dist/assets/{export-_87gDXL6.js → export-5OojlAEF.js} +2 -2
- package/dist/assets/{export-_87gDXL6.js.map → export-5OojlAEF.js.map} +1 -1
- package/dist/assets/{fetch-BmeNEwPq.js → fetch-Dh3kQLu5.js} +2 -2
- package/dist/assets/{fetch-BmeNEwPq.js.map → fetch-Dh3kQLu5.js.map} +1 -1
- package/dist/assets/{import-DIf6n_TM.js → import-BJqKBjn4.js} +2 -2
- package/dist/assets/{import-DIf6n_TM.js.map → import-BJqKBjn4.js.map} +1 -1
- package/dist/assets/{index-D52JPXbN.js → index-Cb_Ek-sW.js} +2 -2
- package/dist/assets/{index-D52JPXbN.js.map → index-Cb_Ek-sW.js.map} +1 -1
- package/dist/assets/{index-CYOhDK3x.js → index-CjSeFmRv.js} +3 -3
- package/dist/assets/{index-CYOhDK3x.js.map → index-CjSeFmRv.js.map} +1 -1
- package/dist/assets/{index-BhB6U9Pt.js → index-KFUDHLvX.js} +2 -2
- package/dist/assets/{index-BhB6U9Pt.js.map → index-KFUDHLvX.js.map} +1 -1
- package/dist/assets/{table-CAKFQsKO.js → table-CEX2OnIP.js} +2 -2
- package/dist/assets/{table-CAKFQsKO.js.map → table-CEX2OnIP.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/SelectorPage-B_7oLClp.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as K,T as Je,S as Yn,aW as er,aX as tr,aY as Nt,aZ as nt,a_ as or,a$ as ft,h as fe,b0 as nr,Q as Lt,as as rt,v as i,av as rr,b1 as zo,ah as dt,d as at,aj as an,ab as Ie,aa as He,am as et,ae as Xe,b2 as Et,a as R,b as le,f as j,e as ne,g as We,b3 as Dt,j as Le,u as qe,a3 as vt,t as ie,m as w,o as Mt,n as ue,ap as ht,a1 as Ze,q as lt,w as Bt,x as yo,b4 as xo,aq as Kt,c as xe,b5 as Mo,b6 as ir,a4 as gt,y as ae,B as pt,b7 as ar,I as st,aM as lr,aN as ln,l as it,k as sr,b8 as dr,a6 as sn,a7 as cr,b9 as Oo,ba as ur,bb as fr,aK as hr,ai as pr,ag as Re,bc as vr,a0 as gr,bd as It,P as To,be as br,$ as Co,bf as dn,bg as bo,bh as mr,bi as yr,ar as xr,p as kt,N as Cr,at as wr,bj as Sr,bk as Rr,ao as kr,i as wt,ak as Pr,al as Fr,a9 as zr,R as Ot,bl as co,E as Tt}from"./index-CYOhDK3x.js";import{b as Mr,a as wo,i as Or,_ as Bo,f as Qe,N as Tr,C as Br}from"./index-D52JPXbN.js";import{x as Ir,y as $r,e as cn,z as So,d as _r,V as un,h as Ve,A as Ar,N as fn,t as Ht,a as jt,c as Ut,v as $t,B as Nr,D as _t,E as hn,F as pn,G as vn,H as Lr,I as Er,J as Dr,K as Kr,j as Ft,L as Hr,M as jr,o as Ur,n as gn,C as bn,O as Wr,P as Io,Q as $o,p as _o,g as St,q as Ao}from"./dayjs.min-BS9GBYxP.js";import{o as mn,c as uo}from"./fetch-BmeNEwPq.js";function No(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function Lo(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function yn(e){return t=>{t?e.value=t.$el:e.value=null}}function Pt(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function Vr(e,t,o){const n=K(e.value);let r=null;return Je(e,a=>{r!==null&&window.clearTimeout(r),a===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function qr(e={},t){const o=Yn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,a=c=>{switch(c.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(s=>{if(s!==c.key)return;const h=n[s];if(typeof h=="function")h(c);else{const{stop:b=!1,prevent:m=!1}=h;b&&c.stopPropagation(),m&&c.preventDefault(),h.handler(c)}})},d=c=>{switch(c.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(s=>{if(s!==c.key)return;const h=r[s];if(typeof h=="function")h(c);else{const{stop:b=!1,prevent:m=!1}=h;b&&c.stopPropagation(),m&&c.preventDefault(),h.handler(c)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,a),ft("keyup",document,d)),t!==void 0&&Je(t,c=>{c?(ft("keydown",document,a),ft("keyup",document,d)):(nt("keydown",document,a),nt("keyup",document,d))})};return er()?(tr(l),Nt(()=>{(t===void 0||t.value)&&(nt("keydown",document,a),nt("keyup",document,d))})):l(),or(o)}const tt="v-hidden",Gr=$r("[v-hidden]",{display:"none!important"}),Eo=fe({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=K(null),n=K(null);function r(d){const{value:l}=o,{getCounter:c,getTail:s}=e;let h;if(c!==void 0?h=c():h=n.value,!l||!h)return;h.hasAttribute(tt)&&h.removeAttribute(tt);const{children:b}=l;if(d.showAllItemsBeforeCalculate)for(const P of b)P.hasAttribute(tt)&&P.removeAttribute(tt);const m=l.offsetWidth,f=[],u=t.tail?s==null?void 0:s():null;let g=u?u.offsetWidth:0,y=!1;const x=l.children.length-(t.tail?1:0);for(let P=0;P<x-1;++P){if(P<0)continue;const D=b[P];if(y){D.hasAttribute(tt)||D.setAttribute(tt,"");continue}else D.hasAttribute(tt)&&D.removeAttribute(tt);const B=D.offsetWidth;if(g+=B,f[P]=B,g>m){const{updateCounter:H}=e;for(let N=P;N>=0;--N){const E=x-1-N;H!==void 0?H(E):h.textContent=`${E}`;const T=h.offsetWidth;if(g-=f[N],g+T<=m||N===0){y=!0,P=N-1,u&&(P===-1?(u.style.maxWidth=`${m-T}px`,u.style.boxSizing="border-box"):u.style.maxWidth="");const{onUpdateCount:I}=e;I&&I(E);break}}}}const{onUpdateOverflow:M}=e;y?M!==void 0&&M(!0):(M!==void 0&&M(!1),h.setAttribute(tt,""))}const a=nr();return Gr.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ir,ssr:a}),Lt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return rt(()=>this.sync({showAllItemsBeforeCalculate:!1})),i("div",{class:"v-overflow",ref:"selfRef"},[rr(e,"default"),e.counter?e.counter():i("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function xn(e,t){t&&(Lt(()=>{const{value:o}=e;o&&zo.registerHandler(o,t)}),Nt(()=>{const{value:o}=e;o&&zo.unregisterHandler(o)}))}function Xr(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const Zr=fe({name:"ArrowDown",render(){return i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),Do=fe({name:"Backward",render(){return i("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),Jr=fe({name:"Checkmark",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},i("g",{fill:"none"},i("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Ko=fe({name:"FastBackward",render(){return i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Ho=fe({name:"FastForward",render(){return i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Qr=fe({name:"Filter",render(){return i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),jo=fe({name:"Forward",render(){return i("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Uo=fe({name:"More",render(){return i("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Yr=fe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),ei={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function ti(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:a,primaryColorPressed:d,textColorDisabled:l,primaryColor:c,opacityDisabled:s,hoverColor:h,fontSizeSmall:b,fontSizeMedium:m,fontSizeLarge:f,fontSizeHuge:u,heightSmall:g,heightMedium:y,heightLarge:x,heightHuge:M}=e;return Object.assign(Object.assign({},ei),{optionFontSizeSmall:b,optionFontSizeMedium:m,optionFontSizeLarge:f,optionFontSizeHuge:u,optionHeightSmall:g,optionHeightMedium:y,optionHeightLarge:x,optionHeightHuge:M,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:a,optionTextColorPressed:d,optionTextColorDisabled:l,optionTextColorActive:c,optionOpacityDisabled:s,optionCheckColor:c,optionColorPending:h,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:h,actionTextColor:a,loadingColor:c})}const Ro=dt({name:"InternalSelectMenu",common:at,peers:{Scrollbar:an,Empty:cn},self:ti});function oi(e,t){return i(Et,{name:"fade-in-scale-up-transition"},{default:()=>e?i(Xe,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>i(Jr)}):null})}const Wo=fe({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:a,renderOptionRef:d,labelFieldRef:l,valueFieldRef:c,showCheckmarkRef:s,nodePropsRef:h,handleOptionClick:b,handleOptionMouseEnter:m}=Ie(So),f=He(()=>{const{value:x}=o;return x?e.tmNode.key===x.key:!1});function u(x){const{tmNode:M}=e;M.disabled||b(x,M)}function g(x){const{tmNode:M}=e;M.disabled||m(x,M)}function y(x){const{tmNode:M}=e,{value:P}=f;M.disabled||P||m(x,M)}return{multiple:n,isGrouped:He(()=>{const{tmNode:x}=e,{parent:M}=x;return M&&M.rawNode.type==="group"}),showCheckmark:s,nodeProps:h,isPending:f,isSelected:He(()=>{const{value:x}=t,{value:M}=n;if(x===null)return!1;const P=e.tmNode.rawNode[c.value];if(M){const{value:D}=r;return D.has(P)}else return x===P}),labelField:l,renderLabel:a,renderOption:d,handleMouseMove:y,handleMouseEnter:g,handleClick:u}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:a,nodeProps:d,renderOption:l,renderLabel:c,handleClick:s,handleMouseEnter:h,handleMouseMove:b}=this,m=oi(o,e),f=c?[c(t,o),a&&m]:[et(t[this.labelField],t,o),a&&m],u=d==null?void 0:d(t),g=i("div",Object.assign({},u,{class:[`${e}-base-select-option`,t.class,u==null?void 0:u.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:a}],style:[(u==null?void 0:u.style)||"",t.style||""],onClick:Pt([s,u==null?void 0:u.onClick]),onMouseenter:Pt([h,u==null?void 0:u.onMouseenter]),onMousemove:Pt([b,u==null?void 0:u.onMousemove])}),i("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),Vo=fe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Ie(So);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,a=n==null?void 0:n(r),d=t?t(r,!1):et(r[this.labelField],r,!1),l=i("div",Object.assign({},a,{class:[`${e}-base-select-group-header`,a==null?void 0:a.class]}),d);return r.render?r.render({node:l,option:r}):o?o({node:l,option:r,selected:!1}):l}}),ni=R("base-select-menu",`
|
|
1
|
+
import{r as K,T as Je,S as Yn,aW as er,aX as tr,aY as Nt,aZ as nt,a_ as or,a$ as ft,h as fe,b0 as nr,Q as Lt,as as rt,v as i,av as rr,b1 as zo,ah as dt,d as at,aj as an,ab as Ie,aa as He,am as et,ae as Xe,b2 as Et,a as R,b as le,f as j,e as ne,g as We,b3 as Dt,j as Le,u as qe,a3 as vt,t as ie,m as w,o as Mt,n as ue,ap as ht,a1 as Ze,q as lt,w as Bt,x as yo,b4 as xo,aq as Kt,c as xe,b5 as Mo,b6 as ir,a4 as gt,y as ae,B as pt,b7 as ar,I as st,aM as lr,aN as ln,l as it,k as sr,b8 as dr,a6 as sn,a7 as cr,b9 as Oo,ba as ur,bb as fr,aK as hr,ai as pr,ag as Re,bc as vr,a0 as gr,bd as It,P as To,be as br,$ as Co,bf as dn,bg as bo,bh as mr,bi as yr,ar as xr,p as kt,N as Cr,at as wr,bj as Sr,bk as Rr,ao as kr,i as wt,ak as Pr,al as Fr,a9 as zr,R as Ot,bl as co,E as Tt}from"./index-CjSeFmRv.js";import{b as Mr,a as wo,i as Or,_ as Bo,f as Qe,N as Tr,C as Br}from"./index-Cb_Ek-sW.js";import{x as Ir,y as $r,e as cn,z as So,d as _r,V as un,h as Ve,A as Ar,N as fn,t as Ht,a as jt,c as Ut,v as $t,B as Nr,D as _t,E as hn,F as pn,G as vn,H as Lr,I as Er,J as Dr,K as Kr,j as Ft,L as Hr,M as jr,o as Ur,n as gn,C as bn,O as Wr,P as Io,Q as $o,p as _o,g as St,q as Ao}from"./dayjs.min-Bn70kxL7.js";import{o as mn,c as uo}from"./fetch-Dh3kQLu5.js";function No(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function Lo(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function yn(e){return t=>{t?e.value=t.$el:e.value=null}}function Pt(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function Vr(e,t,o){const n=K(e.value);let r=null;return Je(e,a=>{r!==null&&window.clearTimeout(r),a===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function qr(e={},t){const o=Yn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,a=c=>{switch(c.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(s=>{if(s!==c.key)return;const h=n[s];if(typeof h=="function")h(c);else{const{stop:b=!1,prevent:m=!1}=h;b&&c.stopPropagation(),m&&c.preventDefault(),h.handler(c)}})},d=c=>{switch(c.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(s=>{if(s!==c.key)return;const h=r[s];if(typeof h=="function")h(c);else{const{stop:b=!1,prevent:m=!1}=h;b&&c.stopPropagation(),m&&c.preventDefault(),h.handler(c)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,a),ft("keyup",document,d)),t!==void 0&&Je(t,c=>{c?(ft("keydown",document,a),ft("keyup",document,d)):(nt("keydown",document,a),nt("keyup",document,d))})};return er()?(tr(l),Nt(()=>{(t===void 0||t.value)&&(nt("keydown",document,a),nt("keyup",document,d))})):l(),or(o)}const tt="v-hidden",Gr=$r("[v-hidden]",{display:"none!important"}),Eo=fe({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=K(null),n=K(null);function r(d){const{value:l}=o,{getCounter:c,getTail:s}=e;let h;if(c!==void 0?h=c():h=n.value,!l||!h)return;h.hasAttribute(tt)&&h.removeAttribute(tt);const{children:b}=l;if(d.showAllItemsBeforeCalculate)for(const P of b)P.hasAttribute(tt)&&P.removeAttribute(tt);const m=l.offsetWidth,f=[],u=t.tail?s==null?void 0:s():null;let g=u?u.offsetWidth:0,y=!1;const x=l.children.length-(t.tail?1:0);for(let P=0;P<x-1;++P){if(P<0)continue;const D=b[P];if(y){D.hasAttribute(tt)||D.setAttribute(tt,"");continue}else D.hasAttribute(tt)&&D.removeAttribute(tt);const B=D.offsetWidth;if(g+=B,f[P]=B,g>m){const{updateCounter:H}=e;for(let N=P;N>=0;--N){const E=x-1-N;H!==void 0?H(E):h.textContent=`${E}`;const T=h.offsetWidth;if(g-=f[N],g+T<=m||N===0){y=!0,P=N-1,u&&(P===-1?(u.style.maxWidth=`${m-T}px`,u.style.boxSizing="border-box"):u.style.maxWidth="");const{onUpdateCount:I}=e;I&&I(E);break}}}}const{onUpdateOverflow:M}=e;y?M!==void 0&&M(!0):(M!==void 0&&M(!1),h.setAttribute(tt,""))}const a=nr();return Gr.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ir,ssr:a}),Lt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return rt(()=>this.sync({showAllItemsBeforeCalculate:!1})),i("div",{class:"v-overflow",ref:"selfRef"},[rr(e,"default"),e.counter?e.counter():i("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function xn(e,t){t&&(Lt(()=>{const{value:o}=e;o&&zo.registerHandler(o,t)}),Nt(()=>{const{value:o}=e;o&&zo.unregisterHandler(o)}))}function Xr(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const Zr=fe({name:"ArrowDown",render(){return i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),Do=fe({name:"Backward",render(){return i("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),Jr=fe({name:"Checkmark",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},i("g",{fill:"none"},i("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Ko=fe({name:"FastBackward",render(){return i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Ho=fe({name:"FastForward",render(){return i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Qr=fe({name:"Filter",render(){return i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),jo=fe({name:"Forward",render(){return i("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Uo=fe({name:"More",render(){return i("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Yr=fe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),ei={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function ti(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:a,primaryColorPressed:d,textColorDisabled:l,primaryColor:c,opacityDisabled:s,hoverColor:h,fontSizeSmall:b,fontSizeMedium:m,fontSizeLarge:f,fontSizeHuge:u,heightSmall:g,heightMedium:y,heightLarge:x,heightHuge:M}=e;return Object.assign(Object.assign({},ei),{optionFontSizeSmall:b,optionFontSizeMedium:m,optionFontSizeLarge:f,optionFontSizeHuge:u,optionHeightSmall:g,optionHeightMedium:y,optionHeightLarge:x,optionHeightHuge:M,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:a,optionTextColorPressed:d,optionTextColorDisabled:l,optionTextColorActive:c,optionOpacityDisabled:s,optionCheckColor:c,optionColorPending:h,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:h,actionTextColor:a,loadingColor:c})}const Ro=dt({name:"InternalSelectMenu",common:at,peers:{Scrollbar:an,Empty:cn},self:ti});function oi(e,t){return i(Et,{name:"fade-in-scale-up-transition"},{default:()=>e?i(Xe,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>i(Jr)}):null})}const Wo=fe({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:a,renderOptionRef:d,labelFieldRef:l,valueFieldRef:c,showCheckmarkRef:s,nodePropsRef:h,handleOptionClick:b,handleOptionMouseEnter:m}=Ie(So),f=He(()=>{const{value:x}=o;return x?e.tmNode.key===x.key:!1});function u(x){const{tmNode:M}=e;M.disabled||b(x,M)}function g(x){const{tmNode:M}=e;M.disabled||m(x,M)}function y(x){const{tmNode:M}=e,{value:P}=f;M.disabled||P||m(x,M)}return{multiple:n,isGrouped:He(()=>{const{tmNode:x}=e,{parent:M}=x;return M&&M.rawNode.type==="group"}),showCheckmark:s,nodeProps:h,isPending:f,isSelected:He(()=>{const{value:x}=t,{value:M}=n;if(x===null)return!1;const P=e.tmNode.rawNode[c.value];if(M){const{value:D}=r;return D.has(P)}else return x===P}),labelField:l,renderLabel:a,renderOption:d,handleMouseMove:y,handleMouseEnter:g,handleClick:u}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:a,nodeProps:d,renderOption:l,renderLabel:c,handleClick:s,handleMouseEnter:h,handleMouseMove:b}=this,m=oi(o,e),f=c?[c(t,o),a&&m]:[et(t[this.labelField],t,o),a&&m],u=d==null?void 0:d(t),g=i("div",Object.assign({},u,{class:[`${e}-base-select-option`,t.class,u==null?void 0:u.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:a}],style:[(u==null?void 0:u.style)||"",t.style||""],onClick:Pt([s,u==null?void 0:u.onClick]),onMouseenter:Pt([h,u==null?void 0:u.onMouseenter]),onMousemove:Pt([b,u==null?void 0:u.onMousemove])}),i("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),Vo=fe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Ie(So);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,a=n==null?void 0:n(r),d=t?t(r,!1):et(r[this.labelField],r,!1),l=i("div",Object.assign({},a,{class:[`${e}-base-select-group-header`,a==null?void 0:a.class]}),d);return r.render?r.render({node:l,option:r}):o?o({node:l,option:r,selected:!1}):l}}),ni=R("base-select-menu",`
|
|
2
2
|
line-height: 1.5;
|
|
3
3
|
outline: none;
|
|
4
4
|
z-index: 0;
|
|
@@ -976,4 +976,4 @@ import{r as K,T as Je,S as Yn,aW as er,aX as tr,aY as Nt,aZ as nt,a_ as or,a$ as
|
|
|
976
976
|
transition: box-shadow .2s var(--n-bezier);
|
|
977
977
|
left: -36px;
|
|
978
978
|
`)])]}const Na=fe({name:"DataTable",alias:["AdvancedTable"],props:Li,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=qe(e),d=vt("DataTable",a,n),l=w(()=>{const{bottomBordered:p}=e;return o.value?!1:p!==void 0?p:!0}),c=Le("DataTable","-data-table",Oa,Ai,e,n),s=K(null),h=K(null),{getResizableWidth:b,clearResizableWidth:m,doUpdateResizableWidth:f}=Pa(),{rowsRef:u,colsRef:g,dataRelatedColsRef:y,hasEllipsisRef:x}=za(e,b),{treeMateRef:M,mergedCurrentPageRef:P,paginatedDataRef:D,rawPaginatedDataRef:B,selectionColumnRef:H,hoverKeyRef:N,mergedPaginationRef:E,mergedFilterStateRef:T,mergedSortStateRef:I,childTriggerColIndexRef:U,doUpdatePage:F,doUpdateFilters:O,onUnstableColumnResize:A,deriveNextSorter:L,filter:X,filters:W,clearFilter:Y,clearFilters:pe,clearSorter:te,page:k,sort:v}=Ra(e,{dataRelatedColsRef:y}),C=p=>{const{fileName:z="data.csv",keepOriginalData:G=!1}=p||{},de=G?e.data:B.value,he=Gi(e.columns,de),se=new Blob([he],{type:"text/csv;charset=utf-8"}),ce=URL.createObjectURL(se);Xr(ce,z.endsWith(".csv")?z:`${z}.csv`),URL.revokeObjectURL(ce)},{doCheckAll:_,doUncheckAll:Z,doCheck:ge,doUncheck:ee,headerCheckboxDisabledRef:ve,someRowsCheckedRef:S,allRowsCheckedRef:J,mergedCheckedRowKeySetRef:ye,mergedInderminateRowKeySetRef:ke}=xa(e,{selectionColumnRef:H,treeMateRef:M,paginatedDataRef:D}),{stickyExpandedRowsRef:oe,mergedExpandedRowKeysRef:be,renderExpandRef:Ae,expandableRef:ze,doUpdateExpandedRowKeys:Pe}=Ma(e,M),{handleTableBodyScroll:je,handleTableHeaderScroll:Ue,syncScrollState:$e,setHeaderScrollLeft:Be,leftActiveFixedColKeyRef:Ne,leftActiveFixedChildrenColKeysRef:Me,rightActiveFixedColKeyRef:$,rightActiveFixedChildrenColKeysRef:V,leftFixedColumnsRef:Ce,rightFixedColumnsRef:Oe,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:De}=ka(e,{bodyWidthRef:s,mainTableInstRef:h,mergedCurrentPageRef:P}),{localeRef:q}=wo("DataTable"),re=w(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||x.value?"fixed":e.tableLayout);Ze(Ye,{props:e,treeMateRef:M,renderExpandIconRef:ie(e,"renderExpandIcon"),loadingKeySetRef:K(new Set),slots:t,indentRef:ie(e,"indent"),childTriggerColIndexRef:U,bodyWidthRef:s,componentId:zr(),hoverKeyRef:N,mergedClsPrefixRef:n,mergedThemeRef:c,scrollXRef:w(()=>e.scrollX),rowsRef:u,colsRef:g,paginatedDataRef:D,leftActiveFixedColKeyRef:Ne,leftActiveFixedChildrenColKeysRef:Me,rightActiveFixedColKeyRef:$,rightActiveFixedChildrenColKeysRef:V,leftFixedColumnsRef:Ce,rightFixedColumnsRef:Oe,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:De,mergedCurrentPageRef:P,someRowsCheckedRef:S,allRowsCheckedRef:J,mergedSortStateRef:I,mergedFilterStateRef:T,loadingRef:ie(e,"loading"),rowClassNameRef:ie(e,"rowClassName"),mergedCheckedRowKeySetRef:ye,mergedExpandedRowKeysRef:be,mergedInderminateRowKeySetRef:ke,localeRef:q,expandableRef:ze,stickyExpandedRowsRef:oe,rowKeyRef:ie(e,"rowKey"),renderExpandRef:Ae,summaryRef:ie(e,"summary"),virtualScrollRef:ie(e,"virtualScroll"),rowPropsRef:ie(e,"rowProps"),stripedRef:ie(e,"striped"),checkOptionsRef:w(()=>{const{value:p}=H;return p==null?void 0:p.options}),rawPaginatedDataRef:B,filterMenuCssVarsRef:w(()=>{const{self:{actionDividerColor:p,actionPadding:z,actionButtonMargin:G}}=c.value;return{"--n-action-padding":z,"--n-action-button-margin":G,"--n-action-divider-color":p}}),onLoadRef:ie(e,"onLoad"),mergedTableLayoutRef:re,maxHeightRef:ie(e,"maxHeight"),minHeightRef:ie(e,"minHeight"),flexHeightRef:ie(e,"flexHeight"),headerCheckboxDisabledRef:ve,paginationBehaviorOnFilterRef:ie(e,"paginationBehaviorOnFilter"),summaryPlacementRef:ie(e,"summaryPlacement"),filterIconPopoverPropsRef:ie(e,"filterIconPopoverProps"),scrollbarPropsRef:ie(e,"scrollbarProps"),syncScrollState:$e,doUpdatePage:F,doUpdateFilters:O,getResizableWidth:b,onUnstableColumnResize:A,clearResizableWidth:m,doUpdateResizableWidth:f,deriveNextSorter:L,doCheck:ge,doUncheck:ee,doCheckAll:_,doUncheckAll:Z,doUpdateExpandedRowKeys:Pe,handleTableHeaderScroll:Ue,handleTableBodyScroll:je,setHeaderScrollLeft:Be,renderCell:ie(e,"renderCell")});const we={filter:X,filters:W,clearFilters:pe,clearSorter:te,page:k,sort:v,clearFilter:Y,downloadCsv:C,scrollTo:(p,z)=>{var G;(G=h.value)===null||G===void 0||G.scrollTo(p,z)}},Q=w(()=>{const{size:p}=e,{common:{cubicBezierEaseInOut:z},self:{borderColor:G,tdColorHover:de,tdColorSorting:he,tdColorSortingModal:se,tdColorSortingPopover:ce,thColorSorting:Se,thColorSortingModal:Te,thColorSortingPopover:ot,thColor:_e,thColorHover:Ee,tdColor:bt,tdTextColor:mt,thTextColor:yt,thFontWeight:xt,thButtonColorHover:Ct,thIconColor:Vt,thIconColorActive:qt,filterSize:Gt,borderRadius:Xt,lineHeight:Zt,tdColorModal:Jt,thColorModal:Qt,borderColorModal:Yt,thColorHoverModal:eo,tdColorHoverModal:to,borderColorPopover:oo,thColorPopover:no,tdColorPopover:ro,tdColorHoverPopover:io,thColorHoverPopover:ao,paginationMargin:lo,emptyPadding:so,boxShadowAfter:ct,boxShadowBefore:ut,sorterSize:Kn,resizableContainerSize:Hn,resizableSize:jn,loadingColor:Un,loadingSize:Wn,opacityLoading:Vn,tdColorStriped:qn,tdColorStripedModal:Gn,tdColorStripedPopover:Xn,[ue("fontSize",p)]:Zn,[ue("thPadding",p)]:Jn,[ue("tdPadding",p)]:Qn}}=c.value;return{"--n-font-size":Zn,"--n-th-padding":Jn,"--n-td-padding":Qn,"--n-bezier":z,"--n-border-radius":Xt,"--n-line-height":Zt,"--n-border-color":G,"--n-border-color-modal":Yt,"--n-border-color-popover":oo,"--n-th-color":_e,"--n-th-color-hover":Ee,"--n-th-color-modal":Qt,"--n-th-color-hover-modal":eo,"--n-th-color-popover":no,"--n-th-color-hover-popover":ao,"--n-td-color":bt,"--n-td-color-hover":de,"--n-td-color-modal":Jt,"--n-td-color-hover-modal":to,"--n-td-color-popover":ro,"--n-td-color-hover-popover":io,"--n-th-text-color":yt,"--n-td-text-color":mt,"--n-th-font-weight":xt,"--n-th-button-color-hover":Ct,"--n-th-icon-color":Vt,"--n-th-icon-color-active":qt,"--n-filter-size":Gt,"--n-pagination-margin":lo,"--n-empty-padding":so,"--n-box-shadow-before":ut,"--n-box-shadow-after":ct,"--n-sorter-size":Kn,"--n-resizable-container-size":Hn,"--n-resizable-size":jn,"--n-loading-size":Wn,"--n-loading-color":Un,"--n-opacity-loading":Vn,"--n-td-color-striped":qn,"--n-td-color-striped-modal":Gn,"--n-td-color-striped-popover":Xn,"n-td-color-sorting":he,"n-td-color-sorting-modal":se,"n-td-color-sorting-popover":ce,"n-th-color-sorting":Se,"n-th-color-sorting-modal":Te,"n-th-color-sorting-popover":ot}}),me=r?lt("data-table",w(()=>e.size[0]),Q,e):void 0,Fe=w(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const p=E.value,{pageCount:z}=p;return z!==void 0?z>1:p.itemCount&&p.pageSize&&p.itemCount>p.pageSize});return Object.assign({mainTableInstRef:h,mergedClsPrefix:n,rtlEnabled:d,mergedTheme:c,paginatedData:D,mergedBordered:o,mergedBottomBordered:l,mergedPagination:E,mergedShowPagination:Fe,cssVars:r?void 0:Q,themeClass:me==null?void 0:me.themeClass,onRender:me==null?void 0:me.onRender},we)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),i("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},i("div",{class:`${e}-data-table-wrapper`},i(ya,{ref:"mainTableInstRef"})),this.mergedShowPagination?i("div",{class:`${e}-data-table__pagination`},i(Ti,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,i(Et,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?i("div",{class:`${e}-data-table-loading-wrapper`},Kt(n.loading,()=>[i(yo,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),Ba={async mounted(e,t){await rt(),t.value(e.getClientRects()[0])},async updated(e,t){await rt(),t.value(e.getClientRects()[0])}},Rt=e=>{const t=Ot({...e,render(o,n){var r;return sn(Tt("span",{class:"whitespace-nowrap"},[(r=e.render)==null?void 0:r.call(e,o,n)]),[[Ba,a=>{t.width=Math.max(Math.ceil(a.width+16),t.width||0,Number(t.minWidth||0))}]])}});return t},rn=e=>`${Ao(e).manufacturer} Android${Ao(e).release||"13"}`,La=()=>{const e=Ot({key:"id",title:"创建时间",fixed:"left",width:"130px",sortOrder:!1,sorter(s,h){return s.id-h.id},render(s){return _o(s.id).format("MM-DD HH:mm:ss")}}),t=Ot({key:"mtime",title:"导入时间",width:"130px",sortOrder:!1,sorter(s,h){return(co[s.id]||s.id)-(co[h.id]||h.id)},render(s){return _o(co[s.id]||s.id).format("MM-DD HH:mm:ss")}}),o=Rt({key:"versionRelease",title:"设备",filterMultiple:!0,minWidth:100,filter(s,h){return rn(h).includes(s.toString())},render(s){return rn(s)}}),n=Rt({key:"appName",minWidth:100,title:"应用名称",filterMultiple:!0,filter(s,h){return s.toString()==St(h).name},cellProps(s){return{onClick(){uo(St(s).name)}}},render(s){return St(s).name}}),r=Rt({key:"appId",title:"应用ID",minWidth:100,cellProps(s){return{onClick(){uo(s.appId)}}},render(s){return s.appId}}),a=Rt({key:"appVersionCode",title:"版本代码",minWidth:150,render(s){return St(s).versionCode}}),d=Rt({key:"appVersionName",title:"版本号",minWidth:150,render(s){return Tt(Ft,null,{default:()=>[St(s).versionName]})}}),l=Ot({key:"activityId",title:"界面ID",filterMultiple:!0,filter(s,h){return s.toString()==h.activityId},cellProps(s){return{onClick(){uo(s.activityId)}}},render(s){return Tt("div",{class:"whitespace-nowrap text-left direction-rtl"},[Tt(Ft,null,{default:()=>[s.activityId]})])}});return{ctimeCol:e,mtimeCol:t,deviceCol:o,appNameCol:n,appIdCol:r,appVersionCodeCol:a,appVersionNameCol:d,activityIdCol:l,resetColWidth:()=>{o.width=void 0,n.width=void 0,r.width=void 0,a.width=void 0,d.width=void 0}}};export{Na as _,ki as a,rn as r,La as u};
|
|
979
|
-
//# sourceMappingURL=table-
|
|
979
|
+
//# sourceMappingURL=table-CEX2OnIP.js.map
|