aurelia-validation
Advanced tools
Comparing version 0.6.6 to 0.6.7
{ | ||
"name": "aurelia-validation", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "A validation plugin for Aurelia.", | ||
@@ -22,2 +22,3 @@ "keywords": [ | ||
"aurelia-dependency-injection": "^1.0.0-beta.1.1.2", | ||
"aurelia-loader": "^1.0.0-beta.1.2.0", | ||
"aurelia-logging": "^1.0.0-beta.1.1.1", | ||
@@ -24,0 +25,0 @@ "aurelia-metadata": "^1.0.0-beta.1.1.3", |
@@ -16,12 +16,14 @@ System.config({ | ||
map: { | ||
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.1.0", | ||
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.1.2", | ||
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.1", | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3", | ||
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.1.2", | ||
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0-beta.1.0.6", | ||
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.1.0", | ||
"babel": "npm:babel-core@5.8.35", | ||
"babel-runtime": "npm:babel-runtime@5.8.35", | ||
"core-js": "npm:core-js@2.0.3", | ||
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.3.1", | ||
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.0", | ||
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.2.0", | ||
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.0", | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.0", | ||
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.2.0", | ||
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0-beta.1.1.1", | ||
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.0", | ||
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.1", | ||
"babel": "npm:babel-core@5.8.38", | ||
"babel-runtime": "npm:babel-runtime@5.8.38", | ||
"core-js": "npm:core-js@2.2.2", | ||
"traceur": "github:jmcriffey/bower-traceur@0.0.91", | ||
@@ -44,47 +46,42 @@ "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.91", | ||
}, | ||
"npm:aurelia-binding@1.0.0-beta.1.1.0": { | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.0", | ||
"core-js": "npm:core-js@2.0.3" | ||
"npm:aurelia-binding@1.0.0-beta.1.3.1": { | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.0", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0", | ||
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:aurelia-dependency-injection@1.0.0-beta.1.1.2": { | ||
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.1", | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"core-js": "npm:core-js@2.0.3" | ||
"npm:aurelia-dependency-injection@1.0.0-beta.1.2.0": { | ||
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.0", | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.0", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:aurelia-loader@1.0.0-beta.1.1.0": { | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3", | ||
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.1.0" | ||
"npm:aurelia-loader@1.0.0-beta.1.2.0": { | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.0", | ||
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.1" | ||
}, | ||
"npm:aurelia-metadata@1.0.0-beta.1.1.3": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"core-js": "npm:core-js@2.0.3" | ||
"npm:aurelia-metadata@1.0.0-beta.1.2.0": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:aurelia-pal-browser@1.0.0-beta.1.1.2": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"core-js": "npm:core-js@2.0.3" | ||
"npm:aurelia-pal-browser@1.0.0-beta.1.2.0": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:aurelia-polyfills@1.0.0-beta.1.0.6": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1" | ||
"npm:aurelia-polyfills@1.0.0-beta.1.1.1": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:aurelia-task-queue@1.0.0-beta.1.1.0": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1" | ||
"npm:aurelia-task-queue@1.0.0-beta.1.2.0": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:aurelia-templating@1.0.0-beta.1.1.0": { | ||
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.1.0", | ||
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.1.2", | ||
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.1.0", | ||
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.1", | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.1.0", | ||
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.0", | ||
"core-js": "npm:core-js@2.0.3" | ||
"npm:aurelia-templating@1.0.0-beta.1.2.1": { | ||
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.3.1", | ||
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.0", | ||
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.2.0", | ||
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.0", | ||
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.0", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.0", | ||
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.1", | ||
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.0" | ||
}, | ||
"npm:babel-runtime@5.8.35": { | ||
"npm:babel-runtime@5.8.38": { | ||
"process": "github:jspm/nodelibs-process@0.1.2" | ||
}, | ||
"npm:core-js@2.0.3": { | ||
"npm:core-js@2.2.2": { | ||
"fs": "github:jspm/nodelibs-fs@0.1.2", | ||
@@ -91,0 +88,0 @@ "path": "github:jspm/nodelibs-path@0.1.0", |
@@ -6,3 +6,4 @@ declare module 'aurelia-validation' { | ||
import { | ||
inject | ||
inject, | ||
Container | ||
} from 'aurelia-dependency-injection'; | ||
@@ -13,2 +14,5 @@ import { | ||
import { | ||
Loader | ||
} from 'aurelia-loader'; | ||
import { | ||
ObserverLocator | ||
@@ -15,0 +19,0 @@ } from 'aurelia-binding'; |
@@ -1,2 +0,2 @@ | ||
define(['exports'], function (exports) { | ||
define(['exports', 'aurelia-dependency-injection', 'aurelia-loader'], function (exports, _aureliaDependencyInjection, _aureliaLoader) { | ||
'use strict'; | ||
@@ -7,2 +7,3 @@ | ||
}); | ||
exports.ValidationLocale = undefined; | ||
@@ -84,3 +85,4 @@ function _classCallCheck(instance, Constructor) { | ||
} else { | ||
System.import(basePath + localeIdentifier).then(function (resource) { | ||
var loader = _aureliaDependencyInjection.Container.instance.get(_aureliaLoader.Loader); | ||
loader.loadModule(basePath + localeIdentifier).then(function (resource) { | ||
var locale = _this.addLocale(localeIdentifier, resource.data); | ||
@@ -87,0 +89,0 @@ resolve(locale); |
@@ -6,3 +6,4 @@ declare module 'aurelia-validation' { | ||
import { | ||
inject | ||
inject, | ||
Container | ||
} from 'aurelia-dependency-injection'; | ||
@@ -13,2 +14,5 @@ import { | ||
import { | ||
Loader | ||
} from 'aurelia-loader'; | ||
import { | ||
ObserverLocator | ||
@@ -15,0 +19,0 @@ } from 'aurelia-binding'; |
@@ -6,3 +6,4 @@ declare module 'aurelia-validation' { | ||
import { | ||
inject | ||
inject, | ||
Container | ||
} from 'aurelia-dependency-injection'; | ||
@@ -13,2 +14,5 @@ import { | ||
import { | ||
Loader | ||
} from 'aurelia-loader'; | ||
import { | ||
ObserverLocator | ||
@@ -15,0 +19,0 @@ } from 'aurelia-binding'; |
@@ -6,3 +6,8 @@ 'use strict'; | ||
}); | ||
exports.ValidationLocale = undefined; | ||
var _aureliaDependencyInjection = require('aurelia-dependency-injection'); | ||
var _aureliaLoader = require('aurelia-loader'); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -79,3 +84,4 @@ | ||
} else { | ||
System.import(basePath + localeIdentifier).then(function (resource) { | ||
var loader = _aureliaDependencyInjection.Container.instance.get(_aureliaLoader.Loader); | ||
loader.loadModule(basePath + localeIdentifier).then(function (resource) { | ||
var locale = _this.addLocale(localeIdentifier, resource.data); | ||
@@ -82,0 +88,0 @@ resolve(locale); |
@@ -6,3 +6,4 @@ declare module 'aurelia-validation' { | ||
import { | ||
inject | ||
inject, | ||
Container | ||
} from 'aurelia-dependency-injection'; | ||
@@ -13,2 +14,5 @@ import { | ||
import { | ||
Loader | ||
} from 'aurelia-loader'; | ||
import { | ||
ObserverLocator | ||
@@ -15,0 +19,0 @@ } from 'aurelia-binding'; |
@@ -38,2 +38,5 @@ export let ValidationLocale = class ValidationLocale { | ||
import { Container } from 'aurelia-dependency-injection'; | ||
import { Loader } from 'aurelia-loader'; | ||
let ValidationLocaleRepository = class ValidationLocaleRepository { | ||
@@ -59,3 +62,4 @@ constructor() { | ||
} else { | ||
System.import(basePath + localeIdentifier).then(resource => { | ||
let loader = Container.instance.get(Loader); | ||
loader.loadModule(basePath + localeIdentifier).then(resource => { | ||
let locale = this.addLocale(localeIdentifier, resource.data); | ||
@@ -77,2 +81,3 @@ resolve(locale); | ||
ValidationLocale.Repository = new ValidationLocaleRepository(); |
@@ -6,3 +6,4 @@ declare module 'aurelia-validation' { | ||
import { | ||
inject | ||
inject, | ||
Container | ||
} from 'aurelia-dependency-injection'; | ||
@@ -13,2 +14,5 @@ import { | ||
import { | ||
Loader | ||
} from 'aurelia-loader'; | ||
import { | ||
ObserverLocator | ||
@@ -15,0 +19,0 @@ } from 'aurelia-binding'; |
'use strict'; | ||
System.register([], function (_export, _context) { | ||
var ValidationLocale, ValidationLocaleRepository; | ||
System.register(['aurelia-dependency-injection', 'aurelia-loader'], function (_export, _context) { | ||
var Container, Loader, ValidationLocale, ValidationLocaleRepository; | ||
@@ -13,3 +13,7 @@ function _classCallCheck(instance, Constructor) { | ||
return { | ||
setters: [], | ||
setters: [function (_aureliaDependencyInjection) { | ||
Container = _aureliaDependencyInjection.Container; | ||
}, function (_aureliaLoader) { | ||
Loader = _aureliaLoader.Loader; | ||
}], | ||
execute: function () { | ||
@@ -87,3 +91,4 @@ _export('ValidationLocale', ValidationLocale = function () { | ||
} else { | ||
System.import(basePath + localeIdentifier).then(function (resource) { | ||
var loader = Container.instance.get(Loader); | ||
loader.loadModule(basePath + localeIdentifier).then(function (resource) { | ||
var locale = _this.addLocale(localeIdentifier, resource.data); | ||
@@ -90,0 +95,0 @@ resolve(locale); |
@@ -0,1 +1,19 @@ | ||
### 0.6.7 (2016-04-13) | ||
#### Bug Fixes | ||
* **loader:** switch to using apps loader ([a10cfb1e](https://github.com/aurelia/validation/commit/a10cfb1edc70868c6d738c82e68654703ac9f41b), closes [#226](https://github.com/aurelia/validation/issues/226)) | ||
* **resources:** | ||
* fixed a message ([9c413546](https://github.com/aurelia/validation/commit/9c4135463ecd572fcb336717d30b3a28810ffcbe)) | ||
* fixed a message ([cc1319dd](https://github.com/aurelia/validation/commit/cc1319dde091c7b903408d0d794dc19598b20bf6)) | ||
* update format ([ab2770ed](https://github.com/aurelia/validation/commit/ab2770edfc172a55bfa59d49c9f2398ddfc87d1b)) | ||
* update format ([d4b3a2ec](https://github.com/aurelia/validation/commit/d4b3a2ec13facff1564c371efc4e64047ae6b8b8)) | ||
#### Features | ||
* **resources:** create ja-JP ([242f15c5](https://github.com/aurelia/validation/commit/242f15c5b4f7b60377d7929fb5824dde39e3d8ca)) | ||
### 0.6.6 (2016-03-23) | ||
@@ -2,0 +20,0 @@ |
@@ -164,3 +164,3 @@ [![Join the chat at https://gitter.im/aurelia/disucss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
Validates that value entered tests true for the given *regex*. | ||
> Note: for now this is a synonymn for *matches(regegx)*, however in the future we will try to add the possibility to prevent invalid input for any of the *containsOnly* validation rules. | ||
> Note: for now this is a synonymn for *matches(regex)*, however in the future we will try to add the possibility to prevent invalid input for any of the *containsOnly* validation rules. | ||
@@ -505,3 +505,3 @@ ####containsOnlyAlpha() | ||
>Note: It suggested to name your variables **newValue** and **threshold**, so that custom (*withMessage*) or localized messages will properly work. | ||
>Note: It's suggested to name your variables **newValue** and **threshold**, so that custom (*withMessage*) or localized messages will properly work. | ||
@@ -508,0 +508,0 @@ ####Custom validation functions |
{ | ||
"name": "aurelia-validation", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "A validation plugin for Aurelia.", | ||
@@ -32,2 +32,3 @@ "keywords": [ | ||
"aurelia-dependency-injection": "^1.0.0-beta.1.1.2", | ||
"aurelia-loader": "^1.0.0-beta.1.2.0", | ||
"aurelia-logging": "^1.0.0-beta.1.1.1", | ||
@@ -40,2 +41,3 @@ "aurelia-metadata": "^1.0.0-beta.1.1.3", | ||
"aurelia-dependency-injection": "^1.0.0-beta.1.1.2", | ||
"aurelia-loader": "^1.0.0-beta.1.2.0", | ||
"aurelia-logging": "^1.0.0-beta.1.1.1", | ||
@@ -48,2 +50,3 @@ "aurelia-metadata": "^1.0.0-beta.1.1.3", | ||
"aurelia-polyfills": "^1.0.0-beta.1.0.6", | ||
"aurelia-task-queue": "^1.0.0-beta.1.2.0", | ||
"babel": "babel-core@^5.8.24", | ||
@@ -57,2 +60,3 @@ "babel-runtime": "^5.8.24", | ||
"aurelia-dependency-injection": "^1.0.0-beta.1.1.2", | ||
"aurelia-loader": "^1.0.0-beta.1.2.0", | ||
"aurelia-logging": "^1.0.0-beta.1.1.1", | ||
@@ -59,0 +63,0 @@ "aurelia-metadata": "^1.0.0-beta.1.1.3", |
@@ -38,2 +38,5 @@ export class ValidationLocale { | ||
import {Container} from 'aurelia-dependency-injection'; | ||
import {Loader} from 'aurelia-loader'; | ||
class ValidationLocaleRepository { | ||
@@ -59,3 +62,4 @@ constructor() { | ||
} else { | ||
System.import(basePath + localeIdentifier).then((resource) => { | ||
let loader = Container.instance.get(Loader); | ||
loader.loadModule(basePath + localeIdentifier).then((resource) => { | ||
let locale = this.addLocale(localeIdentifier, resource.data); | ||
@@ -76,2 +80,3 @@ resolve(locale); | ||
} | ||
ValidationLocale.Repository = new ValidationLocaleRepository(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1655757
206
41613
6