@gx-design-vue/pro-utils 0.2.0-beta.5 → 0.2.0-beta.50

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.
@@ -0,0 +1,5 @@
1
+ (function(f,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(f=typeof globalThis<"u"?globalThis:f||self,d(f.PorUtils={},f.vue))})(this,function(f,d){"use strict";const h=typeof window>"u";/**
2
+ * @vue/shared v3.5.13
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ie=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oe=/-(\w)/g,ue=ie(e=>e.replace(oe,(t,n)=>n?n.toUpperCase():"")),U=function(e,t){var n;if(h||!e||!t)return"";t=ue(t),t==="float"&&(t="cssFloat");try{const r=e.style[t];if(r)return r;const i=(n=document==null?void 0:document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[t]:""}catch{return e.style[t]}},$=(e,t)=>h?void 0:(t==null?U(e,"overflow"):t?U(e,"overflow-y"):U(e,"overflow-x")).match(/(scroll|auto|overlay)/),fe=(e,t)=>{if(h)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if($(n,t))return n;n=n.parentNode}return n},ce=(e,t)=>{if(h||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return[window,document,document.documentElement,null,void 0].includes(t)?r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:r=t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right};function ae(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}const le=e=>e==null,se=e=>{if(!e||!e.startsWith("http"))return!1;try{return!!new URL(e)}catch{return!1}},de=(...e)=>{const t={},n=e.length;let r,i=0;for(;i<n;i+=1)for(r in e[i])e[i].hasOwnProperty(r)&&(typeof t[r]=="object"&&typeof e[i][r]=="object"&&t[r]!==void 0&&t[r]!==null&&!Array.isArray(t[r])&&!Array.isArray(e[i][r])?t[r]={...t[r],...e[i][r]}:t[r]=e[i][r]);return t};let x=0;const z=(e=21)=>{if(typeof window>"u"||!window.crypto)return(x+=1).toFixed(0);let t="";const n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){const r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},ge=()=>typeof window>"u"?z():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():z();function D(e,t){if(typeof t!="string"&&!Array.isArray(t))return;const n=Array.isArray(t)?t:t.split(":");let r=e;for(let i=0;i<n.length;i++)if(r&&r.hasOwnProperty(n[i]))r=r[n[i]];else return;return r}function W(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function F(e){return typeof e=="boolean"}function m(e){return typeof e=="number"}function g(e){return typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e)}function y(e){return e!==null&&W(e,"Object")}function q(e){return typeof e=="string"||e instanceof String}function ye(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function me(e){if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}}function pe(){const e=navigator.userAgent||navigator.vendor;return!!(/iPhone/.test(e)||/Android/.test(e)&&/Mobile/.test(e)||/Windows Phone/.test(e)||/Mobile/.test(e)&&!H())}function H(){const e=navigator.userAgent||navigator.vendor;return!!(/iPad/.test(e)||/Macintosh/.test(e)&&"ontouchend"in document||/Android/.test(e)&&!/Mobile/.test(e))}function _(...e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(r){if(q(r))t.push(r);else if(g(r))for(let i=0;i<r.length;i++){const o=_(r[i]);o&&t.push(o)}else if(y(r))for(const i in r)r[i]&&t.push(i)}}return t.filter(n=>n).join(" ")}let b=e=>setTimeout(e,16),J=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(b=e=>window.requestAnimationFrame(e),J=e=>window.cancelAnimationFrame(e));let X=0;const I=new Map;function Z(e){I.delete(e)}function B(e,t=1){X+=1;const n=X;function r(i){if(i===0)Z(n),e();else{const o=b(()=>{r(i-1)});I.set(n,o)}}return r(t),n}B.cancel=e=>{const t=I.get(e);return Z(t),J(t)};function P(e){return e!=null&&e===e.window}function Y(e,t){var i;if(typeof window>"u")return 0;const n=t?"scrollTop":"scrollLeft";let r=0;return P(e)?r=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?r=e.documentElement[n]:e&&(r=e[n]),e&&!P(e)&&typeof r!="number"&&(r=(i=(e.ownerDocument||e).documentElement)==null?void 0:i[n]),r}function we(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function he(e,t={}){const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),u=Y(o,!0),c=Date.now(),a=()=>{const s=Date.now()-c,O=we(s>i?i:s,u,e,i);P(o)?o.scrollTo(window.pageXOffset,O):o instanceof HTMLDocument||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=O:o.scrollTop=O,s<i?B(a):typeof r=="function"&&r()};o&&B(a)}function Se(e){let t;const n=i=>()=>{t=null,e(...i)},r=(...i)=>{t==null&&(t=requestAnimationFrame(n(i)))};return r.cancel=()=>cancelAnimationFrame(t),r}const S={videoAllowType:["mp4","webm","ogg"],audioAllowType:["mp3"],imageType:["bmp","png","gif","jpg","jpeg","psd","tif"],videoType:["mp4","swf","rmvb","avi","flv","mpg","rm","mov","asf","3gp","mkv","ts","f4v","webm","m4v","3g2","m3u8"],audioType:["mp3","mpeg","aac","wav","wma","mp2","flac","midi","ra","ape","aac","cda"]};function Ae(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function ve(e){return e==null||typeof e!="object"&&typeof e!="function"}function Oe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function A(e){return p(e)}function p(e,t=new Map){if(ve(e))return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){const n=Array.from({length:e.length});t.set(e,n);for(let r=0;r<e.length;r++)n[r]=p(e[r],t);return Object.prototype.hasOwnProperty.call(e,"index")&&(n.index=e.index),Object.prototype.hasOwnProperty.call(e,"input")&&(n.input=e.input),n}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(e instanceof Map){const n=new Map;t.set(e,n);for(const[r,i]of e)n.set(r,p(i,t));return n}if(e instanceof Set){const n=new Set;t.set(e,n);for(const r of e)n.add(p(r,t));return n}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Oe(e)){const n=new(Object.getPrototypeOf(e)).constructor(e.length);t.set(e,n);for(let r=0;r<e.length;r++)n[r]=p(e[r],t);return n}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const n=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return t.set(e,n),w(n,e,t),n}if(typeof File<"u"&&e instanceof File){const n=new File([e],e.name,{type:e.type});return t.set(e,n),w(n,e,t),n}if(e instanceof Blob){const n=new Blob([e],{type:e.type});return t.set(e,n),w(n,e,t),n}if(e instanceof Error){const n=new e.constructor;return t.set(e,n),n.message=e.message,n.name=e.name,n.stack=e.stack,n.cause=e.cause,w(n,e,t),n}if(typeof e=="object"&&e!==null){const n={};return t.set(e,n),w(n,e,t),n}return e}function w(e,t,n){const r=[...Object.keys(t),...Ae(t)];for(let i=0;i<r.length;i++){const o=r[i],u=Object.getOwnPropertyDescriptor(e,o);(u==null||u.writable)&&(e[o]=p(t[o],n))}}function E(e,t,n,r){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let i,o,u;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!E(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;for(o of e.entries())if(!E(o[1],t.get(o[0]),n,r))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(u=Object.keys(e),i=u.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,u[o]))return!1;for(o=i;o--!==0;){const c=u[o];if(!(n!=null&&n.includes(c))&&!(c==="_owner"&&e.$$typeof)&&!E(e[c],t[c],n,r))return r&&console.log(c),!1}return!0}return e!==e&&t!==t}const Ee=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Re=()=>process.env.NODE_ENV==="TEST"?!0:typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Ee,Te=e=>{if(e&&e!==!0)return e},Ue=e=>{const t={};if(Object.keys(e||{}).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),!(Object.keys(t).length<1))return t},De=e=>{const t={};return Object.keys(e||{}).forEach(n=>{var r;Array.isArray(e[n])&&((r=e[n])==null?void 0:r.length)===0||e[n]!==void 0&&(t[n]=e[n])}),t};function C(e){var t;if(!(typeof e!="string"&&!Array.isArray(e)))return Array.isArray(e)?e[e.length-1]:(t=e.split(":"))==null?void 0:t.slice(-1)[0]}function G(e){return e&&(e.type===d.Comment||e.type===d.Fragment&&e.children.length===0||e.type===Text&&e.children.trim()==="")}function Fe(e,t){var n;return L((n=e[t])==null?void 0:n.call(e))}function L(e=[]){const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===d.Fragment?t.push(...L(n.children)):t.push(n)}),t.filter(n=>!G(n))}function N(e,...t){return typeof e=="function"?e==null?void 0:e(...t):e}function Q(e,t,n="default",r){const i=C(n);if(i){let o;const u=D(t,n);return u===!1?o=!1:u===!0?o=e==null?void 0:e[i]:y(u)&&r?d.isVNode(u)?o=u:o=e==null?void 0:e[i]:o=u||(e==null?void 0:e[i]),r?d.isVNode(o)?o:N(o):o}}function K(e,t,n="default",r){var o,u,c;const i=C(n);if(i){let a;const l=D(t,n);return l===!1?a=!1:l===!0?a=(o=e==null?void 0:e[i])==null?void 0:o.call(e,r):y(l)?d.isVNode(l)?a=l:a=(u=e==null?void 0:e[i])==null?void 0:u.call(e,r):a=l||((c=e==null?void 0:e[i])==null?void 0:c.call(e,r)),d.isVNode(a)?a:N(a,r)}}function Ie(e,t,n,r){const i={};return e.forEach(o=>{const u=C(o);if(u){const c=r!=null&&r.render?K(t,n,o,r==null?void 0:r.params):Q(t,n,o);(F(c)||c)&&(i[u]=c)}}),i}const Be=({suffixCls:e,customizePrefixCls:t,isPor:n,className:r})=>{const i=r||(n?"gx-pro":"gx");return t||(e?`${i}-${e}`:i)},Pe=(e,t)=>e?g(e)?e.join("-"):e.toString():`${t||0}`;function Ce(e,{align:t,showIndex:n}){const r=A(e);if(n&&e.length&&e.every(i=>i.dataIndex!=="sortIndex")){const i=e[0];r.unshift({title:"序号",align:t,fixed:i.fixed,width:60,uuid:ee().uuid(15),dataIndex:"sortIndex",key:"sortIndex"})}else r.filter(i=>i.dataIndex!=="sortIndex");return r}function Le(e,...t){return typeof e=="function"?e(...t):e}function Ne(e){return JSON.parse(JSON.stringify(e))}function Me(e,t){if(y(e)){const{pageSize:n=10,total:r=0}=e;let{current:i=1}=e;return r-t<=n*(i-1)&&(i=i-1),i===0?1:i}return 1}function Ve(e=[],t,n="children"){function r(i,o){return o.map((u,c)=>{const a=`${i}-${c+1}`;return u[n]&&(u[n]=r(a,u[n])),u.sortIndex=a,u})}return A(e).map((i,o)=>{const u=y(t)&&t.current||1,c=y(t)&&t.pageSize||10,a=`${u?(u-1)*c+(o+1):o+1}`;return i[n]&&(i[n]=r(`${a}`,i[n])),i.sortIndex=a,i})}function $e(e,t){return g(e)?e==null?void 0:e.filter((n,r)=>{if(m(t))return r<=t-1;if(g(t)&&t.length===2){const i=t[0]-1,o=t[1]?t[1]-1:e.length-1;return r<=o&&r>=i}else if(g(t)&&t.length===1){const i=t[0]-1,o=e.length-1;return r<=o&&r>=i}return!0}):[]}function j(e,t,n,r=0){const i=m(r)&&(r===0||r===1)?r:0,o=e[n],u=t[n];let c=0;return o<u?c=i===0?-1:0:o>u&&(c=i===0?0:-1),c}function k(e,t,n,r=0){const i=m(r)&&(r===0||r===1)?r:0,o=new Date(e[n]),u=new Date(t[n]);let c=0;return o<u?c=i===0?-1:0:o>u&&(c=i===0?0:-1),c}function xe(e,t,n=0){return e.sort((r,i)=>j(r,i,t,n))}function ze(e,t,n=0){return e.sort((r,i)=>k(r,i,t,n))}function We(e){let t=A(e);const n=new Set(t);return t=Array.from(n),t}function qe(e,t){const n=["null","undefined"];let r=!0;return e===0?r=!0:n.includes(e)?r=!1:e||(r=!1),r?{value:e,success:r}:{value:t===""?t:t||"-",success:r}}function He(e){let t="";if(e>-1){const n=Math.floor(e/3600),r=Math.floor(e/60)%60,i=Number.parseInt(String(e%60));n<10?t="0"+n+":":t=n+":",r<10&&(t+="0"),t+=r+":",i<10&&(t+="0"),t+=i}return t.split(":")[0]==="00"?`${t.split(":")[1]}:${t.split(":")[2]}`:t}function ee(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return{uuid(t,n){const r=e,i=[],o=n||r.length;let u,c;if(t)for(u=0;u<t;u+=1)i[u]=r[Number.parseInt(String(Math.random()*o))];else for(i[8]="-",i[13]="-",i[18]="-",i[23]="-",i[14]="4",u=0;u<36;u+=1)i[u]||(c=Math.random()*16,i[u]=r[u===19?c&&3||8:c]);return i.join("")},uuidFast(){const t=e,n=Array.from({length:36});let r=0,i,o;for(o=0;o<36;o+=1)o===8||o===13||o===18||o===23?n[o]="-":o===14?n[o]="4":(r<=2&&(r=33554432+Math.random()*16777216||0),i=r&&15,r=r>4,n[o]=t[o===19?i&&3||8:i]);return n.join("")},uuidString(){return this.uuidFast().replace(new RegExp("-","g"),"")},uuidCompact(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=Math.random()*16||0;return(t==="x"?n:n&&3||8).toString(16)})}}}function _e(e=[],t="children"){let n=0;function r(i=[],o){i.forEach(u=>{u.floor=o,o>n&&(n=o),u[t]&&u[t].length>0&&r(u[t],o+1)})}return r(e,1),n}function te(e,t="children"){let n=[];return e.forEach(r=>{n.push(r),g(r[t])&&r[t].length>0&&(n=n.concat(te(r[t],t)))}),n}function be(e,t){if(!e||!g(e)||(e==null?void 0:e.length)===0)return[];const{id:n="id",parentId:r="parentId",children:i="children",rootId:o=0,emptyChildren:u=!0}=t||{},c=A(e);return c.map(a=>{var l;return!u&&a[i]&&((l=a[i])==null?void 0:l.length)===0&&delete a[i],a}).filter(a=>{const l=c.filter(s=>a[n]===s[r]);return l.length>0?a[i]=l:u&&(a[i]=[]),a[r]===o})}function Je(e){return URL.createObjectURL(e)}function Xe(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}function Ze(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let i=r.length;const o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}function Ye(e,t){const n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]);let o=i.length;const u=new Uint8Array(o);for(;o--;)u[o]=i.charCodeAt(o);return new File([u],t,{type:r})}function Ge(e,t,n){return new window.File([e],t,{type:n})}function ne(e){if(!e||typeof e!="string")return"";const t=e.indexOf("?");return t>0?`${e.substring(0,t)}`:e}function R(e){var r,i,o,u,c;if(!e||typeof e!="string")return"";const t=ne(e),n=t.lastIndexOf(".");return n>0&&((c=(u=`${(o=(i=(r=t==null?void 0:t.substring)==null?void 0:r.call(t,n))==null?void 0:i.split("?"))==null?void 0:o[0]}`)==null?void 0:u.split("."))==null?void 0:c[1])||""}function v(e,t){if(t)return t;if(!e||e==="data:")return"4";let n="4";return T(e)?e.includes("data:image/")?n="png":e.includes("data:video/")?n="mp4":e.includes("data:audio/")&&(n="mp3"):e instanceof Blob?(e=String(e),e.includes("image")?n="png":e.includes("video")?n="mp4":e.includes("audio")&&(n="mp3")):n=R(e).toLowerCase(),S.imageType.includes(n)?"1":S.videoType.includes(n)?"3":S.audioType.includes(n)?"2":"4"}function re(e){const{url:t="",fileType:n="1"}=e||{};let r="",i={play:!1,height:0,size:0,width:0,duration:0};function o(){i={play:!1,height:0,size:0,width:0,duration:0}}return t instanceof File?r=URL.createObjectURL(t):T(t)?r=t:t instanceof Blob?r=URL.createObjectURL(t):(t.includes("https")||t.includes("http"))&&(r=t),new Promise(u=>{let c;n==="1"?(c=document.createElement("img"),c.src=r):n==="2"?(c=document.createElement("audio"),c.src=r):n==="3"&&(c=document.createElement("video"),c.src=r),n==="1"?c.onload=function(){o(),i.play=!0,i.width=c.width||0,i.height=c.height||0,u(i),c=null}:c.oncanplay=function(){o(),i.play=!0,i.width=(c==null?void 0:c.videoWidth)||0,i.height=(c==null?void 0:c.videoHeight)||0,i.duration=(c==null?void 0:c.duration)||0,u(i),c=null},c.onerror=function(){o(),u(i),c=null}})}async function Qe(e){const{url:t="",currentTime:n,videoSuffix:r="",vidoeAllowPlay:i=!1}=e;let o="",u=r,c="1",a;return t instanceof File?(o=URL.createObjectURL(t),u=R(t.name),c=v(t.name)):t instanceof Blob?(o=URL.createObjectURL(t),c=v(t)):T(t)?(o=t,c=v(t)):(t.includes("https")||t.includes("http"))&&(o=t,u=R(t),c=v(t)),(u?S.videoAllowType.includes(u.toLowerCase()):!1)?i?M(o,n):(a=await re({url:o,fileType:c}),a.play?M(o,n):new Promise(s=>{s("")})):new Promise(s=>{s("")})}async function M(e,t=0){return new Promise(n=>{let r=document.createElement("video");r&&(r.controls=!0,r.muted=!0,r.setAttribute("src",e),r.setAttribute("muted",String(!0)),r.setAttribute("crossorigin","anonymous"),r.setAttribute("autoplay",String(!0)),r.addEventListener("loadeddata",async function(){let i;for(r==null||r.addEventListener("seeked",async function(){i&&i()});t<((r==null?void 0:r.duration)||0);){r&&(r.currentTime=t),await new Promise(O=>i=O);const o=document.createElement("canvas"),u=.8,c=o.getContext("2d"),a=(r==null?void 0:r.videoWidth)||0*u,l=(r==null?void 0:r.videoHeight)||0*u,s=0;o.width=(r==null?void 0:r.videoWidth)||0*u,o.height=(r==null?void 0:r.videoHeight)||0*u,r&&c.drawImage(r,0,0,a+s,l+s),r=null,n(a===0||l===0?"":o.toDataURL("image/png",1))}}))})}function T(e=""){return!!(e&&["data:image/","data:video/","data:audio/"].find(n=>e.includes(n)))}function Ke(e){return typeof e=="string"&&/^data:(image|video|audio)\/[A-Za-z]+;base64,[A-Za-z0-9+/=]+$/.test(e)}function je(e,t,n,r=!1){e&&t&&n&&e.addEventListener(t,n,r)}function ke(e,t,n,r=!1){e&&t&&n&&e.removeEventListener(t,n,r)}function et(){return/windows|win32/i.test(navigator.userAgent)}function tt(e){return F(e)?e:!!e}function V(e,t){const n=`^\\d+(?:\\.\\d{0,${e}})?`,r=new RegExp(n),i=t.toString().match(r);if(i){const o=i[0];if(o.includes(".")){const[u,c]=o.split(".");if(/^0*$/.test(c))return u}return o}return t.toString()}function nt(e,t){const{toChinese:n=!1,fixed:r=2,min:i=1e4}=t||{},o=m(i)?i:1e4,u=m(r)?r:2,c=n?e<o?"":e<1e8?"万":"亿":e<o?"":e<1e8?"w":"亿";if(!m(e))return{str:`${e}`,number:`${e}`};if(e<o)return{str:`${e}`,number:`${e}`};if(u===0){const l=(e/(e<1e8?1e4:1e8)).toFixed(1).split(".")[0];return{str:`${l}${c}`,number:l,unit:c}}let a;return e<1e8?(a=V(u,e/1e4),{str:a+c,number:a,unit:c}):(a=V(u,e/1e8),{str:a+c,number:a,unit:c})}function rt(e,t){let n=0;const r=document.querySelector(t.root||"hiddenElement");if(!r)return 0;const i=document.createElement(t.createName||"span");return i.innerHTML=e,(t.cssObject||y(t.cssObject))&&Object.keys(t.cssObject).forEach(o=>{var u,c;(u=t.cssObject)!=null&&u[o]&&(i.style[o]=(c=t.cssObject)==null?void 0:c[o])}),r.append(i),n=i.getBoundingClientRect()[t.type||"width"],r.removeChild(i),n}f.arrayRepeat=We,f.arraySlice=$e,f.blobToDataURL=Ge,f.checkFileType=v,f.classNames=_,f.cloneDeep=A,f.compareArray=j,f.compareArraySort=xe,f.compareArrayTimeSort=ze,f.compareTime=k,f.convertValueBoolean=tt,f.copyProperties=w,f.dataURLtoBlob=Ze,f.dataURLtoFile=Ye,f.deepCopy=Ne,f.filterEmpty=L,f.formatDuraton=He,f.formatNumber=V,f.genColumnKey=Pe,f.generateVidoePicture=M,f.getBase64=Xe,f.getBlobUrl=Je,f.getFileSuffix=R,f.getLevelData=te,f.getMaxFloor=_e,f.getMediaInfos=re,f.getPrefixCls=Be,f.getRandomNumber=ee,f.getScroll=Y,f.getScrollContainer=fe,f.getSlot=Q,f.getSlotVNode=K,f.getSlotsChildren=Fe,f.getSlotsProps=Ie,f.getSortIndex=Ve,f.getTextWidth=rt,f.getValueFromObjectByKey=D,f.getVideoCoverPicture=Qe,f.getVideoFileUrl=ne,f.globalConfig=S,f.handleCurrentPage=Me,f.handleShowIndex=Ce,f.hanndleEmptyField=qe,f.is=W,f.isArray=g,f.isBase64=T,f.isBoolean=F,f.isBrowser=Re,f.isDataURLBase64=Ke,f.isDeepEqualReact=E,f.isEmptyElement=G,f.isFunction=ye,f.isImg=ae,f.isInContainer=ce,f.isJSONStr=me,f.isMobile=pe,f.isNil=le,f.isNumber=m,f.isObject=y,f.isScroll=$,f.isServer=h,f.isString=q,f.isTablet=H,f.isUrl=se,f.isWindowsOs=et,f.merge=de,f.nanoid=ge,f.off=ke,f.omitBoolean=Te,f.omitUndefined=Ue,f.omitUndefinedAndEmptyArr=De,f.on=je,f.runFunction=Le,f.scrollTo=he,f.slotRender=N,f.throttleByAnimationFrame=Se,f.toConvertNumberShow=nt,f.treeData=be,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
@@ -1,9 +1,5 @@
1
- interface RafMap {
2
- [id: number]: number;
3
- }
4
- declare function wrapperRaf(callback: () => void, delayFrames?: number): number;
1
+ declare function wrapperRaf(callback: () => void, times?: number): number;
5
2
  declare namespace wrapperRaf {
6
- var cancel: (pid?: number | undefined) => void;
7
- var ids: RafMap;
3
+ var cancel: (id: number) => void;
8
4
  }
9
5
  export default wrapperRaf;
@@ -1,9 +1,37 @@
1
- import type { Slots, VNode } from 'vue';
1
+ import { VNode } from 'vue';
2
2
  import type { CustomRender, WithFalse } from '../typings';
3
- export declare const isSlotFragment: (slots: VNode[]) => boolean;
4
- export declare function getRealVNode(vnode: VNode[]): VNode[];
5
- export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
6
- export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
7
- type KeyValue<T extends keyof any, K> = Record<T, K>;
8
- export declare function getSlotsProps<T extends keyof any, VNode = WithFalse<CustomRender>>(data: T[], slots: Slots, props: Record<string, unknown>): KeyValue<T, VNode | false>;
9
- export {};
3
+ export declare function isEmptyElement(c: any): any;
4
+ export declare function getSlotsChildren<T extends Readonly<Record<string, any>>>(slots: T, key: keyof T): VNode[];
5
+ export declare function filterEmpty(children?: VNode[]): VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
+ [key: string]: any;
7
+ }>[];
8
+ export declare function slotRender(slot: any, ...arg: any): any;
9
+ /**
10
+ * @Author gx12358
11
+ * @DateTime 2024/2/2
12
+ * @lastTime 2024/2/2
13
+ * @description () => CustomRender
14
+ */
15
+ export declare function getSlot<T = undefined>(slots: Readonly<Record<string, any>>, props: Record<string, unknown>, keys: string | string[], render?: false): T extends undefined ? WithFalse<CustomRender> : T;
16
+ export declare function getSlot<T = undefined>(slots: Readonly<Record<string, any>>, props: Record<string, unknown>, keys: string | string[], render?: true): VNode;
17
+ /**
18
+ * @Author gx12358
19
+ * @DateTime 2024/2/2
20
+ * @lastTime 2024/2/2
21
+ * @description () => WithFalse<VNode | VNode[]>
22
+ */
23
+ export declare function getSlotVNode<T = undefined>(slots: Readonly<Record<string, any>>, props: Record<string, unknown>, keys: string | string[], options?: any): T extends undefined ? WithFalse<VNode | VNode[]> : T;
24
+ /**
25
+ * @Author gx12358
26
+ * @DateTime 2024/10/13
27
+ * @lastTime 2024/10/13
28
+ * @description 获取names的slots或者props的VNode
29
+ */
30
+ export declare function getSlotsProps<T extends string, K = undefined>(names: T[], slots: Readonly<Record<string, any>>, props: Record<string, unknown>, options?: {
31
+ render?: false;
32
+ params?: any;
33
+ }): K extends undefined ? Record<T, any> : K;
34
+ export declare function getSlotsProps<T extends string, K = undefined>(names: T[], slots: Readonly<Record<string, any>>, props: Record<string, unknown>, options?: {
35
+ render?: true;
36
+ params?: any;
37
+ }): K extends undefined ? Record<T, WithFalse<VNode | VNode[]>> : K;
@@ -4,7 +4,7 @@ export type Nullable<T> = T | null;
4
4
  export type WithFalse<T> = T | false;
5
5
  export type RecordType = Record<string, any>;
6
6
  export type VueNode = VNodeChild | JSX.Element;
7
- export type CustomRender = Slot | VNodeChild | VNode | ((...props: any[]) => Slot) | ((...props: any[]) => VNode) | ((...args: any[]) => VNode) | VNode[] | JSX.Element | string | null | undefined;
7
+ export type CustomRender = Slot | VNodeChild | VNode | ((...props: any[]) => VNode) | ((...props: any[]) => VNode[]) | VNode[] | JSX.Element | string | null | undefined;
8
8
  export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
9
9
  export type SizeType = 'small' | 'middle' | 'large' | undefined;
10
10
  export type AlignType = 'left' | 'center' | 'right';
@@ -13,18 +13,23 @@ export type BasicTablePageConfig = {
13
13
  pageSize: number;
14
14
  total?: number;
15
15
  } | boolean;
16
- export type ProColumn<T = any> = {
17
- title?: string;
18
- align?: AlignType;
19
- fixed?: boolean;
20
- uuid?: string;
16
+ export interface DefaultProColumn {
21
17
  key: string;
22
18
  dataIndex: string;
23
- width?: number;
24
- } & T;
25
- export type MaterialInfo = {
26
- play?: boolean;
27
- width?: number;
28
- height?: number;
29
- duration?: number;
19
+ uuid?: string;
20
+ title?: string;
21
+ align?: AlignType;
22
+ fixed?: boolean | 'right' | 'left';
23
+ width?: number | string;
24
+ }
25
+ export type ProColumn<T = undefined> = T extends undefined ? DefaultProColumn : DefaultProColumn & T;
26
+ export interface MaterialOptions {
27
+ play: boolean;
28
+ width: number;
29
+ height: number;
30
+ duration: number;
31
+ size?: number | string;
32
+ }
33
+ export type OmitUndefined<T> = {
34
+ [P in keyof T]: NonNullable<T[P]>;
30
35
  };
@@ -0,0 +1 @@
1
+ export declare function getSymbols(object: any): symbol[];
@@ -1,4 +1,4 @@
1
- import type { AlignType, ProColumn, BasicTablePageConfig, MaterialInfo } from '../typings';
1
+ import type { AlignType, BasicTablePageConfig, MaterialOptions, ProColumn, RecordType } from '../typings';
2
2
  export interface PrefixCls {
3
3
  suffixCls?: string;
4
4
  customizePrefixCls?: string;
@@ -13,11 +13,11 @@ export declare const getPrefixCls: ({ suffixCls, customizePrefixCls, isPor, clas
13
13
  * @param dataIndex 在对象中的数据
14
14
  * @param index 序列号,理论上唯一
15
15
  */
16
- export declare const genColumnKey: (key?: string | number | undefined, index?: number) => string;
17
- export declare function handleShowIndex(columns: ProColumn[], { align, showIndex }: {
16
+ export declare const genColumnKey: (key: string[] | number | string | undefined, index?: number) => string;
17
+ export declare function handleShowIndex<T extends ProColumn>(columns: T[], { align, showIndex }: {
18
18
  align: AlignType;
19
19
  showIndex: boolean;
20
- }): any[];
20
+ }): T[];
21
21
  /**
22
22
  * @Author gx12358
23
23
  * @DateTime 2021/11/3
@@ -31,7 +31,7 @@ export declare function runFunction<T extends any[]>(valueEnum: any, ...rest: T)
31
31
  * @lastTime 2022/10/11
32
32
  * @description 简单深拷贝下
33
33
  */
34
- export declare function deepCopy(data: object | any[]): any;
34
+ export declare function deepCopy<T = RecordType>(data: any): T;
35
35
  /**
36
36
  * @Author gx12358
37
37
  * @DateTime 2021/1/28
@@ -45,30 +45,54 @@ export declare function handleCurrentPage(pageConfig: BasicTablePageConfig, curr
45
45
  * @lastTime 2020/7/24
46
46
  * @description 数组(树形)添加序号
47
47
  */
48
- export declare function getSortIndex<T = any>(data: T[] | undefined, pageConfig: BasicTablePageConfig, childrenKey?: string): any;
48
+ export declare function getSortIndex<T = RecordType>(data: T[] | undefined, pageConfig: BasicTablePageConfig, childrenKey?: keyof T): any[];
49
+ export declare function arraySlice<T = RecordType>(data: T[], range: number | number[]): T[];
49
50
  /**
50
51
  * @Author gaoxiang
51
52
  * @DateTime 2019/11/29
52
53
  * @lastTime 2019/11/29
54
+ * @description 这里是给到数组的sort的方法
53
55
  * @description 排序 sort 0 从小到大 1 从大到小
54
56
  */
55
- export declare function compareArray(obj1: any, obj2: any, key: string, sort?: 0 | 1): number;
57
+ export declare function compareArray<T = RecordType>(obj1: T, obj2: T, key: keyof T, sort?: 0 | 1): number;
58
+ /**
59
+ * @Author gx12358
60
+ * @DateTime 2023/10/17
61
+ * @lastTime 2023/10/17
62
+ * @description 这里是给到数组的sort的方法
63
+ * @description type 0 从小到大 1 从大到小
64
+ */
65
+ export declare function compareTime<T = RecordType>(obj1: T, obj2: T, key: keyof T, sort?: 0 | 1): number;
66
+ /**
67
+ * @Author gx12358
68
+ * @DateTime 2024/10/27
69
+ * @lastTime 2024/10/27
70
+ * @description type 0 从小到大 1 从大到小
71
+ */
72
+ export declare function compareArraySort<T = RecordType>(dataSource: T[], key: keyof T, sort?: 0 | 1): T[];
73
+ /**
74
+ * @Author gx12358
75
+ * @DateTime 2024/10/27
76
+ * @lastTime 2024/10/27
77
+ * @description 比较时间 type 0 从小到大 1 从大到小
78
+ */
79
+ export declare function compareArrayTimeSort<T = RecordType>(dataSource: T[], key: keyof T, sort?: 0 | 1): T[];
56
80
  /**
57
81
  * @Author gaoxiang
58
82
  * @DateTime 2019/12/11
59
83
  * @lastTime 2019/12/11
60
84
  * @description 数组去重
61
85
  */
62
- export declare function arrayRepeat<T = any>(data: T[]): any;
86
+ export declare function arrayRepeat<T = RecordType>(data: T[]): T[];
63
87
  /**
64
88
  * @Author gaoxiang
65
89
  * @DateTime 2020/8/26
66
90
  * @lastTime 2020/8/26
67
- * @description 处理表格字段为空
91
+ * @description 处理字段为空
68
92
  */
69
- export declare function hanndleField(str: any, customize: any): {
70
- value: any;
93
+ export declare function hanndleEmptyField(str: any, customize: any): {
71
94
  success: boolean;
95
+ value: any;
72
96
  };
73
97
  /**
74
98
  * @Author gaoxiang
@@ -95,14 +119,14 @@ export declare function getRandomNumber(): {
95
119
  * @lastTime 2022/10/11
96
120
  * @description 获取树形结构最深的层级数
97
121
  */
98
- export declare function getMaxFloor(treeData?: any[]): number;
122
+ export declare function getMaxFloor<T = RecordType>(treeData?: T[], key?: keyof T): number;
99
123
  /**
100
124
  * @Author gaoxiang
101
125
  * @DateTime 2020/8/10
102
126
  * @lastTime 2020/8/10
103
127
  * @description 树形转平级
104
128
  */
105
- export declare function getLevelData(data: any[], filed?: string): any[];
129
+ export declare function getLevelData<T extends RecordType = RecordType>(data: T[], filed?: keyof T): T[];
106
130
  /**
107
131
  * 构造树型结构数据
108
132
  * @param {*} source 数据源
@@ -111,7 +135,13 @@ export declare function getLevelData(data: any[], filed?: string): any[];
111
135
  * @param {*} children 孩子节点字段 默认 'children'
112
136
  * @param {*} rootId 根Id 默认 0
113
137
  */
114
- export declare function treeData(source: any[], id: string, parentId?: string, children?: string, rootId?: number): any;
138
+ export declare function treeData<T extends RecordType = RecordType>(source: T[], options?: {
139
+ id: keyof T;
140
+ parentId?: keyof T;
141
+ children?: keyof T;
142
+ rootId?: number;
143
+ emptyChildren?: boolean;
144
+ }): T[];
115
145
  /**
116
146
  * @Author gx12358
117
147
  * @DateTime 2021/11/5
@@ -153,14 +183,14 @@ export declare function blobToDataURL(blob: Blob, fileName: string, fileType: st
153
183
  * @lastTime 2020/11/13
154
184
  * @description 截取视频时间戳
155
185
  */
156
- export declare function getVideoFileUrl(url?: string): string;
186
+ export declare function getVideoFileUrl(url: string): string;
157
187
  /**
158
188
  * @Author gaoxiang
159
189
  * @DateTime 2020/11/13
160
190
  * @lastTime 2020/11/13
161
191
  * @description 获取文件后缀名
162
192
  */
163
- export declare function getFileSuffix(url?: string): string;
193
+ export declare function getFileSuffix(url: string): string;
164
194
  /**
165
195
  * @Author gaoxiang
166
196
  * @DateTime 2020/10/5
@@ -177,7 +207,7 @@ export declare function checkFileType(url: any, type?: '1' | '2' | '3' | '4'): "
177
207
  export declare function getMediaInfos(mediaInfo: {
178
208
  url: any;
179
209
  fileType?: string;
180
- }): Promise<MaterialInfo>;
210
+ }): Promise<MaterialOptions>;
181
211
  /**
182
212
  * @Author gaoxiang
183
213
  * @DateTime 2020/11/13
@@ -204,5 +234,44 @@ export declare function generateVidoePicture(videoUrl: string, currentTime?: num
204
234
  * @description 判断是否是base64码
205
235
  */
206
236
  export declare function isBase64(str?: string): boolean;
237
+ export declare function isDataURLBase64(str: string): boolean;
207
238
  export declare function on(element: HTMLElement | Document | Window | null, event: string, handler: EventListenerOrEventListenerObject, useCapture?: boolean): void;
208
239
  export declare function off(element: HTMLElement | Document | Window | null, event: string, handler: EventListenerOrEventListenerObject, useCapture?: boolean): void;
240
+ /**
241
+ * 检查当前运行环境是否为Windows OS。
242
+ *
243
+ * 这个函数通过检查navigator.userAgent字符串来判断当前运行环境。
244
+ * 如果userAgent字符串中包含"windows"或"win32"(不区分大小写),则认为当前环境是Windows OS。
245
+ *
246
+ * @returns {boolean} 如果当前环境是Windows OS,返回true,否则返回false。
247
+ */
248
+ export declare function isWindowsOs(): boolean;
249
+ export declare function convertValueBoolean(value: any): boolean;
250
+ export declare function formatNumber(fixedNum: number, value: number): string;
251
+ /**
252
+ * @Author gx12358
253
+ * @DateTime 2022/6/20
254
+ * @lastTime 2022/6/20
255
+ * @description 转换数字
256
+ */
257
+ export declare function toConvertNumberShow(number: number, options?: {
258
+ toChinese?: boolean;
259
+ fixed?: number;
260
+ min?: number;
261
+ }): {
262
+ str: string;
263
+ number: string;
264
+ unit?: string;
265
+ };
266
+ /**
267
+ * @Author gx12358
268
+ * @DateTime 2022/9/13
269
+ * @lastTime 2022/9/13
270
+ * @description 获取字符宽度
271
+ */
272
+ export declare function getTextWidth(str: string, options: {
273
+ cssObject?: CSSStyleDeclaration;
274
+ type?: 'width' | 'height';
275
+ root?: string;
276
+ createName?: string;
277
+ }): number;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Checks whether a value is a JavaScript primitive.
3
+ * JavaScript primitives include null, undefined, strings, numbers, booleans, symbols, and bigints.
4
+ *
5
+ * @param {unknown} value The value to check.
6
+ * @returns {value is
7
+ * null
8
+ * | undefined
9
+ * | string
10
+ * | number
11
+ * | boolean
12
+ * | symbol
13
+ * | bigint} Returns true if `value` is a primitive, false otherwise.
14
+ *
15
+ * @example
16
+ * isPrimitive(null); // true
17
+ * isPrimitive(undefined); // true
18
+ * isPrimitive('123'); // true
19
+ * isPrimitive(false); // true
20
+ * isPrimitive(true); // true
21
+ * isPrimitive(Symbol('a')); // true
22
+ * isPrimitive(123n); // true
23
+ * isPrimitive({}); // false
24
+ * isPrimitive(new Date()); // false
25
+ * isPrimitive(new Map()); // false
26
+ * isPrimitive(new Set()); // false
27
+ * isPrimitive([1, 2, 3]); // false
28
+ */
29
+ export declare function isPrimitive(value: unknown): value is null | undefined | string | number | boolean | symbol | bigint;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Checks if a value is a TypedArray.
3
+ * @param {unknown} x The value to check.
4
+ * @returns {x is
5
+ * Uint8Array
6
+ * | Uint8ClampedArray
7
+ * | Uint16Array
8
+ * | Uint32Array
9
+ * | BigUint64Array
10
+ * | Int8Array
11
+ * | Int16Array
12
+ * | Int32Array
13
+ * | BigInt64Array
14
+ * | Float32Array
15
+ * | Float64Array} Returns true if `x` is a TypedArray, false otherwise.
16
+ *
17
+ * @example
18
+ * const arr = new Uint8Array([1, 2, 3]);
19
+ * isTypedArray(arr); // true
20
+ *
21
+ * const regularArray = [1, 2, 3];
22
+ * isTypedArray(regularArray); // false
23
+ *
24
+ * const buffer = new ArrayBuffer(16);
25
+ * isTypedArray(buffer); // false
26
+ */
27
+ export declare function isTypedArray(x: unknown): x is Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array;
@@ -1,13 +1,13 @@
1
1
  export declare function is(val: unknown, type: string): boolean;
2
2
  export declare function isBoolean(val: unknown): val is boolean;
3
- export declare function isNumber(val: unknown): boolean;
3
+ export declare function isNumber(val: unknown): val is number;
4
4
  /**
5
- * @author gx12358 2539306317@qq.com
5
+ * @author gx12358 gx12358@gmail.com
6
6
  * @description 判断是否是数组
7
- * @param arg
8
- * @returns {arg is any[]|boolean}
7
+ * @param val
8
+ * @returns {val is any[]|boolean}
9
9
  */
10
- export declare function isArray(arg: unknown): boolean;
10
+ export declare function isArray(val: any): val is Array<any>;
11
11
  /**
12
12
  * @Author gaoxiang
13
13
  * @DateTime 2019/11/29
@@ -16,10 +16,13 @@ export declare function isArray(arg: unknown): boolean;
16
16
  */
17
17
  export declare function isObject(val: any): val is Record<any, any>;
18
18
  /**
19
- * @author gx12358 2539306317@qq.com
19
+ * @author gx12358 gx12358@gmail.com
20
20
  * @description 判断是否是字符串
21
21
  * @param value
22
22
  * @returns {boolean}
23
23
  */
24
- export declare function isString(value: unknown): boolean;
25
- export declare function isFunction(func: any): boolean;
24
+ export declare function isString(value: unknown): value is string;
25
+ export declare function isFunction(func: unknown): func is (...args: any[]) => any;
26
+ export declare function isJSONStr(str: any): boolean;
27
+ export declare function isMobile(): boolean;
28
+ export declare function isTablet(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-utils",
3
- "version": "0.2.0-beta.5",
3
+ "version": "0.2.0-beta.50",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",
@@ -13,57 +13,24 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
+ "type": "module",
16
17
  "types": "./dist",
17
- "main": "./dist/pro-utils.umd.js",
18
- "module": "./dist/pro-utils.mjs",
18
+ "main": "./dist/pro-utils.umd.cjs",
19
+ "module": "./dist/pro-utils.js",
19
20
  "exports": {
20
21
  ".": {
21
- "import": "./dist/pro-utils.mjs",
22
- "require": "./dist/pro-utils.umd.js"
23
- },
24
- "./dist/style.css": "./dist/style.css",
25
- "./dist/style.less": "./dist/style.less",
26
- "./dist/proUtils.less": "./dist/proUtils.less",
27
- "./dist/components/FieldLabel/index.less": "./dist/components/FieldLabel/index.less",
28
- "./dist/components/LabelIconTip/index.less": "./dist/components/LabelIconTip/index.less"
29
- },
30
- "dependencies": {
31
- "lodash-es": "^4.17.21",
32
- "vue": "^3.2.45",
33
- "vue-types": "^4.1.1"
22
+ "import": "./dist/pro-utils.js",
23
+ "require": "./dist/pro-utils.umd.cjs"
24
+ }
34
25
  },
35
26
  "devDependencies": {
36
- "@shared/vite-plugin-less-copy": "workspace:^0.0.0",
37
- "@rollup/plugin-typescript": "^8.3.0",
38
- "@rushstack/eslint-patch": "^1.1.0",
39
- "@types/lodash-es": "^4.17.6",
40
- "@types/jsdom": "^16.2.14",
41
- "@types/node": "^16.11.26",
42
- "@vitejs/plugin-vue": "^4.2.3",
43
- "@vitejs/plugin-vue-jsx": "^3.0.1",
44
- "@vue/eslint-config-prettier": "^7.0.0",
45
- "@vue/eslint-config-typescript": "^10.0.0",
46
- "@vue/tsconfig": "^0.1.3",
47
- "eslint": "^8.13.0",
48
- "eslint-plugin-prettier": "^4.0.0",
49
- "eslint-plugin-vue": "^8.6.0",
50
- "jsdom": "^19.0.0",
51
- "less": "^4.1.2",
52
- "postcss": "^8.4.12",
53
- "postcss-html": "^1.4.1",
54
- "postcss-less": "^6.0.0",
55
- "prettier": "^2.6.2",
56
- "rollup": "^2.70.2",
57
- "stylelint": "^14.7.1",
58
- "stylelint-config-prettier": "^9.0.3",
59
- "stylelint-config-recommended": "^7.0.0",
60
- "stylelint-config-recommended-vue": "^1.4.0",
61
- "stylelint-config-standard": "^25.0.0",
62
- "stylelint-order": "^5.0.0",
63
- "typescript": "^4.6.4",
64
- "vite": "^4.3.8",
65
- "vue-eslint-parser": "^9.0.3",
66
- "vue-tsc": "^1.0.24"
27
+ "typescript": "^5.3.3"
28
+ },
29
+ "peerDependencies": {
30
+ "vue": ">=3.0.0"
67
31
  },
68
- "description": "Gx Design"
32
+ "description": "Gx Design Pro Utils",
33
+ "authors": [
34
+ "gx12358 <gx12358@gmail.com> (https://github.com/gx12358)"
35
+ ]
69
36
  }