dld-vue-ui 0.0.6 → 0.0.9

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.
@@ -1,3 +1 @@
1
- (function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],S):(w=typeof globalThis<"u"?globalThis:w||self,S(w["dld-vue-ui"]={},w.Vue))})(this,function(w,S){"use strict";const Le=S.defineComponent({__name:"index",props:{name:{type:String,required:!1,default:"\u9ED8\u8BA4\u6309\u94AE"}},setup(e){const t=e;return(n,s)=>(S.openBlock(),S.createElementBlock("button",null,S.toDisplayString(t.name),1))}}),F=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},oe=F(Le,[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/Button/index.vue"]]),ae=F(S.defineComponent({__name:"index",props:{title:{type:String,required:!1,default:"\u9ED8\u8BA4\u5B57\u6BB5"}},setup(e){const t=e;return(n,s)=>(S.openBlock(),S.createElementBlock("p",null,S.toDisplayString(t.title),1))}}),[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/P/index.vue"]]);function ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:ue}=Object.prototype,{getPrototypeOf:W}=Object,X=(e=>t=>{const n=ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>X(t)===e),U=e=>t=>typeof t===e,{isArray:C}=Array,T=U("undefined");function je(e){return e!==null&&!T(e)&&e.constructor!==null&&!T(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const le=P("ArrayBuffer");function $e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&le(e.buffer),t}const qe=U("string"),_=U("function"),de=U("number"),G=e=>e!==null&&typeof e=="object",Ie=e=>e===!0||e===!1,L=e=>{if(X(e)!=="object")return!1;const t=W(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},He=P("Date"),Je=P("File"),Ve=P("Blob"),Ke=P("FileList"),We=e=>G(e)&&_(e.pipe),Xe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ue.call(e)===t||_(e.toString)&&e.toString()===t)},Ge=P("URLSearchParams"),Qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function D(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),C(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let c;for(s=0;s<o;s++)c=r[s],t.call(null,e[c],c,e)}}function he(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const fe=typeof self>"u"?typeof global>"u"?globalThis:global:self,pe=e=>!T(e)&&e!==fe;function Q(){const{caseless:e}=pe(this)&&this||{},t={},n=(s,i)=>{const r=e&&he(t,i)||i;L(t[r])&&L(s)?t[r]=Q(t[r],s):L(s)?t[r]=Q({},s):C(s)?t[r]=s.slice():t[r]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&D(arguments[s],n);return t}const Ye=(e,t,n,{allOwnKeys:s}={})=>(D(t,(i,r)=>{n&&_(i)?e[r]=ce(i,n):e[r]=i},{allOwnKeys:s}),e),Ze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),et=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tt=(e,t,n,s)=>{let i,r,o;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!s||s(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&W(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},st=e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!de(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},it=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&W(Uint8Array)),rt=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},ot=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},at=P("HTMLFormElement"),ct=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ut=P("RegExp"),Se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};D(n,(i,r)=>{t(i,r,e)!==!1&&(s[r]=i)}),Object.defineProperties(e,s)},a={isArray:C,isArrayBuffer:le,isBuffer:je,isFormData:Xe,isArrayBufferView:$e,isString:qe,isNumber:de,isBoolean:Ie,isObject:G,isPlainObject:L,isUndefined:T,isDate:He,isFile:Je,isBlob:Ve,isRegExp:ut,isFunction:_,isStream:We,isURLSearchParams:Ge,isTypedArray:it,isFileList:Ke,forEach:D,merge:Q,extend:Ye,trim:Qe,stripBOM:Ze,inherits:et,toFlatObject:tt,kindOf:X,kindOfTest:P,endsWith:nt,toArray:st,forEachEntry:rt,matchAll:ot,isHTMLForm:at,hasOwnProperty:me,hasOwnProp:me,reduceDescriptors:Se,freezeMethods:e=>{Se(e,(t,n)=>{if(_(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(!!_(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},s=i=>{i.forEach(r=>{n[r]=!0})};return C(e)?s(e):s(String(e).split(t)),n},toCamelCase:ct,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:he,global:fe,isContextDefined:pe,toJSONObject:e=>{const t=new Array(10),n=(s,i)=>{if(G(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const r=C(s)?[]:{};return D(s,(o,c)=>{const l=n(o,i+1);!T(l)&&(r[c]=l)}),t[i]=void 0,r}}return s};return n(e,0)}};function m(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ye=m.prototype,Ee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ee[e]={value:e}}),Object.defineProperties(m,Ee),Object.defineProperty(ye,"isAxiosError",{value:!0}),m.from=(e,t,n,s,i,r)=>{const o=Object.create(ye);return a.toFlatObject(e,o,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),m.call(o,e.message,t,n,s,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};var lt=typeof self=="object"?self.FormData:window.FormData;const dt=lt;function Y(e){return a.isPlainObject(e)||a.isArray(e)}function xe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map(function(i,r){return i=xe(i),!n&&r?"["+i+"]":i}).join(n?".":""):t}function ht(e){return a.isArray(e)&&!e.some(Y)}const ft=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function pt(e){return e&&a.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function j(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new(dt||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,R){return!a.isUndefined(R[p])});const s=n.metaTokens,i=n.visitor||d,r=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&pt(t);if(!a.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(!l&&a.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,p,R){let b=h;if(h&&!R&&typeof h=="object"){if(a.endsWith(p,"{}"))p=s?p:p.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&ht(h)||a.isFileList(h)||a.endsWith(p,"[]")&&(b=a.toArray(h)))return p=xe(p),b.forEach(function(K,Yt){!(a.isUndefined(K)||K===null)&&t.append(o===!0?we([p],Yt,r):o===null?p:p+"[]",u(K))}),!1}return Y(h)?!0:(t.append(we(R,p,r),u(h)),!1)}const f=[],E=Object.assign(ft,{defaultVisitor:d,convertValue:u,isVisitable:Y});function y(h,p){if(!a.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(h),a.forEach(h,function(b,N){(!(a.isUndefined(b)||b===null)&&i.call(t,b,a.isString(N)?N.trim():N,p,E))===!0&&y(b,p?p.concat(N):[N])}),f.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Z(e,t){this._pairs=[],e&&j(e,this,t)}const Pe=Z.prototype;Pe.append=function(t,n){this._pairs.push([t,n])},Pe.toString=function(t){const n=t?function(s){return t.call(this,s,be)}:be;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ze(e,t,n){if(!t)return e;const s=n&&n.encode||mt,i=n&&n.serialize;let r;if(i?r=i(t,n):r=a.isURLSearchParams(t)?t.toString():new Z(t,n).toString(s),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class St{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const ge=St,Oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yt=typeof URLSearchParams<"u"?URLSearchParams:Z,Et=FormData,xt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),z={isBrowser:!0,classes:{URLSearchParams:yt,FormData:Et,Blob},isStandardBrowserEnv:xt,protocols:["http","https","file","blob","url","data"]};function wt(e,t){return j(e,new z.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,r){return z.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function bt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pt(e){const t={},n=Object.keys(e);let s;const i=n.length;let r;for(s=0;s<i;s++)r=n[s],t[r]=e[r];return t}function Re(e){function t(n,s,i,r){let o=n[r++];const c=Number.isFinite(+o),l=r>=n.length;return o=!o&&a.isArray(i)?i.length:o,l?(a.hasOwnProp(i,o)?i[o]=[i[o],s]:i[o]=s,!c):((!i[o]||!a.isObject(i[o]))&&(i[o]=[]),t(n,s,i[o],r)&&a.isArray(i[o])&&(i[o]=Pt(i[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,i)=>{t(bt(s),i,n,0)}),n}return null}const zt={"Content-Type":void 0};function gt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const $={transitional:Oe,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,r=a.isObject(t);if(r&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return i&&i?JSON.stringify(Re(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return wt(t,this.formSerializer).toString();if((c=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return j(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),gt(t)):t}],transformResponse:[function(t){const n=this.transitional||$.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&a.isString(t)&&(s&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){$.headers[t]={}}),a.forEach(["post","put","patch"],function(t){$.headers[t]=a.merge(zt)});const ee=$,Ot=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rt=e=>{const t={};let n,s,i;return e&&e.split(`
2
- `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),s=o.substring(i+1).trim(),!(!n||t[n]&&Ot[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Ae=Symbol("internals");function v(e){return e&&String(e).trim().toLowerCase()}function q(e){return e===!1||e==null?e:a.isArray(e)?e.map(q):String(e)}function At(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function _t(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function _e(e,t,n,s){if(a.isFunction(s))return s.call(this,t,n);if(!!a.isString(t)){if(a.isString(s))return t.indexOf(s)!==-1;if(a.isRegExp(s))return s.test(t)}}function Ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Nt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,r,o){return this[s].call(this,t,i,r,o)},configurable:!0})})}class I{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function r(c,l,u){const d=v(l);if(!d)throw new Error("header name must be a non-empty string");const f=a.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=q(c))}const o=(c,l)=>a.forEach(c,(u,d)=>r(u,d,l));return a.isPlainObject(t)||t instanceof this.constructor?o(t,n):a.isString(t)&&(t=t.trim())&&!_t(t)?o(Rt(t),n):t!=null&&r(n,t,s),this}get(t,n){if(t=v(t),t){const s=a.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return At(i);if(a.isFunction(n))return n.call(this,i,s);if(a.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=v(t),t){const s=a.findKey(this,t);return!!(s&&(!n||_e(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function r(o){if(o=v(o),o){const c=a.findKey(s,o);c&&(!n||_e(s,s[c],c,n))&&(delete s[c],i=!0)}}return a.isArray(t)?t.forEach(r):r(t),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return a.forEach(this,(i,r)=>{const o=a.findKey(s,r);if(o){n[o]=q(i),delete n[r];return}const c=t?Ct(r):String(r).trim();c!==r&&delete n[r],n[c]=q(i),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&a.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Ae]=this[Ae]={accessors:{}}).accessors,i=this.prototype;function r(o){const c=v(o);s[c]||(Nt(i,o),s[c]=!0)}return a.isArray(t)?t.forEach(r):r(t),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),a.freezeMethods(I.prototype),a.freezeMethods(I);const g=I;function te(e,t){const n=this||ee,s=t||n,i=g.from(s.headers);let r=s.data;return a.forEach(e,function(c){r=c.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function Ce(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e==null?"canceled":e,m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});const Tt=null;function Dt(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const vt=z.isStandardBrowserEnv?function(){return{write:function(n,s,i,r,o,c){const l=[];l.push(n+"="+encodeURIComponent(s)),a.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),a.isString(r)&&l.push("path="+r),a.isString(o)&&l.push("domain="+o),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function kt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ne(e,t){return e&&!kt(t)?Bt(e,t):t}const Mt=z.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function i(r){let o=r;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(o){const c=a.isString(o)?i(o):o;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function Ft(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ut(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[r];o||(o=u),n[i]=l,s[i]=u;let f=r,E=0;for(;f!==i;)E+=n[f++],f=f%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),u-o<t)return;const y=d&&u-d;return y?Math.round(E*1e3/y):void 0}}function Te(e,t){let n=0;const s=Ut(50,250);return i=>{const r=i.loaded,o=i.lengthComputable?i.total:void 0,c=r-n,l=s(c),u=r<=o;n=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const H={http:Tt,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){let i=e.data;const r=g.from(e.headers).normalize(),o=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}a.isFormData(i)&&z.isStandardBrowserEnv&&r.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(y+":"+h))}const d=Ne(e.baseURL,e.url);u.open(e.method.toUpperCase(),ze(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const y=g.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};Dt(function(b){n(b),l()},function(b){s(b),l()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){!u||(s(new m("Request aborted",m.ECONNABORTED,e,u)),u=null)},u.onerror=function(){s(new m("Network Error",m.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||Oe;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),s(new m(h,p.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,u)),u=null},z.isStandardBrowserEnv){const y=(e.withCredentials||Mt(d))&&e.xsrfCookieName&&vt.read(e.xsrfCookieName);y&&r.set(e.xsrfHeaderName,y)}i===void 0&&r.setContentType(null),"setRequestHeader"in u&&a.forEach(r.toJSON(),function(h,p){u.setRequestHeader(p,h)}),a.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Te(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Te(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{!u||(s(!y||y.type?new k(null,e,u):y),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const E=Ft(d);if(E&&z.protocols.indexOf(E)===-1){s(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};a.forEach(H,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let i=0;i<t&&(n=e[i],!(s=a.isString(n)?H[n.toLowerCase()]:n));i++);if(!s)throw s===!1?new m(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(a.hasOwnProp(H,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!a.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:H};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k}function De(e){return ne(e),e.headers=g.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(e.adapter||ee.adapter)(e).then(function(s){return ne(e),s.data=te.call(e,e.transformResponse,s),s.headers=g.from(s.headers),s},function(s){return Ce(s)||(ne(e),s&&s.response&&(s.response.data=te.call(e,e.transformResponse,s.response),s.response.headers=g.from(s.response.headers))),Promise.reject(s)})}const ve=e=>e instanceof g?e.toJSON():e;function B(e,t){t=t||{};const n={};function s(u,d,f){return a.isPlainObject(u)&&a.isPlainObject(d)?a.merge.call({caseless:f},u,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function i(u,d,f){if(a.isUndefined(d)){if(!a.isUndefined(u))return s(void 0,u,f)}else return s(u,d,f)}function r(u,d){if(!a.isUndefined(d))return s(void 0,d)}function o(u,d){if(a.isUndefined(d)){if(!a.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function c(u,d,f){if(f in t)return s(u,d);if(f in e)return s(void 0,u)}const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,d)=>i(ve(u),ve(d),!0)};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const f=l[d]||i,E=f(e[d],t[d],d);a.isUndefined(E)&&f!==c||(n[d]=E)}),n}const ke="1.2.0",se={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{se[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Be={};se.transitional=function(t,n,s){function i(r,o){return"[Axios v"+ke+"] Transitional option '"+r+"'"+o+(s?". "+s:"")}return(r,o,c)=>{if(t===!1)throw new m(i(o," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Be[o]&&(Be[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,o,c):!0}};function jt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const r=s[i],o=t[r];if(o){const c=e[r],l=c===void 0||o(c,r,e);if(l!==!0)throw new m("option "+r+" must be "+l,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+r,m.ERR_BAD_OPTION)}}const ie={assertOptions:jt,validators:se},A=ie.validators;class J{constructor(t){this.defaults=t,this.interceptors={request:new ge,response:new ge}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:r}=n;s!==void 0&&ie.assertOptions(s,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),i!==void 0&&ie.assertOptions(i,{encode:A.function,serialize:A.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=r&&a.merge(r.common,r[n.method]),o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=g.concat(o,r);const c=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,E;if(!l){const h=[De.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,u),E=h.length,d=Promise.resolve(n);f<E;)d=d.then(h[f++],h[f++]);return d}E=c.length;let y=n;for(f=0;f<E;){const h=c[f++],p=c[f++];try{y=h(y)}catch(R){p.call(this,R);break}}try{d=De.call(this,y)}catch(h){return Promise.reject(h)}for(f=0,E=u.length;f<E;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=B(this.defaults,t);const n=Ne(t.baseURL,t.url);return ze(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){J.prototype[t]=function(n,s){return this.request(B(s||{},{method:t,url:n,data:(s||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function n(s){return function(r,o,c){return this.request(B(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}J.prototype[t]=n(),J.prototype[t+"Form"]=n(!0)});const V=J;class re{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(i=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(c=>{s.subscribe(c),r=c}).then(i);return o.cancel=function(){s.unsubscribe(r)},o},t(function(r,o,c){s.reason||(s.reason=new k(r,o,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(i){t=i}),cancel:t}}}const $t=re;function qt(e){return function(n){return e.apply(null,n)}}function It(e){return a.isObject(e)&&e.isAxiosError===!0}function Me(e){const t=new V(e),n=ce(V.prototype.request,t);return a.extend(n,V.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Me(B(e,i))},n}const x=Me(ee);x.Axios=V,x.CanceledError=k,x.CancelToken=$t,x.isCancel=Ce,x.VERSION=ke,x.toFormData=j,x.AxiosError=m,x.Cancel=x.CanceledError,x.all=function(t){return Promise.all(t)},x.spread=qt,x.isAxiosError=It,x.AxiosHeaders=g,x.formToJSON=e=>Re(a.isHTMLForm(e)?new FormData(e):e),x.default=x;const M=x;class Ht{constructor(t,n){M.defaults.baseURL=t,M.defaults.timeout=n}Request(t,n,s="get",i){if(i){for(const r in i)t+=`${r}=${i[r]}&`;t=t.slice(0,t.length-1)}return M({method:s,url:t,data:n})}RequestIntercept(t){M.interceptors.request.use(n=>t(n))}ResponseIntercept(t){M.interceptors.response.use(n=>t(n))}}class O extends Array{constructor(...t){t.length>0?super(...t):super()}Any(t){for(let n=0;n<this.Count;n++)if(t(this[n]))return!0;return!1}Exist(t){for(let n=0;n<this.Count;n++)if(JSON.stringify(t)===JSON.stringify(this[n]))return!0;return!1}Where(t){let n=[];if(t===void 0)return this.Values;for(let s=0;s<this.Count;s++)t(this[s])&&n.push(this[s]);return new O(...n)}First(t){let n=null;if(t!==void 0){for(let s=0;s<this.Count;s++)if(t(this[s])){n=this[s];break}}else this.Count!==0&&(n=this[0]);return n}Index(t){let n=[];for(let s=0;s<this.Count;s++)t(this[s])&&n.push(s);return n}Distinct(){let t=new O;for(let n=0;n<this.Count;n++)if(!t.Any(s=>JSON.stringify(s)===JSON.stringify(this[n]))){t.push(this[n]);continue}return t}Add(...t){return this.push(...t),this.Values}AddFirst(...t){return this.unshift(...t),this.Values}AddIndex(t,...n){return this.splice(t,0,...n),this.Values}Remove(t){let n=new O;for(let s=0;s<this.length;s++)JSON.stringify(t)!==JSON.stringify(this[s])?(n.push(this[s]),console.warn(t),console.warn(this[s])):console.log(this[s]);return n}RemoveLast(){return this.pop(),this.Values}GetRemoveLast(){return this.Count>0?this.pop():null}RemoveFirst(){return this.shift(),this.Values}GetRemoveFirst(){return this.Count>0?this.shift():null}RemoveIndex(t,n=1){return this.splice(t,n),this.Values}GetRemoveIndex(t,n=1){let s=this.splice(t,n);return new O(...s)}Select(t){let n=[];for(let s=0;s<this.Count;s++){n[s]={};for(let i=0;i<t(this[s]).length;i++)n[s][t(this[s])[i]]=this[s][t(this[s])[i]]}return new O(...n)}Skip(t=0){return new O(...this.slice(t))}Take(t=1){return this.slice(0,t)}get Count(){return this.length}get Values(){return new O(...this)}}const Jt={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((s,i)=>(s.size=i===t?s.max:s.min,i!==t&&(n+=s.min),s)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(s=>({min:s.min,max:s.max,size:s.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:s}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:s-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const s=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),i),s);let o=[t,t+1],c=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=c.max<100&&r>=c.max+n.prevPanesSize,d=l.max<100&&r<=100-(l.max+this.sumNextPanesSize(t+1));if(u||d){u?(c.size=c.max,l.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,r);if(!f)return;({sums:n,panesToResize:o}=f),c=this.panes[o[0]]||null,l=this.panes[o[1]]||null}c!==null&&(c.size=Math.min(Math.max(r-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),l!==null&&(l.size=Math.min(Math.max(100-r-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,s=[n,n+1];return t<e.prevPanesSize+this.panes[s[0]].min&&(s[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,s[0]<n&&this.panes.forEach((i,r)=>{r>s[0]&&r<=n&&(i.size=i.min,e.prevReachedMinPanes+=i.min)}),e.prevPanesSize=this.sumPrevPanesSize(s[0]),s[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,r)=>{r>0&&r<=n&&(i.size=i.min,e.prevReachedMinPanes+=i.min)}),this.panes[s[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[s[1]].min&&(s[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,s[1]>n+1&&this.panes.forEach((i,r)=>{r>n&&r<s[1]&&(i.size=i.min,e.nextReachedMinPanes+=i.min)}),e.nextPanesSize=this.sumNextPanesSize(s[1]-1),s[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,r)=>{r<this.panesCount-1&&r>=n+1&&(i.size=i.min,e.nextReachedMinPanes+=i.min)}),this.panes[s[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:s}},sumPrevPanesSize(e){return this.panes.reduce((t,n,s)=>t+(s<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,s)=>t+(s>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const s=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=r=>this.onMouseDown(r,s),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=r=>this.onMouseDown(r,s)),i.onclick=r=>this.onSplitterClick(r,s+1)),this.dblClickSplitter&&(i.ondblclick=r=>this.onSplitterDblClick(r,s+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([s,i])=>n[s]=i)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&t++,i===e.$el));const n=parseFloat(e.minSize),s=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(s)?100:s,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((i,r)=>i.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(s=>s.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((s,i)=>s.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],s=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&s.push(i.id)}),t>.1&&this.readjustSizes(t,n,s)},initialPanesSizing(){let e=100;const t=[],n=[];let s=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&s++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&n.push(r.id)});let i=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-s),r.max),r.min)),i-=r.size}),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,s=0;const i=[],r=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{s-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&r.push(o.id)}),!(Math.abs(s)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),s-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&r.push(o.id)}),s>.1&&this.readjustSizes(s,i,r))},readjustSizes(e,t,n){let s;e>0?s=e/(this.panesCount-t.length):s=e/(this.panesCount-n.length),this.panes.forEach((i,r)=>{if(e>0&&!t.includes(i.id)){const o=Math.max(Math.min(i.size+s,i.max),i.min),c=o-i.size;e-=c,i.size=o}else if(!n.includes(i.id)){const o=Math.max(Math.min(i.size+s,i.max),i.min),c=o-i.size;e-=c,i.size=o}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?s=>this.onSplitterDblClick(s,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return S.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Vt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Kt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Wt(e,t,n,s,i,r){return S.openBlock(),S.createElementBlock("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>r.onPaneClick(o,e._.uid)),style:S.normalizeStyle(e.style)},[S.renderSlot(e.$slots,"default")],4)}const Xt=Vt(Kt,[["render",Wt]]),cn="",Gt=S.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1}},setup(e){return(t,n)=>(S.openBlock(),S.createBlock(S.unref(Jt),{horizontal:e.horizontal,style:S.normalizeStyle(e.styles),class:"splitpanes"},{default:S.withCtx(()=>[S.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),un="",Fe=F(Gt,[["__scopeId","data-v-a9f55ace"],["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/index.vue"]]),Ue=F(S.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(e){return(t,n)=>(S.openBlock(),S.createBlock(S.unref(Xt),{style:S.normalizeStyle(e.styles)},{default:S.withCtx(()=>[S.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/vscode/electron/dld-vue-ui/src/packages/component/SplitPanes/pane.vue"]]),Qt={install:e=>{e.component("DVButton",oe),e.component("DVP",ae),e.component("SplitPanes",Fe),e.component("Pane",Ue)}};w.DVButton=oe,w.DVP=ae,w.DvAxios=Ht,w.List=O,w.Pane=Ue,w.SplitPanes=Fe,w.default=Qt,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(p,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(p=typeof globalThis<"u"?globalThis:p||self,o(p["dld-vue-ui"]={},p.Vue))})(this,function(p,o){"use strict";const S={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let i=0;this.panes=this.panes.map((s,n)=>(s.size=n===t?s.max:s.min,n!==t&&(i+=s.min),s)),this.panes[t].size-=i,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(s=>({min:s.min,max:s.max,size:s.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:i,clientY:s}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:i-t.left,y:s-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let i={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const s=0+(this.pushOtherPanes?0:i.prevPanesSize),n=100-(this.pushOtherPanes?0:i.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),n),s);let r=[t,t+1],l=this.panes[r[0]]||null,d=this.panes[r[1]]||null;const h=l.max<100&&a>=l.max+i.prevPanesSize,_=d.max<100&&a<=100-(d.max+this.sumNextPanesSize(t+1));if(h||_){h?(l.size=l.max,d.size=Math.max(100-l.max-i.prevPanesSize-i.nextPanesSize,0)):(l.size=Math.max(100-d.max-i.prevPanesSize-this.sumNextPanesSize(t+1),0),d.size=d.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(i,a);if(!c)return;({sums:i,panesToResize:r}=c),l=this.panes[r[0]]||null,d=this.panes[r[1]]||null}l!==null&&(l.size=Math.min(Math.max(a-i.prevPanesSize-i.prevReachedMinPanes,l.min),l.max)),d!==null&&(d.size=Math.min(Math.max(100-a-i.nextPanesSize-i.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(e,t){const i=this.touch.activeSplitter,s=[i,i+1];return t<e.prevPanesSize+this.panes[s[0]].min&&(s[0]=this.findPrevExpandedPane(i).index,e.prevReachedMinPanes=0,s[0]<i&&this.panes.forEach((n,a)=>{a>s[0]&&a<=i&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(s[0]),s[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,a)=>{a>0&&a<=i&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[s[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[s[1]].min&&(s[1]=this.findNextExpandedPane(i).index,e.nextReachedMinPanes=0,s[1]>i+1&&this.panes.forEach((n,a)=>{a>i&&a<s[1]&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),e.nextPanesSize=this.sumNextPanesSize(s[1]-1),s[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((n,a)=>{a<this.panesCount-1&&a>=i+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[s[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:s}},sumPrevPanesSize(e){return this.panes.reduce((t,i,s)=>t+(s<e?i.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,i,s)=>t+(s>e+1?i.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),i=e.classList.contains("splitpanes__splitter");!t&&!i&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,i=!1){const s=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),i||(n.onmousedown=a=>this.onMouseDown(a,s),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=a=>this.onMouseDown(a,s)),n.onclick=a=>this.onSplitterClick(a,s+1)),this.dblClickSplitter&&(n.ondblclick=a=>this.onSplitterDblClick(a,s+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(i=>{i.className.includes("splitpanes__splitter")&&this.removeSplitter(i)});let t=0;e.forEach(i=>{i.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,i,!0):t&&this.addSplitter(t,i),t++)})},requestUpdate({target:e,...t}){const i=this.indexedPanes[e._.uid];Object.entries(t).forEach(([s,n])=>i[s]=n)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const i=parseFloat(e.minSize),s=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(i)?0:i,max:isNaN(s)?100:s,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,a)=>n.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(s=>s.id===e._.uid),i=this.panes.splice(t,1)[0];this.panes.forEach((s,n)=>s.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...i,index:t}}),this.$emit("pane-remove",{removed:i,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const i=[],s=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&i.push(n.id),n.size<=n.min&&s.push(n.id)}),t>.1&&this.readjustSizes(t,i,s)},initialPanesSizing(){let e=100;const t=[],i=[];let s=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&s++,a.size>=a.max&&t.push(a.id),a.size<=a.min&&i.push(a.id)});let n=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-s),a.max),a.min)),n-=a.size}),n>.1&&this.readjustSizes(e,t,i))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let i=100/this.panesCount,s=0;const n=[],a=[];e&&e.givenSize!==null&&(i=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(r=>{s-=r.size,r.size>=r.max&&n.push(r.id),r.size<=r.min&&a.push(r.id)}),!(Math.abs(s)<.1)&&(this.panes.forEach(r=>{e&&e.givenSize!==null&&e.id===r.id||(r.size=Math.max(Math.min(i,r.max),r.min)),s-=r.size,r.size>=r.max&&n.push(r.id),r.size<=r.min&&a.push(r.id)}),s>.1&&this.readjustSizes(s,n,a))},readjustSizes(e,t,i){let s;e>0?s=e/(this.panesCount-t.length):s=e/(this.panesCount-i.length),this.panes.forEach((n,a)=>{if(e>0&&!t.includes(n.id)){const r=Math.max(Math.min(n.size+s,n.max),n.min),l=r-n.size;e-=l,n.size=r}else if(!i.includes(n.id)){const r=Math.max(Math.min(n.size+s,n.max),n.min),l=r-n.size;e-=l,n.size=r}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,i)=>{t.ondblclick=e?s=>this.onSplitterDblClick(s,i):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return o.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},P=(e,t)=>{const i=e.__vccOpts||e;for(const[s,n]of t)i[s]=n;return i},g={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function y(e,t,i,s,n,a){return o.openBlock(),o.createElementBlock("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=r=>a.onPaneClick(r,e._.uid)),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],4)}const M=P(g,[["render",y]]),H="",C=o.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1}},setup(e){return(t,i)=>(o.openBlock(),o.createBlock(o.unref(S),{horizontal:e.horizontal,style:o.normalizeStyle(e.styles),class:"splitpanes"},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),G="",u=(e,t)=>{const i=e.__vccOpts||e;for(const[s,n]of t)i[s]=n;return i},m=u(C,[["__scopeId","data-v-4226b5d2"],["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]),z=u(o.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(e){return(t,i)=>(o.openBlock(),o.createBlock(o.unref(M),{style:o.normalizeStyle(e.styles)},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);/*! Element Plus Icons Vue v2.0.10 */var f=(e,t)=>{let i=e.__vccOpts||e;for(let[s,n]of t)i[s]=n;return i},E={name:"FolderOpened"},w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},k=o.createElementVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),b=[k];function N(e,t,i,s,n,a){return o.openBlock(),o.createElementBlock("svg",w,b)}var $=f(E,[["render",N],["__file","folder-opened.vue"]]),R={name:"Upload"},T={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D=o.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),B=[D];function q(e,t,i,s,n,a){return o.openBlock(),o.createElementBlock("svg",T,B)}var O=f(R,[["render",q],["__file","upload.vue"]]),U=function(){function e(t){if(!t)throw new TypeError("Invalid argument; `value` has no value.");this.value=e.EMPTY,t&&e.isGuid(t)&&(this.value=t)}return e.isGuid=function(t){var i=t.toString();return t&&(t instanceof e||e.validator.test(i))},e.create=function(){return new e([e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join("-"))},e.createEmpty=function(){return new e("emptyguid")},e.parse=function(t){return new e(t)},e.raw=function(){return[e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join("-")},e.gen=function(t){for(var i="",s=0;s<t;s++)i+=((1+Math.random())*65536|0).toString(16).substring(1);return i},e.prototype.equals=function(t){return e.isGuid(t)&&this.value===t.toString()},e.prototype.isEmpty=function(){return this.value===e.EMPTY},e.prototype.toString=function(){return this.value},e.prototype.toJSON=function(){return{value:this.value}},e.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),e.EMPTY="00000000-0000-0000-0000-000000000000",e}(),L=U;const F={style:{}},A=["id"],j={class:"filename"},V=o.defineComponent({__name:"index",props:{size:{type:String,required:!1,default:"default"},name:{type:String,required:!1,default:"\u4E0A\u4F20\u6587\u4EF6"},icon:{type:null,required:!1,default:O},type:{type:null,required:!1,default:"success"}},emits:["upload"],setup(e,{expose:t,emit:i}){let s=L.create().toString(),n,a=o.ref("");function r(){n.click()}function l(){a.value=n.value}function d(){n.files!==null&&i("upload",n.files[0])}function h(){n.value="",a.value=""}return o.onMounted(()=>{n=document.getElementById(s)}),t({Clear:h}),(_,c)=>{const v=o.resolveComponent("el-button");return o.openBlock(),o.createElementBlock("div",F,[o.createVNode(v,{type:e.type,icon:o.unref($),size:e.size,class:"btn",onClick:r},{default:o.withCtx(()=>[o.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["type","icon","size"]),o.withDirectives(o.createElementVNode("input",{type:"file",id:o.unref(s),onChange:l},null,40,A),[[o.vShow,!1]]),o.createElementVNode("span",j,o.toDisplayString(o.unref(a)),1),o.createVNode(v,{type:e.type,icon:e.icon,size:e.size,disabled:o.unref(a)==null||o.unref(a)=="",class:"btn",onClick:d},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.name),1)]),_:1},8,["type","icon","size","disabled"])])}}}),J="",x=u(V,[["__scopeId","data-v-83b9cdd7"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]),I={install:e=>{e.component("SplitPanes",m),e.component("Pane",z),e.component("UpLoadFile",x)}};p.Pane=z,p.SplitPanes=m,p.UpLoadFile=x,p.default=I,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -13,10 +13,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
13
13
  required: false;
14
14
  default: boolean;
15
15
  };
16
- title: {
17
- type: StringConstructor;
18
- required: false;
19
- };
20
16
  }, {
21
17
  readonly Splitpanes: Splitpanes;
22
18
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -33,10 +29,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
29
  required: false;
34
30
  default: boolean;
35
31
  };
36
- title: {
37
- type: StringConstructor;
38
- required: false;
39
- };
40
32
  }>>, {
41
33
  styles: Record<string, any>;
42
34
  horizontal: boolean;
@@ -0,0 +1,61 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ size: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ name: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ icon: {
13
+ type: null;
14
+ required: false;
15
+ default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
16
+ };
17
+ type: {
18
+ type: null;
19
+ required: false;
20
+ default: string;
21
+ };
22
+ }, {
23
+ emit: (e: 'upload', file: File) => void;
24
+ fileId: string;
25
+ dom: HTMLInputElement;
26
+ fileName: import("vue").Ref<string>;
27
+ OpenFile: () => void;
28
+ GetFiles: () => void;
29
+ UpLoadFile: () => void;
30
+ Clear: () => void;
31
+ readonly FolderOpened: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "upload"[], "upload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ size: {
34
+ type: StringConstructor;
35
+ required: false;
36
+ default: string;
37
+ };
38
+ name: {
39
+ type: StringConstructor;
40
+ required: false;
41
+ default: string;
42
+ };
43
+ icon: {
44
+ type: null;
45
+ required: false;
46
+ default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
47
+ };
48
+ type: {
49
+ type: null;
50
+ required: false;
51
+ default: string;
52
+ };
53
+ }>> & {
54
+ onUpload?: ((...args: any[]) => any) | undefined;
55
+ }, {
56
+ type: any;
57
+ size: string;
58
+ name: string;
59
+ icon: any;
60
+ }>;
61
+ export default _sfc_main;
@@ -1,11 +1,7 @@
1
1
  import { App } from "vue";
2
- import DVButton from "./component/Button";
3
- import DVP from './component/P';
4
- import DvAxios from "./method/DvAxios";
5
- import List from "./method/List";
6
- import { SplitPanes, Pane } from './component/SplitPanes';
7
- export { DVButton, DVP, SplitPanes, Pane };
8
- export { DvAxios, List };
2
+ import { SplitPanes, Pane } from './SplitPanes';
3
+ import UpLoadFile from './UpLoadFile/index.vue';
4
+ export { SplitPanes, Pane, UpLoadFile };
9
5
  declare const _default: {
10
6
  install: (app: App) => void;
11
7
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.splitpanes[data-v-a9f55ace] .splitpanes__splitter{min-width:4px;min-height:4px}
1
+ .splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.splitpanes[data-v-4226b5d2] .splitpanes__splitter{min-width:4px;min-height:4px}.fileupload[data-v-83b9cdd7]{overflow-x:auto}.btn[data-v-83b9cdd7]{margin-left:5px;margin-right:5px}.filename[data-v-83b9cdd7]{font-size:12px;text-indent:1em}.filename[data-v-83b9cdd7]:hover{background:rgb(228,228,228)}
@@ -1,11 +1,11 @@
1
- /// <reference types="vite/client" />
2
-
3
- declare module '*.vue' {
4
- import type { DefineComponent } from 'vue'
5
- const component: DefineComponent<{}, {}, any>
6
- export default component
7
- }
8
-
9
-
10
-
11
-
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
8
+
9
+
10
+
11
+
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "dld-vue-ui",
3
- "private": false,
4
- "version": "0.0.6",
5
- "type": "module",
6
- "main": "./dist/dld-vue-ui.umd.js",
7
- "module": "./dist/dld-vue-ui.js",
8
- "types": "./dist/packages/index.d.ts",
9
- "license": "MIT",
10
- "exports": {
11
- ".": {
12
- "import": "./dist/dld-vue-ui.js",
13
- "require": "./dist/dld-vue-ui.umd.js",
14
- "types": "./dist/packages/index.d.ts"
15
- },
16
- "./dist/style.css": {
17
- "import": "./dist/style.css",
18
- "require": "./dist/style.css"
19
- }
20
- },
21
- "files": [
22
- "package.json",
23
- "README.md",
24
- "dist"
25
- ],
26
- "scripts": {
27
- "dev": "vite --mode development",
28
- "build": "vue-tsc --noEmit && vite build --mode production",
29
- "pub": "vue-tsc --noEmit && vite build --mode publish",
30
- "preview": "vite preview"
31
- },
32
- "dependencies": {
33
- "@element-plus/icons-vue": "^2.0.10",
34
- "vue": "^3.2.41",
35
- "vue-router": "^4.1.6"
36
- },
37
- "devDependencies": {
38
- "@highlightjs/vue-plugin": "^2.1.0",
39
- "@types/node": "^18.11.10",
40
- "@types/splitpanes": "^2.2.1",
41
- "@vitejs/plugin-vue": "^3.2.0",
42
- "axios": "^1.2.0",
43
- "element-plus": "^2.2.26",
44
- "guid-typescript": "^1.0.9",
45
- "highlight.js": "^11.7.0",
46
- "sass": "^1.56.1",
47
- "splitpanes": "^3.1.5",
48
- "terser": "^5.16.1",
49
- "typescript": "^4.6.4",
50
- "vite": "^3.2.3",
51
- "vite-plugin-dts": "^1.7.1",
52
- "vue-tsc": "^1.0.9"
53
- }
54
- }
1
+ {
2
+ "name": "dld-vue-ui",
3
+ "private": false,
4
+ "version": "0.0.9",
5
+ "type": "module",
6
+ "main": "./dist/dld-vue-ui.umd.js",
7
+ "module": "./dist/dld-vue-ui.js",
8
+ "types": "./dist/packages/index.d.ts",
9
+ "license": "MIT",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/dld-vue-ui.js",
13
+ "require": "./dist/dld-vue-ui.umd.js",
14
+ "types": "./dist/packages/index.d.ts"
15
+ },
16
+ "./dist/style.css": {
17
+ "import": "./dist/style.css",
18
+ "require": "./dist/style.css"
19
+ }
20
+ },
21
+ "files": [
22
+ "package.json",
23
+ "README.md",
24
+ "dist"
25
+ ],
26
+ "scripts": {
27
+ "dev": "vite --mode development",
28
+ "build": "vue-tsc --noEmit && vite build --mode production",
29
+ "pub": "vue-tsc --noEmit && vite build --mode publish",
30
+ "preview": "vite preview"
31
+ },
32
+ "dependencies": {
33
+ "@element-plus/icons-vue": "^2.0.10",
34
+ "vue": "^3.2.41",
35
+ "vue-router": "^4.1.6"
36
+ },
37
+ "devDependencies": {
38
+ "@highlightjs/vue-plugin": "^2.1.0",
39
+ "@types/node": "^18.11.10",
40
+ "@types/splitpanes": "^2.2.1",
41
+ "@vitejs/plugin-vue": "^3.2.0",
42
+ "axios": "^1.2.0",
43
+ "element-plus": "^2.2.26",
44
+ "guid-typescript": "^1.0.9",
45
+ "highlight.js": "^11.7.0",
46
+ "sass": "^1.56.1",
47
+ "splitpanes": "^3.1.5",
48
+ "terser": "^5.16.1",
49
+ "typescript": "^4.6.4",
50
+ "vite": "^3.2.3",
51
+ "vite-plugin-dts": "^1.7.1",
52
+ "vue-tsc": "^1.0.9"
53
+ }
54
+ }
@@ -1,2 +0,0 @@
1
- import DVButton from './index.vue';
2
- export default DVButton;
@@ -1,18 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- name: {
3
- type: StringConstructor;
4
- required: false;
5
- default: string;
6
- };
7
- }, {
8
- props: any;
9
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
- name: {
11
- type: StringConstructor;
12
- required: false;
13
- default: string;
14
- };
15
- }>>, {
16
- name: string;
17
- }>;
18
- export default _sfc_main;
@@ -1,2 +0,0 @@
1
- import DVP from './index.vue';
2
- export default DVP;
@@ -1,18 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- title: {
3
- type: StringConstructor;
4
- required: false;
5
- default: string;
6
- };
7
- }, {
8
- props: any;
9
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
- title: {
11
- type: StringConstructor;
12
- required: false;
13
- default: string;
14
- };
15
- }>>, {
16
- title: string;
17
- }>;
18
- export default _sfc_main;
@@ -1,32 +0,0 @@
1
- import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
- declare type methodType = 'get' | 'post' | 'put' | 'delete';
3
- interface QS {
4
- [name: string]: string | number;
5
- }
6
- declare class DvAxios {
7
- /**
8
- * axios配置初始化
9
- * @param url 接口地址
10
- * @param timeout 请求超时
11
- */
12
- constructor(url: string, timeout?: number);
13
- /**
14
- * 请求接口方法
15
- * @param url 请求地址
16
- * @param data 参数
17
- * @param method 请求方式
18
- * @returns
19
- */
20
- Request<T1, T2>(url: string, data?: T1, method?: methodType, queryString?: QS): Promise<AxiosResponse<T2>>;
21
- /**
22
- * 请求前配置处理
23
- * @param requestCallBack 配置处理
24
- */
25
- RequestIntercept(requestCallBack: (request: AxiosRequestConfig) => AxiosRequestConfig): void;
26
- /**
27
- * 请求成功结果处理
28
- * @param responseCallBack 返回结果处理
29
- */
30
- ResponseIntercept(responseCallBack: (response: AxiosResponse) => AxiosResponse): void;
31
- }
32
- export default DvAxios;
@@ -1,124 +0,0 @@
1
- declare class List<T> extends Array<T> {
2
- constructor(...list: T[]);
3
- /**
4
- * 判断是否存在符合条件的元素
5
- * @param func 筛选条件
6
- * @returns
7
- */
8
- Any(func: (el: T) => boolean): boolean;
9
- /**
10
- * 元素是否已存在
11
- * @param item 查找元素
12
- * @returns
13
- */
14
- Exist(item: T): boolean;
15
- /**
16
- * 获取符合条件的元素
17
- * @param func 筛选条件
18
- * @returns
19
- */
20
- Where(func?: (el: T) => boolean): List<T>;
21
- /**
22
- * 获取符合条件的第一个元素
23
- * @param func 筛选条件
24
- * @returns
25
- */
26
- First(func?: (el: T) => boolean): T | null;
27
- /**
28
- * 获取满足条件的下标
29
- * @param func 筛选条件
30
- * @returns
31
- */
32
- Index(func: (el: T) => boolean): number[];
33
- /**
34
- * List去重
35
- * @returns
36
- */
37
- Distinct(): List<T>;
38
- /**
39
- * 向List末尾添加新元素
40
- * @param items 新元素
41
- * @returns
42
- */
43
- Add(...items: T[]): List<T>;
44
- /**
45
- * 向List头部添加新元素
46
- * @param items 新元素
47
- * @returns
48
- */
49
- AddFirst(...items: T[]): List<T>;
50
- /**
51
- * 从指定下标添加元素
52
- * @param index 开始下标
53
- * @param items 新元素
54
- * @returns
55
- */
56
- AddIndex(index: number, ...items: T[]): List<T>;
57
- /**
58
- * 移除元素
59
- * @param item 移除的元素
60
- * @returns
61
- */
62
- Remove(item: T): List<T>;
63
- /**
64
- * 移除最后一个元素
65
- * @returns
66
- */
67
- RemoveLast(): List<T>;
68
- /**
69
- * 移除并返回最后一个元素
70
- * @returns
71
- */
72
- GetRemoveLast(): T | null;
73
- /**
74
- * 移除第一个元素
75
- * @returns
76
- */
77
- RemoveFirst(): List<T>;
78
- /**
79
- * 移除并返回第一个元素
80
- * @returns
81
- */
82
- GetRemoveFirst(): T | null;
83
- /**
84
- * 移除指定下标的n个元素
85
- * @param index 开始下标
86
- * @param num 移除元素数量
87
- * @returns
88
- */
89
- RemoveIndex(index: number, num?: number): List<T>;
90
- /**
91
- * 移除并返回指定指定下标的n个元素
92
- * @param index 开始下标
93
- * @param num 移除元素数量
94
- * @returns
95
- */
96
- GetRemoveIndex(index: number, num?: number): List<T>;
97
- /**
98
- * 根据Key筛选List内元素的字段
99
- * @param func Key数组
100
- * @returns
101
- */
102
- Select<K extends keyof T>(func: (el: T) => K[]): List<T>;
103
- /**
104
- * 跳过n个元素
105
- * @param num 跳过元素个数
106
- * @returns
107
- */
108
- Skip(num?: number): List<T>;
109
- /**
110
- * 取出n个元素
111
- * @param num 取出元素个数
112
- * @returns
113
- */
114
- Take(num?: number): T[];
115
- /**
116
- * 获取list长度
117
- */
118
- get Count(): number;
119
- /**
120
- * List集合
121
- */
122
- get Values(): List<T>;
123
- }
124
- export default List;