@bscjc/webui 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("element-plus");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");const M=require("lodash-es"),Ne=require("vue-virtual-scroller");require("vue-virtual-scroller/dist/vue-virtual-scroller.css");const Ie=require("@vueuse/shared");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/message/style/css");require("element-plus/es/components/tag/style/css");/*! Element Plus Icons Vue v2.3.1 */var De=e.defineComponent({name:"CirclePlus",__name:"circle-plus",setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),e.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ze=De,Le=e.defineComponent({name:"Close",__name:"close",setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ve=Le,$e=e.defineComponent({name:"Delete",__name:"delete",setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Te=$e,Oe=e.defineComponent({name:"Grid",__name:"grid",setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),je=Oe,Re=e.defineComponent({name:"Operation",__name:"operation",setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),Pe=Re,qe=e.defineComponent({name:"Search",__name:"search",setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),re=qe;function P(l){return Array.isArray?Array.isArray(l):ye(l)==="[object Array]"}function He(l){if(typeof l=="string")return l;let t=l+"";return t=="0"&&1/l==-1/0?"-0":t}function Qe(l){return l==null?"":He(l)}function j(l){return typeof l=="string"}function me(l){return typeof l=="number"}function Ke(l){return l===!0||l===!1||Ue(l)&&ye(l)=="[object Boolean]"}function ge(l){return typeof l=="object"}function Ue(l){return ge(l)&&l!==null}function L(l){return l!=null}function X(l){return!l.trim().length}function ye(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(l)}const Je="Incorrect 'index' type",Ye=l=>`Invalid value for key ${l}`,We=l=>`Pattern length exceeds max of ${l}.`,Ge=l=>`Missing ${l} property in key`,Xe=l=>`Property 'weight' in key '${l}' must be a positive integer`,ce=Object.prototype.hasOwnProperty;class Ze{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let u=Ce(s);this._keys.push(u),this._keyMap[u.id]=u,n+=u.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ce(l){let t=null,n=null,s=null,u=1,r=null;if(j(l)||P(l))s=l,t=de(l),n=Z(l);else{if(!ce.call(l,"name"))throw new Error(Ge("name"));const i=l.name;if(s=i,ce.call(l,"weight")&&(u=l.weight,u<=0))throw new Error(Xe(i));t=de(i),n=Z(i),r=l.getFn}return{path:t,id:n,weight:u,src:s,getFn:r}}function de(l){return P(l)?l:l.split(".")}function Z(l){return P(l)?l.join("."):l}function et(l,t){let n=[],s=!1;const u=(r,i,a)=>{if(L(r))if(!i[a])n.push(r);else{let o=i[a];const d=r[o];if(!L(d))return;if(a===i.length-1&&(j(d)||me(d)||Ke(d)))n.push(Qe(d));else if(P(d)){s=!0;for(let c=0,m=d.length;c<m;c+=1)u(d[c],i,a+1)}else i.length&&u(d,i,a+1)}};return u(l,j(t)?t.split("."):t,0),s?n:n[0]}const tt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},lt={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(l,t)=>l.score===t.score?l.idx<t.idx?-1:1:l.score<t.score?-1:1},nt={location:0,threshold:.6,distance:100},st={useExtendedSearch:!1,getFn:et,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var E={...lt,...tt,...nt,...st};const rt=/[^ ]+/g;function ut(l=1,t=3){const n=new Map,s=Math.pow(10,t);return{get(u){const r=u.match(rt).length;if(n.has(r))return n.get(r);const i=1/Math.pow(r,.5*l),a=parseFloat(Math.round(i*s)/s);return n.set(r,a),a},clear(){n.clear()}}}class ue{constructor({getFn:t=E.getFn,fieldNormWeight:n=E.fieldNormWeight}={}){this.norm=ut(n,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((n,s)=>{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,j(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();j(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n<s;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!L(t)||X(t))return;let s={v:t,i:n,n:this.norm.get(t)};this.records.push(s)}_addObject(t,n){let s={i:n,$:{}};this.keys.forEach((u,r)=>{let i=u.getFn?u.getFn(t):this.getFn(t,u.path);if(L(i)){if(P(i)){let a=[];const o=[{nestedArrIndex:-1,value:i}];for(;o.length;){const{nestedArrIndex:d,value:c}=o.pop();if(L(c))if(j(c)&&!X(c)){let m={v:c,i:d,n:this.norm.get(c)};a.push(m)}else P(c)&&c.forEach((m,p)=>{o.push({nestedArrIndex:p,value:m})})}s.$[r]=a}else if(j(i)&&!X(i)){let a={v:i,n:this.norm.get(i)};s.$[r]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(l,t,{getFn:n=E.getFn,fieldNormWeight:s=E.fieldNormWeight}={}){const u=new ue({getFn:n,fieldNormWeight:s});return u.setKeys(l.map(Ce)),u.setSources(t),u.create(),u}function at(l,{getFn:t=E.getFn,fieldNormWeight:n=E.fieldNormWeight}={}){const{keys:s,records:u}=l,r=new ue({getFn:t,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(u),r}function Y(l,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:u=E.distance,ignoreLocation:r=E.ignoreLocation}={}){const i=t/l.length;if(r)return i;const a=Math.abs(s-n);return u?i+a/u:a?1:i}function it(l=[],t=E.minMatchCharLength){let n=[],s=-1,u=-1,r=0;for(let i=l.length;r<i;r+=1){let a=l[r];a&&s===-1?s=r:!a&&s!==-1&&(u=r-1,u-s+1>=t&&n.push([s,u]),s=-1)}return l[r-1]&&r-s>=t&&n.push([s,r-1]),n}const K=32;function ot(l,t,n,{location:s=E.location,distance:u=E.distance,threshold:r=E.threshold,findAllMatches:i=E.findAllMatches,minMatchCharLength:a=E.minMatchCharLength,includeMatches:o=E.includeMatches,ignoreLocation:d=E.ignoreLocation}={}){if(t.length>K)throw new Error(We(K));const c=t.length,m=l.length,p=Math.max(0,Math.min(s,m));let C=r,g=p;const f=a>1||o,h=f?Array(m):[];let y;for(;(y=l.indexOf(t,g))>-1;){let V=Y(t,{currentLocation:y,expectedLocation:p,distance:u,ignoreLocation:d});if(C=Math.min(V,C),g=y+c,f){let S=0;for(;S<c;)h[y+S]=1,S+=1}}g=-1;let A=[],b=1,z=c+m;const R=1<<c-1;for(let V=0;V<c;V+=1){let S=0,I=z;for(;S<I;)Y(t,{errors:V,currentLocation:p+I,expectedLocation:p,distance:u,ignoreLocation:d})<=C?S=I:z=I,I=Math.floor((z-S)/2+S);z=I;let T=Math.max(1,p-I+1),Q=i?m:Math.min(p+I,m)+c,v=Array(Q+2);v[Q+1]=(1<<V)-1;for(let x=Q;x>=T;x-=1){let _=x-1,B=n[l.charAt(_)];if(f&&(h[_]=+!!B),v[x]=(v[x+1]<<1|1)&B,V&&(v[x]|=(A[x+1]|A[x])<<1|1|A[x+1]),v[x]&R&&(b=Y(t,{errors:V,currentLocation:_,expectedLocation:p,distance:u,ignoreLocation:d}),b<=C)){if(C=b,g=_,g<=p)break;T=Math.max(1,2*p-g)}}if(Y(t,{errors:V+1,currentLocation:p,expectedLocation:p,distance:u,ignoreLocation:d})>C)break;A=v}const $={isMatch:g>=0,score:Math.max(.001,b)};if(f){const V=it(h,a);V.length?o&&($.indices=V):$.isMatch=!1}return $}function ct(l){let t={};for(let n=0,s=l.length;n<s;n+=1){const u=l.charAt(n);t[u]=(t[u]||0)|1<<s-n-1}return t}const W=String.prototype.normalize?l=>l.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,""):l=>l;class xe{constructor(t,{location:n=E.location,threshold:s=E.threshold,distance:u=E.distance,includeMatches:r=E.includeMatches,findAllMatches:i=E.findAllMatches,minMatchCharLength:a=E.minMatchCharLength,isCaseSensitive:o=E.isCaseSensitive,ignoreDiacritics:d=E.ignoreDiacritics,ignoreLocation:c=E.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:u,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:o,ignoreDiacritics:d,ignoreLocation:c},t=o?t:t.toLowerCase(),t=d?W(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const m=(C,g)=>{this.chunks.push({pattern:C,alphabet:ct(C),startIndex:g})},p=this.pattern.length;if(p>K){let C=0;const g=p%K,f=p-g;for(;C<f;)m(this.pattern.substr(C,K),C),C+=K;if(g){const h=p-K;m(this.pattern.substr(h),h)}}else m(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:s,includeMatches:u}=this.options;if(t=n?t:t.toLowerCase(),t=s?W(t):t,this.pattern===t){let f={isMatch:!0,score:0};return u&&(f.indices=[[0,t.length-1]]),f}const{location:r,distance:i,threshold:a,findAllMatches:o,minMatchCharLength:d,ignoreLocation:c}=this.options;let m=[],p=0,C=!1;this.chunks.forEach(({pattern:f,alphabet:h,startIndex:y})=>{const{isMatch:A,score:b,indices:z}=ot(t,f,h,{location:r+y,distance:i,threshold:a,findAllMatches:o,minMatchCharLength:d,includeMatches:u,ignoreLocation:c});A&&(C=!0),p+=b,A&&z&&(m=[...m,...z])});let g={isMatch:C,score:C?p/this.chunks.length:1};return C&&u&&(g.indices=m),g}}class H{constructor(t){this.pattern=t}static isMultiMatch(t){return fe(t,this.multiRegex)}static isSingleMatch(t){return fe(t,this.singleRegex)}search(){}}function fe(l,t){const n=l.match(t);return n?n[1]:null}class dt extends H{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class ft extends H{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ht extends H{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class pt extends H{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class vt extends H{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class mt extends H{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class we extends H{constructor(t,{location:n=E.location,threshold:s=E.threshold,distance:u=E.distance,includeMatches:r=E.includeMatches,findAllMatches:i=E.findAllMatches,minMatchCharLength:a=E.minMatchCharLength,isCaseSensitive:o=E.isCaseSensitive,ignoreDiacritics:d=E.ignoreDiacritics,ignoreLocation:c=E.ignoreLocation}={}){super(t),this._bitapSearch=new xe(t,{location:n,threshold:s,distance:u,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:o,ignoreDiacritics:d,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Ae extends H{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const u=[],r=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+r,u.push([s,n-1]);const i=!!u.length;return{isMatch:i,score:i?0:1,indices:u}}}const ee=[dt,Ae,ht,pt,mt,vt,ft,we],he=ee.length,gt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,yt="|";function Ct(l,t={}){return l.split(yt).map(n=>{let s=n.trim().split(gt).filter(r=>r&&!!r.trim()),u=[];for(let r=0,i=s.length;r<i;r+=1){const a=s[r];let o=!1,d=-1;for(;!o&&++d<he;){const c=ee[d];let m=c.isMultiMatch(a);m&&(u.push(new c(m,t)),o=!0)}if(!o)for(d=-1;++d<he;){const c=ee[d];let m=c.isSingleMatch(a);if(m){u.push(new c(m,t));break}}}return u})}const Et=new Set([we.type,Ae.type]);class xt{constructor(t,{isCaseSensitive:n=E.isCaseSensitive,ignoreDiacritics:s=E.ignoreDiacritics,includeMatches:u=E.includeMatches,minMatchCharLength:r=E.minMatchCharLength,ignoreLocation:i=E.ignoreLocation,findAllMatches:a=E.findAllMatches,location:o=E.location,threshold:d=E.threshold,distance:c=E.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:s,includeMatches:u,minMatchCharLength:r,findAllMatches:a,ignoreLocation:i,location:o,threshold:d,distance:c},t=n?t:t.toLowerCase(),t=s?W(t):t,this.pattern=t,this.query=Ct(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:u,ignoreDiacritics:r}=this.options;t=u?t:t.toLowerCase(),t=r?W(t):t;let i=0,a=[],o=0;for(let d=0,c=n.length;d<c;d+=1){const m=n[d];a.length=0,i=0;for(let p=0,C=m.length;p<C;p+=1){const g=m[p],{isMatch:f,indices:h,score:y}=g.search(t);if(f){if(i+=1,o+=y,s){const A=g.constructor.type;Et.has(A)?a=[...a,...h]:a.push(h)}}else{o=0,i=0,a.length=0;break}}if(i){let p={isMatch:!0,score:o/i};return s&&(p.indices=a),p}}return{isMatch:!1,score:1}}}const te=[];function wt(...l){te.push(...l)}function le(l,t){for(let n=0,s=te.length;n<s;n+=1){let u=te[n];if(u.condition(l,t))return new u(l,t)}return new xe(l,t)}const G={AND:"$and",OR:"$or"},ne={PATH:"$path",PATTERN:"$val"},se=l=>!!(l[G.AND]||l[G.OR]),At=l=>!!l[ne.PATH],_t=l=>!P(l)&&ge(l)&&!se(l),pe=l=>({[G.AND]:Object.keys(l).map(t=>({[t]:l[t]}))});function _e(l,t,{auto:n=!0}={}){const s=u=>{let r=Object.keys(u);const i=At(u);if(!i&&r.length>1&&!se(u))return s(pe(u));if(_t(u)){const o=i?u[ne.PATH]:r[0],d=i?u[ne.PATTERN]:u[o];if(!j(d))throw new Error(Ye(o));const c={keyId:Z(o),pattern:d};return n&&(c.searcher=le(d,t)),c}let a={children:[],operator:r[0]};return r.forEach(o=>{const d=u[o];P(d)&&d.forEach(c=>{a.children.push(s(c))})}),a};return se(l)||(l=pe(l)),s(l)}function Bt(l,{ignoreFieldNorm:t=E.ignoreFieldNorm}){l.forEach(n=>{let s=1;n.matches.forEach(({key:u,norm:r,score:i})=>{const a=u?u.weight:null;s*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(t?1:r))}),n.score=s})}function kt(l,t){const n=l.matches;t.matches=[],L(n)&&n.forEach(s=>{if(!L(s.indices)||!s.indices.length)return;const{indices:u,value:r}=s;let i={indices:u,value:r};s.key&&(i.key=s.key.src),s.idx>-1&&(i.refIndex=s.idx),t.matches.push(i)})}function bt(l,t){t.score=l.score}function Ft(l,t,{includeMatches:n=E.includeMatches,includeScore:s=E.includeScore}={}){const u=[];return n&&u.push(kt),s&&u.push(bt),l.map(r=>{const{idx:i}=r,a={item:t[i],refIndex:i};return u.length&&u.forEach(o=>{o(r,a)}),a})}class q{constructor(t,n={},s){this.options={...E,...n},this.options.useExtendedSearch,this._keyStore=new Ze(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof ue))throw new Error(Je);this._myIndex=n||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){L(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,u=this._docs.length;s<u;s+=1){const r=this._docs[s];t(r,s)&&(this.removeAt(s),s-=1,u-=1,n.push(r))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:s,includeScore:u,shouldSort:r,sortFn:i,ignoreFieldNorm:a}=this.options;let o=j(t)?j(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Bt(o,{ignoreFieldNorm:a}),r&&o.sort(i),me(n)&&n>-1&&(o=o.slice(0,n)),Ft(o,this._docs,{includeMatches:s,includeScore:u})}_searchStringList(t){const n=le(t,this.options),{records:s}=this._myIndex,u=[];return s.forEach(({v:r,i,n:a})=>{if(!L(r))return;const{isMatch:o,score:d,indices:c}=n.searchIn(r);o&&u.push({item:r,idx:i,matches:[{score:d,value:r,norm:a,indices:c}]})}),u}_searchLogical(t){const n=_e(t,this.options),s=(a,o,d)=>{if(!a.children){const{keyId:m,searcher:p}=a,C=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(o,m),searcher:p});return C&&C.length?[{idx:d,item:o,matches:C}]:[]}const c=[];for(let m=0,p=a.children.length;m<p;m+=1){const C=a.children[m],g=s(C,o,d);if(g.length)c.push(...g);else if(a.operator===G.AND)return[]}return c},u=this._myIndex.records,r={},i=[];return u.forEach(({$:a,i:o})=>{if(L(a)){let d=s(n,a,o);d.length&&(r[o]||(r[o]={idx:o,item:a,matches:[]},i.push(r[o])),d.forEach(({matches:c})=>{r[o].matches.push(...c)}))}}),i}_searchObjectList(t){const n=le(t,this.options),{keys:s,records:u}=this._myIndex,r=[];return u.forEach(({$:i,i:a})=>{if(!L(i))return;let o=[];s.forEach((d,c)=>{o.push(...this._findMatches({key:d,value:i[c],searcher:n}))}),o.length&&r.push({idx:a,item:i,matches:o})}),r}_findMatches({key:t,value:n,searcher:s}){if(!L(n))return[];let u=[];if(P(n))n.forEach(({v:r,i,n:a})=>{if(!L(r))return;const{isMatch:o,score:d,indices:c}=s.searchIn(r);o&&u.push({score:d,key:t,value:r,idx:i,norm:a,indices:c})});else{const{v:r,n:i}=n,{isMatch:a,score:o,indices:d}=s.searchIn(r);a&&u.push({score:o,key:t,value:r,norm:i,indices:d})}return u}}q.version="7.1.0";q.createIndex=Ee;q.parseIndex=at;q.config=E;q.parseQuery=_e;wt(xt);const[Mt,J]=Ie.createInjectionState(l=>{const t=e.reactive(l);function n(a,o){M.isEmpty(o)?delete t.queryForm[a]:t.queryForm[a]=o}function s(a){const o=t.tags.findIndex(d=>d.label===a.label);o===-1?t.tags.push(a):t.tags.splice(o,1,a)}function u(a,o){if(delete t.queryForm[a.label],o)t.tags.splice(o,1);else{const d=t.tags.findIndex(c=>c.label===a.label);d!==-1&&t.tags.splice(d,1)}}function r(){t.tags.forEach(a=>{delete t.queryForm[a.label]}),t.tags=[]}function i(){Object.keys(t.queryForm).forEach(a=>{delete t.queryForm[a]}),t.tags=[]}return{state:t,setQuery:n,addTag:s,reduceTag:u,reduceAllTag:r,clearQuery:i}}),Vt={class:"el-select-pop-search-container"},St={class:"el-select-dropdown__wrap virtual-scroll-wrap"},Nt={class:"check-all ak-relative el-select-dropdown__item"},It=["title"],Dt={class:"el-select-dropdown__empty"},zt={class:"custom-multi-footer"},Lt=e.defineComponent({name:"jc-select-query",__name:"index",props:{field:{type:String,required:!0,default:""},options:{type:Array,default:()=>[],required:!0},allowCreate:{type:Boolean,default:!0},keyField:{type:Array,default:()=>["label","value"]},width:{type:String,default:"160px"},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},footerBtnName:{type:String,default:"搜索"},maxScrollHeight:{type:String,default:"240px"},isNeedFooter:{type:Boolean,default:!0}},setup(l,{expose:t}){const n=l,s=e.ref(),u=e.ref([]),r=e.reactive({}),i=e.ref(""),a=e.ref(),o=e.ref([]),d=e.ref([]),c=e.ref([]),m=e.ref(!1),p=e.ref(!1),{state:C,setQuery:g}=J();let f=-1,h=!1;const y=e.ref(),A=v=>{v&&(c.value=u.value,i.value="",d.value=o.value,S(c.value),e.nextTick(()=>{var w;(w=a.value)==null||w.focus()}))},b=v=>{c.value=c.value.filter(w=>w.value!==v.value)},z=v=>{g(n.field,v)},R=()=>{const v=i.value.trim();v!==""?d.value=y.value.search(v).map(w=>w.item):d.value=o.value},$=()=>{M.isEmpty(i.value)||d.value.map(v=>v.value).includes(i.value)||(o.value.unshift({label:i.value,value:i.value}),c.value.push({label:i.value,value:i.value}),u.value=c.value,g(n.field,u.value),e.nextTick(()=>{y.value=new q(o.value,{keys:n.keyField}),R()}))},V=v=>{c.value=v?d.value:[],p.value=!1,n.isNeedFooter||(u.value=c.value,g(n.field,u.value))},S=v=>{if(v.length===0){m.value=!1,p.value=!1;return}const w=v.length;m.value=w===d.value.length,p.value=w>0&&w<d.value.length;const{options:x}=n;let _=0;if(v.length>0){const B=v[v.length-1];_=x.findIndex(F=>F.value===B.value)}if(h){const B=Math.abs(f-_)+1,F=Math.min(f,_);let D=0;for(;D<B;){const N=F+D;M.findIndex(v,x[N])===-1&&c.value.push(x[N]),D++}}n.isNeedFooter||(u.value=c.value,g(n.field,u.value))},I=v=>{!h&&!c.value.includes(v)&&(f=o.value.findIndex(w=>w.value===v.value))},T=()=>{var v;(v=s.value)==null||v.blur()},Q=()=>{u.value=c.value,g(n.field,u.value),T()};return e.watch(()=>n.options,()=>{var v;!M.isArray(n.options)||((v=n.options)==null?void 0:v.length)===0||(d.value=n.options,o.value=M.cloneDeep(n.options),y.value=new q(o.value,{keys:n.keyField,threshold:.1}))},{immediate:!0,deep:!0}),e.watch(()=>C.queryForm[n.field],v=>{M.isEmpty(v)?(u.value=[],c.value=[]):u.value=M.isArray(v)?v:[]},{deep:!0}),e.onMounted(()=>{window.addEventListener("keydown",v=>{v.shiftKey&&(h=!0)}),window.addEventListener("keyup",()=>{h=!1}),e.nextTick(()=>{y.value=new q(o.value,{keys:n.keyField})})}),e.onUnmounted(()=>{window.removeEventListener("keydown",v=>{v.shiftKey&&(h=!0)}),window.removeEventListener("keyup",()=>{h=!1})}),e.onMounted(()=>{var v;s.value&&(r.focus=s.value.focus,r.blur=s.value.blur,r.selectedLabel=(v=s.value)==null?void 0:v.selectedLabel)}),t(r),(v,w)=>(e.openBlock(),e.createBlock(e.unref(k.ElSelect),e.mergeProps({ref_key:"selectRef",ref:s,modelValue:u.value,"onUpdate:modelValue":w[3]||(w[3]=x=>u.value=x)},v.$attrs,{multiple:"",clearable:"","show-arrow":!1,"collapse-tags":!0,"collapse-tags-tooltip":!0,"max-collapse-tags":1,size:l.size,style:{width:l.width},class:"jc-select","popper-class":"jc-select-popper",placeholder:"请选择",onVisibleChange:A,onRemoveTag:b,onChange:z}),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(k.ElOption),{value:"1",hidden:""}),e.createElementVNode("div",Vt,[e.createVNode(e.unref(re),{class:"selcet-icon search-icon"}),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:a,"onUpdate:modelValue":w[0]||(w[0]=x=>i.value=x),class:"el-select-pop__input",onInput:R},null,544),[[e.vModelText,i.value]]),l.allowCreate?(e.openBlock(),e.createBlock(e.unref(ze),{key:0,class:"selcet-icon circle-icon",onClick:$})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",St,[e.createElementVNode("li",Nt,[e.createVNode(e.unref(k.ElCheckbox),{modelValue:m.value,"onUpdate:modelValue":w[1]||(w[1]=x=>m.value=x),indeterminate:p.value,size:l.size,onChange:V},{default:e.withCtx(()=>w[4]||(w[4]=[e.createTextVNode("全选")])),_:1,__:[4]},8,["modelValue","indeterminate","size"])]),e.createVNode(e.unref(k.ElCheckboxGroup),{modelValue:c.value,"onUpdate:modelValue":w[2]||(w[2]=x=>c.value=x),onChange:S,size:l.size},{default:e.withCtx(()=>[e.createVNode(e.unref(Ne.RecycleScroller),{class:"recycle-scroller",items:d.value,"item-size":30,"key-field":"value",style:e.normalizeStyle({maxHeight:l.maxScrollHeight})},{default:e.withCtx(({item:x})=>[e.createElementVNode("li",{class:"el-select-dropdown__item",title:x.label},[e.createVNode(e.unref(k.ElCheckbox),{size:l.size,value:x,label:x,disabled:x.disabled,onClick:_=>I(x)},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{scope:x},()=>[e.createElementVNode("span",null,e.toDisplayString(x.label),1)])]),_:2},1032,["size","value","label","disabled","onClick"])],8,It)]),_:3},8,["items","style"])]),_:3},8,["modelValue","size"])],512),[[e.vShow,d.value.length>0]]),e.withDirectives(e.createElementVNode("p",Dt,"无数据",512),[[e.vShow,d.value.length===0]])]),_:2},[l.isNeedFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",zt,[w[6]||(w[6]=e.createElementVNode("span",{class:"shift-tips"},[e.createElementVNode("span",null,"提示:按住Shift可以快速多选")],-1)),w[7]||(w[7]=e.createElementVNode("span",{class:"counts"},null,-1)),e.createElementVNode("span",null,[e.createVNode(e.unref(k.ElButton),{size:l.size,link:"",type:"primary",onClick:T},{default:e.withCtx(()=>w[5]||(w[5]=[e.createTextVNode("关闭")])),_:1,__:[5]},8,["size"]),e.createVNode(e.unref(k.ElButton),{type:"primary",size:l.size,onClick:Q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.footerBtnName),1)]),_:1},8,["size"])])])]),key:"0"}:void 0]),1040,["modelValue","size","style"]))}}),$t=l=>(l.install=t=>{const n=l.name;t.component(n,l)},l),Be=$t(Lt),Tt=e.defineComponent({name:"jc-date-picker",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},type:{type:String,default:"daterange",validator:l=>["daterange","monthrange"].includes(l)},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(l,{expose:t,emit:n}){const s=l,u=n,r=e.ref([]),i=e.ref([]),a=e.ref(""),o=e.ref(""),{state:d,setQuery:c}=J(),m=()=>{s.fieldList.forEach(h=>{c(h.value,null)})},p=h=>{m(),c(h,r.value),u("fieldChange",h)},C=()=>{o.value=a.value,i.value=r.value,c(a.value,r.value)};e.watch(()=>s.fieldList,h=>{!M.isEmpty(h)&&M.isEmpty(a.value)&&(a.value=h[0].value,r.value=[])},{immediate:!0,deep:!0}),e.watch(s.fieldList.map(h=>()=>d.queryForm[h.value]),h=>{const y=h.findIndex(A=>!M.isEmpty(A));y===-1?(a.value=s.fieldList[0].value,r.value=[]):(a.value=s.fieldList[y].value,r.value=h[y]||[])},{deep:!0});const g=e.ref(),f=e.reactive({});return e.onMounted(()=>{var h,y,A,b;g.value&&(f.focus=(h=g.value)==null?void 0:h.focus,f.blur=(y=g.value)==null?void 0:y.blur,f.handleOpen=(A=g.value)==null?void 0:A.handleOpen,f.handleClose=(b=g.value)==null?void 0:b.handleClose)}),t(f),(h,y)=>(e.openBlock(),e.createElementBlock("div",{class:"jc-date-picker",style:e.normalizeStyle({width:l.width})},[e.createVNode(e.unref(k.ElSelect),{modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=A=>a.value=A),size:l.size,class:"select-field",onChange:p},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((l.fieldList.find(A=>A.value===a.value)||{}).label),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.fieldList,A=>(e.openBlock(),e.createBlock(e.unref(k.ElOption),{key:A.value,label:A.label,value:A.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"]),e.createVNode(e.unref(k.ElDatePicker),e.mergeProps({ref_key:"datePickerRef",ref:g,modelValue:r.value,"onUpdate:modelValue":y[1]||(y[1]=A=>r.value=A),type:l.type},h.$attrs,{"range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",size:l.size,"value-format":l.type==="daterange"?"YYYY-MM-DD":"YYYY-MM",onChange:C}),null,16,["modelValue","type","size","value-format"])],4))}}),Ot=l=>(l.install=t=>{const n=l.name;t.component(n,l)},l),ke=Ot(Tt),jt={class:"suffixContent"},Rt=e.defineComponent({name:"jc-input-switch",__name:"index",props:{fieldList:{type:Array,required:!0,default:()=>[]},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(l,{expose:t,emit:n}){const s=l,u=n,r=e.ref(""),i=e.ref(""),a=e.ref(""),o=e.ref(""),{state:d,setQuery:c}=J(),m=()=>{s.fieldList.forEach(y=>{c(y.value,null)})},p=()=>{r.value="",m()},C=y=>{m(),c(y,r.value),u("fieldChange",y)},g=()=>{i.value=r.value,o.value=a.value,c(a.value,r.value.trim())};e.watch(()=>s.fieldList,y=>{!M.isEmpty(y)&&M.isEmpty(a.value)&&(a.value=y[0].value,r.value="")},{immediate:!0,deep:!0}),e.watch(s.fieldList.map(y=>()=>d.queryForm[y.value]),y=>{const A=y.findIndex(b=>!M.isEmpty(b));A===-1?(a.value=s.fieldList[0].value,r.value=""):(a.value=s.fieldList[A].value,r.value=y[A]||"")},{deep:!0});const f=e.ref(),h=e.reactive({});return e.onMounted(()=>{var y,A,b,z,R,$,V,S,I,T;f.value&&(h.blur=(y=f.value)==null?void 0:y.blur,h.clear=(A=f.value)==null?void 0:A.clear,h.focus=(b=f.value)==null?void 0:b.focus,h.input=(z=f.value)==null?void 0:z.input,h.ref=(R=f.value)==null?void 0:R.ref,h.resizeTextarea=($=f.value)==null?void 0:$.resizeTextarea,h.select=(V=f.value)==null?void 0:V.select,h.textarea=(S=f.value)==null?void 0:S.textarea,h.textareaStyle=(I=f.value)==null?void 0:I.textareaStyle,h.isComposing=(T=f.value)==null?void 0:T.isComposing)}),t(h),(y,A)=>(e.openBlock(),e.createBlock(e.unref(k.ElInput),e.mergeProps({ref_key:"inputRef",ref:f,modelValue:r.value,"onUpdate:modelValue":A[1]||(A[1]=b=>r.value=b),modelModifiers:{trim:!0}},y.$attrs,{placeholder:"请输入内容",style:{width:l.width},size:l.size,class:"jc-input jc-input-switch"}),{prepend:e.withCtx(()=>[e.createVNode(e.unref(k.ElSelect),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=b=>a.value=b),size:l.size,class:"select-field",onChange:C},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((l.fieldList.find(b=>b.value===a.value)||{}).label),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.fieldList,b=>(e.openBlock(),e.createBlock(e.unref(k.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:e.withCtx(()=>[e.createElementVNode("div",jt,[e.withDirectives(e.createVNode(e.unref(k.ElIcon),{class:"el-input__icon",onClick:p},{default:e.withCtx(()=>[e.createVNode(e.unref(ve))]),_:1},512),[[e.vShow,r.value]]),e.createVNode(e.unref(k.ElIcon),{class:"el-input__icon",onClick:g},{default:e.withCtx(()=>[e.createVNode(e.unref(re))]),_:1})])]),_:1},16,["modelValue","style","size"]))}}),Pt=l=>(l.install=t=>{const n=l.name;t.component(n,l)},l),be=Pt(Rt),qt={class:"suffixContent"},Ht={class:"popover-body"},Qt={class:"popover-btn"},Kt={class:"popover-btn-right"},Ut=e.defineComponent({name:"jc-input-complex",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(l,{expose:t,emit:n}){const s=l,u=n,r=e.ref(""),i=e.ref(""),a=e.ref(""),o=e.ref(""),d=e.ref(!1),c=e.computed(()=>a.value+"List"),m=e.computed(()=>{var _;return(_=s.fieldList.find(B=>B.value===a.value))==null?void 0:_.label}),p=e.ref(""),{state:C,setQuery:g,addTag:f,reduceTag:h}=J(),y={},A={};s.fieldList.forEach(_=>{y[_.value]=null,A[_.value+"List"]=[]});const b=_=>{d.value=!1,z(),u("fieldChange",_)},z=()=>{C.queryForm[c.value]?p.value=C.queryForm[c.value].join(`
2
- `):p.value=""},R=()=>{r.value="",g(a.value,null),S()},$=()=>{for(const _ in y)g(_,null)},V=()=>{p.value="",i.value=r.value,o.value=a.value,$(),g(c.value,null),h({label:c.value,value:""}),g(a.value,r.value.trim())},S=()=>{const _=p.value.split(`
3
- `).filter(B=>!M.isEmpty(B));if(_.length>0){const B=[...new Set(_)],F=M.filter(_,(N,O,U)=>M.includes(U,N,O+1)),D=[...new Set(F)];if(D.length>0){const N=s.fieldList.find(U=>U.value===a.value),O=`搜索条件中包含重复的内容:${N==null?void 0:N.label}:${D.join(`
4
- `)}`;k.ElMessage.warning(O)}p.value=B.join(`
5
- `),$(),g(c.value,B),f({label:c.value,value:`${m.value}:${B.join(",")}`})}else g(c.value,null),h({label:c.value,value:""});I()},I=()=>{d.value=!1},T=()=>{r.value="",p.value="",i.value="",I()},Q=_=>{Object.keys(_).forEach(B=>{a.value=B.replace("List",""),p.value=_[B].join(`
6
- `),S()})},v=()=>{!M.isEmpty(r.value)&&(r.value!==i.value||a.value!==o.value)?(i.value=r.value,o.value=a.value,$(),g(c.value,null),h({label:c.value,value:""}),g(a.value,r.value.trim())):M.isEmpty(r.value)&&(i.value=r.value,g(a.value,null))};e.watch(()=>s.fieldList,_=>{!M.isEmpty(_)&&M.isEmpty(a.value)&&(a.value=_[0].value,r.value="",p.value="")},{immediate:!0,deep:!0}),e.watch(s.fieldList.flatMap(_=>[()=>C.queryForm[_.value],()=>C.queryForm[_.value+"List"]]),_=>{if(_.findIndex(D=>!M.isEmpty(D))===-1){T();return}let F=!1;s.fieldList.forEach(D=>{var O;const N=D.value+"List";if(p.value=((O=C.queryForm[N])==null?void 0:O.join(`
7
- `))||"",M.isArray(C.queryForm[N])&&!M.isEmpty(C.queryForm[N])){f({label:N,value:`${D.label}:${C.queryForm[N].join(",")}`});return}else h({label:N,value:""});C.queryForm[D.value]?(F=!0,a.value=D.value,r.value=C.queryForm[D.value]||""):F||(r.value="")})},{deep:!0});const w=e.ref(),x=e.reactive({});return e.onMounted(()=>{var _,B,F,D,N,O,U,ae,ie,oe;w.value&&(x.blur=(_=w.value)==null?void 0:_.blur,x.clear=(B=w.value)==null?void 0:B.clear,x.focus=(F=w.value)==null?void 0:F.focus,x.input=(D=w.value)==null?void 0:D.input,x.ref=(N=w.value)==null?void 0:N.ref,x.resizeTextarea=(O=w.value)==null?void 0:O.resizeTextarea,x.select=(U=w.value)==null?void 0:U.select,x.textarea=(ae=w.value)==null?void 0:ae.textarea,x.textareaStyle=(ie=w.value)==null?void 0:ie.textareaStyle,x.isComposing=(oe=w.value)==null?void 0:oe.isComposing)}),x.setInputValueMult=Q,x.setInputByOutside=v,t(x),(_,B)=>(e.openBlock(),e.createBlock(e.unref(k.ElInput),e.mergeProps({ref_key:"inputRef",ref:w,modelValue:r.value,"onUpdate:modelValue":B[5]||(B[5]=F=>r.value=F),modelModifiers:{trim:!0}},_.$attrs,{placeholder:"请输入内容",style:{width:l.width},class:"jc-input jc-input-complex search-input",size:l.size}),{prepend:e.withCtx(()=>[e.createVNode(e.unref(k.ElSelect),{ref:"selectRef",modelValue:a.value,"onUpdate:modelValue":B[0]||(B[0]=F=>a.value=F),size:l.size,class:"select-field",onChange:b},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((l.fieldList.find(F=>F.value===a.value)||{}).label),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.fieldList,F=>(e.openBlock(),e.createBlock(e.unref(k.ElOption),{key:F.value,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:e.withCtx(()=>[e.createElementVNode("div",qt,[e.withDirectives(e.createVNode(e.unref(k.ElIcon),{class:"el-input__icon",onClick:R},{default:e.withCtx(()=>[e.createVNode(e.unref(ve))]),_:1},512),[[e.vShow,r.value]]),e.createVNode(e.unref(k.ElIcon),{class:"el-input__icon",onClick:V},{default:e.withCtx(()=>[e.createVNode(e.unref(re))]),_:1}),e.createVNode(e.unref(k.ElPopover),{visible:d.value,"onUpdate:visible":B[4]||(B[4]=F=>d.value=F),placement:"bottom-end",width:"240","show-arrow":!1,"popper-class":"jc-input-pop",trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(e.unref(k.ElIcon),{class:"el-input__icon",title:"多项搜索",style:{"background-color":"#f0f2f5"},onClick:z},{default:e.withCtx(()=>[e.createVNode(e.unref(je))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Ht,[e.createVNode(e.unref(k.ElInput),e.mergeProps({modelValue:p.value,"onUpdate:modelValue":B[1]||(B[1]=F=>p.value=F),type:"textarea"},_.$attrs,{size:l.size,placeholder:"一行一项",class:"popover-textarea",wrap:"off"}),null,16,["modelValue","size"]),e.createElementVNode("div",Qt,[e.createVNode(e.unref(k.ElButton),{size:l.size,onClick:B[2]||(B[2]=F=>p.value="")},{default:e.withCtx(()=>B[6]||(B[6]=[e.createTextVNode("清空")])),_:1,__:[6]},8,["size"]),e.createElementVNode("div",Kt,[e.createVNode(e.unref(k.ElButton),{size:l.size,link:"",type:"primary",onClick:I},{default:e.withCtx(()=>B[7]||(B[7]=[e.createTextVNode("关闭")])),_:1,__:[7]},8,["size"]),e.createVNode(e.unref(k.ElButton),{type:"primary",size:l.size,onClick:B[3]||(B[3]=F=>S())},{default:e.withCtx(()=>B[8]||(B[8]=[e.createTextVNode("搜索")])),_:1,__:[8]},8,["size"])])])])]),_:1},8,["visible"])])]),_:1},16,["modelValue","style","size"]))}}),Jt=l=>(l.install=t=>{const n=l.name;t.component(n,l)},l),Fe=Jt(Ut),Yt={style:{display:"flex","flex-wrap":"wrap",flex:"1","flex-basis":"calc(100% - 50px)","font-size":"12px","margin-top":"4px"}},Wt=e.defineComponent({name:"jc-tag-query",__name:"index",setup(l){const{state:t,reduceTag:n,reduceAllTag:s}=J();return(u,r)=>(e.openBlock(),e.createElementBlock("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).tags,(i,a)=>(e.openBlock(),e.createBlock(e.unref(k.ElTag),e.mergeProps({ref_for:!0},u.$attrs,{key:i.label,closable:"",style:[{height:"auto","max-height":"26px","white-space":"normal","text-align":"left","max-width":"1800px",overflow:"hidden","word-break":"break-word","text-overflow":"ellipsis"},{marginLeft:a>0?"4px":"0px"}],onClose:o=>e.unref(n)(i,a)}),{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(i.value),1)]),_:2},1040,["style","onClose"]))),128)),e.unref(t).tags.length>1?(e.openBlock(),e.createElementBlock("span",{key:0,style:{"margin-left":"10px","margin-top":"2px",display:"block"},onClick:r[0]||(r[0]=(...i)=>e.unref(s)&&e.unref(s)(...i))},[e.createVNode(e.unref(k.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Te))]),_:1})])):e.createCommentVNode("",!0)]))}}),Me=(l,t)=>{const n=l.__vccOpts||l;for(const[s,u]of t)n[s]=u;return n},Gt=Me(Wt,[["__scopeId","data-v-99c0d2b1"]]),Xt=l=>(l.install=t=>{const n=l.name;t.component(n,l)},l),Ve=Xt(Gt),Zt={class:"popover-btn"},el={class:"popover-btn-right"},tl=e.defineComponent({name:"jc-more-query-contain",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},customTagObj:{type:Object,default:()=>({})},width:{type:Number,default:400},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)}},setup(l,{expose:t}){const n=e.ref(!1),s=e.ref({}),u=l,{state:r,setQuery:i,addTag:a,reduceTag:o}=J(),d=()=>{n.value=!n.value,n.value&&u.fieldList.forEach(f=>{s.value[f.value]=r.queryForm[f.value]||null})},c=()=>{s.value={},u.fieldList.forEach(f=>{i(f.value,null),o({label:f.value,value:""})}),n.value=!1},m=(f,h)=>{typeof s.value[f]=="string"||typeof s.value[f]=="number"?a({label:f,value:`${h}:${M.isEmpty(u.customTagObj[f])?s.value[f]:u.customTagObj[f]}`}):a({label:f,value:`${h}:${M.isEmpty(u.customTagObj[f])?s.value[f].join(","):u.customTagObj[f]}`})},p=()=>{for(const f in s.value){i(f,s.value[f]||null);const h=u.fieldList.find(y=>y.value===f);h===void 0&&k.ElMessage.warning("传入的fieldList和表单绑定的字段不匹配"),m(f,h.label)}n.value=!1};e.watch(u.fieldList.map(f=>()=>r.queryForm[f.value]),()=>{u.fieldList.forEach(f=>{s.value[f.value]=r.queryForm[f.value],M.isEmpty(r.queryForm[f.value])?o({label:f.value,value:""}):m(f.value,f.label)})},{deep:!0});const C=e.ref(),g=e.reactive({});return e.onMounted(()=>{var f;C.value&&(g.hide=(f=C.value)==null?void 0:f.hide)}),t(g),(f,h)=>(e.openBlock(),e.createBlock(e.unref(k.ElPopover),e.mergeProps({ref_key:"popoverRef",ref:C},f.$attrs,{visible:n.value,placement:"bottom",width:l.width,"show-arrow":!1,"popper-class":"moreQuery-pop",trigger:"click"}),{reference:e.withCtx(()=>[e.createVNode(e.unref(k.ElButton),{size:l.size,icon:e.unref(Pe),onClick:d},null,8,["size","icon"])]),default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{scopeForm:s.value},void 0,!0),e.createElementVNode("div",Zt,[e.createVNode(e.unref(k.ElButton),{size:l.size,onClick:c},{default:e.withCtx(()=>h[1]||(h[1]=[e.createTextVNode("清空")])),_:1,__:[1]},8,["size"]),e.createElementVNode("div",el,[e.createVNode(e.unref(k.ElButton),{size:l.size,onClick:h[0]||(h[0]=y=>n.value=!1)},{default:e.withCtx(()=>h[2]||(h[2]=[e.createTextVNode("关闭")])),_:1,__:[2]},8,["size"]),e.createVNode(e.unref(k.ElButton),{type:"primary",size:l.size,onClick:p},{default:e.withCtx(()=>h[3]||(h[3]=[e.createTextVNode("搜索")])),_:1,__:[3]},8,["size"])])])]),_:3},16,["visible","width"]))}}),ll=Me(tl,[["__scopeId","data-v-775b8567"]]),nl=l=>(l.install=t=>{const n=l.name;t.component(n,l)},l),Se=nl(ll),sl=Object.freeze(Object.defineProperty({__proto__:null,JcDatePicker:ke,JcInputComplex:Fe,JcInputSwitch:be,JcMoreQueryContain:Se,JcSelectQuery:Be,JcTagQuery:Ve},Symbol.toStringTag,{value:"Module"})),rl=()=>{const l=e.reactive({queryForm:{},tags:[]}),{state:t,setQuery:n,addTag:s,reduceTag:u,reduceAllTag:r,clearQuery:i}=Mt(l);return{queryForm:t.queryForm,setQuery:n,addTag:s,reduceTag:u,reduceAllTag:r,clearQuery:i}},ul={install:l=>{for(const t of Object.values(sl))l.use(t)}};exports.JcDatePicker=ke;exports.JcInputComplex=Fe;exports.JcInputSwitch=be;exports.JcMoreQueryContain=Se;exports.JcSelectQuery=Be;exports.JcTagQuery=Ve;exports.default=ul;exports.reactiveQuery=rl;
8
- //# sourceMappingURL=index.cjs.map
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("element-plus");require("element-plus/es/components/select/style/css"),require("element-plus/es/components/option/style/css"),require("element-plus/es/components/checkbox-group/style/css"),require("element-plus/es/components/checkbox/style/css"),require("element-plus/es/components/button/style/css");const B=require("/Users/zhuang/Desktop/bscjc/node_modules/.pnpm/@element-plus+icons-vue@2.3.1_vue@3.5.17_typescript@5.8.3_/node_modules/@element-plus/icons-vue/dist/index.js"),k=require("/Users/zhuang/Desktop/bscjc/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js"),ee=require("vue-virtual-scroller");require("vue-virtual-scroller/dist/vue-virtual-scroller.css");const A=require("/Users/zhuang/Desktop/bscjc/node_modules/.pnpm/fuse.js@7.1.0/node_modules/fuse.js/dist/fuse.mjs"),le=require("/Users/zhuang/Desktop/bscjc/node_modules/.pnpm/@vueuse+shared@13.5.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.mjs");require("element-plus/es/components/date-picker/style/css"),require("element-plus/es/components/input/style/css"),require("element-plus/es/components/icon/style/css"),require("element-plus/es/components/popover/style/css"),require("element-plus/es/components/message/style/css"),require("element-plus/es/components/tag/style/css");const[te,D]=le.createInjectionState(l=>{const r=e.reactive(l);function o(a,w){k.isEmpty(w)?delete r.queryForm[a]:r.queryForm[a]=w}function i(a){const w=r.tags.findIndex(C=>C.label===a.label);w===-1?r.tags.push(a):r.tags.splice(w,1,a)}function v(a,w){if(delete r.queryForm[a.label],w)r.tags.splice(w,1);else{const C=r.tags.findIndex(f=>f.label===a.label);C!==-1&&r.tags.splice(C,1)}}function u(){r.tags.forEach(a=>{delete r.queryForm[a.label]}),r.tags=[]}function h(){Object.keys(r.queryForm).forEach(a=>{delete r.queryForm[a]}),r.tags=[]}return{state:r,setQuery:o,addTag:i,reduceTag:v,reduceAllTag:u,clearQuery:h}}),ae={class:"el-select-pop-search-container"},ne={class:"el-select-dropdown__wrap virtual-scroll-wrap"},ue={class:"check-all ak-relative el-select-dropdown__item"},oe=["title"],re={class:"el-select-dropdown__empty"},ie={class:"custom-multi-footer"},se=e.defineComponent({name:"jc-select-query",__name:"index",props:{field:{type:String,required:!0,default:""},options:{type:Array,default:()=>[],required:!0},allowCreate:{type:Boolean,default:!0},keyField:{type:Array,default:()=>["label","value"]},width:{type:String,default:"160px"},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},footerBtnName:{type:String,default:"搜索"},maxScrollHeight:{type:String,default:"240px"},isNeedFooter:{type:Boolean,default:!0}},setup(l,{expose:r}){const o=l,i=e.ref(),v=e.ref([]),u=e.reactive({}),h=e.ref(""),a=e.ref(),w=e.ref([]),C=e.ref([]),f=e.ref([]),I=e.ref(!1),E=e.ref(!1),{state:z,setQuery:V}=D();let t=-1,n=!1;const c=e.ref(),x=s=>{s&&(f.value=v.value,h.value="",C.value=w.value,F(f.value),e.nextTick(()=>{var d;(d=a.value)==null||d.focus()}))},N=s=>{f.value=f.value.filter(d=>d.value!==s.value)},j=s=>{V(o.field,s)},M=()=>{const s=h.value.trim();s!==""?C.value=c.value.search(s).map(d=>d.item):C.value=w.value},T=()=>{k.isEmpty(h.value)||C.value.map(s=>s.value).includes(h.value)||(w.value.unshift({label:h.value,value:h.value}),f.value.push({label:h.value,value:h.value}),v.value=f.value,V(o.field,v.value),e.nextTick(()=>{c.value=new A(w.value,{keys:o.keyField}),M()}))},Q=s=>{f.value=s?C.value:[],E.value=!1,o.isNeedFooter||(v.value=f.value,V(o.field,v.value))},F=s=>{if(s.length===0){I.value=!1,E.value=!1;return}const d=s.length;I.value=d===C.value.length,E.value=d>0&&d<C.value.length;const{options:g}=o;let m=0;if(s.length>0){const p=s[s.length-1];m=g.findIndex(b=>b.value===p.value)}if(n){const p=Math.abs(t-m)+1,b=Math.min(t,m);let q=0;for(;q<p;){const S=b+q;k.findIndex(s,g[S])===-1&&f.value.push(g[S]),q++}}o.isNeedFooter||(v.value=f.value,V(o.field,v.value))},$=s=>{!n&&!f.value.includes(s)&&(t=w.value.findIndex(d=>d.value===s.value))},O=()=>{var s;(s=i.value)==null||s.blur()},_=()=>{v.value=f.value,V(o.field,v.value),O()};return e.watch(()=>o.options,()=>{var s;!k.isArray(o.options)||((s=o.options)==null?void 0:s.length)===0||(C.value=o.options,w.value=k.cloneDeep(o.options),c.value=new A(w.value,{keys:o.keyField,threshold:.1}))},{immediate:!0,deep:!0}),e.watch(()=>z.queryForm[o.field],s=>{k.isEmpty(s)?(v.value=[],f.value=[]):v.value=k.isArray(s)?s:[]},{deep:!0}),e.onMounted(()=>{window.addEventListener("keydown",s=>{s.shiftKey&&(n=!0)}),window.addEventListener("keyup",()=>{n=!1}),e.nextTick(()=>{c.value=new A(w.value,{keys:o.keyField})})}),e.onUnmounted(()=>{window.removeEventListener("keydown",s=>{s.shiftKey&&(n=!0)}),window.removeEventListener("keyup",()=>{n=!1})}),e.onMounted(()=>{var s;i.value&&(u.focus=i.value.focus,u.blur=i.value.blur,u.selectedLabel=(s=i.value)==null?void 0:s.selectedLabel)}),r(u),(s,d)=>(e.openBlock(),e.createBlock(e.unref(y.ElSelect),e.mergeProps({ref_key:"selectRef",ref:i,modelValue:v.value,"onUpdate:modelValue":d[3]||(d[3]=g=>v.value=g)},s.$attrs,{multiple:"",clearable:"","show-arrow":!1,"collapse-tags":!0,"collapse-tags-tooltip":!0,"max-collapse-tags":1,size:l.size,style:{width:l.width},class:"jc-select","popper-class":"jc-select-popper",placeholder:"请选择",onVisibleChange:x,onRemoveTag:N,onChange:j}),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(y.ElOption),{value:"1",hidden:""}),e.createElementVNode("div",ae,[e.createVNode(e.unref(B.Search),{class:"selcet-icon search-icon"}),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=g=>h.value=g),class:"el-select-pop__input",onInput:M},null,544),[[e.vModelText,h.value]]),l.allowCreate?(e.openBlock(),e.createBlock(e.unref(B.CirclePlus),{key:0,class:"selcet-icon circle-icon",onClick:T})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",ne,[e.createElementVNode("li",ue,[e.createVNode(e.unref(y.ElCheckbox),{modelValue:I.value,"onUpdate:modelValue":d[1]||(d[1]=g=>I.value=g),indeterminate:E.value,size:l.size,onChange:Q},{default:e.withCtx(()=>d[4]||(d[4]=[e.createTextVNode("全选")])),_:1,__:[4]},8,["modelValue","indeterminate","size"])]),e.createVNode(e.unref(y.ElCheckboxGroup),{modelValue:f.value,"onUpdate:modelValue":d[2]||(d[2]=g=>f.value=g),onChange:F,size:l.size},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.RecycleScroller),{class:"recycle-scroller",items:C.value,"item-size":30,"key-field":"value",style:e.normalizeStyle({maxHeight:l.maxScrollHeight})},{default:e.withCtx(({item:g})=>[e.createElementVNode("li",{class:"el-select-dropdown__item",title:g.label},[e.createVNode(e.unref(y.ElCheckbox),{size:l.size,value:g,label:g,disabled:g.disabled,onClick:m=>$(g)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{scope:g},()=>[e.createElementVNode("span",null,e.toDisplayString(g.label),1)])]),_:2},1032,["size","value","label","disabled","onClick"])],8,oe)]),_:3},8,["items","style"])]),_:3},8,["modelValue","size"])],512),[[e.vShow,C.value.length>0]]),e.withDirectives(e.createElementVNode("p",re,"无数据",512),[[e.vShow,C.value.length===0]])]),_:2},[l.isNeedFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ie,[d[6]||(d[6]=e.createElementVNode("span",{class:"shift-tips"},[e.createElementVNode("span",null,"提示:按住Shift可以快速多选")],-1)),d[7]||(d[7]=e.createElementVNode("span",{class:"counts"},null,-1)),e.createElementVNode("span",null,[e.createVNode(e.unref(y.ElButton),{size:l.size,link:"",type:"primary",onClick:O},{default:e.withCtx(()=>d[5]||(d[5]=[e.createTextVNode("关闭")])),_:1,__:[5]},8,["size"]),e.createVNode(e.unref(y.ElButton),{type:"primary",size:l.size,onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.footerBtnName),1)]),_:1},8,["size"])])])]),key:"0"}:void 0]),1040,["modelValue","size","style"]))}}),de=l=>(l.install=r=>{const o=l.name;r.component(o,l)},l),Y=de(se),ce=e.defineComponent({name:"jc-date-picker",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},type:{type:String,default:"daterange",validator:l=>["daterange","monthrange"].includes(l)},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(l,{expose:r,emit:o}){const i=l,v=o,u=e.ref([]),h=e.ref([]),a=e.ref(""),w=e.ref(""),{state:C,setQuery:f}=D(),I=()=>{i.fieldList.forEach(n=>{f(n.value,null)})},E=n=>{I(),f(n,u.value),v("fieldChange",n)},z=()=>{w.value=a.value,h.value=u.value,f(a.value,u.value)};e.watch(()=>i.fieldList,n=>{!k.isEmpty(n)&&k.isEmpty(a.value)&&(a.value=n[0].value,u.value=[])},{immediate:!0,deep:!0}),e.watch(i.fieldList.map(n=>()=>C.queryForm[n.value]),n=>{const c=n.findIndex(x=>!k.isEmpty(x));c===-1?(a.value=i.fieldList[0].value,u.value=[]):(a.value=i.fieldList[c].value,u.value=n[c]||[])},{deep:!0});const V=e.ref(),t=e.reactive({});return e.onMounted(()=>{var n,c,x,N;V.value&&(t.focus=(n=V.value)==null?void 0:n.focus,t.blur=(c=V.value)==null?void 0:c.blur,t.handleOpen=(x=V.value)==null?void 0:x.handleOpen,t.handleClose=(N=V.value)==null?void 0:N.handleClose)}),r(t),(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"jc-date-picker",style:e.normalizeStyle({width:l.width})},[e.createVNode(e.unref(y.ElSelect),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=x=>a.value=x),size:l.size,class:"select-field",onChange:E},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((l.fieldList.find(x=>x.value===a.value)||{}).label),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.fieldList,x=>(e.openBlock(),e.createBlock(e.unref(y.ElOption),{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"]),e.createVNode(e.unref(y.ElDatePicker),e.mergeProps({ref_key:"datePickerRef",ref:V,modelValue:u.value,"onUpdate:modelValue":c[1]||(c[1]=x=>u.value=x),type:l.type},n.$attrs,{"range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",size:l.size,"value-format":l.type==="daterange"?"YYYY-MM-DD":"YYYY-MM",onChange:z}),null,16,["modelValue","type","size","value-format"])],4))}}),fe=l=>(l.install=r=>{const o=l.name;r.component(o,l)},l),H=fe(ce),ve={class:"suffixContent"},pe=e.defineComponent({name:"jc-input-switch",__name:"index",props:{fieldList:{type:Array,required:!0,default:()=>[]},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(l,{expose:r,emit:o}){const i=l,v=o,u=e.ref(""),h=e.ref(""),a=e.ref(""),w=e.ref(""),{state:C,setQuery:f}=D(),I=()=>{i.fieldList.forEach(c=>{f(c.value,null)})},E=()=>{u.value="",I()},z=c=>{I(),f(c,u.value),v("fieldChange",c)},V=()=>{h.value=u.value,w.value=a.value,f(a.value,u.value.trim())};e.watch(()=>i.fieldList,c=>{!k.isEmpty(c)&&k.isEmpty(a.value)&&(a.value=c[0].value,u.value="")},{immediate:!0,deep:!0}),e.watch(i.fieldList.map(c=>()=>C.queryForm[c.value]),c=>{const x=c.findIndex(N=>!k.isEmpty(N));x===-1?(a.value=i.fieldList[0].value,u.value=""):(a.value=i.fieldList[x].value,u.value=c[x]||"")},{deep:!0});const t=e.ref(),n=e.reactive({});return e.onMounted(()=>{var c,x,N,j,M,T,Q,F,$,O;t.value&&(n.blur=(c=t.value)==null?void 0:c.blur,n.clear=(x=t.value)==null?void 0:x.clear,n.focus=(N=t.value)==null?void 0:N.focus,n.input=(j=t.value)==null?void 0:j.input,n.ref=(M=t.value)==null?void 0:M.ref,n.resizeTextarea=(T=t.value)==null?void 0:T.resizeTextarea,n.select=(Q=t.value)==null?void 0:Q.select,n.textarea=(F=t.value)==null?void 0:F.textarea,n.textareaStyle=($=t.value)==null?void 0:$.textareaStyle,n.isComposing=(O=t.value)==null?void 0:O.isComposing)}),r(n),(c,x)=>(e.openBlock(),e.createBlock(e.unref(y.ElInput),e.mergeProps({ref_key:"inputRef",ref:t,modelValue:u.value,"onUpdate:modelValue":x[1]||(x[1]=N=>u.value=N),modelModifiers:{trim:!0}},c.$attrs,{placeholder:"请输入内容",style:{width:l.width},size:l.size,class:"jc-input jc-input-switch"}),{prepend:e.withCtx(()=>[e.createVNode(e.unref(y.ElSelect),{modelValue:a.value,"onUpdate:modelValue":x[0]||(x[0]=N=>a.value=N),size:l.size,class:"select-field",onChange:z},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((l.fieldList.find(N=>N.value===a.value)||{}).label),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.fieldList,N=>(e.openBlock(),e.createBlock(e.unref(y.ElOption),{key:N.value,label:N.label,value:N.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:e.withCtx(()=>[e.createElementVNode("div",ve,[e.withDirectives(e.createVNode(e.unref(y.ElIcon),{class:"el-input__icon",onClick:E},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Close))]),_:1},512),[[e.vShow,u.value]]),e.createVNode(e.unref(y.ElIcon),{class:"el-input__icon",onClick:V},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Search))]),_:1})])]),_:1},16,["modelValue","style","size"]))}}),me=l=>(l.install=r=>{const o=l.name;r.component(o,l)},l),G=me(pe),ye={class:"suffixContent"},he={class:"popover-body"},ge={class:"popover-btn"},xe={class:"popover-btn-right"},we=e.defineComponent({name:"jc-input-complex",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(l,{expose:r,emit:o}){const i=l,v=o,u=e.ref(""),h=e.ref(""),a=e.ref(""),w=e.ref(""),C=e.ref(!1),f=e.computed(()=>a.value+"List"),I=e.computed(()=>{var m;return(m=i.fieldList.find(p=>p.value===a.value))==null?void 0:m.label}),E=e.ref(""),{state:z,setQuery:V,addTag:t,reduceTag:n}=D(),c={},x={};i.fieldList.forEach(m=>{c[m.value]=null,x[m.value+"List"]=[]});const N=m=>{C.value=!1,j(),v("fieldChange",m)},j=()=>{z.queryForm[f.value]?E.value=z.queryForm[f.value].join(`
2
+ `):E.value=""},M=()=>{u.value="",V(a.value,null),F()},T=()=>{for(const m in c)V(m,null)},Q=()=>{E.value="",h.value=u.value,w.value=a.value,T(),V(f.value,null),n({label:f.value,value:""}),V(a.value,u.value.trim())},F=()=>{const m=E.value.split(`
3
+ `).filter(p=>!k.isEmpty(p));if(m.length>0){const p=[...new Set(m)],b=k.filter(m,(S,L,P)=>k.includes(P,S,L+1)),q=[...new Set(b)];if(q.length>0){const S=i.fieldList.find(P=>P.value===a.value),L=`搜索条件中包含重复的内容:${S==null?void 0:S.label}:${q.join(`
4
+ `)}`;y.ElMessage.warning(L)}E.value=p.join(`
5
+ `),T(),V(f.value,p),t({label:f.value,value:`${I.value}:${p.join(",")}`})}else V(f.value,null),n({label:f.value,value:""});$()},$=()=>{C.value=!1},O=()=>{u.value="",E.value="",h.value="",$()},_=m=>{Object.keys(m).forEach(p=>{a.value=p.replace("List",""),E.value=m[p].join(`
6
+ `),F()})},s=()=>{!k.isEmpty(u.value)&&(u.value!==h.value||a.value!==w.value)?(h.value=u.value,w.value=a.value,T(),V(f.value,null),n({label:f.value,value:""}),V(a.value,u.value.trim())):k.isEmpty(u.value)&&(h.value=u.value,V(a.value,null))};e.watch(()=>i.fieldList,m=>{!k.isEmpty(m)&&k.isEmpty(a.value)&&(a.value=m[0].value,u.value="",E.value="")},{immediate:!0,deep:!0}),e.watch(i.fieldList.flatMap(m=>[()=>z.queryForm[m.value],()=>z.queryForm[m.value+"List"]]),m=>{if(m.findIndex(q=>!k.isEmpty(q))===-1){O();return}let b=!1;i.fieldList.forEach(q=>{var L;const S=q.value+"List";if(E.value=((L=z.queryForm[S])==null?void 0:L.join(`
7
+ `))||"",k.isArray(z.queryForm[S])&&!k.isEmpty(z.queryForm[S])){t({label:S,value:`${q.label}:${z.queryForm[S].join(",")}`});return}else n({label:S,value:""});z.queryForm[q.value]?(b=!0,a.value=q.value,u.value=z.queryForm[q.value]||""):b||(u.value="")})},{deep:!0});const d=e.ref(),g=e.reactive({});return e.onMounted(()=>{var m,p,b,q,S,L,P,R,U,J;d.value&&(g.blur=(m=d.value)==null?void 0:m.blur,g.clear=(p=d.value)==null?void 0:p.clear,g.focus=(b=d.value)==null?void 0:b.focus,g.input=(q=d.value)==null?void 0:q.input,g.ref=(S=d.value)==null?void 0:S.ref,g.resizeTextarea=(L=d.value)==null?void 0:L.resizeTextarea,g.select=(P=d.value)==null?void 0:P.select,g.textarea=(R=d.value)==null?void 0:R.textarea,g.textareaStyle=(U=d.value)==null?void 0:U.textareaStyle,g.isComposing=(J=d.value)==null?void 0:J.isComposing)}),g.setInputValueMult=_,g.setInputByOutside=s,r(g),(m,p)=>(e.openBlock(),e.createBlock(e.unref(y.ElInput),e.mergeProps({ref_key:"inputRef",ref:d,modelValue:u.value,"onUpdate:modelValue":p[5]||(p[5]=b=>u.value=b),modelModifiers:{trim:!0}},m.$attrs,{placeholder:"请输入内容",style:{width:l.width},class:"jc-input jc-input-complex search-input",size:l.size}),{prepend:e.withCtx(()=>[e.createVNode(e.unref(y.ElSelect),{ref:"selectRef",modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=b=>a.value=b),size:l.size,class:"select-field",onChange:N},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((l.fieldList.find(b=>b.value===a.value)||{}).label),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.fieldList,b=>(e.openBlock(),e.createBlock(e.unref(y.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:e.withCtx(()=>[e.createElementVNode("div",ye,[e.withDirectives(e.createVNode(e.unref(y.ElIcon),{class:"el-input__icon",onClick:M},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Close))]),_:1},512),[[e.vShow,u.value]]),e.createVNode(e.unref(y.ElIcon),{class:"el-input__icon",onClick:Q},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Search))]),_:1}),e.createVNode(e.unref(y.ElPopover),{visible:C.value,"onUpdate:visible":p[4]||(p[4]=b=>C.value=b),placement:"bottom-end",width:"240","show-arrow":!1,"popper-class":"jc-input-pop",trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(e.unref(y.ElIcon),{class:"el-input__icon",title:"多项搜索",style:{"background-color":"#f0f2f5"},onClick:j},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Grid))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",he,[e.createVNode(e.unref(y.ElInput),e.mergeProps({modelValue:E.value,"onUpdate:modelValue":p[1]||(p[1]=b=>E.value=b),type:"textarea"},m.$attrs,{size:l.size,placeholder:"一行一项",class:"popover-textarea",wrap:"off"}),null,16,["modelValue","size"]),e.createElementVNode("div",ge,[e.createVNode(e.unref(y.ElButton),{size:l.size,onClick:p[2]||(p[2]=b=>E.value="")},{default:e.withCtx(()=>p[6]||(p[6]=[e.createTextVNode("清空")])),_:1,__:[6]},8,["size"]),e.createElementVNode("div",xe,[e.createVNode(e.unref(y.ElButton),{size:l.size,link:"",type:"primary",onClick:$},{default:e.withCtx(()=>p[7]||(p[7]=[e.createTextVNode("关闭")])),_:1,__:[7]},8,["size"]),e.createVNode(e.unref(y.ElButton),{type:"primary",size:l.size,onClick:p[3]||(p[3]=b=>F())},{default:e.withCtx(()=>p[8]||(p[8]=[e.createTextVNode("搜索")])),_:1,__:[8]},8,["size"])])])])]),_:1},8,["visible"])])]),_:1},16,["modelValue","style","size"]))}}),Ce=l=>(l.install=r=>{const o=l.name;r.component(o,l)},l),K=Ce(we),Ve={style:{display:"flex","flex-wrap":"wrap",flex:"1","flex-basis":"calc(100% - 50px)","font-size":"12px","margin-top":"4px"}},be=e.defineComponent({name:"jc-tag-query",__name:"index",setup(l){const{state:r,reduceTag:o,reduceAllTag:i}=D();return(v,u)=>(e.openBlock(),e.createElementBlock("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).tags,(h,a)=>(e.openBlock(),e.createBlock(e.unref(y.ElTag),e.mergeProps({ref_for:!0},v.$attrs,{key:h.label,closable:"",style:[{height:"auto","max-height":"26px","white-space":"normal","text-align":"left","max-width":"1800px",overflow:"hidden","word-break":"break-word","text-overflow":"ellipsis"},{marginLeft:a>0?"4px":"0px"}],onClose:w=>e.unref(o)(h,a)}),{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(h.value),1)]),_:2},1040,["style","onClose"]))),128)),e.unref(r).tags.length>1?(e.openBlock(),e.createElementBlock("span",{key:0,style:{"margin-left":"10px","margin-top":"2px",display:"block"},onClick:u[0]||(u[0]=(...h)=>e.unref(i)&&e.unref(i)(...h))},[e.createVNode(e.unref(y.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Delete))]),_:1})])):e.createCommentVNode("",!0)]))}}),W=(l,r)=>{const o=l.__vccOpts||l;for(const[i,v]of r)o[i]=v;return o},ke=W(be,[["__scopeId","data-v-99c0d2b1"]]),Ee=l=>(l.install=r=>{const o=l.name;r.component(o,l)},l),X=Ee(ke),Ne={class:"popover-btn"},ze={class:"popover-btn-right"},Se=e.defineComponent({name:"jc-more-query-contain",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},customTagObj:{type:Object,default:()=>({})},width:{type:Number,default:400},size:{type:String,default:"default",validator:l=>["small","default","large"].includes(l)}},setup(l,{expose:r}){const o=e.ref(!1),i=e.ref({}),v=l,{state:u,setQuery:h,addTag:a,reduceTag:w}=D(),C=()=>{o.value=!o.value,o.value&&v.fieldList.forEach(t=>{i.value[t.value]=u.queryForm[t.value]||null})},f=()=>{i.value={},v.fieldList.forEach(t=>{h(t.value,null),w({label:t.value,value:""})}),o.value=!1},I=(t,n)=>{typeof i.value[t]=="string"||typeof i.value[t]=="number"?a({label:t,value:`${n}:${k.isEmpty(v.customTagObj[t])?i.value[t]:v.customTagObj[t]}`}):a({label:t,value:`${n}:${k.isEmpty(v.customTagObj[t])?i.value[t].join(","):v.customTagObj[t]}`})},E=()=>{for(const t in i.value){h(t,i.value[t]||null);const n=v.fieldList.find(c=>c.value===t);n===void 0&&y.ElMessage.warning("传入的fieldList和表单绑定的字段不匹配"),I(t,n.label)}o.value=!1};e.watch(v.fieldList.map(t=>()=>u.queryForm[t.value]),()=>{v.fieldList.forEach(t=>{i.value[t.value]=u.queryForm[t.value],k.isEmpty(u.queryForm[t.value])?w({label:t.value,value:""}):I(t.value,t.label)})},{deep:!0});const z=e.ref(),V=e.reactive({});return e.onMounted(()=>{var t;z.value&&(V.hide=(t=z.value)==null?void 0:t.hide)}),r(V),(t,n)=>(e.openBlock(),e.createBlock(e.unref(y.ElPopover),e.mergeProps({ref_key:"popoverRef",ref:z},t.$attrs,{visible:o.value,placement:"bottom",width:l.width,"show-arrow":!1,"popper-class":"moreQuery-pop",trigger:"click"}),{reference:e.withCtx(()=>[e.createVNode(e.unref(y.ElButton),{size:l.size,icon:e.unref(B.Operation),onClick:C},null,8,["size","icon"])]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{scopeForm:i.value},void 0,!0),e.createElementVNode("div",Ne,[e.createVNode(e.unref(y.ElButton),{size:l.size,onClick:f},{default:e.withCtx(()=>n[1]||(n[1]=[e.createTextVNode("清空")])),_:1,__:[1]},8,["size"]),e.createElementVNode("div",ze,[e.createVNode(e.unref(y.ElButton),{size:l.size,onClick:n[0]||(n[0]=c=>o.value=!1)},{default:e.withCtx(()=>n[2]||(n[2]=[e.createTextVNode("关闭")])),_:1,__:[2]},8,["size"]),e.createVNode(e.unref(y.ElButton),{type:"primary",size:l.size,onClick:E},{default:e.withCtx(()=>n[3]||(n[3]=[e.createTextVNode("搜索")])),_:1,__:[3]},8,["size"])])])]),_:3},16,["visible","width"]))}}),qe=W(Se,[["__scopeId","data-v-775b8567"]]),Ie=l=>(l.install=r=>{const o=l.name;r.component(o,l)},l),Z=Ie(qe),Le=Object.freeze(Object.defineProperty({__proto__:null,JcDatePicker:H,JcInputComplex:K,JcInputSwitch:G,JcMoreQueryContain:Z,JcSelectQuery:Y,JcTagQuery:X},Symbol.toStringTag,{value:"Module"})),Fe=()=>{const l=e.reactive({queryForm:{},tags:[]}),{state:r,setQuery:o,addTag:i,reduceTag:v,reduceAllTag:u,clearQuery:h}=te(l);return{queryForm:r.queryForm,setQuery:o,addTag:i,reduceTag:v,reduceAllTag:u,clearQuery:h}},Be={install:l=>{for(const r of Object.values(Le))l.use(r)}};exports.JcDatePicker=H;exports.JcInputComplex=K;exports.JcInputSwitch=G;exports.JcMoreQueryContain=Z;exports.JcSelectQuery=Y;exports.JcTagQuery=X;exports.default=Be;exports.reactiveQuery=Fe;
@@ -78,6 +78,7 @@ export declare const JcDatePicker: SFCWithInstall<import('vue').DefineComponent<
78
78
  } & {
79
79
  readonly default: true;
80
80
  };
81
+ readonly showWeekNumber: BooleanConstructor;
81
82
  readonly ariaLabel: StringConstructor;
82
83
  readonly emptyValues: ArrayConstructor;
83
84
  readonly valueOnClear: {
@@ -290,6 +291,7 @@ export declare const JcDatePicker: SFCWithInstall<import('vue').DefineComponent<
290
291
  readonly rangeSeparator: string;
291
292
  readonly shortcuts: unknown[];
292
293
  readonly showNow: boolean;
294
+ readonly showWeekNumber: boolean;
293
295
  readonly arrowControl: boolean;
294
296
  readonly unlinkPanels: boolean;
295
297
  readonly isRange: boolean;
@@ -317,6 +319,7 @@ export declare const JcDatePicker: SFCWithInstall<import('vue').DefineComponent<
317
319
  } & {
318
320
  readonly default: true;
319
321
  };
322
+ readonly showWeekNumber: BooleanConstructor;
320
323
  readonly ariaLabel: StringConstructor;
321
324
  readonly emptyValues: ArrayConstructor;
322
325
  readonly valueOnClear: {
@@ -529,6 +532,7 @@ export declare const JcDatePicker: SFCWithInstall<import('vue').DefineComponent<
529
532
  readonly rangeSeparator: string;
530
533
  readonly shortcuts: unknown[];
531
534
  readonly showNow: boolean;
535
+ readonly showWeekNumber: boolean;
532
536
  readonly arrowControl: boolean;
533
537
  readonly unlinkPanels: boolean;
534
538
  readonly isRange: boolean;
@@ -72,6 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
72
  } & {
73
73
  readonly default: true;
74
74
  };
75
+ readonly showWeekNumber: BooleanConstructor;
75
76
  readonly ariaLabel: StringConstructor;
76
77
  readonly emptyValues: ArrayConstructor;
77
78
  readonly valueOnClear: {
@@ -284,6 +285,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
284
285
  readonly rangeSeparator: string;
285
286
  readonly shortcuts: unknown[];
286
287
  readonly showNow: boolean;
288
+ readonly showWeekNumber: boolean;
287
289
  readonly arrowControl: boolean;
288
290
  readonly unlinkPanels: boolean;
289
291
  readonly isRange: boolean;
@@ -311,6 +313,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
311
313
  } & {
312
314
  readonly default: true;
313
315
  };
316
+ readonly showWeekNumber: BooleanConstructor;
314
317
  readonly ariaLabel: StringConstructor;
315
318
  readonly emptyValues: ArrayConstructor;
316
319
  readonly valueOnClear: {
@@ -523,6 +526,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
523
526
  readonly rangeSeparator: string;
524
527
  readonly shortcuts: unknown[];
525
528
  readonly showNow: boolean;
529
+ readonly showWeekNumber: boolean;
526
530
  readonly arrowControl: boolean;
527
531
  readonly unlinkPanels: boolean;
528
532
  readonly isRange: boolean;
@@ -66,6 +66,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
66
66
  readonly validateEvent: boolean;
67
67
  readonly inputStyle: import('vue').StyleValue;
68
68
  readonly rows: number;
69
+ readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
69
70
  readonly clearable: boolean;
70
71
  readonly showPassword: boolean;
71
72
  readonly showWordLimit: boolean;
@@ -86,6 +87,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
86
87
  readonly showWordLimit: boolean;
87
88
  readonly rows: number;
88
89
  readonly size?: ("" | "small" | "default" | "large") | undefined;
90
+ readonly name?: string | undefined;
89
91
  readonly ariaLabel?: string | undefined;
90
92
  readonly id?: string | undefined;
91
93
  readonly placeholder?: string | undefined;
@@ -93,6 +95,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
93
95
  readonly form?: string | undefined;
94
96
  readonly resize?: ("none" | "both" | "horizontal" | "vertical") | undefined;
95
97
  readonly prefixIcon?: (string | import('vue').Component) | undefined;
98
+ readonly inputmode?: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
96
99
  readonly maxlength?: (string | number) | undefined;
97
100
  readonly minlength?: (string | number) | undefined;
98
101
  readonly formatter?: Function | undefined;
@@ -110,7 +113,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
110
113
  onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
111
114
  onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
112
115
  onClear?: (() => any) | undefined | undefined;
113
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "autofocus" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows">;
116
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "autofocus" | "readonly" | "inputmode" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows">;
114
117
  $attrs: {
115
118
  [x: string]: unknown;
116
119
  };
@@ -126,6 +129,15 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
126
129
  $emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
127
130
  $el: any;
128
131
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
132
+ readonly inputmode: {
133
+ readonly type: import('vue').PropType<"search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
134
+ readonly required: false;
135
+ readonly validator: ((val: unknown) => boolean) | undefined;
136
+ __epPropKey: true;
137
+ } & {
138
+ readonly default: undefined;
139
+ };
140
+ readonly name: StringConstructor;
129
141
  readonly ariaLabel: StringConstructor;
130
142
  readonly id: {
131
143
  readonly type: import('vue').PropType<string>;
@@ -324,6 +336,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
324
336
  readonly validateEvent: boolean;
325
337
  readonly inputStyle: import('vue').StyleValue;
326
338
  readonly rows: number;
339
+ readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
327
340
  readonly clearable: boolean;
328
341
  readonly showPassword: boolean;
329
342
  readonly showWordLimit: boolean;
@@ -361,11 +374,21 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
361
374
  readonly validateEvent: boolean;
362
375
  readonly inputStyle: import('vue').StyleValue;
363
376
  readonly rows: number;
377
+ readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
364
378
  readonly clearable: boolean;
365
379
  readonly showPassword: boolean;
366
380
  readonly showWordLimit: boolean;
367
381
  readonly autofocus: boolean;
368
382
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
383
+ readonly inputmode: {
384
+ readonly type: import('vue').PropType<"search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
385
+ readonly required: false;
386
+ readonly validator: ((val: unknown) => boolean) | undefined;
387
+ __epPropKey: true;
388
+ } & {
389
+ readonly default: undefined;
390
+ };
391
+ readonly name: StringConstructor;
369
392
  readonly ariaLabel: StringConstructor;
370
393
  readonly id: {
371
394
  readonly type: import('vue').PropType<string>;
@@ -526,7 +549,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
526
549
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
527
550
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
528
551
  onClear?: (() => any) | undefined;
529
- }, "clear" | "type" | "blur" | "focus" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "select" | "autofocus" | "ref" | "input" | "textarea" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
552
+ }, "clear" | "type" | "blur" | "focus" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "select" | "autofocus" | "ref" | "input" | "textarea" | "readonly" | "inputmode" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
530
553
  input: import('vue').ShallowRef<HTMLInputElement | undefined>;
531
554
  textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
532
555
  ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
@@ -690,7 +713,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
690
713
  };
691
714
  tagType: {
692
715
  default: string;
693
- type: import('vue').PropType<"success" | "primary" | "warning" | "info" | "danger">;
716
+ type: import('vue').PropType<"primary" | "success" | "warning" | "info" | "danger">;
694
717
  required: false;
695
718
  validator: ((val: unknown) => boolean) | undefined;
696
719
  __epPropKey: true;
@@ -853,13 +876,13 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
853
876
  showClose: import('vue').ComputedRef<boolean>;
854
877
  iconComponent: import('vue').ComputedRef<(string | import('vue').Component) | undefined>;
855
878
  iconReverse: import('vue').ComputedRef<string>;
856
- validateState: import('vue').ComputedRef<"" | "error" | "validating" | "success">;
879
+ validateState: import('vue').ComputedRef<"" | "error" | "success" | "validating">;
857
880
  validateIcon: import('vue').ComputedRef<"" | import('vue').Component>;
858
881
  showNewOption: import('vue').ComputedRef<boolean>;
859
882
  updateOptions: () => void;
860
883
  collapseTagSize: import('vue').ComputedRef<"default" | "small">;
861
884
  setSelected: () => void;
862
- selectDisabled: import('vue').ComputedRef<boolean | undefined>;
885
+ selectDisabled: import('vue').ComputedRef<boolean>;
863
886
  emptyText: import('vue').ComputedRef<string | null>;
864
887
  handleCompositionStart: (event: CompositionEvent) => void;
865
888
  handleCompositionUpdate: (event: CompositionEvent) => void;
@@ -935,7 +958,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
935
958
  collapseTags: boolean;
936
959
  maxCollapseTags: number;
937
960
  collapseTagsTooltip: boolean;
938
- tagType: "success" | "primary" | "warning" | "info" | "danger";
961
+ tagType: "primary" | "success" | "warning" | "info" | "danger";
939
962
  tagEffect: "light" | "dark" | "plain";
940
963
  automaticDropdown: boolean;
941
964
  allowCreate: boolean;
@@ -1095,7 +1118,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
1095
1118
  };
1096
1119
  tagType: {
1097
1120
  default: string;
1098
- type: import('vue').PropType<"success" | "primary" | "warning" | "info" | "danger">;
1121
+ type: import('vue').PropType<"primary" | "success" | "warning" | "info" | "danger">;
1099
1122
  required: false;
1100
1123
  validator: ((val: unknown) => boolean) | undefined;
1101
1124
  __epPropKey: true;
@@ -1258,13 +1281,13 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
1258
1281
  showClose: import('vue').ComputedRef<boolean>;
1259
1282
  iconComponent: import('vue').ComputedRef<(string | import('vue').Component) | undefined>;
1260
1283
  iconReverse: import('vue').ComputedRef<string>;
1261
- validateState: import('vue').ComputedRef<"" | "error" | "validating" | "success">;
1284
+ validateState: import('vue').ComputedRef<"" | "error" | "success" | "validating">;
1262
1285
  validateIcon: import('vue').ComputedRef<"" | import('vue').Component>;
1263
1286
  showNewOption: import('vue').ComputedRef<boolean>;
1264
1287
  updateOptions: () => void;
1265
1288
  collapseTagSize: import('vue').ComputedRef<"default" | "small">;
1266
1289
  setSelected: () => void;
1267
- selectDisabled: import('vue').ComputedRef<boolean | undefined>;
1290
+ selectDisabled: import('vue').ComputedRef<boolean>;
1268
1291
  emptyText: import('vue').ComputedRef<string | null>;
1269
1292
  handleCompositionStart: (event: CompositionEvent) => void;
1270
1293
  handleCompositionUpdate: (event: CompositionEvent) => void;
@@ -1340,7 +1363,7 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
1340
1363
  collapseTags: boolean;
1341
1364
  maxCollapseTags: number;
1342
1365
  collapseTagsTooltip: boolean;
1343
- tagType: "success" | "primary" | "warning" | "info" | "danger";
1366
+ tagType: "primary" | "success" | "warning" | "info" | "danger";
1344
1367
  tagEffect: "light" | "dark" | "plain";
1345
1368
  automaticDropdown: boolean;
1346
1369
  allowCreate: boolean;
@@ -60,6 +60,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
60
60
  readonly validateEvent: boolean;
61
61
  readonly inputStyle: import('vue').StyleValue;
62
62
  readonly rows: number;
63
+ readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
63
64
  readonly clearable: boolean;
64
65
  readonly showPassword: boolean;
65
66
  readonly showWordLimit: boolean;
@@ -80,6 +81,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
80
81
  readonly showWordLimit: boolean;
81
82
  readonly rows: number;
82
83
  readonly size?: ("" | "small" | "default" | "large") | undefined;
84
+ readonly name?: string | undefined;
83
85
  readonly ariaLabel?: string | undefined;
84
86
  readonly id?: string | undefined;
85
87
  readonly placeholder?: string | undefined;
@@ -87,6 +89,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
87
89
  readonly form?: string | undefined;
88
90
  readonly resize?: ("none" | "both" | "horizontal" | "vertical") | undefined;
89
91
  readonly prefixIcon?: (string | import('vue').Component) | undefined;
92
+ readonly inputmode?: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
90
93
  readonly maxlength?: (string | number) | undefined;
91
94
  readonly minlength?: (string | number) | undefined;
92
95
  readonly formatter?: Function | undefined;
@@ -104,7 +107,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
104
107
  onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
105
108
  onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
106
109
  onClear?: (() => any) | undefined | undefined;
107
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "autofocus" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows">;
110
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "autofocus" | "readonly" | "inputmode" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows">;
108
111
  $attrs: {
109
112
  [x: string]: unknown;
110
113
  };
@@ -120,6 +123,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
120
123
  $emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
121
124
  $el: any;
122
125
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
126
+ readonly inputmode: {
127
+ readonly type: PropType<"search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
128
+ readonly required: false;
129
+ readonly validator: ((val: unknown) => boolean) | undefined;
130
+ __epPropKey: true;
131
+ } & {
132
+ readonly default: undefined;
133
+ };
134
+ readonly name: StringConstructor;
123
135
  readonly ariaLabel: StringConstructor;
124
136
  readonly id: {
125
137
  readonly type: PropType<string>;
@@ -318,6 +330,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
318
330
  readonly validateEvent: boolean;
319
331
  readonly inputStyle: import('vue').StyleValue;
320
332
  readonly rows: number;
333
+ readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
321
334
  readonly clearable: boolean;
322
335
  readonly showPassword: boolean;
323
336
  readonly showWordLimit: boolean;
@@ -355,11 +368,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
355
368
  readonly validateEvent: boolean;
356
369
  readonly inputStyle: import('vue').StyleValue;
357
370
  readonly rows: number;
371
+ readonly inputmode: "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
358
372
  readonly clearable: boolean;
359
373
  readonly showPassword: boolean;
360
374
  readonly showWordLimit: boolean;
361
375
  readonly autofocus: boolean;
362
376
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
377
+ readonly inputmode: {
378
+ readonly type: PropType<"search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
379
+ readonly required: false;
380
+ readonly validator: ((val: unknown) => boolean) | undefined;
381
+ __epPropKey: true;
382
+ } & {
383
+ readonly default: undefined;
384
+ };
385
+ readonly name: StringConstructor;
363
386
  readonly ariaLabel: StringConstructor;
364
387
  readonly id: {
365
388
  readonly type: PropType<string>;
@@ -520,7 +543,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
520
543
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
521
544
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
522
545
  onClear?: (() => any) | undefined;
523
- }, "clear" | "type" | "blur" | "focus" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "select" | "autofocus" | "ref" | "input" | "textarea" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
546
+ }, "clear" | "type" | "blur" | "focus" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "select" | "autofocus" | "ref" | "input" | "textarea" | "readonly" | "inputmode" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
524
547
  input: import('vue').ShallowRef<HTMLInputElement | undefined>;
525
548
  textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
526
549
  ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
@@ -684,7 +707,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
684
707
  };
685
708
  tagType: {
686
709
  default: string;
687
- type: PropType<"success" | "primary" | "warning" | "info" | "danger">;
710
+ type: PropType<"primary" | "success" | "warning" | "info" | "danger">;
688
711
  required: false;
689
712
  validator: ((val: unknown) => boolean) | undefined;
690
713
  __epPropKey: true;
@@ -847,13 +870,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
847
870
  showClose: import('vue').ComputedRef<boolean>;
848
871
  iconComponent: import('vue').ComputedRef<(string | import('vue').Component) | undefined>;
849
872
  iconReverse: import('vue').ComputedRef<string>;
850
- validateState: import('vue').ComputedRef<"" | "error" | "validating" | "success">;
873
+ validateState: import('vue').ComputedRef<"" | "error" | "success" | "validating">;
851
874
  validateIcon: import('vue').ComputedRef<"" | import('vue').Component>;
852
875
  showNewOption: import('vue').ComputedRef<boolean>;
853
876
  updateOptions: () => void;
854
877
  collapseTagSize: import('vue').ComputedRef<"default" | "small">;
855
878
  setSelected: () => void;
856
- selectDisabled: import('vue').ComputedRef<boolean | undefined>;
879
+ selectDisabled: import('vue').ComputedRef<boolean>;
857
880
  emptyText: import('vue').ComputedRef<string | null>;
858
881
  handleCompositionStart: (event: CompositionEvent) => void;
859
882
  handleCompositionUpdate: (event: CompositionEvent) => void;
@@ -929,7 +952,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
929
952
  collapseTags: boolean;
930
953
  maxCollapseTags: number;
931
954
  collapseTagsTooltip: boolean;
932
- tagType: "success" | "primary" | "warning" | "info" | "danger";
955
+ tagType: "primary" | "success" | "warning" | "info" | "danger";
933
956
  tagEffect: "light" | "dark" | "plain";
934
957
  automaticDropdown: boolean;
935
958
  allowCreate: boolean;
@@ -1089,7 +1112,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1089
1112
  };
1090
1113
  tagType: {
1091
1114
  default: string;
1092
- type: PropType<"success" | "primary" | "warning" | "info" | "danger">;
1115
+ type: PropType<"primary" | "success" | "warning" | "info" | "danger">;
1093
1116
  required: false;
1094
1117
  validator: ((val: unknown) => boolean) | undefined;
1095
1118
  __epPropKey: true;
@@ -1252,13 +1275,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1252
1275
  showClose: import('vue').ComputedRef<boolean>;
1253
1276
  iconComponent: import('vue').ComputedRef<(string | import('vue').Component) | undefined>;
1254
1277
  iconReverse: import('vue').ComputedRef<string>;
1255
- validateState: import('vue').ComputedRef<"" | "error" | "validating" | "success">;
1278
+ validateState: import('vue').ComputedRef<"" | "error" | "success" | "validating">;
1256
1279
  validateIcon: import('vue').ComputedRef<"" | import('vue').Component>;
1257
1280
  showNewOption: import('vue').ComputedRef<boolean>;
1258
1281
  updateOptions: () => void;
1259
1282
  collapseTagSize: import('vue').ComputedRef<"default" | "small">;
1260
1283
  setSelected: () => void;
1261
- selectDisabled: import('vue').ComputedRef<boolean | undefined>;
1284
+ selectDisabled: import('vue').ComputedRef<boolean>;
1262
1285
  emptyText: import('vue').ComputedRef<string | null>;
1263
1286
  handleCompositionStart: (event: CompositionEvent) => void;
1264
1287
  handleCompositionUpdate: (event: CompositionEvent) => void;
@@ -1334,7 +1357,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1334
1357
  collapseTags: boolean;
1335
1358
  maxCollapseTags: number;
1336
1359
  collapseTagsTooltip: boolean;
1337
- tagType: "success" | "primary" | "warning" | "info" | "danger";
1360
+ tagType: "primary" | "success" | "warning" | "info" | "danger";
1338
1361
  tagEffect: "light" | "dark" | "plain";
1339
1362
  automaticDropdown: boolean;
1340
1363
  allowCreate: boolean;