@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) • 992 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},n=()=>!1,o=(a,e)=>a.includeLiterals!==e.includeLiterals||a.mask!==e.mask||a.prompt!==e.prompt||a.promptPlaceholder!==e.promptPlaceholder||!i(a.rules,e.rules),i=(a,e)=>{if(!!a!=!!e)return!1;if(a===e||!a||!e)return!0;let t=!0;for(const s in a)if(a[s]!==e[s]){t=!1;break}if(t){for(const s in e)if(!a.hasOwnProperty(s)){t=!1;break}}return t};exports.defaultRules=r;exports.maskingChanged=o;exports.returnFalse=n;