@gkd-kit/inspect 0.0.1705463077488 → 0.0.1705500646304
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/404.html +5 -5
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-8eE3lh5y.js → ActionCard.vue_vue_type_script_setup_true_lang-vErqS3YX.js} +2 -2
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-vErqS3YX.js.map +1 -0
- package/dist/assets/{DevicePage-Y-RX1lII.js → DevicePage-0-ehVKND.js} +2 -2
- package/dist/assets/DevicePage-0-ehVKND.js.map +1 -0
- package/dist/assets/{HomePage-pWkK7aXP.js → HomePage-9k5RqK_C.js} +2 -2
- package/dist/assets/{HomePage-pWkK7aXP.js.map → HomePage-9k5RqK_C.js.map} +1 -1
- package/dist/assets/{ImportPage-Z4OpKtgI.js → ImportPage-yeIrFjan.js} +2 -2
- package/dist/assets/{ImportPage-Z4OpKtgI.js.map → ImportPage-yeIrFjan.js.map} +1 -1
- package/dist/assets/{SnapshotPage-eH03OtLE.js → SnapshotPage-3DEzMV9i.js} +3 -3
- package/dist/assets/SnapshotPage-3DEzMV9i.js.map +1 -0
- package/dist/assets/{_404Page-07jd3pM0.js → _404Page-CqDYlv9L.js} +2 -2
- package/dist/assets/{_404Page-07jd3pM0.js.map → _404Page-CqDYlv9L.js.map} +1 -1
- package/dist/assets/{import-HS8CalI0.js → import-Ad37kyZk.js} +2 -2
- package/dist/assets/{import-HS8CalI0.js.map → import-Ad37kyZk.js.map} +1 -1
- package/dist/assets/{index-mtxLa2jB.js → index-_jELhB6i.js} +2 -2
- package/dist/assets/{index-mtxLa2jB.js.map → index-_jELhB6i.js.map} +1 -1
- package/dist/assets/{index-J9YKvYUD.js → index-iVQnCjb8.js} +4 -4
- package/dist/assets/{index-J9YKvYUD.js.map → index-iVQnCjb8.js.map} +1 -1
- package/dist/assets/index-wpljfJUa.css +1 -0
- package/dist/assets/{jszip.min-O9Vnvhxn.js → jszip.min-nyn_W9b3.js} +2 -2
- package/dist/assets/{jszip.min-O9Vnvhxn.js.map → jszip.min-nyn_W9b3.js.map} +1 -1
- package/dist/assets/{node-YLUhfP8V.js → node-PYydLhA8.js} +2 -2
- package/dist/assets/{node-YLUhfP8V.js.map → node-PYydLhA8.js.map} +1 -1
- package/dist/assets/{storage-cQ75hDy6.js → storage-VWQFL1SQ.js} +3 -3
- package/dist/assets/storage-VWQFL1SQ.js.map +1 -0
- package/dist/assets/{table---u3Z-A5.js → table-kpjT8TSR.js} +2 -2
- package/dist/assets/{table---u3Z-A5.js.map → table-kpjT8TSR.js.map} +1 -1
- package/dist/index.html +5 -5
- package/package.json +25 -4
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-8eE3lh5y.js.map +0 -1
- package/dist/assets/DevicePage-Y-RX1lII.js.map +0 -1
- package/dist/assets/SnapshotPage-eH03OtLE.js.map +0 -1
- package/dist/assets/index-y3lQ_apj.css +0 -1
- package/dist/assets/storage-cQ75hDy6.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{H as K,e as Ze,r as Kn,av as Hn,aw as jn,ax as $t,ay as nt,az as Un,aA as ft,d as fe,aB as Wn,aa as It,ai as rt,p as i,al as Vn,aC as Ro,a0 as dt,G as at,a1 as Yo,V as Be,U as He,a8 as et,Y as Ge,aD as At,q as R,z as ae,y as H,x as ne,v as We,aE as _t,I as Le,A as Ve,E as vt,O as le,c as w,C as Xe,J as lt,aF as zt,a7 as po,aG as vo,af as Nt,ag as Ft,a5 as ue,ae as ht,a2 as xe,aH as qn,K as gt,L as ie,aI as ko,w as pt,aJ as Gn,F as st,aK as Xn,aL as en,aM as Zn,aN as Jn,P as tn,Q as Qn,aO as Po,aP as Yn,aQ as er,aR as tr,$ as Ae,aS as or,B as nr,aT as Mt,k as Fo,aU as on,aV as uo,aW as rr,aX as ir,ah as ar,ac as Rt,a6 as lr,aj as sr,aY as dr,aZ as cr,ab as ur,ad as wt,a3 as fr,a4 as hr,T as pr,a as fo,b as vr}from"./index-J9YKvYUD.js";import{z as gr,A as br,g as nn,B as go,V as rn,l as mr,h as tt,D as yr,m as an,E as Lt,F as xr,b as Et,j as Dt,G as Ot,e as it,H as bo,I as Cr,J as Tt,K as ln,L as sn,M as dn,O as wr,N as zo,f as Sr,P as Rr,Q as kr,R as Pr,S as Fr,o as mo,T as zr,U as Mr,W as Je,X as Or,i as yo,r as Tr,q as cn,d as Br,C as un,Y as $r,Z as Ir,_ as Mo,$ as Oo,t as Ar,v as To}from"./node-YLUhfP8V.js";import{y as fn}from"./storage-cQ75hDy6.js";function Bo(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function _r(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function hn(e){return t=>{t?e.value=t.$el:e.value=null}}function kt(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 Nr(e,t,o){if(!t)return e;const n=K(e.value);let r=null;return Ze(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 Lr(e={},t){const o=Kn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,a=s=>{switch(s.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(u=>{if(u!==s.key)return;const p=n[u];if(typeof p=="function")p(s);else{const{stop:b=!1,prevent:y=!1}=p;b&&s.stopPropagation(),y&&s.preventDefault(),p.handler(s)}})},d=s=>{switch(s.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(u=>{if(u!==s.key)return;const p=r[u];if(typeof p=="function")p(s);else{const{stop:b=!1,prevent:y=!1}=p;b&&s.stopPropagation(),y&&s.preventDefault(),p.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,a),ft("keyup",document,d)),t!==void 0&&Ze(t,s=>{s?(ft("keydown",document,a),ft("keyup",document,d)):(nt("keydown",document,a),nt("keyup",document,d))})};return Hn()?(jn(l),$t(()=>{(t===void 0||t.value)&&(nt("keydown",document,a),nt("keyup",document,d))})):l(),Un(o)}const ot="v-hidden",Er=br("[v-hidden]",{display:"none!important"}),$o=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:s,getTail:u}=e;let p;if(s!==void 0?p=s():p=n.value,!l||!p)return;p.hasAttribute(ot)&&p.removeAttribute(ot);const{children:b}=l;if(d.showAllItemsBeforeCalculate)for(const M of b)M.hasAttribute(ot)&&M.removeAttribute(ot);const y=l.offsetWidth,f=[],c=t.tail?u==null?void 0:u():null;let v=c?c.offsetWidth:0,m=!1;const x=l.children.length-(t.tail?1:0);for(let M=0;M<x-1;++M){if(M<0)continue;const G=b[M];if(m){G.hasAttribute(ot)||G.setAttribute(ot,"");continue}else G.hasAttribute(ot)&&G.removeAttribute(ot);const N=G.offsetWidth;if(v+=N,f[M]=N,v>y){const{updateCounter:L}=e;for(let $=M;$>=0;--$){const D=x-1-$;L!==void 0?L(D):p.textContent=`${D}`;const O=p.offsetWidth;if(v-=f[$],v+O<=y||$===0){m=!0,M=$-1,c&&(M===-1?(c.style.maxWidth=`${y-O}px`,c.style.boxSizing="border-box"):c.style.maxWidth="");const{onUpdateCount:A}=e;A&&A(D);break}}}}const{onUpdateOverflow:k}=e;m?k!==void 0&&k(!0):(k!==void 0&&k(!1),p.setAttribute(ot,""))}const a=Wn();return Er.mount({id:"vueuc/overflow",head:!0,anchorMetaName:gr,ssr:a}),It(()=>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"},[Vn(e,"default"),e.counter?e.counter():i("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function pn(e,t){t&&(It(()=>{const{value:o}=e;o&&Ro.registerHandler(o,t)}),$t(()=>{const{value:o}=e;o&&Ro.unregisterHandler(o)}))}const Dr=(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)},Kr=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"}))))}}),Io=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"}))}}),Hr=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"})))}}),Ao=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"}))))}}),_o=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"}))))}}),jr=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"}))))}}),No=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"}))}}),Lo=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"}))))}}),Ur=fe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Wr={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"},Vr=e=>{const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:a,primaryColorPressed:d,textColorDisabled:l,primaryColor:s,opacityDisabled:u,hoverColor:p,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:f,fontSizeHuge:c,heightSmall:v,heightMedium:m,heightLarge:x,heightHuge:k}=e;return Object.assign(Object.assign({},Wr),{optionFontSizeSmall:b,optionFontSizeMedium:y,optionFontSizeLarge:f,optionFontSizeHuge:c,optionHeightSmall:v,optionHeightMedium:m,optionHeightLarge:x,optionHeightHuge:k,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:a,optionTextColorPressed:d,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:u,optionCheckColor:s,optionColorPending:p,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:p,actionTextColor:a,loadingColor:s})},qr=dt({name:"InternalSelectMenu",common:at,peers:{Scrollbar:Yo,Empty:nn},self:Vr}),xo=qr;function Gr(e,t){return i(At,{name:"fade-in-scale-up-transition"},{default:()=>e?i(Ge,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>i(Hr)}):null})}const Eo=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:s,showCheckmarkRef:u,nodePropsRef:p,handleOptionClick:b,handleOptionMouseEnter:y}=Be(go),f=He(()=>{const{value:x}=o;return x?e.tmNode.key===x.key:!1});function c(x){const{tmNode:k}=e;k.disabled||b(x,k)}function v(x){const{tmNode:k}=e;k.disabled||y(x,k)}function m(x){const{tmNode:k}=e,{value:M}=f;k.disabled||M||y(x,k)}return{multiple:n,isGrouped:He(()=>{const{tmNode:x}=e,{parent:k}=x;return k&&k.rawNode.type==="group"}),showCheckmark:u,nodeProps:p,isPending:f,isSelected:He(()=>{const{value:x}=t,{value:k}=n;if(x===null)return!1;const M=e.tmNode.rawNode[s.value];if(k){const{value:G}=r;return G.has(M)}else return x===M}),labelField:l,renderLabel:a,renderOption:d,handleMouseMove:m,handleMouseEnter:v,handleClick:c}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:a,nodeProps:d,renderOption:l,renderLabel:s,handleClick:u,handleMouseEnter:p,handleMouseMove:b}=this,y=Gr(o,e),f=s?[s(t,o),a&&y]:[et(t[this.labelField],t,o),a&&y],c=d==null?void 0:d(t),v=i("div",Object.assign({},c,{class:[`${e}-base-select-option`,t.class,c==null?void 0:c.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:[(c==null?void 0:c.style)||"",t.style||""],onClick:kt([u,c==null?void 0:c.onClick]),onMouseenter:kt([p,c==null?void 0:c.onMouseenter]),onMousemove:kt([b,c==null?void 0:c.onMousemove])}),i("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:v,option:t,selected:o}):l?l({node:v,option:t,selected:o}):v}}),Do=fe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Be(go);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}}),Xr=R("base-select-menu",`
|
|
1
|
+
import{H as K,e as Ze,r as Kn,av as Hn,aw as jn,ax as $t,ay as nt,az as Un,aA as ft,d as fe,aB as Wn,aa as It,ai as rt,p as i,al as Vn,aC as Ro,a0 as dt,G as at,a1 as Yo,V as Be,U as He,a8 as et,Y as Ge,aD as At,q as R,z as ae,y as H,x as ne,v as We,aE as _t,I as Le,A as Ve,E as vt,O as le,c as w,C as Xe,J as lt,aF as zt,a7 as po,aG as vo,af as Nt,ag as Ft,a5 as ue,ae as ht,a2 as xe,aH as qn,K as gt,L as ie,aI as ko,w as pt,aJ as Gn,F as st,aK as Xn,aL as en,aM as Zn,aN as Jn,P as tn,Q as Qn,aO as Po,aP as Yn,aQ as er,aR as tr,$ as Ae,aS as or,B as nr,aT as Mt,k as Fo,aU as on,aV as uo,aW as rr,aX as ir,ah as ar,ac as Rt,a6 as lr,aj as sr,aY as dr,aZ as cr,ab as ur,ad as wt,a3 as fr,a4 as hr,T as pr,a as fo,b as vr}from"./index-iVQnCjb8.js";import{z as gr,A as br,g as nn,B as go,V as rn,l as mr,h as tt,D as yr,m as an,E as Lt,F as xr,b as Et,j as Dt,G as Ot,e as it,H as bo,I as Cr,J as Tt,K as ln,L as sn,M as dn,O as wr,N as zo,f as Sr,P as Rr,Q as kr,R as Pr,S as Fr,o as mo,T as zr,U as Mr,W as Je,X as Or,i as yo,r as Tr,q as cn,d as Br,C as un,Y as $r,Z as Ir,_ as Mo,$ as Oo,t as Ar,v as To}from"./node-PYydLhA8.js";import{y as fn}from"./storage-VWQFL1SQ.js";function Bo(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function _r(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function hn(e){return t=>{t?e.value=t.$el:e.value=null}}function kt(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 Nr(e,t,o){if(!t)return e;const n=K(e.value);let r=null;return Ze(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 Lr(e={},t){const o=Kn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,a=s=>{switch(s.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(u=>{if(u!==s.key)return;const p=n[u];if(typeof p=="function")p(s);else{const{stop:b=!1,prevent:y=!1}=p;b&&s.stopPropagation(),y&&s.preventDefault(),p.handler(s)}})},d=s=>{switch(s.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(u=>{if(u!==s.key)return;const p=r[u];if(typeof p=="function")p(s);else{const{stop:b=!1,prevent:y=!1}=p;b&&s.stopPropagation(),y&&s.preventDefault(),p.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,a),ft("keyup",document,d)),t!==void 0&&Ze(t,s=>{s?(ft("keydown",document,a),ft("keyup",document,d)):(nt("keydown",document,a),nt("keyup",document,d))})};return Hn()?(jn(l),$t(()=>{(t===void 0||t.value)&&(nt("keydown",document,a),nt("keyup",document,d))})):l(),Un(o)}const ot="v-hidden",Er=br("[v-hidden]",{display:"none!important"}),$o=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:s,getTail:u}=e;let p;if(s!==void 0?p=s():p=n.value,!l||!p)return;p.hasAttribute(ot)&&p.removeAttribute(ot);const{children:b}=l;if(d.showAllItemsBeforeCalculate)for(const M of b)M.hasAttribute(ot)&&M.removeAttribute(ot);const y=l.offsetWidth,f=[],c=t.tail?u==null?void 0:u():null;let v=c?c.offsetWidth:0,m=!1;const x=l.children.length-(t.tail?1:0);for(let M=0;M<x-1;++M){if(M<0)continue;const G=b[M];if(m){G.hasAttribute(ot)||G.setAttribute(ot,"");continue}else G.hasAttribute(ot)&&G.removeAttribute(ot);const N=G.offsetWidth;if(v+=N,f[M]=N,v>y){const{updateCounter:L}=e;for(let $=M;$>=0;--$){const D=x-1-$;L!==void 0?L(D):p.textContent=`${D}`;const O=p.offsetWidth;if(v-=f[$],v+O<=y||$===0){m=!0,M=$-1,c&&(M===-1?(c.style.maxWidth=`${y-O}px`,c.style.boxSizing="border-box"):c.style.maxWidth="");const{onUpdateCount:A}=e;A&&A(D);break}}}}const{onUpdateOverflow:k}=e;m?k!==void 0&&k(!0):(k!==void 0&&k(!1),p.setAttribute(ot,""))}const a=Wn();return Er.mount({id:"vueuc/overflow",head:!0,anchorMetaName:gr,ssr:a}),It(()=>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"},[Vn(e,"default"),e.counter?e.counter():i("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function pn(e,t){t&&(It(()=>{const{value:o}=e;o&&Ro.registerHandler(o,t)}),$t(()=>{const{value:o}=e;o&&Ro.unregisterHandler(o)}))}const Dr=(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)},Kr=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"}))))}}),Io=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"}))}}),Hr=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"})))}}),Ao=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"}))))}}),_o=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"}))))}}),jr=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"}))))}}),No=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"}))}}),Lo=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"}))))}}),Ur=fe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Wr={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"},Vr=e=>{const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:a,primaryColorPressed:d,textColorDisabled:l,primaryColor:s,opacityDisabled:u,hoverColor:p,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:f,fontSizeHuge:c,heightSmall:v,heightMedium:m,heightLarge:x,heightHuge:k}=e;return Object.assign(Object.assign({},Wr),{optionFontSizeSmall:b,optionFontSizeMedium:y,optionFontSizeLarge:f,optionFontSizeHuge:c,optionHeightSmall:v,optionHeightMedium:m,optionHeightLarge:x,optionHeightHuge:k,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:a,optionTextColorPressed:d,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:u,optionCheckColor:s,optionColorPending:p,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:p,actionTextColor:a,loadingColor:s})},qr=dt({name:"InternalSelectMenu",common:at,peers:{Scrollbar:Yo,Empty:nn},self:Vr}),xo=qr;function Gr(e,t){return i(At,{name:"fade-in-scale-up-transition"},{default:()=>e?i(Ge,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>i(Hr)}):null})}const Eo=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:s,showCheckmarkRef:u,nodePropsRef:p,handleOptionClick:b,handleOptionMouseEnter:y}=Be(go),f=He(()=>{const{value:x}=o;return x?e.tmNode.key===x.key:!1});function c(x){const{tmNode:k}=e;k.disabled||b(x,k)}function v(x){const{tmNode:k}=e;k.disabled||y(x,k)}function m(x){const{tmNode:k}=e,{value:M}=f;k.disabled||M||y(x,k)}return{multiple:n,isGrouped:He(()=>{const{tmNode:x}=e,{parent:k}=x;return k&&k.rawNode.type==="group"}),showCheckmark:u,nodeProps:p,isPending:f,isSelected:He(()=>{const{value:x}=t,{value:k}=n;if(x===null)return!1;const M=e.tmNode.rawNode[s.value];if(k){const{value:G}=r;return G.has(M)}else return x===M}),labelField:l,renderLabel:a,renderOption:d,handleMouseMove:m,handleMouseEnter:v,handleClick:c}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:a,nodeProps:d,renderOption:l,renderLabel:s,handleClick:u,handleMouseEnter:p,handleMouseMove:b}=this,y=Gr(o,e),f=s?[s(t,o),a&&y]:[et(t[this.labelField],t,o),a&&y],c=d==null?void 0:d(t),v=i("div",Object.assign({},c,{class:[`${e}-base-select-option`,t.class,c==null?void 0:c.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:[(c==null?void 0:c.style)||"",t.style||""],onClick:kt([u,c==null?void 0:c.onClick]),onMouseenter:kt([p,c==null?void 0:c.onMouseenter]),onMousemove:kt([b,c==null?void 0:c.onMousemove])}),i("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:v,option:t,selected:o}):l?l({node:v,option:t,selected:o}):v}}),Do=fe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Be(go);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}}),Xr=R("base-select-menu",`
|
|
2
2
|
line-height: 1.5;
|
|
3
3
|
outline: none;
|
|
4
4
|
z-index: 0;
|
|
@@ -967,4 +967,4 @@ import{H as K,e as Ze,r as Kn,av as Hn,aw as jn,ax as $t,ay as nt,az as Un,aA as
|
|
|
967
967
|
transition: box-shadow .2s var(--n-bezier);
|
|
968
968
|
left: -36px;
|
|
969
969
|
`)])]}const Aa=fe({name:"DataTable",alias:["AdvancedTable"],props:Li,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=Ve(e),d=vt("DataTable",a,n),l=w(()=>{const{bottomBordered:h}=e;return o.value?!1:h!==void 0?h:!0}),s=Le("DataTable","-data-table",Ma,Ai,e,n),u=K(null),p=K(null),{getResizableWidth:b,clearResizableWidth:y,doUpdateResizableWidth:f}=ka(),{rowsRef:c,colsRef:v,dataRelatedColsRef:m,hasEllipsisRef:x}=Fa(e,b),k=h=>{const{fileName:z="data.csv",keepOriginalData:V=!1}=h||{},de=V?e.data:L.value,he=Gi(e.columns,de),se=new Blob([he],{type:"text/csv;charset=utf-8"}),ce=URL.createObjectURL(se);Dr(ce,z.endsWith(".csv")?z:`${z}.csv`),URL.revokeObjectURL(ce)},{treeMateRef:M,mergedCurrentPageRef:G,paginatedDataRef:N,rawPaginatedDataRef:L,selectionColumnRef:$,hoverKeyRef:D,mergedPaginationRef:O,mergedFilterStateRef:A,mergedSortStateRef:X,childTriggerColIndexRef:F,doUpdatePage:T,doUpdateFilters:_,onUnstableColumnResize:E,deriveNextSorter:q,filter:j,filters:Y,clearFilter:pe,clearFilters:te,clearSorter:P,page:g,sort:C}=Sa(e,{dataRelatedColsRef:m}),{doCheckAll:I,doUncheckAll:Z,doCheck:ge,doUncheck:ee,headerCheckboxDisabledRef:ve,someRowsCheckedRef:S,allRowsCheckedRef:J,mergedCheckedRowKeySetRef:ye,mergedInderminateRowKeySetRef:Re}=ya(e,{selectionColumnRef:$,treeMateRef:M,paginatedDataRef:N}),{stickyExpandedRowsRef:oe,mergedExpandedRowKeysRef:be,renderExpandRef:_e,expandableRef:Fe,doUpdateExpandedRowKeys:ke}=za(e,M),{handleTableBodyScroll:je,handleTableHeaderScroll:Ue,syncScrollState:$e,setHeaderScrollLeft:Te,leftActiveFixedColKeyRef:Ne,leftActiveFixedChildrenColKeysRef:ze,rightActiveFixedColKeyRef:B,rightActiveFixedChildrenColKeysRef:U,leftFixedColumnsRef:Ce,rightFixedColumnsRef:Me,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:De}=Ra(e,{bodyWidthRef:u,mainTableInstRef:p,mergedCurrentPageRef:G}),{localeRef:W}=bo("DataTable"),re=w(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||x.value?"fixed":e.tableLayout);Xe(Qe,{props:e,treeMateRef:M,renderExpandIconRef:le(e,"renderExpandIcon"),loadingKeySetRef:K(new Set),slots:t,indentRef:le(e,"indent"),childTriggerColIndexRef:F,bodyWidthRef:u,componentId:pr(),hoverKeyRef:D,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:w(()=>e.scrollX),rowsRef:c,colsRef:v,paginatedDataRef:N,leftActiveFixedColKeyRef:Ne,leftActiveFixedChildrenColKeysRef:ze,rightActiveFixedColKeyRef:B,rightActiveFixedChildrenColKeysRef:U,leftFixedColumnsRef:Ce,rightFixedColumnsRef:Me,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:De,mergedCurrentPageRef:G,someRowsCheckedRef:S,allRowsCheckedRef:J,mergedSortStateRef:X,mergedFilterStateRef:A,loadingRef:le(e,"loading"),rowClassNameRef:le(e,"rowClassName"),mergedCheckedRowKeySetRef:ye,mergedExpandedRowKeysRef:be,mergedInderminateRowKeySetRef:Re,localeRef:W,expandableRef:Fe,stickyExpandedRowsRef:oe,rowKeyRef:le(e,"rowKey"),renderExpandRef:_e,summaryRef:le(e,"summary"),virtualScrollRef:le(e,"virtualScroll"),rowPropsRef:le(e,"rowProps"),stripedRef:le(e,"striped"),checkOptionsRef:w(()=>{const{value:h}=$;return h==null?void 0:h.options}),rawPaginatedDataRef:L,filterMenuCssVarsRef:w(()=>{const{self:{actionDividerColor:h,actionPadding:z,actionButtonMargin:V}}=s.value;return{"--n-action-padding":z,"--n-action-button-margin":V,"--n-action-divider-color":h}}),onLoadRef:le(e,"onLoad"),mergedTableLayoutRef:re,maxHeightRef:le(e,"maxHeight"),minHeightRef:le(e,"minHeight"),flexHeightRef:le(e,"flexHeight"),headerCheckboxDisabledRef:ve,paginationBehaviorOnFilterRef:le(e,"paginationBehaviorOnFilter"),summaryPlacementRef:le(e,"summaryPlacement"),scrollbarPropsRef:le(e,"scrollbarProps"),syncScrollState:$e,doUpdatePage:T,doUpdateFilters:_,getResizableWidth:b,onUnstableColumnResize:E,clearResizableWidth:y,doUpdateResizableWidth:f,deriveNextSorter:q,doCheck:ge,doUncheck:ee,doCheckAll:I,doUncheckAll:Z,doUpdateExpandedRowKeys:ke,handleTableHeaderScroll:Ue,handleTableBodyScroll:je,setHeaderScrollLeft:Te,renderCell:le(e,"renderCell")});const we={filter:j,filters:Y,clearFilters:te,clearSorter:P,page:g,sort:C,clearFilter:pe,downloadCsv:k,scrollTo:(h,z)=>{var V;(V=p.value)===null||V===void 0||V.scrollTo(h,z)}},Q=w(()=>{const{size:h}=e,{common:{cubicBezierEaseInOut:z},self:{borderColor:V,tdColorHover:de,thColor:he,thColorHover:se,tdColor:ce,tdTextColor:Se,thTextColor:Oe,thFontWeight:Ye,thButtonColorHover:Ie,thIconColor:Ee,thIconColorActive:bt,filterSize:mt,borderRadius:yt,lineHeight:xt,tdColorModal:Ct,thColorModal:Ht,borderColorModal:jt,thColorHoverModal:Ut,tdColorHoverModal:Wt,borderColorPopover:Vt,thColorPopover:qt,tdColorPopover:Gt,tdColorHoverPopover:Xt,thColorHoverPopover:Zt,paginationMargin:Jt,emptyPadding:Qt,boxShadowAfter:Yt,boxShadowBefore:eo,sorterSize:to,resizableContainerSize:oo,resizableSize:no,loadingColor:ro,loadingSize:ct,opacityLoading:ut,tdColorStriped:An,tdColorStripedModal:_n,tdColorStripedPopover:Nn,[ue("fontSize",h)]:Ln,[ue("thPadding",h)]:En,[ue("tdPadding",h)]:Dn}}=s.value;return{"--n-font-size":Ln,"--n-th-padding":En,"--n-td-padding":Dn,"--n-bezier":z,"--n-border-radius":yt,"--n-line-height":xt,"--n-border-color":V,"--n-border-color-modal":jt,"--n-border-color-popover":Vt,"--n-th-color":he,"--n-th-color-hover":se,"--n-th-color-modal":Ht,"--n-th-color-hover-modal":Ut,"--n-th-color-popover":qt,"--n-th-color-hover-popover":Zt,"--n-td-color":ce,"--n-td-color-hover":de,"--n-td-color-modal":Ct,"--n-td-color-hover-modal":Wt,"--n-td-color-popover":Gt,"--n-td-color-hover-popover":Xt,"--n-th-text-color":Oe,"--n-td-text-color":Se,"--n-th-font-weight":Ye,"--n-th-button-color-hover":Ie,"--n-th-icon-color":Ee,"--n-th-icon-color-active":bt,"--n-filter-size":mt,"--n-pagination-margin":Jt,"--n-empty-padding":Qt,"--n-box-shadow-before":eo,"--n-box-shadow-after":Yt,"--n-sorter-size":to,"--n-resizable-container-size":oo,"--n-resizable-size":no,"--n-loading-size":ct,"--n-loading-color":ro,"--n-opacity-loading":ut,"--n-td-color-striped":An,"--n-td-color-striped-modal":_n,"--n-td-color-striped-popover":Nn}}),me=r?lt("data-table",w(()=>e.size[0]),Q,e):void 0,Pe=w(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const h=O.value,{pageCount:z}=h;return z!==void 0?z>1:h.itemCount&&h.pageSize&&h.itemCount>h.pageSize});return Object.assign({mainTableInstRef:p,mergedClsPrefix:n,rtlEnabled:d,mergedTheme:s,paginatedData:N,mergedBordered:o,mergedBottomBordered:l,mergedPagination:O,mergedShowPagination:Pe,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(ma,{ref:"mainTableInstRef"})),this.mergedShowPagination?i("div",{class:`${e}-data-table__pagination`},i(zi,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,i(At,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?i("div",{class:`${e}-data-table-loading-wrapper`},Nt(n.loading,()=>[i(po,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),Ta={async mounted(e,t){await rt(),t.value(e.getClientRects()[0])},async updated(e,t){await rt(),t.value(e.getClientRects()[0])}},St=e=>{const t=fo({...e,render(o,n){var r;return tn(vr("span",{class:"whitespace-nowrap"},[(r=e.render)==null?void 0:r.call(e,o,n)]),[[Ta,a=>{t.width=Math.max(Math.ceil(a.width+16),t.width||0,Number(t.minWidth||0))}]])}});return t},Qo=e=>`${To(e).manufacturer} Android${To(e).release||"13"}`,_a=()=>{const e=fo({key:"id",title:"创建时间",fixed:"left",width:"130px",sortOrder:!1,sorter(s,u){return s.id-u.id},render(s){return Ar(s.id).format("MM-DD HH:mm:ss")}}),t=St({key:"versionRelease",title:"设备",filterMultiple:!0,minWidth:100,filter(s,u){return Qo(u).includes(s.toString())},render(s){return Qo(s)}}),o=St({key:"appName",minWidth:100,title:"APP名称",filterMultiple:!0,filter(s,u){return s.toString()==u.appName},render(s){return s.appName}}),n=St({key:"appId",title:"ID",minWidth:100,render(s){return s.appId}}),r=St({key:"appVersionCode",title:"版本代码",minWidth:150,render(s){return s.appVersionCode}}),a=St({key:"appVersionName",title:"版本号",minWidth:150,render(s){return s.appVersionName}}),d=fo({key:"activityId",title:"界面ID",filterMultiple:!0,filter(s,u){return s.toString()==u.activityId},render(s){return s.activityId}});return{ctimeCol:e,deviceCol:t,appNameCol:o,appIdCol:n,appVersionCodeCol:r,appVersionNameCol:a,activityIdCol:d,reseColWidth:()=>{t.width=void 0,o.width=void 0,n.width=void 0,r.width=void 0,a.width=void 0}}};export{Aa as N,Ci as a,Qo as r,_a as u};
|
|
970
|
-
//# sourceMappingURL=table
|
|
970
|
+
//# sourceMappingURL=table-kpjT8TSR.js.map
|