@progress/kendo-themes-html 14.7.1-dev.5 → 14.7.1-dev.7
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/cjs/chat/chat-message.spec.js +1 -1
- package/dist/cjs/chat/demos/chat.js +1 -1
- package/dist/cjs/chat/templates/chat-empty.js +1 -1
- package/dist/cjs/chat/templates/chat-expandable.js +1 -1
- package/dist/cjs/chat/templates/chat-failed.js +1 -1
- package/dist/cjs/chat/templates/chat-message-skeleton.js +1 -1
- package/dist/cjs/chat/templates/chat-message-toolbar.js +1 -1
- package/dist/cjs/chat/templates/chat-normal.js +1 -1
- package/dist/cjs/chat/templates/chat-pinned.js +1 -1
- package/dist/cjs/chat/templates/chat-stop-response.js +1 -1
- package/dist/cjs/chat/templates/chat-textarea-file.js +1 -1
- package/dist/cjs/chat/templates/chat-typing.js +1 -1
- package/dist/cjs/chat/templates/chat-upload.js +1 -1
- package/dist/cjs/datainsights-composer/demos/datainsights-composer.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-data-source-browser-popup.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-data-source-fields-popup.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-error.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-followup.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-history-popup.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-loading.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-prompt-many-data-sources.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-prompt.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-report-edit-panel-compact.js +1 -0
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-report-edit-panel.js +1 -1
- package/dist/cjs/datainsights-composer/templates/datainsights-composer-report.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/prompt/demos/prompt.js +1 -1
- package/dist/cjs/prompt/templates/prompt-inline-input-only.js +1 -1
- package/dist/cjs/prompt/templates/prompt-inline.js +1 -1
- package/dist/cjs/prompt/templates/prompt-more-actions.js +1 -1
- package/dist/cjs/prompt/templates/prompt-normal.js +1 -1
- package/dist/cjs/prompt/templates/prompt-output.js +1 -1
- package/dist/cjs/prompt/templates/prompt-popup.js +1 -1
- package/dist/cjs/prompt/templates/prompt-settings.js +1 -1
- package/dist/cjs/prompt/templates/prompt-suggestions.js +1 -1
- package/dist/cjs/suggestion/suggestion.js +1 -1
- package/dist/cjs/suggestion/templates/suggestion-group-normal.js +1 -1
- package/dist/cjs/suggestion/templates/suggestion-group-scrollable-buttons.js +1 -1
- package/dist/cjs/suggestion/templates/suggestion-group-wrap.js +1 -1
- package/dist/cjs/timepicker/demos/timepicker.js +1 -1
- package/dist/cjs/timepicker/templates/timepicker-adaptive.js +1 -1
- package/dist/cjs/timepicker/templates/timepicker-disabled.js +1 -1
- package/dist/cjs/timepicker/templates/timepicker-invalid.js +1 -1
- package/dist/cjs/timepicker/templates/timepicker-normal.js +1 -1
- package/dist/cjs/timepicker/templates/timepicker-popup.js +1 -1
- package/dist/cjs/timepicker/timepicker.spec.js +1 -1
- package/dist/esm/chat/chat-message.spec.mjs +1 -1
- package/dist/esm/chat/demos/chat.mjs +1 -1
- package/dist/esm/chat/templates/chat-empty.mjs +1 -1
- package/dist/esm/chat/templates/chat-expandable.mjs +1 -1
- package/dist/esm/chat/templates/chat-failed.mjs +1 -1
- package/dist/esm/chat/templates/chat-message-skeleton.mjs +1 -1
- package/dist/esm/chat/templates/chat-message-toolbar.mjs +1 -1
- package/dist/esm/chat/templates/chat-normal.mjs +1 -1
- package/dist/esm/chat/templates/chat-pinned.mjs +1 -1
- package/dist/esm/chat/templates/chat-stop-response.mjs +1 -1
- package/dist/esm/chat/templates/chat-textarea-file.mjs +1 -1
- package/dist/esm/chat/templates/chat-typing.mjs +1 -1
- package/dist/esm/chat/templates/chat-upload.mjs +1 -1
- package/dist/esm/datainsights-composer/demos/datainsights-composer.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-data-source-browser-popup.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-data-source-fields-popup.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-error.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-followup.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-history-popup.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-loading.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-prompt-many-data-sources.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-prompt.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-report-edit-panel-compact.mjs +1 -0
- package/dist/esm/datainsights-composer/templates/datainsights-composer-report-edit-panel.mjs +1 -1
- package/dist/esm/datainsights-composer/templates/datainsights-composer-report.mjs +1 -1
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/prompt/demos/prompt.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-inline-input-only.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-inline.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-more-actions.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-normal.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-output.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-popup.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-settings.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-suggestions.mjs +1 -1
- package/dist/esm/suggestion/suggestion.mjs +1 -1
- package/dist/esm/suggestion/templates/suggestion-group-normal.mjs +1 -1
- package/dist/esm/suggestion/templates/suggestion-group-scrollable-buttons.mjs +1 -1
- package/dist/esm/suggestion/templates/suggestion-group-wrap.mjs +1 -1
- package/dist/esm/timepicker/demos/timepicker.mjs +1 -1
- package/dist/esm/timepicker/templates/timepicker-adaptive.mjs +1 -1
- package/dist/esm/timepicker/templates/timepicker-disabled.mjs +1 -1
- package/dist/esm/timepicker/templates/timepicker-invalid.mjs +1 -1
- package/dist/esm/timepicker/templates/timepicker-normal.mjs +1 -1
- package/dist/esm/timepicker/templates/timepicker-popup.mjs +1 -1
- package/dist/esm/timepicker/timepicker.spec.mjs +1 -1
- package/dist/types/datainsights-composer/index.d.ts +1 -0
- package/dist/types/datainsights-composer/templates/datainsights-composer-report-edit-panel-compact.d.ts +2 -0
- package/package.json +1 -1
- package/src/action-sheet/tests/action-sheet-date-time-selector.tsx +1 -1
- package/src/action-sheet/tests/action-sheet-time-selector.tsx +2 -2
- package/src/datainsights-composer/index.ts +1 -0
- package/src/datainsights-composer/templates/datainsights-composer-report-edit-panel-compact.tsx +65 -0
- package/src/datainsights-composer/templates/datainsights-composer-report-edit-panel.tsx +3 -3
- package/src/datainsights-composer/tests/datainsights-composer-edit-mode-compact.tsx +10 -0
- package/src/suggestion/suggestion.tsx +3 -2
- package/src/timepicker/timepicker.spec.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||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.themeColor}`]:t.themeColor},{"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-rounded-none":t.rounded==="none"}),z=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:d,active:c,selected:m,disabled:x,indeterminate:h,loading:b,empty:A,readonly:w,highlighted:L,...M}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":x,"k-indeterminate":h&&!d,"k-loading":b,"k-empty":A,"k-readonly":w,"k-highlighted":L},Object.keys(M).reduce((E,v)=>(v.startsWith("k-")?E[v]=M[v]:E[`k-${v}`]=M[v],E),{}))};function Et(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",tint:"tint",flat:"flat",outline:"outline",clear:"clear",link:"link"},D={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",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",generating:"generating",expanded:"expanded"};var Fe={};function It(e){return Fe[e]=(Fe[e]||0)+1,`k-${e}-${Fe[e]}`}var he="input",Oe=he;import{jsx as ko}from"react/jsx-runtime";var Ce="k-input",go=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Co={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return ko("span",{...b,className:i(e.className,Ce,I(Ce,{size:m,rounded:x,fillMode:h}),z(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=go;y.options=Oo;y.className=Ce;y.defaultOptions=Co;y.moduleName=he;y.folderName=Oe;import{jsx as _o}from"react/jsx-runtime";var ke="k-picker",Lo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Po={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Ho={},ae=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return _o("span",{...b,className:i(e.className,ke,I(ke,{size:m,rounded:x,fillMode:h}),z(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Lo;ae.options=Po;ae.className=ke;ae.defaultOptions=Ho;ae.moduleName=he;ae.folderName=Oe;import{Fragment as wo,jsx as yt}from"react/jsx-runtime";var Ve="k-font-icon",Ro=[],Ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Bo={},be=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...d}=e;return a?yt("span",{...d,className:i(e.className,Ve,I(Ve,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):yt(wo,{})};be.states=Ro;be.options=Ko;be.className=Ve;be.defaultOptions=Bo;var gt=be;import{Fragment as Fo,jsx as Le}from"react/jsx-runtime";var Ue="k-svg-icon",zo=[],Do={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},$e={viewBox:"0 0 24 24",variant:D.outline},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=$e.viewBox,variant:d=$e.variant,icon:c,...m}=e;if(!c)return Le(Fo,{});if(c==="none")return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Se.states=zo;Se.options=Do;Se.className=Ue;Se.defaultOptions=$e;var Xe=Se;import*as Je from"@progress/kendo-svg-icons";var Ot="icon",Ct="icons";import{useContext as Uo}from"react";import{createContext as Vo}from"react";var kt=Vo({iconsType:"svg"});import{Fragment as Lt,jsx as ve}from"react/jsx-runtime";var Pe="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:D.outline},S=e=>{let{iconsType:t}=Uo(kt),{size:o,themeColor:a,icon:n,type:r=t||He.type,rotate:d,flip:c,viewBox:m=He.viewBox,variant:x=He.variant,...h}=e;if(!n)return ve(Lt,{});if((t||r)==="svg"){if(n==="none")return ve(Xe,{...h,className:i(e.className,Pe),icon:n,size:o,variant:x});let A=Je[n]?n:$o(`${n}-icon`);return Je[A]?ve(Xe,{...h,className:i(e.className,Pe),icon:Je[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:x}):ve(Lt,{})}return ve(gt,{...h,className:i(e.className,Pe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};S.states=Xo;S.options=Jo;S.defaultOptions=He;S.className=Pe;S.moduleName=Ot;S.folderName=Ct;import{Fragment as Yo,jsx as qe}from"react/jsx-runtime";var Pt="k-clear-value",qo=[s.disabled,s.loading,s.readonly],Go={},H=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?qe(Yo,{}):qe("span",{className:i(e.className,Pt),children:qe(S,{icon:"x"})})};H.states=qo;H.options=Go;H.className=Pt;import{jsx as Zo}from"react/jsx-runtime";var Ge="k-input-inner",Wo=[],Qo={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},_=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:a=_e.placeholder,autocomplete:n=_e.autocomplete,disabled:r,readOnly:d,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,Ge,I(Ge,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};_.states=Wo;_.options=Qo;_.className=Ge;import{jsx as Ht,jsxs as tn}from"react/jsx-runtime";var Ye="k-input-inner",jo=[],en={},We=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...d}=e;return tn("span",{...d,className:i(e.className,Ye,I(Ye,e)),children:[n,!n&&r&&Ht(S,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};We.states=jo;We.options=en;We.className=Ye;import{jsx as an}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_t={value:"",placeholder:""},Ze=e=>{let{value:t=_t.value,placeholder:o=_t.placeholder,rows:a,disabled:n,...r}=e;return an("textarea",{...r,className:i(e.className,Qe,I(Qe,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Ze.states=on;Ze.options=nn;Ze.className=Qe;import{Fragment as rn,jsx as Rt}from"react/jsx-runtime";var Kt="k-input-loading-icon",sn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Rt(rn,{}):Rt("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=sn;F.className=Kt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],cn={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Bt(dn,{}):Bt(S,{className:i(wt),icon:r})};R.states=ln;R.options=cn;R.className=wt;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var mn="k-input-prefix",pn={direction:"horizontal"},ie=e=>{let{direction:t=pn.direction,...o}=e;return e.children?zt("span",{...o,className:i(mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(un,{})};import{Fragment as Nn,jsx as Dt}from"react/jsx-runtime";var fn="k-input-suffix",xn={direction:"horizontal"},se=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Dt("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(Nn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ft="k-input-separator",hn={direction:"vertical"},re=e=>{let{direction:t=hn.direction,...o}=e;return bn("span",{...o,className:i(Ft,e.className,{[`${Ft}-${t}`]:t})})};var je="button",Vt=je;import{Fragment as et,jsx as J,jsxs as Ut}from"react/jsx-runtime";var Ae="k-button",Sn=["icon-button"],vn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:d=tt.showArrow,arrowIconName:c=tt.arrowIconName,variant:m,hover:x,focus:h,active:b,selected:A,disabled:w,togglable:L,ariaDisabled:M,icon:E,endIcon:v,iconSize:P,text:$,iconClassName:ne,className:xe,...Ne}=e,j=E!=null,yo=e.children!==void 0;return Ut(t,{className:i(xe,Ae,Et(Ae,m),I(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),z(Ae,{hover:x,focus:h,active:b,disabled:w||M,selected:A}),{"k-icon-button":!$&&!yo&&j}),"aria-pressed":L?A?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof E=="string"&&E&&J(S,{className:i(ne,"k-button-icon"),icon:E,size:P}),E&&typeof E!="string"&&J(et,{children:E}),$?Ut(et,{children:[$&&J("span",{className:"k-button-text",children:$}),e.children]}):e.children&&J("span",{className:"k-button-text",children:e.children}),typeof v=="string"&&v&&J(S,{className:i(ne,"k-button-icon"),icon:v,size:P}),v&&typeof v!="string"&&J(et,{children:v}),d&&J("span",{className:"k-menu-button-arrow k-button-arrow",children:J(S,{icon:c})})]})};f.states=vn;f.options=An;f.variants=Sn;f.className=Ae;f.defaultOptions=tt;f.moduleName=je;f.folderName=Vt;import{jsx as Tn}from"react/jsx-runtime";var ee=e=>Tn(f,{children:"Button",...e});import{Fragment as $t,jsx as V,jsxs as ot}from"react/jsx-runtime";var Mn=y.states,En=y.defaultOptions,In=y.options,yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gn=[],le=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,x=t?.suffix,h=t?.["clear-button"],b=t?.["validation-icon"],A=t?.separators;return ot(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&ot($t,{children:[V(ie,{children:V(S,{icon:"lock"})}),A&&V(re,{})]}),V(_,{placeholder:"Placeholder",value:"Value"}),b&&V(R,{valid:o,invalid:a,loading:n,disabled:r}),V(F,{loading:n,disabled:r}),h&&V(H,{loading:n,disabled:r,readonly:d,value:"Value"}),x&&ot($t,{children:[A&&V(re,{}),V(se,{children:V(ee,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};le.options=In;le.states=Mn;le.variants=gn;le.defaultOptions=En;le.modifiers=yn;le.className=y.className;import{jsx as On}from"react/jsx-runtime";var Xt=e=>On(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Cn}from"react/jsx-runtime";var Jt=e=>Cn(f,{icon:"folder",children:"Button",...e});import{jsx as Zs}from"react/jsx-runtime";import{jsx as nt}from"react/jsx-runtime";var kn=f.options,Ln=f.states,Pn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return nt(Xt,{...o,icon:"star"});case"icon-and-text":return nt(Jt,{...o,icon:"star",children:"Button"});default:return nt(ee,{...o,children:"Button"})}};ce.options=kn;ce.states=Ln;ce.variants=Hn;ce.defaultOptions=Pn;ce.modifiers=_n;ce.className=f.className;var at="popup",qt=at;import{jsx as Gt}from"react/jsx-runtime";var Yt="k-animation-container",Rn=[],Kn={},it={positionMode:"absolute",shown:!0},U=e=>{let{positionMode:t=it.positionMode,shown:o=it.shown,animationStyle:a,offset:n,...r}=e;return Gt("div",{...r,style:{...n,...e.style},className:i(e.className,Yt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:a,children:e.children})})};U.states=Rn;U.options=Kn;U.className=Yt;U.defaultOptions=it;U.moduleName=at;U.folderName=qt;var st="popup",Wt=st;import{jsx as Qt}from"react/jsx-runtime";var Zt="k-popup",Bn=[],wn={},jt={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Qt(U,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":d,children:Qt("div",{...c,className:i(e.className,Zt),children:e.children})})};K.states=Bn;K.options=wn;K.className=Zt;K.defaultOptions=jt;K.moduleName=st;K.folderName=Wt;var eo="time-selector",to="timeselector";import{Fragment as oo,jsx as Re,jsxs as no}from"react/jsx-runtime";var rt="k-timeselector",zn=[],Dn={size:[l.undefined,l.small,l.medium,l.large]},Fn={},X=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:r,...d}=e,c=n.map(function(m,x){let h=!1,b=!0;return m===r&&(h=!0),(x===0||m==="tt")&&(b=!1),Re(lt,{type:m,focus:h,separator:b},x)});return no("div",{...d,className:i(e.className,rt,I(rt,{size:t})),role:"group","aria-label":"Time selector",children:[Re(oo,{children:o}),Re(oo,{children:a}),no("div",{className:"k-time-list-container",children:[Re("span",{className:"k-time-highlight"}),c]})]})};X.states=zn;X.options=Dn;X.className=rt;X.defaultOptions=Fn;X.moduleName=eo;X.folderName=to;import{Fragment as Un,jsx as te,jsxs as ct}from"react/jsx-runtime";var Vn=[s.focus],lt=e=>{let{type:t,focus:o,separator:a,...n}=e,r,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":r="Day";break;case"HH":r="Hour";break;case"mm":r="Minute";break;case"ss":r="Second";break;case"SSS":r="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":r="AM/PM",d=["AM","PM"];break;default:r="Column Name";break}let c=d.map((m,x)=>te("li",{className:"k-item",role:"option","aria-selected":"false",children:te("span",{children:m})},x));return ct(Un,{children:[a&&te("div",{className:"k-time-separator",children:":"}),ct("div",{...n,className:i(e.className,"k-time-list-wrapper",z("k-time-list-wrapper",{focus:o})),children:[te("span",{className:"k-title",children:r}),te("div",{className:"k-time-list",role:"listbox","aria-label":r,children:ct("div",{className:"k-content k-scrollable k-time-container",children:[te("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),te("div",{className:"k-scrollable-placeholder"})]})})]})]})};lt.states=Vn;import{jsx as Xn,jsxs as Jn}from"react/jsx-runtime";var $n="k-time-header",de=e=>{let{title:t,...o}=e;return Jn("div",{...o,className:i(e.className,$n),children:[t!=null&&Xn("span",{className:"k-title",children:t}),e.children]})};var dt="action-buttons",ao=dt;import{jsx as Yn}from"react/jsx-runtime";var Ke="k-actions",qn=[],Gn={},mt={alignment:"start",orientation:"horizontal"},C=e=>{let{alignment:t=mt.alignment,orientation:o=mt.orientation,...a}=e;return Yn("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};C.states=qn;C.options=Gn;C.className=Ke;C.defaultOptions=mt;C.moduleName=dt;C.folderName=ao;import{jsx as Zr,jsxs as jr}from"react/jsx-runtime";import{Fragment as cl,jsx as rl,jsxs as ll}from"react/jsx-runtime";import{Fragment as Sl,jsx as hl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Cl,jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",so={alignment:"stretched",orientation:"horizontal"},q=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,template:a,as:n=a?"div":C,...r}=e;return Qn(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Wn),children:e.children})};var pt="searchbox",ro=pt;import{jsx as Te,jsxs as ea}from"react/jsx-runtime";var lo="k-searchbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Be={showIcon:!0,showClearButton:!0,icon:"search"},G=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,showIcon:w=Be.showIcon,showClearButton:L=Be.showClearButton,icon:M=Be.icon,"aria-label":E,...v}=e;return ea(y,{...v,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,className:i(e.className,lo),children:[w&&Te(S,{className:"k-input-icon",icon:M}),Te(_,{placeholder:o,value:t,"aria-label":E}),Te(F,{...e}),Te(R,{...e}),L&&Te(H,{...e})]})};G.states=Zn;G.options=jn;G.className=lo;G.defaultOptions=Be;G.moduleName=pt;G.folderName=ro;import{jsx as jl}from"react/jsx-runtime";var ut="textbox",co=ut;import{Fragment as mo,jsx as Y,jsxs as ft}from"react/jsx-runtime";var po="k-textbox",ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},we={showClearButton:!0,showValidationIcon:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:a,separators:n=we.separators,showClearButton:r=we.showClearButton,showValidationIcon:d=we.showValidationIcon,prefix:c,suffix:m,type:x,value:h,placeholder:b,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,id:ne,"aria-label":xe,"aria-describedby":Ne,...j}=e;return ft(y,{...j,size:t,rounded:o,fillMode:a,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,className:i(e.className,po),children:[c&&ft(mo,{children:[Y(ie,{children:c}),n&&Y(re,{})]}),Y(_,{id:ne,placeholder:b,value:h,type:x,disabled:P,"aria-label":xe,"aria-describedby":Ne,"aria-invalid":M?"true":void 0}),d&&Y(R,{valid:L,invalid:M,loading:v,disabled:P}),Y(F,{loading:v,disabled:P}),r&&Y(H,{loading:v,disabled:P,readonly:$,value:h}),m&&ft(mo,{children:[n&&Y(re,{}),Y(se,{children:m})]})]})};k.states=ta;k.options=oa;k.className=po;k.defaultOptions=we;k.moduleName=ut;k.folderName=co;var Me=k;import{jsx as na}from"react/jsx-runtime";var uo=e=>na(Me,{...e});import{Fragment as hc,jsx as Nc}from"react/jsx-runtime";import{Fragment as Mc,jsx as Tc}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as xt}from"react/jsx-runtime";var aa=k.states,ia=k.defaultOptions,sa=k.options,ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],la=[],me=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?xt(S,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?xt(ee,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),xt(uo,{value:"Value",style:{width:300},...o,...a})};me.options=sa;me.states=aa;me.variants=la;me.defaultOptions=ia;me.modifiers=ra;me.className=k.className;import{jsx as W,jsxs as Nt}from"react/jsx-runtime";var fo="k-actionsheet-titlebar",ca={},B=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:x,titleId:h,children:b,...A}=e;return Nt("div",{...A,className:i(e.className,fo),children:[Nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&W("div",{className:"k-actionsheet-actions",children:a}),!b&&Nt("div",{className:"k-actionsheet-title",id:h,children:[t&&W("div",{className:"k-text-center",children:t}),o&&W("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&W("div",{className:"k-actionsheet-title",id:h,children:b}),n&&W("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&W("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?W(k,{value:c,placeholder:m,size:x?"large":"medium","aria-label":t||m||"Input"}):W(G,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};B.className=fo;B.defaultOptions=ca;import{jsx as ht,jsxs as ua}from"react/jsx-runtime";var bt="k-actionsheet-view",da=[],ma={},pa={},pe=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:d,...c}=e,m=n?.type===B&&ht(B,{adaptive:t,titleId:d,...n?.props}),x=r?.type===q&&ht(q,{...r?.props});return ua("div",{...c,className:i(e.className,bt,{[`${bt}-animated`]:o}),children:[m,ht("div",{className:"k-actionsheet-content",children:a}),x]})};pe.states=da;pe.options=ma;pe.className=bt;pe.defaultOptions=pa;var Ee="action-sheet",ze=Ee;var St="overlay",xo=St;import{jsx as ha}from"react/jsx-runtime";var No="k-overlay",fa=[],xa={},Na={},Q=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,No),children:e.children})};Q.states=fa;Q.options=xa;Q.className=No;Q.defaultOptions=Na;Q.moduleName=St;Q.folderName=xo;import{jsx as De,jsxs as va}from"react/jsx-runtime";var ho="k-actionsheet",ba=[],Sa={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:a=Ie.adaptive,overlay:n=Ie.overlay,template:r,children:d,header:c,footer:m,id:x,...h}=e,b=x&&!r&&c?`${x}-title`:void 0;return va("div",{className:"k-actionsheet-container",children:[n&&De(Q,{}),De(U,{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:De("div",{...h,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":b,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||De(pe,{header:c,footer:m,adaptive:a,titleId:b,...e,children:d})})})]})};O.states=ba;O.options=Sa;O.className=ho;O.defaultOptions=Ie;O.moduleName=Ee;O.folderName=ze;import{jsx as Ea}from"react/jsx-runtime";var bo="k-actionsheet-container",Aa=[],Ta={},Ma={},ue=e=>{let{children:t,...o}=e;return Ea("div",{...o,className:bo,children:t})};ue.states=Aa;ue.options=Ta;ue.className=bo;ue.defaultOptions=Ma;ue.moduleName=Ee;ue.folderName=ze;import{jsx as Ia}from"react/jsx-runtime";var vt=e=>{let{...t}=e;return Ia("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ga,jsx as ye,jsxs as At}from"react/jsx-runtime";var Tt="k-actionsheet-item",ya=[s.hover,s.focus,s.selected,s.disabled],Z=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:d,disabled:c,...m}=e;return At("span",{...m,className:i(e.className,Tt,z(Tt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&ye(ga,{children:At("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(S,{className:"k-actionsheet-item-icon",icon:t})}),At("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),a&&ye("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Z.states=ya;Z.className=Tt;import{jsx as yd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as g,jsxs as Mt}from"react/jsx-runtime";var Oa=O.options,Ca=O.states,vo={...O.defaultOptions,variant:"normal"},ka=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],La=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],fe=e=>{let{variant:t,modifiers:o,...a}={...vo,...e},n={},r=Mt(vt,{children:[g(Z,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(Z,{text:"Add to Favorites",iconName:"heart"}),g(Z,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(Z,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?g(O,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Cancel",size:"large",themeColor:"base"}),g(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):g(O,{...a,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Apply",themeColor:"primary"}),g(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};fe.options=Oa;fe.states=Ca;fe.variants=ka;fe.defaultOptions=vo;fe.modifiers=La;fe.className=O.className;var Ao="time-picker",To="timepicker";import{Fragment as _a,jsx as T,jsxs as ge}from"react/jsx-runtime";var Mo="k-timepicker",Pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Eo={showClearButton:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:r,value:d,placeholder:c,showClearButton:m=Eo.showClearButton,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,opened:v,adaptive:P,adaptiveSettings:$,adaptiveTitle:ne,adaptiveSubtitle:xe,...Ne}=e,j=It("timepicker-popup");return ge(_a,{children:[ge(y,{...Ne,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,className:i(e.className,Mo),children:[T(ie,{children:n}),T(_,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":v?"true":"false","aria-controls":v||P?j:void 0,"aria-invalid":A?"true":void 0,"aria-label":"Select time",disabled:M}),T(R,{valid:b,invalid:A,loading:L,disabled:M}),T(F,{loading:L,disabled:M}),m&&T(H,{loading:L,disabled:M,readonly:E,value:d}),T(se,{children:r}),T(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:M})]}),v&&ge(K,{id:j,className:"k-list-container k-timepicker-popup",children:[T(X,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(de,{title:"10:00:00 AM",children:T(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),ge(C,{alignment:"stretched",className:"k-time-footer",children:[T(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(f,{className:"k-time-cancel",children:"Cancel"})]})]}),P&&T(O,{adaptive:!0,id:j,...$,header:T(B,{actionsEnd:T(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ne,subtitle:xe}),footer:ge(q,{children:[T(f,{text:"Cancel",size:"large"}),T(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(X,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(de,{title:"10:00:00 \u0410\u041C",children:T(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};oe.states=Pa;oe.options=Ha;oe.className=Mo;oe.defaultOptions=Eo;oe.moduleName=Ao;oe.folderName=To;var Io=oe;import{jsx as Ra}from"react/jsx-runtime";var Tm=e=>Ra(Io,{disabled:!0,value:"10:00 AM",...e});export{Tm as TimePickerDisabled};
|
|
1
|
+
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||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.themeColor}`]:t.themeColor},{"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-rounded-none":t.rounded==="none"}),z=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:d,active:c,selected:m,disabled:x,indeterminate:h,loading:b,empty:A,readonly:w,highlighted:L,...M}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":x,"k-indeterminate":h&&!d,"k-loading":b,"k-empty":A,"k-readonly":w,"k-highlighted":L},Object.keys(M).reduce((E,v)=>(v.startsWith("k-")?E[v]=M[v]:E[`k-${v}`]=M[v],E),{}))};function Et(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",tint:"tint",flat:"flat",outline:"outline",clear:"clear",link:"link"},D={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",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",generating:"generating",expanded:"expanded"};var Fe={};function It(e){return Fe[e]=(Fe[e]||0)+1,`k-${e}-${Fe[e]}`}var he="input",Oe=he;import{jsx as ko}from"react/jsx-runtime";var Ce="k-input",go=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Co={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return ko("span",{...b,className:i(e.className,Ce,I(Ce,{size:m,rounded:x,fillMode:h}),z(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=go;y.options=Oo;y.className=Ce;y.defaultOptions=Co;y.moduleName=he;y.folderName=Oe;import{jsx as _o}from"react/jsx-runtime";var ke="k-picker",Lo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Po={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Ho={},ae=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return _o("span",{...b,className:i(e.className,ke,I(ke,{size:m,rounded:x,fillMode:h}),z(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Lo;ae.options=Po;ae.className=ke;ae.defaultOptions=Ho;ae.moduleName=he;ae.folderName=Oe;import{Fragment as wo,jsx as yt}from"react/jsx-runtime";var Ve="k-font-icon",Ro=[],Ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Bo={},be=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...d}=e;return a?yt("span",{...d,className:i(e.className,Ve,I(Ve,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):yt(wo,{})};be.states=Ro;be.options=Ko;be.className=Ve;be.defaultOptions=Bo;var gt=be;import{Fragment as Fo,jsx as Le}from"react/jsx-runtime";var Ue="k-svg-icon",zo=[],Do={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},$e={viewBox:"0 0 24 24",variant:D.outline},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=$e.viewBox,variant:d=$e.variant,icon:c,...m}=e;if(!c)return Le(Fo,{});if(c==="none")return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Se.states=zo;Se.options=Do;Se.className=Ue;Se.defaultOptions=$e;var Xe=Se;import*as Je from"@progress/kendo-svg-icons";var Ot="icon",Ct="icons";import{useContext as Uo}from"react";import{createContext as Vo}from"react";var kt=Vo({iconsType:"svg"});import{Fragment as Lt,jsx as ve}from"react/jsx-runtime";var Pe="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:D.outline},S=e=>{let{iconsType:t}=Uo(kt),{size:o,themeColor:a,icon:n,type:r=t||He.type,rotate:d,flip:c,viewBox:m=He.viewBox,variant:x=He.variant,...h}=e;if(!n)return ve(Lt,{});if((t||r)==="svg"){if(n==="none")return ve(Xe,{...h,className:i(e.className,Pe),icon:n,size:o,variant:x});let A=Je[n]?n:$o(`${n}-icon`);return Je[A]?ve(Xe,{...h,className:i(e.className,Pe),icon:Je[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:x}):ve(Lt,{})}return ve(gt,{...h,className:i(e.className,Pe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};S.states=Xo;S.options=Jo;S.defaultOptions=He;S.className=Pe;S.moduleName=Ot;S.folderName=Ct;import{Fragment as Yo,jsx as qe}from"react/jsx-runtime";var Pt="k-clear-value",qo=[s.disabled,s.loading,s.readonly],Go={},H=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?qe(Yo,{}):qe("span",{className:i(e.className,Pt),children:qe(S,{icon:"x"})})};H.states=qo;H.options=Go;H.className=Pt;import{jsx as Zo}from"react/jsx-runtime";var Ge="k-input-inner",Wo=[],Qo={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},_=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:a=_e.placeholder,autocomplete:n=_e.autocomplete,disabled:r,readOnly:d,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,Ge,I(Ge,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};_.states=Wo;_.options=Qo;_.className=Ge;import{jsx as Ht,jsxs as tn}from"react/jsx-runtime";var Ye="k-input-inner",jo=[],en={},We=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...d}=e;return tn("span",{...d,className:i(e.className,Ye,I(Ye,e)),children:[n,!n&&r&&Ht(S,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};We.states=jo;We.options=en;We.className=Ye;import{jsx as an}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_t={value:"",placeholder:""},Ze=e=>{let{value:t=_t.value,placeholder:o=_t.placeholder,rows:a,disabled:n,...r}=e;return an("textarea",{...r,className:i(e.className,Qe,I(Qe,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Ze.states=on;Ze.options=nn;Ze.className=Qe;import{Fragment as rn,jsx as Rt}from"react/jsx-runtime";var Kt="k-input-loading-icon",sn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Rt(rn,{}):Rt("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=sn;F.className=Kt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],cn={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Bt(dn,{}):Bt(S,{className:i(wt),icon:r})};R.states=ln;R.options=cn;R.className=wt;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var mn="k-input-prefix",pn={direction:"horizontal"},ie=e=>{let{direction:t=pn.direction,...o}=e;return e.children?zt("span",{...o,className:i(mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(un,{})};import{Fragment as Nn,jsx as Dt}from"react/jsx-runtime";var fn="k-input-suffix",xn={direction:"horizontal"},se=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Dt("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(Nn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ft="k-input-separator",hn={direction:"vertical"},re=e=>{let{direction:t=hn.direction,...o}=e;return bn("span",{...o,className:i(Ft,e.className,{[`${Ft}-${t}`]:t})})};var je="button",Vt=je;import{Fragment as et,jsx as J,jsxs as Ut}from"react/jsx-runtime";var Ae="k-button",Sn=["icon-button"],vn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:d=tt.showArrow,arrowIconName:c=tt.arrowIconName,variant:m,hover:x,focus:h,active:b,selected:A,disabled:w,togglable:L,ariaDisabled:M,icon:E,endIcon:v,iconSize:P,text:$,iconClassName:ne,className:xe,...Ne}=e,j=E!=null,yo=e.children!==void 0;return Ut(t,{className:i(xe,Ae,Et(Ae,m),I(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),z(Ae,{hover:x,focus:h,active:b,disabled:w||M,selected:A}),{"k-icon-button":!$&&!yo&&j}),"aria-pressed":L?A?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof E=="string"&&E&&J(S,{className:i(ne,"k-button-icon"),icon:E,size:P}),E&&typeof E!="string"&&J(et,{children:E}),$?Ut(et,{children:[$&&J("span",{className:"k-button-text",children:$}),e.children]}):e.children&&J("span",{className:"k-button-text",children:e.children}),typeof v=="string"&&v&&J(S,{className:i(ne,"k-button-icon"),icon:v,size:P}),v&&typeof v!="string"&&J(et,{children:v}),d&&J("span",{className:"k-menu-button-arrow k-button-arrow",children:J(S,{icon:c})})]})};f.states=vn;f.options=An;f.variants=Sn;f.className=Ae;f.defaultOptions=tt;f.moduleName=je;f.folderName=Vt;import{jsx as Tn}from"react/jsx-runtime";var ee=e=>Tn(f,{children:"Button",...e});import{Fragment as $t,jsx as V,jsxs as ot}from"react/jsx-runtime";var Mn=y.states,En=y.defaultOptions,In=y.options,yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gn=[],le=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,x=t?.suffix,h=t?.["clear-button"],b=t?.["validation-icon"],A=t?.separators;return ot(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&ot($t,{children:[V(ie,{children:V(S,{icon:"lock"})}),A&&V(re,{})]}),V(_,{placeholder:"Placeholder",value:"Value"}),b&&V(R,{valid:o,invalid:a,loading:n,disabled:r}),V(F,{loading:n,disabled:r}),h&&V(H,{loading:n,disabled:r,readonly:d,value:"Value"}),x&&ot($t,{children:[A&&V(re,{}),V(se,{children:V(ee,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};le.options=In;le.states=Mn;le.variants=gn;le.defaultOptions=En;le.modifiers=yn;le.className=y.className;import{jsx as On}from"react/jsx-runtime";var Xt=e=>On(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Cn}from"react/jsx-runtime";var Jt=e=>Cn(f,{icon:"folder",children:"Button",...e});import{jsx as Zs}from"react/jsx-runtime";import{jsx as nt}from"react/jsx-runtime";var kn=f.options,Ln=f.states,Pn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return nt(Xt,{...o,icon:"star"});case"icon-and-text":return nt(Jt,{...o,icon:"star",children:"Button"});default:return nt(ee,{...o,children:"Button"})}};ce.options=kn;ce.states=Ln;ce.variants=Hn;ce.defaultOptions=Pn;ce.modifiers=_n;ce.className=f.className;var at="popup",qt=at;import{jsx as Gt}from"react/jsx-runtime";var Yt="k-animation-container",Rn=[],Kn={},it={positionMode:"absolute",shown:!0},U=e=>{let{positionMode:t=it.positionMode,shown:o=it.shown,animationStyle:a,offset:n,...r}=e;return Gt("div",{...r,style:{...n,...e.style},className:i(e.className,Yt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:a,children:e.children})})};U.states=Rn;U.options=Kn;U.className=Yt;U.defaultOptions=it;U.moduleName=at;U.folderName=qt;var st="popup",Wt=st;import{jsx as Qt}from"react/jsx-runtime";var Zt="k-popup",Bn=[],wn={},jt={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Qt(U,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":d,children:Qt("div",{...c,className:i(e.className,Zt),children:e.children})})};K.states=Bn;K.options=wn;K.className=Zt;K.defaultOptions=jt;K.moduleName=st;K.folderName=Wt;var eo="time-selector",to="timeselector";import{Fragment as oo,jsx as Re,jsxs as no}from"react/jsx-runtime";var rt="k-timeselector",zn=[],Dn={size:[l.undefined,l.small,l.medium,l.large]},Fn={},X=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:r,...d}=e,c=n.map(function(m,x){let h=!1,b=!0;return m===r&&(h=!0),(x===0||m==="tt")&&(b=!1),Re(lt,{type:m,focus:h,separator:b},x)});return no("div",{...d,className:i(e.className,rt,I(rt,{size:t})),role:"group","aria-label":"Time selector",children:[Re(oo,{children:o}),Re(oo,{children:a}),no("div",{className:"k-time-list-container",children:[Re("span",{className:"k-time-highlight"}),c]})]})};X.states=zn;X.options=Dn;X.className=rt;X.defaultOptions=Fn;X.moduleName=eo;X.folderName=to;import{Fragment as Un,jsx as te,jsxs as ct}from"react/jsx-runtime";var Vn=[s.focus],lt=e=>{let{type:t,focus:o,separator:a,...n}=e,r,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":r="Day";break;case"HH":r="Hour";break;case"mm":r="Minute";break;case"ss":r="Second";break;case"SSS":r="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":r="AM/PM",d=["AM","PM"];break;default:r="Column Name";break}let c=d.map((m,x)=>te("li",{className:"k-item",role:"option","aria-selected":"false",children:te("span",{children:m})},x));return ct(Un,{children:[a&&te("div",{className:"k-time-separator",children:":"}),ct("div",{...n,className:i(e.className,"k-time-list-wrapper",z("k-time-list-wrapper",{focus:o})),children:[te("span",{className:"k-title",children:r}),te("div",{className:"k-time-list",role:"listbox","aria-label":r,children:ct("div",{className:"k-content k-scrollable k-time-container",children:[te("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),te("div",{className:"k-scrollable-placeholder"})]})})]})]})};lt.states=Vn;import{jsx as Xn,jsxs as Jn}from"react/jsx-runtime";var $n="k-time-header",de=e=>{let{title:t,...o}=e;return Jn("div",{...o,className:i(e.className,$n),children:[t!=null&&Xn("span",{className:"k-title",children:t}),e.children]})};var dt="action-buttons",ao=dt;import{jsx as Yn}from"react/jsx-runtime";var Ke="k-actions",qn=[],Gn={},mt={alignment:"start",orientation:"horizontal"},C=e=>{let{alignment:t=mt.alignment,orientation:o=mt.orientation,...a}=e;return Yn("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};C.states=qn;C.options=Gn;C.className=Ke;C.defaultOptions=mt;C.moduleName=dt;C.folderName=ao;import{jsx as Zr,jsxs as jr}from"react/jsx-runtime";import{Fragment as cl,jsx as rl,jsxs as ll}from"react/jsx-runtime";import{Fragment as Sl,jsx as hl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Cl,jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",so={alignment:"stretched",orientation:"horizontal"},q=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,template:a,as:n=a?"div":C,...r}=e;return Qn(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Wn),children:e.children})};var pt="searchbox",ro=pt;import{jsx as Te,jsxs as ea}from"react/jsx-runtime";var lo="k-searchbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Be={showIcon:!0,showClearButton:!0,icon:"search"},G=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,showIcon:w=Be.showIcon,showClearButton:L=Be.showClearButton,icon:M=Be.icon,"aria-label":E,...v}=e;return ea(y,{...v,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,className:i(e.className,lo),children:[w&&Te(S,{className:"k-input-icon",icon:M}),Te(_,{placeholder:o,value:t,"aria-label":E}),Te(F,{...e}),Te(R,{...e}),L&&Te(H,{...e})]})};G.states=Zn;G.options=jn;G.className=lo;G.defaultOptions=Be;G.moduleName=pt;G.folderName=ro;import{jsx as jl}from"react/jsx-runtime";var ut="textbox",co=ut;import{Fragment as mo,jsx as Y,jsxs as ft}from"react/jsx-runtime";var po="k-textbox",ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},we={showClearButton:!0,showValidationIcon:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:a,separators:n=we.separators,showClearButton:r=we.showClearButton,showValidationIcon:d=we.showValidationIcon,prefix:c,suffix:m,type:x,value:h,placeholder:b,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,id:ne,"aria-label":xe,"aria-describedby":Ne,...j}=e;return ft(y,{...j,size:t,rounded:o,fillMode:a,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,className:i(e.className,po),children:[c&&ft(mo,{children:[Y(ie,{children:c}),n&&Y(re,{})]}),Y(_,{id:ne,placeholder:b,value:h,type:x,disabled:P,"aria-label":xe,"aria-describedby":Ne,"aria-invalid":M?"true":void 0}),d&&Y(R,{valid:L,invalid:M,loading:v,disabled:P}),Y(F,{loading:v,disabled:P}),r&&Y(H,{loading:v,disabled:P,readonly:$,value:h}),m&&ft(mo,{children:[n&&Y(re,{}),Y(se,{children:m})]})]})};k.states=ta;k.options=oa;k.className=po;k.defaultOptions=we;k.moduleName=ut;k.folderName=co;var Me=k;import{jsx as na}from"react/jsx-runtime";var uo=e=>na(Me,{...e});import{Fragment as hc,jsx as Nc}from"react/jsx-runtime";import{Fragment as Mc,jsx as Tc}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as xt}from"react/jsx-runtime";var aa=k.states,ia=k.defaultOptions,sa=k.options,ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],la=[],me=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?xt(S,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?xt(ee,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),xt(uo,{value:"Value",style:{width:300},...o,...a})};me.options=sa;me.states=aa;me.variants=la;me.defaultOptions=ia;me.modifiers=ra;me.className=k.className;import{jsx as W,jsxs as Nt}from"react/jsx-runtime";var fo="k-actionsheet-titlebar",ca={},B=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:x,titleId:h,children:b,...A}=e;return Nt("div",{...A,className:i(e.className,fo),children:[Nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&W("div",{className:"k-actionsheet-actions",children:a}),!b&&Nt("div",{className:"k-actionsheet-title",id:h,children:[t&&W("div",{className:"k-text-center",children:t}),o&&W("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&W("div",{className:"k-actionsheet-title",id:h,children:b}),n&&W("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&W("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?W(k,{value:c,placeholder:m,size:x?"large":"medium","aria-label":t||m||"Input"}):W(G,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};B.className=fo;B.defaultOptions=ca;import{jsx as ht,jsxs as ua}from"react/jsx-runtime";var bt="k-actionsheet-view",da=[],ma={},pa={},pe=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:d,...c}=e,m=n?.type===B&&ht(B,{adaptive:t,titleId:d,...n?.props}),x=r?.type===q&&ht(q,{...r?.props});return ua("div",{...c,className:i(e.className,bt,{[`${bt}-animated`]:o}),children:[m,ht("div",{className:"k-actionsheet-content",children:a}),x]})};pe.states=da;pe.options=ma;pe.className=bt;pe.defaultOptions=pa;var Ee="action-sheet",ze=Ee;var St="overlay",xo=St;import{jsx as ha}from"react/jsx-runtime";var No="k-overlay",fa=[],xa={},Na={},Q=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,No),children:e.children})};Q.states=fa;Q.options=xa;Q.className=No;Q.defaultOptions=Na;Q.moduleName=St;Q.folderName=xo;import{jsx as De,jsxs as va}from"react/jsx-runtime";var ho="k-actionsheet",ba=[],Sa={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:a=Ie.adaptive,overlay:n=Ie.overlay,template:r,children:d,header:c,footer:m,id:x,...h}=e,b=x&&!r&&c?`${x}-title`:void 0;return va("div",{className:"k-actionsheet-container",children:[n&&De(Q,{}),De(U,{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:De("div",{...h,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":b,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||De(pe,{header:c,footer:m,adaptive:a,titleId:b,...e,children:d})})})]})};O.states=ba;O.options=Sa;O.className=ho;O.defaultOptions=Ie;O.moduleName=Ee;O.folderName=ze;import{jsx as Ea}from"react/jsx-runtime";var bo="k-actionsheet-container",Aa=[],Ta={},Ma={},ue=e=>{let{children:t,...o}=e;return Ea("div",{...o,className:bo,children:t})};ue.states=Aa;ue.options=Ta;ue.className=bo;ue.defaultOptions=Ma;ue.moduleName=Ee;ue.folderName=ze;import{jsx as Ia}from"react/jsx-runtime";var vt=e=>{let{...t}=e;return Ia("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ga,jsx as ye,jsxs as At}from"react/jsx-runtime";var Tt="k-actionsheet-item",ya=[s.hover,s.focus,s.selected,s.disabled],Z=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:d,disabled:c,...m}=e;return At("span",{...m,className:i(e.className,Tt,z(Tt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&ye(ga,{children:At("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(S,{className:"k-actionsheet-item-icon",icon:t})}),At("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),a&&ye("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Z.states=ya;Z.className=Tt;import{jsx as yd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as g,jsxs as Mt}from"react/jsx-runtime";var Oa=O.options,Ca=O.states,vo={...O.defaultOptions,variant:"normal"},ka=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],La=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],fe=e=>{let{variant:t,modifiers:o,...a}={...vo,...e},n={},r=Mt(vt,{children:[g(Z,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(Z,{text:"Add to Favorites",iconName:"heart"}),g(Z,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(Z,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?g(O,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Cancel",size:"large",themeColor:"base"}),g(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):g(O,{...a,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Apply",themeColor:"primary"}),g(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};fe.options=Oa;fe.states=Ca;fe.variants=ka;fe.defaultOptions=vo;fe.modifiers=La;fe.className=O.className;var Ao="time-picker",To="timepicker";import{Fragment as _a,jsx as T,jsxs as ge}from"react/jsx-runtime";var Mo="k-timepicker",Pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Eo={showClearButton:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:r,value:d,placeholder:c,showClearButton:m=Eo.showClearButton,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,opened:v,adaptive:P,adaptiveSettings:$,adaptiveTitle:ne,adaptiveSubtitle:xe,...Ne}=e,j=It("timepicker-popup");return ge(_a,{children:[ge(y,{...Ne,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,className:i(e.className,Mo),children:[T(ie,{children:n}),T(_,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":v?"true":"false","aria-controls":v||P?j:void 0,"aria-invalid":A?"true":void 0,"aria-label":"Select time",disabled:M}),T(R,{valid:b,invalid:A,loading:L,disabled:M}),T(F,{loading:L,disabled:M}),m&&T(H,{loading:L,disabled:M,readonly:E,value:d}),T(se,{children:r}),T(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:M})]}),v&&ge(K,{id:j,className:"k-list-container k-timepicker-popup",children:[T(X,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(de,{title:"10:00:00 AM",children:T(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),ge(C,{alignment:"stretched",className:"k-time-footer",children:[T(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(f,{className:"k-time-cancel",children:"Cancel"})]})]}),P&&T(O,{adaptive:!0,id:j,...$,header:T(B,{actionsEnd:T(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ne,subtitle:xe}),footer:ge(q,{children:[T(f,{text:"Cancel",size:"large"}),T(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(X,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(de,{title:"10:00:00 AM",children:T(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};oe.states=Pa;oe.options=Ha;oe.className=Mo;oe.defaultOptions=Eo;oe.moduleName=Ao;oe.folderName=To;var Io=oe;import{jsx as Ra}from"react/jsx-runtime";var Tm=e=>Ra(Io,{disabled:!0,value:"10:00 AM",...e});export{Tm as TimePickerDisabled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var E=(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.themeColor}`]:t.themeColor},{"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-rounded-none":t.rounded==="none"}),z=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:d,active:c,selected:m,disabled:x,indeterminate:h,loading:b,empty:A,readonly:w,highlighted:L,...M}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":x,"k-indeterminate":h&&!d,"k-loading":b,"k-empty":A,"k-readonly":w,"k-highlighted":L},Object.keys(M).reduce((I,v)=>(v.startsWith("k-")?I[v]=M[v]:I[`k-${v}`]=M[v],I),{}))};function It(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",tint:"tint",flat:"flat",outline:"outline",clear:"clear",link:"link"},D={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",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",generating:"generating",expanded:"expanded"};var Fe={};function Et(e){return Fe[e]=(Fe[e]||0)+1,`k-${e}-${Fe[e]}`}var he="input",Oe=he;import{jsx as ko}from"react/jsx-runtime";var Ce="k-input",go=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Co={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return ko("span",{...b,className:i(e.className,Ce,E(Ce,{size:m,rounded:x,fillMode:h}),z(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=go;y.options=Oo;y.className=Ce;y.defaultOptions=Co;y.moduleName=he;y.folderName=Oe;import{jsx as _o}from"react/jsx-runtime";var ke="k-picker",Lo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Po={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Ho={},ae=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return _o("span",{...b,className:i(e.className,ke,E(ke,{size:m,rounded:x,fillMode:h}),z(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Lo;ae.options=Po;ae.className=ke;ae.defaultOptions=Ho;ae.moduleName=he;ae.folderName=Oe;import{Fragment as wo,jsx as yt}from"react/jsx-runtime";var Ve="k-font-icon",Ro=[],Ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Bo={},be=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...d}=e;return a?yt("span",{...d,className:i(e.className,Ve,E(Ve,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):yt(wo,{})};be.states=Ro;be.options=Ko;be.className=Ve;be.defaultOptions=Bo;var gt=be;import{Fragment as Fo,jsx as Le}from"react/jsx-runtime";var Ue="k-svg-icon",zo=[],Do={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},$e={viewBox:"0 0 24 24",variant:D.outline},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=$e.viewBox,variant:d=$e.variant,icon:c,...m}=e;if(!c)return Le(Fo,{});if(c==="none")return Le("span",{...m,className:i(e.className,Ue,E("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Le("span",{...m,className:i(e.className,Ue,E("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Se.states=zo;Se.options=Do;Se.className=Ue;Se.defaultOptions=$e;var Xe=Se;import*as Je from"@progress/kendo-svg-icons";var Ot="icon",Ct="icons";import{useContext as Uo}from"react";import{createContext as Vo}from"react";var kt=Vo({iconsType:"svg"});import{Fragment as Lt,jsx as ve}from"react/jsx-runtime";var Pe="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:D.outline},S=e=>{let{iconsType:t}=Uo(kt),{size:o,themeColor:a,icon:n,type:r=t||He.type,rotate:d,flip:c,viewBox:m=He.viewBox,variant:x=He.variant,...h}=e;if(!n)return ve(Lt,{});if((t||r)==="svg"){if(n==="none")return ve(Xe,{...h,className:i(e.className,Pe),icon:n,size:o,variant:x});let A=Je[n]?n:$o(`${n}-icon`);return Je[A]?ve(Xe,{...h,className:i(e.className,Pe),icon:Je[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:x}):ve(Lt,{})}return ve(gt,{...h,className:i(e.className,Pe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};S.states=Xo;S.options=Jo;S.defaultOptions=He;S.className=Pe;S.moduleName=Ot;S.folderName=Ct;import{Fragment as Yo,jsx as qe}from"react/jsx-runtime";var Pt="k-clear-value",qo=[s.disabled,s.loading,s.readonly],Go={},H=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?qe(Yo,{}):qe("span",{className:i(e.className,Pt),children:qe(S,{icon:"x"})})};H.states=qo;H.options=Go;H.className=Pt;import{jsx as Zo}from"react/jsx-runtime";var Ge="k-input-inner",Wo=[],Qo={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},_=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:a=_e.placeholder,autocomplete:n=_e.autocomplete,disabled:r,readOnly:d,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,Ge,E(Ge,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};_.states=Wo;_.options=Qo;_.className=Ge;import{jsx as Ht,jsxs as tn}from"react/jsx-runtime";var Ye="k-input-inner",jo=[],en={},We=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...d}=e;return tn("span",{...d,className:i(e.className,Ye,E(Ye,e)),children:[n,!n&&r&&Ht(S,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};We.states=jo;We.options=en;We.className=Ye;import{jsx as an}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_t={value:"",placeholder:""},Ze=e=>{let{value:t=_t.value,placeholder:o=_t.placeholder,rows:a,disabled:n,...r}=e;return an("textarea",{...r,className:i(e.className,Qe,E(Qe,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Ze.states=on;Ze.options=nn;Ze.className=Qe;import{Fragment as rn,jsx as Rt}from"react/jsx-runtime";var Kt="k-input-loading-icon",sn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Rt(rn,{}):Rt("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=sn;F.className=Kt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],cn={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Bt(dn,{}):Bt(S,{className:i(wt),icon:r})};R.states=ln;R.options=cn;R.className=wt;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var mn="k-input-prefix",pn={direction:"horizontal"},ie=e=>{let{direction:t=pn.direction,...o}=e;return e.children?zt("span",{...o,className:i(mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(un,{})};import{Fragment as Nn,jsx as Dt}from"react/jsx-runtime";var fn="k-input-suffix",xn={direction:"horizontal"},se=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Dt("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(Nn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ft="k-input-separator",hn={direction:"vertical"},re=e=>{let{direction:t=hn.direction,...o}=e;return bn("span",{...o,className:i(Ft,e.className,{[`${Ft}-${t}`]:t})})};var je="button",Vt=je;import{Fragment as et,jsx as J,jsxs as Ut}from"react/jsx-runtime";var Ae="k-button",Sn=["icon-button"],vn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:d=tt.showArrow,arrowIconName:c=tt.arrowIconName,variant:m,hover:x,focus:h,active:b,selected:A,disabled:w,togglable:L,ariaDisabled:M,icon:I,endIcon:v,iconSize:P,text:$,iconClassName:ne,className:xe,...Ne}=e,j=I!=null,yo=e.children!==void 0;return Ut(t,{className:i(xe,Ae,It(Ae,m),E(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),z(Ae,{hover:x,focus:h,active:b,disabled:w||M,selected:A}),{"k-icon-button":!$&&!yo&&j}),"aria-pressed":L?A?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof I=="string"&&I&&J(S,{className:i(ne,"k-button-icon"),icon:I,size:P}),I&&typeof I!="string"&&J(et,{children:I}),$?Ut(et,{children:[$&&J("span",{className:"k-button-text",children:$}),e.children]}):e.children&&J("span",{className:"k-button-text",children:e.children}),typeof v=="string"&&v&&J(S,{className:i(ne,"k-button-icon"),icon:v,size:P}),v&&typeof v!="string"&&J(et,{children:v}),d&&J("span",{className:"k-menu-button-arrow k-button-arrow",children:J(S,{icon:c})})]})};f.states=vn;f.options=An;f.variants=Sn;f.className=Ae;f.defaultOptions=tt;f.moduleName=je;f.folderName=Vt;import{jsx as Tn}from"react/jsx-runtime";var ee=e=>Tn(f,{children:"Button",...e});import{Fragment as $t,jsx as V,jsxs as ot}from"react/jsx-runtime";var Mn=y.states,In=y.defaultOptions,En=y.options,yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gn=[],le=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,x=t?.suffix,h=t?.["clear-button"],b=t?.["validation-icon"],A=t?.separators;return ot(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&ot($t,{children:[V(ie,{children:V(S,{icon:"lock"})}),A&&V(re,{})]}),V(_,{placeholder:"Placeholder",value:"Value"}),b&&V(R,{valid:o,invalid:a,loading:n,disabled:r}),V(F,{loading:n,disabled:r}),h&&V(H,{loading:n,disabled:r,readonly:d,value:"Value"}),x&&ot($t,{children:[A&&V(re,{}),V(se,{children:V(ee,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};le.options=En;le.states=Mn;le.variants=gn;le.defaultOptions=In;le.modifiers=yn;le.className=y.className;import{jsx as On}from"react/jsx-runtime";var Xt=e=>On(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Cn}from"react/jsx-runtime";var Jt=e=>Cn(f,{icon:"folder",children:"Button",...e});import{jsx as Zs}from"react/jsx-runtime";import{jsx as nt}from"react/jsx-runtime";var kn=f.options,Ln=f.states,Pn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return nt(Xt,{...o,icon:"star"});case"icon-and-text":return nt(Jt,{...o,icon:"star",children:"Button"});default:return nt(ee,{...o,children:"Button"})}};ce.options=kn;ce.states=Ln;ce.variants=Hn;ce.defaultOptions=Pn;ce.modifiers=_n;ce.className=f.className;var at="popup",qt=at;import{jsx as Gt}from"react/jsx-runtime";var Yt="k-animation-container",Rn=[],Kn={},it={positionMode:"absolute",shown:!0},U=e=>{let{positionMode:t=it.positionMode,shown:o=it.shown,animationStyle:a,offset:n,...r}=e;return Gt("div",{...r,style:{...n,...e.style},className:i(e.className,Yt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:a,children:e.children})})};U.states=Rn;U.options=Kn;U.className=Yt;U.defaultOptions=it;U.moduleName=at;U.folderName=qt;var st="popup",Wt=st;import{jsx as Qt}from"react/jsx-runtime";var Zt="k-popup",Bn=[],wn={},jt={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Qt(U,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":d,children:Qt("div",{...c,className:i(e.className,Zt),children:e.children})})};K.states=Bn;K.options=wn;K.className=Zt;K.defaultOptions=jt;K.moduleName=st;K.folderName=Wt;var eo="time-selector",to="timeselector";import{Fragment as oo,jsx as Re,jsxs as no}from"react/jsx-runtime";var rt="k-timeselector",zn=[],Dn={size:[l.undefined,l.small,l.medium,l.large]},Fn={},X=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:r,...d}=e,c=n.map(function(m,x){let h=!1,b=!0;return m===r&&(h=!0),(x===0||m==="tt")&&(b=!1),Re(lt,{type:m,focus:h,separator:b},x)});return no("div",{...d,className:i(e.className,rt,E(rt,{size:t})),role:"group","aria-label":"Time selector",children:[Re(oo,{children:o}),Re(oo,{children:a}),no("div",{className:"k-time-list-container",children:[Re("span",{className:"k-time-highlight"}),c]})]})};X.states=zn;X.options=Dn;X.className=rt;X.defaultOptions=Fn;X.moduleName=eo;X.folderName=to;import{Fragment as Un,jsx as te,jsxs as ct}from"react/jsx-runtime";var Vn=[s.focus],lt=e=>{let{type:t,focus:o,separator:a,...n}=e,r,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":r="Day";break;case"HH":r="Hour";break;case"mm":r="Minute";break;case"ss":r="Second";break;case"SSS":r="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":r="AM/PM",d=["AM","PM"];break;default:r="Column Name";break}let c=d.map((m,x)=>te("li",{className:"k-item",role:"option","aria-selected":"false",children:te("span",{children:m})},x));return ct(Un,{children:[a&&te("div",{className:"k-time-separator",children:":"}),ct("div",{...n,className:i(e.className,"k-time-list-wrapper",z("k-time-list-wrapper",{focus:o})),children:[te("span",{className:"k-title",children:r}),te("div",{className:"k-time-list",role:"listbox","aria-label":r,children:ct("div",{className:"k-content k-scrollable k-time-container",children:[te("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),te("div",{className:"k-scrollable-placeholder"})]})})]})]})};lt.states=Vn;import{jsx as Xn,jsxs as Jn}from"react/jsx-runtime";var $n="k-time-header",de=e=>{let{title:t,...o}=e;return Jn("div",{...o,className:i(e.className,$n),children:[t!=null&&Xn("span",{className:"k-title",children:t}),e.children]})};var dt="action-buttons",ao=dt;import{jsx as Yn}from"react/jsx-runtime";var Ke="k-actions",qn=[],Gn={},mt={alignment:"start",orientation:"horizontal"},C=e=>{let{alignment:t=mt.alignment,orientation:o=mt.orientation,...a}=e;return Yn("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};C.states=qn;C.options=Gn;C.className=Ke;C.defaultOptions=mt;C.moduleName=dt;C.folderName=ao;import{jsx as Zr,jsxs as jr}from"react/jsx-runtime";import{Fragment as cl,jsx as rl,jsxs as ll}from"react/jsx-runtime";import{Fragment as Sl,jsx as hl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Cl,jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",so={alignment:"stretched",orientation:"horizontal"},q=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,template:a,as:n=a?"div":C,...r}=e;return Qn(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Wn),children:e.children})};var pt="searchbox",ro=pt;import{jsx as Te,jsxs as ea}from"react/jsx-runtime";var lo="k-searchbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Be={showIcon:!0,showClearButton:!0,icon:"search"},G=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,showIcon:w=Be.showIcon,showClearButton:L=Be.showClearButton,icon:M=Be.icon,"aria-label":I,...v}=e;return ea(y,{...v,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,className:i(e.className,lo),children:[w&&Te(S,{className:"k-input-icon",icon:M}),Te(_,{placeholder:o,value:t,"aria-label":I}),Te(F,{...e}),Te(R,{...e}),L&&Te(H,{...e})]})};G.states=Zn;G.options=jn;G.className=lo;G.defaultOptions=Be;G.moduleName=pt;G.folderName=ro;import{jsx as jl}from"react/jsx-runtime";var ut="textbox",co=ut;import{Fragment as mo,jsx as Y,jsxs as ft}from"react/jsx-runtime";var po="k-textbox",ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},we={showClearButton:!0,showValidationIcon:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:a,separators:n=we.separators,showClearButton:r=we.showClearButton,showValidationIcon:d=we.showValidationIcon,prefix:c,suffix:m,type:x,value:h,placeholder:b,hover:A,focus:w,valid:L,invalid:M,required:I,loading:v,disabled:P,readonly:$,id:ne,"aria-label":xe,"aria-describedby":Ne,...j}=e;return ft(y,{...j,size:t,rounded:o,fillMode:a,hover:A,focus:w,valid:L,invalid:M,required:I,loading:v,disabled:P,readonly:$,className:i(e.className,po),children:[c&&ft(mo,{children:[Y(ie,{children:c}),n&&Y(re,{})]}),Y(_,{id:ne,placeholder:b,value:h,type:x,disabled:P,"aria-label":xe,"aria-describedby":Ne,"aria-invalid":M?"true":void 0}),d&&Y(R,{valid:L,invalid:M,loading:v,disabled:P}),Y(F,{loading:v,disabled:P}),r&&Y(H,{loading:v,disabled:P,readonly:$,value:h}),m&&ft(mo,{children:[n&&Y(re,{}),Y(se,{children:m})]})]})};k.states=ta;k.options=oa;k.className=po;k.defaultOptions=we;k.moduleName=ut;k.folderName=co;var Me=k;import{jsx as na}from"react/jsx-runtime";var uo=e=>na(Me,{...e});import{Fragment as hc,jsx as Nc}from"react/jsx-runtime";import{Fragment as Mc,jsx as Tc}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as xt}from"react/jsx-runtime";var aa=k.states,ia=k.defaultOptions,sa=k.options,ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],la=[],me=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?xt(S,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?xt(ee,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),xt(uo,{value:"Value",style:{width:300},...o,...a})};me.options=sa;me.states=aa;me.variants=la;me.defaultOptions=ia;me.modifiers=ra;me.className=k.className;import{jsx as W,jsxs as Nt}from"react/jsx-runtime";var fo="k-actionsheet-titlebar",ca={},B=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:x,titleId:h,children:b,...A}=e;return Nt("div",{...A,className:i(e.className,fo),children:[Nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&W("div",{className:"k-actionsheet-actions",children:a}),!b&&Nt("div",{className:"k-actionsheet-title",id:h,children:[t&&W("div",{className:"k-text-center",children:t}),o&&W("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&W("div",{className:"k-actionsheet-title",id:h,children:b}),n&&W("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&W("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?W(k,{value:c,placeholder:m,size:x?"large":"medium","aria-label":t||m||"Input"}):W(G,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};B.className=fo;B.defaultOptions=ca;import{jsx as ht,jsxs as ua}from"react/jsx-runtime";var bt="k-actionsheet-view",da=[],ma={},pa={},pe=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:d,...c}=e,m=n?.type===B&&ht(B,{adaptive:t,titleId:d,...n?.props}),x=r?.type===q&&ht(q,{...r?.props});return ua("div",{...c,className:i(e.className,bt,{[`${bt}-animated`]:o}),children:[m,ht("div",{className:"k-actionsheet-content",children:a}),x]})};pe.states=da;pe.options=ma;pe.className=bt;pe.defaultOptions=pa;var Ie="action-sheet",ze=Ie;var St="overlay",xo=St;import{jsx as ha}from"react/jsx-runtime";var No="k-overlay",fa=[],xa={},Na={},Q=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,No),children:e.children})};Q.states=fa;Q.options=xa;Q.className=No;Q.defaultOptions=Na;Q.moduleName=St;Q.folderName=xo;import{jsx as De,jsxs as va}from"react/jsx-runtime";var ho="k-actionsheet",ba=[],Sa={},Ee={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ee.side,fullscreen:o=Ee.fullscreen,adaptive:a=Ee.adaptive,overlay:n=Ee.overlay,template:r,children:d,header:c,footer:m,id:x,...h}=e,b=x&&!r&&c?`${x}-title`:void 0;return va("div",{className:"k-actionsheet-container",children:[n&&De(Q,{}),De(U,{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:De("div",{...h,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":b,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||De(pe,{header:c,footer:m,adaptive:a,titleId:b,...e,children:d})})})]})};O.states=ba;O.options=Sa;O.className=ho;O.defaultOptions=Ee;O.moduleName=Ie;O.folderName=ze;import{jsx as Ia}from"react/jsx-runtime";var bo="k-actionsheet-container",Aa=[],Ta={},Ma={},ue=e=>{let{children:t,...o}=e;return Ia("div",{...o,className:bo,children:t})};ue.states=Aa;ue.options=Ta;ue.className=bo;ue.defaultOptions=Ma;ue.moduleName=Ie;ue.folderName=ze;import{jsx as Ea}from"react/jsx-runtime";var vt=e=>{let{...t}=e;return Ea("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ga,jsx as ye,jsxs as At}from"react/jsx-runtime";var Tt="k-actionsheet-item",ya=[s.hover,s.focus,s.selected,s.disabled],Z=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:d,disabled:c,...m}=e;return At("span",{...m,className:i(e.className,Tt,z(Tt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&ye(ga,{children:At("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(S,{className:"k-actionsheet-item-icon",icon:t})}),At("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),a&&ye("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Z.states=ya;Z.className=Tt;import{jsx as yd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as g,jsxs as Mt}from"react/jsx-runtime";var Oa=O.options,Ca=O.states,vo={...O.defaultOptions,variant:"normal"},ka=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],La=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],fe=e=>{let{variant:t,modifiers:o,...a}={...vo,...e},n={},r=Mt(vt,{children:[g(Z,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(Z,{text:"Add to Favorites",iconName:"heart"}),g(Z,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(Z,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?g(O,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Cancel",size:"large",themeColor:"base"}),g(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):g(O,{...a,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Apply",themeColor:"primary"}),g(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};fe.options=Oa;fe.states=Ca;fe.variants=ka;fe.defaultOptions=vo;fe.modifiers=La;fe.className=O.className;var Ao="time-picker",To="timepicker";import{Fragment as _a,jsx as T,jsxs as ge}from"react/jsx-runtime";var Mo="k-timepicker",Pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Io={showClearButton:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:r,value:d,placeholder:c,showClearButton:m=Io.showClearButton,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:I,opened:v,adaptive:P,adaptiveSettings:$,adaptiveTitle:ne,adaptiveSubtitle:xe,...Ne}=e,j=Et("timepicker-popup");return ge(_a,{children:[ge(y,{...Ne,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:I,className:i(e.className,Mo),children:[T(ie,{children:n}),T(_,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":v?"true":"false","aria-controls":v||P?j:void 0,"aria-invalid":A?"true":void 0,"aria-label":"Select time",disabled:M}),T(R,{valid:b,invalid:A,loading:L,disabled:M}),T(F,{loading:L,disabled:M}),m&&T(H,{loading:L,disabled:M,readonly:I,value:d}),T(se,{children:r}),T(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:M})]}),v&&ge(K,{id:j,className:"k-list-container k-timepicker-popup",children:[T(X,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(de,{title:"10:00:00 AM",children:T(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),ge(C,{alignment:"stretched",className:"k-time-footer",children:[T(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(f,{className:"k-time-cancel",children:"Cancel"})]})]}),P&&T(O,{adaptive:!0,id:j,...$,header:T(B,{actionsEnd:T(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ne,subtitle:xe}),footer:ge(q,{children:[T(f,{text:"Cancel",size:"large"}),T(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(X,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(de,{title:"10:00:00 \u0410\u041C",children:T(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};oe.states=Pa;oe.options=Ha;oe.className=Mo;oe.defaultOptions=Io;oe.moduleName=Ao;oe.folderName=To;var Eo=oe;import{jsx as Ra}from"react/jsx-runtime";var Tm=e=>Ra(Eo,{invalid:!0,value:"10:00 AM",...e});export{Tm as TimePickerInvalid};
|
|
1
|
+
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var E=(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.themeColor}`]:t.themeColor},{"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-rounded-none":t.rounded==="none"}),z=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:d,active:c,selected:m,disabled:x,indeterminate:h,loading:b,empty:A,readonly:w,highlighted:L,...M}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":x,"k-indeterminate":h&&!d,"k-loading":b,"k-empty":A,"k-readonly":w,"k-highlighted":L},Object.keys(M).reduce((I,v)=>(v.startsWith("k-")?I[v]=M[v]:I[`k-${v}`]=M[v],I),{}))};function It(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",tint:"tint",flat:"flat",outline:"outline",clear:"clear",link:"link"},D={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",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",generating:"generating",expanded:"expanded"};var Fe={};function Et(e){return Fe[e]=(Fe[e]||0)+1,`k-${e}-${Fe[e]}`}var he="input",Oe=he;import{jsx as ko}from"react/jsx-runtime";var Ce="k-input",go=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Co={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return ko("span",{...b,className:i(e.className,Ce,E(Ce,{size:m,rounded:x,fillMode:h}),z(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=go;y.options=Oo;y.className=Ce;y.defaultOptions=Co;y.moduleName=he;y.folderName=Oe;import{jsx as _o}from"react/jsx-runtime";var ke="k-picker",Lo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Po={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Ho={},ae=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return _o("span",{...b,className:i(e.className,ke,E(ke,{size:m,rounded:x,fillMode:h}),z(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Lo;ae.options=Po;ae.className=ke;ae.defaultOptions=Ho;ae.moduleName=he;ae.folderName=Oe;import{Fragment as wo,jsx as yt}from"react/jsx-runtime";var Ve="k-font-icon",Ro=[],Ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Bo={},be=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...d}=e;return a?yt("span",{...d,className:i(e.className,Ve,E(Ve,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):yt(wo,{})};be.states=Ro;be.options=Ko;be.className=Ve;be.defaultOptions=Bo;var gt=be;import{Fragment as Fo,jsx as Le}from"react/jsx-runtime";var Ue="k-svg-icon",zo=[],Do={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},$e={viewBox:"0 0 24 24",variant:D.outline},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=$e.viewBox,variant:d=$e.variant,icon:c,...m}=e;if(!c)return Le(Fo,{});if(c==="none")return Le("span",{...m,className:i(e.className,Ue,E("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Le("span",{...m,className:i(e.className,Ue,E("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Se.states=zo;Se.options=Do;Se.className=Ue;Se.defaultOptions=$e;var Xe=Se;import*as Je from"@progress/kendo-svg-icons";var Ot="icon",Ct="icons";import{useContext as Uo}from"react";import{createContext as Vo}from"react";var kt=Vo({iconsType:"svg"});import{Fragment as Lt,jsx as ve}from"react/jsx-runtime";var Pe="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:D.outline},S=e=>{let{iconsType:t}=Uo(kt),{size:o,themeColor:a,icon:n,type:r=t||He.type,rotate:d,flip:c,viewBox:m=He.viewBox,variant:x=He.variant,...h}=e;if(!n)return ve(Lt,{});if((t||r)==="svg"){if(n==="none")return ve(Xe,{...h,className:i(e.className,Pe),icon:n,size:o,variant:x});let A=Je[n]?n:$o(`${n}-icon`);return Je[A]?ve(Xe,{...h,className:i(e.className,Pe),icon:Je[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:x}):ve(Lt,{})}return ve(gt,{...h,className:i(e.className,Pe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};S.states=Xo;S.options=Jo;S.defaultOptions=He;S.className=Pe;S.moduleName=Ot;S.folderName=Ct;import{Fragment as Yo,jsx as qe}from"react/jsx-runtime";var Pt="k-clear-value",qo=[s.disabled,s.loading,s.readonly],Go={},H=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?qe(Yo,{}):qe("span",{className:i(e.className,Pt),children:qe(S,{icon:"x"})})};H.states=qo;H.options=Go;H.className=Pt;import{jsx as Zo}from"react/jsx-runtime";var Ge="k-input-inner",Wo=[],Qo={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},_=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:a=_e.placeholder,autocomplete:n=_e.autocomplete,disabled:r,readOnly:d,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,Ge,E(Ge,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};_.states=Wo;_.options=Qo;_.className=Ge;import{jsx as Ht,jsxs as tn}from"react/jsx-runtime";var Ye="k-input-inner",jo=[],en={},We=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...d}=e;return tn("span",{...d,className:i(e.className,Ye,E(Ye,e)),children:[n,!n&&r&&Ht(S,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};We.states=jo;We.options=en;We.className=Ye;import{jsx as an}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_t={value:"",placeholder:""},Ze=e=>{let{value:t=_t.value,placeholder:o=_t.placeholder,rows:a,disabled:n,...r}=e;return an("textarea",{...r,className:i(e.className,Qe,E(Qe,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Ze.states=on;Ze.options=nn;Ze.className=Qe;import{Fragment as rn,jsx as Rt}from"react/jsx-runtime";var Kt="k-input-loading-icon",sn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Rt(rn,{}):Rt("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=sn;F.className=Kt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],cn={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Bt(dn,{}):Bt(S,{className:i(wt),icon:r})};R.states=ln;R.options=cn;R.className=wt;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var mn="k-input-prefix",pn={direction:"horizontal"},ie=e=>{let{direction:t=pn.direction,...o}=e;return e.children?zt("span",{...o,className:i(mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(un,{})};import{Fragment as Nn,jsx as Dt}from"react/jsx-runtime";var fn="k-input-suffix",xn={direction:"horizontal"},se=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Dt("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(Nn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ft="k-input-separator",hn={direction:"vertical"},re=e=>{let{direction:t=hn.direction,...o}=e;return bn("span",{...o,className:i(Ft,e.className,{[`${Ft}-${t}`]:t})})};var je="button",Vt=je;import{Fragment as et,jsx as J,jsxs as Ut}from"react/jsx-runtime";var Ae="k-button",Sn=["icon-button"],vn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:d=tt.showArrow,arrowIconName:c=tt.arrowIconName,variant:m,hover:x,focus:h,active:b,selected:A,disabled:w,togglable:L,ariaDisabled:M,icon:I,endIcon:v,iconSize:P,text:$,iconClassName:ne,className:xe,...Ne}=e,j=I!=null,yo=e.children!==void 0;return Ut(t,{className:i(xe,Ae,It(Ae,m),E(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),z(Ae,{hover:x,focus:h,active:b,disabled:w||M,selected:A}),{"k-icon-button":!$&&!yo&&j}),"aria-pressed":L?A?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof I=="string"&&I&&J(S,{className:i(ne,"k-button-icon"),icon:I,size:P}),I&&typeof I!="string"&&J(et,{children:I}),$?Ut(et,{children:[$&&J("span",{className:"k-button-text",children:$}),e.children]}):e.children&&J("span",{className:"k-button-text",children:e.children}),typeof v=="string"&&v&&J(S,{className:i(ne,"k-button-icon"),icon:v,size:P}),v&&typeof v!="string"&&J(et,{children:v}),d&&J("span",{className:"k-menu-button-arrow k-button-arrow",children:J(S,{icon:c})})]})};f.states=vn;f.options=An;f.variants=Sn;f.className=Ae;f.defaultOptions=tt;f.moduleName=je;f.folderName=Vt;import{jsx as Tn}from"react/jsx-runtime";var ee=e=>Tn(f,{children:"Button",...e});import{Fragment as $t,jsx as V,jsxs as ot}from"react/jsx-runtime";var Mn=y.states,In=y.defaultOptions,En=y.options,yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gn=[],le=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,x=t?.suffix,h=t?.["clear-button"],b=t?.["validation-icon"],A=t?.separators;return ot(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&ot($t,{children:[V(ie,{children:V(S,{icon:"lock"})}),A&&V(re,{})]}),V(_,{placeholder:"Placeholder",value:"Value"}),b&&V(R,{valid:o,invalid:a,loading:n,disabled:r}),V(F,{loading:n,disabled:r}),h&&V(H,{loading:n,disabled:r,readonly:d,value:"Value"}),x&&ot($t,{children:[A&&V(re,{}),V(se,{children:V(ee,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};le.options=En;le.states=Mn;le.variants=gn;le.defaultOptions=In;le.modifiers=yn;le.className=y.className;import{jsx as On}from"react/jsx-runtime";var Xt=e=>On(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Cn}from"react/jsx-runtime";var Jt=e=>Cn(f,{icon:"folder",children:"Button",...e});import{jsx as Zs}from"react/jsx-runtime";import{jsx as nt}from"react/jsx-runtime";var kn=f.options,Ln=f.states,Pn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return nt(Xt,{...o,icon:"star"});case"icon-and-text":return nt(Jt,{...o,icon:"star",children:"Button"});default:return nt(ee,{...o,children:"Button"})}};ce.options=kn;ce.states=Ln;ce.variants=Hn;ce.defaultOptions=Pn;ce.modifiers=_n;ce.className=f.className;var at="popup",qt=at;import{jsx as Gt}from"react/jsx-runtime";var Yt="k-animation-container",Rn=[],Kn={},it={positionMode:"absolute",shown:!0},U=e=>{let{positionMode:t=it.positionMode,shown:o=it.shown,animationStyle:a,offset:n,...r}=e;return Gt("div",{...r,style:{...n,...e.style},className:i(e.className,Yt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:a,children:e.children})})};U.states=Rn;U.options=Kn;U.className=Yt;U.defaultOptions=it;U.moduleName=at;U.folderName=qt;var st="popup",Wt=st;import{jsx as Qt}from"react/jsx-runtime";var Zt="k-popup",Bn=[],wn={},jt={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Qt(U,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":d,children:Qt("div",{...c,className:i(e.className,Zt),children:e.children})})};K.states=Bn;K.options=wn;K.className=Zt;K.defaultOptions=jt;K.moduleName=st;K.folderName=Wt;var eo="time-selector",to="timeselector";import{Fragment as oo,jsx as Re,jsxs as no}from"react/jsx-runtime";var rt="k-timeselector",zn=[],Dn={size:[l.undefined,l.small,l.medium,l.large]},Fn={},X=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:r,...d}=e,c=n.map(function(m,x){let h=!1,b=!0;return m===r&&(h=!0),(x===0||m==="tt")&&(b=!1),Re(lt,{type:m,focus:h,separator:b},x)});return no("div",{...d,className:i(e.className,rt,E(rt,{size:t})),role:"group","aria-label":"Time selector",children:[Re(oo,{children:o}),Re(oo,{children:a}),no("div",{className:"k-time-list-container",children:[Re("span",{className:"k-time-highlight"}),c]})]})};X.states=zn;X.options=Dn;X.className=rt;X.defaultOptions=Fn;X.moduleName=eo;X.folderName=to;import{Fragment as Un,jsx as te,jsxs as ct}from"react/jsx-runtime";var Vn=[s.focus],lt=e=>{let{type:t,focus:o,separator:a,...n}=e,r,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":r="Day";break;case"HH":r="Hour";break;case"mm":r="Minute";break;case"ss":r="Second";break;case"SSS":r="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":r="AM/PM",d=["AM","PM"];break;default:r="Column Name";break}let c=d.map((m,x)=>te("li",{className:"k-item",role:"option","aria-selected":"false",children:te("span",{children:m})},x));return ct(Un,{children:[a&&te("div",{className:"k-time-separator",children:":"}),ct("div",{...n,className:i(e.className,"k-time-list-wrapper",z("k-time-list-wrapper",{focus:o})),children:[te("span",{className:"k-title",children:r}),te("div",{className:"k-time-list",role:"listbox","aria-label":r,children:ct("div",{className:"k-content k-scrollable k-time-container",children:[te("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),te("div",{className:"k-scrollable-placeholder"})]})})]})]})};lt.states=Vn;import{jsx as Xn,jsxs as Jn}from"react/jsx-runtime";var $n="k-time-header",de=e=>{let{title:t,...o}=e;return Jn("div",{...o,className:i(e.className,$n),children:[t!=null&&Xn("span",{className:"k-title",children:t}),e.children]})};var dt="action-buttons",ao=dt;import{jsx as Yn}from"react/jsx-runtime";var Ke="k-actions",qn=[],Gn={},mt={alignment:"start",orientation:"horizontal"},C=e=>{let{alignment:t=mt.alignment,orientation:o=mt.orientation,...a}=e;return Yn("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};C.states=qn;C.options=Gn;C.className=Ke;C.defaultOptions=mt;C.moduleName=dt;C.folderName=ao;import{jsx as Zr,jsxs as jr}from"react/jsx-runtime";import{Fragment as cl,jsx as rl,jsxs as ll}from"react/jsx-runtime";import{Fragment as Sl,jsx as hl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Cl,jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",so={alignment:"stretched",orientation:"horizontal"},q=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,template:a,as:n=a?"div":C,...r}=e;return Qn(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Wn),children:e.children})};var pt="searchbox",ro=pt;import{jsx as Te,jsxs as ea}from"react/jsx-runtime";var lo="k-searchbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Be={showIcon:!0,showClearButton:!0,icon:"search"},G=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,showIcon:w=Be.showIcon,showClearButton:L=Be.showClearButton,icon:M=Be.icon,"aria-label":I,...v}=e;return ea(y,{...v,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,className:i(e.className,lo),children:[w&&Te(S,{className:"k-input-icon",icon:M}),Te(_,{placeholder:o,value:t,"aria-label":I}),Te(F,{...e}),Te(R,{...e}),L&&Te(H,{...e})]})};G.states=Zn;G.options=jn;G.className=lo;G.defaultOptions=Be;G.moduleName=pt;G.folderName=ro;import{jsx as jl}from"react/jsx-runtime";var ut="textbox",co=ut;import{Fragment as mo,jsx as Y,jsxs as ft}from"react/jsx-runtime";var po="k-textbox",ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},we={showClearButton:!0,showValidationIcon:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:a,separators:n=we.separators,showClearButton:r=we.showClearButton,showValidationIcon:d=we.showValidationIcon,prefix:c,suffix:m,type:x,value:h,placeholder:b,hover:A,focus:w,valid:L,invalid:M,required:I,loading:v,disabled:P,readonly:$,id:ne,"aria-label":xe,"aria-describedby":Ne,...j}=e;return ft(y,{...j,size:t,rounded:o,fillMode:a,hover:A,focus:w,valid:L,invalid:M,required:I,loading:v,disabled:P,readonly:$,className:i(e.className,po),children:[c&&ft(mo,{children:[Y(ie,{children:c}),n&&Y(re,{})]}),Y(_,{id:ne,placeholder:b,value:h,type:x,disabled:P,"aria-label":xe,"aria-describedby":Ne,"aria-invalid":M?"true":void 0}),d&&Y(R,{valid:L,invalid:M,loading:v,disabled:P}),Y(F,{loading:v,disabled:P}),r&&Y(H,{loading:v,disabled:P,readonly:$,value:h}),m&&ft(mo,{children:[n&&Y(re,{}),Y(se,{children:m})]})]})};k.states=ta;k.options=oa;k.className=po;k.defaultOptions=we;k.moduleName=ut;k.folderName=co;var Me=k;import{jsx as na}from"react/jsx-runtime";var uo=e=>na(Me,{...e});import{Fragment as hc,jsx as Nc}from"react/jsx-runtime";import{Fragment as Mc,jsx as Tc}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as xt}from"react/jsx-runtime";var aa=k.states,ia=k.defaultOptions,sa=k.options,ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],la=[],me=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?xt(S,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?xt(ee,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),xt(uo,{value:"Value",style:{width:300},...o,...a})};me.options=sa;me.states=aa;me.variants=la;me.defaultOptions=ia;me.modifiers=ra;me.className=k.className;import{jsx as W,jsxs as Nt}from"react/jsx-runtime";var fo="k-actionsheet-titlebar",ca={},B=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:x,titleId:h,children:b,...A}=e;return Nt("div",{...A,className:i(e.className,fo),children:[Nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&W("div",{className:"k-actionsheet-actions",children:a}),!b&&Nt("div",{className:"k-actionsheet-title",id:h,children:[t&&W("div",{className:"k-text-center",children:t}),o&&W("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&W("div",{className:"k-actionsheet-title",id:h,children:b}),n&&W("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&W("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?W(k,{value:c,placeholder:m,size:x?"large":"medium","aria-label":t||m||"Input"}):W(G,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};B.className=fo;B.defaultOptions=ca;import{jsx as ht,jsxs as ua}from"react/jsx-runtime";var bt="k-actionsheet-view",da=[],ma={},pa={},pe=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:d,...c}=e,m=n?.type===B&&ht(B,{adaptive:t,titleId:d,...n?.props}),x=r?.type===q&&ht(q,{...r?.props});return ua("div",{...c,className:i(e.className,bt,{[`${bt}-animated`]:o}),children:[m,ht("div",{className:"k-actionsheet-content",children:a}),x]})};pe.states=da;pe.options=ma;pe.className=bt;pe.defaultOptions=pa;var Ie="action-sheet",ze=Ie;var St="overlay",xo=St;import{jsx as ha}from"react/jsx-runtime";var No="k-overlay",fa=[],xa={},Na={},Q=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,No),children:e.children})};Q.states=fa;Q.options=xa;Q.className=No;Q.defaultOptions=Na;Q.moduleName=St;Q.folderName=xo;import{jsx as De,jsxs as va}from"react/jsx-runtime";var ho="k-actionsheet",ba=[],Sa={},Ee={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ee.side,fullscreen:o=Ee.fullscreen,adaptive:a=Ee.adaptive,overlay:n=Ee.overlay,template:r,children:d,header:c,footer:m,id:x,...h}=e,b=x&&!r&&c?`${x}-title`:void 0;return va("div",{className:"k-actionsheet-container",children:[n&&De(Q,{}),De(U,{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:De("div",{...h,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":b,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||De(pe,{header:c,footer:m,adaptive:a,titleId:b,...e,children:d})})})]})};O.states=ba;O.options=Sa;O.className=ho;O.defaultOptions=Ee;O.moduleName=Ie;O.folderName=ze;import{jsx as Ia}from"react/jsx-runtime";var bo="k-actionsheet-container",Aa=[],Ta={},Ma={},ue=e=>{let{children:t,...o}=e;return Ia("div",{...o,className:bo,children:t})};ue.states=Aa;ue.options=Ta;ue.className=bo;ue.defaultOptions=Ma;ue.moduleName=Ie;ue.folderName=ze;import{jsx as Ea}from"react/jsx-runtime";var vt=e=>{let{...t}=e;return Ea("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ga,jsx as ye,jsxs as At}from"react/jsx-runtime";var Tt="k-actionsheet-item",ya=[s.hover,s.focus,s.selected,s.disabled],Z=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:d,disabled:c,...m}=e;return At("span",{...m,className:i(e.className,Tt,z(Tt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&ye(ga,{children:At("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(S,{className:"k-actionsheet-item-icon",icon:t})}),At("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),a&&ye("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Z.states=ya;Z.className=Tt;import{jsx as yd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as g,jsxs as Mt}from"react/jsx-runtime";var Oa=O.options,Ca=O.states,vo={...O.defaultOptions,variant:"normal"},ka=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],La=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],fe=e=>{let{variant:t,modifiers:o,...a}={...vo,...e},n={},r=Mt(vt,{children:[g(Z,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(Z,{text:"Add to Favorites",iconName:"heart"}),g(Z,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(Z,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?g(O,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Cancel",size:"large",themeColor:"base"}),g(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):g(O,{...a,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Apply",themeColor:"primary"}),g(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};fe.options=Oa;fe.states=Ca;fe.variants=ka;fe.defaultOptions=vo;fe.modifiers=La;fe.className=O.className;var Ao="time-picker",To="timepicker";import{Fragment as _a,jsx as T,jsxs as ge}from"react/jsx-runtime";var Mo="k-timepicker",Pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Io={showClearButton:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:r,value:d,placeholder:c,showClearButton:m=Io.showClearButton,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:I,opened:v,adaptive:P,adaptiveSettings:$,adaptiveTitle:ne,adaptiveSubtitle:xe,...Ne}=e,j=Et("timepicker-popup");return ge(_a,{children:[ge(y,{...Ne,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:I,className:i(e.className,Mo),children:[T(ie,{children:n}),T(_,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":v?"true":"false","aria-controls":v||P?j:void 0,"aria-invalid":A?"true":void 0,"aria-label":"Select time",disabled:M}),T(R,{valid:b,invalid:A,loading:L,disabled:M}),T(F,{loading:L,disabled:M}),m&&T(H,{loading:L,disabled:M,readonly:I,value:d}),T(se,{children:r}),T(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:M})]}),v&&ge(K,{id:j,className:"k-list-container k-timepicker-popup",children:[T(X,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(de,{title:"10:00:00 AM",children:T(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),ge(C,{alignment:"stretched",className:"k-time-footer",children:[T(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(f,{className:"k-time-cancel",children:"Cancel"})]})]}),P&&T(O,{adaptive:!0,id:j,...$,header:T(B,{actionsEnd:T(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ne,subtitle:xe}),footer:ge(q,{children:[T(f,{text:"Cancel",size:"large"}),T(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(X,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(de,{title:"10:00:00 AM",children:T(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};oe.states=Pa;oe.options=Ha;oe.className=Mo;oe.defaultOptions=Io;oe.moduleName=Ao;oe.folderName=To;var Eo=oe;import{jsx as Ra}from"react/jsx-runtime";var Tm=e=>Ra(Eo,{invalid:!0,value:"10:00 AM",...e});export{Tm as TimePickerInvalid};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||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.themeColor}`]:t.themeColor},{"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-rounded-none":t.rounded==="none"}),z=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:d,active:c,selected:m,disabled:x,indeterminate:h,loading:b,empty:A,readonly:w,highlighted:L,...M}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":x,"k-indeterminate":h&&!d,"k-loading":b,"k-empty":A,"k-readonly":w,"k-highlighted":L},Object.keys(M).reduce((E,v)=>(v.startsWith("k-")?E[v]=M[v]:E[`k-${v}`]=M[v],E),{}))};function Et(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",tint:"tint",flat:"flat",outline:"outline",clear:"clear",link:"link"},D={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",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",generating:"generating",expanded:"expanded"};var Fe={};function It(e){return Fe[e]=(Fe[e]||0)+1,`k-${e}-${Fe[e]}`}var he="input",Oe=he;import{jsx as ko}from"react/jsx-runtime";var Ce="k-input",go=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Co={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return ko("span",{...b,className:i(e.className,Ce,I(Ce,{size:m,rounded:x,fillMode:h}),z(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=go;y.options=Oo;y.className=Ce;y.defaultOptions=Co;y.moduleName=he;y.folderName=Oe;import{jsx as _o}from"react/jsx-runtime";var ke="k-picker",Lo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Po={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Ho={},ae=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return _o("span",{...b,className:i(e.className,ke,I(ke,{size:m,rounded:x,fillMode:h}),z(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Lo;ae.options=Po;ae.className=ke;ae.defaultOptions=Ho;ae.moduleName=he;ae.folderName=Oe;import{Fragment as wo,jsx as yt}from"react/jsx-runtime";var Ve="k-font-icon",Ro=[],Ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Bo={},be=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...d}=e;return a?yt("span",{...d,className:i(e.className,Ve,I(Ve,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):yt(wo,{})};be.states=Ro;be.options=Ko;be.className=Ve;be.defaultOptions=Bo;var gt=be;import{Fragment as Fo,jsx as Le}from"react/jsx-runtime";var Ue="k-svg-icon",zo=[],Do={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},$e={viewBox:"0 0 24 24",variant:D.outline},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=$e.viewBox,variant:d=$e.variant,icon:c,...m}=e;if(!c)return Le(Fo,{});if(c==="none")return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Se.states=zo;Se.options=Do;Se.className=Ue;Se.defaultOptions=$e;var Xe=Se;import*as Je from"@progress/kendo-svg-icons";var Ot="icon",Ct="icons";import{useContext as Uo}from"react";import{createContext as Vo}from"react";var kt=Vo({iconsType:"svg"});import{Fragment as Lt,jsx as ve}from"react/jsx-runtime";var Pe="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:D.outline},S=e=>{let{iconsType:t}=Uo(kt),{size:o,themeColor:a,icon:n,type:r=t||He.type,rotate:d,flip:c,viewBox:m=He.viewBox,variant:x=He.variant,...h}=e;if(!n)return ve(Lt,{});if((t||r)==="svg"){if(n==="none")return ve(Xe,{...h,className:i(e.className,Pe),icon:n,size:o,variant:x});let A=Je[n]?n:$o(`${n}-icon`);return Je[A]?ve(Xe,{...h,className:i(e.className,Pe),icon:Je[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:x}):ve(Lt,{})}return ve(gt,{...h,className:i(e.className,Pe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};S.states=Xo;S.options=Jo;S.defaultOptions=He;S.className=Pe;S.moduleName=Ot;S.folderName=Ct;import{Fragment as Yo,jsx as qe}from"react/jsx-runtime";var Pt="k-clear-value",qo=[s.disabled,s.loading,s.readonly],Go={},H=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?qe(Yo,{}):qe("span",{className:i(e.className,Pt),children:qe(S,{icon:"x"})})};H.states=qo;H.options=Go;H.className=Pt;import{jsx as Zo}from"react/jsx-runtime";var Ge="k-input-inner",Wo=[],Qo={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},_=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:a=_e.placeholder,autocomplete:n=_e.autocomplete,disabled:r,readOnly:d,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,Ge,I(Ge,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};_.states=Wo;_.options=Qo;_.className=Ge;import{jsx as Ht,jsxs as tn}from"react/jsx-runtime";var Ye="k-input-inner",jo=[],en={},We=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...d}=e;return tn("span",{...d,className:i(e.className,Ye,I(Ye,e)),children:[n,!n&&r&&Ht(S,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};We.states=jo;We.options=en;We.className=Ye;import{jsx as an}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_t={value:"",placeholder:""},Ze=e=>{let{value:t=_t.value,placeholder:o=_t.placeholder,rows:a,disabled:n,...r}=e;return an("textarea",{...r,className:i(e.className,Qe,I(Qe,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Ze.states=on;Ze.options=nn;Ze.className=Qe;import{Fragment as rn,jsx as Rt}from"react/jsx-runtime";var Kt="k-input-loading-icon",sn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Rt(rn,{}):Rt("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=sn;F.className=Kt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],cn={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Bt(dn,{}):Bt(S,{className:i(wt),icon:r})};R.states=ln;R.options=cn;R.className=wt;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var mn="k-input-prefix",pn={direction:"horizontal"},ie=e=>{let{direction:t=pn.direction,...o}=e;return e.children?zt("span",{...o,className:i(mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(un,{})};import{Fragment as Nn,jsx as Dt}from"react/jsx-runtime";var fn="k-input-suffix",xn={direction:"horizontal"},se=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Dt("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(Nn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ft="k-input-separator",hn={direction:"vertical"},re=e=>{let{direction:t=hn.direction,...o}=e;return bn("span",{...o,className:i(Ft,e.className,{[`${Ft}-${t}`]:t})})};var je="button",Vt=je;import{Fragment as et,jsx as J,jsxs as Ut}from"react/jsx-runtime";var Ae="k-button",Sn=["icon-button"],vn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:d=tt.showArrow,arrowIconName:c=tt.arrowIconName,variant:m,hover:x,focus:h,active:b,selected:A,disabled:w,togglable:L,ariaDisabled:M,icon:E,endIcon:v,iconSize:P,text:$,iconClassName:ne,className:xe,...Ne}=e,j=E!=null,yo=e.children!==void 0;return Ut(t,{className:i(xe,Ae,Et(Ae,m),I(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),z(Ae,{hover:x,focus:h,active:b,disabled:w||M,selected:A}),{"k-icon-button":!$&&!yo&&j}),"aria-pressed":L?A?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof E=="string"&&E&&J(S,{className:i(ne,"k-button-icon"),icon:E,size:P}),E&&typeof E!="string"&&J(et,{children:E}),$?Ut(et,{children:[$&&J("span",{className:"k-button-text",children:$}),e.children]}):e.children&&J("span",{className:"k-button-text",children:e.children}),typeof v=="string"&&v&&J(S,{className:i(ne,"k-button-icon"),icon:v,size:P}),v&&typeof v!="string"&&J(et,{children:v}),d&&J("span",{className:"k-menu-button-arrow k-button-arrow",children:J(S,{icon:c})})]})};f.states=vn;f.options=An;f.variants=Sn;f.className=Ae;f.defaultOptions=tt;f.moduleName=je;f.folderName=Vt;import{jsx as Tn}from"react/jsx-runtime";var ee=e=>Tn(f,{children:"Button",...e});import{Fragment as $t,jsx as V,jsxs as ot}from"react/jsx-runtime";var Mn=y.states,En=y.defaultOptions,In=y.options,yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gn=[],le=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,x=t?.suffix,h=t?.["clear-button"],b=t?.["validation-icon"],A=t?.separators;return ot(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&ot($t,{children:[V(ie,{children:V(S,{icon:"lock"})}),A&&V(re,{})]}),V(_,{placeholder:"Placeholder",value:"Value"}),b&&V(R,{valid:o,invalid:a,loading:n,disabled:r}),V(F,{loading:n,disabled:r}),h&&V(H,{loading:n,disabled:r,readonly:d,value:"Value"}),x&&ot($t,{children:[A&&V(re,{}),V(se,{children:V(ee,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};le.options=In;le.states=Mn;le.variants=gn;le.defaultOptions=En;le.modifiers=yn;le.className=y.className;import{jsx as On}from"react/jsx-runtime";var Xt=e=>On(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Cn}from"react/jsx-runtime";var Jt=e=>Cn(f,{icon:"folder",children:"Button",...e});import{jsx as Zs}from"react/jsx-runtime";import{jsx as nt}from"react/jsx-runtime";var kn=f.options,Ln=f.states,Pn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return nt(Xt,{...o,icon:"star"});case"icon-and-text":return nt(Jt,{...o,icon:"star",children:"Button"});default:return nt(ee,{...o,children:"Button"})}};ce.options=kn;ce.states=Ln;ce.variants=Hn;ce.defaultOptions=Pn;ce.modifiers=_n;ce.className=f.className;var at="popup",qt=at;import{jsx as Gt}from"react/jsx-runtime";var Yt="k-animation-container",Rn=[],Kn={},it={positionMode:"absolute",shown:!0},U=e=>{let{positionMode:t=it.positionMode,shown:o=it.shown,animationStyle:a,offset:n,...r}=e;return Gt("div",{...r,style:{...n,...e.style},className:i(e.className,Yt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:a,children:e.children})})};U.states=Rn;U.options=Kn;U.className=Yt;U.defaultOptions=it;U.moduleName=at;U.folderName=qt;var st="popup",Wt=st;import{jsx as Qt}from"react/jsx-runtime";var Zt="k-popup",Bn=[],wn={},jt={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Qt(U,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":d,children:Qt("div",{...c,className:i(e.className,Zt),children:e.children})})};K.states=Bn;K.options=wn;K.className=Zt;K.defaultOptions=jt;K.moduleName=st;K.folderName=Wt;var eo="time-selector",to="timeselector";import{Fragment as oo,jsx as Re,jsxs as no}from"react/jsx-runtime";var rt="k-timeselector",zn=[],Dn={size:[l.undefined,l.small,l.medium,l.large]},Fn={},X=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:r,...d}=e,c=n.map(function(m,x){let h=!1,b=!0;return m===r&&(h=!0),(x===0||m==="tt")&&(b=!1),Re(lt,{type:m,focus:h,separator:b},x)});return no("div",{...d,className:i(e.className,rt,I(rt,{size:t})),role:"group","aria-label":"Time selector",children:[Re(oo,{children:o}),Re(oo,{children:a}),no("div",{className:"k-time-list-container",children:[Re("span",{className:"k-time-highlight"}),c]})]})};X.states=zn;X.options=Dn;X.className=rt;X.defaultOptions=Fn;X.moduleName=eo;X.folderName=to;import{Fragment as Un,jsx as te,jsxs as ct}from"react/jsx-runtime";var Vn=[s.focus],lt=e=>{let{type:t,focus:o,separator:a,...n}=e,r,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":r="Day";break;case"HH":r="Hour";break;case"mm":r="Minute";break;case"ss":r="Second";break;case"SSS":r="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":r="AM/PM",d=["AM","PM"];break;default:r="Column Name";break}let c=d.map((m,x)=>te("li",{className:"k-item",role:"option","aria-selected":"false",children:te("span",{children:m})},x));return ct(Un,{children:[a&&te("div",{className:"k-time-separator",children:":"}),ct("div",{...n,className:i(e.className,"k-time-list-wrapper",z("k-time-list-wrapper",{focus:o})),children:[te("span",{className:"k-title",children:r}),te("div",{className:"k-time-list",role:"listbox","aria-label":r,children:ct("div",{className:"k-content k-scrollable k-time-container",children:[te("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),te("div",{className:"k-scrollable-placeholder"})]})})]})]})};lt.states=Vn;import{jsx as Xn,jsxs as Jn}from"react/jsx-runtime";var $n="k-time-header",de=e=>{let{title:t,...o}=e;return Jn("div",{...o,className:i(e.className,$n),children:[t!=null&&Xn("span",{className:"k-title",children:t}),e.children]})};var dt="action-buttons",ao=dt;import{jsx as Yn}from"react/jsx-runtime";var Ke="k-actions",qn=[],Gn={},mt={alignment:"start",orientation:"horizontal"},C=e=>{let{alignment:t=mt.alignment,orientation:o=mt.orientation,...a}=e;return Yn("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};C.states=qn;C.options=Gn;C.className=Ke;C.defaultOptions=mt;C.moduleName=dt;C.folderName=ao;import{jsx as Zr,jsxs as jr}from"react/jsx-runtime";import{Fragment as cl,jsx as rl,jsxs as ll}from"react/jsx-runtime";import{Fragment as Sl,jsx as hl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Cl,jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",so={alignment:"stretched",orientation:"horizontal"},q=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,template:a,as:n=a?"div":C,...r}=e;return Qn(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Wn),children:e.children})};var pt="searchbox",ro=pt;import{jsx as Te,jsxs as ea}from"react/jsx-runtime";var lo="k-searchbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Be={showIcon:!0,showClearButton:!0,icon:"search"},G=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,showIcon:w=Be.showIcon,showClearButton:L=Be.showClearButton,icon:M=Be.icon,"aria-label":E,...v}=e;return ea(y,{...v,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,className:i(e.className,lo),children:[w&&Te(S,{className:"k-input-icon",icon:M}),Te(_,{placeholder:o,value:t,"aria-label":E}),Te(F,{...e}),Te(R,{...e}),L&&Te(H,{...e})]})};G.states=Zn;G.options=jn;G.className=lo;G.defaultOptions=Be;G.moduleName=pt;G.folderName=ro;import{jsx as jl}from"react/jsx-runtime";var ut="textbox",co=ut;import{Fragment as mo,jsx as Y,jsxs as ft}from"react/jsx-runtime";var po="k-textbox",ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},we={showClearButton:!0,showValidationIcon:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:a,separators:n=we.separators,showClearButton:r=we.showClearButton,showValidationIcon:d=we.showValidationIcon,prefix:c,suffix:m,type:x,value:h,placeholder:b,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,id:ne,"aria-label":xe,"aria-describedby":Ne,...j}=e;return ft(y,{...j,size:t,rounded:o,fillMode:a,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,className:i(e.className,po),children:[c&&ft(mo,{children:[Y(ie,{children:c}),n&&Y(re,{})]}),Y(_,{id:ne,placeholder:b,value:h,type:x,disabled:P,"aria-label":xe,"aria-describedby":Ne,"aria-invalid":M?"true":void 0}),d&&Y(R,{valid:L,invalid:M,loading:v,disabled:P}),Y(F,{loading:v,disabled:P}),r&&Y(H,{loading:v,disabled:P,readonly:$,value:h}),m&&ft(mo,{children:[n&&Y(re,{}),Y(se,{children:m})]})]})};k.states=ta;k.options=oa;k.className=po;k.defaultOptions=we;k.moduleName=ut;k.folderName=co;var Me=k;import{jsx as na}from"react/jsx-runtime";var uo=e=>na(Me,{...e});import{Fragment as hc,jsx as Nc}from"react/jsx-runtime";import{Fragment as Mc,jsx as Tc}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as xt}from"react/jsx-runtime";var aa=k.states,ia=k.defaultOptions,sa=k.options,ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],la=[],me=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?xt(S,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?xt(ee,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),xt(uo,{value:"Value",style:{width:300},...o,...a})};me.options=sa;me.states=aa;me.variants=la;me.defaultOptions=ia;me.modifiers=ra;me.className=k.className;import{jsx as W,jsxs as Nt}from"react/jsx-runtime";var fo="k-actionsheet-titlebar",ca={},B=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:x,titleId:h,children:b,...A}=e;return Nt("div",{...A,className:i(e.className,fo),children:[Nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&W("div",{className:"k-actionsheet-actions",children:a}),!b&&Nt("div",{className:"k-actionsheet-title",id:h,children:[t&&W("div",{className:"k-text-center",children:t}),o&&W("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&W("div",{className:"k-actionsheet-title",id:h,children:b}),n&&W("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&W("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?W(k,{value:c,placeholder:m,size:x?"large":"medium","aria-label":t||m||"Input"}):W(G,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};B.className=fo;B.defaultOptions=ca;import{jsx as ht,jsxs as ua}from"react/jsx-runtime";var bt="k-actionsheet-view",da=[],ma={},pa={},pe=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:d,...c}=e,m=n?.type===B&&ht(B,{adaptive:t,titleId:d,...n?.props}),x=r?.type===q&&ht(q,{...r?.props});return ua("div",{...c,className:i(e.className,bt,{[`${bt}-animated`]:o}),children:[m,ht("div",{className:"k-actionsheet-content",children:a}),x]})};pe.states=da;pe.options=ma;pe.className=bt;pe.defaultOptions=pa;var Ee="action-sheet",ze=Ee;var St="overlay",xo=St;import{jsx as ha}from"react/jsx-runtime";var No="k-overlay",fa=[],xa={},Na={},Q=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,No),children:e.children})};Q.states=fa;Q.options=xa;Q.className=No;Q.defaultOptions=Na;Q.moduleName=St;Q.folderName=xo;import{jsx as De,jsxs as va}from"react/jsx-runtime";var ho="k-actionsheet",ba=[],Sa={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:a=Ie.adaptive,overlay:n=Ie.overlay,template:r,children:d,header:c,footer:m,id:x,...h}=e,b=x&&!r&&c?`${x}-title`:void 0;return va("div",{className:"k-actionsheet-container",children:[n&&De(Q,{}),De(U,{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:De("div",{...h,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":b,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||De(pe,{header:c,footer:m,adaptive:a,titleId:b,...e,children:d})})})]})};O.states=ba;O.options=Sa;O.className=ho;O.defaultOptions=Ie;O.moduleName=Ee;O.folderName=ze;import{jsx as Ea}from"react/jsx-runtime";var bo="k-actionsheet-container",Aa=[],Ta={},Ma={},ue=e=>{let{children:t,...o}=e;return Ea("div",{...o,className:bo,children:t})};ue.states=Aa;ue.options=Ta;ue.className=bo;ue.defaultOptions=Ma;ue.moduleName=Ee;ue.folderName=ze;import{jsx as Ia}from"react/jsx-runtime";var vt=e=>{let{...t}=e;return Ia("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ga,jsx as ye,jsxs as At}from"react/jsx-runtime";var Tt="k-actionsheet-item",ya=[s.hover,s.focus,s.selected,s.disabled],Z=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:d,disabled:c,...m}=e;return At("span",{...m,className:i(e.className,Tt,z(Tt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&ye(ga,{children:At("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(S,{className:"k-actionsheet-item-icon",icon:t})}),At("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),a&&ye("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Z.states=ya;Z.className=Tt;import{jsx as yd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as g,jsxs as Mt}from"react/jsx-runtime";var Oa=O.options,Ca=O.states,vo={...O.defaultOptions,variant:"normal"},ka=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],La=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],fe=e=>{let{variant:t,modifiers:o,...a}={...vo,...e},n={},r=Mt(vt,{children:[g(Z,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(Z,{text:"Add to Favorites",iconName:"heart"}),g(Z,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(Z,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?g(O,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Cancel",size:"large",themeColor:"base"}),g(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):g(O,{...a,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Apply",themeColor:"primary"}),g(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};fe.options=Oa;fe.states=Ca;fe.variants=ka;fe.defaultOptions=vo;fe.modifiers=La;fe.className=O.className;var Ao="time-picker",To="timepicker";import{Fragment as _a,jsx as T,jsxs as ge}from"react/jsx-runtime";var Mo="k-timepicker",Pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Eo={showClearButton:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:r,value:d,placeholder:c,showClearButton:m=Eo.showClearButton,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,opened:v,adaptive:P,adaptiveSettings:$,adaptiveTitle:ne,adaptiveSubtitle:xe,...Ne}=e,j=It("timepicker-popup");return ge(_a,{children:[ge(y,{...Ne,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,className:i(e.className,Mo),children:[T(ie,{children:n}),T(_,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":v?"true":"false","aria-controls":v||P?j:void 0,"aria-invalid":A?"true":void 0,"aria-label":"Select time",disabled:M}),T(R,{valid:b,invalid:A,loading:L,disabled:M}),T(F,{loading:L,disabled:M}),m&&T(H,{loading:L,disabled:M,readonly:E,value:d}),T(se,{children:r}),T(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:M})]}),v&&ge(K,{id:j,className:"k-list-container k-timepicker-popup",children:[T(X,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(de,{title:"10:00:00 AM",children:T(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),ge(C,{alignment:"stretched",className:"k-time-footer",children:[T(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(f,{className:"k-time-cancel",children:"Cancel"})]})]}),P&&T(O,{adaptive:!0,id:j,...$,header:T(B,{actionsEnd:T(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ne,subtitle:xe}),footer:ge(q,{children:[T(f,{text:"Cancel",size:"large"}),T(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(X,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(de,{title:"10:00:00 \u0410\u041C",children:T(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};oe.states=Pa;oe.options=Ha;oe.className=Mo;oe.defaultOptions=Eo;oe.moduleName=Ao;oe.folderName=To;var Io=oe;import{jsx as Ra}from"react/jsx-runtime";var Tm=e=>Ra(Io,{...e});export{Tm as TimePickerNormal};
|
|
1
|
+
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||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.themeColor}`]:t.themeColor},{"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-rounded-none":t.rounded==="none"}),z=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:d,active:c,selected:m,disabled:x,indeterminate:h,loading:b,empty:A,readonly:w,highlighted:L,...M}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":x,"k-indeterminate":h&&!d,"k-loading":b,"k-empty":A,"k-readonly":w,"k-highlighted":L},Object.keys(M).reduce((E,v)=>(v.startsWith("k-")?E[v]=M[v]:E[`k-${v}`]=M[v],E),{}))};function Et(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",tint:"tint",flat:"flat",outline:"outline",clear:"clear",link:"link"},D={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",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",generating:"generating",expanded:"expanded"};var Fe={};function It(e){return Fe[e]=(Fe[e]||0)+1,`k-${e}-${Fe[e]}`}var he="input",Oe=he;import{jsx as ko}from"react/jsx-runtime";var Ce="k-input",go=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Co={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return ko("span",{...b,className:i(e.className,Ce,I(Ce,{size:m,rounded:x,fillMode:h}),z(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=go;y.options=Oo;y.className=Ce;y.defaultOptions=Co;y.moduleName=he;y.folderName=Oe;import{jsx as _o}from"react/jsx-runtime";var ke="k-picker",Lo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Po={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Ho={},ae=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:x,fillMode:h,...b}=e;return _o("span",{...b,className:i(e.className,ke,I(ke,{size:m,rounded:x,fillMode:h}),z(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Lo;ae.options=Po;ae.className=ke;ae.defaultOptions=Ho;ae.moduleName=he;ae.folderName=Oe;import{Fragment as wo,jsx as yt}from"react/jsx-runtime";var Ve="k-font-icon",Ro=[],Ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Bo={},be=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...d}=e;return a?yt("span",{...d,className:i(e.className,Ve,I(Ve,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):yt(wo,{})};be.states=Ro;be.options=Ko;be.className=Ve;be.defaultOptions=Bo;var gt=be;import{Fragment as Fo,jsx as Le}from"react/jsx-runtime";var Ue="k-svg-icon",zo=[],Do={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},$e={viewBox:"0 0 24 24",variant:D.outline},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=$e.viewBox,variant:d=$e.variant,icon:c,...m}=e;if(!c)return Le(Fo,{});if(c==="none")return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Le("span",{...m,className:i(e.className,Ue,I("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Se.states=zo;Se.options=Do;Se.className=Ue;Se.defaultOptions=$e;var Xe=Se;import*as Je from"@progress/kendo-svg-icons";var Ot="icon",Ct="icons";import{useContext as Uo}from"react";import{createContext as Vo}from"react";var kt=Vo({iconsType:"svg"});import{Fragment as Lt,jsx as ve}from"react/jsx-runtime";var Pe="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[D.outline,D.solid,D.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:D.outline},S=e=>{let{iconsType:t}=Uo(kt),{size:o,themeColor:a,icon:n,type:r=t||He.type,rotate:d,flip:c,viewBox:m=He.viewBox,variant:x=He.variant,...h}=e;if(!n)return ve(Lt,{});if((t||r)==="svg"){if(n==="none")return ve(Xe,{...h,className:i(e.className,Pe),icon:n,size:o,variant:x});let A=Je[n]?n:$o(`${n}-icon`);return Je[A]?ve(Xe,{...h,className:i(e.className,Pe),icon:Je[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:x}):ve(Lt,{})}return ve(gt,{...h,className:i(e.className,Pe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};S.states=Xo;S.options=Jo;S.defaultOptions=He;S.className=Pe;S.moduleName=Ot;S.folderName=Ct;import{Fragment as Yo,jsx as qe}from"react/jsx-runtime";var Pt="k-clear-value",qo=[s.disabled,s.loading,s.readonly],Go={},H=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?qe(Yo,{}):qe("span",{className:i(e.className,Pt),children:qe(S,{icon:"x"})})};H.states=qo;H.options=Go;H.className=Pt;import{jsx as Zo}from"react/jsx-runtime";var Ge="k-input-inner",Wo=[],Qo={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},_=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:a=_e.placeholder,autocomplete:n=_e.autocomplete,disabled:r,readOnly:d,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,Ge,I(Ge,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};_.states=Wo;_.options=Qo;_.className=Ge;import{jsx as Ht,jsxs as tn}from"react/jsx-runtime";var Ye="k-input-inner",jo=[],en={},We=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...d}=e;return tn("span",{...d,className:i(e.className,Ye,I(Ye,e)),children:[n,!n&&r&&Ht(S,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};We.states=jo;We.options=en;We.className=Ye;import{jsx as an}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_t={value:"",placeholder:""},Ze=e=>{let{value:t=_t.value,placeholder:o=_t.placeholder,rows:a,disabled:n,...r}=e;return an("textarea",{...r,className:i(e.className,Qe,I(Qe,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Ze.states=on;Ze.options=nn;Ze.className=Qe;import{Fragment as rn,jsx as Rt}from"react/jsx-runtime";var Kt="k-input-loading-icon",sn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Rt(rn,{}):Rt("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=sn;F.className=Kt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],cn={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Bt(dn,{}):Bt(S,{className:i(wt),icon:r})};R.states=ln;R.options=cn;R.className=wt;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var mn="k-input-prefix",pn={direction:"horizontal"},ie=e=>{let{direction:t=pn.direction,...o}=e;return e.children?zt("span",{...o,className:i(mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(un,{})};import{Fragment as Nn,jsx as Dt}from"react/jsx-runtime";var fn="k-input-suffix",xn={direction:"horizontal"},se=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Dt("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(Nn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ft="k-input-separator",hn={direction:"vertical"},re=e=>{let{direction:t=hn.direction,...o}=e;return bn("span",{...o,className:i(Ft,e.className,{[`${Ft}-${t}`]:t})})};var je="button",Vt=je;import{Fragment as et,jsx as J,jsxs as Ut}from"react/jsx-runtime";var Ae="k-button",Sn=["icon-button"],vn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:d=tt.showArrow,arrowIconName:c=tt.arrowIconName,variant:m,hover:x,focus:h,active:b,selected:A,disabled:w,togglable:L,ariaDisabled:M,icon:E,endIcon:v,iconSize:P,text:$,iconClassName:ne,className:xe,...Ne}=e,j=E!=null,yo=e.children!==void 0;return Ut(t,{className:i(xe,Ae,Et(Ae,m),I(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),z(Ae,{hover:x,focus:h,active:b,disabled:w||M,selected:A}),{"k-icon-button":!$&&!yo&&j}),"aria-pressed":L?A?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof E=="string"&&E&&J(S,{className:i(ne,"k-button-icon"),icon:E,size:P}),E&&typeof E!="string"&&J(et,{children:E}),$?Ut(et,{children:[$&&J("span",{className:"k-button-text",children:$}),e.children]}):e.children&&J("span",{className:"k-button-text",children:e.children}),typeof v=="string"&&v&&J(S,{className:i(ne,"k-button-icon"),icon:v,size:P}),v&&typeof v!="string"&&J(et,{children:v}),d&&J("span",{className:"k-menu-button-arrow k-button-arrow",children:J(S,{icon:c})})]})};f.states=vn;f.options=An;f.variants=Sn;f.className=Ae;f.defaultOptions=tt;f.moduleName=je;f.folderName=Vt;import{jsx as Tn}from"react/jsx-runtime";var ee=e=>Tn(f,{children:"Button",...e});import{Fragment as $t,jsx as V,jsxs as ot}from"react/jsx-runtime";var Mn=y.states,En=y.defaultOptions,In=y.options,yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gn=[],le=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,x=t?.suffix,h=t?.["clear-button"],b=t?.["validation-icon"],A=t?.separators;return ot(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&ot($t,{children:[V(ie,{children:V(S,{icon:"lock"})}),A&&V(re,{})]}),V(_,{placeholder:"Placeholder",value:"Value"}),b&&V(R,{valid:o,invalid:a,loading:n,disabled:r}),V(F,{loading:n,disabled:r}),h&&V(H,{loading:n,disabled:r,readonly:d,value:"Value"}),x&&ot($t,{children:[A&&V(re,{}),V(se,{children:V(ee,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};le.options=In;le.states=Mn;le.variants=gn;le.defaultOptions=En;le.modifiers=yn;le.className=y.className;import{jsx as On}from"react/jsx-runtime";var Xt=e=>On(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Cn}from"react/jsx-runtime";var Jt=e=>Cn(f,{icon:"folder",children:"Button",...e});import{jsx as Zs}from"react/jsx-runtime";import{jsx as nt}from"react/jsx-runtime";var kn=f.options,Ln=f.states,Pn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return nt(Xt,{...o,icon:"star"});case"icon-and-text":return nt(Jt,{...o,icon:"star",children:"Button"});default:return nt(ee,{...o,children:"Button"})}};ce.options=kn;ce.states=Ln;ce.variants=Hn;ce.defaultOptions=Pn;ce.modifiers=_n;ce.className=f.className;var at="popup",qt=at;import{jsx as Gt}from"react/jsx-runtime";var Yt="k-animation-container",Rn=[],Kn={},it={positionMode:"absolute",shown:!0},U=e=>{let{positionMode:t=it.positionMode,shown:o=it.shown,animationStyle:a,offset:n,...r}=e;return Gt("div",{...r,style:{...n,...e.style},className:i(e.className,Yt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:a,children:e.children})})};U.states=Rn;U.options=Kn;U.className=Yt;U.defaultOptions=it;U.moduleName=at;U.folderName=qt;var st="popup",Wt=st;import{jsx as Qt}from"react/jsx-runtime";var Zt="k-popup",Bn=[],wn={},jt={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Qt(U,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":d,children:Qt("div",{...c,className:i(e.className,Zt),children:e.children})})};K.states=Bn;K.options=wn;K.className=Zt;K.defaultOptions=jt;K.moduleName=st;K.folderName=Wt;var eo="time-selector",to="timeselector";import{Fragment as oo,jsx as Re,jsxs as no}from"react/jsx-runtime";var rt="k-timeselector",zn=[],Dn={size:[l.undefined,l.small,l.medium,l.large]},Fn={},X=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:r,...d}=e,c=n.map(function(m,x){let h=!1,b=!0;return m===r&&(h=!0),(x===0||m==="tt")&&(b=!1),Re(lt,{type:m,focus:h,separator:b},x)});return no("div",{...d,className:i(e.className,rt,I(rt,{size:t})),role:"group","aria-label":"Time selector",children:[Re(oo,{children:o}),Re(oo,{children:a}),no("div",{className:"k-time-list-container",children:[Re("span",{className:"k-time-highlight"}),c]})]})};X.states=zn;X.options=Dn;X.className=rt;X.defaultOptions=Fn;X.moduleName=eo;X.folderName=to;import{Fragment as Un,jsx as te,jsxs as ct}from"react/jsx-runtime";var Vn=[s.focus],lt=e=>{let{type:t,focus:o,separator:a,...n}=e,r,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":r="Day";break;case"HH":r="Hour";break;case"mm":r="Minute";break;case"ss":r="Second";break;case"SSS":r="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":r="AM/PM",d=["AM","PM"];break;default:r="Column Name";break}let c=d.map((m,x)=>te("li",{className:"k-item",role:"option","aria-selected":"false",children:te("span",{children:m})},x));return ct(Un,{children:[a&&te("div",{className:"k-time-separator",children:":"}),ct("div",{...n,className:i(e.className,"k-time-list-wrapper",z("k-time-list-wrapper",{focus:o})),children:[te("span",{className:"k-title",children:r}),te("div",{className:"k-time-list",role:"listbox","aria-label":r,children:ct("div",{className:"k-content k-scrollable k-time-container",children:[te("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),te("div",{className:"k-scrollable-placeholder"})]})})]})]})};lt.states=Vn;import{jsx as Xn,jsxs as Jn}from"react/jsx-runtime";var $n="k-time-header",de=e=>{let{title:t,...o}=e;return Jn("div",{...o,className:i(e.className,$n),children:[t!=null&&Xn("span",{className:"k-title",children:t}),e.children]})};var dt="action-buttons",ao=dt;import{jsx as Yn}from"react/jsx-runtime";var Ke="k-actions",qn=[],Gn={},mt={alignment:"start",orientation:"horizontal"},C=e=>{let{alignment:t=mt.alignment,orientation:o=mt.orientation,...a}=e;return Yn("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};C.states=qn;C.options=Gn;C.className=Ke;C.defaultOptions=mt;C.moduleName=dt;C.folderName=ao;import{jsx as Zr,jsxs as jr}from"react/jsx-runtime";import{Fragment as cl,jsx as rl,jsxs as ll}from"react/jsx-runtime";import{Fragment as Sl,jsx as hl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Cl,jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",so={alignment:"stretched",orientation:"horizontal"},q=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,template:a,as:n=a?"div":C,...r}=e;return Qn(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Wn),children:e.children})};var pt="searchbox",ro=pt;import{jsx as Te,jsxs as ea}from"react/jsx-runtime";var lo="k-searchbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Be={showIcon:!0,showClearButton:!0,icon:"search"},G=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,showIcon:w=Be.showIcon,showClearButton:L=Be.showClearButton,icon:M=Be.icon,"aria-label":E,...v}=e;return ea(y,{...v,size:a,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:x,required:h,loading:b,disabled:A,className:i(e.className,lo),children:[w&&Te(S,{className:"k-input-icon",icon:M}),Te(_,{placeholder:o,value:t,"aria-label":E}),Te(F,{...e}),Te(R,{...e}),L&&Te(H,{...e})]})};G.states=Zn;G.options=jn;G.className=lo;G.defaultOptions=Be;G.moduleName=pt;G.folderName=ro;import{jsx as jl}from"react/jsx-runtime";var ut="textbox",co=ut;import{Fragment as mo,jsx as Y,jsxs as ft}from"react/jsx-runtime";var po="k-textbox",ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},we={showClearButton:!0,showValidationIcon:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:a,separators:n=we.separators,showClearButton:r=we.showClearButton,showValidationIcon:d=we.showValidationIcon,prefix:c,suffix:m,type:x,value:h,placeholder:b,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,id:ne,"aria-label":xe,"aria-describedby":Ne,...j}=e;return ft(y,{...j,size:t,rounded:o,fillMode:a,hover:A,focus:w,valid:L,invalid:M,required:E,loading:v,disabled:P,readonly:$,className:i(e.className,po),children:[c&&ft(mo,{children:[Y(ie,{children:c}),n&&Y(re,{})]}),Y(_,{id:ne,placeholder:b,value:h,type:x,disabled:P,"aria-label":xe,"aria-describedby":Ne,"aria-invalid":M?"true":void 0}),d&&Y(R,{valid:L,invalid:M,loading:v,disabled:P}),Y(F,{loading:v,disabled:P}),r&&Y(H,{loading:v,disabled:P,readonly:$,value:h}),m&&ft(mo,{children:[n&&Y(re,{}),Y(se,{children:m})]})]})};k.states=ta;k.options=oa;k.className=po;k.defaultOptions=we;k.moduleName=ut;k.folderName=co;var Me=k;import{jsx as na}from"react/jsx-runtime";var uo=e=>na(Me,{...e});import{Fragment as hc,jsx as Nc}from"react/jsx-runtime";import{Fragment as Mc,jsx as Tc}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as xt}from"react/jsx-runtime";var aa=k.states,ia=k.defaultOptions,sa=k.options,ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],la=[],me=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?xt(S,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?xt(ee,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),xt(uo,{value:"Value",style:{width:300},...o,...a})};me.options=sa;me.states=aa;me.variants=la;me.defaultOptions=ia;me.modifiers=ra;me.className=k.className;import{jsx as W,jsxs as Nt}from"react/jsx-runtime";var fo="k-actionsheet-titlebar",ca={},B=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:x,titleId:h,children:b,...A}=e;return Nt("div",{...A,className:i(e.className,fo),children:[Nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&W("div",{className:"k-actionsheet-actions",children:a}),!b&&Nt("div",{className:"k-actionsheet-title",id:h,children:[t&&W("div",{className:"k-text-center",children:t}),o&&W("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&W("div",{className:"k-actionsheet-title",id:h,children:b}),n&&W("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&W("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?W(k,{value:c,placeholder:m,size:x?"large":"medium","aria-label":t||m||"Input"}):W(G,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};B.className=fo;B.defaultOptions=ca;import{jsx as ht,jsxs as ua}from"react/jsx-runtime";var bt="k-actionsheet-view",da=[],ma={},pa={},pe=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:d,...c}=e,m=n?.type===B&&ht(B,{adaptive:t,titleId:d,...n?.props}),x=r?.type===q&&ht(q,{...r?.props});return ua("div",{...c,className:i(e.className,bt,{[`${bt}-animated`]:o}),children:[m,ht("div",{className:"k-actionsheet-content",children:a}),x]})};pe.states=da;pe.options=ma;pe.className=bt;pe.defaultOptions=pa;var Ee="action-sheet",ze=Ee;var St="overlay",xo=St;import{jsx as ha}from"react/jsx-runtime";var No="k-overlay",fa=[],xa={},Na={},Q=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,No),children:e.children})};Q.states=fa;Q.options=xa;Q.className=No;Q.defaultOptions=Na;Q.moduleName=St;Q.folderName=xo;import{jsx as De,jsxs as va}from"react/jsx-runtime";var ho="k-actionsheet",ba=[],Sa={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:a=Ie.adaptive,overlay:n=Ie.overlay,template:r,children:d,header:c,footer:m,id:x,...h}=e,b=x&&!r&&c?`${x}-title`:void 0;return va("div",{className:"k-actionsheet-container",children:[n&&De(Q,{}),De(U,{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:De("div",{...h,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":b,className:i(e.className,ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||De(pe,{header:c,footer:m,adaptive:a,titleId:b,...e,children:d})})})]})};O.states=ba;O.options=Sa;O.className=ho;O.defaultOptions=Ie;O.moduleName=Ee;O.folderName=ze;import{jsx as Ea}from"react/jsx-runtime";var bo="k-actionsheet-container",Aa=[],Ta={},Ma={},ue=e=>{let{children:t,...o}=e;return Ea("div",{...o,className:bo,children:t})};ue.states=Aa;ue.options=Ta;ue.className=bo;ue.defaultOptions=Ma;ue.moduleName=Ee;ue.folderName=ze;import{jsx as Ia}from"react/jsx-runtime";var vt=e=>{let{...t}=e;return Ia("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ga,jsx as ye,jsxs as At}from"react/jsx-runtime";var Tt="k-actionsheet-item",ya=[s.hover,s.focus,s.selected,s.disabled],Z=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:d,disabled:c,...m}=e;return At("span",{...m,className:i(e.className,Tt,z(Tt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&ye(ga,{children:At("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(S,{className:"k-actionsheet-item-icon",icon:t})}),At("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),a&&ye("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Z.states=ya;Z.className=Tt;import{jsx as yd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as g,jsxs as Mt}from"react/jsx-runtime";var Oa=O.options,Ca=O.states,vo={...O.defaultOptions,variant:"normal"},ka=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],La=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],fe=e=>{let{variant:t,modifiers:o,...a}={...vo,...e},n={},r=Mt(vt,{children:[g(Z,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(Z,{text:"Add to Favorites",iconName:"heart"}),g(Z,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(Z,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?g(O,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Cancel",size:"large",themeColor:"base"}),g(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):g(O,{...a,fullscreen:n.fullScreen,header:g(B,{actionsStart:n.actionsStart?g(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Mt(q,{alignment:"stretched",children:[g(f,{text:"Apply",themeColor:"primary"}),g(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};fe.options=Oa;fe.states=Ca;fe.variants=ka;fe.defaultOptions=vo;fe.modifiers=La;fe.className=O.className;var Ao="time-picker",To="timepicker";import{Fragment as _a,jsx as T,jsxs as ge}from"react/jsx-runtime";var Mo="k-timepicker",Pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Eo={showClearButton:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:r,value:d,placeholder:c,showClearButton:m=Eo.showClearButton,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,opened:v,adaptive:P,adaptiveSettings:$,adaptiveTitle:ne,adaptiveSubtitle:xe,...Ne}=e,j=It("timepicker-popup");return ge(_a,{children:[ge(y,{...Ne,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:b,invalid:A,required:w,loading:L,disabled:M,readonly:E,className:i(e.className,Mo),children:[T(ie,{children:n}),T(_,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":v?"true":"false","aria-controls":v||P?j:void 0,"aria-invalid":A?"true":void 0,"aria-label":"Select time",disabled:M}),T(R,{valid:b,invalid:A,loading:L,disabled:M}),T(F,{loading:L,disabled:M}),m&&T(H,{loading:L,disabled:M,readonly:E,value:d}),T(se,{children:r}),T(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:M})]}),v&&ge(K,{id:j,className:"k-list-container k-timepicker-popup",children:[T(X,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(de,{title:"10:00:00 AM",children:T(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),ge(C,{alignment:"stretched",className:"k-time-footer",children:[T(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(f,{className:"k-time-cancel",children:"Cancel"})]})]}),P&&T(O,{adaptive:!0,id:j,...$,header:T(B,{actionsEnd:T(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ne,subtitle:xe}),footer:ge(q,{children:[T(f,{text:"Cancel",size:"large"}),T(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(X,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(de,{title:"10:00:00 AM",children:T(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};oe.states=Pa;oe.options=Ha;oe.className=Mo;oe.defaultOptions=Eo;oe.moduleName=Ao;oe.folderName=To;var Io=oe;import{jsx as Ra}from"react/jsx-runtime";var Tm=e=>Ra(Io,{...e});export{Tm as TimePickerNormal};
|