Skip to content

Commit f1628a3

Browse files
committed
chore(all): prepare release 2.0.0
1 parent cd1c7be commit f1628a3

22 files changed

+515
-352
lines changed

dist/amd/aurelia-validation.js

Lines changed: 76 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/amd/aurelia-validation.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/aurelia-validation.d.ts

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Generated by dts-bundle-generator v7.2.0
2+
13
import { AccessKeyed, AccessMember, AccessScope, Binary, Binding, BindingBehavior, CallMember, Conditional, Expression, LiteralPrimitive, LiteralString, Parser, Scope, ValueConverter } from 'aurelia-binding';
24
import { Container, Lazy } from 'aurelia-dependency-injection';
35
import { DOM } from 'aurelia-pal';
@@ -86,7 +88,7 @@ export declare enum validateTrigger {
8688
*/
8789
changeOrFocusout = 6
8890
}
89-
export declare type ValidatorCtor = new (...args: any[]) => Validator;
91+
export type ValidatorCtor = new (...args: any[]) => Validator;
9092
/**
9193
* Aurelia Validation Configuration API
9294
*/
@@ -155,7 +157,7 @@ export declare function getPropertyInfo(expression: Expression, source: Scope):
155157
object: object;
156158
propertyName: string;
157159
} | null;
158-
export declare type PropertyAccessor<TObject, TValue> = (object: TObject) => TValue;
160+
export type PropertyAccessor<TObject, TValue> = (object: TObject) => TValue;
159161
export declare class PropertyAccessorParser {
160162
private parser;
161163
static inject: (typeof Parser)[];
@@ -183,7 +185,7 @@ export interface RenderInstruction {
183185
/**
184186
* The "kind" of render instruction. Either 'validate' or 'reset'.
185187
*/
186-
kind: 'validate' | 'reset';
188+
kind: "validate" | "reset";
187189
/**
188190
* The results to render.
189191
*/
@@ -208,7 +210,7 @@ export declare class ValidateEvent {
208210
/**
209211
* The type of validate event. Either "validate" or "reset".
210212
*/
211-
readonly type: 'validate' | 'reset';
213+
readonly type: "validate" | "reset";
212214
/**
213215
* The controller's current array of errors. For an array containing both
214216
* failed rules and passed rules, use the "results" property.
@@ -237,7 +239,7 @@ export declare class ValidateEvent {
237239
/**
238240
* The type of validate event. Either "validate" or "reset".
239241
*/
240-
type: 'validate' | 'reset',
242+
type: "validate" | "reset",
241243
/**
242244
* The controller's current array of errors. For an array containing both
243245
* failed rules and passed rules, use the "results" property.
@@ -385,6 +387,26 @@ export declare class ValidationController {
385387
revalidateErrors(): void;
386388
private invokeCallbacks;
387389
}
390+
/**
391+
* Information related to an "& validate" decorated binding.
392+
*/
393+
export interface BindingInfo {
394+
/**
395+
* The DOM element associated with the binding.
396+
*/
397+
target: Element;
398+
/**
399+
* The rules associated with the binding via the validate binding behavior's rules parameter.
400+
*/
401+
rules?: any;
402+
/**
403+
* The object and property associated with the binding.
404+
*/
405+
propertyInfo: {
406+
object: any;
407+
propertyName: string;
408+
} | null;
409+
}
388410
declare abstract class ValidateBindingBehaviorBase {
389411
private taskQueue;
390412
constructor(taskQueue: TaskQueue);
@@ -468,7 +490,10 @@ export interface RenderedError {
468490
export declare class ValidationErrorsCustomAttribute implements ValidationRenderer {
469491
private boundaryElement;
470492
private controllerAccessor;
471-
static inject(): [typeof DOM.Element, Lazy<ValidationController>];
493+
static inject(): [
494+
typeof DOM.Element,
495+
Lazy<ValidationController>
496+
];
472497
controller: ValidationController | null;
473498
errors: RenderedError[];
474499
private errorsInternal;
@@ -488,7 +513,7 @@ export declare class ValidationRendererCustomAttribute {
488513
bind(): void;
489514
unbind(): void;
490515
}
491-
export declare type ValidationDisplayNameAccessor = () => string;
516+
export type ValidationDisplayNameAccessor = () => string;
492517
/**
493518
* Information related to a property that is the subject of validation.
494519
*/
@@ -949,4 +974,6 @@ export interface Parsers {
949974
export declare function configure(frameworkConfig: {
950975
container: Container;
951976
globalResources?: (...resources: any[]) => any;
952-
}, callback?: (config: GlobalValidationConfiguration) => void): void;
977+
}, callback?: (config: GlobalValidationConfiguration) => void): void;
978+
979+
export {};

0 commit comments

Comments
 (0)