UNPKG

@progress/kendo-react-dateinputs

Version:

React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package

9 lines (8 loc) 1.05 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 t=require("../models/NavigationAction.js"),c={33:t.Action.PrevView,34:t.Action.NextView,35:t.Action.LastInView,36:t.Action.FirstInView,37:t.Action.Left,38:t.Action.Up,39:t.Action.Right,40:t.Action.Down,"meta+38":t.Action.UpperView,"meta+40":t.Action.LowerView};class s{constructor(o){this.bus=o}action(o){const i=`${o.ctrlKey||o.metaKey?"meta+":""}${o.keyCode}`;return c[i]}move(o,i,n,e,r){return e?i===t.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,r),o):i===t.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,r),o):e.move(o,i):o}}exports.NavigationService=s;