UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 32.7 kB
var ts=Object.create;var Je=Object.defineProperty;var os=Object.getOwnPropertyDescriptor;var ss=Object.getOwnPropertyNames;var is=Object.getPrototypeOf,ns=Object.prototype.hasOwnProperty;var as=(e,t)=>{for(var o in t)Je(e,o,{get:t[o],enumerable:!0})},$t=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ss(t))!ns.call(e,r)&&r!==o&&Je(e,r,{get:()=>t[r],enumerable:!(n=os(t,r))||n.enumerable});return e};var rs=(e,t,o)=>(o=e!=null?ts(is(e)):{},$t(t||!e||!e.__esModule?Je(o,"default",{value:e,enumerable:!0}):o,e)),ls=e=>$t(Je({},"__esModule",{value:!0}),e);var cn={};as(cn,{FILEMANAGERLISTVIEW_CLASSNAME:()=>Dt,FileManagerListView:()=>Ee,default:()=>dn});module.exports=ls(cn);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var I=(e,t)=>i({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),k=(e,t)=>i({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};var Pe=require("react/jsx-runtime"),it="k-icon k-font-icon",ps=[],ms={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ds={},Oe=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:l,...p}=e;return n?(0,Pe.jsx)("span",{...p,className:i(e.className,it,I(it,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):(0,Pe.jsx)(Pe.Fragment,{})};Oe.states=ps;Oe.options=ms;Oe.className=it;Oe.defaultOptions=ds;var _t=Oe;var se=require("react/jsx-runtime"),nt="k-icon k-svg-icon",cs=[],us={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ft={viewBox:"0 0 24 24"},Ke=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:l=Ft.viewBox,icon:p,...c}=e;if(!p)return(0,se.jsx)(se.Fragment,{});p==="none"&&{...c,className:i(e.className,nt,"k-none")};let m=typeof p=="object"&&p.name&&p.name;return(0,se.jsx)("span",{...c,className:i(e.className,nt,I("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:(0,se.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};Ke.states=cs;Ke.options=us;Ke.className=nt;Ke.defaultOptions=Ft;var at=Ke;var Xt=rs(require("@progress/kendo-svg-icons")),U=require("react/jsx-runtime"),fs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),xs=[],hs={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},rt={viewBox:"0 0 24 24",type:"svg"},T=e=>{let{size:t,themeColor:o,icon:n,type:r=rt.type,rotate:l,flip:p,viewBox:c=rt.viewBox,...m}=e;if(!n)return(0,U.jsx)(U.Fragment,{});if(r==="svg"){if(n==="none")return(0,U.jsx)(at,{...m,icon:n,size:t});let d=fs(`${n}-icon`);return Xt[d]?(0,U.jsx)(at,{...m,icon:Xt[d],size:t,themeColor:o,rotate:l,flip:p,viewBox:c}):(0,U.jsx)(U.Fragment,{})}return(0,U.jsx)(_t,{...m,icon:n,size:t,themeColor:o,rotate:l,flip:p})};T.states=xs;T.options=hs;T.defaultOptions=rt;var D=require("react/jsx-runtime"),qe="k-button",Ls=[s.hover,s.focus,s.active,s.selected,s.disabled],bs={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},ie={size:a.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},C=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:n=ie.fillMode,themeColor:r=ie.themeColor,showArrow:l=ie.showArrow,arrowIconName:p=ie.arrowIconName,hover:c,focus:m,active:d,selected:h,disabled:b,icon:N,text:L,iconClassName:w,...M}=e,S=N!==void 0,A=e.children!==void 0;return(0,D.jsxs)("button",{...M,className:i(e.className,qe,I(qe,{size:t,rounded:o,fillMode:n,themeColor:r}),k(qe,{hover:c,focus:m,active:d,disabled:b,selected:h}),{"k-icon-button":!L&&!A&&S}),children:[N&&(0,D.jsx)(T,{className:i(w,"k-button-icon"),icon:N}),L?(0,D.jsxs)(D.Fragment,{children:[L&&(0,D.jsx)("span",{className:"k-button-text",children:L}),e.children]}):e.children&&(0,D.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,D.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,D.jsx)(T,{icon:p})})]})};C.states=Ls;C.options=bs;C.className=qe;C.defaultOptions=ie;var Ns=require("react/jsx-runtime");var vs=require("react/jsx-runtime");var gs=require("react/jsx-runtime");var Jt=require("react/jsx-runtime"),Ue="k-input",Ss=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Is={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},We={size:a.medium,rounded:a.medium,fillMode:x.solid},z=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:p,readonly:c,size:m=We.size,rounded:d=We.rounded,fillMode:h=We.fillMode,...b}=e;return(0,Jt.jsx)("span",{...b,className:i(e.className,Ue,I(Ue,{size:m,rounded:d,fillMode:h}),k(Ue,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:p,readonly:c}))})};z.states=Ss;z.options=Is;z.className=Ue;z.defaultOptions=We;var qt=require("react/jsx-runtime"),Qe="k-picker",ks=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ys={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ye={size:a.medium,rounded:f.medium,fillMode:x.solid},xe=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:p,readonly:c,size:m=Ye.size,rounded:d=Ye.rounded,fillMode:h=Ye.fillMode,...b}=e;return(0,qt.jsx)("span",{...b,className:i(e.className,Qe,I(Qe,{size:m,rounded:d,fillMode:h}),k(Qe,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:p,readonly:c})),children:e.children})};xe.states=ks;xe.options=ys;xe.className=Qe;xe.defaultOptions=Ye;var he=require("react/jsx-runtime"),Ut="k-clear-value",Ms=[s.disabled,s.loading,s.readonly],As={},W=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?(0,he.jsx)(he.Fragment,{}):(0,he.jsx)("span",{className:i(e.className,Ut),children:(0,he.jsx)(T,{icon:"x"})})};W.states=Ms;W.options=As;W.className=Ut;var Wt=require("react/jsx-runtime"),lt="k-input-inner",Cs=[],Ts={},Ze={type:"text",autocomplete:"off",value:"",placeholder:""},Q=e=>{let{value:t=Ze.value,type:o=Ze.type,placeholder:n=Ze.placeholder,autocomplete:r=Ze.autocomplete,...l}=e;return(0,Wt.jsx)("input",{...l,type:o,className:i(e.className,lt,I(lt,e)),placeholder:n,autoComplete:r,defaultValue:t})};Q.states=Cs;Q.options=Ts;Q.className=lt;var He=require("react/jsx-runtime"),pt="k-input-inner",zs=[],ws={},Re=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:l,...p}=e;return(0,He.jsxs)("span",{...p,className:i(e.className,pt,I(pt,e)),children:[r,!r&&l&&(0,He.jsx)(T,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&(0,He.jsx)("span",{className:"k-input-value-text",children:t})]})};Re.states=zs;Re.options=ws;Re.className=pt;var Yt=require("react/jsx-runtime"),mt="k-input-inner",Es=[],Ps={},Qt={value:"",placeholder:""},dt=e=>{let{value:t=Qt.value,placeholder:o=Qt.placeholder,rows:n,...r}=e;return(0,Yt.jsx)("textarea",{...r,className:i(e.className,mt,I(mt,e)),placeholder:o,rows:n,defaultValue:t})};dt.states=Es;dt.options=Ps;dt.className=mt;var Be=require("react/jsx-runtime"),Zt="k-input-loading-icon",Os=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Be.jsx)(Be.Fragment,{}):(0,Be.jsx)("span",{className:i(e.className,Zt,"k-icon k-i-loading")})};F.states=Os;F.className=Zt;var Ve=require("react/jsx-runtime"),jt="k-input-validation-icon",Ks=[s.valid,s.invalid,s.disabled,s.loading],Hs={},$=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,l=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?(0,Ve.jsx)(Ve.Fragment,{}):(0,Ve.jsx)(T,{className:i(jt),icon:l})};$.states=Ks;$.options=Hs;$.className=jt;var Ge=require("react/jsx-runtime"),Rs="k-input-prefix",Bs={direction:"horizontal"},Le=e=>{let{direction:t=Bs.direction,...o}=e;return e.children?(0,Ge.jsx)("span",{...o,className:i(Rs,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Ge.jsx)(Ge.Fragment,{})};var De=require("react/jsx-runtime"),Vs="k-input-suffix",Gs={direction:"horizontal"},be=e=>{let{direction:t=Gs.direction,...o}=e;return e.children?(0,De.jsx)("span",{...o,className:i(Vs,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,De.jsx)(De.Fragment,{})};var Ds=require("react/jsx-runtime");var $s=require("react/jsx-runtime");var to=require("react/jsx-runtime"),eo="k-input-separator",_s={direction:"vertical"},Ne=e=>{let{direction:t=_s.direction,...o}=e;return(0,to.jsx)("span",{...o,className:i(eo,e.className,{[`${eo}-${t}`]:t})})};var ct=require("react/jsx-runtime"),oo="k-animation-container",Fs=[],Xs={},so={positionMode:"absolute"},Z=e=>{let{positionMode:t=so.positionMode,animationStyle:o,offset:n,...r}=e;return(0,ct.jsx)("div",{...r,style:{...n,...e.style},className:i(e.className,oo,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,ct.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};Z.states=Fs;Z.options=Xs;Z.className=oo;Z.defaultOptions=so;var ut=require("react/jsx-runtime"),io="k-popup",Js=[],qs={},no={positionMode:"absolute"},ve=e=>{let{offset:t,positionMode:o=no.positionMode,animationStyle:n,...r}=e;return(0,ut.jsx)(Z,{positionMode:o,offset:t,animationStyle:n,children:(0,ut.jsx)("div",{...r,className:i(e.className,io),children:e.children})})};ve.states=Js;ve.options=qs;ve.className=io;ve.defaultOptions=no;var ao=require("react/jsx-runtime"),je="k-actions",Us=[],Ws={},ft={alignment:"start",orientation:"horizontal"},ge=e=>{let{alignment:t=ft.alignment,orientation:o=ft.orientation,...n}=e;return(0,ao.jsx)("div",{...n,className:i(je,{[`${je}-${t}`]:t,[`${je}-${o}`]:o},e.className),children:e.children})};ge.states=Us;ge.options=Ws;ge.className=je;ge.defaultOptions=ft;var lo=require("react/jsx-runtime"),Qs="k-actionsheet-footer",ro={alignment:"stretched",orientation:"horizontal"},xt=e=>{let{alignment:t=ro.alignment,orientation:o=ro.orientation,template:n,as:r=n?"div":ge,...l}=e;return(0,lo.jsx)(r,{...l,...!n&&{alignment:t,orientation:o},className:i(e.className,Qs),children:e.children})};var j=require("react/jsx-runtime"),po="k-searchbox",Ys=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Zs={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ht={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},Y=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:l,hover:p,focus:c,valid:m,invalid:d,required:h,loading:b,disabled:N,showIcon:L=ht.showIcon,icon:w=ht.icon,...M}=e;return(0,j.jsxs)(z,{...M,size:n,rounded:r,fillMode:l,hover:p,focus:c,valid:m,invalid:d,required:h,loading:b,disabled:N,className:i(e.className,po),children:[L&&(0,j.jsx)(T,{className:"k-input-icon",icon:w}),(0,j.jsx)(Q,{placeholder:o,value:t}),(0,j.jsx)(F,{...e}),(0,j.jsx)($,{...e}),(0,j.jsx)(W,{...e})]})};Y.states=Ys;Y.options=Zs;Y.className=po;Y.defaultOptions=ht;var js=require("react/jsx-runtime");var P=require("react/jsx-runtime"),mo="k-textbox",ei=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ti={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ne={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Se=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:n=ne.fillMode,separators:r=ne.separators,showClearButton:l=ne.showClearButton,showValidationIcon:p=ne.showValidationIcon,prefix:c,suffix:m,type:d,value:h,placeholder:b,hover:N,focus:L,valid:w,invalid:M,required:S,loading:A,disabled:V,readonly:q,..._}=e;return(0,P.jsxs)(z,{..._,size:t,rounded:o,fillMode:n,hover:N,focus:L,valid:w,invalid:M,required:S,loading:A,disabled:V,readonly:q,className:i(e.className,mo),children:[c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Le,{children:c}),r&&(0,P.jsx)(Ne,{})]}),(0,P.jsx)(Q,{placeholder:b,value:h,type:d}),p&&(0,P.jsx)($,{valid:w,invalid:M,loading:A,disabled:V}),(0,P.jsx)(F,{loading:A,disabled:V}),l&&(0,P.jsx)(W,{loading:A,disabled:V,readonly:q,value:h}),m&&(0,P.jsxs)(P.Fragment,{children:[r&&(0,P.jsx)(Ne,{}),(0,P.jsx)(be,{children:m})]})]})};Se.states=ei;Se.options=ti;Se.className=mo;Se.defaultOptions=ne;var oi=require("react/jsx-runtime");var uo=require("react/jsx-runtime");var fo=require("react/jsx-runtime");var B=require("react/jsx-runtime"),xo="k-actionsheet-titlebar",si={},ee=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:l,input:p,inputValue:c,inputPlaceholder:m,adaptive:d,children:h,...b}=e;return(0,B.jsxs)("div",{...b,className:i(e.className,xo),children:[(0,B.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[n&&(0,B.jsx)("div",{className:"k-actionsheet-actions",children:n}),!h&&(0,B.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,B.jsx)("div",{className:"k-text-center",children:t}),o&&(0,B.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&(0,B.jsx)("div",{className:"k-actionsheet-title",children:h}),r&&(0,B.jsx)("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&(0,B.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,B.jsx)(Se,{value:c,placeholder:m,size:d?"large":"medium"}):(0,B.jsx)(Y,{placeholder:"Filter",size:d?"large":"medium"})})]})};ee.className=xo;ee.defaultOptions=si;var Ie=require("react/jsx-runtime"),Lt="k-actionsheet-view",ii=[],ni={},ai={},ke=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:l,...p}=e,c=(r==null?void 0:r.type)===ee&&(0,Ie.jsx)(ee,{adaptive:t,...r==null?void 0:r.props}),m=(l==null?void 0:l.type)===xt&&(0,Ie.jsx)(xt,{...l==null?void 0:l.props});return(0,Ie.jsxs)("div",{...p,className:i(e.className,Lt,{[`${Lt}-animated`]:o}),children:[c,(0,Ie.jsx)("div",{className:"k-actionsheet-content",children:n}),m]})};ke.states=ii;ke.options=ni;ke.className=Lt;ke.defaultOptions=ai;var ae=require("react/jsx-runtime"),ho="k-actionsheet",ri=[],li={},$e={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=$e.side,fullscreen:o=$e.fullscreen,adaptive:n=$e.adaptive,overlay:r=$e.overlay,template:l,children:p,header:c,footer:m,...d}=e;return(0,ae.jsxs)("div",{className:"k-actionsheet-container",children:[r&&(0,ae.jsx)("div",{className:"k-overlay"}),(0,ae.jsx)(Z,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:(0,ae.jsx)("div",{...d,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||(0,ae.jsx)(ke,{header:c,footer:m,adaptive:n,...e,children:p})})})]})};re.states=ri;re.options=li;re.className=ho;re.defaultOptions=$e;var pi=require("react/jsx-runtime");var G=require("react/jsx-runtime"),bt="k-actionsheet-item",mi=[s.hover,s.focus,s.selected,s.disabled],Nt=e=>{let{iconName:t,text:o,description:n,hover:r,focus:l,selected:p,disabled:c,...m}=e;return(0,G.jsxs)("span",{...m,className:i(e.className,bt,k(bt,{hover:r,focus:l,selected:p,disabled:c})),children:[!e.children&&(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,G.jsx)("span",{className:"k-icon-wrap",children:(0,G.jsx)(T,{className:"k-actionsheet-item-icon",icon:t})}),(0,G.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,G.jsx)("span",{className:"k-actionsheet-item-title",children:o}),n&&(0,G.jsx)("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Nt.states=mi;Nt.className=bt;var Lo=require("react/jsx-runtime");var di=require("react/jsx-runtime");var ci=require("react/jsx-runtime");var ui=require("react/jsx-runtime");var No=require("react/jsx-runtime"),fi="k-no-data",_e=e=>(0,No.jsx)("span",{className:i(fi,e.className),children:e.children});var X=require("react/jsx-runtime"),vt="k-list",xi=[],hi={size:[a.small,a.medium,a.large]},vo={size:a.medium},O=e=>{let{size:t=vo.size,virtualization:o,children:n,optionLabel:r,customValue:l,screenReaders:p,...c}=e,m,d,h,b,N=[];return n?n.map((L,w)=>{L.type===K?(L.props.root===!0?(m=L.props.label,L.props.children.map((M,S)=>{N.push((0,X.jsx)(v,{...M.props},`optChild-${S}-${new Date().getTime()}`))})):L.props.children.forEach((M,S)=>{let A="";S===0&&(A=L.props.label),N.push((0,X.jsx)(v,{className:S===0?"k-first":"",...M.props,groupLabel:A},`groupLabel-${S}-${new Date().getTime()}`))}),d=(0,X.jsx)(K,{label:m,virtualization:o,children:N})):L.type===v&&(N.push((0,X.jsx)(v,{...L.props},`${L.type}-${w}`)),h=(0,X.jsx)(ye,{virtualization:o,children:N}),p&&(b=(0,X.jsxs)(_e,{className:"k-sr-only",children:[N.length," items found."]})))}):b=(0,X.jsx)(_e,{children:"No data found."}),(0,X.jsxs)("div",{...c,className:i(e.className,vt,I(vt,{size:t}),{"k-virtual-list":o}),children:[r,l,d,h,b]})};O.states=xi;O.options=hi;O.className=vt;O.defaultOptions=vo;var J=require("react/jsx-runtime"),gt="k-list",Li=[],bi={size:[a.small,a.medium,a.large]},go={size:a.medium},le=e=>{let{size:t=go.size,virtualization:o,children:n,...r}=e,l,p,c,m=[];return n?n.map((d,h)=>{d.type===K?(d.props.root===!0?(l=d.props.label,d.props.children.map((b,N)=>{m.push((0,J.jsx)(v,{...b.props},`optChild-${N}-${new Date().getTime()}`))})):(m.push((0,J.jsx)(So,{...d.props,children:d.props.label},`listChild-${h}`)),d.props.children.map((b,N)=>{m.push((0,J.jsx)(v,{...b.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=(0,J.jsx)(K,{label:l,virtualization:o,children:m})):d.type===v&&(m.push((0,J.jsx)(v,{...d.props},`${d.type}-${h}`)),c=(0,J.jsx)(ye,{virtualization:o,children:m}))}):c=(0,J.jsx)(_e,{children:"No data found."}),(0,J.jsxs)("div",{...r,className:i(e.className,gt,I(gt,{size:t}),{"k-virtual-list":o}),children:[p,c]})};le.states=Li;le.options=bi;le.className=gt;le.defaultOptions=go;var It=require("react/jsx-runtime"),et="k-checkbox",Ni=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],vi={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full]},St={size:a.medium,rounded:f.medium},te=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:l,disabled:p,invalid:c,valid:m,required:d,size:h=St.size,rounded:b=St.rounded,...N}=e;return(0,It.jsx)("span",{className:"k-checkbox-wrap",children:(0,It.jsx)("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:d,className:i(e.className,et,I(et,{size:h,rounded:b}),k(et,{hover:r,focus:l,disabled:p,invalid:c,valid:m,indeterminate:n,checked:o}))})})};te.states=Ni;te.options=vi;te.className=et;te.defaultOptions=St;var yo=require("react/jsx-runtime"),Io="k-checkbox-list",gi=[],Si={},ko={layout:"vertical"},Me=e=>{let{layout:t=ko.layout,...o}=e;return(0,yo.jsx)("ul",{...o,className:i(e.className,Io,{[`k-list-${t}`]:t}),children:e.children})};Me.states=gi;Me.options=Si;Me.className=Io;Me.defaultOptions=ko;var Ao=require("react/jsx-runtime"),Mo="k-checkbox-list-item",Ii=[],ki={},yi={},Ae=e=>{let{...t}=e;return(0,Ao.jsx)("li",{...t,className:i(e.className,Mo),children:e.children})};Ae.states=Ii;Ae.options=ki;Ae.className=Mo;Ae.defaultOptions=yi;var yt=require("react/jsx-runtime");var Mt=require("react/jsx-runtime");var At=require("react/jsx-runtime");var Ct=require("react/jsx-runtime");var Mi=require("react/jsx-runtime");var Ai=require("react/jsx-runtime");var pe=require("react/jsx-runtime"),Tt="k-list-item",Ci=[s.hover,s.focus,s.selected,s.disabled],Ti={},zi={},v=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:l,showCheckbox:p,checked:c,hover:m,focus:d,selected:h,disabled:b,...N}=e,L=t||e.children;return(0,pe.jsxs)("li",{...N,className:i(e.className,n?"k-list-group-item":Tt,k(Tt,{hover:m,focus:d,disabled:b,selected:h})),children:[p&&(0,pe.jsx)(te,{checked:c}),r&&(0,pe.jsx)(T,{icon:l}),(0,pe.jsx)("span",{className:"k-list-item-text",children:L}),o&&o!==""&&(0,pe.jsx)("div",{className:"k-list-item-group-label",children:o})]})};v.states=Ci;v.options=Ti;v.className=Tt;v.defaultOptions=zi;var Ce=require("react/jsx-runtime"),wi="k-list-content",ye=e=>{let{virtualization:t,...o}=e;return(0,Ce.jsxs)("div",{...o,className:i(wi,e.className),children:[(0,Ce.jsx)("ul",{className:i("k-list-ul"),children:e.children}),t&&(0,Ce.jsx)("div",{className:"k-height-container",children:(0,Ce.jsx)("div",{})})]})};var zt=require("react/jsx-runtime"),Ei="k-list-group-sticky-header",Co=e=>(0,zt.jsx)("div",{className:i(Ei,e.className),children:(0,zt.jsx)("div",{className:"k-list-header-text",children:e.children})});var me=require("react/jsx-runtime"),K=e=>{let{virtualization:t,label:o}=e;return(0,me.jsxs)(me.Fragment,{children:[o&&(0,me.jsx)(Co,{children:o}),e.children&&(0,me.jsx)(ye,{virtualization:t,children:e.children})]})};var wt=require("react/jsx-runtime"),Pi="k-list-group-item",So=e=>(0,wt.jsx)("li",{className:i(Pi,e.className),children:(0,wt.jsx)("span",{className:"k-list-item-text",children:e.children})});var To=require("react/jsx-runtime"),Et="k-list-optionlabel",Oi=[s.hover,s.focus,s.selected,s.disabled],Ki={},Hi={},tt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...p}=e;return(0,To.jsx)("div",{...p,className:i(Et,k(Et,{hover:o,focus:n,selected:r,disabled:l})),children:t})};tt.states=Oi;tt.options=Ki;tt.className=Et;tt.defaultOptions=Hi;var zo=require("react/jsx-runtime"),Pt="k-list-custom-value",Ri=[s.hover,s.focus,s.selected,s.disabled],Bi={},Vi={},ot=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...p}=e;return(0,zo.jsx)("div",{...p,className:i(Pt,k(Pt,{hover:o,focus:n,selected:r,disabled:l})),children:t})};ot.states=Ri;ot.options=Bi;ot.className=Pt;ot.defaultOptions=Vi;var Gi=require("react/jsx-runtime");var Di=require("react/jsx-runtime");var wo=require("react/jsx-runtime");var Eo=require("react/jsx-runtime");var $i=require("react/jsx-runtime");var Po=require("react/jsx-runtime");var Oo=require("react/jsx-runtime");var y=require("react/jsx-runtime"),Ko="k-dropdownlist",_i=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Fi={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Te={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:f.medium,fillMode:x.solid},de=e=>{let{size:t=Te.size,rounded:o=Te.rounded,fillMode:n=Te.fillMode,arrowIconName:r=Te.arrowIconName,showValue:l=Te.showValue,valueIconName:p,prefix:c,suffix:m,value:d,placeholder:h,hover:b,focus:N,valid:L,invalid:w,required:M,loading:S,disabled:A,readonly:V,popup:q,opened:_,adaptive:Wo,adaptiveSettings:Qo,adaptiveTitle:Yo,adaptiveSubtitle:Zo,adaptiveFilter:jo,...es}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(xe,{...es,size:t,rounded:o,fillMode:n,hover:b,focus:N,valid:L,invalid:w,required:M,loading:S,disabled:A,readonly:V,className:i(e.className,Ko,{"k-icon-picker":!l&&p}),children:[(0,y.jsx)(Le,{children:c}),(0,y.jsx)(Re,{placeholder:h,value:d,showValue:l,valueIconName:p}),(0,y.jsx)($,{valid:L,invalid:w,loading:S,disabled:A}),(0,y.jsx)(F,{loading:S,disabled:A}),(0,y.jsx)(be,{children:m}),(0,y.jsx)(C,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),_&&q&&(0,y.jsx)(ve,{className:"k-list-container k-dropdownlist-popup",children:q}),Wo&&(0,y.jsx)(re,{adaptive:!0,...Qo,header:(0,y.jsx)(ee,{actionsEnd:(0,y.jsx)(C,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:jo,inputValue:d,inputPlaceholder:h,title:Yo,subtitle:Zo}),children:(0,y.jsx)("div",{className:"k-list-container",children:(0,y.jsxs)(O,{size:"large",children:[(0,y.jsx)(v,{text:"List item"}),(0,y.jsx)(v,{text:"List item"}),(0,y.jsx)(v,{text:"List item"})]})})})]})};de.states=_i;de.options=Fi;de.className=Ko;de.defaultOptions=Te;var Xi=require("react/jsx-runtime");var Ho=require("react/jsx-runtime");var Ot=require("react/jsx-runtime");var Ji=require("react/jsx-runtime");var Ro=require("react/jsx-runtime");var Bo=require("react/jsx-runtime");var Kt=require("react/jsx-runtime");var Ht=require("react/jsx-runtime");var Fe=require("react/jsx-runtime"),Vo="k-spin-button",qi=[],Ui={size:[a.small,a.medium,a.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},Rt={size:a.medium,fillMode:x.solid},ze=e=>{let{size:t=Rt.size,fillMode:o=Rt.fillMode,...n}=e;return(0,Fe.jsxs)("span",{...n,className:i(Vo,e.className),children:[(0,Fe.jsx)(C,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,Fe.jsx)(C,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};ze.states=qi;ze.options=Ui;ze.className=Vo;ze.defaultOptions=Rt;var E=require("react/jsx-runtime"),Go="k-numerictextbox",Wi=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Qi={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ue={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},we=e=>{let{size:t=ue.size,rounded:o=ue.rounded,fillMode:n=ue.fillMode,separators:r=ue.separators,showClearButton:l=ue.showClearButton,showSpinButton:p=ue.showSpinButton,prefix:c,suffix:m,value:d,placeholder:h,hover:b,focus:N,valid:L,invalid:w,required:M,loading:S,disabled:A,readonly:V,...q}=e;return(0,E.jsxs)(z,{...q,size:t,rounded:o,fillMode:n,hover:b,focus:N,valid:L,invalid:w,required:M,loading:S,disabled:A,readonly:V,className:i(e.className,Go),children:[c&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Le,{children:c}),r&&(0,E.jsx)(Ne,{})]}),(0,E.jsx)(Q,{placeholder:h,value:d}),(0,E.jsx)($,{valid:L,invalid:w,loading:S,disabled:A}),(0,E.jsx)(F,{loading:S,disabled:A}),l&&(0,E.jsx)(W,{loading:S,disabled:A,readonly:V,value:d}),m&&(0,E.jsxs)(E.Fragment,{children:[r&&(0,E.jsx)(Ne,{}),(0,E.jsx)(be,{children:m})]}),p&&(0,E.jsx)(ze,{className:"k-input-spinner",size:t,fillMode:n})]})};we.states=Wi;we.options=Qi;we.className=Go;we.defaultOptions=ue;var Yi=require("react/jsx-runtime");var $o=require("react/jsx-runtime");var _o=require("react/jsx-runtime");var g=require("react/jsx-runtime"),st="k-pager",Zi=[s.focus,s.disabled],ji={size:[a.small,a.medium,a.large]},H={responsive:!0,size:a.medium,pagerSizeInfo:!0,pageTitleInfo:!0,maxPagesInfo:!0,type:"numeric",pageSizes:!0,refresh:!0,previousNext:!0,info:"1 - 5 of 20 items",itemsPerPage:5,maxPages:6,currentPage:1},oe=e=>{let{responsive:t=H.responsive,size:o=H.size,pagerSizeInfo:n=H.pagerSizeInfo,pageTitleInfo:r=H.pageTitleInfo,maxPagesInfo:l=H.maxPagesInfo,itemsPerPage:p=H.itemsPerPage,maxPages:c=H.maxPages,currentPage:m=H.currentPage,previousNext:d=H.previousNext,type:h=H.type,pageSizes:b=H.pageSizes,refresh:N=H.refresh,info:L=H.info,focus:w,disabled:M,dir:S,...A}=e,V=[],q=[];for(let _=1;_<=c;_++)V.push((0,g.jsx)(C,{selected:_===m,fillMode:"flat",themeColor:"primary",size:o,rounded:null,children:_})),q.push((0,g.jsx)("option",{selected:_===m,children:_}));return(0,g.jsxs)("div",{dir:S,...A,className:i(e.className,st,I(st,{size:o}),k(st,{focus:w,disabled:M}),{"k-pager-responsive":t}),children:[(0,g.jsxs)("div",{className:i("k-pager-numbers-wrap"),children:[d&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(C,{className:i("k-pager-nav","k-pager-first"),disabled:m===1&&!M,fillMode:"flat",size:o,rounded:null,icon:S==="rtl"?"caret-alt-to-right":"caret-alt-to-left"}),(0,g.jsx)(C,{className:i("k-pager-nav"),disabled:m===1&&!M,fillMode:"flat",size:o,rounded:null,icon:S==="rtl"?"caret-alt-right":"caret-alt-left"})]}),h==="numeric"&&(0,g.jsx)("div",{className:i("k-pager-numbers"),children:V}),h==="input"&&(0,g.jsxs)("span",{className:i("k-pager-input"),children:[r&&(0,g.jsx)("span",{children:"Page"}),(0,g.jsx)(we,{value:`${m}`,size:o,showSpinButton:!1,showClearButton:!1}),(0,g.jsx)("span",{children:l&&`of ${c}`})]}),d&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(C,{className:i("k-pager-nav"),disabled:m===c&&!M,fillMode:"flat",size:o,rounded:null,icon:S==="rtl"?"caret-alt-left":"caret-alt-right"}),(0,g.jsx)(C,{className:i("k-pager-nav","k-pager-last"),disabled:m===c&&!M,fillMode:"flat",size:o,rounded:null,icon:S==="rtl"?"caret-alt-to-left":"caret-alt-to-right"})]})]}),b&&(0,g.jsxs)("span",{className:i("k-pager-sizes"),children:[(0,g.jsx)(de,{value:`${p}`,size:o}),n&&(0,g.jsx)("span",{children:"items per page"})]}),N&&(0,g.jsx)(C,{className:i("k-pager-refresh"),fillMode:"flat",size:o,rounded:null,icon:"arrow-rotate-cw"}),L&&(0,g.jsx)("span",{className:i("k-pager-info"),children:L})]})};oe.states=Zi;oe.options=ji;oe.className=st;oe.defaultOptions=H;var Xo=require("react/jsx-runtime"),Fo=e=>(0,Xo.jsx)(oe,{...e,responsive:!1});var en=require("react/jsx-runtime");var tn=require("react/jsx-runtime");var R=require("react/jsx-runtime"),Bt="k-listview",on=[s.loading,s.disabled],sn={},Jo={pagerPosition:"bottom"},fe=e=>{let{header:t,footer:o,pageable:n,pagerPosition:r=Jo.pagerPosition,bordered:l,layout:p,flexDirection:c,flexWrap:m,gridColumns:d,loading:h,disabled:b,...N}=e,L=(0,R.jsx)(Fo,{className:`k-listview-pager k-listview-pager-${r}`}),w=(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{className:"k-loading-mask",style:{height:"100%",width:"100%"},children:[(0,R.jsx)("span",{className:"k-loading-text",children:"Loading..."}),(0,R.jsx)("div",{className:"k-loading-image"}),(0,R.jsx)("div",{className:"k-loading-color"})]})});return(0,R.jsxs)("div",{...N,className:i(e.className,Bt,{"k-listview-bordered":l},k(Bt,{disabled:b,loading:h})),children:[n&&r==="top"&&L,t&&(0,R.jsx)("div",{className:"k-listview-header",children:"Header"}),(0,R.jsx)("div",{className:i("k-listview-content",{[`k-d-${p}`]:p,[`k-flex-${c}`]:c,[`k-flex-${m}`]:m,[`k-grid-cols-${d}`]:d}),children:e.children}),h&&w,o&&(0,R.jsx)("div",{className:"k-listview-footer",children:"Footer"}),n&&r==="bottom"&&L]})};fe.states=on;fe.options=sn;fe.className=Bt;fe.defaultOptions=Jo;var qo=require("react/jsx-runtime"),Vt="k-listview-item",nn=[s.focus,s.selected],an={},rn={},Xe=e=>{let{focus:t,selected:o,...n}=e;return(0,qo.jsx)("div",{...n,className:i(e.className,Vt,k(Vt,{focus:t,selected:o})),children:e.children})};Xe.states=nn;Xe.options=an;Xe.className=Vt;Xe.defaultOptions=rn;var Gt=require("react/jsx-runtime");var Uo=require("react/jsx-runtime"),Dt="k-filemanager-listview",ln=[],pn={},mn={},Ee=e=>{let{children:t,...o}=e;return(0,Uo.jsx)(fe,{className:i(e.className,Dt,"k-selectable"),layout:"flex",flexDirection:"row",flexWrap:"wrap",...o,children:t})};Ee.states=ln;Ee.options=pn;Ee.className=Dt;Ee.defaultOptions=mn;var dn=Ee;