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.42 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 p=require("react"),g=require("@progress/kendo-react-form"),c=require("@progress/kendo-react-labels"),E=require("@progress/kendo-react-inputs");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=h(p),v=e=>{const{validationMessage:t,visited:r,label:n,id:a,valid:s,disabled:l,hint:d,...f}=e,i=r&&t,u=!i&&d,m=u?`${a}_hint`:"",b=i?`${a}_error`:"";return o.createElement(g.FieldWrapper,null,o.createElement(c.Label,{editorId:a,editorValid:s,editorDisabled:l},n),o.createElement("div",{className:"k-form-field-wrap"},o.createElement(E.NumericTextBox,{ariaDescribedBy:`${m} ${b}`,valid:s,id:a,disabled:l,format:"p0",step:.01,...f}),u&&o.createElement(c.Hint,{id:m},d),i&&o.createElement(c.Error,{id:b},t)))};exports.FormNumericTextBox=v;