UNPKG

@progress/kendo-vue-buttons

Version:
30 lines (29 loc) 904 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ let n = /* @__PURE__ */ function(e) { return e.next = "next", e.prev = "prev", e.current = "current", e.reset = "reset", e; }({}); const s = (e, r) => { const t = r.items.findIndex((u) => u === e); switch (r.type) { case n.next: return t === r.items.length - 1 ? e : r.items[t + 1]; case n.prev: return t === 0 ? e : r.items[t - 1]; case n.current: return r.payload; case n.reset: return null; default: return e; } }; export { n as FOCUS_ACTION, s as focusReducer };