From 438e6fd8b7fd30b0fb2ac61fc7ec08e0e23053a1 Mon Sep 17 00:00:00 2001 From: Jagan Mohan Bishoyi Date: Sat, 2 Jan 2021 13:14:39 +0530 Subject: [PATCH] Pro theme added --- ngx-password-validator/package-lock.json | 2 +- ngx-password-validator/package.json | 2 +- .../projects/ng-password-validator/README.md | 21 +++++ .../ng-password-validator/package.json | 2 +- .../lib/ng-password-validator.component.html | 2 +- .../lib/ng-password-validator.component.scss | 91 ++++++++++++------- .../lib/ng-password-validator.component.ts | 13 +++ .../lib/ng-password-validator.interface.ts | 2 +- .../ng-password-validator/src/lib/options.ts | 4 +- .../src/lib/variable.scss | 1 + 10 files changed, 102 insertions(+), 38 deletions(-) diff --git a/ngx-password-validator/package-lock.json b/ngx-password-validator/package-lock.json index 38f4cd6..9d536eb 100644 --- a/ngx-password-validator/package-lock.json +++ b/ngx-password-validator/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-password-validator", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/ngx-password-validator/package.json b/ngx-password-validator/package.json index 18007ff..36ab7de 100644 --- a/ngx-password-validator/package.json +++ b/ngx-password-validator/package.json @@ -1,6 +1,6 @@ { "name": "ngx-password-validator", - "version": "0.0.5", + "version": "0.0.6", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/ngx-password-validator/projects/ng-password-validator/README.md b/ngx-password-validator/projects/ng-password-validator/README.md index 77b5d72..a766e6b 100644 --- a/ngx-password-validator/projects/ng-password-validator/README.md +++ b/ngx-password-validator/projects/ng-password-validator/README.md @@ -64,6 +64,27 @@ myOptions = { } ``` +Theming( Default value is pro ): + +```html + +``` +Theme as 'basic': +```ts +myOptions = { + 'placement': 'top', + 'theme': 'basic' +} +``` +Theme as 'pro': +```ts +myOptions = { + 'placement': 'top', + 'theme': 'pro' +} +``` + After closing the popup window, you will get one output for password validity (true/false): ```html diff --git a/ngx-password-validator/projects/ng-password-validator/package.json b/ngx-password-validator/projects/ng-password-validator/package.json index 3c729e0..8d58527 100644 --- a/ngx-password-validator/projects/ng-password-validator/package.json +++ b/ngx-password-validator/projects/ng-password-validator/package.json @@ -1,6 +1,6 @@ { "name": "ng-password-validator", - "version": "0.0.5", + "version": "0.0.6", "description": "The password validator is a pop-up window that appears when you start typing in input box. Here you can configure the password acceptance criteria, once your enter characters fullfil the requirement you will get a success message.", "author": "Jagan Mohan Bishoyi", "license": "MIT", diff --git a/ngx-password-validator/projects/ng-password-validator/src/lib/ng-password-validator.component.html b/ngx-password-validator/projects/ng-password-validator/src/lib/ng-password-validator.component.html index a604a2e..12c4f8a 100644 --- a/ngx-password-validator/projects/ng-password-validator/src/lib/ng-password-validator.component.html +++ b/ngx-password-validator/projects/ng-password-validator/src/lib/ng-password-validator.component.html @@ -1,5 +1,5 @@