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

@bradmartin/nativescript-input-mask

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bradmartin/nativescript-input-mask - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

14

angular/dist/input-mask.directive.d.ts
import { ElementRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { BaseValueAccessor } from '@nativescript/angular';
import { InputMask } from '..';
export declare class InputMaskTextValueAccessor extends BaseValueAccessor<InputMask> implements ControlValueAccessor {
private elementRef;
constructor(elementRef: ElementRef);
onTouched: () => void;
writeValue(value: any): void;
import { InputMask } from '../../';
export declare class InputMaskTextValueAccessor
extends BaseValueAccessor<InputMask>
implements ControlValueAccessor {
private elementRef;
constructor(elementRef: ElementRef);
onTouched: () => void;
writeValue(value: any): void;
}

@@ -12,3 +12,3 @@ import { NgModule } from '@angular/core';

imports: [FormsModule],
exports: [InputMaskTextValueAccessor, FormsModule],
exports: [InputMaskTextValueAccessor, FormsModule]
})

@@ -15,0 +15,0 @@ ], NativeScriptInputMaskModule);

@@ -7,3 +7,3 @@ import { Directive, ElementRef, forwardRef } from '@angular/core';

useExisting: forwardRef(() => InputMaskTextValueAccessor),
multi: true,
multi: true
};

@@ -27,4 +27,4 @@ let InputMaskTextValueAccessor = class InputMaskTextValueAccessor extends BaseValueAccessor {

'(textChange)': 'onChange($event.value)',
'(touch)': 'onTouched()',
},
'(touch)': 'onTouched()'
}
}),

@@ -31,0 +31,0 @@ __metadata("design:paramtypes", [ElementRef])

{
"name": "@bradmartin/nativescript-input-mask",
"version": "0.1.1",
"version": "0.1.2",
"description": "A Nativescript plugin to mask (format) text such as phone numbers or credit card numbers.",

@@ -21,11 +21,11 @@ "repository": {

"postclone": "npm i && node scripts/postclone.js && cd ../demo-ng && npm i && cd ../src && npm run plugin.link",
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo-ng && tns build android && tns test android --justlaunch",
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo-ng && tns build ios && tns test ios --justlaunch",
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo-ng && ns build android && ns test android --justlaunch",
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo-ng && ns build ios && ns test ios --justlaunch",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
"plugin.link": "npm link && cd ../demo-ng && npm link nativescript-input-mask && cd ../src",
"plugin.tscwatch": "npm run tsc -- -w",
"demo.ios": "npm i && npm run tsc && cd ../demo-ng && tns run ios --syncAllFiles",
"demo.android": "npm i && npm run tsc && cd ../demo-ng && tns run android --syncAllFiles",
"demo.ios": "npm i && npm run tsc && cd ../demo-ng && ns run ios",
"demo.android": "npm i && npm run tsc && cd ../demo-ng && ns run android",
"demo.reset": "cd ../demo-ng && rimraf platforms",
"plugin.prepare": "npm run tsc && cd ../demo-ng && tns plugin remove nativescript-input-mask && tns plugin add ../src",
"plugin.prepare": "npm run tsc && cd ../demo-ng && ns plugin remove nativescript-input-mask && ns plugin add ../src",
"clean": "cd ../demo-ng && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",

@@ -32,0 +32,0 @@ "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",

@@ -12,16 +12,7 @@ {

"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
],
"typeRoots": ["node_modules/@types"],
"lib": ["es2017", "dom"],
"paths": {
"@angular/*": [
"./node_modules/@angular/*"
],
"tns-core-modules": [
"./node_modules/tns-core-modules/*"
]
"@angular/*": ["./node_modules/@angular/*"],
"@nativescript/core": ["./node_modules/nativescript/core/*"]
}

@@ -32,10 +23,9 @@ },

},
"include": [
"./"
],
"include": ["./angular", "./*.ts"],
"exclude": [
"**/**.spec.ts",
"**/platforms/*",
"**/node_modules/*"
"**/node_modules/*",
"**/typings/*"
]
}

@@ -0,5 +1,9 @@

/// <reference path="../node_modules/@nativescript/types/index.d.ts" />
declare namespace com.redmadrobot.inputmask {
namespace MaskedTextChangedListener {
export class ValueListener {
constructor(listeners: { onTextChanged(maskFilled: boolean, extractedValue: string): void; });
constructor(listeners: {
onTextChanged(maskFilled: boolean, extractedValue: string): void;
});
textChanged(maskFilled: boolean, extractedValue: string): void;

@@ -9,3 +13,5 @@ }

class MaskedTextChangedListener extends android.text.TextWatcher implements android.view.View.OnFocusChangeListener {
class MaskedTextChangedListener
extends android.text.TextWatcher
implements android.view.View.OnFocusChangeListener {
constructor(

@@ -16,3 +22,3 @@ mask: string,

textWatchers: android.text.TextWatcher,
valueListener: com.redmadrobot.inputmask.MaskedTextChangedListener.ValueListener,
valueListener: com.redmadrobot.inputmask.MaskedTextChangedListener.ValueListener
);

@@ -24,3 +30,3 @@

export class PolyMaskTextChangedListener { }
export class PolyMaskTextChangedListener {}
}

@@ -0,1 +1,2 @@

/// <reference path="../node_modules/@nativescript/types/index.d.ts" />

@@ -11,3 +12,2 @@ declare var InputMaskVersionNumber: number;

declare class Mask extends NSObject {
static alloc(): Mask; // inherited from NSObject

@@ -19,3 +19,3 @@

constructor(o: { format: string; });
constructor(o: { format: string });

@@ -35,4 +35,5 @@ acceptableTextLength(): number;

declare class MaskedTextFieldDelegate extends NSObject implements UITextFieldDelegate {
declare class MaskedTextFieldDelegate
extends NSObject
implements UITextFieldDelegate {
static alloc(): MaskedTextFieldDelegate; // inherited from NSObject

@@ -64,5 +65,5 @@

readonly; // inherited from NSObjectProtocol
readonly; // inherited from NSObjectProtocol
constructor(o: { format: string; });
constructor(o: { format: string });

@@ -89,3 +90,7 @@ acceptableTextLength(): number;

performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
performSelectorWithObjectWithObject(
aSelector: string,
object1: any,
object2: any
): any;

@@ -106,7 +111,14 @@ placeholder(): string;

textFieldDidEndEditingReason(textField: UITextField, reason: UITextFieldDidEndEditingReason): void;
textFieldDidEndEditingReason(
textField: UITextField,
reason: UITextFieldDidEndEditingReason
): void;
textFieldShouldBeginEditing(textField: UITextField): boolean;
textFieldShouldChangeCharactersInRangeReplacementString(textField: UITextField, range: NSRange, replacementString: string): boolean;
textFieldShouldChangeCharactersInRangeReplacementString(
textField: UITextField,
range: NSRange,
replacementString: string
): boolean;

@@ -125,7 +137,9 @@ textFieldShouldClear(textField: UITextField): boolean;

interface MaskedTextFieldDelegateListener extends UITextFieldDelegate {
textFieldDidFillMandatoryCharactersDidExtractValue?(textField: UITextField, complete: boolean, value: string): void;
textFieldDidFillMandatoryCharactersDidExtractValue?(
textField: UITextField,
complete: boolean,
value: string
): void;
}
declare var MaskedTextFieldDelegateListener: {
prototype: MaskedTextFieldDelegateListener;

@@ -135,3 +149,2 @@ };

declare class PolyMaskTextFieldDelegate extends MaskedTextFieldDelegate {
static alloc(): PolyMaskTextFieldDelegate; // inherited from NSObject

@@ -143,5 +156,8 @@

constructor(o: { primaryFormat: string; affineFormats: NSArray<string>; });
constructor(o: { primaryFormat: string; affineFormats: NSArray<string> });
initWithPrimaryFormatAffineFormats(primaryFormat: string, affineFormats: NSArray<string>): this;
initWithPrimaryFormatAffineFormats(
primaryFormat: string,
affineFormats: NSArray<string>
): this;
}
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