forstok-ui-lib 8.3.20 → 8.3.22
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/table/index.tsx +141 -80
package/dist/index.mjs
CHANGED
|
@@ -4990,7 +4990,7 @@ function L(e,t){if(!1===e||null==e)throw new Error(t)}function j(e,t){if(!e){"un
|
|
|
4990
4990
|
}
|
|
4991
4991
|
`}
|
|
4992
4992
|
`}
|
|
4993
|
-
`,Fl=`table_${(new Date).getTime()}`,fl=i=>{const{children:r,$mode:n,$name:a=Fl,$template:o,isForceUpdate:d,setForceUpdate:C}=i;l((()=>{d&&C&&C(!1)}),[d,C]);const c=e=>r.filter((t=>s(t)?t.props["aria-label"]===e:null)),p=e=>{let t=[];if(e.length)if(e[0].props.children.length>1){let i=[];e[0].props.children.forEach((e=>{(Array.isArray(e)?e:[].concat(e)).forEach((e=>{i.push(e)}))})),t=i}else t=Array.isArray(e[0].props.children)?e[0].props.children:[].concat(e[0].props.children);return t},h=c("head"),g=h&&s(h[0])?h[0].props.children.filter((e=>null!==e)).map(((t,i)=>e(dl,Object.assign({role:"columnheader"},t.props.style&&{style:t.props.style},t.props.className&&{className:t.props.className},t.props,{children:t.props.children}),i))):null,x=c("body"),m=x.length?p(x):null,u=m?m.map(((t,i)=>{var r,n;return e(Cl,Object.assign({role:"row"},(null===(r=t.props)||void 0===r?void 0:r.id)&&{id:t.props.id},(null===(n=t.props)||void 0===n?void 0:n.className)&&{className:t.props.className},{children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(sl,Object.assign({},t.props,{children:t.props.children}),i)))}),i)})):null,v=c("foot"),w=v.length?p(v):null,F=w?w.map(((t,i)=>e(pl,{role:"row",children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(hl,Object.assign({},t.props,{children:t.props.children}),i)))},i))):null,f=c("boldFoot"),y=f.length?p(f):null,A=y?y.map(((t,i)=>e(gl,{role:"row",children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(xl,Object.assign({},t.props,{children:t.props.children}),i)))},i))):null,D=c("final"),b=D.length?p(D):null,E=b?b.map(((t,i)=>e(ml,{role:"row",children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(ul,Object.assign({},t.props,{children:t.props.children}),i)))},i))):null;return t(wl,{$mode:n,$name:a,$template:o,role:"table",children:[e(ll,{role:"rowheader",children:g}),u,F&&F,A&&A,E&&E]})},yl=n`
|
|
4993
|
+
`,Fl=`table_${(new Date).getTime()}`,fl=i=>{const{children:r,$mode:n,$name:a=Fl,$template:o,isForceUpdate:d,setForceUpdate:C}=i;l((()=>{d&&C&&C(!1)}),[d,C]);const c=e=>r.filter((t=>s(t)?t.props["aria-label"]===e:null)),p=e=>{let t=[];if(e.length)if(e[0].props.children.length>1){let i=[];e[0].props.children.forEach((e=>{(Array.isArray(e)?e:[].concat(e)).forEach((e=>{i.push(e)}))})),t=i}else t=Array.isArray(e[0].props.children)?e[0].props.children:[].concat(e[0].props.children);return t},h=c("head"),g=h&&s(h[0])?h[0].props.children.filter((e=>null!==e)).map(((t,i)=>e(dl,Object.assign({role:"columnheader"},t.props.style&&{style:t.props.style},t.props.className&&{className:t.props.className},t.props,{children:t.props.children}),i))):null,x=c("body"),m=x.length?p(x):null,u=m?m.map(((t,i)=>{var r,n;return e(Cl,Object.assign({role:"row"},(null===(r=t.props)||void 0===r?void 0:r.id)&&{id:t.props.id},t.props.style&&{style:t.props.style},(null===(n=t.props)||void 0===n?void 0:n.className)&&{className:t.props.className},t.props,{children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(sl,Object.assign({},t.props,{children:t.props.children}),i)))}),i)})):null,v=c("foot"),w=v.length?p(v):null,F=w?w.map(((t,i)=>e(pl,{role:"row",children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(hl,Object.assign({},t.props,{children:t.props.children}),i)))},i))):null,f=c("boldFoot"),y=f.length?p(f):null,A=y?y.map(((t,i)=>e(gl,{role:"row",children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(xl,Object.assign({},t.props,{children:t.props.children}),i)))},i))):null,D=c("final"),b=D.length?p(D):null,E=b?b.map(((t,i)=>e(ml,{role:"row",children:t.props.children.filter((e=>null!==e)).map(((t,i)=>e(ul,Object.assign({},t.props,{children:t.props.children}),i)))},i))):null;return t(wl,{$mode:n,$name:a,$template:o,role:"table",children:[e(ll,{role:"rowheader",children:g}),u,F&&F,A&&A,E&&E]})},yl=n`
|
|
4994
4994
|
display: grid;
|
|
4995
4995
|
grid-row-gap: 12px;
|
|
4996
4996
|
grid-column-gap: 16px;
|