iconfont-preview-cli 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/assets/index-B4R2H-je.js +28 -0
- package/app/assets/index-C7JBaBdr.css +7 -0
- package/app/index.html +2 -2
- package/components/index.cjs +7 -1
- package/components/index.css +7 -1
- package/components/index.mjs +937 -743
- package/components/types/render-icon-list/src/components/use-toast.d.ts +10 -0
- package/package.json +2 -1
- package/app/assets/index-BN1JFPmQ.js +0 -22
- package/app/assets/index-fas_yV9m.css +0 -1
package/components/index.cjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),ge=require("element-plus");function _(t){return Array.isArray?Array.isArray(t):ce(t)==="[object Array]"}function pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Ae(t){return t==null?"":pe(t)}function I(t){return typeof t=="string"}function re(t){return typeof t=="number"}function Ce(t){return t===!0||t===!1||me(t)&&ce(t)=="[object Boolean]"}function ie(t){return typeof t=="object"}function me(t){return ie(t)&&t!==null}function y(t){return t!=null}function K(t){return!t.trim().length}function ce(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Ee="Incorrect 'index' type",ye=t=>`Invalid value for key ${t}`,Me=t=>`Pattern length exceeds max of ${t}.`,Fe=t=>`Missing ${t} property in key`,Be=t=>`Property 'weight' in key '${t}' must be a positive integer`,q=Object.prototype.hasOwnProperty;class De{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let r=ue(n);this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ue(t){let e=null,s=null,n=null,r=1,i=null;if(I(t)||_(t))n=t,e=Z(t),s=z(t);else{if(!q.call(t,"name"))throw new Error(Fe("name"));const c=t.name;if(n=c,q.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(Be(c));e=Z(c),s=z(c),i=t.getFn}return{path:e,id:s,weight:r,src:n,getFn:i}}function Z(t){return _(t)?t:t.split(".")}function z(t){return _(t)?t.join("."):t}function Ie(t,e){let s=[],n=!1;const r=(i,c,u)=>{if(y(i))if(!c[u])s.push(i);else{let o=c[u];const l=i[o];if(!y(l))return;if(u===c.length-1&&(I(l)||re(l)||Ce(l)))s.push(Ae(l));else if(_(l)){n=!0;for(let a=0,h=l.length;a<h;a+=1)r(l[a],c,u+1)}else c.length&&r(l,c,u+1)}};return r(t,I(e)?e.split("."):e,0),n?s:s[0]}const _e={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},xe={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Se={location:0,threshold:.6,distance:100},we={useExtendedSearch:!1,getFn:Ie,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...xe,..._e,...Se,...we};const be=/[^ ]+/g;function ve(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(r){const i=r.match(be).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),u=parseFloat(Math.round(c*n)/n);return s.set(i,u),u},clear(){s.clear()}}}class U{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=ve(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,I(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();I(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!y(e)||K(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(e):this.getFn(e,r.path);if(y(c)){if(_(c)){let u=[];const o=[{nestedArrIndex:-1,value:c}];for(;o.length;){const{nestedArrIndex:l,value:a}=o.pop();if(y(a))if(I(a)&&!K(a)){let h={v:a,i:l,n:this.norm.get(a)};u.push(h)}else _(a)&&a.forEach((h,d)=>{o.push({nestedArrIndex:d,value:h})})}n.$[i]=u}else if(I(c)&&!K(c)){let u={v:c,n:this.norm.get(c)};n.$[i]=u}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function oe(t,e,{getFn:s=f.getFn,fieldNormWeight:n=f.fieldNormWeight}={}){const r=new U({getFn:s,fieldNormWeight:n});return r.setKeys(t.map(ue)),r.setSources(e),r.create(),r}function Re(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:n,records:r}=t,i=new U({getFn:e,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function N(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:r=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const u=Math.abs(n-s);return r?c+u/r:u?1:c}function Le(t=[],e=f.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=t.length;i<c;i+=1){let u=t[i];u&&n===-1?n=i:!u&&n!==-1&&(r=i-1,r-n+1>=e&&s.push([n,r]),n=-1)}return t[i-1]&&i-n>=e&&s.push([n,i-1]),s}const v=32;function ke(t,e,s,{location:n=f.location,distance:r=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:u=f.minMatchCharLength,includeMatches:o=f.includeMatches,ignoreLocation:l=f.ignoreLocation}={}){if(e.length>v)throw new Error(Me(v));const a=e.length,h=t.length,d=Math.max(0,Math.min(n,h));let g=i,p=d;const A=u>1||o,m=A?Array(h):[];let F;for(;(F=t.indexOf(e,p))>-1;){let M=N(e,{currentLocation:F,expectedLocation:d,distance:r,ignoreLocation:l});if(g=Math.min(M,g),p=F+a,A){let S=0;for(;S<a;)m[F+S]=1,S+=1}}p=-1;let E=[],x=1,D=a+h;const P=1<<a-1;for(let M=0;M<a;M+=1){let S=0,w=D;for(;S<w;)N(e,{errors:M,currentLocation:d+w,expectedLocation:d,distance:r,ignoreLocation:l})<=g?S=w:D=w,w=Math.floor((D-S)/2+S);D=w;let J=Math.max(1,d-w+1),j=c?h:Math.min(d+w,h)+a,R=Array(j+2);R[j+1]=(1<<M)-1;for(let B=j;B>=J;B-=1){let k=B-1,X=s[t.charAt(k)];if(A&&(m[k]=+!!X),R[B]=(R[B+1]<<1|1)&X,M&&(R[B]|=(E[B+1]|E[B])<<1|1|E[B+1]),R[B]&P&&(x=N(e,{errors:M,currentLocation:k,expectedLocation:d,distance:r,ignoreLocation:l}),x<=g)){if(g=x,p=k,p<=d)break;J=Math.max(1,2*d-p)}}if(N(e,{errors:M+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l})>g)break;E=R}const T={isMatch:p>=0,score:Math.max(.001,x)};if(A){const M=Le(m,u);M.length?o&&(T.indices=M):T.isMatch=!1}return T}function Ne(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const r=t.charAt(s);e[r]=(e[r]||0)|1<<n-s-1}return e}const $=String.prototype.normalize?(t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(t=>t);class ae{constructor(e,{location:s=f.location,threshold:n=f.threshold,distance:r=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:u=f.minMatchCharLength,isCaseSensitive:o=f.isCaseSensitive,ignoreDiacritics:l=f.ignoreDiacritics,ignoreLocation:a=f.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:u,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a},e=o?e:e.toLowerCase(),e=l?$(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const h=(g,p)=>{this.chunks.push({pattern:g,alphabet:Ne(g),startIndex:p})},d=this.pattern.length;if(d>v){let g=0;const p=d%v,A=d-p;for(;g<A;)h(this.pattern.substr(g,v),g),g+=v;if(p){const m=d-v;h(this.pattern.substr(m),m)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=s?e:e.toLowerCase(),e=n?$(e):e,this.pattern===e){let A={isMatch:!0,score:0};return r&&(A.indices=[[0,e.length-1]]),A}const{location:i,distance:c,threshold:u,findAllMatches:o,minMatchCharLength:l,ignoreLocation:a}=this.options;let h=[],d=0,g=!1;this.chunks.forEach(({pattern:A,alphabet:m,startIndex:F})=>{const{isMatch:E,score:x,indices:D}=ke(e,A,m,{location:i+F,distance:c,threshold:u,findAllMatches:o,minMatchCharLength:l,includeMatches:r,ignoreLocation:a});E&&(g=!0),d+=x,E&&D&&(h=[...h,...D])});let p={isMatch:g,score:g?d/this.chunks.length:1};return g&&r&&(p.indices=h),p}}class b{constructor(e){this.pattern=e}static isMultiMatch(e){return ee(e,this.multiRegex)}static isSingleMatch(e){return ee(e,this.singleRegex)}search(){}}function ee(t,e){const s=t.match(e);return s?s[1]:null}class $e extends b{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Oe extends b{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Pe extends b{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Te extends b{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class je extends b{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Ke extends b{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class le extends b{constructor(e,{location:s=f.location,threshold:n=f.threshold,distance:r=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:u=f.minMatchCharLength,isCaseSensitive:o=f.isCaseSensitive,ignoreDiacritics:l=f.ignoreDiacritics,ignoreLocation:a=f.ignoreLocation}={}){super(e),this._bitapSearch=new ae(e,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:u,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class he extends b{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const H=[$e,he,Pe,Te,Ke,je,Oe,le],te=H.length,We=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ze="|";function He(t,e={}){return t.split(ze).map(s=>{let n=s.trim().split(We).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const u=n[i];let o=!1,l=-1;for(;!o&&++l<te;){const a=H[l];let h=a.isMultiMatch(u);h&&(r.push(new a(h,e)),o=!0)}if(!o)for(l=-1;++l<te;){const a=H[l];let h=a.isSingleMatch(u);if(h){r.push(new a(h,e));break}}}return r})}const Ve=new Set([le.type,he.type]);class Ge{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,ignoreDiacritics:n=f.ignoreDiacritics,includeMatches:r=f.includeMatches,minMatchCharLength:i=f.minMatchCharLength,ignoreLocation:c=f.ignoreLocation,findAllMatches:u=f.findAllMatches,location:o=f.location,threshold:l=f.threshold,distance:a=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:u,ignoreLocation:c,location:o,threshold:l,distance:a},e=s?e:e.toLowerCase(),e=n?$(e):e,this.pattern=e,this.query=He(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?$(e):e;let c=0,u=[],o=0;for(let l=0,a=s.length;l<a;l+=1){const h=s[l];u.length=0,c=0;for(let d=0,g=h.length;d<g;d+=1){const p=h[d],{isMatch:A,indices:m,score:F}=p.search(e);if(A){if(c+=1,o+=F,n){const E=p.constructor.type;Ve.has(E)?u=[...u,...m]:u.push(m)}}else{o=0,c=0,u.length=0;break}}if(c){let d={isMatch:!0,score:o/c};return n&&(d.indices=u),d}}return{isMatch:!1,score:1}}}const V=[];function Ye(...t){V.push(...t)}function G(t,e){for(let s=0,n=V.length;s<n;s+=1){let r=V[s];if(r.condition(t,e))return new r(t,e)}return new ae(t,e)}const O={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[O.AND]||t[O.OR]),Qe=t=>!!t[Y.PATH],Ue=t=>!_(t)&&ie(t)&&!Q(t),se=t=>({[O.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function fe(t,e,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=Qe(r);if(!c&&i.length>1&&!Q(r))return n(se(r));if(Ue(r)){const o=c?r[Y.PATH]:i[0],l=c?r[Y.PATTERN]:r[o];if(!I(l))throw new Error(ye(o));const a={keyId:z(o),pattern:l};return s&&(a.searcher=G(l,e)),a}let u={children:[],operator:i[0]};return i.forEach(o=>{const l=r[o];_(l)&&l.forEach(a=>{u.children.push(n(a))})}),u};return Q(t)||(t=se(t)),n(t)}function Je(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const u=r?r.weight:null;n*=Math.pow(c===0&&u?Number.EPSILON:c,(u||1)*(e?1:i))}),s.score=n})}function Xe(t,e){const s=t.matches;e.matches=[],y(s)&&s.forEach(n=>{if(!y(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),e.matches.push(c)})}function qe(t,e){e.score=t.score}function Ze(t,e,{includeMatches:s=f.includeMatches,includeScore:n=f.includeScore}={}){const r=[];return s&&r.push(Xe),n&&r.push(qe),t.map(i=>{const{idx:c}=i,u={item:e[c],refIndex:c};return r.length&&r.forEach(o=>{o(i,u)}),u})}class L{constructor(e,s={},n){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new De(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof U))throw new Error(Ee);this._myIndex=s||oe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){y(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:u}=this.options;let o=I(e)?I(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Je(o,{ignoreFieldNorm:u}),i&&o.sort(c),re(s)&&s>-1&&(o=o.slice(0,s)),Ze(o,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const s=G(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:u})=>{if(!y(i))return;const{isMatch:o,score:l,indices:a}=s.searchIn(i);o&&r.push({item:i,idx:c,matches:[{score:l,value:i,norm:u,indices:a}]})}),r}_searchLogical(e){const s=fe(e,this.options),n=(u,o,l)=>{if(!u.children){const{keyId:h,searcher:d}=u,g=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(o,h),searcher:d});return g&&g.length?[{idx:l,item:o,matches:g}]:[]}const a=[];for(let h=0,d=u.children.length;h<d;h+=1){const g=u.children[h],p=n(g,o,l);if(p.length)a.push(...p);else if(u.operator===O.AND)return[]}return a},r=this._myIndex.records,i={},c=[];return r.forEach(({$:u,i:o})=>{if(y(u)){let l=n(s,u,o);l.length&&(i[o]||(i[o]={idx:o,item:u,matches:[]},c.push(i[o])),l.forEach(({matches:a})=>{i[o].matches.push(...a)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:u})=>{if(!y(c))return;let o=[];n.forEach((l,a)=>{o.push(...this._findMatches({key:l,value:c[a],searcher:s}))}),o.length&&i.push({idx:u,item:c,matches:o})}),i}_findMatches({key:e,value:s,searcher:n}){if(!y(s))return[];let r=[];if(_(s))s.forEach(({v:i,i:c,n:u})=>{if(!y(i))return;const{isMatch:o,score:l,indices:a}=n.searchIn(i);o&&r.push({score:l,key:e,value:i,idx:c,norm:u,indices:a})});else{const{v:i,n:c}=s,{isMatch:u,score:o,indices:l}=n.searchIn(i);u&&r.push({score:o,key:e,value:i,norm:c,indices:l})}return r}}L.version="7.1.0";L.createIndex=oe;L.parseIndex=Re;L.config=f;L.parseQuery=fe;Ye(Ge);const et=C.defineComponent({name:"RenderIconClass",props:{iconClass:{type:String,required:!0},highlightChunks:{type:Array,default:()=>[]}},setup(t){const e=()=>{const{iconClass:s,highlightChunks:n}=t;if(!s||n.length===0)return s;const r=[];let i=0;for(const[c,u]of n)c>i&&r.push(s.slice(i,c)),r.push(C.createVNode("span",{class:"highlight"},[s.slice(c,u+1)])),i=u+1;return i<s.length&&r.push(s.slice(i)),r};return()=>C.createVNode("span",{class:"render-icon-class"},[e()])}});function tt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var W,ne;function st(){if(ne)return W;ne=1,W=n;function t(){return new DOMException("The request is not allowed","NotAllowedError")}async function e(r){if(!navigator.clipboard)throw t();return navigator.clipboard.writeText(r)}async function s(r){const i=document.createElement("span");i.textContent=r,i.style.whiteSpace="pre",i.style.webkitUserSelect="auto",i.style.userSelect="all",document.body.appendChild(i);const c=window.getSelection(),u=window.document.createRange();c.removeAllRanges(),u.selectNode(i),c.addRange(u);let o=!1;try{o=window.document.execCommand("copy")}finally{c.removeAllRanges(),window.document.body.removeChild(i)}if(!o)throw t()}async function n(r){try{await e(r)}catch(i){try{await s(r)}catch(c){throw c||i||t()}}}return W}var nt=st();const rt=tt(nt),it=C.defineComponent({name:"RenderIcon",props:{iconInfo:{type:Object,default:""},iconClass:{type:String,required:!0},copyHandler:Function},setup(t){const e=async n=>{if(t.copyHandler){t.copyHandler(n);return}let r="";try{await rt(n),r="success"}catch{r="error"}ge.ElMessage({message:`copy ${r} [${n}]`,type:r})},s=C.computed(()=>t.iconInfo.baseClassName?`${t.iconInfo.baseClassName} ${t.iconClass}`:t.iconClass);return()=>{var n;return C.createVNode("span",{class:"render-icon",onClick:()=>e(s.value)},[t.iconInfo.renderIcon?t.iconInfo.renderIcon(s.value):C.createVNode("i",{class:[t.iconInfo.baseClassName,t.iconClass]},null),C.createVNode(et,{iconClass:t.iconClass,"highlight-chunks":(n=t.iconInfo.matchesMap)==null?void 0:n.get(t.iconClass)},null)])}}}),de={getIconsInfo:{type:Function,required:!0},cssLinkFormat:{type:Function,default:t=>t}},ct={class:"render-icon-list"},ut=C.defineComponent({__name:"render-icon-list",props:de,setup(t,{expose:e}){const s=t,n=C.ref(),r=C.ref(),i=C.ref([]),c=C.ref([]),u=a=>{n.value=a,r.value=a,i.value=a.map(h=>h.filePath),c.value=a.map(h=>({iconInfo:h,fuse:new L(h.classNames,{includeScore:!0,findAllMatches:!0,includeMatches:!0,threshold:.3,minMatchCharLength:1,shouldSort:!0})}))},o=a=>{const h=document.querySelector("head");if(!h){console.error("Head element not found");return}const d=document.createDocumentFragment();a.forEach(g=>{if(!g.filePath)return;const p=s.cssLinkFormat(g.filePath);if(document.querySelector(`link[rel='stylesheet'][href='${p}']`))return;const A=document.createElement("link");A.rel="stylesheet",A.href=p,d.appendChild(A)}),h.appendChild(d)};return C.onMounted(async()=>{var h;const a=await((h=s.getIconsInfo)==null?void 0:h.call(s))||[];o(a),u(a)}),e({onSearch:a=>{const h=a.trim();if(!n.value)return;if(!h){i.value=n.value.map(g=>g.filePath),r.value=n.value;return}const d=[];c.value.forEach(({iconInfo:g,fuse:p})=>{const A=p.search(h);if(A.length){const m=new Map,F=[];A.forEach(E=>{const x=E.matches||[],D=[];x.forEach(P=>{D.push(...P.indices)}),m.set(E.item,D),F.push(E.item)}),d.push({...g,matchesMap:m,classNames:F})}}),r.value=d,i.value=d.map(g=>g.filePath)}}),(a,h)=>(C.openBlock(),C.createElementBlock("div",ct,[C.renderSlot(a.$slots,"default",{iconsInfo:r.value,renderIcon:C.unref(it)})]))}});exports.RenderIconList=ut;exports.renderIconListProps=de;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue");function x(s){return Array.isArray?Array.isArray(s):ft(s)==="[object Array]"}function vt(s){if(typeof s=="string")return s;let t=s+"";return t=="0"&&1/s==-1/0?"-0":t}function wt(s){return s==null?"":vt(s)}function F(s){return typeof s=="string"}function lt(s){return typeof s=="number"}function bt(s){return s===!0||s===!1||Mt(s)&&ft(s)=="[object Boolean]"}function ht(s){return typeof s=="object"}function Mt(s){return ht(s)&&s!==null}function E(s){return s!=null}function V(s){return!s.trim().length}function ft(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(s)}const Ft="Incorrect 'index' type",xt=s=>`Invalid value for key ${s}`,Bt=s=>`Pattern length exceeds max of ${s}.`,Dt=s=>`Missing ${s} property in key`,It=s=>`Property 'weight' in key '${s}' must be a positive integer`,Z=Object.prototype.hasOwnProperty;class kt{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(i=>{let o=dt(i);this._keys.push(o),this._keyMap[o.id]=o,e+=o.weight}),this._keys.forEach(i=>{i.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function dt(s){let t=null,e=null,i=null,o=1,r=null;if(F(s)||x(s))i=s,t=tt(s),e=H(s);else{if(!Z.call(s,"name"))throw new Error(Dt("name"));const n=s.name;if(i=n,Z.call(s,"weight")&&(o=s.weight,o<=0))throw new Error(It(n));t=tt(n),e=H(n),r=s.getFn}return{path:t,id:e,weight:o,src:i,getFn:r}}function tt(s){return x(s)?s:s.split(".")}function H(s){return x(s)?s.join("."):s}function St(s,t){let e=[],i=!1;const o=(r,n,c)=>{if(E(r))if(!n[c])e.push(r);else{let a=n[c];const l=r[a];if(!E(l))return;if(c===n.length-1&&(F(l)||lt(l)||bt(l)))e.push(wt(l));else if(x(l)){i=!0;for(let u=0,h=l.length;u<h;u+=1)o(l[u],n,c+1)}else n.length&&o(l,n,c+1)}};return o(s,F(t)?t.split("."):t,0),i?e:e[0]}const _t={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Lt={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(s,t)=>s.score===t.score?s.idx<t.idx?-1:1:s.score<t.score?-1:1},Nt={location:0,threshold:.6,distance:100},Ot={useExtendedSearch:!1,getFn:St,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Lt,..._t,...Nt,...Ot};const Tt=/[^ ]+/g;function Rt(s=1,t=3){const e=new Map,i=Math.pow(10,t);return{get(o){const r=o.match(Tt).length;if(e.has(r))return e.get(r);const n=1/Math.pow(r,.5*s),c=parseFloat(Math.round(n*i)/i);return e.set(r,c),c},clear(){e.clear()}}}class J{constructor({getFn:t=f.getFn,fieldNormWeight:e=f.fieldNormWeight}={}){this.norm=Rt(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((e,i)=>{this._keysMap[e.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,F(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const e=this.size();F(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!E(t)||V(t))return;let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach((o,r)=>{let n=o.getFn?o.getFn(t):this.getFn(t,o.path);if(E(n)){if(x(n)){let c=[];const a=[{nestedArrIndex:-1,value:n}];for(;a.length;){const{nestedArrIndex:l,value:u}=a.pop();if(E(u))if(F(u)&&!V(u)){let h={v:u,i:l,n:this.norm.get(u)};c.push(h)}else x(u)&&u.forEach((h,d)=>{a.push({nestedArrIndex:d,value:h})})}i.$[r]=c}else if(F(n)&&!V(n)){let c={v:n,n:this.norm.get(n)};i.$[r]=c}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function pt(s,t,{getFn:e=f.getFn,fieldNormWeight:i=f.fieldNormWeight}={}){const o=new J({getFn:e,fieldNormWeight:i});return o.setKeys(s.map(dt)),o.setSources(t),o.create(),o}function $t(s,{getFn:t=f.getFn,fieldNormWeight:e=f.fieldNormWeight}={}){const{keys:i,records:o}=s,r=new J({getFn:t,fieldNormWeight:e});return r.setKeys(i),r.setIndexRecords(o),r}function O(s,{errors:t=0,currentLocation:e=0,expectedLocation:i=0,distance:o=f.distance,ignoreLocation:r=f.ignoreLocation}={}){const n=t/s.length;if(r)return n;const c=Math.abs(i-e);return o?n+c/o:c?1:n}function Pt(s=[],t=f.minMatchCharLength){let e=[],i=-1,o=-1,r=0;for(let n=s.length;r<n;r+=1){let c=s[r];c&&i===-1?i=r:!c&&i!==-1&&(o=r-1,o-i+1>=t&&e.push([i,o]),i=-1)}return s[r-1]&&r-i>=t&&e.push([i,r-1]),e}const S=32;function jt(s,t,e,{location:i=f.location,distance:o=f.distance,threshold:r=f.threshold,findAllMatches:n=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:l=f.ignoreLocation}={}){if(t.length>S)throw new Error(Bt(S));const u=t.length,h=s.length,d=Math.max(0,Math.min(i,h));let p=r,g=d;const m=c>1||a,A=m?Array(h):[];let w;for(;(w=s.indexOf(t,g))>-1;){let v=O(t,{currentLocation:w,expectedLocation:d,distance:o,ignoreLocation:l});if(p=Math.min(v,p),g=w+u,m){let D=0;for(;D<u;)A[w+D]=1,D+=1}}g=-1;let y=[],B=1,M=u+h;const P=1<<u-1;for(let v=0;v<u;v+=1){let D=0,I=M;for(;D<I;)O(t,{errors:v,currentLocation:d+I,expectedLocation:d,distance:o,ignoreLocation:l})<=p?D=I:M=I,I=Math.floor((M-D)/2+D);M=I;let X=Math.max(1,d-I+1),W=n?h:Math.min(d+I,h)+u,_=Array(W+2);_[W+1]=(1<<v)-1;for(let b=W;b>=X;b-=1){let N=b-1,q=e[s.charAt(N)];if(m&&(A[N]=+!!q),_[b]=(_[b+1]<<1|1)&q,v&&(_[b]|=(y[b+1]|y[b])<<1|1|y[b+1]),_[b]&P&&(B=O(t,{errors:v,currentLocation:N,expectedLocation:d,distance:o,ignoreLocation:l}),B<=p)){if(p=B,g=N,g<=d)break;X=Math.max(1,2*d-g)}}if(O(t,{errors:v+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:l})>p)break;y=_}const j={isMatch:g>=0,score:Math.max(.001,B)};if(m){const v=Pt(A,c);v.length?a&&(j.indices=v):j.isMatch=!1}return j}function Wt(s){let t={};for(let e=0,i=s.length;e<i;e+=1){const o=s.charAt(e);t[o]=(t[o]||0)|1<<i-e-1}return t}const R=String.prototype.normalize?(s=>s.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(s=>s);class gt{constructor(t,{location:e=f.location,threshold:i=f.threshold,distance:o=f.distance,includeMatches:r=f.includeMatches,findAllMatches:n=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreDiacritics:l=f.ignoreDiacritics,ignoreLocation:u=f.ignoreLocation}={}){if(this.options={location:e,threshold:i,distance:o,includeMatches:r,findAllMatches:n,minMatchCharLength:c,isCaseSensitive:a,ignoreDiacritics:l,ignoreLocation:u},t=a?t:t.toLowerCase(),t=l?R(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const h=(p,g)=>{this.chunks.push({pattern:p,alphabet:Wt(p),startIndex:g})},d=this.pattern.length;if(d>S){let p=0;const g=d%S,m=d-g;for(;p<m;)h(this.pattern.substr(p,S),p),p+=S;if(g){const A=d-S;h(this.pattern.substr(A),A)}}else h(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,ignoreDiacritics:i,includeMatches:o}=this.options;if(t=e?t:t.toLowerCase(),t=i?R(t):t,this.pattern===t){let m={isMatch:!0,score:0};return o&&(m.indices=[[0,t.length-1]]),m}const{location:r,distance:n,threshold:c,findAllMatches:a,minMatchCharLength:l,ignoreLocation:u}=this.options;let h=[],d=0,p=!1;this.chunks.forEach(({pattern:m,alphabet:A,startIndex:w})=>{const{isMatch:y,score:B,indices:M}=jt(t,m,A,{location:r+w,distance:n,threshold:c,findAllMatches:a,minMatchCharLength:l,includeMatches:o,ignoreLocation:u});y&&(p=!0),d+=B,y&&M&&(h=[...h,...M])});let g={isMatch:p,score:p?d/this.chunks.length:1};return p&&o&&(g.indices=h),g}}class k{constructor(t){this.pattern=t}static isMultiMatch(t){return et(t,this.multiRegex)}static isSingleMatch(t){return et(t,this.singleRegex)}search(){}}function et(s,t){const e=s.match(t);return e?e[1]:null}class Vt extends k{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class zt extends k{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=t.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class Ht extends k{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class Kt extends k{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class Gt extends k{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Yt extends k{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class mt extends k{constructor(t,{location:e=f.location,threshold:i=f.threshold,distance:o=f.distance,includeMatches:r=f.includeMatches,findAllMatches:n=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreDiacritics:l=f.ignoreDiacritics,ignoreLocation:u=f.ignoreLocation}={}){super(t),this._bitapSearch=new gt(t,{location:e,threshold:i,distance:o,includeMatches:r,findAllMatches:n,minMatchCharLength:c,isCaseSensitive:a,ignoreDiacritics:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class At extends k{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e=0,i;const o=[],r=this.pattern.length;for(;(i=t.indexOf(this.pattern,e))>-1;)e=i+r,o.push([i,e-1]);const n=!!o.length;return{isMatch:n,score:n?0:1,indices:o}}}const K=[Vt,At,Ht,Kt,Yt,Gt,zt,mt],st=K.length,Ut=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Qt="|";function Jt(s,t={}){return s.split(Qt).map(e=>{let i=e.trim().split(Ut).filter(r=>r&&!!r.trim()),o=[];for(let r=0,n=i.length;r<n;r+=1){const c=i[r];let a=!1,l=-1;for(;!a&&++l<st;){const u=K[l];let h=u.isMultiMatch(c);h&&(o.push(new u(h,t)),a=!0)}if(!a)for(l=-1;++l<st;){const u=K[l];let h=u.isSingleMatch(c);if(h){o.push(new u(h,t));break}}}return o})}const Xt=new Set([mt.type,At.type]);class qt{constructor(t,{isCaseSensitive:e=f.isCaseSensitive,ignoreDiacritics:i=f.ignoreDiacritics,includeMatches:o=f.includeMatches,minMatchCharLength:r=f.minMatchCharLength,ignoreLocation:n=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:a=f.location,threshold:l=f.threshold,distance:u=f.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:i,includeMatches:o,minMatchCharLength:r,findAllMatches:c,ignoreLocation:n,location:a,threshold:l,distance:u},t=e?t:t.toLowerCase(),t=i?R(t):t,this.pattern=t,this.query=Jt(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:o,ignoreDiacritics:r}=this.options;t=o?t:t.toLowerCase(),t=r?R(t):t;let n=0,c=[],a=0;for(let l=0,u=e.length;l<u;l+=1){const h=e[l];c.length=0,n=0;for(let d=0,p=h.length;d<p;d+=1){const g=h[d],{isMatch:m,indices:A,score:w}=g.search(t);if(m){if(n+=1,a+=w,i){const y=g.constructor.type;Xt.has(y)?c=[...c,...A]:c.push(A)}}else{a=0,n=0,c.length=0;break}}if(n){let d={isMatch:!0,score:a/n};return i&&(d.indices=c),d}}return{isMatch:!1,score:1}}}const G=[];function Zt(...s){G.push(...s)}function Y(s,t){for(let e=0,i=G.length;e<i;e+=1){let o=G[e];if(o.condition(s,t))return new o(s,t)}return new gt(s,t)}const $={AND:"$and",OR:"$or"},U={PATH:"$path",PATTERN:"$val"},Q=s=>!!(s[$.AND]||s[$.OR]),te=s=>!!s[U.PATH],ee=s=>!x(s)&&ht(s)&&!Q(s),nt=s=>({[$.AND]:Object.keys(s).map(t=>({[t]:s[t]}))});function Ct(s,t,{auto:e=!0}={}){const i=o=>{let r=Object.keys(o);const n=te(o);if(!n&&r.length>1&&!Q(o))return i(nt(o));if(ee(o)){const a=n?o[U.PATH]:r[0],l=n?o[U.PATTERN]:o[a];if(!F(l))throw new Error(xt(a));const u={keyId:H(a),pattern:l};return e&&(u.searcher=Y(l,t)),u}let c={children:[],operator:r[0]};return r.forEach(a=>{const l=o[a];x(l)&&l.forEach(u=>{c.children.push(i(u))})}),c};return Q(s)||(s=nt(s)),i(s)}function se(s,{ignoreFieldNorm:t=f.ignoreFieldNorm}){s.forEach(e=>{let i=1;e.matches.forEach(({key:o,norm:r,score:n})=>{const c=o?o.weight:null;i*=Math.pow(n===0&&c?Number.EPSILON:n,(c||1)*(t?1:r))}),e.score=i})}function ne(s,t){const e=s.matches;t.matches=[],E(e)&&e.forEach(i=>{if(!E(i.indices)||!i.indices.length)return;const{indices:o,value:r}=i;let n={indices:o,value:r};i.key&&(n.key=i.key.src),i.idx>-1&&(n.refIndex=i.idx),t.matches.push(n)})}function ie(s,t){t.score=s.score}function oe(s,t,{includeMatches:e=f.includeMatches,includeScore:i=f.includeScore}={}){const o=[];return e&&o.push(ne),i&&o.push(ie),s.map(r=>{const{idx:n}=r,c={item:t[n],refIndex:n};return o.length&&o.forEach(a=>{a(r,c)}),c})}class L{constructor(t,e={},i){this.options={...f,...e},this.options.useExtendedSearch,this._keyStore=new kt(this.options.keys),this.setCollection(t,i)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof J))throw new Error(Ft);this._myIndex=e||pt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){E(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let i=0,o=this._docs.length;i<o;i+=1){const r=this._docs[i];t(r,i)&&(this.removeAt(i),i-=1,o-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,includeScore:o,shouldSort:r,sortFn:n,ignoreFieldNorm:c}=this.options;let a=F(t)?F(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return se(a,{ignoreFieldNorm:c}),r&&a.sort(n),lt(e)&&e>-1&&(a=a.slice(0,e)),oe(a,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(t){const e=Y(t,this.options),{records:i}=this._myIndex,o=[];return i.forEach(({v:r,i:n,n:c})=>{if(!E(r))return;const{isMatch:a,score:l,indices:u}=e.searchIn(r);a&&o.push({item:r,idx:n,matches:[{score:l,value:r,norm:c,indices:u}]})}),o}_searchLogical(t){const e=Ct(t,this.options),i=(c,a,l)=>{if(!c.children){const{keyId:h,searcher:d}=c,p=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(a,h),searcher:d});return p&&p.length?[{idx:l,item:a,matches:p}]:[]}const u=[];for(let h=0,d=c.children.length;h<d;h+=1){const p=c.children[h],g=i(p,a,l);if(g.length)u.push(...g);else if(c.operator===$.AND)return[]}return u},o=this._myIndex.records,r={},n=[];return o.forEach(({$:c,i:a})=>{if(E(c)){let l=i(e,c,a);l.length&&(r[a]||(r[a]={idx:a,item:c,matches:[]},n.push(r[a])),l.forEach(({matches:u})=>{r[a].matches.push(...u)}))}}),n}_searchObjectList(t){const e=Y(t,this.options),{keys:i,records:o}=this._myIndex,r=[];return o.forEach(({$:n,i:c})=>{if(!E(n))return;let a=[];i.forEach((l,u)=>{a.push(...this._findMatches({key:l,value:n[u],searcher:e}))}),a.length&&r.push({idx:c,item:n,matches:a})}),r}_findMatches({key:t,value:e,searcher:i}){if(!E(e))return[];let o=[];if(x(e))e.forEach(({v:r,i:n,n:c})=>{if(!E(r))return;const{isMatch:a,score:l,indices:u}=i.searchIn(r);a&&o.push({score:l,key:t,value:r,idx:n,norm:c,indices:u})});else{const{v:r,n}=e,{isMatch:c,score:a,indices:l}=i.searchIn(r);c&&o.push({score:a,key:t,value:r,norm:n,indices:l})}return o}}L.version="7.1.0";L.createIndex=pt;L.parseIndex=$t;L.config=f;L.parseQuery=Ct;Zt(qt);const re=C.defineComponent({name:"RenderIconClass",props:{iconClass:{type:String,required:!0},highlightChunks:{type:Array,default:()=>[]}},setup(s){const t=()=>{const{iconClass:e,highlightChunks:i}=s;if(!e||i.length===0)return e;const o=[];let r=0;for(const[n,c]of i)n>r&&o.push(e.slice(r,n)),o.push(C.createVNode("span",{class:"highlight"},[e.slice(n,c+1)])),r=c+1;return r<e.length&&o.push(e.slice(r)),o};return()=>C.createVNode("span",{class:"render-icon-class"},[t()])}});function yt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var z,it;function ce(){if(it)return z;it=1,z=i;function s(){return new DOMException("The request is not allowed","NotAllowedError")}async function t(o){if(!navigator.clipboard)throw s();return navigator.clipboard.writeText(o)}async function e(o){const r=document.createElement("span");r.textContent=o,r.style.whiteSpace="pre",r.style.webkitUserSelect="auto",r.style.userSelect="all",document.body.appendChild(r);const n=window.getSelection(),c=window.document.createRange();n.removeAllRanges(),c.selectNode(r),n.addRange(c);let a=!1;try{a=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(r)}if(!a)throw s()}async function i(o){try{await t(o)}catch(r){try{await e(o)}catch(n){throw n||r||s()}}}return z}var ue=ce();const ae=yt(ue);var T={exports:{}};/*!
|
|
2
|
+
* Toastify js 1.12.0
|
|
3
|
+
* https://github.com/apvarun/toastify-js
|
|
4
|
+
* @license MIT licensed
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2018 Varun A P
|
|
7
|
+
*/var le=T.exports,ot;function he(){return ot||(ot=1,(function(s){(function(t,e){s.exports?s.exports=e():t.Toastify=e()})(le,function(t){var e=function(n){return new e.lib.init(n)},i="1.12.0";e.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},e.lib=e.prototype={toastify:i,constructor:e,init:function(n){return n||(n={}),this.options={},this.toastElement=null,this.options.text=n.text||e.defaults.text,this.options.node=n.node||e.defaults.node,this.options.duration=n.duration===0?0:n.duration||e.defaults.duration,this.options.selector=n.selector||e.defaults.selector,this.options.callback=n.callback||e.defaults.callback,this.options.destination=n.destination||e.defaults.destination,this.options.newWindow=n.newWindow||e.defaults.newWindow,this.options.close=n.close||e.defaults.close,this.options.gravity=n.gravity==="bottom"?"toastify-bottom":e.defaults.gravity,this.options.positionLeft=n.positionLeft||e.defaults.positionLeft,this.options.position=n.position||e.defaults.position,this.options.backgroundColor=n.backgroundColor||e.defaults.backgroundColor,this.options.avatar=n.avatar||e.defaults.avatar,this.options.className=n.className||e.defaults.className,this.options.stopOnFocus=n.stopOnFocus===void 0?e.defaults.stopOnFocus:n.stopOnFocus,this.options.onClick=n.onClick||e.defaults.onClick,this.options.offset=n.offset||e.defaults.offset,this.options.escapeMarkup=n.escapeMarkup!==void 0?n.escapeMarkup:e.defaults.escapeMarkup,this.options.ariaLive=n.ariaLive||e.defaults.ariaLive,this.options.style=n.style||e.defaults.style,n.backgroundColor&&(this.options.style.background=n.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var n=document.createElement("div");n.className="toastify on "+this.options.className,this.options.position?n.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(n.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):n.className+=" toastify-right",n.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var c in this.options.style)n.style[c]=this.options.style[c];if(this.options.ariaLive&&n.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)n.appendChild(this.options.node);else if(this.options.escapeMarkup?n.innerText=this.options.text:n.innerHTML=this.options.text,this.options.avatar!==""){var a=document.createElement("img");a.src=this.options.avatar,a.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?n.appendChild(a):n.insertAdjacentElement("afterbegin",a)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="✖",l.addEventListener("click",(function(A){A.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var u=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&u>360?n.insertAdjacentElement("afterbegin",l):n.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var h=this;n.addEventListener("mouseover",function(A){window.clearTimeout(n.timeOutValue)}),n.addEventListener("mouseleave",function(){n.timeOutValue=window.setTimeout(function(){h.removeElement(n)},h.options.duration)})}if(typeof this.options.destination<"u"&&n.addEventListener("click",(function(A){A.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&n.addEventListener("click",(function(A){A.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var d=o("x",this.options),p=o("y",this.options),g=this.options.position=="left"?d:"-"+d,m=this.options.gravity=="toastify-top"?p:"-"+p;n.style.transform="translate("+g+","+m+")"}return n},showToast:function(){this.toastElement=this.buildToast();var n;if(typeof this.options.selector=="string"?n=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?n=this.options.selector:n=document.body,!n)throw"Root element is not defined";var c=e.defaults.oldestFirst?n.firstChild:n.lastChild;return n.insertBefore(this.toastElement,c),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(n){n.className=n.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),n.parentNode&&n.parentNode.removeChild(n),this.options.callback.call(n),e.reposition()}).bind(this),400)}},e.reposition=function(){for(var n={top:15,bottom:15},c={top:15,bottom:15},a={top:15,bottom:15},l=document.getElementsByClassName("toastify"),u,h=0;h<l.length;h++){r(l[h],"toastify-top")===!0?u="toastify-top":u="toastify-bottom";var d=l[h].offsetHeight;u=u.substr(9,u.length-1);var p=15,g=window.innerWidth>0?window.innerWidth:screen.width;g<=360?(l[h].style[u]=a[u]+"px",a[u]+=d+p):r(l[h],"toastify-left")===!0?(l[h].style[u]=n[u]+"px",n[u]+=d+p):(l[h].style[u]=c[u]+"px",c[u]+=d+p)}return this};function o(n,c){return c.offset[n]?isNaN(c.offset[n])?c.offset[n]:c.offset[n]+"px":"0px"}function r(n,c){return!n||typeof c!="string"?!1:!!(n.className&&n.className.trim().split(/\s+/gi).indexOf(c)>-1)}return e.lib.init.prototype=e.lib,e})})(T)),T.exports}var fe=he();const rt=yt(fe),ct={duration:3e3,gravity:"top",position:"center",stopOnFocus:!0},ut={padding:"11px 15px","box-shadow":"unset","border-radius":"4px","font-size":"14px"},de=()=>({success:e=>{rt({...ct,text:e,style:{...ut,background:"#f0f9eb",color:"#67c23a",border:"1px solid #e1f3d8"}}).showToast()},error:e=>{rt({...ct,text:e,style:{...ut,background:"#fef0f0",color:"#f56c6c",border:"1px solid #fde2e2"}}).showToast()}}),at=de(),pe=C.defineComponent({name:"RenderIcon",props:{iconInfo:{type:Object,default:""},iconClass:{type:String,required:!0},copyHandler:Function},setup(s){const t=async i=>{if(s.copyHandler){s.copyHandler(i);return}let o="";try{await ae(i),o="success"}catch{o="error"}const r=`copy ${o} [${i}]`;o==="success"?at.success(r):at.error(r)},e=C.computed(()=>s.iconInfo.baseClassName?`${s.iconInfo.baseClassName} ${s.iconClass}`:s.iconClass);return()=>{var i;return C.createVNode("span",{class:"render-icon",onClick:()=>t(e.value)},[s.iconInfo.renderIcon?s.iconInfo.renderIcon(e.value):C.createVNode("i",{class:[s.iconInfo.baseClassName,s.iconClass]},null),C.createVNode(re,{iconClass:s.iconClass,"highlight-chunks":(i=s.iconInfo.matchesMap)==null?void 0:i.get(s.iconClass)},null)])}}}),Et={getIconsInfo:{type:Function,required:!0},cssLinkFormat:{type:Function,default:s=>s}},ge={class:"render-icon-list"},me=C.defineComponent({__name:"render-icon-list",props:Et,setup(s,{expose:t}){const e=s,i=C.ref(),o=C.ref(),r=C.ref([]),n=C.ref([]),c=u=>{i.value=u,o.value=u,r.value=u.map(h=>h.filePath),n.value=u.map(h=>({iconInfo:h,fuse:new L(h.classNames,{includeScore:!0,findAllMatches:!0,includeMatches:!0,threshold:.3,minMatchCharLength:1,shouldSort:!0})}))},a=u=>{const h=document.querySelector("head");if(!h){console.error("Head element not found");return}const d=document.createDocumentFragment();u.forEach(p=>{if(!p.filePath)return;const g=e.cssLinkFormat(p.filePath);if(document.querySelector(`link[rel='stylesheet'][href='${g}']`))return;const m=document.createElement("link");m.rel="stylesheet",m.href=g,d.appendChild(m)}),h.appendChild(d)};return C.onMounted(async()=>{var h;const u=await((h=e.getIconsInfo)==null?void 0:h.call(e))||[];a(u),c(u)}),t({onSearch:u=>{const h=u.trim();if(!i.value)return;if(!h){r.value=i.value.map(p=>p.filePath),o.value=i.value;return}const d=[];n.value.forEach(({iconInfo:p,fuse:g})=>{const m=g.search(h);if(m.length){const A=new Map,w=[];m.forEach(y=>{const B=y.matches||[],M=[];B.forEach(P=>{M.push(...P.indices)}),A.set(y.item,M),w.push(y.item)}),d.push({...p,matchesMap:A,classNames:w})}}),o.value=d,r.value=d.map(p=>p.filePath)}}),(u,h)=>(C.openBlock(),C.createElementBlock("div",ge,[C.renderSlot(u.$slots,"default",{iconsInfo:o.value,renderIcon:C.unref(pe)})]))}});exports.RenderIconList=me;exports.renderIconListProps=Et;
|
package/components/index.css
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
@charset "UTF-8";.render-icon{display:flex;gap:12px;flex-direction:column;align-items:center;justify-content:center;height:100%;cursor:pointer;padding:12px;box-sizing:border-box;color:#333;font-size:13px}.render-icon:hover{background-color:#f2f6fc}.render-icon:hover i{color:#4a87ff}.render-icon i{font-size:20px}.render-icon span{white-space:nowrap}.render-icon-class .highlight{color:#4a87ff}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(121,187,255);--el-color-primary-light-5:rgb(160,207,255);--el-color-primary-light-7:rgb(198,226,255);--el-color-primary-light-8:rgb(217,236,255);--el-color-primary-light-9:rgb(236,245,255);--el-color-primary-dark-2:rgb(51,126,204);--el-color-success:#67c23a;--el-color-success-light-3:rgb(149,212,117);--el-color-success-light-5:rgb(179,225,157);--el-color-success-light-7:rgb(209,237,196);--el-color-success-light-8:rgb(225,243,216);--el-color-success-light-9:rgb(240,249,235);--el-color-success-dark-2:rgb(82,155,46);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(238,190,119);--el-color-warning-light-5:rgb(243,209,158);--el-color-warning-light-7:rgb(248,227,197);--el-color-warning-light-8:rgb(250,236,216);--el-color-warning-light-9:rgb(253,246,236);--el-color-warning-dark-2:rgb(184,130,48);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(248,152,152);--el-color-danger-light-5:rgb(250,182,182);--el-color-danger-light-7:rgb(252,211,211);--el-color-danger-light-8:rgb(253,226,226);--el-color-danger-light-9:rgb(254,240,240);--el-color-danger-dark-2:rgb(196,86,86);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(248,152,152);--el-color-error-light-5:rgb(250,182,182);--el-color-error-light-7:rgb(252,211,211);--el-color-error-light-8:rgb(253,226,226);--el-color-error-light-9:rgb(254,240,240);--el-color-error-dark-2:rgb(196,86,86);--el-color-info:#909399;--el-color-info-light-3:rgb(177,179,184);--el-color-info-light-5:rgb(200,201,204);--el-color-info-light-7:rgb(222,223,224);--el-color-info-light-8:rgb(233,233,235);--el-color-info-light-9:rgb(244,244,245);--el-color-info-dark-2:rgb(115,118,122);--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;transition:opacity var(--el-transition-duration),transform .4s,top .4s,bottom .4s;width:-moz-fit-content;width:fit-content}.el-message.is-left{left:16px}.el-message.is-right{right:16px}.el-message.is-center{left:0;margin:0 auto;right:0}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--primary{--el-message-bg-color:var(--el-color-primary-light-9);--el-message-border-color:var(--el-color-primary-light-8);--el-message-text-color:var(--el-color-primary)}.el-message--primary .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--primary{color:var(--el-message-text-color)}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translateY(-100%)}.el-message-fade-enter-from.is-bottom,.el-message-fade-leave-to.is-bottom{transform:translateY(100%)}
|
|
1
|
+
.render-icon{display:flex;gap:12px;flex-direction:column;align-items:center;justify-content:center;height:100%;cursor:pointer;padding:12px;box-sizing:border-box;color:#333;font-size:13px}.render-icon:hover{background-color:#f2f6fc}.render-icon:hover i{color:#4a87ff}.render-icon i{font-size:20px}.render-icon span{white-space:nowrap}.render-icon-class .highlight{color:#4a87ff}/*!
|
|
2
|
+
* Toastify js 1.12.0
|
|
3
|
+
* https://github.com/apvarun/toastify-js
|
|
4
|
+
* @license MIT licensed
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2018 Varun A P
|
|
7
|
+
*/.toastify{padding:12px 20px;color:#fff;display:inline-block;box-shadow:0 3px 6px -1px #0000001f,0 10px 36px -4px #4d60e84d;background:-webkit-linear-gradient(315deg,#73a5ff,#5477f5);background:linear-gradient(135deg,#73a5ff,#5477f5);position:fixed;opacity:0;transition:all .4s cubic-bezier(.215,.61,.355,1);border-radius:2px;cursor:pointer;text-decoration:none;max-width:calc(50% - 20px);z-index:2147483647}.toastify.on{opacity:1}.toast-close{background:transparent;border:0;color:#fff;cursor:pointer;font-family:inherit;font-size:1em;opacity:.4;padding:0 5px}.toastify-right{right:15px}.toastify-left{left:15px}.toastify-top{top:-150px}.toastify-bottom{bottom:-150px}.toastify-rounded{border-radius:25px}.toastify-avatar{width:1.5em;height:1.5em;margin:-7px 5px;border-radius:2px}.toastify-center{margin-left:auto;margin-right:auto;left:0;right:0;max-width:fit-content;max-width:-moz-fit-content}@media only screen and (max-width:360px){.toastify-right,.toastify-left{margin-left:auto;margin-right:auto;left:0;right:0;max-width:fit-content}}
|