@next-bricks/advanced 0.47.1 → 0.48.0
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 +1 -1
- package/dist/chunks/1889.d17b50c4.js +2 -0
- package/dist/chunks/1889.d17b50c4.js.map +1 -0
- package/dist/chunks/{2252.98aa3e1e.js → 2252.b8bf2103.js} +3 -3
- package/dist/chunks/{2252.98aa3e1e.js.map → 2252.b8bf2103.js.map} +1 -1
- package/dist/chunks/4197.11cae136.js +2 -0
- package/dist/chunks/{4197.9455fba5.js.map → 4197.11cae136.js.map} +1 -1
- package/dist/chunks/{4837.a4abe532.js → 4837.f4166cc0.js} +2 -2
- package/dist/chunks/{4837.a4abe532.js.map → 4837.f4166cc0.js.map} +1 -1
- package/dist/chunks/{7218.7fb394fc.js → 7218.84f7c175.js} +2 -2
- package/dist/chunks/{7218.7fb394fc.js.map → 7218.84f7c175.js.map} +1 -1
- package/dist/chunks/9140.9ee33780.js +3 -0
- package/dist/chunks/9140.9ee33780.js.map +1 -0
- package/dist/chunks/{capture-snapshot.35797eba.js → capture-snapshot.9741ac3a.js} +2 -2
- package/dist/chunks/{capture-snapshot.35797eba.js.map → capture-snapshot.9741ac3a.js.map} +1 -1
- package/dist/chunks/eo-cascader.6328ebcd.js +2 -0
- package/dist/chunks/{eo-cascader.972d0f1a.js.map → eo-cascader.6328ebcd.js.map} +1 -1
- package/dist/chunks/eo-next-table.fe759f00.js +2 -0
- package/dist/chunks/{eo-next-table.52ec790d.js.map → eo-next-table.fe759f00.js.map} +1 -1
- package/dist/chunks/eo-table.da203d4f.js +2 -0
- package/dist/chunks/{eo-table.12739d5e.js.map → eo-table.da203d4f.js.map} +1 -1
- package/dist/chunks/{eo-text-tooltip.60fd84f4.js → eo-text-tooltip.75c02684.js} +2 -2
- package/dist/chunks/{eo-text-tooltip.60fd84f4.js.map → eo-text-tooltip.75c02684.js.map} +1 -1
- package/dist/chunks/eo-tree-select.93d1aac6.js +2 -0
- package/dist/chunks/{eo-tree-select.cb6bcb08.js.map → eo-tree-select.93d1aac6.js.map} +1 -1
- package/dist/chunks/{eo-tree.926c0da4.js → eo-tree.dbb4ba02.js} +3 -3
- package/dist/chunks/{eo-tree.926c0da4.js.map → eo-tree.dbb4ba02.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout-v2.c223df74.js +3 -0
- package/dist/chunks/{eo-workbench-layout-v2.f1eda59a.js.map → eo-workbench-layout-v2.c223df74.js.map} +1 -1
- package/dist/chunks/eo-workbench-layout.ae274633.js +2 -0
- package/dist/chunks/{eo-workbench-layout.4414c0db.js.map → eo-workbench-layout.ae274633.js.map} +1 -1
- package/dist/chunks/{main.5156bdb0.js → main.31d3cb13.js} +2 -2
- package/dist/chunks/{main.5156bdb0.js.map → main.31d3cb13.js.map} +1 -1
- package/dist/chunks/{pdf-viewer.46a52a19.js → pdf-viewer.8fce6070.js} +2 -2
- package/dist/chunks/{pdf-viewer.46a52a19.js.map → pdf-viewer.8fce6070.js.map} +1 -1
- package/dist/{index.639ce0e4.js → index.e8a0f0b3.js} +2 -2
- package/dist/{index.639ce0e4.js.map → index.e8a0f0b3.js.map} +1 -1
- package/package.json +2 -2
- package/dist/chunks/1889.9115a29a.js +0 -2
- package/dist/chunks/1889.9115a29a.js.map +0 -1
- package/dist/chunks/4197.9455fba5.js +0 -2
- package/dist/chunks/9140.4c7cb597.js +0 -3
- package/dist/chunks/9140.4c7cb597.js.map +0 -1
- package/dist/chunks/eo-cascader.972d0f1a.js +0 -2
- package/dist/chunks/eo-next-table.52ec790d.js +0 -2
- package/dist/chunks/eo-table.12739d5e.js +0 -2
- package/dist/chunks/eo-tree-select.cb6bcb08.js +0 -2
- package/dist/chunks/eo-workbench-layout-v2.f1eda59a.js +0 -3
- package/dist/chunks/eo-workbench-layout.4414c0db.js +0 -2
- /package/dist/chunks/{2252.98aa3e1e.js.LICENSE.txt → 2252.b8bf2103.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9140.4c7cb597.js.LICENSE.txt → 9140.9ee33780.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-tree.926c0da4.js.LICENSE.txt → eo-tree.dbb4ba02.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-workbench-layout-v2.f1eda59a.js.LICENSE.txt → eo-workbench-layout-v2.c223df74.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[5008],{16768:(e,t,i)=>{i.d(t,{A:()=>w});var s=i(95694),r=i(58133),a=i(79154),n=i(73459);var l=i(19509),o=i(53443),h=i(94597),c=i(64425);var u=i(97043),d=i(45907),A=i(6127);const g=(e,t)=>new A.Y(e).setA(t).toRgbString(),p=(e,t)=>new A.Y(e).lighten(t).toHexString(),m=e=>{const t=(0,u.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},b=(e,t)=>{const i=e||"#000",s=t||"#fff";return{colorBgBase:i,colorTextBase:s,colorText:g(s,.85),colorTextSecondary:g(s,.65),colorTextTertiary:g(s,.45),colorTextQuaternary:g(s,.25),colorFill:g(s,.18),colorFillSecondary:g(s,.12),colorFillTertiary:g(s,.08),colorFillQuaternary:g(s,.04),colorBgSolid:g(s,.95),colorBgSolidHover:g(s,1),colorBgSolidActive:g(s,.9),colorBgElevated:p(i,12),colorBgContainer:p(i,8),colorBgLayout:p(i,0),colorBgSpotlight:p(i,26),colorBgBlur:g(s,.04),colorBorder:p(i,26),colorBorderSecondary:p(i,19)}},w={defaultSeed:o.sb.token,useToken:function(){const[e,t,i]=(0,l.Ay)();return{theme:e,token:t,hashId:i}},defaultAlgorithm:r.A,darkAlgorithm:(e,t)=>{const i=Object.keys(a.r).map((t=>{const i=(0,u.cM)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,s,r)=>(e[`${t}-${r+1}`]=i[r],e[`${t}${r+1}`]=i[r],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),s=null!=t?t:(0,r.A)(e);return Object.assign(Object.assign(Object.assign({},s),i),(0,d.A)(e,{generateColorPalettes:m,generateNeutralColorPalettes:b}))},compactAlgorithm:(e,t)=>{const i=null!=t?t:(0,r.A)(e),s=i.fontSizeSM,a=i.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i),function(e){const{sizeUnit:t,sizeStep:i}=e,s=i-2;return{sizeXXL:t*(s+10),sizeXL:t*(s+6),sizeLG:t*(s+2),sizeMD:t*(s+2),sizeMS:t*(s+1),size:t*s,sizeSM:t*s,sizeXS:t*(s-1),sizeXXS:t*(s-1)}}(null!=t?t:e)),(0,c.A)(s)),{controlHeight:a}),(0,h.A)(Object.assign(Object.assign({},i),{controlHeight:a})))},getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?(0,s.an)(e.algorithm):(0,s.an)(r.A),i=Object.assign(Object.assign({},a.A),null==e?void 0:e.token);return(0,s.lO)(i,{override:null==e?void 0:e.token},t,n.A)},defaultConfig:o.sb,_internalContext:o.vG}},23246:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(89575),r=i(18769);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var n=i(84021),l=function(e,t){return r.createElement(n.A,(0,s.A)({},e,{ref:t,icon:a}))};const o=r.forwardRef(l)},30426:(e,t,i)=>{i.d(t,{N:()=>O});var s,r=i(74635),a=i(70918),n=i(5536),l=i(99492),o=i(86121),h=i(70829),c=i(62740),u=i(7921),d=i(11280);let A,g,p,m,b,w,f,k,v;const{method:C,property:x}=(0,u.createDecorators)();var M=new WeakMap,S=new WeakSet,y=new WeakMap,B=new WeakMap,W=new WeakMap,T=new WeakMap,z=new WeakMap,E=new WeakMap;class O extends d.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,S),(0,a.A)(this,M,(A(this),!1)),(0,a.A)(this,y,"normal"),(0,a.A)(this,B,!1),(0,a.A)(this,W,g(this)),(0,a.A)(this,T,(p(this),m(this))),(0,a.A)(this,z,(b(this),w(this))),(0,a.A)(this,E,(f(this),k(this))),v(this)}get isFormItemElement(){return!0}set validateState(e){(0,l.A)(S,F,this,e),this._render()}get validateState(){return(0,n.A)(S,this,R)}set notRender(e){this.hidden=e,(0,l.A)(S,j,this,e),this._render()}get notRender(){return(0,n.A)(S,this,N)}get $bindFormItem(){return(0,n.A)(S,this,I)}set $bindFormItem(e){(0,l.A)(S,P,this,e),this._render()}get helpBrick(){return(0,h.A)(W,this)}set helpBrick(e){(0,o.A)(W,this,e)}get labelBrick(){return(0,h.A)(T,this)}set labelBrick(e){(0,o.A)(T,this,e)}get labelCol(){return(0,h.A)(z,this)}set labelCol(e){(0,o.A)(z,this,e)}get wrapperCol(){return(0,h.A)(E,this)}set wrapperCol(e){(0,o.A)(E,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function N(e){return(0,h.A)(M,e)}function j(e,t){(0,o.A)(M,e,t)}function R(e){return(0,h.A)(y,e)}function F(e,t){(0,o.A)(y,e,t)}function I(e){return(0,h.A)(B,e)}function P(e,t){(0,o.A)(B,e,t)}s=O,[g,p,m,b,w,f,k,v,A]=(0,c.A)(s,[],[[x({attribute:!1}),1,"helpBrick"],[x({attribute:!1}),1,"labelBrick"],[x({attribute:!1}),1,"labelCol"],[x({attribute:!1}),1,"wrapperCol"],[C(),2,"setNotRender"],[C(),2,"getFormElement"]],0,void 0,d.ReactNextElement).e},58381:(e,t,i)=>{i.r(t),i.d(t,{CascaderBrick:()=>pe});var s,r=i(24586),a=i(74635),n=i(70918),l=i(26902),o=i(5536),h=i(86121),c=i(70829),u=i(62740),d=i(18769),A=i.n(d),g=i(7921),p=i(11280),m=(i(76477),i(40194)),b=i(16768),w=i(97039),f=i(95694),k=i(30426),v=i(72736),C=i(71058);let x,M,S,y,B,W,T,z,E,O,N,j,R,F,I,P,L,_,X,$,q,H,D,V,G,Q,Y,U,J,K,Z,ee,te,ie,se,re,ae,ne,le,oe,he;const{defineElement:ce,property:ue,event:de}=(0,g.createDecorators)(),Ae=(0,p.wrapBrick)("eo-icon"),ge=(0,p.wrapBrick)("eo-form-item");let pe;var me=new WeakMap,be=new WeakMap,we=new WeakMap,fe=new WeakMap,ke=new WeakMap,ve=new WeakMap,Ce=new WeakMap,xe=new WeakMap,Me=new WeakMap,Se=new WeakMap,ye=new WeakMap,Be=new WeakMap,We=new WeakMap,Te=new WeakMap,ze=new WeakMap,Ee=new WeakMap,Oe=new WeakMap,Ne=new WeakMap,je=new WeakMap,Re=new WeakSet;class Fe extends k.N{constructor(){super(...arguments),(0,a.A)(this,Re),(0,n.A)(this,me,M(this)),(0,n.A)(this,be,(S(this),y(this))),(0,n.A)(this,we,(B(this),W(this))),(0,n.A)(this,fe,(T(this),z(this))),(0,n.A)(this,ke,(E(this),O(this,{label:"label",value:"value",children:"children"}))),(0,n.A)(this,ve,(N(this),j(this))),(0,n.A)(this,Ce,(R(this),F(this))),(0,n.A)(this,xe,(I(this),P(this))),(0,n.A)(this,Me,(L(this),_(this))),(0,n.A)(this,Se,(X(this),$(this,!0))),(0,n.A)(this,ye,(q(this),H(this,!0))),(0,n.A)(this,Be,(D(this),V(this))),(0,n.A)(this,We,(G(this),Q(this,"click"))),(0,n.A)(this,Te,(Y(this),U(this,"bottomLeft"))),(0,n.A)(this,ze,(J(this),K(this))),(0,n.A)(this,Ee,(Z(this),ee(this,50))),(0,n.A)(this,Oe,(te(this),ie(this))),(0,n.A)(this,Ne,(se(this),re(this))),(0,n.A)(this,je,(ae(this),ne(this))),(0,r.A)(this,"handleOnChange",(he(this),(e,t)=>{this.value=e,Promise.resolve().then((()=>{(0,o.A)(Re,this,le).emit({value:e,selectedOptions:t})}))}))}get name(){return(0,c.A)(me,this)}set name(e){(0,h.A)(me,this,e)}get label(){return(0,c.A)(be,this)}set label(e){(0,h.A)(be,this,e)}get required(){return(0,c.A)(we,this)}set required(e){(0,h.A)(we,this,e)}get options(){return(0,c.A)(fe,this)}set options(e){(0,h.A)(fe,this,e)}get fieldNames(){return(0,c.A)(ke,this)}set fieldNames(e){(0,h.A)(ke,this,e)}get value(){return(0,c.A)(ve,this)}set value(e){(0,h.A)(ve,this,e)}get placeholder(){return(0,c.A)(Ce,this)}set placeholder(e){(0,h.A)(Ce,this,e)}get multiple(){return(0,c.A)(xe,this)}set multiple(e){(0,h.A)(xe,this,e)}get disabled(){return(0,c.A)(Me,this)}set disabled(e){(0,h.A)(Me,this,e)}get allowClear(){return(0,c.A)(Se,this)}set allowClear(e){(0,h.A)(Se,this,e)}get showSearch(){return(0,c.A)(ye,this)}set showSearch(e){(0,h.A)(ye,this,e)}get suffixIcon(){return(0,c.A)(Be,this)}set suffixIcon(e){(0,h.A)(Be,this,e)}get expandTrigger(){return(0,c.A)(We,this)}set expandTrigger(e){(0,h.A)(We,this,e)}get popupPlacement(){return(0,c.A)(Te,this)}set popupPlacement(e){(0,h.A)(Te,this,e)}get size(){return(0,c.A)(ze,this)}set size(e){(0,h.A)(ze,this,e)}get limit(){return(0,c.A)(Ee,this)}set limit(e){(0,h.A)(Ee,this,e)}get maxTagCount(){return(0,c.A)(Oe,this)}set maxTagCount(e){(0,h.A)(Oe,this,e)}get cascaderStyle(){return(0,c.A)(Ne,this)}set cascaderStyle(e){(0,h.A)(Ne,this,e)}render(){return A().createElement(ge,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},A().createElement(Ie,{shadowRoot:this.shadowRoot,options:this.options,fieldNames:this.fieldNames,value:this.value,multiple:this.multiple,placeholder:this.placeholder,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,expandTrigger:this.expandTrigger,suffixIcon:this.suffixIcon,size:this.size,limit:this.limit,popupPlacement:this.popupPlacement,maxTagCount:this.maxTagCount,cascaderStyle:this.cascaderStyle,onChange:this.handleOnChange}))}}function Ie(e){const{shadowRoot:t,options:i,fieldNames:s,value:r,placeholder:a,disabled:n,multiple:l,allowClear:o,showSearch:h,expandTrigger:c,size:u,limit:g,popupPlacement:p,cascaderStyle:k,suffixIcon:C,maxTagCount:x,onChange:M}=e,S=(0,v.useCurrentTheme)(),y=(0,d.useMemo)((()=>(0,f.VC)()),[]);return A().createElement(m.Ay,{theme:{algorithm:"dark-v2"===S?b.A.darkAlgorithm:b.A.defaultAlgorithm}},A().createElement(f.N7,{container:t,cache:y,hashPriority:"high"},A().createElement(w.A,{getPopupContainer:e=>e.parentElement,allowClear:o,disabled:n,multiple:l,expandTrigger:c,fieldNames:s,placeholder:a,size:u,showSearch:h&&{limit:g,filter:(e,t)=>{const i=(null==s?void 0:s.label)||"label",r=e.split(" ").filter((e=>e)).map((e=>e.toLocaleLowerCase()));for(let e=0;e<r.length;e++)if(!t.some((t=>t[i].toLowerCase().includes(r[e]))))return!1;return!0}},placement:p,style:k,suffixIcon:C&&A().createElement(Ae,C),maxTagCount:x,value:r,options:i,onChange:(e,t)=>null==M?void 0:M(e,t)})))}s=Fe,({e:[M,S,y,B,W,T,z,E,O,N,j,R,F,I,P,L,_,X,$,q,H,D,V,G,Q,Y,U,J,K,Z,ee,te,ie,se,re,ae,ne,le,oe,he],c:[pe,x]}=(0,u.A)(s,[ce("eo-cascader",{alias:["advanced.general-cascader"],styleTexts:[C.A]})],[[ue(),1,"name"],[ue(),1,"label"],[ue({type:Boolean}),1,"required"],[ue({attribute:!1}),1,"options"],[ue({attribute:!1}),1,"fieldNames"],[ue({attribute:!1}),1,"value"],[ue(),1,"placeholder"],[ue({type:Boolean}),1,"multiple"],[ue({type:Boolean}),1,"disabled"],[ue({type:Boolean}),1,"allowClear"],[ue({type:Boolean}),1,"showSearch"],[ue({attribute:!1}),1,"suffixIcon"],[ue(),1,"expandTrigger"],[ue(),1,"popupPlacement"],[ue(),1,"size"],[ue({type:Number}),1,"limit"],[ue({attribute:!1}),1,"maxTagCount"],[ue({attribute:!1}),1,"cascaderStyle"],[de({type:"cascader.change"}),1,"changeEvent",e=>(0,c.A)(je,e),(e,t)=>(0,h.A)(je,e,t)]],0,(e=>Re.has((0,l.A)(e))),k.N)),x()},71058:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(36758),r=i.n(s),a=i(40935),n=i.n(a)()(r());n.push([e.id,".ant-select-single .ant-select-selector{border-radius:var(--medius-border-radius)}.ant-select-dropdown{border-radius:var(--medius-border-radius)}.ant-cascader-dropdown .ant-cascader-menu-item{border-radius:var(--small-border-radius)}",""]);const l=n.toString()},72245:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(89575),r=i(18769);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var n=i(84021),l=function(e,t){return r.createElement(n.A,(0,s.A)({},e,{ref:t,icon:a}))};const o=r.forwardRef(l)}}]);
|
|
2
|
-
//# sourceMappingURL=eo-cascader.972d0f1a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[6184],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(a){!function(e,t,a){var n="";a.supports&&(n+="@supports (".concat(a.supports,") {")),a.media&&(n+="@media ".concat(a.media," {"));var r=void 0!==a.layer;r&&(n+="@layer".concat(a.layer.length>0?" ".concat(a.layer):""," {")),n+=a.css,r&&(n+="}"),a.media&&(n+="}"),a.supports&&(n+="}");var o=a.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,a)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},3679:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),r=a.n(n),o=a(40935),l=a.n(o)()(r());l.push([e.id,'[class^="chartWrap--"]{position:relative;display:flex;flex-direction:column}[class^="chartWrap--"] img::selection{background:transparent}[class^="chartWrap--"] [class^="chartEle--"]{display:flex;justify-content:center;align-items:center;flex:1}',""]);const i=l.toString()},14047:(e,t,a)=>{a.d(t,{I:()=>o,K:()=>n,NS:()=>r});let n=function(e){return e.TOTAL="TOTAL",e.SELECT_INFO="SELECT_INFO",e.CLEAR="CLEAR",e}({});const r="bricks/advanced/eo-next-table",o={en:{TOTAL:"Total <el>{{ total }}</el> items",SELECT_INFO:"{{ count }} item selected",SELECT_INFO_plural:"{{ count }} items selected",CLEAR:"Clear"},zh:{TOTAL:"共 <el>{{ total }}</el> 条",SELECT_INFO:"已选择 {{ count }} 项",CLEAR:"清空"}}},27257:(e,t,a)=>{a.d(t,{F:()=>K});var n=a(18769),r=a.n(n),o=a(40194),l=a(16768),i=a(10212),s=a(95694),d=a(72736),c=a(56664),h=a(72245),p=a(99733),u=a(69704),b=a(47825),g=a(53373),m=a.n(g),w=a(14047),x=a(40450),f=a(41030),v=a(11280),A=a(82202),y=a(81380),k=a(87046),S=a(5414),C=a(45241),E=a(84352),M=a(26386),R=a(39338);(0,u.initializeReactI18n)(w.NS,w.I);const B=(0,v.wrapBrick)("eo-link"),K=(0,n.forwardRef)((function(e,t){var a,c,h,g,m;const{shadowRoot:v,rowKey:K,columns:z,cell:N,dataSource:T,frontSearch:I,pagination:F,loading:D,multiSort:L,rowSelection:O,hiddenColumns:_,expandable:j,childrenColumnName:H,rowDraggable:Q,searchFields:V,size:P,showHeader:G,bordered:U,scrollConfig:q,optimizedColumns:$,themeVariant:J,onPageChange:X,onPageSizeChange:Y,onSort:Z,onRowSelect:ee,onRowExpand:te,onExpandedRowsChange:ae,onRowDrag:ne}=e,{t:re}=(0,u.useTranslation)(w.NS),oe=(0,n.useMemo)((()=>(0,s.VC)()),[]),le=(0,d.useCurrentTheme)(),ie="zh"===p.i18n.language.split("-")[0]?M.A:E.A,se=(0,y.FR)((0,y.MS)(y.AN,{activationConstraint:{distance:1}})),[de,ce]=(0,n.useState)(null==T?void 0:T.list),he=(0,n.useMemo)((()=>{var e;return null!==(e=null==de?void 0:de.map((e=>e[K])))&&void 0!==e?e:[]}),[de,K]),[{page:pe,pageSize:ue},be]=(0,n.useState)({page:null!==(a=null==T?void 0:T.page)&&void 0!==a?a:x._U,pageSize:null!==(c=null==T?void 0:T.pageSize)&&void 0!==c?c:x.yQ}),[ge,me]=(0,n.useState)(e.selectedRowKeys),[we,xe]=(0,n.useState)(null!==(h=e.expandedRowKeys)&&void 0!==h?h:[]),[fe,ve]=(0,n.useState)(e.sort),Ae=(0,n.useMemo)((()=>{var e;return null==T||null===(e=T.list)||void 0===e?void 0:e.some((e=>{var t;return null===(t=e[H])||void 0===t?void 0:t.length}))}),[null==T?void 0:T.list,H]);(0,n.useEffect)((()=>{me(e.selectedRowKeys)}),[e.selectedRowKeys]),(0,n.useEffect)((()=>{var t;xe(null!==(t=e.expandedRowKeys)&&void 0!==t?t:[])}),[e.expandedRowKeys]),(0,n.useEffect)((()=>{(0,x.Qd)(j)&&j.defaultExpandAllRows&&xe((0,x.oQ)({list:null==T?void 0:T.list,rowKey:K,childrenColumnName:H}))}),[]),(0,n.useEffect)((()=>{var e,t;ce(null==T?void 0:T.list),be({page:null!==(e=null==T?void 0:T.page)&&void 0!==e?e:x._U,pageSize:null!==(t=null==T?void 0:T.pageSize)&&void 0!==t?t:x.yQ})}),[T]),(0,n.useEffect)((()=>{ve(e.sort)}),[e.sort]);const ye=(0,n.useMemo)((()=>{const e=new Set(_),t=new Set($),a=(0,f.keyBy)([].concat(fe||[]),"columnKey");return null==z?void 0:z.filter((t=>!e.has(t.key))).map((e=>{const n=a[e.key],o=(t,a,n)=>(0,x.Kf)((0,x.dF)(t,e.dataIndex),(0,x.dF)(a,e.dataIndex),n);return{...e,...e.sortable?{sorter:L?{compare:I?o:void 0,multiple:e.sortPriority}:!I||o,sortOrder:n?n.order:null}:{},...t.has(e.key)?{shouldCellUpdate:(e,t)=>e!==t}:{},render(t,a,n){const o={cellData:t,rowData:a,columnIndex:n,rowIndex:n,columnKey:e.key};return null!=N&&N.useBrick?r().createElement(R.G,{useBrick:N.useBrick,data:o}):e.useBrick?r().createElement(R.G,{useBrick:e.useBrick,data:o}):r().createElement(r().Fragment,null,t)},title(){var t,a;const n={title:e.title,columnKey:e.key};return null!=N&&null!==(t=N.header)&&void 0!==t&&t.useBrick?r().createElement(R.G,{useBrick:N.header.useBrick,data:n}):null!==(a=e.headerBrick)&&void 0!==a&&a.useBrick?r().createElement(R.G,{useBrick:e.headerBrick.useBrick,data:n}):r().createElement(r().Fragment,null,e.title)},onCell:t=>({colSpan:e.cellColSpanKey?t[e.cellColSpanKey]:void 0,rowSpan:e.cellRowSpanKey?t[e.cellRowSpanKey]:void 0,style:{...e.cellStyle,...(0,x.a3)(t,e),verticalAlign:e.verticalAlign}}),onHeaderCell:()=>({style:e.headerStyle})}}))}),[N,z,_,L,fe,I,$]),ke=(0,n.useMemo)((()=>{if(!1!==O&&!(0,f.isNil)(O))return{...x.Ee,...!0===O?{}:O}}),[O]),Se=(0,n.useMemo)((()=>!1!==F&&{...x.oB,...F}),[F]),Ce=(0,n.useMemo)((()=>Ae||!Ae&&"children"!==H?(0,x.Qd)(j)?j:{}:!1===j||(0,f.isNil)(j)?void 0:(0,x.Qd)(j)?j:{}),[j,Ae,H]);(0,n.useImperativeHandle)(t,(()=>({search:e=>{let{q:t}=e;const a=(0,x.dA)({q:(null==t?void 0:t.trim().toLowerCase())||"",list:null==T?void 0:T.list,columns:z,searchFields:V,childrenColumnName:H});ce(a),be((e=>{if(1!==e.page){var t;const a={page:1,pageSize:null!==(t=e.pageSize)&&void 0!==t?t:x.yQ};return null==X||X(a),a}return e}))}})));const Ee=(0,n.useCallback)((e=>{let{active:t,over:a}=e;a&&t.id!==(null==a?void 0:a.id)&&ce((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const n=e.findIndex((e=>e[K]===t.id)),r=e.findIndex((e=>e[K]===(null==a?void 0:a.id))),o=(0,k.be)(e,n,r);return null==ne||ne({list:o,active:e[n],over:e[r]}),o}))}),[K,ne]);return r().createElement(o.Ay,{locale:ie,theme:{algorithm:"dark-v2"===le?l.A.darkAlgorithm:l.A.defaultAlgorithm,components:{Table:{headerBorderRadius:"var(--eo-next-table-header-border-radius)",headerSplitColor:"none",..."elevo"===J?{headerBg:"none",headerSortActiveBg:"none",headerSortHoverBg:"none",bodySortBg:"none",rowHoverBg:"rgba(189, 191, 212, 0.1)"}:{headerBg:"var(--antd-table-header-bg)",headerSortActiveBg:"var(--antd-table-header-sort-active-bg)",headerSortHoverBg:"var(--antd-table-header-sort-active-bg)",bodySortBg:"var(--antd-table-header-overwrite-sort-td-active-bg)"},...U?{borderColor:"var(--theme-gray-border-color)"}:null}}},getPopupContainer:()=>v},r().createElement(s.N7,{container:v,cache:oe,hashPriority:"high"},r().createElement(y.Mp,{sensors:se,collisionDetection:y.fp,modifiers:[S.FN,S.Mk],onDragEnd:Ee},r().createElement(k.gB,{items:he,strategy:k._G},r().createElement(i.A,{components:{body:{row:Q&&!Ae?C.e:C.f}},loading:D,rowKey:K,columns:ye,dataSource:de,size:P,showHeader:G,bordered:U,scroll:!1===q?void 0:q,pagination:!1!==Se&&{...Se,total:null==T?void 0:T.total,current:pe,pageSize:ue,showSizeChanger:{showSearch:!1,variant:"borderless"},showTotal:e=>r().createElement("div",{className:"pagination-wrapper"},Se.showTotal?r().createElement("span",{className:"pagination-total-text"},r().createElement(b.Trans,{i18nKey:re(w.K.TOTAL),values:{total:e},components:{el:r().createElement("strong",{className:"pagination-total-number"})}})):null,null!=ke&&ke.showSelectInfo&&null!=ge&&ge.length?r().createElement("span",{className:"select-info"},r().createElement("span",null,re(w.K.SELECT_INFO,{count:ge.length})),r().createElement(B,{onClick:()=>{me([]),null==ee||ee({keys:[],rows:[],info:{type:"none"}})}},re(w.K.CLEAR))):null)},rowSelection:void 0===ke?void 0:{...ke,selectedRowKeys:ge,getCheckboxProps(e){const t={rowData:e};return{disabled:void 0!==ke.rowDisabled&&(0,A.checkIfByTransform)({if:ke.rowDisabled},t)}},onChange(e,t,a){me(e),null==ee||ee({keys:e,rows:t,info:a})}},expandable:void 0===Ce?void 0:{...Ce,childrenColumnName:H,expandedRowKeys:we,rowExpandable(e){const t={rowData:e};return void 0===Ce.rowExpandable||(0,A.checkIfByTransform)({if:Ce.rowExpandable},t)},expandedRowRender:null!==(g=Ce.expandedRowBrick)&&void 0!==g&&g.useBrick?(e,t,a)=>{const n={rowData:e,index:t,indent:a};return r().createElement(R.G,{useBrick:Ce.expandedRowBrick.useBrick,data:n})}:void 0,expandIcon:null!==(m=Ce.expandIconBrick)&&void 0!==m&&m.useBrick?e=>{let{expanded:t,expandable:a,record:n,onExpand:o}=e;const l={rowData:n,expanded:t,expandable:a};return r().createElement("span",{onClick:e=>a&&o(n,e)},r().createElement(R.G,{useBrick:Ce.expandIconBrick.useBrick,data:l}))}:W,onExpand:(e,t)=>{null==te||te({expanded:e,record:t})},onExpandedRowsChange:e=>{const t=[...e];xe(t),null==ae||ae(t)}},onChange:(e,t,a,n)=>{switch(n.action){case"paginate":be((t=>{if(t.pageSize!==e.pageSize){var a;const t={page:1,pageSize:null!==(a=e.pageSize)&&void 0!==a?a:x.yQ};return null==Y||Y(t),null==X||X(t),t}if(t.page!==e.current){var n,r;const t={page:null!==(n=e.current)&&void 0!==n?n:x._U,pageSize:null!==(r=e.pageSize)&&void 0!==r?r:x.yQ};return null==X||X(t),t}return t}));break;case"sort":{const e=Array.isArray(a)?a.filter((e=>e.order)).map((e=>({columnKey:e.columnKey,order:e.order}))):a.order?{columnKey:a.columnKey,order:a.order}:void 0;ve(e),null==Z||Z(e)}}},className:"next-table"})))))}));function W(e){let{expanded:t,expandable:a,onExpand:n,record:o}=e;const l=t?c.A:h.A;return r().createElement(l,{className:m()("expand-icon",{invisible:!a}),onClick:e=>a&&n(o,e)})}},30855:(e,t,a)=>{e.exports=function(e){var t=a.nc;t&&e.setAttribute("nonce",t)}},34612:(e,t,a)=>{var n=a(72591),r=a.n(n),o=a(1740),l=a.n(o),i=a(88128),s=a.n(i),d=a(30855),c=a.n(d),h=a(93051),p=a.n(h),u=a(73656),b=a.n(u),g=a(61098),m={};m.styleTagTransform=b(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=p(),r()(g.A,m),g.A&&g.A.locals&&g.A.locals},39338:(e,t,a)=>{a.d(t,{G:()=>l});var n=a(18769),r=a.n(n),o=a(72736);function l(e){const[t,a]=(0,n.useState)(e.data);return(0,n.useEffect)((()=>{a(e.data)}),Object.values(e.data)),r().createElement(o.ReactUseMultipleBricks,{useBrick:e.useBrick,data:t})}},40450:(e,t,a)=>{a.d(t,{Ee:()=>i,Kf:()=>u,Qd:()=>h,_U:()=>o,a3:()=>g,dA:()=>c,dF:()=>d,oB:()=>l,oQ:()=>p,yQ:()=>r});var n=a(41030);const r=20,o=1,l={showSizeChanger:!0,showTotal:!0},i={preserveSelectedRowKeys:!0,showSelectInfo:!0};function s(e){const t=[];if((0,n.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(s(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const a in e)t.push(String(a),s(e[a]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}function d(e,t){return Array.isArray(t)?(0,n.get)(e,t):e[t]}function c(e){let{list:t,columns:a,q:r,searchFields:o,childrenColumnName:l}=e;return r?(0,n.reduce)(t,((e,t)=>{let i=[];if(o?i=o.flatMap((e=>s((0,n.get)(t,e)))):a&&(i=a.flatMap((e=>s(d(t,e.dataIndex))))),i.some((e=>e.toLowerCase().includes(r))))return e.concat(t);const h=c({list:t[l],columns:a,q:r,searchFields:o,childrenColumnName:l});if(null!=h&&h.length){const a={...t,[l]:h};return e.concat(a)}return e}),[]):t}function h(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!==e&&!Array.isArray(e)}function p(e){let{list:t,rowKey:a,childrenColumnName:n}=e;const r=[];return null==t||t.forEach((e=>{r.push(e[a]);const t=p({list:e[n],rowKey:a,childrenColumnName:n});r.push(...t)})),[...new Set(r)]}function u(e,t,a){const n=null==e,r=null==t;if(n||r){const e="descend"===a?-1:1;return n&&r?0:n?e:-e}return e==t?0:e>t?1:-1}const b=["green","red","blue","orange","cyan","purple","geekblue","gray"];function g(e,t){var a,n;if(!t.cellStatus)return null;const r=d(e,null!==(a=t.cellStatus.dataIndex)&&void 0!==a?a:t.dataIndex),o=null===(n=t.cellStatus.mapping)||void 0===n?void 0:n.find((e=>e.value===r));return o?{boxShadow:`inset 4px 0 ${b.includes(o.leftBorderColor)?`var(--theme-${o.leftBorderColor}-color)`:o.leftBorderColor}`}:null}},45241:(e,t,a)=>{a.d(t,{e:()=>d,f:()=>s});var n=a(89575),r=a(18769),o=a.n(r),l=a(56550),i=a(87046);const s=(0,r.forwardRef)((function(e,t){return o().createElement("tr",(0,n.A)({},e,{ref:t}))}));function d(e){const{attributes:t,listeners:a,setNodeRef:r,transform:d,transition:c,isDragging:h}=(0,i.gl)({id:e["data-row-key"]}),p={...e.style,transform:l.Ks.Transform.toString(d),transition:c,cursor:"move",touchAction:"none",...h?{position:"relative",zIndex:999}:{}};return o().createElement(s,(0,n.A)({},e,{ref:r,style:p},t,a))}},61098:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),r=a.n(n),o=a(40935),l=a.n(o)()(r());l.push([e.id,':root{--eo-table-head-cell-padding:14px 16px;--eo-table-head-cell-height:51px;--eo-table-body-cell-padding:11px 16px;--eo-table-body-cell-height:45px}html[data-ui="v8-2"]{--eo-table-head-cell-padding:9px 16px;--eo-table-head-cell-height:41px}html[data-ui="v8-2"] eo-next-table[size="large"]{--eo-table-body-cell-padding:9px 16px;--eo-table-body-cell-height:45px}html[data-ui="v8-2"] eo-next-table[size="middle"]{--eo-table-head-cell-padding:7px 16px;--eo-table-head-cell-height:37px;--eo-table-body-cell-padding:6px 16px;--eo-table-body-cell-height:39px}html[data-ui="v8-2"] eo-next-table[size="small"]{--eo-table-head-cell-padding:3px 16px;--eo-table-head-cell-height:29px;--eo-table-body-cell-padding:1px 16px;--eo-table-body-cell-height:31px}',""]);const i=l},65481:(e,t,a)=>{a.r(t),a.d(t,{EoNextTable:()=>Je});var n,r=a(74635),o=a(70918),l=a(26902),i=a(5536),s=a(86121),d=a(70829),c=a(62740),h=a(18769),p=a.n(h),u=a(7921),b=a(11280),g=(a(76477),a(81634)),m=a(27257),w=(a(34612),a(3679));let x,f,v,A,y,k,S,C,E,M,R,B,K,W,z,N,T,I,F,D,L,O,_,j,H,Q,V,P,G,U,q,$,J,X,Y,Z,ee,te,ae,ne,re,oe,le,ie,se,de,ce,he,pe,ue,be,ge,me,we,xe,fe,ve,Ae,ye,ke,Se,Ce,Ee,Me,Re,Be,Ke,We,ze,Ne,Te,Ie,Fe,De,Le,Oe,_e,je,He,Qe,Ve,Pe;const{defineElement:Ge,property:Ue,method:qe,event:$e}=(0,u.createDecorators)();let Je;var Xe=new WeakMap,Ye=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,at=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,lt=new WeakMap,it=new WeakMap,st=new WeakMap,dt=new WeakMap,ct=new WeakMap,ht=new WeakMap,pt=new WeakMap,ut=new WeakMap,bt=new WeakMap,gt=new WeakMap,mt=new WeakMap,wt=new WeakMap,xt=new WeakMap,ft=new WeakMap,vt=new WeakMap,At=new WeakMap,yt=new WeakMap,kt=new WeakSet,St=new WeakMap,Ct=new WeakMap,Et=new WeakMap,Mt=new WeakMap,Rt=new WeakMap,Bt=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,zt=new WeakMap,Nt=new WeakMap,Tt=new WeakMap,It=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;class Lt extends b.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,kt),(0,o.A)(this,Xe,(x(this),(0,h.createRef)())),(0,o.A)(this,Ye,v(this,"key")),(0,o.A)(this,Ze,(A(this),y(this))),(0,o.A)(this,et,(k(this),S(this))),(0,o.A)(this,tt,(C(this),E(this))),(0,o.A)(this,at,(M(this),R(this))),(0,o.A)(this,nt,(B(this),K(this))),(0,o.A)(this,rt,(W(this),z(this))),(0,o.A)(this,ot,(N(this),T(this))),(0,o.A)(this,lt,(I(this),F(this))),(0,o.A)(this,it,(D(this),L(this))),(0,o.A)(this,st,(O(this),_(this))),(0,o.A)(this,dt,(j(this),H(this))),(0,o.A)(this,ct,(Q(this),V(this))),(0,o.A)(this,ht,(P(this),G(this))),(0,o.A)(this,pt,(U(this),q(this,"children"))),(0,o.A)(this,ut,($(this),J(this))),(0,o.A)(this,bt,(X(this),Y(this))),(0,o.A)(this,gt,(Z(this),ee(this,"large"))),(0,o.A)(this,mt,(te(this),ae(this,!0))),(0,o.A)(this,wt,(ne(this),re(this))),(0,o.A)(this,xt,(oe(this),le(this,{x:!0}))),(0,o.A)(this,ft,(ie(this),se(this))),(0,o.A)(this,vt,(de(this),ce(this))),(0,o.A)(this,At,(he(this),pe(this))),(0,o.A)(this,yt,(ue(this),be(this))),(0,o.A)(this,St,(we(this),e=>{(0,i.A)(kt,this,ge).emit(e)})),(0,o.A)(this,Ct,xe(this)),(0,o.A)(this,Et,(Ae(this),e=>{(0,i.A)(kt,this,fe).emit(e)})),(0,o.A)(this,Mt,ye(this)),(0,o.A)(this,Rt,(Ce(this),e=>{(0,i.A)(kt,this,ke).emit(e)})),(0,o.A)(this,Bt,Ee(this)),(0,o.A)(this,Kt,(Be(this),Ke(this))),(0,o.A)(this,Wt,(Ne(this),e=>{(0,i.A)(kt,this,Me).emit(e),(0,i.A)(kt,this,We).emit(e.rows)})),(0,o.A)(this,zt,Te(this)),(0,o.A)(this,Nt,(De(this),e=>{(0,i.A)(kt,this,Ie).emit(e)})),(0,o.A)(this,Tt,Le(this)),(0,o.A)(this,It,(je(this),e=>{(0,i.A)(kt,this,Oe).emit(e)})),(0,o.A)(this,Ft,He(this)),(0,o.A)(this,Dt,(Pe(this),e=>{(0,i.A)(kt,this,Qe).emit(e)}))}get rowKey(){return(0,d.A)(Ye,this)}set rowKey(e){(0,s.A)(Ye,this,e)}get columns(){return(0,d.A)(Ze,this)}set columns(e){(0,s.A)(Ze,this,e)}get cell(){return(0,d.A)(et,this)}set cell(e){(0,s.A)(et,this,e)}get dataSource(){return(0,d.A)(tt,this)}set dataSource(e){(0,s.A)(tt,this,e)}get frontSearch(){return(0,d.A)(at,this)}set frontSearch(e){(0,s.A)(at,this,e)}get pagination(){return(0,d.A)(nt,this)}set pagination(e){(0,s.A)(nt,this,e)}get loading(){return(0,d.A)(rt,this)}set loading(e){(0,s.A)(rt,this,e)}get multiSort(){return(0,d.A)(ot,this)}set multiSort(e){(0,s.A)(ot,this,e)}get sort(){return(0,d.A)(lt,this)}set sort(e){(0,s.A)(lt,this,e)}get rowSelection(){return(0,d.A)(it,this)}set rowSelection(e){(0,s.A)(it,this,e)}get selectedRowKeys(){return(0,d.A)(st,this)}set selectedRowKeys(e){(0,s.A)(st,this,e)}get hiddenColumns(){return(0,d.A)(dt,this)}set hiddenColumns(e){(0,s.A)(dt,this,e)}get expandable(){return(0,d.A)(ct,this)}set expandable(e){(0,s.A)(ct,this,e)}get expandedRowKeys(){return(0,d.A)(ht,this)}set expandedRowKeys(e){(0,s.A)(ht,this,e)}get childrenColumnName(){return(0,d.A)(pt,this)}set childrenColumnName(e){(0,s.A)(pt,this,e)}get rowDraggable(){return(0,d.A)(ut,this)}set rowDraggable(e){(0,s.A)(ut,this,e)}get searchFields(){return(0,d.A)(bt,this)}set searchFields(e){(0,s.A)(bt,this,e)}get size(){return(0,d.A)(gt,this)}set size(e){(0,s.A)(gt,this,e)}get showHeader(){return(0,d.A)(mt,this)}set showHeader(e){(0,s.A)(mt,this,e)}get bordered(){return(0,d.A)(wt,this)}set bordered(e){(0,s.A)(wt,this,e)}get scrollConfig(){return(0,d.A)(xt,this)}set scrollConfig(e){(0,s.A)(xt,this,e)}get optimizedColumns(){return(0,d.A)(ft,this)}set optimizedColumns(e){(0,s.A)(ft,this,e)}get injectChartV2Styles(){return(0,d.A)(vt,this)}set injectChartV2Styles(e){(0,s.A)(vt,this,e)}get themeVariant(){return(0,d.A)(At,this)}set themeVariant(e){(0,s.A)(At,this,e)}search(e){var t;null===(t=(0,d.A)(Xe,this).current)||void 0===t||t.search(e)}render(){return p().createElement(p().Fragment,null,this.injectChartV2Styles&&p().createElement("style",null,w.A),p().createElement(m.F,{ref:(0,d.A)(Xe,this),shadowRoot:this.shadowRoot,rowKey:this.rowKey,columns:this.columns,cell:this.cell,dataSource:this.dataSource,frontSearch:this.frontSearch,pagination:this.pagination,loading:this.loading,multiSort:this.multiSort,sort:this.sort,rowSelection:this.rowSelection,selectedRowKeys:this.selectedRowKeys,hiddenColumns:this.hiddenColumns,expandable:this.expandable,expandedRowKeys:this.expandedRowKeys,childrenColumnName:this.childrenColumnName,rowDraggable:this.rowDraggable,searchFields:this.searchFields,size:this.size,showHeader:this.showHeader,bordered:this.bordered,scrollConfig:this.scrollConfig,themeVariant:this.themeVariant,optimizedColumns:this.optimizedColumns,onPageChange:(0,d.A)(St,this),onPageSizeChange:(0,d.A)(Et,this),onSort:(0,d.A)(Rt,this),onRowSelect:(0,d.A)(Wt,this),onRowExpand:(0,d.A)(Nt,this),onExpandedRowsChange:(0,d.A)(It,this),onRowDrag:(0,d.A)(Dt,this)}))}}n=Lt,({e:[v,A,y,k,S,C,E,M,R,B,K,W,z,N,T,I,F,D,L,O,_,j,H,Q,V,P,G,U,q,$,J,X,Y,Z,ee,te,ae,ne,re,oe,le,ie,se,de,ce,he,pe,ue,be,ge,me,we,xe,fe,ve,Ae,ye,ke,Se,Ce,Ee,Me,Re,Be,Ke,We,ze,Ne,Te,Ie,Fe,De,Le,Oe,_e,je,He,Qe,Ve,Pe,x],c:[Je,f]}=(0,c.A)(n,[Ge("eo-next-table",{styleTexts:[g.A]})],[[Ue(),1,"rowKey"],[Ue({attribute:!1}),1,"columns"],[Ue({attribute:!1}),1,"cell"],[Ue({attribute:!1}),1,"dataSource"],[Ue({type:Boolean}),1,"frontSearch"],[Ue({attribute:!1}),1,"pagination"],[Ue({type:Boolean}),1,"loading"],[Ue({type:Boolean}),1,"multiSort"],[Ue({attribute:!1}),1,"sort"],[Ue({attribute:!1}),1,"rowSelection"],[Ue({attribute:!1}),1,"selectedRowKeys"],[Ue({attribute:!1}),1,"hiddenColumns"],[Ue({attribute:!1}),1,"expandable"],[Ue({attribute:!1}),1,"expandedRowKeys"],[Ue(),1,"childrenColumnName"],[Ue({type:Boolean}),1,"rowDraggable"],[Ue({attribute:!1}),1,"searchFields"],[Ue(),1,"size"],[Ue({type:Boolean}),1,"showHeader"],[Ue({type:Boolean}),1,"bordered"],[Ue({attribute:!1}),1,"scrollConfig"],[Ue({attribute:!1}),1,"optimizedColumns"],[Ue({type:Boolean}),1,"injectChartV2Styles"],[Ue(),1,"themeVariant"],[qe(),2,"search"],[$e({type:"page.change"}),1,"pageChangeEvent",e=>(0,d.A)(yt,e),(e,t)=>(0,s.A)(yt,e,t)],[$e({type:"page.size.change"}),1,"pageSizeChangeEvent",e=>(0,d.A)(Ct,e),(e,t)=>(0,s.A)(Ct,e,t)],[$e({type:"sort.change"}),1,"sortChangeEvent",e=>(0,d.A)(Mt,e),(e,t)=>(0,s.A)(Mt,e,t)],[$e({type:"row.select"}),1,"rowSelectEvent",e=>(0,d.A)(Bt,e),(e,t)=>(0,s.A)(Bt,e,t)],[$e({type:"row.select.v2"}),1,"rowSelectV2Event",e=>(0,d.A)(Kt,e),(e,t)=>(0,s.A)(Kt,e,t)],[$e({type:"row.expand"}),1,"rowExpandEvent",e=>(0,d.A)(zt,e),(e,t)=>(0,s.A)(zt,e,t)],[$e({type:"expanded.rows.change"}),1,"expandedRowsChangeEvent",e=>(0,d.A)(Tt,e),(e,t)=>(0,s.A)(Tt,e,t)],[$e({type:"row.drag"}),1,"rowDragEvent",e=>(0,d.A)(Ft,e),(e,t)=>(0,s.A)(Ft,e,t)]],0,(e=>Dt.has((0,l.A)(e))),b.ReactNextElement)),f()},72591:e=>{var t=[];function a(e){for(var a=-1,n=0;n<t.length;n++)if(t[n].identifier===e){a=n;break}return a}function n(e,n){for(var o={},l=[],i=0;i<e.length;i++){var s=e[i],d=n.base?s[0]+n.base:s[0],c=o[d]||0,h="".concat(d," ").concat(c);o[d]=c+1;var p=a(h),u={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(u);else{var b=r(u,n);n.byIndex=i,t.splice(i,0,{identifier:h,updater:b,references:1})}l.push(h)}return l}function r(e,t){var a=t.domAPI(t);return a.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;a.update(e=t)}else a.remove()}}e.exports=function(e,r){var o=n(e=e||[],r=r||{});return function(e){e=e||[];for(var l=0;l<o.length;l++){var i=a(o[l]);t[i].references--}for(var s=n(e,r),d=0;d<o.length;d++){var c=a(o[d]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=s}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},81634:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),r=a.n(n),o=a(40935),l=a.n(o)()(r());l.push([e.id,':host{display:block;--eo-next-table-header-border-radius:0}:host([hidden]){display:none}:host([bordered]){--eo-next-table-header-border-radius:4px}.pagination-wrapper{display:flex;gap:20px}.pagination-total-text{color:var(--color-secondary-text)}.pagination-total-number{font-weight:var(--font-weight-400);color:var(--color-normal-text)}.select-info{display:flex;gap:10px}.ant-pagination-total-text{position:absolute;left:0}.ant-pagination-options{order:-1;padding-right:12px}.ant-table-wrapper{background:var(--eo-table-wrapper-background)}.next-table.ant-table-wrapper\n .ant-table\n .ant-table-container\n .ant-table-thead\n > tr\n > th,\n.next-table.ant-table-wrapper\n .ant-table\n .ant-table-container\n .ant-table-tbody\n > tr\n > th,\n.next-table.ant-table-wrapper .ant-table .ant-table-container tfoot > tr > th{padding:var(--eo-table-head-cell-padding);height:var(--eo-table-head-cell-height)}.next-table.ant-table-wrapper .ant-table .ant-table-container .ant-table-cell,\n.next-table.ant-table-wrapper\n .ant-table\n .ant-table-container\n .ant-table-tbody\n > tr\n > td,\n.next-table.ant-table-wrapper .ant-table .ant-table-container tfoot > tr > td{padding:var(--eo-table-body-cell-padding);height:var(--eo-table-body-cell-height)}.ant-table-ping-left .ant-table-cell-fix-left-last::after{box-shadow:var(--left-slide-shadow)}.ant-table-ping-right .ant-table-cell-fix-right-first::after{box-shadow:var(--right-slide-shadow)}.ant-pagination-options .ant-select .ant-select-selector{border:none;box-shadow:none!important;color:var(--color-normal-text)}.ant-pagination .ant-pagination-item:not(.ant-pagination-item-active) a{color:var(--color-normal-text)}.ant-table-expanded-row eo-next-table{--eo-table-wrapper-background:var(--antd-table-row-expand-nested-wrapper);--antd-table-header-bg:initial}.next-table.ant-table-wrapper .ant-table-container,\n.next-table.ant-table-wrapper\n .ant-table-container\n table\n > tbody\n > tr:last-child\n > *:first-child{border-bottom-left-radius:var(--eo-next-table-header-border-radius)}.next-table.ant-table-wrapper\n .ant-table-container\n table\n > tbody\n > tr:last-child\n > *:last-child{border-bottom-right-radius:var(--eo-next-table-header-border-radius)}.next-table.ant-table-wrapper tr.ant-table-expanded-row > th,\n.next-table.ant-table-wrapper tr.ant-table-expanded-row:hover > th,\n.next-table.ant-table-wrapper tr.ant-table-expanded-row > td,\n.next-table.ant-table-wrapper tr.ant-table-expanded-row:hover > td{background-color:var(--color-fill-global-bg-1)}.next-table.ant-table-wrapper .ant-table-container::before{left:0}.next-table.ant-table-wrapper .ant-table-container::after{right:0}.ant-pagination-options .ant-select .ant-select-arrow{left:auto;right:11px}.next-table.ant-table-wrapper\n .ant-table-ping-left\n .ant-table-cell-fix-left-first::after,\n.next-table.ant-table-wrapper\n .ant-table-ping-left\n .ant-table-cell-fix-left-last::after{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper\n .ant-table-ping-right\n .ant-table-cell-fix-right-first::after,\n.next-table.ant-table-wrapper\n .ant-table-ping-right\n .ant-table-cell-fix-right-last::after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper\n .ant-table-ping-left:not(.ant-table-has-fix-left)\n .ant-table-container::before{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper\n .ant-table-ping-right:not(.ant-table-has-fix-right)\n .ant-table-container::after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,0.15)}.next-table.ant-table-wrapper .ant-table-column-sorters{justify-content:initial}.next-table.ant-table-wrapper .ant-table-column-title{flex:initial}.next-table.ant-table-wrapper .ant-table-column-sorter{margin-left:8px}.expand-icon{font-size:11px;background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.next-table.ant-table-wrapper .ant-table-row-indent + .expand-icon{margin-top:2.5px;margin-right:8px}.invisible{visibility:hidden}:host([theme-variant="elevo"]){--eo-next-table-header-border-radius:8px;--eo-table-head-cell-height:35px;--eo-table-head-cell-padding:7px 16px;--eo-table-body-cell-height:40px;--eo-table-body-cell-padding:7px 16px}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table{background:rgba(255,255,255,0.73);-webkit-backdrop-filter:blur(33px);backdrop-filter:blur(33px);border-radius:var(--eo-next-table-header-border-radius);color:rgba(0,0,0,0.8)}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table-thead > tr > th{color:rgba(38,38,38,0.65);font-size:12px;font-weight:400}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table-thead > tr > td{color:rgba(38,38,38,0.65);font-size:12px;font-weight:400}:host([theme-variant="elevo"]) .next-table.ant-table-wrapper .ant-table-tbody > tr > td{border-bottom:none}',""]);const i=l.toString()},88128:e=>{var t={};e.exports=function(e,a){var n=function(e){if(void 0===t[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}t[e]=a}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(a)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}}]);
|
|
2
|
-
//# sourceMappingURL=eo-next-table.52ec790d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[572],{2198:(e,t,s)=>{s.d(t,{A:()=>r});var i=s(36758),a=s.n(i),n=s(40935),l=s.n(n)()(a());l.push([e.id,".brickTableOddRow{background-color:var(--color-fill-bg-base-4)}.ant-table-small .ant-table-body{margin:0}.ant-table-small .ant-table-thead{background:var(--antd-table-header-bg)}.ant-table-small .ant-table-row{line-height:26px}.ant-table-tbody > tr.invalidRow > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.invalidRow:hover > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.disabledRow > td{background-color:var(--theme-gray-border-color)}.ant-table-tbody > .ant-table-row-selected td{background:var(--antd-table-cell-fixed-body-bg)!important}td.alignTop{vertical-align:top}td.alignBottom{vertical-align:bottom}.expandIconCellHidden .ant-table-row-expand-icon-cell,\n.expandIconCellHidden .ant-table-expand-icon-col{width:1px;min-width:auto}.expandIconCellHidden .ant-table-row-expand-icon-cell > *,\n.expandIconCellHidden .ant-table-expand-icon-col > *{display:none}.expandIconSpan{cursor:pointer;margin-right:9px;color:var(--antd-table-row-expand-icon-color);font-size:11px}.expandIconSpan .anticon{background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.tableThTransparent thead.ant-table-thead > tr > th{background:var(--antd-table-header-bg)}.zebraPatternTable .ant-table-tbody tr td{border-bottom:0}.ellipsis{max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.totalText{color:var(--antd-pagination-total-text)}.total{font-weight:normal;color:var(--antd-pagination-total-strong-text)}.ant-table-wrapper .ant-table-thead > tr > th{padding:11px 16px;font-size:12px;line-height:20px;border-bottom:0;font-weight:500;color:var(--antd-table-header-color)}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin:24px 0}.xSmallSizeTable .ant-table{line-height:1}.xSmallSizeTable .ant-table .ant-table-selection-col{width:32px}.xSmallSizeTable .ant-table-thead tr th,\n.xSmallSizeTable .ant-table-tbody tr td{padding:0px 2px}.xSmallSizeTable .ant-table-thead tr th:first-child,\n.xSmallSizeTable .ant-table-tbody tr td:first-child{padding:0}",""]);const r=l.toString()},10264:(e,t,s)=>{s.d(t,{Id:()=>n,LT:()=>a,Mm:()=>l,RX:()=>r,zA:()=>o});var i=s(41030);const a={$eq:i.isEqual,$lt:i.lt,$lte:i.lte,$gt:i.gt,$gte:i.gte,$ne:(e,t)=>!(0,i.isEqual)(e,t),$isEqual:i.isEqual,$notEqual:(e,t)=>!(0,i.isEqual)(e,t),$in:i.includes,$nin:(e,t)=>!(0,i.includes)(e,t),$exists:(e,t)=>e?!(0,i.isUndefined)(t):(0,i.isUndefined)(t)};function n(e,t,s){const{dataIndex:a,mapping:n}=e,l=void 0!==a?(0,i.get)(t,a):s,r=n.find((e=>e.value===l));return r?{borderLeft:`4px solid ${r.leftBorderColor}`}:{}}const l=(e,t,s,a)=>{e&&(0,i.forEach)(e,(e=>{const n=(0,i.get)(e,s),r=(0,i.get)(e,t);a.push(r),null!=n&&n.length&&l(n,t,s,a)}))},r=(e,t,s)=>{e&&(0,i.forEach)(e,(e=>{const a=(0,i.get)(e,t);s.push(e),null!=a&&a.length&&r(a,t,s)}))};function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null!=t&&t.length&&t.forEach((t=>{var s;return null!==(s=t[e])&&void 0!==s&&s.length?o(e,t[e]):(delete t[e],t)})),t}},16137:(e,t,s)=>{s.d(t,{I:()=>a,NS:()=>i});const i="bricks/advanced/eo-table",a={en:{},zh:{}}},36286:(e,t,s)=>{s.d(t,{m:()=>N});var i=s(89575),a=s(18769),n=s.n(a),l=s(10212),r=s(40194),o=s(10264),h=s(41030),d=s(53373),c=s.n(d),p=s(47522),u=s(80255),g=s(63737),w=s(50692),m=s(53435),A=s.n(m),f=s(72736),y=s(11280),b=s(95694),S=s(16137),x=s(69704),C=s(99733),_=s(84352),v=s(26386);(0,x.initializeReactI18n)(S.NS,S.I);const R="DraggableBodyRow",k={lib:"antd",icon:"down",theme:"outlined"},E={lib:"antd",icon:"right",theme:"outlined"},K=(0,y.wrapBrick)("eo-icon"),I=e=>{let{index:t,moveRow:s,className:a,style:l,...r}=e;const o=n().useRef(null),[{isOver:h,dropClassName:d},g]=(0,p.H)({accept:R,collect:e=>{const{index:s}=e.getItem()||{};return s===t?{}:{isOver:e.isOver(),dropClassName:s<t?"dropOverDownward":"dropOverUpward"}},drop:e=>{s(e.index,t)}}),[,w]=(0,u.i)({type:R,item:{type:R,index:t},collect:e=>({isDragging:e.isDragging()})});return g(w(o)),n().createElement("tr",(0,i.A)({ref:o,className:c()(a,{[d]:h}),style:{cursor:"move",...l}},r))},U=(e,t)=>function(){return n().createElement(f.ReactUseMultipleBricks,{useBrick:e,data:t})},M=(e,t)=>function(s,i,a){if(e){let l=null==t?void 0:t.get(i);return l||(l={cellData:s,rowData:i,columnIndex:a},null==t||t.set(i,l)),n().createElement(f.ReactUseMultipleBricks,{useBrick:e,data:l})}};function N(e){const t="zh"===C.i18n.language.split("-")[0]?v.A:_.A;if(e.error)throw e.error;const{configProps:s={pagination:!0,sortBy:!1},columns:d,rowKey:p="key",expandIconAsCell:u,expandIconColumnIndex:m,childrenColumnName:y,scroll:S,onDelete:x,ellipsisInfo:R,showHeader:N}=e,P=(0,a.useMemo)((()=>{var t;return null===(t=e.dataSource)||void 0===t?void 0:t.map(((e,t)=>(0,h.isNil)(e[p])?{...e,[p]:t}:e))}),[e.dataSource,p]),[W,B]=(0,a.useState)(P),z=(0,a.useRef)(new Map),D=(0,a.useRef)(new Map),T=(0,a.useRef)(new Map),F=(0,a.useRef)(new Map);(0,a.useEffect)((()=>{F.current.clear(),B(P)}),[P]);const O=null!=s&&s.rowSelection?-1:0,q=(0,a.useMemo)((()=>{if(d){D.current.clear(),T.current.clear();const e=d.map(((e,t)=>{const{useBrick:s,valueSuffix:i,cellStatus:a,cellStyle:l={},headerBrick:r,colSpanKey:d,rowSpanKey:c,filterDropdownBrick:g,...w}=e;if(null!=r&&r.useBrick){const t=null==r?void 0:r.useBrick;let s=D.current.get(e);s||(s={title:w.title},D.current.set(e,s)),w.title=U(t,s)}if(null!=g&&g.useBrick&&(w.filterDropdown=n().createElement(f.ReactUseMultipleBricks,{useBrick:g.useBrick})),s){let e;s&&(e=T.current.get(s),e||(e=new Map,T.current.set(s,e))),w.render=M(s,e),w.shouldCellUpdate=(e,t)=>!(0,h.isEqual)(e,t)}else i&&(w.render=e=>e+i);if(!u&&t===Number(m)+O){const e=w.render;w.render=function(t,s,i){return n().createElement(n().Fragment,null,!s[y]&&z.current.get(p?s[p]:s),e?e(t,s,i):t)}}if(a||d||c||l){const e=w.render;w.render=(t,s,i)=>({children:e?e(t,s,i):t,props:{colSpan:s[d],rowSpan:s[c],style:{...a?(0,o.Id)(a,s,t):{},...l}}})}return"string"==typeof w.dataIndex&&(w.dataIndex=(0,h.toPath)(w.dataIndex)),"top"===w.verticalAlign&&(w.className?w.className+=" alignTop":w.className="alignTop"),"bottom"===w.verticalAlign&&(w.className?w.className+=" alignBottom":w.className="alignBottom"),R&&(w.className?w.className+=" ellipsisInfoCell":w.className="ellipsisInfoCell"),w}));return e}}),[d,y,u,m,O,p,x,R]),H={body:{row:I}},$=(t,s)=>{const i=W[t],a=A()(W,{$splice:[[t,1],[s,0,i]]});B(a),e.onDrag&&e.onDrag(a)},L=(0,h.pickBy)({expandIconColumnIndex:m,expandIconAsCell:u,expandRowByClick:e.expandRowByClick,expandedRowKeys:e.expandedRowKeys,defaultExpandAllRows:e.defaultExpandAllRows},(e=>!(0,h.isNil)(e)));let Q=n().createElement(l.A,(0,i.A)({className:c()("brickTable",{expandIconCellHidden:!u,customDropTable:e.tableDraggable,tableThTransparent:e.thTransparent,zebraPatternTable:(null==W?void 0:W.length)>=2&&e.zebraPattern,xSmallSizeTable:e.xSmallSizeTable}),dataSource:W},e.tableDraggable?{components:H,onRow:(e,t)=>({index:t,moveRow:$})}:{},{columns:q,onChange:e.onChange},e.expandedRowBrick?{expandedRowRender:(t,s)=>{var i;let a=F.current.get(t);return a||(a={rowData:t,rowIndex:s},F.current.set(t,a)),n().createElement(f.ReactUseMultipleBricks,{useBrick:null===(i=e.expandedRowBrick)||void 0===i?void 0:i.useBrick,data:a})}}:{},L,{onExpand:(t,s)=>{e.onExpand&&e.onExpand(t,s)},showSorterTooltip:!1,onExpandedRowsChange:t=>{e.onExpandedRowsChange&&e.onExpandedRowsChange(t)},rowKey:p,childrenColumnName:y,rowClassName:(t,s)=>t.invalidRow?"invalidRow":t.disabledRow?"disabledRow":e.zebraPattern&&s%2?"brickTableOddRow":"",expandIcon:t=>{var s;const{record:i,expandable:a,expanded:l,onExpand:r}=t;let o,h=(null===(s=e.expandIcon)||void 0===s?void 0:s.collapsedIcon)||k;var d;a?(l||(h=(null===(d=e.expandIcon)||void 0===d?void 0:d.expandedIcon)||E),o=n().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon",onClick:e=>{r(i,e)}},n().createElement(K,h))):o=n().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon"},n().createElement("span",{style:{visibility:"hidden"}},n().createElement(K,h)));return o?(u||z.current.set(p?i[p]:i,o),o):n().createElement(n().Fragment,null)},scroll:S,showHeader:N},s));e.tableDraggable&&(Q=n().createElement(g.Q,{backend:w.t2,context:window},Q));const V=(0,a.useMemo)((()=>(0,b.VC)()),[]);return n().createElement(r.Ay,{locale:t},n().createElement(b.N7,{container:e.shadowRoot,cache:V},Q))}},72643:(e,t,s)=>{s.r(t),s.d(t,{TableComponent:()=>Ot});var i,a=s(24586),n=s(74635),l=s(70918),r=s(26902),o=s(5536),h=s(86121),d=s(70829),c=s(62740),p=s(18769),u=s.n(p),g=s(7921),w=s(11280),m=s(2198),A=s(41030),f=s(82202),y=s(36286),b=s(10264);let S,x,C,_,v,R,k,E,K,I,U,M,N,P,W,B,z,D,T,F,O,q,H,$,L,Q,V,j,X,J,G,Y,Z,ee,te,se,ie,ae,ne,le,re,oe,he,de,ce,pe,ue,ge,we,me,Ae,fe,ye,be,Se,xe,Ce,_e,ve,Re,ke,Ee,Ke,Ie,Ue,Me,Ne,Pe,We,Be,ze,De,Te,Fe,Oe,qe,He,$e,Le,Qe,Ve,je,Xe,Je,Ge,Ye,Ze,et,tt,st,it,at,nt,lt,rt,ot,ht,dt,ct,pt,ut,gt,wt,mt,At,ft,yt,bt,St,xt,Ct,_t,vt,Rt,kt,Et,Kt,It,Ut,Mt,Nt,Pt,Wt,Bt;s(76477);const{defineElement:zt,property:Dt,event:Tt,method:Ft}=(0,g.createDecorators)();let Ot;var qt=new WeakMap,Ht=new WeakSet,$t=new WeakMap,Lt=new WeakMap,Qt=new WeakMap,Vt=new WeakMap,jt=new WeakMap,Xt=new WeakMap,Jt=new WeakMap,Gt=new WeakMap,Yt=new WeakMap,Zt=new WeakMap,es=new WeakMap,ts=new WeakMap,ss=new WeakMap,is=new WeakMap,as=new WeakMap,ns=new WeakMap,ls=new WeakMap,rs=new WeakMap,os=new WeakMap,hs=new WeakMap,ds=new WeakMap,cs=new WeakMap,ps=new WeakMap,us=new WeakMap,gs=new WeakMap,ws=new WeakMap,ms=new WeakMap,As=new WeakMap,fs=new WeakMap,ys=new WeakMap,bs=new WeakMap,Ss=new WeakMap,xs=new WeakMap,Cs=new WeakMap,_s=new WeakMap,vs=new WeakMap,Rs=new WeakMap,ks=new WeakMap,Es=new WeakMap,Ks=new WeakMap,Is=new WeakMap,Us=new WeakMap,Ms=new WeakMap,Ns=new WeakMap,Ps=new WeakMap,Ws=new WeakMap,Bs=new WeakMap,zs=new WeakMap,Ds=new WeakMap,Ts=new WeakMap,Fs=new WeakMap,Os=new WeakMap,qs=new WeakMap;class Hs extends w.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Ht),(0,l.A)(this,qt,(S(this),C(this))),(0,l.A)(this,$t,(R(this),k(this))),(0,l.A)(this,Lt,(I(this),U(this))),(0,l.A)(this,Qt,(P(this),W(this))),(0,l.A)(this,Vt,(D(this),T(this))),(0,l.A)(this,jt,(q(this),H(this))),(0,l.A)(this,Xt,(Q(this),V(this))),(0,l.A)(this,Jt,(J(this),G(this))),(0,l.A)(this,Gt,(ee(this),te(this,!0))),(0,l.A)(this,Yt,(se(this),ie(this))),(0,l.A)(this,Zt,(ae(this),ne(this))),(0,l.A)(this,es,(le(this),re(this))),(0,l.A)(this,ts,(oe(this),he(this,!1))),(0,l.A)(this,ss,(de(this),ce(this))),(0,l.A)(this,is,(pe(this),ue(this))),(0,l.A)(this,as,(ge(this),we(this))),(0,l.A)(this,ns,(me(this),Ae(this))),(0,l.A)(this,ls,(fe(this),ye(this))),(0,l.A)(this,rs,(be(this),Se(this))),(0,l.A)(this,os,(xe(this),Ce(this))),(0,l.A)(this,hs,(_e(this),ve(this,!0))),(0,l.A)(this,ds,(Re(this),ke(this))),(0,l.A)(this,cs,(Ee(this),Ke(this))),(0,l.A)(this,ps,(Ie(this),Ue(this))),(0,l.A)(this,us,(Me(this),Ne(this,!1))),(0,l.A)(this,gs,(Pe(this),We(this))),(0,l.A)(this,ws,(Be(this),ze(this))),(0,l.A)(this,ms,(De(this),Te(this))),(0,l.A)(this,As,(Fe(this),Oe(this))),(0,l.A)(this,fs,(qe(this),He(this))),(0,a.A)(this,"_disabledChildrenKeys",($e(this),[])),(0,l.A)(this,ys,Le(this,"children")),(0,l.A)(this,bs,(Qe(this),Ve(this,!0))),(0,l.A)(this,Ss,(je(this),Xe(this))),(0,l.A)(this,xs,(Je(this),Ge(this,""))),(0,l.A)(this,Cs,(Ye(this),Ze(this))),(0,l.A)(this,_s,(et(this),tt(this))),(0,l.A)(this,vs,(st(this),it(this))),(0,l.A)(this,Rs,(at(this),nt(this))),(0,l.A)(this,ks,(lt(this),rt(this,{x:!0}))),(0,l.A)(this,Es,(ot(this),ht(this,"q"))),(0,l.A)(this,Ks,(dt(this),ct(this))),(0,l.A)(this,Is,(pt(this),ut(this))),(0,l.A)(this,Us,(gt(this),wt(this))),(0,l.A)(this,Ms,(mt(this),At(this,[]))),(0,l.A)(this,Ns,(ft(this),yt(this))),(0,l.A)(this,Ps,(bt(this),St(this))),(0,l.A)(this,Ws,(xt(this),Ct(this,!0))),(0,l.A)(this,Bs,(_t(this),vt(this))),(0,l.A)(this,zs,(Rt(this),kt(this))),(0,l.A)(this,Ds,(Et(this),Kt(this))),(0,l.A)(this,Ts,(It(this),Ut(this,!0))),(0,l.A)(this,Fs,(Mt(this),Nt(this,!0))),(0,a.A)(this,"_originalDataSource",(Pt(this),[])),(0,a.A)(this,"_dataSource",[]),(0,a.A)(this,"_pureSource",void 0),(0,a.A)(this,"_columns",void 0),(0,a.A)(this,"_finalConfigProps",{}),(0,a.A)(this,"_error",void 0),(0,l.A)(this,Os,void 0),(0,a.A)(this,"_selectUpdateEventName",""),(0,a.A)(this,"_selectUpdateEventDetailKeys",[]),(0,a.A)(this,"_selectUpdateEventDetailField",""),(0,a.A)(this,"_selectUpdateEventDetailExtra",{}),(0,a.A)(this,"_fields",{page:"page",pageSize:"pageSize",dataSource:"list",total:"total",ascend:"ascend",descend:"descend"}),(0,l.A)(this,qs,Wt(this,[])),(0,a.A)(this,"_selected",(Bt(this),!1)),(0,a.A)(this,"_selectedRow",void 0),(0,a.A)(this,"_selectedRows",[]),(0,a.A)(this,"_allChildren",[]),(0,a.A)(this,"_isInSelect",!1),(0,a.A)(this,"_getRowKey",(()=>{var e,t,s,i;return null!==(e=null!==(t=null!==(s=this.rowKey)&&void 0!==s?s:this._fields.rowKey)&&void 0!==t?t:null===(i=this.configProps)||void 0===i?void 0:i.rowKey)&&void 0!==e?e:"key"})),(0,a.A)(this,"_findParentByChildKeyValue",((e,t,s,i)=>{let a;return s.some((s=>{if(s[t]===e)a=i;else{const i=s[this.childrenColumnName];i&&(a=this._findParentByChildKeyValue(e,t,i,s))}return!!a})),a})),(0,a.A)(this,"_handleRowSelectChange",((e,t)=>{const s=this._getRowKey(),i=(0,A.keyBy)(t,s);if(this._selected){const t=[...e];if(this._allChildren.forEach((e=>{const a=e[s];t.push(a),i[a]=e})),this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow){const a=new Set(e),n=this._findParentByChildKeyValue(this._selectedRow[s],s,this._dataSource);if(n&&n[this.childrenColumnName].every((e=>a.has(e[s])))){const e=n[s];t.push(e),i[e]=n}}this.selectedRowKeys=(0,A.uniq)(t)}else{let t;this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow&&(t=this._findParentByChildKeyValue(this._selectedRow[s],s,this._dataSource)),this.selectedRowKeys=(0,A.pullAll)(e,(0,A.map)(this._allChildren.concat(t),s))}this._selectedRow=void 0;const a=(0,A.keyBy)(this.extraRows,s);this._selectedRows=this.selectedRowKeys.map((e=>i[e]||a[e]));let n=null;const l=(0,A.isEmpty)(this._selectUpdateEventDetailField)?this._selectedRows:(0,A.map)(this._selectedRows,(e=>(0,A.get)(e,this._selectUpdateEventDetailField)));n=(0,A.isEmpty)(this._selectUpdateEventDetailKeys)||(0,A.isEmpty)(l)?l:(0,A.set)({},this._selectUpdateEventDetailKeys,l),(0,A.isEmpty)(n)||(n=(0,A.merge)(n,this._selectUpdateEventDetailExtra)),this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:n})):(0,o.A)(Ht,this,M).emit(n),(0,o.A)(Ht,this,B).emit(e)})),(0,a.A)(this,"_getSelectedRowsWithChildren",(e=>{const t=[];return!(0,A.isEmpty)(e[this.childrenColumnName])&&(0,A.isArray)(e[this.childrenColumnName])&&(0,A.forEach)(e[this.childrenColumnName],(e=>{t.push(e),t.push(...this._getSelectedRowsWithChildren(e))})),t})),(0,a.A)(this,"_handleOnSelect",((e,t)=>{this._selected=t,this._selectedRow=e,this._isInSelect=!0;const s=this._getRowKey(),i=this.selectAllChildren?this._getSelectedRowsWithChildren(e):[];this._allChildren=i,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=t?(0,A.uniq)([...this._disabledChildrenKeys,...(0,A.map)(i,s)]):(0,A.pullAll)(this._disabledChildrenKeys,[...(0,A.map)(i,s)])),this.storeCheckedByUrl&&s&&this._updateUrlChecked([e[s]],t)})),(0,a.A)(this,"_handleSelectAll",((e,t,s)=>{this._selected=e,this._isInSelect=!0;const i=this._getRowKey();if(this.selectAllChildren){const t=(0,A.map)(this._dataSource,i),a=s.filter((e=>t.includes(e[i]))),n=(0,A.flatten)((0,A.map)(a,(e=>(0,A.map)(this._getSelectedRowsWithChildren(e),(e=>e[i]))))),l=(0,A.flatten)((0,A.map)(a,(e=>(0,A.map)(this._getSelectedRowsWithChildren(e),(e=>e)))));this._allChildren=l,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=e?(0,A.uniq)(this._disabledChildrenKeys.concat(n)):this._disabledChildrenKeys.filter((e=>!n.includes(e))))}this.storeCheckedByUrl&&i&&this._updateUrlChecked((0,A.map)(s,i),e)})),(0,a.A)(this,"_getCheckedFromUrl",(()=>{const e=(0,f.getHistory)(),t=new URLSearchParams(e.location.search).get("checked");return(0,A.isEmpty)(t)?[]:t.split(",")})),(0,a.A)(this,"_updateUrlChecked",((e,t)=>{const s=(0,f.getHistory)();let i=this._getCheckedFromUrl();t?i=[...i,...e]:(0,A.pull)(i,...e),this.shouldUpdateUrlParams&&s.pushQuery({checked:i.join(",")},{notify:!1})})),(0,a.A)(this,"_handleOnChange",((e,t,s)=>{const i=(0,f.getHistory)(),a=new URLSearchParams(i.location.search);if(!(0,A.isEmpty)(e))if(e.pageSize!==this.pageSize)e.current=1,a.set("page","1"),a.set("pageSize",(null==e?void 0:e.pageSize).toString()),(0,o.A)(Ht,this,E).emit({[this._fields.pageSize]:e.pageSize,[this._fields.page]:1}),this.page=1,this.pageSize=e.pageSize;else if(e.current!==this.page){const t=e.current||1;a.set("page",t.toString()),(0,o.A)(Ht,this,_).emit({[this._fields.page]:t}),this.page=t}this.filters=t,(0,A.isEmpty)(t)||(0,A.forEach)(t,((e,t)=>{(0,A.isNil)(e)||0===e.length?a.delete(t):a.set(t,e)})),s.order&&(0,A.isNil)(s.order)&&(s.columnKey!==this.sort||this._fields[s.order]!==this.order)&&(s.columnKey&&s.order?(a.set("sort",s.columnKey),a.set("order",this._fields[s.order].toString()),this.sort=s.columnKey,this.order=this._fields[s.order]):(a.delete("sort"),a.delete("order"),this.sort=null,this.order=null),(0,o.A)(Ht,this,F).emit({sort:this.sort,order:this.order})),this.frontSearch?(this.shouldUpdateUrlParams&&i.push(`?${a}`,{notify:!1}),this.frontendSearch(e,t,s)):this.shouldUpdateUrlParams&&i.push(`?${a}`,{notify:!!this.shouldRenderWhenUrlParamsUpdate})})),(0,a.A)(this,"renderSelectInfo",(()=>u().createElement("span",{style:{marginLeft:20}},u().createElement("span",null,"已选择",this.selectedRowKeys.length,"项"),u().createElement("a",{role:"button",style:{marginLeft:"10px"},onClick:()=>{this.selectedRowKeys=[],this._selectedRows=[],this._disabledChildrenKeys=[],this._allChildren=[],this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:[]})):(0,o.A)(Ht,this,M).emit([])}},"清空")))),(0,a.A)(this,"_handleOnExpand",((e,t)=>{if(this.expandedRowKeys){const s=this._getRowKey(),i=[(0,A.get)(t,s)],a=(0,A.get)(t,this.childrenColumnName);if(!(0,A.isEmpty)(a)){const e=(0,A.map)((0,A.filter)(a,(e=>(0,A.isEmpty)((0,A.get)(e,this.childrenColumnName)))),s);i.push(...e)}this.expandedRowKeys=e?[...this.expandedRowKeys,...i]:(0,A.pull)(this.expandedRowKeys,...i),this._render()}(0,o.A)(Ht,this,$).emit({expanded:e,record:t})})),(0,a.A)(this,"_handleOnExpandedRowsChange",(e=>{(0,o.A)(Ht,this,j).emit({expandedRows:e})})),(0,a.A)(this,"_handleOnDrag",(e=>{(0,o.A)(Ht,this,Y).emit({data:e})})),(0,a.A)(this,"_getAllRows",(()=>{const e=[];return(0,b.RX)(this._dataSource,this.childrenColumnName,e),e})),(0,a.A)(this,"_handleDefaultSelectAll",(()=>{this._isInSelect=!0;const e=this._getRowKey();return this._selectedRows=this._getAllRows(),this.selectedRowKeys=(0,A.map)(this._selectedRows,e),this.selectedRowKeys})),(0,a.A)(this,"_initConfigProps",(()=>{var e,t;const s={current:this.page,pageSize:this.pageSize,total:(0,d.A)(Os,this),showSizeChanger:!0,pageSizeOptions:["10","20","50"],showTotal:e=>{var t;return u().createElement(u().Fragment,null,u().createElement("span",{className:"totalText"},"共 ",u().createElement("strong",{className:"total"},e)," 条"),((null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)||this.rowSelection)&&this.showSelectInfo&&0!==this.selectedRowKeys.length&&this.renderSelectInfo())}},i=this._getRowKey();let a;this.rowDisabledConfig&&(a=Array.isArray(this.rowDisabledConfig)?this.rowDisabledConfig:[this.rowDisabledConfig]);const n={...i?{selectedRowKeys:this._isInSelect?this.selectedRowKeys:this.storeCheckedByUrl?this._getCheckedFromUrl():this.defaultSelectAll?this._handleDefaultSelectAll():this.selectedRowKeys,onSelect:this._handleOnSelect,onSelectAll:this._handleSelectAll,onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}:{onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0},getCheckboxProps:e=>!(0,A.isEmpty)(this._disabledChildrenKeys)&&this._disabledChildrenKeys.includes((0,A.get)(e,i))?{disabled:!0}:a?{disabled:a.some((t=>{const{field:s,value:i,operator:a}=t,n=b.LT[a];return null==n?void 0:n(i,(0,A.get)(e,s))}))}:{}};this.configProps?(this._finalConfigProps=(0,A.cloneDeep)(this.configProps),!1!==this.configProps.pagination&&(this._finalConfigProps.pagination={...s,...this.pagination,...this.configProps.pagination},void 0!==this.configProps.pagination&&null!==this.configProps.pagination||!1!==this.pagination||(this._finalConfigProps.pagination=!1)),this.configProps.size||(this._finalConfigProps.size="x-small"==this.size?"":this.size)):(this._finalConfigProps={},this._finalConfigProps.pagination=!1!==this.pagination&&s,this._finalConfigProps.size="x-small"==this.size?"":this.size);const l=null!==(e=null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)&&void 0!==e?e:this.rowSelection;var r,o;l?this._finalConfigProps.rowSelection=!0===l?{...n,type:null!==(r=this.type)&&void 0!==r?r:"checkbox"}:{...n,type:null!==(o=this.type)&&void 0!==o?o:"checkbox",...l,...n.selectedRowKeys?{selectedRowKeys:n.selectedRowKeys}:{}}:this.type?this._finalConfigProps.rowSelection={...n,type:this.type}:this._finalConfigProps.rowSelection=!1,this._columns&&(this._columns=this._columns.map((e=>{if((0,A.isNil)(e.key)&&(e.key=e.dataIndex),e.sorter&&(e.sortOrder=this.sort===e.key&&!(0,A.isNil)(this.order)&&(this._fields.ascend===this.order?"ascend":"descend")),e.filters){var t,s;const i=(0,f.getHistory)(),a=null!==(t=new URLSearchParams(i.location.search).get(e.key))&&void 0!==t?t:null===(s=(0,A.get)(this.filters,e.key))||void 0===s?void 0:s.join(",");(0,A.isNil)(a)||(0,A.isEmpty)(a)?(e.filtered=!1,e.filteredValue=[]):(e.filtered=!0,e.filteredValue=a.split(",").map((t=>{var s,i;return null!==(s=null===(i=(0,A.find)(e.filters,(e=>String(e.value)===t)))||void 0===i?void 0:i.value)&&void 0!==s?s:t})))}return e})))}))}set columns(e){this._columns=e,this._render()}get columns(){return this._columns}set dataSource(e){var t,s,i,a,n;if(this._isInSelect=!1,this._originalDataSource=e,this._dataSource=(0,A.cloneDeep)(this._fields.dataSource?(0,A.get)(e,this._fields.dataSource):e),this._pureSource=(0,A.cloneDeep)(this._dataSource),this.stripEmptyExpandableChildren){var l;const e=(null===(l=this.configProps)||void 0===l||null===(l=l.expandable)||void 0===l?void 0:l.childrenColumnName)||"children";(0,b.zA)(e,this._dataSource)}(0,h.A)(Os,this,(0,A.get)(e,this._fields.total)),this.page=null!==(t=null!==(s=(0,A.get)(e,"page"))&&void 0!==s?s:this.page)&&void 0!==t?t:1,this.pageSize=null!==(i=null!==(a=null!==(n=(0,A.get)(e,"page_size"))&&void 0!==n?n:(0,A.get)(e,"pageSize"))&&void 0!==a?a:this.pageSize)&&void 0!==i?i:10,this._render()}get showCard(){return(0,d.A)(Gt,this)}set showCard(e){(0,h.A)(Gt,this,e)}get rowSelection(){return(0,d.A)(Yt,this)}set rowSelection(e){(0,h.A)(Yt,this,e)}get rowKey(){return(0,d.A)(Zt,this)}set rowKey(e){(0,h.A)(Zt,this,e)}get hiddenColumns(){return(0,d.A)(es,this)}set hiddenColumns(e){(0,h.A)(es,this,e)}get showSelectInfo(){return(0,d.A)(ts,this)}set showSelectInfo(e){(0,h.A)(ts,this,e)}get filters(){return(0,d.A)(ss,this)}set filters(e){(0,h.A)(ss,this,e)}get configProps(){return(0,d.A)(is,this)}set configProps(e){(0,h.A)(is,this,e)}get sort(){return(0,d.A)(as,this)}set sort(e){(0,h.A)(as,this,e)}get order(){return(0,d.A)(ns,this)}set order(e){(0,h.A)(ns,this,e)}get rowDisabledConfig(){return(0,d.A)(ls,this)}set rowDisabledConfig(e){(0,h.A)(ls,this,e)}get expandedRowBrick(){return(0,d.A)(rs,this)}set expandedRowBrick(e){(0,h.A)(rs,this,e)}get expandIcon(){return(0,d.A)(os,this)}set expandIcon(e){(0,h.A)(os,this,e)}get expandIconAsCell(){return(0,d.A)(hs,this)}set expandIconAsCell(e){(0,h.A)(hs,this,e)}get expandIconColumnIndex(){return(0,d.A)(ds,this)}set expandIconColumnIndex(e){(0,h.A)(ds,this,e)}get expandRowByClick(){return(0,d.A)(cs,this)}set expandRowByClick(e){(0,h.A)(cs,this,e)}get optimizedColumns(){return(0,d.A)(ps,this)}set optimizedColumns(e){(0,h.A)(ps,this,e)}get stripEmptyExpandableChildren(){return(0,d.A)(us,this)}set stripEmptyExpandableChildren(e){(0,h.A)(us,this,e)}get defaultExpandAllRows(){return(0,d.A)(gs,this)}set defaultExpandAllRows(e){(0,h.A)(gs,this,e)}get ellipsisInfo(){return(0,d.A)(ws,this)}set ellipsisInfo(e){(0,h.A)(ws,this,e)}get expandedRowKeys(){return(0,d.A)(ms,this)}set expandedRowKeys(e){(0,h.A)(ms,this,e)}get selectAllChildren(){return(0,d.A)(As,this)}set selectAllChildren(e){(0,h.A)(As,this,e)}get defaultSelectAll(){return(0,d.A)(fs,this)}set defaultSelectAll(e){(0,h.A)(fs,this,e)}get childrenColumnName(){return(0,d.A)(ys,this)}set childrenColumnName(e){(0,h.A)(ys,this,e)}get sortable(){return(0,d.A)(bs,this)}set sortable(e){(0,h.A)(bs,this,e)}set fields(e){this._fields={...this._fields,...e},this._render()}get frontSearch(){return(0,d.A)(Ss,this)}set frontSearch(e){(0,h.A)(Ss,this,e)}get frontSearchQuery(){return(0,d.A)(xs,this)}set frontSearchQuery(e){(0,h.A)(xs,this,e)}get exactSearch(){return(0,d.A)(Cs,this)}set exactSearch(e){(0,h.A)(Cs,this,e)}get frontSearchFilterKeys(){return(0,d.A)(_s,this)}set frontSearchFilterKeys(e){(0,h.A)(_s,this,e)}get page(){return(0,d.A)(vs,this)}set page(e){(0,h.A)(vs,this,e)}get pageSize(){return(0,d.A)(Rs,this)}set pageSize(e){(0,h.A)(Rs,this,e)}get scrollConfigs(){return(0,d.A)(ks,this)}set scrollConfigs(e){(0,h.A)(ks,this,e)}get qField(){return(0,d.A)(Es,this)}set qField(e){(0,h.A)(Es,this,e)}get tableDraggable(){return(0,d.A)(Ks,this)}set tableDraggable(e){(0,h.A)(Ks,this,e)}get zebraPattern(){return(0,d.A)(Is,this)}set zebraPattern(e){(0,h.A)(Is,this,e)}get storeCheckedByUrl(){return(0,d.A)(Us,this)}set storeCheckedByUrl(e){(0,h.A)(Us,this,e)}get extraRows(){return(0,d.A)(Ms,this)}set extraRows(e){(0,h.A)(Ms,this,e)}get autoSelectParentWhenAllChildrenSelected(){return(0,d.A)(Ns,this)}set autoSelectParentWhenAllChildrenSelected(e){(0,h.A)(Ns,this,e)}get thTransparent(){return(0,d.A)(Ps,this)}set thTransparent(e){(0,h.A)(Ps,this,e)}get showHeader(){return(0,d.A)(Ws,this)}set showHeader(e){(0,h.A)(Ws,this,e)}get pagination(){return(0,d.A)(Bs,this)}set pagination(e){(0,h.A)(Bs,this,e)}get size(){return(0,d.A)(zs,this)}set size(e){(0,h.A)(zs,this,e)}get type(){return(0,d.A)(Ds,this)}set type(e){(0,h.A)(Ds,this,e)}get shouldUpdateUrlParams(){return(0,d.A)(Ts,this)}set shouldUpdateUrlParams(e){(0,h.A)(Ts,this,e)}get shouldRenderWhenUrlParamsUpdate(){return(0,d.A)(Fs,this)}set shouldRenderWhenUrlParamsUpdate(e){(0,h.A)(Fs,this,e)}get processedDataSource(){return this._dataSource}get processConfigProps(){return this._finalConfigProps}get processedColumns(){return this.getModifyColumns()}get selectedRowKeys(){return(0,d.A)(qs,this)}set selectedRowKeys(e){(0,h.A)(qs,this,e)}filterSourceData(e){const t=this.exactSearch?e.detail.q.trim():e.detail.q.trim().toLowerCase();if(this.shouldUpdateUrlParams){const e=(0,f.getHistory)(),s=new URLSearchParams(e.location.search);s.set("page","1"),t?(s.set(this.qField,t),e.push(`?${s}`,{notify:!this.frontSearch})):(s.delete(this.qField),e.push(`?${s}`,{notify:!this.frontSearch})),this.page=1}this.frontSearchQuery=t}handleFrontendDataChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.shouldUpdateUrlParams){const e=(0,f.getHistory)(),t=new URLSearchParams(e.location.search);this.frontSearchQuery=t.get(this.qField)}let s=[];s=this.handleFrontendFilterSource(e,this.frontSearchQuery||"",t);const i=(0,A.isNil)(this.order)?null:this._fields.ascend===this.order?"ascend":"descend";return s=this.handleFrontendSorter(s,{columnKey:this.sort,order:i}),s=this.handleFrontendFilters(s),(0,h.A)(Os,this,s.length),s}handleFrontendFilterSource(e,t,s,i){if(!t)return e;const a=[];return i||(i=this.frontSearchFilterKeys||s.map((e=>e.dataIndex))),e.forEach((e=>{var n;const l=e[this.childrenColumnName];if(l){const n=this.handleFrontendFilterSource(l,t,s,i);if(n.length>0)return void a.push({...e,[this.childrenColumnName]:n})}(null===(n=i)||void 0===n?void 0:n.some((s=>{const i=(0,A.get)(e,s);return!(0,A.isNil)(i)&&(this.exactSearch?i===t:JSON.stringify(i).toLowerCase().includes(t))})))&&a.push(e)})),a}handleFrontendSorter(e,t){const s=e||[],{columnKey:i,order:a}=t;if(!i||!a)return e;let n=1;return"descend"===a?n=-1:"ascend"===a&&(n=1),void 0!==n&&(s.sort(((e,t)=>{const s=(0,A.get)(e,i),a=(0,A.get)(t,i);if((0,A.isNil)(s)){if(!(0,A.isNil)(a))return 1}else if((0,A.isNil)(a))return-1;return s==a?0:s>a?n:-n})),s.forEach((e=>{const s=e[this.childrenColumnName];s&&this.handleFrontendSorter(s,t)}))),s}handleFrontendFilters(e){let t=e||[];const s=(0,A.map)(this.filters,((e,t)=>({key:t,value:e}))).filter((e=>!(0,A.isNil)(e.value)&&0!==e.value.length));return t=t.filter((e=>(0,A.every)(s,(t=>{var s,i;return null===(s=null===(i=t.value)||void 0===i?void 0:i.includes((0,A.get)(e,t.key)))||void 0===s||s})))),t}frontendSearch(e,t,s){this.sort=(0,A.isNil)(s.order)?null:s.columnKey,this.order=(0,A.isNil)(s.order)?null:this._fields[s.order]}expandAll(){const e=[],t=this._getRowKey();this._dataSource&&(0,b.Mm)(this._dataSource,t,this.childrenColumnName,e),this.expandedRowKeys=e}getModifyColumns(){let e=this._columns;return this._columns&&this.hiddenColumns&&(e=this._columns.filter((e=>{var t,s;return!(null!==(t=this.hiddenColumns)&&void 0!==t&&t.includes(null!==(s=e.dataIndex)&&void 0!==s?s:e.key))}))),!1===this.sortable&&(e=(0,A.map)(e,(e=>(e.sorter=!1,e)))),e}render(){return this.frontSearch&&(this._dataSource=this.handleFrontendDataChange(this._pureSource,this._columns)),this._initConfigProps(),u().createElement(y.m,{shadowRoot:this.shadowRoot,dataSource:this._dataSource||[],columns:this.getModifyColumns(),configProps:this._finalConfigProps,error:this._error,onChange:this._handleOnChange,showCard:this.showCard,showHeader:this.showHeader,expandedRowBrick:this.expandedRowBrick,expandIconAsCell:this.expandIconAsCell,expandIconColumnIndex:this.expandIconColumnIndex,expandRowByClick:this.expandRowByClick,defaultExpandAllRows:this.defaultExpandAllRows,onExpand:this._handleOnExpand,onExpandedRowsChange:this._handleOnExpandedRowsChange,expandedRowKeys:this.expandedRowKeys,rowKey:this._getRowKey(),childrenColumnName:this.childrenColumnName,tableDraggable:this.tableDraggable||this.draggable,onDrag:this._handleOnDrag,zebraPattern:this.zebraPattern,expandIcon:this.expandIcon,scroll:this.scrollConfigs,optimizedColumns:this.optimizedColumns,ellipsisInfo:this.ellipsisInfo,thTransparent:this.thTransparent,xSmallSizeTable:"x-small"==this.size})}_test_only_getOriginalDataSource(){return this._originalDataSource}updateData(e){this._dataSource=e.detail,this._error=null,this._render()}updateError(e){this._error=e.detail,this._render()}set selectUpdateEventName(e){this._selectUpdateEventName=e}set selectUpdateEventDetailKeys(e){this._selectUpdateEventDetailKeys=e}set selectUpdateEventDetailField(e){this._selectUpdateEventDetailField=e}set selectUpdateEventDetailExtra(e){this._selectUpdateEventDetailExtra=e}}i=Hs,({e:[C,_,v,R,k,E,K,I,U,M,N,P,W,B,z,D,T,F,O,q,H,$,L,Q,V,j,X,J,G,Y,Z,ee,te,se,ie,ae,ne,le,re,oe,he,de,ce,pe,ue,ge,we,me,Ae,fe,ye,be,Se,xe,Ce,_e,ve,Re,ke,Ee,Ke,Ie,Ue,Me,Ne,Pe,We,Be,ze,De,Te,Fe,Oe,qe,He,$e,Le,Qe,Ve,je,Xe,Je,Ge,Ye,Ze,et,tt,st,it,at,nt,lt,rt,ot,ht,dt,ct,pt,ut,gt,wt,mt,At,ft,yt,bt,St,xt,Ct,_t,vt,Rt,kt,Et,Kt,It,Ut,Mt,Nt,Pt,Wt,Bt,S],c:[Ot,x]}=(0,c.A)(i,[zt("eo-table",{styleTexts:[m.A],alias:["advanced.general-table"]})],[[Tt({type:"page.update"}),1,"pageUpdate",e=>(0,d.A)(qt,e),(e,t)=>(0,h.A)(qt,e,t)],[Tt({type:"filter.update"}),1,"filterUpdate",e=>(0,d.A)($t,e),(e,t)=>(0,h.A)($t,e,t)],[Tt({type:"select.update"}),1,"selectUpdate",e=>(0,d.A)(Lt,e),(e,t)=>(0,h.A)(Lt,e,t)],[Tt({type:"select.row.keys.update"}),1,"selectRowKeysUpdate",e=>(0,d.A)(Qt,e),(e,t)=>(0,h.A)(Qt,e,t)],[Tt({type:"sort.update",cancelable:!0}),1,"sortUpdate",e=>(0,d.A)(Vt,e),(e,t)=>(0,h.A)(Vt,e,t)],[Tt({type:"row.expand"}),1,"rowExpand",e=>(0,d.A)(jt,e),(e,t)=>(0,h.A)(jt,e,t)],[Tt({type:"expand.rows.change"}),1,"expandRowsChange",e=>(0,d.A)(Xt,e),(e,t)=>(0,h.A)(Xt,e,t)],[Tt({type:"row.drag"}),1,"rowDrag",e=>(0,d.A)(Jt,e),(e,t)=>(0,h.A)(Jt,e,t)],[Dt({type:Boolean}),1,"showCard"],[Dt({attribute:!1}),1,"rowSelection"],[Dt(),1,"rowKey"],[Dt({attribute:!1}),1,"hiddenColumns"],[Dt({type:Boolean}),1,"showSelectInfo"],[Dt({attribute:!1}),1,"filters"],[Dt({attribute:!1}),1,"configProps"],[Dt(),1,"sort"],[Dt({attribute:!1}),1,"order"],[Dt({attribute:!1}),1,"rowDisabledConfig"],[Dt({attribute:!1}),1,"expandedRowBrick"],[Dt({attribute:!1}),1,"expandIcon"],[Dt({attribute:!1}),1,"expandIconAsCell"],[Dt({type:Number}),1,"expandIconColumnIndex"],[Dt({type:Boolean}),1,"expandRowByClick"],[Dt({attribute:!1}),1,"optimizedColumns"],[Dt({attribute:!1}),1,"stripEmptyExpandableChildren"],[Dt({type:Boolean}),1,"defaultExpandAllRows"],[Dt({type:Boolean}),1,"ellipsisInfo"],[Dt({attribute:!1}),1,"expandedRowKeys"],[Dt({type:Boolean}),1,"selectAllChildren"],[Dt({type:Boolean}),1,"defaultSelectAll"],[Dt({attribute:!1}),1,"childrenColumnName"],[Dt({attribute:!1}),1,"sortable"],[Dt({type:Boolean}),1,"frontSearch"],[Dt(),1,"frontSearchQuery"],[Dt({type:Boolean}),1,"exactSearch"],[Dt({attribute:!1}),1,"frontSearchFilterKeys"],[Dt({type:Number}),1,"page"],[Dt({type:Number}),1,"pageSize"],[Dt({attribute:!1}),1,"scrollConfigs"],[Dt(),1,"qField"],[Dt({type:Boolean}),1,"tableDraggable"],[Dt({type:Boolean}),1,"zebraPattern"],[Dt({type:Boolean}),1,"storeCheckedByUrl"],[Dt({attribute:!1}),1,"extraRows"],[Dt({type:Boolean}),1,"autoSelectParentWhenAllChildrenSelected"],[Dt({type:Boolean}),1,"thTransparent"],[Dt({type:Boolean}),1,"showHeader"],[Dt({attribute:!1}),1,"pagination"],[Dt(),1,"size"],[Dt({attribute:!1}),1,"type"],[Dt({type:Boolean}),1,"shouldUpdateUrlParams"],[Dt({type:Boolean}),1,"shouldRenderWhenUrlParamsUpdate"],[Dt({attribute:!1}),1,"selectedRowKeys"],[Ft(),2,"filterSourceData"],[Ft(),2,"expandAll"]],0,(e=>Os.has((0,r.A)(e))),w.ReactNextElement)),x()}}]);
|
|
2
|
-
//# sourceMappingURL=eo-table.12739d5e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[5677],{16768:(e,t,i)=>{i.d(t,{A:()=>k});var s=i(95694),a=i(58133),r=i(79154),n=i(73459);var h=i(19509),l=i(53443),o=i(94597),c=i(64425);var p=i(97043),d=i(45907),u=i(6127);const A=(e,t)=>new u.Y(e).setA(t).toRgbString(),g=(e,t)=>new u.Y(e).lighten(t).toHexString(),m=e=>{const t=(0,p.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},w=(e,t)=>{const i=e||"#000",s=t||"#fff";return{colorBgBase:i,colorTextBase:s,colorText:A(s,.85),colorTextSecondary:A(s,.65),colorTextTertiary:A(s,.45),colorTextQuaternary:A(s,.25),colorFill:A(s,.18),colorFillSecondary:A(s,.12),colorFillTertiary:A(s,.08),colorFillQuaternary:A(s,.04),colorBgSolid:A(s,.95),colorBgSolidHover:A(s,1),colorBgSolidActive:A(s,.9),colorBgElevated:g(i,12),colorBgContainer:g(i,8),colorBgLayout:g(i,0),colorBgSpotlight:g(i,26),colorBgBlur:A(s,.04),colorBorder:g(i,26),colorBorderSecondary:g(i,19)}},k={defaultSeed:l.sb.token,useToken:function(){const[e,t,i]=(0,h.Ay)();return{theme:e,token:t,hashId:i}},defaultAlgorithm:a.A,darkAlgorithm:(e,t)=>{const i=Object.keys(r.r).map((t=>{const i=(0,p.cM)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,s,a)=>(e[`${t}-${a+1}`]=i[a],e[`${t}${a+1}`]=i[a],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),s=null!=t?t:(0,a.A)(e);return Object.assign(Object.assign(Object.assign({},s),i),(0,d.A)(e,{generateColorPalettes:m,generateNeutralColorPalettes:w}))},compactAlgorithm:(e,t)=>{const i=null!=t?t:(0,a.A)(e),s=i.fontSizeSM,r=i.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i),function(e){const{sizeUnit:t,sizeStep:i}=e,s=i-2;return{sizeXXL:t*(s+10),sizeXL:t*(s+6),sizeLG:t*(s+2),sizeMD:t*(s+2),sizeMS:t*(s+1),size:t*s,sizeSM:t*s,sizeXS:t*(s-1),sizeXXS:t*(s-1)}}(null!=t?t:e)),(0,c.A)(s)),{controlHeight:r}),(0,o.A)(Object.assign(Object.assign({},i),{controlHeight:r})))},getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?(0,s.an)(e.algorithm):(0,s.an)(a.A),i=Object.assign(Object.assign({},r.A),null==e?void 0:e.token);return(0,s.lO)(i,{override:null==e?void 0:e.token},t,n.A)},defaultConfig:l.sb,_internalContext:l.vG}},30426:(e,t,i)=>{i.d(t,{N:()=>z});var s,a=i(74635),r=i(70918),n=i(5536),h=i(99492),l=i(86121),o=i(70829),c=i(62740),p=i(7921),d=i(11280);let u,A,g,m,w,k,b,f,x;const{method:M,property:S}=(0,p.createDecorators)();var W=new WeakMap,y=new WeakSet,v=new WeakMap,E=new WeakMap,C=new WeakMap,B=new WeakMap,T=new WeakMap,N=new WeakMap;class z extends d.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,y),(0,r.A)(this,W,(u(this),!1)),(0,r.A)(this,v,"normal"),(0,r.A)(this,E,!1),(0,r.A)(this,C,A(this)),(0,r.A)(this,B,(g(this),m(this))),(0,r.A)(this,T,(w(this),k(this))),(0,r.A)(this,N,(b(this),f(this))),x(this)}get isFormItemElement(){return!0}set validateState(e){(0,h.A)(y,R,this,e),this._render()}get validateState(){return(0,n.A)(y,this,j)}set notRender(e){this.hidden=e,(0,h.A)(y,D,this,e),this._render()}get notRender(){return(0,n.A)(y,this,O)}get $bindFormItem(){return(0,n.A)(y,this,F)}set $bindFormItem(e){(0,h.A)(y,I,this,e),this._render()}get helpBrick(){return(0,o.A)(C,this)}set helpBrick(e){(0,l.A)(C,this,e)}get labelBrick(){return(0,o.A)(B,this)}set labelBrick(e){(0,l.A)(B,this,e)}get labelCol(){return(0,o.A)(T,this)}set labelCol(e){(0,l.A)(T,this,e)}get wrapperCol(){return(0,o.A)(N,this)}set wrapperCol(e){(0,l.A)(N,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function O(e){return(0,o.A)(W,e)}function D(e,t){(0,l.A)(W,e,t)}function j(e){return(0,o.A)(v,e)}function R(e,t){(0,l.A)(v,e,t)}function F(e){return(0,o.A)(E,e)}function I(e,t){(0,l.A)(E,e,t)}s=z,[A,g,m,w,k,b,f,x,u]=(0,c.A)(s,[],[[S({attribute:!1}),1,"helpBrick"],[S({attribute:!1}),1,"labelBrick"],[S({attribute:!1}),1,"labelCol"],[S({attribute:!1}),1,"wrapperCol"],[M(),2,"setNotRender"],[M(),2,"getFormElement"]],0,void 0,d.ReactNextElement).e},34695:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(36758),a=i.n(s),r=i(40935),n=i.n(r)()(a());n.push([e.id,":host{display:block}:host([hidden]){display:none}.ant-tree-select{width:100%;min-height:28px;height:max-content}.ant-select-lg{height:38px}.ant-select-sm{height:20px}.ant-select-multiple .ant-select-selector{border-radius:var(--small-border-radius)}.ant-select-multiple .ant-select-selector:after{line-height:22px}.notPopupMatchSelectWidth .ant-select-tree-title{white-space:nowrap}",""]);const h=n.toString()},94018:(e,t,i)=>{i.r(t),i.d(t,{TreeSelectBrick:()=>Fe});var s,a=i(24586),r=i(74635),n=i(70918),h=i(26902),l=i(5536),o=i(86121),c=i(70829),p=i(62740),d=i(18769),u=i.n(d),A=i(7921),g=i(11280),m=(i(76477),i(40194)),w=i(16768),k=i(18623),b=i(95694),f=i(30426),x=i(72736),M=i(34695),S=i(53373),W=i.n(S);let y,v,E,C,B,T,N,z,O,D,j,R,F,I,P,_,K,X,$,q,H,L,G,Q,Y,U,V,J,Z,ee,te,ie,se,ae,re,ne,he,le,oe,ce,pe,de,ue,Ae,ge,me,we,ke,be,fe,xe,Me,Se,We,ye,ve,Ee,Ce,Be,Te,Ne;const{defineElement:ze,property:Oe,event:De}=(0,A.createDecorators)(),je=(0,g.wrapBrick)("eo-icon"),Re=(0,g.wrapBrick)("eo-form-item");let Fe;var Ie=new WeakMap,Pe=new WeakMap,_e=new WeakMap,Ke=new WeakMap,Xe=new WeakMap,$e=new WeakMap,qe=new WeakMap,He=new WeakMap,Le=new WeakMap,Ge=new WeakMap,Qe=new WeakMap,Ye=new WeakMap,Ue=new WeakMap,Ve=new WeakMap,Je=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,it=new WeakMap,st=new WeakMap,at=new WeakMap,rt=new WeakMap,nt=new WeakMap,ht=new WeakSet,lt=new WeakMap,ot=new WeakMap,ct=new WeakMap,pt=new WeakMap,dt=new WeakMap,ut=new WeakMap;class At extends f.N{constructor(){super(...arguments),(0,r.A)(this,ht),(0,n.A)(this,Ie,v(this)),(0,n.A)(this,Pe,(E(this),C(this))),(0,n.A)(this,_e,(B(this),T(this))),(0,n.A)(this,Ke,(N(this),z(this))),(0,n.A)(this,Xe,(O(this),D(this))),(0,n.A)(this,$e,(j(this),R(this))),(0,n.A)(this,qe,(F(this),I(this))),(0,n.A)(this,He,(P(this),_(this))),(0,n.A)(this,Le,(K(this),X(this))),(0,n.A)(this,Ge,($(this),q(this))),(0,n.A)(this,Qe,(H(this),L(this))),(0,n.A)(this,Ye,(G(this),Q(this))),(0,n.A)(this,Ue,(Y(this),U(this,!0))),(0,n.A)(this,Ve,(V(this),J(this,!1))),(0,n.A)(this,Je,(Z(this),ee(this))),(0,n.A)(this,Ze,(te(this),ie(this,!0))),(0,n.A)(this,et,(se(this),ae(this))),(0,n.A)(this,tt,(re(this),ne(this,"bottomLeft"))),(0,n.A)(this,it,(he(this),le(this))),(0,n.A)(this,st,(oe(this),ce(this))),(0,n.A)(this,at,(pe(this),de(this))),(0,n.A)(this,rt,(ue(this),Ae(this,!0))),(0,n.A)(this,nt,(ge(this),me(this))),(0,a.A)(this,"handleOnChange",(be(this),e=>{this.value=e,(0,l.A)(ht,this,we).emit({value:e})})),(0,n.A)(this,lt,fe(this)),(0,n.A)(this,ot,(Se(this),e=>{(0,l.A)(ht,this,xe).emit(e)})),(0,n.A)(this,ct,We(this)),(0,n.A)(this,pt,(Ee(this),e=>{(0,l.A)(ht,this,ye).emit({value:e})})),(0,n.A)(this,dt,Ce(this)),(0,n.A)(this,ut,(Ne(this),e=>{(0,l.A)(ht,this,Be).emit({keys:e})}))}get name(){return(0,c.A)(Ie,this)}set name(e){(0,o.A)(Ie,this,e)}get label(){return(0,c.A)(Pe,this)}set label(e){(0,o.A)(Pe,this,e)}get required(){return(0,c.A)(_e,this)}set required(e){(0,o.A)(_e,this,e)}get treeData(){return(0,c.A)(Ke,this)}set treeData(e){(0,o.A)(Ke,this,e)}get treeDefaultExpandAll(){return(0,c.A)(Xe,this)}set treeDefaultExpandAll(e){(0,o.A)(Xe,this,e)}get treeExpandedKeys(){return(0,c.A)($e,this)}set treeExpandedKeys(e){(0,o.A)($e,this,e)}get fieldNames(){return(0,c.A)(qe,this)}set fieldNames(e){(0,o.A)(qe,this,e)}get value(){return(0,c.A)(He,this)}set value(e){(0,o.A)(He,this,e)}get placeholder(){return(0,c.A)(Le,this)}set placeholder(e){(0,o.A)(Le,this,e)}get multiple(){return(0,c.A)(Ge,this)}set multiple(e){(0,o.A)(Ge,this,e)}get disabled(){return(0,c.A)(Qe,this)}set disabled(e){(0,o.A)(Qe,this,e)}get checkable(){return(0,c.A)(Ye,this)}set checkable(e){(0,o.A)(Ye,this,e)}get allowClear(){return(0,c.A)(Ue,this)}set allowClear(e){(0,o.A)(Ue,this,e)}get loading(){return(0,c.A)(Ve,this)}set loading(e){(0,o.A)(Ve,this,e)}get filterTreeNode(){return(0,c.A)(Je,this)}set filterTreeNode(e){(0,o.A)(Je,this,e)}get showSearch(){return(0,c.A)(Ze,this)}set showSearch(e){(0,o.A)(Ze,this,e)}get suffixIcon(){return(0,c.A)(et,this)}set suffixIcon(e){(0,o.A)(et,this,e)}get popupPlacement(){return(0,c.A)(tt,this)}set popupPlacement(e){(0,o.A)(tt,this,e)}get size(){return(0,c.A)(it,this)}set size(e){(0,o.A)(it,this,e)}get maxTagCount(){return(0,c.A)(st,this)}set maxTagCount(e){(0,o.A)(st,this,e)}get dropdownStyle(){return(0,c.A)(at,this)}set dropdownStyle(e){(0,o.A)(at,this,e)}get popupMatchSelectWidth(){return(0,c.A)(rt,this)}set popupMatchSelectWidth(e){(0,o.A)(rt,this,e)}render(){return u().createElement(Re,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,notRender:this.notRender,trigger:"handleOnChange"},u().createElement(gt,{shadowRoot:this.shadowRoot,checkable:this.checkable,treeData:this.treeData,treeDefaultExpandAll:this.treeDefaultExpandAll,fieldNames:this.fieldNames,filterTreeNode:this.filterTreeNode,value:this.value,multiple:this.multiple,placeholder:this.placeholder,loading:this.loading,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,suffixIcon:this.suffixIcon,size:this.size,popupPlacement:this.popupPlacement,treeExpandedKeys:this.treeExpandedKeys,maxTagCount:this.maxTagCount,dropdownStyle:this.dropdownStyle,onChange:this.handleOnChange,onSearch:(0,c.A)(ot,this),onSelect:(0,c.A)(pt,this),onTreeExpand:(0,c.A)(ut,this),popupMatchSelectWidth:this.popupMatchSelectWidth}))}}function gt(e){const{shadowRoot:t,checkable:i,loading:s,treeData:a,treeExpandedKeys:r,treeDefaultExpandAll:n,fieldNames:h,value:l,placeholder:o,disabled:c,multiple:p,allowClear:A,popupPlacement:g,dropdownStyle:f,suffixIcon:M,size:S,maxTagCount:y,onChange:v,onSearch:E,onSelect:C,onTreeExpand:B,showSearch:T,popupMatchSelectWidth:N}=e,z=(0,x.useCurrentTheme)(),O=(0,d.useMemo)((()=>(0,b.VC)()),[]);return u().createElement(m.Ay,{theme:{algorithm:"dark-v2"===z?w.A.darkAlgorithm:w.A.defaultAlgorithm}},u().createElement(b.N7,{container:t,cache:O},u().createElement(k.A,{getPopupContainer:e=>e.parentElement,allowClear:A,loading:s,disabled:c,multiple:p,fieldNames:h,placeholder:o,placement:g,dropdownStyle:f,suffixIcon:M&&u().createElement(je,M),maxTagCount:y,value:l,size:S,treeData:a,treeCheckable:i,treeExpandedKeys:r,treeDefaultExpandAll:n,onChange:v,onSelect:C,onSearch:E,onTreeExpand:B,virtual:!1,showSearch:T,popupMatchSelectWidth:N,className:W()({notPopupMatchSelectWidth:!N})})))}s=At,({e:[v,E,C,B,T,N,z,O,D,j,R,F,I,P,_,K,X,$,q,H,L,G,Q,Y,U,V,J,Z,ee,te,ie,se,ae,re,ne,he,le,oe,ce,pe,de,ue,Ae,ge,me,we,ke,be,fe,xe,Me,Se,We,ye,ve,Ee,Ce,Be,Te,Ne],c:[Fe,y]}=(0,p.A)(s,[ze("eo-tree-select",{styleTexts:[M.A]})],[[Oe(),1,"name"],[Oe(),1,"label"],[Oe({type:Boolean}),1,"required"],[Oe({attribute:!1}),1,"treeData"],[Oe({type:Boolean}),1,"treeDefaultExpandAll"],[Oe({attribute:!1}),1,"treeExpandedKeys"],[Oe({attribute:!1}),1,"fieldNames"],[Oe({attribute:!1}),1,"value"],[Oe(),1,"placeholder"],[Oe({type:Boolean}),1,"multiple"],[Oe({type:Boolean}),1,"disabled"],[Oe({type:Boolean}),1,"checkable"],[Oe({type:Boolean}),1,"allowClear"],[Oe({type:Boolean}),1,"loading"],[Oe({attribute:!1}),1,"filterTreeNode"],[Oe({type:Boolean}),1,"showSearch"],[Oe({attribute:!1}),1,"suffixIcon"],[Oe(),1,"popupPlacement"],[Oe(),1,"size"],[Oe({attribute:!1}),1,"maxTagCount"],[Oe({attribute:!1}),1,"dropdownStyle"],[Oe({type:Boolean}),1,"popupMatchSelectWidth"],[De({type:"change"}),1,"changeEvent",e=>(0,c.A)(nt,e),(e,t)=>(0,o.A)(nt,e,t)],[De({type:"search"}),1,"searchEvent",e=>(0,c.A)(lt,e),(e,t)=>(0,o.A)(lt,e,t)],[De({type:"select"}),1,"selectEvent",e=>(0,c.A)(ct,e),(e,t)=>(0,o.A)(ct,e,t)],[De({type:"expand"}),1,"expandEvent",e=>(0,c.A)(dt,e),(e,t)=>(0,o.A)(dt,e,t)]],0,(e=>ut.has((0,h.A)(e))),f.N)),y()},99492:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(12559);function a(e,t,i,a){return t((0,s.A)(e,i),a),a}}}]);
|
|
2
|
-
//# sourceMappingURL=eo-tree-select.cb6bcb08.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see eo-workbench-layout-v2.f1eda59a.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[771],{1740:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(12559);function r(e,t,n){return n((0,o.A)(e,t))}},7231:(e,t,n)=>{"use strict";n.d(t,{q:()=>u});var o=n(18769),r=n.n(o),i=n(72736),a=n(11280),s=n(41640),c=n(41030);const l=(0,a.wrapBrick)("eo-icon"),p=["x","y","w","h"];function d(e){const{component:t,isEdit:n,onDelete:a,layout:d}=e,u=(0,o.useMemo)((()=>(0,c.cloneDeep)(t.useBrick)),[t.useBrick]),[m,h]=(0,o.useState)((()=>(0,c.omit)({...d,cardWidth:d.cardWidth||t.position.w},p)));(0,o.useEffect)((()=>{const e=(0,c.omit)({...d,cardWidth:d.cardWidth||t.position.w},p);(0,c.isEqual)(e,m)||h(e)}),[d,m,t.position.w]);const y=(0,o.useMemo)((()=>1!==(null==m?void 0:m.cardBorderWidth)?(null==m?void 0:m.cardBorderWidth)-1:0),[m]),g=(0,o.useMemo)((()=>45+y),[y]),v=(0,o.useMemo)((()=>{const e=15+y;return{top:e,right:e}}),[y]);return r().createElement("div",{className:s.A.itemWrapper},n&&r().createElement("div",{className:s.A.editMask,style:{top:g},onMouseDown:e=>{e.preventDefault()},"data-testid":"droppable-component-layout-item-edit-mask"}),r().createElement(i.ReactUseBrick,{useBrick:u,data:m}),n&&r().createElement(l,{icon:"delete",lib:"antd",style:v,className:s.A.deleteIcon,onClick:e=>{e.preventDefault(),null==a||a(d.i)},"data-testid":"droppable-component-layout-item-delete"}))}const u=(0,o.memo)(d)},8601:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(72591),r=n.n(o),i=n(1740),a=n.n(i),s=n(88128),c=n.n(s),l=n(30855),p=n.n(l),d=n(93051),u=n.n(d),m=n(73656),h=n.n(m),y=n(55515),g={};g.styleTagTransform=h(),g.setAttributes=p(),g.insert=c().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},20504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EoWorkbenchLayoutComponent:()=>Ae,EoWorkbenchLayoutV2:()=>ke});var o,r=n(74635),i=n(70918),a=n(26902),s=n(5536),c=n(86121),l=n(70829),p=n(62740),d=n(18769),u=n.n(d),m=n(53373),h=n.n(m),y=n(7921),g=n(11280),v=n(49523),f=n(72736),A=n(69113),k=n(45833),b=(n(76477),n(41030)),w=n(42599),x=n(82202),I=n(7231),W=n(79120),E=n(48669),M=n(72465),B=n(41640);let C,T,D,L,S,N,R,z,O,P,j,H,_,G,U,Q,$,K,Z,F,Y,X,q,J,V,ee,te,ne,oe,re,ie,ae,se,ce;n(78259);const{defineElement:le,property:pe,event:de,method:ue}=(0,y.createDecorators)(),me=(0,g.wrapBrick)("eo-button"),he=(0,g.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),ye=(0,v.unwrapProvider)("basic.show-dialog"),ge=`${window.location.origin}${(0,x.getBasePath)()}api/gateway/object_store.object_store.GetObject/api/v1/objectStore/bucket/sys-setting/object/`,ve=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:fe}=A.auth.getAuth(),Ae=(0,d.forwardRef)((function(e,t){let{cardTitle:n="卡片列表",layouts:o,toolbarBricks:r,componentList:i=[],isEdit:a,showSettingButton:s,onChange:c,onSave:l,onCancel:p,onActionClick:m,onSetting:y}=e;const g=(0,d.useMemo)((()=>(0,k.WidthProvider)(k.Responsive)),[]),v=(0,d.useRef)(null),A=(0,d.useRef)(null),x=(0,d.useRef)(null!=o?o:[]),[C,T]=(0,d.useState)(x.current),D=(0,d.useMemo)((()=>(0,b.keyBy)(i,"key")),[i]),[L,S]=(0,d.useState)(3),[N,R]=(0,d.useState)(),z=(0,d.useRef)(),O=(0,d.useCallback)((e=>{x.current=e,T(e)}),[]);(0,d.useImperativeHandle)(t,(()=>({setLayouts:O})));const P=(0,d.useCallback)((e=>{O(e),null==c||c(e)}),[c,O]),j=(0,d.useCallback)((e=>{if(!a)return;if(e.some((e=>e.isDraggable)))return;const t=(0,b.keyBy)(C,"i");for(let t=0;t<e.length;t++){const{x:o,w:r,y:i,h:a,i:s,minH:c}=e[t];var n;if(1===r&&o<2)e.find((e=>e.i!==s&&1===e.w&&e.y===i&&o<2))&&(e[t].minH=null!==(n=e[t].minH)&&void 0!==n?n:a);else e[t].h=null!=c?c:a,e[t].minH=void 0}P(e.map((e=>({...null==t?void 0:t[e.i],...e,type:ve(e.i)}))))}),[P,a,C]),H=()=>{P([])},_=(0,d.useCallback)((()=>{null==l||l(C)}),[C,l]),G=(e,t)=>{const n=(0,E.D)(e.key),o=(0,b.keyBy)(t,"i"),r=C.map((e=>({...e,...(0,b.pick)(null==o?void 0:o[e.i],["x","y"])})));let i={...n,...e.position,i:`${e.key}:${Math.random()}`,cardWidth:e.position.w,type:e.key,x:e.position.w>1?0:2*C.length%L,y:1/0};if(t){const e=t.find((e=>"__dropping-elem__"===e.i));return i={...i,...(0,b.pick)(e,"x","y")},void P([i,...r])}P(C.concat(i))},U=(0,d.useCallback)((e=>{var t;P(null!==(t=C.filter((t=>t.i!==e)))&&void 0!==t?t:[])}),[P,C]),Q=(0,d.useCallback)(((e,t)=>{const n=Math.ceil((t+16)/17),o=C.find((t=>t.i===e));if(o&&Math.ceil(o.h)!==n){const t=C.map((t=>t.i===e?{...t,h:n}:t));P(t)}}),[C,P]),$=(0,d.useMemo)((()=>C.map((e=>{var t,n,o;const r=D[ve(e.type)];if(!r)return null;const i="picture"===(null==e?void 0:e.cardBgType)?`url("${ge}${null==e?void 0:e.cardBackground}") no-repeat center / cover`:"color"===(null==e?void 0:e.cardBgType)?null==e?void 0:e.cardBackground:"#fff",s="solid"===(null==e?void 0:e.cardBorderStyle)?`${null==e?void 0:e.cardBorderWidth}px ${null==e?void 0:e.cardBorderStyle} ${null==e?void 0:e.cardBorderColor}`:null!==(t=null==e?void 0:e.cardBorderStyle)&&void 0!==t?t:"1px solid #e8e8e8",c=`${null!==(n=null==e?void 0:e.cardBorderRadius)&&void 0!==n?n:6}px`;return u().createElement("div",{className:"drag-box","data-grid":{...null!==(o=r.position)&&void 0!==o?o:{},...e,w:e.cardWidth||e.w},key:e.i,style:{...r.style||{},background:i,border:s,borderRadius:c,backdropFilter:"blur(10px)"}},u().createElement(w.SizeMe,{monitorHeight:!0},(t=>{let{size:n}=t;return n.height&&Q(e.i,n.height),u().createElement(I.q,{component:r,isEdit:a,layout:e,onDelete:U})})))})).filter(Boolean)),[C,D,a,U,Q]),K=(0,d.useCallback)((()=>{if(A&&a){var e,t;const{top:n}=null!==(e=null===(t=A.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==n&&R({height:document.body.clientHeight-n})}}),[a]);return(0,d.useEffect)((()=>{if(a)return K(),O(o||[]),window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}}),[a,K,o,O]),u().createElement("div",{className:M.A.gridLayoutWrapper,ref:v},a&&u().createElement("div",{className:M.A.componentWrapper,style:N},u().createElement("div",{className:M.A.componentTitle},n),u().createElement("div",{className:M.A.componentList},null==i?void 0:i.map(((e,t)=>u().createElement(W.T,{component:e,onClick:()=>{G(e)},onDragStart:()=>{z.current=e},onDragEnd:()=>{z.current=void 0},key:e.key||t}))),(null==r?void 0:r.useBrick)&&u().createElement(f.ReactUseMultipleBricks,{useBrick:r.useBrick}))),u().createElement("div",{className:M.A.layoutWrapper,ref:A,style:N},a&&u().createElement("div",{className:M.A.actionsWrapper},u().createElement(me,{type:"primary",onClick:_},"保存"),u().createElement(me,{onClick:()=>{null==p||p()}},"取消"),s&&u().createElement(me,{"data-testid":"setting-button",onClick:()=>{null==y||y()}},"设置"),u().createElement(he,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...fe?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模板加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?ye({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(H):null==m||m(e,null!=C?C:[])})(e.detail)},"data-testid":"edit-layout-actions"})),u().createElement(g,{className:h()(M.A.layout,{[`${M.A.layoutEdit}`]:a}),draggableCancel:`.${B.A.deleteIcon},.edit-actions,.ignore-item`,breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:a?3:1},isResizable:!1,isDraggable:a,isDroppable:a,compactType:"vertical",margin:[16,16],useCSSTransforms:!1,onDropDragOver:()=>{if(z.current)return(0,b.pick)(z.current.position,["w","h"])},onDrop:e=>{z.current&&G(z.current,e)},onLayoutChange:j,onBreakpointChange:(e,t)=>{S(t)}},$)))}));let ke;var be=new WeakMap,we=new WeakMap,xe=new WeakMap,Ie=new WeakMap,We=new WeakMap,Ee=new WeakMap,Me=new WeakMap,Be=new WeakMap,Ce=new WeakSet,Te=new WeakMap,De=new WeakMap,Le=new WeakMap,Se=new WeakMap,Ne=new WeakMap,Re=new WeakMap,ze=new WeakMap,Oe=new WeakMap,Pe=new WeakMap;class je extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ce),(0,i.A)(this,be,(C(this),(0,d.createRef)())),(0,i.A)(this,we,D(this)),(0,i.A)(this,xe,(L(this),S(this))),(0,i.A)(this,Ie,(N(this),R(this))),(0,i.A)(this,We,(z(this),O(this))),(0,i.A)(this,Ee,(P(this),j(this))),(0,i.A)(this,Me,(H(this),_(this))),(0,i.A)(this,Be,(G(this),U(this))),(0,i.A)(this,Te,(K(this),e=>{(0,s.A)(Ce,this,Q).emit(e)})),(0,i.A)(this,De,Z(this)),(0,i.A)(this,Le,(X(this),e=>{(0,s.A)(Ce,this,F).emit(e)})),(0,i.A)(this,Se,q(this)),(0,i.A)(this,Ne,(ee(this),()=>{(0,s.A)(Ce,this,J).emit()})),(0,i.A)(this,Re,te(this)),(0,i.A)(this,ze,(re(this),()=>{(0,s.A)(Ce,this,ne).emit()})),(0,i.A)(this,Oe,ie(this)),(0,i.A)(this,Pe,(ce(this),(e,t)=>{(0,s.A)(Ce,this,ae).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,l.A)(we,this)}set cardTitle(e){(0,c.A)(we,this,e)}get isEdit(){return(0,l.A)(xe,this)}set isEdit(e){(0,c.A)(xe,this,e)}get layouts(){return(0,l.A)(Ie,this)}set layouts(e){(0,c.A)(Ie,this,e)}get toolbarBricks(){return(0,l.A)(We,this)}set toolbarBricks(e){(0,c.A)(We,this,e)}get componentList(){return(0,l.A)(Ee,this)}set componentList(e){(0,c.A)(Ee,this,e)}get showSettingButton(){return(0,l.A)(Me,this)}set showSettingButton(e){(0,c.A)(Me,this,e)}setLayouts(e){var t;null===(t=(0,l.A)(be,this).current)||void 0===t||t.setLayouts(e)}connectedCallback(){this.style.display||(this.style.display="block"),super.connectedCallback()}render(){return u().createElement(Ae,{cardTitle:this.cardTitle,layouts:this.layouts,toolbarBricks:this.toolbarBricks,componentList:this.componentList,showSettingButton:this.showSettingButton,isEdit:this.isEdit,onChange:(0,l.A)(Te,this),onSave:(0,l.A)(Le,this),onCancel:(0,l.A)(Ne,this),onActionClick:(0,l.A)(Pe,this),onSetting:(0,l.A)(ze,this),ref:(0,l.A)(be,this)})}}o=je,({e:[D,L,S,N,R,z,O,P,j,H,_,G,U,Q,$,K,Z,F,Y,X,q,J,V,ee,te,ne,oe,re,ie,ae,se,ce,C],c:[ke,T]}=(0,p.A)(o,[le("eo-workbench-layout-v2",{shadowOptions:!1})],[[pe(),1,"cardTitle"],[pe({type:Boolean}),1,"isEdit"],[pe({attribute:!1}),1,"layouts"],[pe({attribute:!1}),1,"toolbarBricks"],[pe({attribute:!1}),1,"componentList"],[pe({type:Boolean}),1,"showSettingButton"],[de({type:"change"}),1,"changeEvent",e=>(0,l.A)(Be,e),(e,t)=>(0,c.A)(Be,e,t)],[de({type:"save"}),1,"saveEvent",e=>(0,l.A)(De,e),(e,t)=>(0,c.A)(De,e,t)],[de({type:"cancel"}),1,"cancelEvent",e=>(0,l.A)(Se,e),(e,t)=>(0,c.A)(Se,e,t)],[de({type:"setting"}),1,"settingEvent",e=>(0,l.A)(Re,e),(e,t)=>(0,c.A)(Re,e,t)],[de({type:"action.click"}),1,"actionClickEvent",e=>(0,l.A)(Oe,e),(e,t)=>(0,c.A)(Oe,e,t)],[ue(),2,"setLayouts"]],0,(e=>Pe.has((0,a.A)(e))),g.ReactNextElement)),T()},30855:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},41640:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(72591),r=n.n(o),i=n(1740),a=n.n(i),s=n(88128),c=n.n(s),l=n(30855),p=n.n(l),d=n(93051),u=n.n(d),m=n(73656),h=n.n(m),y=n(61590),g={};g.styleTagTransform=h(),g.setAttributes=p(),g.insert=c().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},48669:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const o={cardWidth:2,showMoreIcon:!1,cardBorderStyle:"solid",cardTitleFontSize:16,cardBorderWidth:1,cardBorderRadius:6,cardTitleColor:"#262626",cardBorderColor:"#e8e8e8",cardBgType:"none"},r=e=>{var t;const n={"notice-card":{moreIconLink:"/announcement-management",showMoreIcon:!0,moreIconText:"更多"},"cmdb-object-collect-card":{moreIconLink:"/cmdb-model-management",showMoreIcon:!0,moreIconText:"更多"},"itsm-todos":{moreIconLink:"/itsc-workbench/workbench?activeKey=run",showMoreIcon:!0,moreIconText:"更多"},abnormalResourceInspectionResults:{moreIconLink:"/automatic-inspection/suites",showMoreIcon:!0,moreIconText:"更多"},abnormalSystemInspectionResults:{moreIconLink:"/automatic-inspection/system/list",showMoreIcon:!0,moreIconText:"更多"}};return{...o,...null!==(t=null==n?void 0:n[e])&&void 0!==t?t:{}}}},53373:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.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)o.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?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},55515:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(36758),r=n.n(o),i=n(40935),a=n.n(i)()(r());a.push([e.id,".componentItemIcon--znvUWa0v{font-size:16px;color:#262626;margin-top:2px}.componentItemWrapper--mLC8xy_9{display:flex;flex-direction:column}.componentItemTitle--zo3KGnys{font-weight:400;font-size:12px;color:#595959;line-height:18px;text-align:left;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.componentItemContent--zOG8IL31{background-color:#f3f4f7;cursor:move;display:flex;justify-content:center;align-items:center}.componentItemThumbnail--epDINDMl{background:#ffffff;border:4px solid #f3f4f7;width:96px;height:64px;border-radius:1px}",""]),a.locals={componentItemIcon:"componentItemIcon--znvUWa0v",componentItemWrapper:"componentItemWrapper--mLC8xy_9",componentItemTitle:"componentItemTitle--zo3KGnys",componentItemContent:"componentItemContent--zOG8IL31",componentItemThumbnail:"componentItemThumbnail--epDINDMl"};const s=a},59224:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},61590:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(36758),r=n.n(o),i=n(40935),a=n.n(i)()(r());a.push([e.id,".component--MVAoEnGN{height:100%}.editMask--nl6r17tE{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.deleteIcon--tNyE_ou4{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.deleteIcon--tNyE_ou4:hover{color:var(--color-error)}.deleteIcon--tNyE_ou4:active{color:var(--color-error-active)}.itemWrapper--_lUkkTz1{position:relative;width:100%}",""]),a.locals={component:"component--MVAoEnGN",editMask:"editMask--nl6r17tE",deleteIcon:"deleteIcon--tNyE_ou4",itemWrapper:"itemWrapper--_lUkkTz1"};const s=a},72465:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(72591),r=n.n(o),i=n(1740),a=n.n(i),s=n(88128),c=n.n(s),l=n(30855),p=n.n(l),d=n(93051),u=n.n(d),m=n(73656),h=n.n(m),y=n(89739),g={};g.styleTagTransform=h(),g.setAttributes=p(),g.insert=c().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},72591:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},a=[],s=0;s<e.length;s++){var c=e[s],l=o.base?c[0]+o.base:c[0],p=i[l]||0,d="".concat(l," ").concat(p);i[l]=p+1;var u=n(d),m={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==u)t[u].references++,t[u].updater(m);else{var h=r(m,o);o.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=o(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var c=o(e,r),l=0;l<i.length;l++){var p=n(i[l]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}i=c}}},73656:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},74635:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(72016);function r(e,t){(0,o.A)(e,t),t.add(e)}},78259:(e,t,n)=>{"use strict";var o=n(72591),r=n.n(o),i=n(1740),a=n.n(i),s=n(88128),c=n.n(s),l=n(30855),p=n.n(l),d=n(93051),u=n.n(d),m=n(73656),h=n.n(m),y=n(85689),g={};g.styleTagTransform=h(),g.setAttributes=p(),g.insert=c().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=u(),r()(y.A,g),y.A&&y.A.locals&&y.A.locals},79120:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var o=n(18769),r=n.n(o),i=n(8601);function a(e){const{component:t,onClick:n,onDragStart:o,onDragEnd:a}=e,{key:s,title:c,thumbnail:l}=t;return r().createElement("div",{className:i.A.componentItemWrapper,"data-testid":"draggable-component-menu-item"},r().createElement("div",{className:i.A.componentItemTitle},c),r().createElement("div",{className:i.A.componentItemContent,draggable:!0,onDragStart:e=>{e.dataTransfer.setData("text/plain",s),null==o||o()},onDragEnd:a,onClick:n,"data-testid":"draggable-component-menu-item-thumbnail"},r().createElement("img",{className:i.A.componentItemThumbnail,src:l,alt:c})))}},85689:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(36758),r=n.n(o),i=n(40935),a=n.n(i),s=n(87796),c=n(37564),l=a()(r());l.i(s.A),l.i(c.A),l.push([e.id,".react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const p=l},88128:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},89739:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(36758),r=n.n(o),i=n(40935),a=n.n(i)()(r());a.push([e.id,".gridLayoutWrapper--DIttynOM{display:flex;height:100%;position:relative;width:100%}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP{width:132px;padding:6px 12px 6px 16px;overflow-y:auto;box-shadow:1px 0 0 0 var(--palette-gray-4);background:var(--color-fill-bg-container-1);z-index:998;position:sticky;top:0}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentTitle--nKf9GEoj{font-size:16px;padding:6px 0;font-weight:500;color:#262626;line-height:22px;text-align:left}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB{margin-top:12px;width:100%;display:flex;flex-direction:column;gap:10px}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.gridLayoutWrapper--DIttynOM .componentWrapper--P8xsKOQP .componentList--s3XnAYsB eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR{flex:1;display:flex;flex-direction:column;align-items:center;width:100%;overflow:hidden}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj,.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{width:100%}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layout--kz28taJj{flex-grow:1}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .layoutEdit--FVqWXNWj{overflow-y:auto}.gridLayoutWrapper--DIttynOM .layoutWrapper--pk1t3UAR .actionsWrapper--vQro2Dyn{position:sticky;top:0;z-index:997;margin-left:1px;display:flex;gap:8px;justify-content:flex-end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}",""]),a.locals={gridLayoutWrapper:"gridLayoutWrapper--DIttynOM",componentWrapper:"componentWrapper--P8xsKOQP",componentTitle:"componentTitle--nKf9GEoj",componentList:"componentList--s3XnAYsB",layoutWrapper:"layoutWrapper--pk1t3UAR",layout:"layout--kz28taJj",actionsWrapper:"actionsWrapper--vQro2Dyn",layoutEdit:"layoutEdit--FVqWXNWj"};const s=a},93051:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}}]);
|
|
3
|
-
//# sourceMappingURL=eo-workbench-layout-v2.f1eda59a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[9326],{5536:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(12559);function i(e,t,r){return r((0,a.A)(e,t))}},16322:(e,t,r)=>{r.d(t,{A:()=>h});var a=r(36758),i=r.n(a),n=r(40935),o=r.n(n),s=r(20062),l=r.n(s),c=new URL(r(59224),r.b),d=o()(i()),p=l()(c);d.push([e.id,`.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(${p});background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,\n.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,\n.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}`,""]);const h=d.toString()},34566:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(36758),i=r.n(a),n=r(40935),o=r.n(n)()(i());o.push([e.id,'.react-grid-layout{position:relative;transition:height 200ms ease}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:0.2;transition-duration:100ms;z-index:2;-webkit-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item > .react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item > .react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,0.4);border-bottom:2px solid rgba(0,0,0,0.4)}.react-resizable-hide > .react-resizable-handle{display:none}.react-grid-item > .react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item > .react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item > .react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}',""]);const s=o.toString()},55319:(e,t,r)=>{r.r(t),r.d(t,{EoWorkbenchLayout:()=>ie,EoWorkbenchLayoutComponent:()=>ae});var a,i=r(74635),n=r(70918),o=r(26902),s=r(5536),l=r(86121),c=r(70829),d=r(62740),p=r(18769),h=r.n(p),g=r(7921),u=r(11280),m=r(49523),b=r(72736),w=r(69113),v=(r(76477),r(45833)),y=r(91116);let f,x,k,z,A,E,C,M,I,L,N,W,B,D,H,T,R,S,Z,P,j,G,_,Y,Q,F;const{defineElement:$,property:J,event:U,method:X}=(0,g.createDecorators)(),q=(0,u.wrapBrick)("eo-button"),O=(0,u.wrapBrick)("eo-dropdown-button",{onActionClick:"action.click"}),K=(0,u.wrapBrick)("eo-icon"),V=(0,u.wrapBrick)("eo-checkbox",{onChange:"change"}),ee=(0,m.unwrapProvider)("basic.show-dialog"),te=e=>null!=e&&e.includes(":")?e.split(":")[0]:e,{isAdmin:re}=w.auth.getAuth(),ae=(0,p.forwardRef)((function(e,t){let{cardTitle:r="卡片列表",layouts:a,componentList:i=[],isEdit:n,onChange:o,onSave:s,onCancel:l,onActionClick:c}=e;const d=(0,p.useMemo)((()=>(0,v.WidthProvider)(v.Responsive)),[]),g=(0,p.useRef)(null),u=(0,p.useRef)(null),m=(0,p.useRef)(null!=a?a:[]),[w,y]=(0,p.useState)(m.current),[f,x]=(0,p.useState)(3),[k,z]=(0,p.useState)(),A=(0,p.useCallback)((e=>{m.current=e,y(e)}),[]);(0,p.useImperativeHandle)(t,(()=>({setLayouts:A})));const E=(0,p.useCallback)((e=>{A(e),null==o||o(e)}),[o,A]),C=(0,p.useCallback)((e=>{if(!n)return;let t=!0;for(let a=0;a<e.length;a++){const{x:i,w:n,y:o,h:s,i:l,minH:c}=e[a];if(n>1&&i>0){t=!1;break}if(1===n&&i<2){const t=e.find((e=>e.i!==l&&1===e.w&&e.y===o&&i<2));var r;t&&(e[a].minH=null!==(r=e[a].minH)&&void 0!==r?r:s,e[a].h=Math.max(t.h,s))}else e[a].h=null!=c?c:s,e[a].minH=void 0}E(t?e:m.current.map((e=>{const{w:t,i:r}=e,a=`${te(r)}:${Math.random()}`;let i=e.x;return t>1&&i>0&&(i=0),{...e,x:i,i:a}})))}),[E,n]),M=(0,p.useCallback)((e=>{const t=e.detail.map((e=>e.value)),r=w.map((e=>te(e.i))),a=e.detail.filter((e=>!r.includes(e.key))).map((e=>({...e.position,x:e.w>1?0:2*w.length%f,y:1/0})));E(w.filter((e=>t.includes(te(e.i)))).concat(a))}),[w,E,f]),I=()=>{E([])},L=(0,p.useCallback)((()=>{null==s||s(w.map((e=>({...e,i:te(e.i)}))))}),[w,s]),N=(0,p.useCallback)(((e,t)=>{var r;e.stopPropagation(),E(null!==(r=w.filter((e=>te(e.i)!==t.key)))&&void 0!==r?r:[])}),[E,w]),W=e=>{e.preventDefault()},B=(0,p.useMemo)((()=>w.map((e=>{var t;const r=i.find((t=>t.key===te(e.i)));return r?h().createElement("div",{key:e.i,"data-grid":{...null!==(t=r.position)&&void 0!==t?t:{},...e},style:r.style,className:"drag-box"},n&&h().createElement("div",{className:"edit-mask",onMouseDown:W}),h().createElement(b.ReactUseBrick,{useBrick:r.useBrick}),n&&h().createElement(K,{icon:"delete",lib:"antd",className:"delete-icon",onClick:e=>N(e,r)})):null})).filter(Boolean)),[i,N,w,n]),D=(0,p.useMemo)((()=>i.map((e=>({...e,label:e.title,value:e.key})))),[i]),H=(0,p.useMemo)((()=>w.map((e=>te(e.i)))),[w]),T=(0,p.useCallback)((()=>{if(u&&n){var e,t;const{top:r}=null!==(e=null===(t=u.current)||void 0===t||null===(t=t.getClientRects())||void 0===t?void 0:t[0])&&void 0!==e?e:{};void 0!==r&&z({height:document.body.clientHeight-r,overflow:"scroll"})}}),[n]);return(0,p.useEffect)((()=>{if(n)return T(),A(a||[]),window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}}),[n,T,a,A]),h().createElement("div",{className:"grid-layout-wrapper",ref:g},n&&h().createElement("div",{className:"component-wrapper"},h().createElement("div",{className:"component-title"},r),h().createElement("div",{className:"component-list"},h().createElement(V,{options:D,value:H,onChange:M}),h().createElement("slot",{name:"toolbar"}))),h().createElement("div",{className:"layout-wrapper",ref:u,style:k},n&&h().createElement("div",{className:"actions-wrapper"},h().createElement(q,{type:"primary",onClick:L},"保存"),h().createElement(q,{onClick:()=>{null==l||l()}},"取消"),h().createElement(O,{btnText:"更多",icon:{lib:"antd",icon:"down"},actions:[...re?[{text:"另存为模板",event:"saveAsTemplate"}]:[],{text:"从模版加载",event:"loadFromTemplate"},{text:"清空所有",danger:!0,event:"clear"}],onActionClick:e=>{(e=>{const{event:t}=e;"clear"===t?ee({type:"confirm",title:"清空确认",content:"将清空所有卡片,从零开始编辑,该操作无法撤回。"}).then(I):null==c||c(e,(null!=w?w:[]).map((e=>({...e,i:te(e.i)}))))})(e.detail)},"data-testid":"edit-layout-actions"})),h().createElement(d,{className:"layout",draggableCancel:".delete-icon,.edit-actions,.ignore-item",breakpoints:{lg:1300,md:1024,sm:768},rowHeight:1,cols:{lg:3,md:3,sm:n?3:1},isResizable:!1,isDraggable:n,onDrag:(e,t,r)=>{var a;const i=null===(a=g.current)||void 0===a?void 0:a.querySelector(".react-grid-placeholder");i&&(r.w>1&&r.x>0?!i.classList.contains("forbidden")&&i.classList.add("forbidden"):i.classList.contains("forbidden")&&i.classList.remove("forbidden"))},onLayoutChange:C,onBreakpointChange:(e,t)=>{x(t)}},B)))}));let ie;var ne=new WeakMap,oe=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakMap,de=new WeakMap,pe=new WeakSet,he=new WeakMap,ge=new WeakMap,ue=new WeakMap,me=new WeakMap,be=new WeakMap,we=new WeakMap,ve=new WeakMap;class ye extends u.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,pe),(0,n.A)(this,ne,(f(this),(0,p.createRef)())),(0,n.A)(this,oe,k(this)),(0,n.A)(this,se,(z(this),A(this))),(0,n.A)(this,le,(E(this),C(this))),(0,n.A)(this,ce,(M(this),I(this))),(0,n.A)(this,de,(L(this),N(this))),(0,n.A)(this,he,(D(this),e=>{(0,s.A)(pe,this,W).emit(e)})),(0,n.A)(this,ge,H(this)),(0,n.A)(this,ue,(S(this),e=>{(0,s.A)(pe,this,T).emit(e)})),(0,n.A)(this,me,Z(this)),(0,n.A)(this,be,(G(this),()=>{(0,s.A)(pe,this,P).emit()})),(0,n.A)(this,we,_(this)),(0,n.A)(this,ve,(F(this),(e,t)=>{(0,s.A)(pe,this,Y).emit({action:e,layouts:t}),e.event&&this.dispatchEvent(new CustomEvent(e.event,{detail:t}))}))}get cardTitle(){return(0,c.A)(oe,this)}set cardTitle(e){(0,l.A)(oe,this,e)}get isEdit(){return(0,c.A)(se,this)}set isEdit(e){(0,l.A)(se,this,e)}get layouts(){return(0,c.A)(le,this)}set layouts(e){(0,l.A)(le,this,e)}get componentList(){return(0,c.A)(ce,this)}set componentList(e){(0,l.A)(ce,this,e)}setLayouts(e){var t;null===(t=(0,c.A)(ne,this).current)||void 0===t||t.setLayouts(e)}render(){return h().createElement(ae,{cardTitle:this.cardTitle,layouts:this.layouts,componentList:this.componentList,isEdit:this.isEdit,onChange:(0,c.A)(he,this),onSave:(0,c.A)(ue,this),onCancel:(0,c.A)(be,this),onActionClick:(0,c.A)(ve,this),ref:(0,c.A)(ne,this)})}}a=ye,({e:[k,z,A,E,C,M,I,L,N,W,B,D,H,T,R,S,Z,P,j,G,_,Y,Q,F,f],c:[ie,x]}=(0,d.A)(a,[$("eo-workbench-layout",{styleTexts:[y.A]})],[[J(),1,"cardTitle"],[J({type:Boolean}),1,"isEdit"],[J({attribute:!1}),1,"layouts"],[J({attribute:!1}),1,"componentList"],[U({type:"change"}),1,"changeEvent",e=>(0,c.A)(de,e),(e,t)=>(0,l.A)(de,e,t)],[U({type:"save"}),1,"saveEvent",e=>(0,c.A)(ge,e),(e,t)=>(0,l.A)(ge,e,t)],[U({type:"cancel"}),1,"cancelEvent",e=>(0,c.A)(me,e),(e,t)=>(0,l.A)(me,e,t)],[U({type:"action.click"}),1,"actionClickEvent",e=>(0,c.A)(we,e),(e,t)=>(0,l.A)(we,e,t)],[X(),2,"setLayouts"]],0,(e=>ve.has((0,o.A)(e))),u.ReactNextElement)),x()},59224:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},74635:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(72016);function i(e,t){(0,a.A)(e,t),t.add(e)}},91116:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(36758),i=r.n(a),n=r(40935),o=r.n(n),s=r(34566),l=r(16322),c=o()(i());c.i(s.A),c.i(l.A),c.push([e.id,":host{display:block}:host([hidden]){display:none}.grid-layout-wrapper{display:flex;height:100%;position:relative}.grid-layout-wrapper .component-wrapper{width:150px;padding:6px 12px;overflow-y:scroll;box-shadow:1px 0 0 0 var(--palette-gray-5);background:var(--color-fill-bg-container-1);z-index:999;position:sticky;top:0}.grid-layout-wrapper .component-wrapper .component-title{font-size:16px;padding:6px 0;font-weight:500}.grid-layout-wrapper .component-wrapper .component-list{margin-top:6px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-wrapper){display:flex;flex-wrap:wrap;gap:8px}.grid-layout-wrapper .component-wrapper .component-list eo-checkbox::part(checkbox-option){margin-left:0;width:100%;background:none}.grid-layout-wrapper .layout-wrapper{flex:1}.grid-layout-wrapper .layout-wrapper .layout{max-width:1300px;margin:0 auto}.grid-layout-wrapper .layout-wrapper .actions-wrapper{position:sticky;top:0;z-index:999;margin-left:1px;display:flex;gap:8px;justify-content:flex-end;background:var(--color-fill-bg-container-1);padding:8px 12px;box-shadow:0 1px 1px 0 var(--palette-gray-5)}.grid-layout-wrapper .layout-wrapper .edit-mask{position:absolute;left:0;right:0;top:45px;bottom:0;z-index:10}.grid-layout-wrapper .layout-wrapper .delete-icon{position:absolute;right:15px;top:15px;cursor:pointer;font-size:16px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;background:var(--color-fill-bg-container-1);color:var(--color-normal-text)}.grid-layout-wrapper .layout-wrapper .delete-icon:hover{color:var(--color-error)}.grid-layout-wrapper .layout-wrapper .delete-icon:active{color:var(--color-error-active)}.react-grid-item.react-grid-placeholder{background-color:#ddd}.react-grid-item.react-draggable-dragging{pointer-events:none}.react-grid-item.react-grid-placeholder.forbidden{background-color:red}",""]);const d=c.toString()}}]);
|
|
2
|
-
//# sourceMappingURL=eo-workbench-layout.4414c0db.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|