Skip to content

Commit

Permalink
chore(all): prepare release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Oct 30, 2018
1 parent ed009e8 commit bd2554a
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 74 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-validation",
"version": "1.2.3",
"version": "1.3.0",
"description": "Validation for Aurelia applications",
"keywords": [
"aurelia",
Expand Down
15 changes: 15 additions & 0 deletions dist/amd/aurelia-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@ define('aurelia-validation', ['exports', 'aurelia-pal', 'aurelia-binding', 'aure
return controller.validateTrigger;
};
ValidateBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validate')
], ValidateBindingBehavior);
return ValidateBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -752,6 +755,9 @@ define('aurelia-validation', ['exports', 'aurelia-pal', 'aurelia-binding', 'aure
return exports.validateTrigger.manual;
};
ValidateManuallyBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateManuallyBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateManually')
], ValidateManuallyBindingBehavior);
return ValidateManuallyBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -767,6 +773,9 @@ define('aurelia-validation', ['exports', 'aurelia-pal', 'aurelia-binding', 'aure
return exports.validateTrigger.blur;
};
ValidateOnBlurBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateOnBlurBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateOnBlur')
], ValidateOnBlurBindingBehavior);
return ValidateOnBlurBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -783,6 +792,9 @@ define('aurelia-validation', ['exports', 'aurelia-pal', 'aurelia-binding', 'aure
return exports.validateTrigger.change;
};
ValidateOnChangeBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateOnChangeBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateOnChange')
], ValidateOnChangeBindingBehavior);
return ValidateOnChangeBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -799,6 +811,9 @@ define('aurelia-validation', ['exports', 'aurelia-pal', 'aurelia-binding', 'aure
return exports.validateTrigger.changeOrBlur;
};
ValidateOnChangeOrBlurBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateOnChangeOrBlurBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateOnChangeOrBlur')
], ValidateOnChangeOrBlurBindingBehavior);
return ValidateOnChangeOrBlurBindingBehavior;
}(ValidateBindingBehaviorBase));

Expand Down
15 changes: 15 additions & 0 deletions dist/commonjs/aurelia-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ var ValidateBindingBehavior = /** @class */ (function (_super) {
return controller.validateTrigger;
};
ValidateBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validate')
], ValidateBindingBehavior);
return ValidateBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -762,6 +765,9 @@ var ValidateManuallyBindingBehavior = /** @class */ (function (_super) {
return exports.validateTrigger.manual;
};
ValidateManuallyBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateManuallyBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateManually')
], ValidateManuallyBindingBehavior);
return ValidateManuallyBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -777,6 +783,9 @@ var ValidateOnBlurBindingBehavior = /** @class */ (function (_super) {
return exports.validateTrigger.blur;
};
ValidateOnBlurBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateOnBlurBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateOnBlur')
], ValidateOnBlurBindingBehavior);
return ValidateOnBlurBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -793,6 +802,9 @@ var ValidateOnChangeBindingBehavior = /** @class */ (function (_super) {
return exports.validateTrigger.change;
};
ValidateOnChangeBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateOnChangeBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateOnChange')
], ValidateOnChangeBindingBehavior);
return ValidateOnChangeBindingBehavior;
}(ValidateBindingBehaviorBase));
/**
Expand All @@ -809,6 +821,9 @@ var ValidateOnChangeOrBlurBindingBehavior = /** @class */ (function (_super) {
return exports.validateTrigger.changeOrBlur;
};
ValidateOnChangeOrBlurBindingBehavior.inject = [aureliaTaskQueue.TaskQueue];
ValidateOnChangeOrBlurBindingBehavior = __decorate([
aureliaBinding.bindingBehavior('validateOnChangeOrBlur')
], ValidateOnChangeOrBlurBindingBehavior);
return ValidateOnChangeOrBlurBindingBehavior;
}(ValidateBindingBehaviorBase));

Expand Down
83 changes: 49 additions & 34 deletions dist/es2015/aurelia-validation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DOM } from 'aurelia-pal';
import { AccessMember, AccessScope, AccessKeyed, BindingBehavior, ValueConverter, getContextFor, Parser, bindingMode, LiteralString, Binary, Conditional, LiteralPrimitive, CallMember } from 'aurelia-binding';
import { AccessMember, AccessScope, AccessKeyed, BindingBehavior, ValueConverter, getContextFor, Parser, bindingBehavior, bindingMode, LiteralString, Binary, Conditional, LiteralPrimitive, CallMember } from 'aurelia-binding';
import { Optional, Lazy } from 'aurelia-dependency-injection';
import { TaskQueue } from 'aurelia-task-queue';
import { customAttribute, bindable, BindingLanguage, ViewResources } from 'aurelia-templating';
Expand Down Expand Up @@ -111,6 +111,28 @@ function getAccessorExpression(fn) {
return match[1];
}

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */

function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}

/**
* Validation triggers.
*/
Expand Down Expand Up @@ -669,55 +691,70 @@ class ValidateBindingBehaviorBase {
* when the validate trigger specified by the associated controller's
* validateTrigger property occurs.
*/
class ValidateBindingBehavior extends ValidateBindingBehaviorBase {
let ValidateBindingBehavior = class ValidateBindingBehavior extends ValidateBindingBehaviorBase {
getValidateTrigger(controller) {
return controller.validateTrigger;
}
}
};
ValidateBindingBehavior.inject = [TaskQueue];
ValidateBindingBehavior = __decorate([
bindingBehavior('validate')
], ValidateBindingBehavior);
/**
* Binding behavior. Indicates the bound property will be validated
* manually, by calling controller.validate(). No automatic validation
* triggered by data-entry or blur will occur.
*/
class ValidateManuallyBindingBehavior extends ValidateBindingBehaviorBase {
let ValidateManuallyBindingBehavior = class ValidateManuallyBindingBehavior extends ValidateBindingBehaviorBase {
getValidateTrigger() {
return validateTrigger.manual;
}
}
};
ValidateManuallyBindingBehavior.inject = [TaskQueue];
ValidateManuallyBindingBehavior = __decorate([
bindingBehavior('validateManually')
], ValidateManuallyBindingBehavior);
/**
* Binding behavior. Indicates the bound property should be validated
* when the associated element blurs.
*/
class ValidateOnBlurBindingBehavior extends ValidateBindingBehaviorBase {
let ValidateOnBlurBindingBehavior = class ValidateOnBlurBindingBehavior extends ValidateBindingBehaviorBase {
getValidateTrigger() {
return validateTrigger.blur;
}
}
};
ValidateOnBlurBindingBehavior.inject = [TaskQueue];
ValidateOnBlurBindingBehavior = __decorate([
bindingBehavior('validateOnBlur')
], ValidateOnBlurBindingBehavior);
/**
* Binding behavior. Indicates the bound property should be validated
* when the associated element is changed by the user, causing a change
* to the model.
*/
class ValidateOnChangeBindingBehavior extends ValidateBindingBehaviorBase {
let ValidateOnChangeBindingBehavior = class ValidateOnChangeBindingBehavior extends ValidateBindingBehaviorBase {
getValidateTrigger() {
return validateTrigger.change;
}
}
};
ValidateOnChangeBindingBehavior.inject = [TaskQueue];
ValidateOnChangeBindingBehavior = __decorate([
bindingBehavior('validateOnChange')
], ValidateOnChangeBindingBehavior);
/**
* Binding behavior. Indicates the bound property should be validated
* when the associated element blurs or is changed by the user, causing
* a change to the model.
*/
class ValidateOnChangeOrBlurBindingBehavior extends ValidateBindingBehaviorBase {
let ValidateOnChangeOrBlurBindingBehavior = class ValidateOnChangeOrBlurBindingBehavior extends ValidateBindingBehaviorBase {
getValidateTrigger() {
return validateTrigger.changeOrBlur;
}
}
ValidateOnChangeOrBlurBindingBehavior.inject = [TaskQueue];
};
ValidateOnChangeOrBlurBindingBehavior.inject = [TaskQueue];
ValidateOnChangeOrBlurBindingBehavior = __decorate([
bindingBehavior('validateOnChangeOrBlur')
], ValidateOnChangeOrBlurBindingBehavior);

/**
* Creates ValidationController instances.
Expand Down Expand Up @@ -751,28 +788,6 @@ class ValidationControllerFactory {
}
ValidationControllerFactory['protocol:aurelia:resolver'] = true;

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */

function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}

let ValidationErrorsCustomAttribute = class ValidationErrorsCustomAttribute {
constructor(boundaryElement, controllerAccessor) {
this.boundaryElement = boundaryElement;
Expand Down
Loading

0 comments on commit bd2554a

Please sign in to comment.