Skip to content

Commit

Permalink
chore(all): prepare release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon committed Feb 7, 2023
1 parent cd1c7be commit f1628a3
Show file tree
Hide file tree
Showing 22 changed files with 515 additions and 352 deletions.
125 changes: 76 additions & 49 deletions dist/amd/aurelia-validation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/amd/aurelia-validation.js.map

Large diffs are not rendered by default.

43 changes: 35 additions & 8 deletions dist/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Generated by dts-bundle-generator v7.2.0

import { AccessKeyed, AccessMember, AccessScope, Binary, Binding, BindingBehavior, CallMember, Conditional, Expression, LiteralPrimitive, LiteralString, Parser, Scope, ValueConverter } from 'aurelia-binding';
import { Container, Lazy } from 'aurelia-dependency-injection';
import { DOM } from 'aurelia-pal';
Expand Down Expand Up @@ -86,7 +88,7 @@ export declare enum validateTrigger {
*/
changeOrFocusout = 6
}
export declare type ValidatorCtor = new (...args: any[]) => Validator;
export type ValidatorCtor = new (...args: any[]) => Validator;
/**
* Aurelia Validation Configuration API
*/
Expand Down Expand Up @@ -155,7 +157,7 @@ export declare function getPropertyInfo(expression: Expression, source: Scope):
object: object;
propertyName: string;
} | null;
export declare type PropertyAccessor<TObject, TValue> = (object: TObject) => TValue;
export type PropertyAccessor<TObject, TValue> = (object: TObject) => TValue;
export declare class PropertyAccessorParser {
private parser;
static inject: (typeof Parser)[];
Expand Down Expand Up @@ -183,7 +185,7 @@ export interface RenderInstruction {
/**
* The "kind" of render instruction. Either 'validate' or 'reset'.
*/
kind: 'validate' | 'reset';
kind: "validate" | "reset";
/**
* The results to render.
*/
Expand All @@ -208,7 +210,7 @@ export declare class ValidateEvent {
/**
* The type of validate event. Either "validate" or "reset".
*/
readonly type: 'validate' | 'reset';
readonly type: "validate" | "reset";
/**
* The controller's current array of errors. For an array containing both
* failed rules and passed rules, use the "results" property.
Expand Down Expand Up @@ -237,7 +239,7 @@ export declare class ValidateEvent {
/**
* The type of validate event. Either "validate" or "reset".
*/
type: 'validate' | 'reset',
type: "validate" | "reset",
/**
* The controller's current array of errors. For an array containing both
* failed rules and passed rules, use the "results" property.
Expand Down Expand Up @@ -385,6 +387,26 @@ export declare class ValidationController {
revalidateErrors(): void;
private invokeCallbacks;
}
/**
* Information related to an "& validate" decorated binding.
*/
export interface BindingInfo {
/**
* The DOM element associated with the binding.
*/
target: Element;
/**
* The rules associated with the binding via the validate binding behavior's rules parameter.
*/
rules?: any;
/**
* The object and property associated with the binding.
*/
propertyInfo: {
object: any;
propertyName: string;
} | null;
}
declare abstract class ValidateBindingBehaviorBase {
private taskQueue;
constructor(taskQueue: TaskQueue);
Expand Down Expand Up @@ -468,7 +490,10 @@ export interface RenderedError {
export declare class ValidationErrorsCustomAttribute implements ValidationRenderer {
private boundaryElement;
private controllerAccessor;
static inject(): [typeof DOM.Element, Lazy<ValidationController>];
static inject(): [
typeof DOM.Element,
Lazy<ValidationController>
];
controller: ValidationController | null;
errors: RenderedError[];
private errorsInternal;
Expand All @@ -488,7 +513,7 @@ export declare class ValidationRendererCustomAttribute {
bind(): void;
unbind(): void;
}
export declare type ValidationDisplayNameAccessor = () => string;
export type ValidationDisplayNameAccessor = () => string;
/**
* Information related to a property that is the subject of validation.
*/
Expand Down Expand Up @@ -949,4 +974,6 @@ export interface Parsers {
export declare function configure(frameworkConfig: {
container: Container;
globalResources?: (...resources: any[]) => any;
}, callback?: (config: GlobalValidationConfiguration) => void): void;
}, callback?: (config: GlobalValidationConfiguration) => void): void;

export {};
Loading

0 comments on commit f1628a3

Please sign in to comment.