UNPKG

@progress/kendo-react-gantt

Version:

React Gantt enables the display of self-referencing tabular data with many features. KendoReact Gantt package

9 lines (8 loc) 1.44 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),y=require("@progress/kendo-react-form"),i=require("@progress/kendo-react-labels"),E=require("@progress/kendo-react-inputs");function I(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=I(h),k=e=>{const{validationMessage:t,touched:r,label:o,id:a,valid:l,disabled:s,hint:d,type:b,optional:f,...g}=e,c=r&&t,u=!c&&d,m=u?`${a}_hint`:"",p=c?`${a}_error`:"";return n.createElement(y.FieldWrapper,{className:"k-col-span-full"},n.createElement(i.Label,{editorId:a,editorValid:l,editorDisabled:s,optional:f},o),n.createElement("div",{className:"k-form-field-wrap"},n.createElement(E.Input,{valid:l,type:b,id:a,disabled:s,ariaDescribedBy:`${m} ${p}`,...g}),u&&n.createElement(i.Hint,{id:m},d),c&&n.createElement(i.Error,{id:p},t)))};exports.FormInput=k;