UNPKG

@progress/kendo-vue-dateinputs

Version:
9 lines (8 loc) 1.26 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 b="d",y="wide",M=(h,e,f,g)=>{const s=h[g+h.length-f.length],l=h.substring(0,g+h.length-f.length),n=f.substring(0,g),p=[];if(l===n&&g>0)return p.push([e[g-1],n[g-1]]),p;if(l.indexOf(n)===0&&(n.length===0||e[n.length-1]!==e[n.length])){let t="";n.length===1&&p.push([e[0],n[0]]);for(let u=n.length;u<l.length;u++)e[u]!==t&&e[u]!=="_"&&(t=e[u],p.push([t,""]));return p}if(n.indexOf(l)===0||e[g-1]==="_"){let t=e[0];for(let u=Math.max(0,l.length-1);u<e.length;u++)if(e[u]!=="_"){t=e[u];break}return[[t,n[g-1]]]}return n[n.length-1]===" "||n[n.length-1]===s?[[e[g-1],"_"]]:[[e[g-1],n[g-1]]]},r=(h,e)=>(h[e.pattern[0]]=e.type,h),_=(h,e,f)=>h===null||!(e&&e>h||f&&f<h);exports.approximateStringMatching=M;exports.dateSymbolMap=r;exports.defaultFormat=b;exports.defaultFormatPlaceholder=y;exports.isInRange=_;