@progress/kendo-vue-dateinputs
Version:
38 lines (37 loc) • 1.09 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { Action as e } from "../models/NavigationAction.mjs";
const n = {
33: e.PrevView,
34: e.NextView,
35: e.LastInView,
36: e.FirstInView,
37: e.Left,
38: e.Up,
39: e.Right,
40: e.Down,
"meta+38": e.UpperView,
"meta+40": e.LowerView,
"meta+37": e.PrevView,
"meta+39": e.NextView
};
class p {
constructor(t) {
this.bus = t;
}
action(t) {
const r = `${t.ctrlKey || t.metaKey ? "meta+" : ""}${t.keyCode}`;
return n[r];
}
move(t, r, o, i, s) {
return i ? r === e.UpperView && this.bus.canMoveUp(o) ? (this.bus.moveUp(o, s), t) : r === e.LowerView && this.bus.canMoveDown(o) ? (this.bus.moveDown(o, s), t) : i.move(t, r) : t;
}
}
export {
p as NavigationService
};