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=(...s)=>s.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?l(...t):typeof t=="object"?Object.keys(t).map((i,d)=>t[d]||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=[],g={},v={configureSelection:{A:"partial"}},a=s=>{let{configureSelection:t=v.configureSelection,...i}=s,d=[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"})})],x=t?((h,n)=>h.map((r,u)=>{let o=r.props.children.props.children;return e("div",{style:r.props.style,className:l({"k-selection-partial":n[o]==="partial","k-selection-full":n[o]==="full","k-selection-none":!n[o]}),children:r.props.children},u)}))(d,t):d;return e("div",{...i,className:l(c,s.className),children:x})};a.states=m;a.options=g;a.className=c;a.defaultOptions=v;var M=a;export{c as SPREADSHEETCOLUMNHEADER_CLASSNAME,a as SpreadsheetColumnHeader,M as default};