@next-bricks/form 1.16.2 → 1.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +5 -5
- package/dist/chunks/6773.fa777412.js +2 -0
- package/dist/chunks/6773.fa777412.js.map +1 -0
- package/dist/chunks/8653.6f557476.js +3 -0
- package/dist/chunks/8653.6f557476.js.map +1 -0
- package/dist/chunks/eo-select.3eb14338.js +3 -0
- package/dist/chunks/{eo-select.0e3b0626.js.map → eo-select.3eb14338.js.map} +1 -1
- package/dist/chunks/{main.435bde11.js → main.f5482176.js} +2 -2
- package/dist/chunks/{main.435bde11.js.map → main.f5482176.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/{index.927290fa.js → index.c8a00bfe.js} +2 -2
- package/dist/{index.927290fa.js.map → index.c8a00bfe.js.map} +1 -1
- package/dist/manifest.json +68 -68
- package/package.json +2 -2
- package/dist/chunks/6773.ab912e2d.js +0 -2
- package/dist/chunks/6773.ab912e2d.js.map +0 -1
- package/dist/chunks/8653.d5c60d3b.js +0 -3
- package/dist/chunks/8653.d5c60d3b.js.map +0 -1
- package/dist/chunks/eo-select.0e3b0626.js +0 -3
- /package/dist/chunks/{8653.d5c60d3b.js.LICENSE.txt → 8653.6f557476.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.0e3b0626.js.LICENSE.txt → eo-select.3eb14338.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see eo-select.0e3b0626.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_form=globalThis.webpackChunk_next_bricks_form||[]).push([[2052,6167,8548,9768],{235:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(1030);const i=["formElement","curElement","name","label","current","required","pattern","type","min","max","labelCol","wrapperCol","message","layout","size","trigger","valuePropsName","notRender","helpBrick","labelBrick","needValidate","validator"];function o(e){return(0,r.pick)(e,i)}},426:(e,t,n)=>{"use strict";n.d(t,{N:()=>j});var r,i=n(4635),o=n(918),a=n(5536),l=n(9492),s=n(6121),c=n(829),u=n(2740),d=n(6192),p=n(9859);let h,f,m,v,g,b,w,y,A;const{method:x,property:k}=(0,d.createDecorators)();var E=new WeakMap,S=new WeakSet,B=new WeakMap,C=new WeakMap,M=new WeakMap,N=new WeakMap,W=new WeakMap,O=new WeakMap;class j extends p.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,S),(0,o.A)(this,E,(h(this),!1)),(0,o.A)(this,B,"normal"),(0,o.A)(this,C,!1),(0,o.A)(this,M,f(this)),(0,o.A)(this,N,(m(this),v(this))),(0,o.A)(this,W,(g(this),b(this))),(0,o.A)(this,O,(w(this),y(this))),A(this)}get isFormItemElement(){return!0}set validateState(e){(0,l.A)(S,P,this,e),this._render()}get validateState(){return(0,a.A)(S,this,R)}set notRender(e){this.hidden=e,(0,l.A)(S,z,this,e),this._render()}get notRender(){return(0,a.A)(S,this,D)}get $bindFormItem(){return(0,a.A)(S,this,T)}set $bindFormItem(e){(0,l.A)(S,H,this,e),this._render()}get helpBrick(){return(0,c.A)(M,this)}set helpBrick(e){(0,s.A)(M,this,e)}get labelBrick(){return(0,c.A)(N,this)}set labelBrick(e){(0,s.A)(N,this,e)}get labelCol(){return(0,c.A)(W,this)}set labelCol(e){(0,s.A)(W,this,e)}get wrapperCol(){return(0,c.A)(O,this)}set wrapperCol(e){(0,s.A)(O,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function D(e){return(0,c.A)(E,e)}function z(e,t){(0,s.A)(E,e,t)}function R(e){return(0,c.A)(B,e)}function P(e,t){(0,s.A)(B,e,t)}function T(e){return(0,c.A)(C,e)}function H(e,t){(0,s.A)(C,e,t)}r=j,[f,m,v,g,b,w,y,A,h]=(0,u.A)(r,[],[[k({attribute:!1}),1,"helpBrick"],[k({attribute:!1}),1,"labelBrick"],[k({attribute:!1}),1,"labelCol"],[k({attribute:!1}),1,"wrapperCol"],[x(),2,"setNotRender"],[x(),2,"getFormElement"]],0,void 0,p.ReactNextElement).e},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Select:()=>Fe,SelectComponent:()=>ft,WrappedSlPopup:()=>We});var r,i=n(9575),o=n(4586),a=n(4635),l=n(918),s=n(6902),c=n(5536),u=n(6121),d=n(829),p=n(2740),h=n(8769),f=n.n(h),m=n(6192),v=n(9859),g=n(426),b=n(235),w=n(4646),y=n(3373),A=n.n(y),x=(n(6477),n(7759)),k=n(1030),E=n(8361),S=n(8974),B=n(7121);let C,M,N,W,O,j,D,z,R,P,T,H,F,L,_,U,V,q,I,G,$,X,Z,J,K,Q,Y,ee,te,ne,re,ie,oe,ae,le,se,ce,ue,de,pe,he,fe,me,ve,ge,be,we,ye,Ae,xe,ke,Ee,Se,Be,Ce,Me,Ne;const We=(0,v.wrapBrick)("sl-popup"),Oe=(0,v.wrapBrick)("eo-form-item"),je=(0,v.wrapBrick)("eo-tag",{onCheck:"check",onClose:"close"}),De=(0,v.wrapBrick)("eo-icon"),ze=e=>"string"==typeof(null==e?void 0:e.provider),Re=(e,t)=>Array.isArray(e)?e.map((e=>Re(e,t))):"function"==typeof e?e.call(null,t):e,{defineElement:Pe,property:Te,event:He}=(0,m.createDecorators)();let Fe;var Le=new WeakMap,_e=new WeakMap,Ue=new WeakMap,Ve=new WeakMap,qe=new WeakMap,Ie=new WeakMap,Ge=new WeakMap,$e=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,Ye=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap,lt=new WeakSet,st=new WeakMap,ct=new WeakMap,ut=new WeakMap,dt=new WeakMap,pt=new WeakMap;class ht extends g.N{constructor(){super(...arguments),(0,a.A)(this,lt),(0,l.A)(this,Le,M(this)),(0,l.A)(this,_e,(N(this),W(this))),(0,l.A)(this,Ue,(O(this),j(this))),(0,l.A)(this,Ve,(D(this),z(this))),(0,l.A)(this,qe,(R(this),P(this))),(0,l.A)(this,Ie,(T(this),H(this))),(0,l.A)(this,Ge,(F(this),L(this))),(0,l.A)(this,$e,(_(this),U(this))),(0,l.A)(this,Xe,(V(this),q(this))),(0,l.A)(this,Ze,(I(this),G(this))),(0,l.A)(this,Je,($(this),X(this))),(0,l.A)(this,Ke,(Z(this),J(this))),(0,l.A)(this,Qe,(K(this),Q(this))),(0,l.A)(this,Ye,(Y(this),ee(this))),(0,l.A)(this,et,(te(this),ne(this))),(0,l.A)(this,tt,(re(this),ie(this))),(0,l.A)(this,nt,(oe(this),ae(this))),(0,l.A)(this,rt,(le(this),se(this))),(0,l.A)(this,it,(ce(this),ue(this))),(0,l.A)(this,ot,(de(this),pe(this))),(0,l.A)(this,at,(he(this),fe(this))),(0,l.A)(this,st,(ge(this),be(this))),(0,l.A)(this,ct,(Ae(this),xe(this))),(0,l.A)(this,ut,(Se(this),Be(this))),(0,o.A)(this,"handleChange",(Ne(this),(e,t)=>{this.value=e,(0,c.A)(lt,this,me).emit({value:e,options:t})})),(0,l.A)(this,dt,((e,t)=>{Promise.resolve().then((()=>{(0,c.A)(lt,this,Ce).emit({options:e,name:t})}))})),(0,o.A)(this,"handleSearch",(e=>{(0,c.A)(lt,this,we).emit({value:e})})),(0,l.A)(this,pt,(()=>{(0,c.A)(lt,this,ke).emit()}))}get name(){return(0,d.A)(Le,this)}set name(e){(0,u.A)(Le,this,e)}get placeholder(){return(0,d.A)(_e,this)}set placeholder(e){(0,u.A)(_e,this,e)}get label(){return(0,d.A)(Ue,this)}set label(e){(0,u.A)(Ue,this,e)}get options(){return(0,d.A)(Ve,this)}set options(e){(0,u.A)(Ve,this,e)}get value(){return(0,d.A)(qe,this)}set value(e){(0,u.A)(qe,this,e)}get required(){return(0,d.A)(Ie,this)}set required(e){(0,u.A)(Ie,this,e)}get message(){return(0,d.A)(Ge,this)}set message(e){(0,u.A)(Ge,this,e)}get disabled(){return(0,d.A)($e,this)}set disabled(e){(0,u.A)($e,this,e)}get mode(){return(0,d.A)(Xe,this)}set mode(e){(0,u.A)(Xe,this,e)}get tokenSeparators(){return(0,d.A)(Ze,this)}set tokenSeparators(e){(0,u.A)(Ze,this,e)}get maxTagCount(){return(0,d.A)(Je,this)}set maxTagCount(e){(0,u.A)(Je,this,e)}get groupBy(){return(0,d.A)(Ke,this)}set groupBy(e){(0,u.A)(Ke,this,e)}get suffix(){return(0,d.A)(Qe,this)}set suffix(e){(0,u.A)(Qe,this,e)}get clearable(){return(0,d.A)(Ye,this)}set clearable(e){(0,u.A)(Ye,this,e)}get fields(){return(0,d.A)(et,this)}set fields(e){(0,u.A)(et,this,e)}get useBackend(){return(0,d.A)(tt,this)}set useBackend(e){(0,u.A)(tt,this,e)}get debounceSearchDelay(){return(0,d.A)(nt,this)}set debounceSearchDelay(e){(0,u.A)(nt,this,e)}get inputStyle(){return(0,d.A)(rt,this)}set inputStyle(e){(0,u.A)(rt,this,e)}get dropdownStyle(){return(0,d.A)(it,this)}set dropdownStyle(e){(0,u.A)(it,this,e)}get dropdownHoist(){return(0,d.A)(ot,this)}set dropdownHoist(e){(0,u.A)(ot,this,e)}render(){return f().createElement(ft,{curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,value:this.value,disabled:this.disabled,placeholder:this.placeholder,required:this.required,mode:this.mode,tokenSeparators:this.tokenSeparators,maxTagCount:this.maxTagCount,groupBy:this.groupBy,suffix:this.suffix,fields:this.fields,useBackend:this.useBackend,debounceSearchDelay:this.debounceSearchDelay,clearable:this.clearable,trigger:"handleChange",inputStyle:this.inputStyle,dropdownStyle:this.dropdownStyle,dropdownHoist:this.dropdownHoist,validateState:this.validateState,notRender:this.notRender,helpBrick:this.helpBrick,labelBrick:this.labelBrick,options:this.options,onChange:this.handleChange,optionsChange:(0,d.A)(dt,this),onSearch:this.handleSearch,onSelectFocus:(0,d.A)(pt,this)})}}function ft(e){var t,n;const{curElement:r,name:o,disabled:a,mode:l,tokenSeparators:s,maxTagCount:c,suffix:u,fields:d,useBackend:p,debounceSearchDelay:m,clearable:v=!0,inputStyle:g,dropdownStyle:w,dropdownHoist:y,placeholder:C,validateState:M,optionsChange:N,onChange:W,onSelectFocus:O,onValueChange:j,onSearch:D}=e,z=(0,h.useMemo)((()=>m?(0,k.debounce)(D,m):D),[m,D]),R=(0,h.useMemo)((()=>l&&["multiple","tags"].includes(l)),[l]),P=(0,h.useRef)(null),T=(0,h.useRef)(null),H=(0,h.useRef)(!0),[F,L]=(0,h.useState)(""),[_,U]=(0,h.useState)(),[V,q]=(0,h.useState)(l?[]:void 0),[I,G]=(0,h.useState)(),[$,X]=(0,h.useState)(null!==(t=(0,x.o)(e.options,d))&&void 0!==t?t:[]),[Z,J]=(0,h.useState)(!0),[K,Q]=(0,h.useState)(!1),[Y,ee]=(0,h.useState)([]),[te,ne]=(0,h.useState)([]),[re,ie]=(0,h.useState)({}),oe=(0,h.useRef)(null);(0,h.useEffect)((()=>{var t;X((0,x.o)((null!==(t=e.options)&&void 0!==t?t:[]).concat("tags"===l&&e.value?e.value:[]),d))}),[e.options,d,e.value,l]);const ae=(0,h.useCallback)((()=>{V?a||(J(!Z),Q(!0),oe.current&&oe.current.focus(),null==O||O()):(J(!1),Q(!0),oe.current&&oe.current.focus(),null==O||O())}),[a,Z,V,O]),le=(0,h.useCallback)((e=>{let t;var n;H.current=!1,t=R?(null!=V?V:[]).includes(e.value)?V.filter((t=>t!==e.value)):(null!==(n=V)&&void 0!==n?n:[]).concat(e.value):e.value;const r=R?Y.find((t=>t.value===e.value))?Y.filter((t=>t.value!==e.value)):Y.concat(e):[e];ee(r),q(t),null==W||W(t,r),null==j||j(t),J(!R),ie(e),!R&&Q(!1),R&&oe.current&&oe.current.focus(),L("")}),[R,W,j,Y,V]),se=(0,h.useCallback)((e=>{const t=Y.filter((t=>t.value!==e));ee(t),null==W||W(t.map((e=>e.value)),t)}),[W,Y]),ce=(0,h.useCallback)((async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(p&&ze(p)){const{provider:r,args:i,onValueChangeArgs:o,transform:a=e=>e}=p;try{G("loading");const l=Re("search"===n?i:o,t),s=await(0,S.fetchByProvider)(r,l);if((0,k.isNil)(s))return;const c=a(s),u=(0,x.o)(c,d);G("success"),X(u),"valueChange"===n&&ee(u.filter((t=>Array.isArray(e.value)?e.value.includes(t.value):t.value===e.value)))}catch(e){G("error"),(0,S.handleHttpError)(e)}}}),[p,d,e.value]),ue=(0,h.useMemo)((()=>(0,k.debounce)(ce,m||300)),[m,ce]),de=f().useMemo((()=>("tags"===l&&F?[F]:[]).map((e=>({key:e,label:e,value:e}))).concat(Y.filter((e=>!$.find((t=>t.value===e.value))))).concat($)),[F,l,$,Y]);(0,h.useEffect)((()=>{const t=R&&e.value&&!Array.isArray(e.value)?[e.value]:e.value;q(t),ee(t?de.filter((n=>R?t.includes(n.value):n.value===e.value)):[])}),[e.value,$]),(0,h.useEffect)((()=>{null==N||N(de,o)}),[de]),(0,h.useEffect)((()=>{var t;(null==e||null===(t=e.useBackend)||void 0===t?void 0:t.onValueChangeArgs)&&H.current&&!(Array.isArray(e.value)?0===e.value.length:(0,k.isNil)(e.value))&&ce(e.value,"valueChange"),H.current=!0}),[ce,null==e||null===(n=e.useBackend)||void 0===n?void 0:n.onValueChangeArgs,e.value]);const pe=(0,h.useCallback)((e=>{e.stopPropagation();const t=e.target.value;if("tags"===l&&t){const e=null==s?void 0:s.includes(t[t.length-1]),n=t&&e?t.substring(0,t.length-1):t;e?le({key:n,label:n,value:n}):L(t)}else L(t),J(!1),z(t);ue(t,"search")}),[le,ue,l,z,s]),he=(0,h.useCallback)((e=>{if(K&&("Enter"===e.code&&re&&le(re),"Backspace"===e.code&&R&&""===F&&null!=Y&&Y.length&&(Y.pop(),ee([...Y]),V.pop(),q([...V]))),!Z&&re){if("ArrowDown"===e.code){const e=te.findIndex((e=>e.value===re.value));ie(te[e+1>te.length-1?te.length-1:e+1])}if("ArrowUp"===e.code){const e=te.findIndex((e=>e.value===re.value));ie(te[e-1<0?0:e-1])}}}),[K,R,F,Y,Z,re,le,V,te]),fe=(0,h.useMemo)((()=>"object"==typeof Y?(0,k.isEmpty)(Y):void 0===Y),[Y]);(0,h.useLayoutEffect)((()=>{const e=de.filter((e=>!F||e.label.toLocaleUpperCase().includes(F.toLocaleUpperCase())));var t,n;ne(e),ie(null==e?void 0:e[0]),T.current&&U(0===(null===(t=T.current)||void 0===t?void 0:t.offsetWidth)?4:null===(n=T.current)||void 0===n?void 0:n.offsetWidth)}),[de,le,F,l,s]),(0,h.useEffect)((()=>{const e=e=>{e.stopPropagation();const t=e.composedPath();r&&t.includes(r)||(Q(!1),J(!0),L(""))};return document.addEventListener("keydown",he),document.addEventListener("click",e),()=>{document.removeEventListener("keydown",he),document.removeEventListener("click",e)}}),[r,he]);const me=(0,h.useMemo)((()=>{let e=Y;if(c){const t=Y.length-c>0?{label:"+"+(Y.length-c),key:"$$key",value:"",closable:!1}:null;e=Y.slice(0,c),t&&e.push(t)}const t=de.reduce(((e,t)=>t.options?[...e,...t.options]:[...e,t]),[]),n=e=>{var t;return f().createElement("div",{className:"label"},f().createElement("span",{className:"text"},R?f().createElement(je,{key:e.value,color:a?"#ddd":void 0,closable:null===(t=e.closable)||void 0===t||t,checkable:!1,onClose:()=>se(e.value)},e.label,R&&(null==u?void 0:u.useBrick)&&f().createElement(E.ReactUseBrick,{useBrick:u.useBrick,data:e})):e.label),!R&&(null==u?void 0:u.useBrick)&&f().createElement(E.ReactUseBrick,{useBrick:u.useBrick,data:e}))};return f().createElement("div",{className:A()({"selected-item":R,"select-single-item":!R}),style:fe?{color:"var(--antd-input-placeholder-color)"}:{}},null!=Y&&Y.length?R?e.map((e=>{let r;var i;return"object"==typeof e?r=e:(r=null!==(i=t.find((t=>t.value===e)))&&void 0!==i?i:{},r.closeable=!a&&r.closeable),n(r)})):n(Y[0]):K||F?"":C)}),[de,a,se,F,fe,K,c,R,C,Y,u]),ve=(0,h.useMemo)((()=>{const t=e=>{var t;return f().createElement("div",{key:null===(t=e.value)||void 0===t?void 0:t.toString(),className:A()("select-item","select-item-option",{disabled:e.disabled,"select-option-hover":e.value===re.value,"select-option-selected":"object"!=typeof V?V===(null==e?void 0:e.value):null==V?void 0:V.includes(e.value)}),onClick:()=>!e.disabled&&le(e),onMouseOver:()=>ie(e),onMouseLeave:()=>ie({})},f().createElement("div",{className:"select-item-option-content"},f().createElement("div",{className:"option"},f().createElement("div",{className:"text-container"},f().createElement("span",{className:"label"},e.label),e.caption&&f().createElement("span",{className:"caption"},e.caption)),(null==u?void 0:u.useBrick)&&f().createElement(E.ReactUseBrick,{useBrick:u.useBrick,data:e})),R&&f().createElement("div",{className:"is-checked"},f().createElement(De,{lib:"antd",icon:"check",theme:"outlined"}))))};return te.length>0?e.groupBy?Object.entries((0,k.groupBy)(te,e.groupBy)).map(((e,n)=>{let[r,i]=e;return"undefined"!==r?f().createElement("div",{key:n,className:"select-group-wrapper"},f().createElement("div",{className:"select-group-label"},r),i.map((e=>t(e)))):i.map((e=>t(e)))})):te.map((e=>t(e))):f().createElement("div",{className:"empty-tips"},f().createElement(B.A,null),f().createElement("span",null,"暂无数据"))}),[te,e.groupBy,re,V,u,R,le]);return f().createElement(Oe,(0,i.A)({exportparts:"message"},(0,b.v)(e)),f().createElement("div",{className:A()("select",{"select-disabled":a,"select-allow-clear":v,"select-single":!R,"select-multiple":R}),style:g,ref:P},f().createElement(We,{active:!Z,placement:"bottom",strategy:y?"fixed":"absolute",distance:5,sync:"width",flip:!0,className:"select-dropdown-popup","data-testid":"select-dropdown-popup"},f().createElement("div",{className:A()("select-selector",{"selector-focused":K,"is-error":"error"===M}),slot:"anchor",onClick:ae},f().createElement("div",{className:"select-selection-overflow"},R&&me,f().createElement("div",{className:"input-item"},f().createElement("div",{className:"select-selection-search"},f().createElement("span",{style:{position:"absolute",opacity:"0"},ref:T},F),f().createElement("input",{style:{width:_},type:"text",value:F,ref:oe,className:"select-selection-search-input",onChange:pe})),R?null:!F&&me)),f().createElement("span",{className:"select-arrow"},!fe&&v?f().createElement(De,{className:"close-btn",lib:"antd",icon:"close-circle",theme:"filled",onClick:e=>(e=>{e.stopPropagation(),ee([]),null==W||W(void 0,[])})(e)}):f().createElement("span",{className:A()("anticon","anticon-down ","ant-select-suffix",{focus:K})},f().createElement(De,{icon:"down",lib:"antd",theme:"outlined"})))),f().createElement("div",{className:"select-dropdown dropdown-list",style:w},"loading"===I?f().createElement("div",{className:"dropdown-list-loading-container"},f().createElement(De,{icon:"loading",lib:"antd",theme:"outlined",spinning:!0})):f().createElement("div",{className:"dropdown-inner"},ve)))))}r=ht,({e:[M,N,W,O,j,D,z,R,P,T,H,F,L,_,U,V,q,I,G,$,X,Z,J,K,Q,Y,ee,te,ne,re,ie,oe,ae,le,se,ce,ue,de,pe,he,fe,me,ve,ge,be,we,ye,Ae,xe,ke,Ee,Se,Be,Ce,Me,Ne],c:[Fe,C]}=(0,p.A)(r,[Pe("eo-select",{styleTexts:[w.A],alias:["form.general-select"]})],[[Te(),1,"name"],[Te(),1,"placeholder"],[Te(),1,"label"],[Te({attribute:!1}),1,"options"],[Te({attribute:!1}),1,"value"],[Te({type:Boolean}),1,"required"],[Te({attribute:!1}),1,"message"],[Te({type:Boolean}),1,"disabled"],[Te(),1,"mode"],[Te({attribute:!1}),1,"tokenSeparators"],[Te(),1,"maxTagCount"],[Te(),1,"groupBy"],[Te({attribute:!1}),1,"suffix"],[Te({type:Boolean}),1,"clearable"],[Te({attribute:!1}),1,"fields"],[Te({attribute:!1}),1,"useBackend"],[Te({type:Number}),1,"debounceSearchDelay"],[Te({attribute:!1}),1,"inputStyle"],[Te({attribute:!1}),1,"dropdownStyle"],[Te({type:Boolean}),1,"dropdownHoist"],[He({type:"change"}),1,"changeEvent",e=>(0,d.A)(at,e),(e,t)=>(0,u.A)(at,e,t)],[He({type:"search"}),1,"searchEvent",e=>(0,d.A)(st,e),(e,t)=>(0,u.A)(st,e,t)],[He({type:"select.focus"}),1,"focusEvent",e=>(0,d.A)(ct,e),(e,t)=>(0,u.A)(ct,e,t)],[He({type:"options.change"}),1,"optionsChange",e=>(0,d.A)(ut,e),(e,t)=>(0,u.A)(ut,e,t)]],0,(e=>pt.has((0,s.A)(e))),g.N)),C()},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},2016:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},2559:(e,t,n)=>{"use strict";function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(7545),i=n(6902);function o(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function l(e,t,n,l,s,c){var u,d,p,h,f,m,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,w=Object.create,y=[w(null),w(null)],A=t.length;function x(t,n,r){return function(i,o){n&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,r?[o]:[]);return r?o:i}}function k(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,i,a,l,s,c,p,h,f){function m(e){if(!f(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),g=t[3],w=!s,A=1===a,E=3===a,S=4===a,B=2===a;function C(t,n,r){return function(i,o){return n&&(o=i,i=e),r&&r(i),M[t].call(i,o)}}if(!w){var M={},N=[],W=E?"get":S||A?"set":"value";if(p?(h||A?M={get:o((function(){return g(this)}),i,"get"),set:function(e){t[4](this,e)}}:M[W]=g,h||o(M[W],i,B?"":W)):h||(M=Object.getOwnPropertyDescriptor(e,i)),!h&&!p){if((d=y[+c][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+M[W].name+") is not supported yet");y[+c][i]=a<3?1:a}}for(var O=e,j=v.length-1;j>=0;j-=n?2:1){var D=k(v[j],"A decorator","be",!0),z=n?v[j-1]:void 0,R={},P={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");k(t,"An initializer","be",!0),l.push(t)}.bind(null,R)};if(w)d=D.call(z,O,P),R.v=1,k(d,"class decorators","return")&&(O=d);else if(P.static=c,P.private=p,d=P.access={has:p?f.bind():function(e){return i in e}},S||(d.get=p?B?function(e){return m(e),M.value}:C("get",0,m):function(e){return e[i]}),B||E||(d.set=p?C("set",0,m):function(e,t){e[i]=t}),O=D.call(z,A?{get:M.get,set:M.set}:M[W],P),R.v=1,A){if("object"==(0,r.A)(O)&&O)(d=k(O.get,"accessor.get"))&&(M.get=d),(d=k(O.set,"accessor.set"))&&(M.set=d),(d=k(O.init,"accessor.init"))&&N.unshift(d);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(O,(h?"field":"method")+" decorators","return")&&(h?N.unshift(O):M[W]=O)}return a<2&&s.push(x(N,c,1),x(l,c,0)),h||w||(p?A?s.splice(-1,0,C("get",c),C("set",c)):s.push(B?M[W]:k.call.bind(M[W])):b(e,i,M)),O}function S(e){return b(e,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==c&&(u=c[g]),u=w(null==u?null:u),f=[],m=function(e){e&&f.push(x(e))},v=function(t,r){for(var o=0;o<n.length;o++){var l=n[o],c=l[1],u=7&c;if((8&c)==t&&!u==r){var d=l[2],m=!!l[3],v=16&c;E(t?e:e.prototype,l,v,m?"#"+d:(0,a.A)(d),u,u<2?[]:t?h=h||[]:p=p||[],f,!!t,m,r,t&&m?function(t){return(0,i.A)(t)===e}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),m(p),m(h),d=f,A||S(e),{e:d,get c(){var n=[];return A&&[S(e=E(e,[t],l,e.name,5,n)),x(n,1)]}}}},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},4646:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.push([e.id,".select{width:100%;margin:0;padding:0;color:var(--antd-text-color);font-size:14px;position:relative;cursor:text;min-width:100px}*{box-sizing:border-box}.select-selector{position:relative;border:1px solid var(--antd-border-color-base);border-radius:var(--small-border-radius);box-sizing:border-box;background-color:var(--antd-component-background);transition:all 0.3s cubic-bezier(0.645,0.045,0.355,1);padding-right:24px}.select:not(.select-disabled):hover .select-selector{border-color:var(--antd-input-hover-border-color);z-index:1}.select:not(.select-disabled):hover .close-btn{display:block}.select-multiple .select-selector{min-height:30px;height:auto}.select-selection-overflow{position:relative;display:flex;flex:auto;flex-wrap:wrap;max-width:100%;padding-left:10px}.select-multiple .select-selection-overflow{padding-left:4px}.select-single .select-selection-overflow{width:100%;padding:0 10px}.selected-item{flex:none;align-self:center;max-width:100%;line-height:1;margin-top:2px}.selected-item .label{display:inline-block;margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.selector-focused{border-color:var(--antd-input-focus-border-color);border-width:1px;outline:0;box-shadow:0 0 0 2px rgb(0 113 235/20%)}.select-single-item{line-height:1}.selector-focused .selected-single-item{color:var(--antd-input-placeholder-color)}.select-single .select-selection-search{position:absolute;top:-2px;right:25px;bottom:0;left:10px}.select-multiple .select-selection-search{left:4px}.select-single-item{flex:1;min-width:0}.select-single-item .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:space-between}.select-single-item .label .text{margin-right:4px;flex:1;overflow:hidden;text-overflow:ellipsis}.selector-focused .select-single-item .text{color:var(--antd-input-placeholder-color)}.select-multiple .select-selection-search{padding-right:22px}.select-selection-search-input{margin:0;padding:0;background:transparent;border:none;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:30px;cursor:pointer;color:var(--antd-text-color)}.select-disabled .select-selector{color:var(--text-color-disabled);background:var(--antd-input-disabled-bg);cursor:not-allowed}.select-disabled .select-selection-search-input{cursor:not-allowed}.select-selector.is-error{border-color:var(--antd-error-color)}.close-btn{display:none}.anticon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-0.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.select-arrow{display:inline-block;color:inherit;cursor:pointer;font-style:normal;line-height:0;text-transform:none;vertical-align:-0.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:53%;right:11px;width:12px;height:12px;margin-top:-6px;color:var(--text-color-disabled);font-size:12px;line-height:1;text-align:center}.anticon{vertical-align:top;transition:0.4s rotate ease}.anticon.focus{rotate:-180deg}.select-dropdown-popup::part(popup){z-index:1050}.select-dropdown{line-height:1.5715;padding:2px;overflow:hidden;background-color:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow)}.dropdown-list{max-height:256px;overflow-y:scroll;overflow-anchor:none}.dropdown-inner{display:flex;flex-direction:column}.select-item{position:relative;display:block;padding:5px 12px;color:var(--antd-text-color);font-weight:normal;font-size:14px;line-height:22px;cursor:pointer;transition:background 0.3s ease;margin:2px}.select-item-option{display:flex;border-radius:var(--medius-border-radius);margin:2px}.select-item-option.disabled{cursor:not-allowed;color:var(--color-disabled-text);background:var(--antd-input-disabled-bg)}.select-option-hover{background-color:var(--antd-select-item-active-bg)}.select-item-option-content{position:relative;flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-item-option-content .option{display:flex;align-items:center;justify-content:space-between}.select-option-selected .option:not(:last-child){margin-right:22px}.select-item-option-content .text-container{display:flex;flex-direction:column}.dropdown-list .option .text-container .label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-list .option .text-container .caption{font-size:var(--auxiliary-font-size-small);color:var(--color-secondary-text);font-weight:var(--font-weight-400);line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-list .option .label:not(:last-child){margin-right:8px}.select-option-selected{background-color:var(--color-info-icon-bg)}.select-option-hover{background-color:var(--antd-select-item-active-bg)}.is-checked{display:none;position:absolute;right:0px;top:0;color:var(--color-brand)}.select-option-selected .is-checked{display:block}.input-item{min-height:28px;display:flex;align-items:center;min-width:0}.select-single .input-item{flex:1}.empty-tips{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:14px;color:var(--palette-gray-8);padding:20px}.empty-tips > span{margin-left:-4px;margin-top:8px;color:var(--color-secondary-text)}.select-group-wrapper .select-group-label{padding-left:12px;color:var(--antd-text-color-secondary);font-size:12px;cursor:default}.select-group-wrapper .select-item-option{padding-left:24px}.dropdown-list-loading-container{height:40px;display:flex;align-items:center;justify-content:center;background:rgba(var(--antd-component-background),0.7);font-size:24px}",""]);const l=a.toString()},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},7121:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9575),i=n(8769);const o=e=>i.createElement("svg",(0,r.A)({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:56,height:53},e),i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"5.718%",x2:"83.05%",y1:"4.311%",y2:"88.915%"},i.createElement("stop",{offset:"0%",stopColor:"#D4D8E4"}),i.createElement("stop",{offset:"100%",stopColor:"#A9B0C4"})),i.createElement("linearGradient",{id:"g",x1:"41.823%",x2:"8.813%",y1:"24.795%",y2:"86.427%"},i.createElement("stop",{offset:"0%",stopColor:"#CCD0DD"}),i.createElement("stop",{offset:"100%",stopColor:"#9DA3B9"})),i.createElement("filter",{id:"b",width:"233.4%",height:"233.4%",x:"-57.2%",y:"-47.7%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{dx:1,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:2}),i.createElement("feComposite",{in:"shadowBlurOuter1",in2:"SourceAlpha",operator:"out",result:"shadowBlurOuter1"}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0"})),i.createElement("filter",{id:"e",width:"288.7%",height:"288.7%",x:"-94.4%",y:"-121.3%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{dy:-2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:2}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"})),i.createElement("path",{id:"c",d:"M23.672 23.607h2.492a4 4 0 0 1 4 4v2.491a4 4 0 0 1-4 4h-2.492a4 4 0 0 1-4-4v-2.491a4 4 0 0 1 4-4"}),i.createElement("path",{id:"f",d:"M37.311 12.459a4 4 0 0 1 4 4v3.419l-7.418-7.419z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{fill:"#A6AAC3",d:"M39.682 33.967H10.81a2.8 2.8 0 0 0-1.94.782l-5.197 4.999v6.98a5.6 5.6 0 0 0 5.6 5.6H41.22a5.6 5.6 0 0 0 5.6-5.6v-6.98l-5.196-4.999a2.8 2.8 0 0 0-1.942-.782"}),i.createElement("path",{fill:"url(#a)",d:"m33.893 12.459 7.418 7.419v22.568a2.8 2.8 0 0 1-2.8 2.8h-26.53a2.8 2.8 0 0 1-2.8-2.8V18.459a6 6 0 0 1 6-6z"}),i.createElement("use",{xlinkHref:"#c",fill:"#000",filter:"url(#b)"}),i.createElement("path",{fill:"url(#d)",stroke:"#FFF",strokeLinejoin:"round",d:"M26.164 24.107c.966 0 1.841.391 2.475 1.025a3.5 3.5 0 0 1 1.025 2.475v2.491a3.5 3.5 0 0 1-1.025 2.475 3.5 3.5 0 0 1-2.475 1.025h-2.492a3.5 3.5 0 0 1-2.475-1.025 3.5 3.5 0 0 1-1.025-2.475v-2.491a3.5 3.5 0 0 1 1.025-2.475 3.5 3.5 0 0 1 2.475-1.025Z"}),i.createElement("g",{transform:"rotate(180 37.602 16.168)"},i.createElement("use",{xlinkHref:"#f",fill:"#000",filter:"url(#e)"}),i.createElement("use",{xlinkHref:"#f",fill:"url(#g)"})),i.createElement("path",{fill:"#D6D8E4",d:"M54.164 27.541c.253 0 .459.205.459.459v.918h.918a.459.459 0 1 1 0 .918h-.918v.918a.459.459 0 0 1-.918 0v-.918h-.918a.459.459 0 0 1 0-.918h.918V28c0-.254.205-.459.459-.459M1.377 20.197c.19 0 .344.154.344.344v.574h.574a.459.459 0 1 1 0 .918h-.574v.574a.344.344 0 0 1-.688 0l-.001-.574H.459a.459.459 0 0 1 0-.918h.573v-.574c0-.19.155-.344.345-.344",opacity:.3}),i.createElement("path",{fill:"#D6D8E4",d:"M24.787 43.53h.014c7.087.143 9.817-3.834 12.785-4.046l.19-.008h9.044v10.052a2.8 2.8 0 0 1-2.63 2.795l-.17.005H6.472l-.17-.005a2.8 2.8 0 0 1-2.63-2.795V39.475h8.126l.144-.004c2.485.004 5.214 3.898 12.83 4.06z"}),i.createElement("path",{fill:"#D6D8E4",d:"M13.77 2.2s2.308-.555 2.962-2.2c.943 1.35 1.429 1.933 2.547 2.189-1.522.453-2.183.963-2.704 2.401-.598-1.695-1.142-1.914-2.805-2.39",opacity:.5}),i.createElement("path",{fill:"#D6D8E4",d:"M41.311 6.64S47.464 5.194 49.21.917c2.514 3.508 3.81 5.025 6.791 5.691-4.059 1.18-5.822 2.503-7.21 6.243-1.594-4.406-3.045-4.976-7.479-6.213",opacity:.8})))},7545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7759:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(1030);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(0,r.uniqBy)(e.map((e=>"number"==typeof e||"string"==typeof e?{label:e,value:e}:"boolean"==typeof e?{label:String(e),value:e}:t?{...e,label:(0,r.get)(e,t.label||"label"),value:(0,r.get)(e,t.value||"value")}:{...e,label:e.label,value:e.value})),"value")}},9492:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n,i){return t((0,r.A)(e,n),i),i}},9575:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})}}]);
|
|
3
|
-
//# sourceMappingURL=eo-select.0e3b0626.js.map
|
|
File without changes
|
/package/dist/chunks/{eo-select.0e3b0626.js.LICENSE.txt → eo-select.3eb14338.js.LICENSE.txt}
RENAMED
|
File without changes
|