Skip to content

Commit

Permalink
chore(all): prepare release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 18, 2018
1 parent e9232ca commit 875b925
Show file tree
Hide file tree
Showing 106 changed files with 472 additions and 480 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-validation",
"version": "1.1.2",
"version": "1.1.3",
"description": "Validation for Aurelia applications",
"keywords": [
"aurelia",
Expand All @@ -17,7 +17,7 @@
"url": "https://github.com/aurelia/validation"
},
"dependencies": {
"aurelia-binding": "^1.0.1",
"aurelia-binding": "^1.7.1",
"aurelia-metadata": "^1.0.0",
"aurelia-templating": "^1.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/aurelia-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define(["require", "exports", "./get-target-dom-element", "./property-info", "./
/**
* Aurelia Validation Configuration API
*/
var AureliaValidationConfiguration = (function () {
var AureliaValidationConfiguration = /** @class */ (function () {
function AureliaValidationConfiguration() {
this.validatorType = standard_validator_2.StandardValidator;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/implementation/expression-visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable:no-empty
var ExpressionVisitor = (function () {
var ExpressionVisitor = /** @class */ (function () {
function ExpressionVisitor() {
}
ExpressionVisitor.prototype.visitChain = function (chain) {
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/implementation/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) {
/**
* Sets, unsets and retrieves rules on an object or constructor function.
*/
var Rules = (function () {
var Rules = /** @class */ (function () {
function Rules() {
}
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/implementation/standard-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define(["require", "exports", "aurelia-templating", "../validator", "../validate
* Validates.
* Responsible for validating objects and properties.
*/
var StandardValidator = (function (_super) {
var StandardValidator = /** @class */ (function (_super) {
__extends(StandardValidator, _super);
function StandardValidator(messageProvider, resources) {
var _this = _super.call(this) || this;
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/implementation/validation-message-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BindingLanguage } from 'aurelia-templating';
import { ExpressionVisitor } from './expression-visitor';
export declare class ValidationMessageParser {
private bindinqLanguage;
static inject: typeof BindingLanguage[];
static inject: (typeof BindingLanguage)[];
private emptyStringExpression;
private nullExpression;
private undefinedExpression;
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/implementation/validation-message-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var __extends = (this && this.__extends) || (function () {
define(["require", "exports", "aurelia-binding", "aurelia-templating", "aurelia-logging", "./expression-visitor"], function (require, exports, aurelia_binding_1, aurelia_templating_1, LogManager, expression_visitor_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ValidationMessageParser = (function () {
var ValidationMessageParser = /** @class */ (function () {
function ValidationMessageParser(bindinqLanguage) {
this.bindinqLanguage = bindinqLanguage;
this.emptyStringExpression = new aurelia_binding_1.LiteralString('');
Expand Down Expand Up @@ -43,7 +43,7 @@ define(["require", "exports", "aurelia-binding", "aurelia-templating", "aurelia-
return ValidationMessageParser;
}());
exports.ValidationMessageParser = ValidationMessageParser;
var MessageExpressionValidator = (function (_super) {
var MessageExpressionValidator = /** @class */ (function (_super) {
__extends(MessageExpressionValidator, _super);
function MessageExpressionValidator(originalMessage) {
var _this = _super.call(this) || this;
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/implementation/validation-messages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export declare const validationMessages: ValidationMessages;
*/
export declare class ValidationMessageProvider {
private parser;
static inject: typeof ValidationMessageParser[];
static inject: (typeof ValidationMessageParser)[];
constructor(parser: ValidationMessageParser);
/**
* Returns a message binding expression that corresponds to the key.
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/implementation/validation-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ define(["require", "exports", "./validation-message-parser"], function (require,
/**
* Retrieves validation messages and property display names.
*/
var ValidationMessageProvider = (function () {
var ValidationMessageProvider = /** @class */ (function () {
function ValidationMessageProvider(parser) {
this.parser = parser;
}
Expand Down
8 changes: 4 additions & 4 deletions dist/amd/implementation/validation-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(["require", "exports", "./rules", "./validation-messages", "../util"], fu
/**
* Part of the fluent rule API. Enables customizing property rules.
*/
var FluentRuleCustomizer = (function () {
var FluentRuleCustomizer = /** @class */ (function () {
function FluentRuleCustomizer(property, condition, config, fluentEnsure, fluentRules, parsers) {
if (config === void 0) { config = {}; }
this.fluentEnsure = fluentEnsure;
Expand Down Expand Up @@ -180,7 +180,7 @@ define(["require", "exports", "./rules", "./validation-messages", "../util"], fu
/**
* Part of the fluent rule API. Enables applying rules to properties and objects.
*/
var FluentRules = (function () {
var FluentRules = /** @class */ (function () {
function FluentRules(fluentEnsure, parsers, property) {
this.fluentEnsure = fluentEnsure;
this.parsers = parsers;
Expand Down Expand Up @@ -312,7 +312,7 @@ define(["require", "exports", "./rules", "./validation-messages", "../util"], fu
/**
* Part of the fluent rule API. Enables targeting properties and objects with rules.
*/
var FluentEnsure = (function () {
var FluentEnsure = /** @class */ (function () {
function FluentEnsure(parsers) {
this.parsers = parsers;
/**
Expand Down Expand Up @@ -380,7 +380,7 @@ define(["require", "exports", "./rules", "./validation-messages", "../util"], fu
/**
* Fluent rule definition API.
*/
var ValidationRules = (function () {
var ValidationRules = /** @class */ (function () {
function ValidationRules() {
}
ValidationRules.initialize = function (messageParser, propertyParser) {
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/property-accessor-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Parser } from 'aurelia-binding';
export declare type PropertyAccessor<TObject, TValue> = (object: TObject) => TValue;
export declare class PropertyAccessorParser {
private parser;
static inject: typeof Parser[];
static inject: (typeof Parser)[];
constructor(parser: Parser);
parse<TObject, TValue>(property: string | PropertyAccessor<TObject, TValue>): string;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/property-accessor-parser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define(["require", "exports", "aurelia-binding", "./util"], function (require, exports, aurelia_binding_1, util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PropertyAccessorParser = (function () {
var PropertyAccessorParser = /** @class */ (function () {
function PropertyAccessorParser(parser) {
this.parser = parser;
}
Expand Down
3 changes: 0 additions & 3 deletions dist/amd/property-info.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Expression, Scope } from 'aurelia-binding';
declare module 'aurelia-binding' {
const getContextFor: any;
}
/**
* Retrieves the object and property name for the specified expression.
* @param expression The expression
Expand Down
12 changes: 6 additions & 6 deletions dist/amd/validate-binding-behavior-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(["require", "exports", "aurelia-dependency-injection", "./validation-cont
/**
* Binding behavior. Indicates the bound property should be validated.
*/
var ValidateBindingBehaviorBase = (function () {
var ValidateBindingBehaviorBase = /** @class */ (function () {
function ValidateBindingBehaviorBase(taskQueue) {
this.taskQueue = taskQueue;
}
Expand All @@ -29,11 +29,11 @@ define(["require", "exports", "aurelia-dependency-injection", "./validation-cont
var trigger = this.getValidateTrigger(controller);
// tslint:disable-next-line:no-bitwise
if (trigger & validate_trigger_1.validateTrigger.change) {
binding.standardUpdateSource = binding.updateSource;
binding.vbbUpdateSource = binding.updateSource;
// tslint:disable-next-line:only-arrow-functions
// tslint:disable-next-line:space-before-function-paren
binding.updateSource = function (value) {
this.standardUpdateSource(value);
this.vbbUpdateSource(value);
this.validationController.validateBinding(this);
};
}
Expand All @@ -57,9 +57,9 @@ define(["require", "exports", "aurelia-dependency-injection", "./validation-cont
};
ValidateBindingBehaviorBase.prototype.unbind = function (binding) {
// reset the binding to it's original state.
if (binding.standardUpdateSource) {
binding.updateSource = binding.standardUpdateSource;
binding.standardUpdateSource = null;
if (binding.vbbUpdateSource) {
binding.updateSource = binding.vbbUpdateSource;
binding.vbbUpdateSource = null;
}
if (binding.standardUpdateTarget) {
binding.updateTarget = binding.standardUpdateTarget;
Expand Down
10 changes: 5 additions & 5 deletions dist/amd/validate-binding-behavior.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ValidateBindingBehaviorBase } from './validate-binding-behavior-base';
* validateTrigger property occurs.
*/
export declare class ValidateBindingBehavior extends ValidateBindingBehaviorBase {
static inject: typeof TaskQueue[];
static inject: (typeof TaskQueue)[];
getValidateTrigger(controller: ValidationController): validateTrigger;
}
/**
Expand All @@ -17,15 +17,15 @@ export declare class ValidateBindingBehavior extends ValidateBindingBehaviorBase
* triggered by data-entry or blur will occur.
*/
export declare class ValidateManuallyBindingBehavior extends ValidateBindingBehaviorBase {
static inject: typeof TaskQueue[];
static inject: (typeof TaskQueue)[];
getValidateTrigger(): validateTrigger;
}
/**
* Binding behavior. Indicates the bound property should be validated
* when the associated element blurs.
*/
export declare class ValidateOnBlurBindingBehavior extends ValidateBindingBehaviorBase {
static inject: typeof TaskQueue[];
static inject: (typeof TaskQueue)[];
getValidateTrigger(): validateTrigger;
}
/**
Expand All @@ -34,7 +34,7 @@ export declare class ValidateOnBlurBindingBehavior extends ValidateBindingBehavi
* to the model.
*/
export declare class ValidateOnChangeBindingBehavior extends ValidateBindingBehaviorBase {
static inject: typeof TaskQueue[];
static inject: (typeof TaskQueue)[];
getValidateTrigger(): validateTrigger;
}
/**
Expand All @@ -43,6 +43,6 @@ export declare class ValidateOnChangeBindingBehavior extends ValidateBindingBeha
* a change to the model.
*/
export declare class ValidateOnChangeOrBlurBindingBehavior extends ValidateBindingBehaviorBase {
static inject: typeof TaskQueue[];
static inject: (typeof TaskQueue)[];
getValidateTrigger(): validateTrigger;
}
10 changes: 5 additions & 5 deletions dist/amd/validate-binding-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define(["require", "exports", "aurelia-task-queue", "./validate-trigger", "./val
* when the validate trigger specified by the associated controller's
* validateTrigger property occurs.
*/
var ValidateBindingBehavior = (function (_super) {
var ValidateBindingBehavior = /** @class */ (function (_super) {
__extends(ValidateBindingBehavior, _super);
function ValidateBindingBehavior() {
return _super !== null && _super.apply(this, arguments) || this;
Expand All @@ -33,7 +33,7 @@ define(["require", "exports", "aurelia-task-queue", "./validate-trigger", "./val
* manually, by calling controller.validate(). No automatic validation
* triggered by data-entry or blur will occur.
*/
var ValidateManuallyBindingBehavior = (function (_super) {
var ValidateManuallyBindingBehavior = /** @class */ (function (_super) {
__extends(ValidateManuallyBindingBehavior, _super);
function ValidateManuallyBindingBehavior() {
return _super !== null && _super.apply(this, arguments) || this;
Expand All @@ -49,7 +49,7 @@ define(["require", "exports", "aurelia-task-queue", "./validate-trigger", "./val
* Binding behavior. Indicates the bound property should be validated
* when the associated element blurs.
*/
var ValidateOnBlurBindingBehavior = (function (_super) {
var ValidateOnBlurBindingBehavior = /** @class */ (function (_super) {
__extends(ValidateOnBlurBindingBehavior, _super);
function ValidateOnBlurBindingBehavior() {
return _super !== null && _super.apply(this, arguments) || this;
Expand All @@ -66,7 +66,7 @@ define(["require", "exports", "aurelia-task-queue", "./validate-trigger", "./val
* when the associated element is changed by the user, causing a change
* to the model.
*/
var ValidateOnChangeBindingBehavior = (function (_super) {
var ValidateOnChangeBindingBehavior = /** @class */ (function (_super) {
__extends(ValidateOnChangeBindingBehavior, _super);
function ValidateOnChangeBindingBehavior() {
return _super !== null && _super.apply(this, arguments) || this;
Expand All @@ -83,7 +83,7 @@ define(["require", "exports", "aurelia-task-queue", "./validate-trigger", "./val
* when the associated element blurs or is changed by the user, causing
* a change to the model.
*/
var ValidateOnChangeOrBlurBindingBehavior = (function (_super) {
var ValidateOnChangeOrBlurBindingBehavior = /** @class */ (function (_super) {
__extends(ValidateOnChangeOrBlurBindingBehavior, _super);
function ValidateOnChangeOrBlurBindingBehavior() {
return _super !== null && _super.apply(this, arguments) || this;
Expand Down
58 changes: 29 additions & 29 deletions dist/amd/validate-event.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ValidateEvent = (function () {
var ValidateEvent = /** @class */ (function () {
function ValidateEvent(
/**
* The type of validate event. Either "validate" or "reset".
*/
type,
/**
* The controller's current array of errors. For an array containing both
* failed rules and passed rules, use the "results" property.
*/
errors,
/**
* The controller's current array of validate results. This
* includes both passed rules and failed rules. For an array of only failed rules,
* use the "errors" property.
*/
results,
/**
* The instruction passed to the "validate" or "reset" event. Will be null when
* the controller's validate/reset method was called with no instruction argument.
*/
instruction,
/**
* In events with type === "validate", this property will contain the result
* of validating the instruction (see "instruction" property). Use the controllerValidateResult
* to access the validate results specific to the call to "validate"
* (as opposed to using the "results" and "errors" properties to access the controller's entire
* set of results/errors).
*/
controllerValidateResult) {
/**
* The type of validate event. Either "validate" or "reset".
*/
type,
/**
* The controller's current array of errors. For an array containing both
* failed rules and passed rules, use the "results" property.
*/
errors,
/**
* The controller's current array of validate results. This
* includes both passed rules and failed rules. For an array of only failed rules,
* use the "errors" property.
*/
results,
/**
* The instruction passed to the "validate" or "reset" event. Will be null when
* the controller's validate/reset method was called with no instruction argument.
*/
instruction,
/**
* In events with type === "validate", this property will contain the result
* of validating the instruction (see "instruction" property). Use the controllerValidateResult
* to access the validate results specific to the call to "validate"
* (as opposed to using the "results" and "errors" properties to access the controller's entire
* set of results/errors).
*/
controllerValidateResult) {
this.type = type;
this.errors = errors;
this.results = results;
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/validate-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) {
/**
* The result of validating an individual validation rule.
*/
var ValidateResult = (function () {
var ValidateResult = /** @class */ (function () {
/**
* @param rule The rule associated with the result. Validator implementation specific.
* @param object The object that was validated.
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/validation-controller-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(["require", "exports", "./validation-controller", "./validator", "./prope
/**
* Creates ValidationController instances.
*/
var ValidationControllerFactory = (function () {
var ValidationControllerFactory = /** @class */ (function () {
function ValidationControllerFactory(container) {
this.container = container;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/validation-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define(["require", "exports", "./validator", "./validate-trigger", "./property-i
* Manages a set of bindings, renderers and objects.
* Exposes the current list of validation results for binding purposes.
*/
var ValidationController = (function () {
var ValidationController = /** @class */ (function () {
function ValidationController(validator, propertyParser) {
this.validator = validator;
this.propertyParser = propertyParser;
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/validation-errors-custom-attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
define(["require", "exports", "aurelia-binding", "aurelia-dependency-injection", "aurelia-templating", "./validation-controller", "aurelia-pal"], function (require, exports, aurelia_binding_1, aurelia_dependency_injection_1, aurelia_templating_1, validation_controller_1, aurelia_pal_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ValidationErrorsCustomAttribute = (function () {
var ValidationErrorsCustomAttribute = /** @class */ (function () {
function ValidationErrorsCustomAttribute(boundaryElement, controllerAccessor) {
this.boundaryElement = boundaryElement;
this.controllerAccessor = controllerAccessor;
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/validation-renderer-custom-attribute.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define(["require", "exports", "./validation-controller"], function (require, exports, validation_controller_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ValidationRendererCustomAttribute = (function () {
var ValidationRendererCustomAttribute = /** @class */ (function () {
function ValidationRendererCustomAttribute() {
}
ValidationRendererCustomAttribute.prototype.created = function (view) {
Expand Down
Loading

0 comments on commit 875b925

Please sign in to comment.