UNPKG

@progress/kendo-react-inputs

Version:

React Inputs offer a customizable interface for users to enter and pick different information. KendoReact Input package

9 lines (8 loc) 1.02 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 i=(r,t)=>{if(r%1){const o=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(r*o)/o}return r},l=(r,t)=>r-t*Math.floor(r/t),e=(r,t,o)=>i(r-o,o)<t&&t<r,f=(r,t,o,n)=>t===null?!1:n==="continues"?e(r,t,o)?i(r-o/2,o/2)<=t:r<=t:n==="single"?e(r,t,o)?i(r-o/2,o/2)===t:r===t:!1,c=(r,t,o)=>r==="ltr"?o<t.x+t.width/2:o>t.x+t.width/2,u=(r,t,o,n)=>{for(let s=r;s<=t;s+=o)if(n===s)return!0;return!1};exports.calcIsFirstHalf=c;exports.getRemainder=l;exports.isCorrectValue=u;exports.isHalf=e;exports.isSelected=f;exports.toRound=i;