UNPKG

@ngx-mask/core

Version:

[@ngx-mask/core](https://github.com/IKatsuba/ngx-mask#readme)

25 lines 912 B
import { InjectionToken } from '@angular/core'; import { MaskPatterns } from './mask'; export var NGX_MASK_OPTIONS = new InjectionToken('NGX_MASK_OPTIONS', { providedIn: 'root', factory: function () { return { tokens: { '0': { pattern: MaskPatterns.number, default: '0' }, '9': { pattern: MaskPatterns.number, optional: true }, 'A': { pattern: '[a-zA-Z0-9]' }, 'S': { pattern: '[a-zA-Z]' }, 'U': { pattern: '[a-zA-Z]', transform: function (c) { return c.toLocaleUpperCase(); } }, 'L': { pattern: '[a-zA-Z]', transform: function (c) { return c.toLocaleLowerCase(); } }, '$': { escape: true } } }; } }); //# sourceMappingURL=tokens.js.map