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.49 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 k=require("react"),y=require("@progress/kendo-react-form"),c=require("@progress/kendo-react-labels"),D=require("@progress/kendo-react-dateinputs");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=h(k),E=e=>{const{validationMessage:t,touched:r,label:i,id:n,valid:l,disabled:s,hint:d,wrapperStyle:f,...g}=e,o=r&&t,m=!o&&d,u=m?`${n}_hint`:"",b=o?`${n}_error`:"",p=i?`${n}_label`:"";return a.createElement(y.FieldWrapper,{style:f,className:"k-col-span-2"},a.createElement(c.Label,{id:p,editorId:n,editorValid:l,editorDisabled:s},i),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(D.DateTimePicker,{ariaLabelledBy:p,ariaDescribedBy:`${u} ${b}`,valid:l,id:n,disabled:s,...g}),m&&a.createElement(c.Hint,{id:u},d),o&&a.createElement(c.Error,{id:b},t)))};exports.FormDateTimePicker=E;