@lion/validate
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.7.1](https://github.com/ing-bank/lion/compare/@lion/validate@0.7.0...@lion/validate@0.7.1) (2020-03-04) | ||
**Note:** Version bump only for package @lion/validate | ||
# [0.7.0](https://github.com/ing-bank/lion/compare/@lion/validate@0.6.8...@lion/validate@0.7.0) (2020-03-01) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@lion/validate", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Validate your form elements", | ||
@@ -40,3 +40,3 @@ "author": "ing-bank", | ||
"@lion/core": "0.4.4", | ||
"@lion/localize": "0.8.8" | ||
"@lion/localize": "0.8.9" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "04db59c9675b9e56b50dfc147201eea530b1d754" | ||
"gitHead": "52eeafa745328c3ea832ca117c662b2b731e22d2" | ||
} |
@@ -59,3 +59,4 @@ # Validate | ||
let hasFeedback = false; | ||
if (!IsString || !isInitialsRegex.test(value.toLowerCase())) { | ||
const isStringValidator = new IsString(); | ||
if (!isStringValidator.execute(value) || !isInitialsRegex.test(value.toLowerCase())) { | ||
hasFeedback = true; | ||
@@ -62,0 +63,0 @@ } |
@@ -28,4 +28,4 @@ import { dedupeMixin } from '@lion/core'; | ||
firstUpdated(c) { | ||
super.firstUpdated(c); | ||
firstUpdated(changedProperties) { | ||
super.firstUpdated(changedProperties); | ||
this.__SyncUpdatableNamespace.connected = true; | ||
@@ -32,0 +32,0 @@ this.__syncUpdatableInitialize(); |
@@ -191,4 +191,4 @@ /* eslint-disable class-methods-use-this, camelcase, no-param-reassign, max-classes-per-file */ | ||
firstUpdated(c) { | ||
super.firstUpdated(c); | ||
firstUpdated(changedProperties) { | ||
super.firstUpdated(changedProperties); | ||
this.__validateInitialized = true; | ||
@@ -595,6 +595,9 @@ this.validate(); | ||
updated(c) { | ||
super.updated(c); | ||
updated(changedProperties) { | ||
super.updated(changedProperties); | ||
if (c.has('shouldShowFeedbackFor') || c.has('hasFeedbackFor')) { | ||
if ( | ||
changedProperties.has('shouldShowFeedbackFor') || | ||
changedProperties.has('hasFeedbackFor') | ||
) { | ||
this.showsFeedbackFor = this.constructor.validationTypes | ||
@@ -601,0 +604,0 @@ .map(type => (this._hasFeedbackVisibleFor(type) ? type : undefined)) |
@@ -30,4 +30,4 @@ import { expect, fixtureSync, defineCE, unsafeStatic, html, fixture } from '@open-wc/testing'; | ||
firstUpdated(c) { | ||
super.firstUpdated(c); | ||
firstUpdated(changedProperties) { | ||
super.firstUpdated(changedProperties); | ||
hasCalledFirstUpdated = true; | ||
@@ -34,0 +34,0 @@ } |
211797
4433
95
+ Added@lion/localize@0.8.9(transitive)
- Removed@lion/localize@0.8.8(transitive)
Updated@lion/localize@0.8.9