Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-mask

Package Overview
Dependencies
Maintainers
1
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-mask - npm Package Compare versions

Comparing version 12.0.0 to 13.0.0

esm2020/index.mjs

5

lib/mask-applier.service.d.ts
import { IConfig } from './config';
import * as i0 from "@angular/core";
export declare class MaskApplierService {

@@ -29,3 +30,3 @@ protected _config: IConfig;

applyMaskWithPattern(inputValue: string, maskAndPattern: [string, IConfig['patterns']]): string;
applyMask(inputValue: string, maskExpression: string, position?: number, justPasted?: boolean, backspaced?: boolean, cb?: Function): string;
applyMask(inputValue: string | object | boolean | null | undefined, maskExpression: string, position?: number, justPasted?: boolean, backspaced?: boolean, cb?: Function): string;
_findSpecialChar(inputSymbol: string): undefined | string;

@@ -41,2 +42,4 @@ protected _checkSymbolMask(inputSymbol: string, maskSymbol: string): boolean;

private _shiftStep;
static ɵfac: i0.ɵɵFactoryDeclaration<MaskApplierService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MaskApplierService>;
}

6

lib/mask.directive.d.ts

@@ -6,5 +6,6 @@ import { ControlValueAccessor, FormControl, ValidationErrors, Validator } from '@angular/forms';

import { MaskService } from './mask.service';
import * as i0 from "@angular/core";
export declare class MaskDirective implements ControlValueAccessor, OnChanges, Validator {
private document;
private _maskService;
_maskService: MaskService;
protected _config: IConfig;

@@ -43,2 +44,3 @@ maskExpression: string;

onPaste(): void;
onModelChange(value: any): void;
onInput(e: CustomKeyboardEvent): void;

@@ -64,2 +66,4 @@ onBlur(): void;

private _setMask;
static ɵfac: i0.ɵɵFactoryDeclaration<MaskDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "input[mask], textarea[mask]", never, { "maskExpression": "mask"; "specialCharacters": "specialCharacters"; "patterns": "patterns"; "prefix": "prefix"; "suffix": "suffix"; "thousandSeparator": "thousandSeparator"; "decimalMarker": "decimalMarker"; "dropSpecialCharacters": "dropSpecialCharacters"; "hiddenInput": "hiddenInput"; "showMaskTyped": "showMaskTyped"; "placeHolderCharacter": "placeHolderCharacter"; "shownMaskExpression": "shownMaskExpression"; "showTemplate": "showTemplate"; "clearIfNotMatch": "clearIfNotMatch"; "validation": "validation"; "separatorLimit": "separatorLimit"; "allowNegativeNumbers": "allowNegativeNumbers"; "leadZeroDateTime": "leadZeroDateTime"; }, {}, never>;
}
import { PipeTransform } from '@angular/core';
import { MaskApplierService } from './mask-applier.service';
import { IConfig } from './config';
import * as i0 from "@angular/core";
export declare class MaskPipe implements PipeTransform {
private _maskService;
_maskService: MaskApplierService;
constructor(_maskService: MaskApplierService);
transform(value: string | number, mask: string | [string, IConfig['patterns']], thousandSeparator?: string | null): string;
static ɵfac: i0.ɵɵFactoryDeclaration<MaskPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<MaskPipe, "mask">;
}
import { ElementRef, Renderer2 } from '@angular/core';
import { IConfig } from './config';
import { MaskApplierService } from './mask-applier.service';
import * as i0 from "@angular/core";
export declare class MaskService extends MaskApplierService {

@@ -53,2 +54,4 @@ private document;

private _checkPrecision;
static ɵfac: i0.ɵɵFactoryDeclaration<MaskService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MaskService>;
}
import { ModuleWithProviders } from '@angular/core';
import { optionsConfig } from './config';
import * as i0 from "@angular/core";
import * as i1 from "./mask.directive";
import * as i2 from "./mask.pipe";
/**
* @internal
*/
export declare function _configFactory(initConfig: optionsConfig, configValue: optionsConfig | (() => optionsConfig)): optionsConfig;
export declare class NgxMaskModule {
static forRoot(configValue?: optionsConfig | (() => optionsConfig)): ModuleWithProviders<NgxMaskModule>;
static forChild(): ModuleWithProviders<NgxMaskModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMaskModule, [typeof i1.MaskDirective, typeof i2.MaskPipe], never, [typeof i1.MaskDirective, typeof i2.MaskPipe]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMaskModule>;
}
/**
* @internal
*/
export declare function _configFactory(initConfig: optionsConfig, configValue: optionsConfig | (() => optionsConfig)): optionsConfig;
/**
* Generated bundle index. Do not edit.
*/
/// <amd-module name="ngx-mask" />
export * from './index';
{
"name": "ngx-mask",
"version": "12.0.0",
"version": "13.0.0",
"description": "awesome ngx mask",

@@ -30,5 +30,5 @@ "keywords": [

},
"main": "bundles/ngx-mask.umd.js",
"module": "fesm2015/ngx-mask.js",
"es2015": "fesm2015/ngx-mask.js",
"main": "./bundles/ngx-mask.umd.js",
"module": "fesm2015/ngx-mask.mjs",
"es2015": "./esm2015/ngx-mask.js",
"typings": "ngx-mask.d.ts",

@@ -41,8 +41,22 @@ "peerDependencies": {

"dependencies": {
"tslib": "^2.1.0"
"tslib": "^2.3.0"
},
"esm2015": "esm2015/ngx-mask.js",
"fesm2015": "fesm2015/ngx-mask.js",
"metadata": "ngx-mask.metadata.json",
"es2020": "fesm2020/ngx-mask.mjs",
"esm2020": "esm2020/ngx-mask.mjs",
"fesm2020": "fesm2020/ngx-mask.mjs",
"fesm2015": "fesm2015/ngx-mask.mjs",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./ngx-mask.d.ts",
"esm2020": "./esm2020/ngx-mask.mjs",
"es2020": "./fesm2020/ngx-mask.mjs",
"es2015": "./fesm2015/ngx-mask.mjs",
"node": "./fesm2015/ngx-mask.mjs",
"default": "./fesm2020/ngx-mask.mjs"
}
},
"sideEffects": false
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc