UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 2.63 kB
var l=(...d)=>d.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?l(...t):typeof t=="object"?Object.keys(t).map((i,s)=>t[s]||t[i]&&i||null).filter(i=>i!==null).join(" "):t).filter(t=>!!t).join(" ");import{jsx as e}from"react/jsx-runtime";var c="k-spreadsheet-column-header",m=[],p={},u={configureSelection:{A:"partial"}},n=d=>{let{configureSelection:t=u.configureSelection,...i}=d,s=[e("div",{style:{position:"absolute",left:"0px",width:"100px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"A"})}),e("div",{style:{position:"absolute",left:"100px",width:"215px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"B"})}),e("div",{style:{position:"absolute",left:"315px",width:"115px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"C"})}),e("div",{style:{position:"absolute",left:"430px",width:"115px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"D"})}),e("div",{style:{position:"absolute",left:"545px",width:"115px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"E"})}),e("div",{style:{position:"absolute",left:"660px",width:"155px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"F"})}),e("div",{style:{position:"absolute",left:"815px",width:"64px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"G"})}),e("div",{style:{position:"absolute",left:"879px",width:"64px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"H"})}),e("div",{style:{position:"absolute",left:"943px",width:"64px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"I"})}),e("div",{style:{position:"absolute",left:"1007px",width:"64px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"J"})}),e("div",{style:{position:"absolute",left:"1071px",width:"64px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"K"})}),e("div",{style:{position:"absolute",left:"1135px",width:"64px",height:"30px"},children:e("div",{className:"k-vertical-align-center",children:"L"})})],v=t?((x,a)=>x.map((o,h)=>{let r=o.props.children.props.children;return e("div",{style:o.props.style,className:l({"k-selection-partial":a[r]==="partial","k-selection-full":a[r]==="full","k-selection-none":!a[r]}),children:o.props.children},h)}))(s,t):s;return e("div",{...i,className:l(c,d.className),children:v})};n.states=m;n.options=p;n.className=c;n.defaultOptions=u;var M=n;export{c as SPREADSHEETCOLUMNHEADER_CLASSNAME,n as SpreadsheetColumnHeader,M as default};