@o3r/forms 13.0.0-next.2 → 13.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/o3r-forms.mjs +24 -24
- package/fesm2022/o3r-forms.mjs.map +1 -1
- package/index.d.ts +412 -4
- package/index.d.ts.map +1 -0
- package/package.json +13 -13
- package/schematics/ng-add/schema.json +2 -1
- package/annotations/async-input.d.ts +0 -15
- package/annotations/async-input.d.ts.map +0 -1
- package/annotations/index.d.ts +0 -2
- package/annotations/index.d.ts.map +0 -1
- package/core/custom-validation.d.ts +0 -39
- package/core/custom-validation.d.ts.map +0 -1
- package/core/errors.d.ts +0 -70
- package/core/errors.d.ts.map +0 -1
- package/core/extended-validator.d.ts +0 -13
- package/core/extended-validator.d.ts.map +0 -1
- package/core/flat-errors.d.ts +0 -28
- package/core/flat-errors.d.ts.map +0 -1
- package/core/helpers.d.ts +0 -23
- package/core/helpers.d.ts.map +0 -1
- package/core/index.d.ts +0 -7
- package/core/index.d.ts.map +0 -1
- package/core/submit.d.ts +0 -17
- package/core/submit.d.ts.map +0 -1
- package/o3r-forms.d.ts.map +0 -1
- package/public_api.d.ts +0 -5
- package/public_api.d.ts.map +0 -1
- package/stores/form-error-messages/form-error-messages.actions.d.ts +0 -28
- package/stores/form-error-messages/form-error-messages.actions.d.ts.map +0 -1
- package/stores/form-error-messages/form-error-messages.module.d.ts +0 -16
- package/stores/form-error-messages/form-error-messages.module.d.ts.map +0 -1
- package/stores/form-error-messages/form-error-messages.reducer.d.ts +0 -20
- package/stores/form-error-messages/form-error-messages.reducer.d.ts.map +0 -1
- package/stores/form-error-messages/form-error-messages.selectors.d.ts +0 -17
- package/stores/form-error-messages/form-error-messages.selectors.d.ts.map +0 -1
- package/stores/form-error-messages/form-error-messages.state.d.ts +0 -24
- package/stores/form-error-messages/form-error-messages.state.d.ts.map +0 -1
- package/stores/form-error-messages/index.d.ts +0 -6
- package/stores/form-error-messages/index.d.ts.map +0 -1
- package/stores/index.d.ts +0 -2
- package/stores/index.d.ts.map +0 -1
- package/validators/date/date-validators.module.d.ts +0 -13
- package/validators/date/date-validators.module.d.ts.map +0 -1
- package/validators/date/index.d.ts +0 -4
- package/validators/date/index.d.ts.map +0 -1
- package/validators/date/max-date.directive.d.ts +0 -30
- package/validators/date/max-date.directive.d.ts.map +0 -1
- package/validators/date/min-date.directive.d.ts +0 -30
- package/validators/date/min-date.directive.d.ts.map +0 -1
- package/validators/index.d.ts +0 -3
- package/validators/index.d.ts.map +0 -1
- package/validators/number/index.d.ts +0 -4
- package/validators/number/index.d.ts.map +0 -1
- package/validators/number/max.directive.d.ts +0 -24
- package/validators/number/max.directive.d.ts.map +0 -1
- package/validators/number/min.directive.d.ts +0 -24
- package/validators/number/min.directive.d.ts.map +0 -1
- package/validators/number/number-validators.module.d.ts +0 -13
- package/validators/number/number-validators.module.d.ts.map +0 -1
package/core/flat-errors.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ValidationErrors } from '@angular/forms';
|
|
2
|
-
import { ErrorMessageObject } from './errors';
|
|
3
|
-
/** Flat representation of Angular's ValidationError */
|
|
4
|
-
export interface FlatError {
|
|
5
|
-
/** The key that identifies the validation error */
|
|
6
|
-
errorKey: string;
|
|
7
|
-
/** The value linked to the validation error */
|
|
8
|
-
errorValue: any;
|
|
9
|
-
/** The original validation error */
|
|
10
|
-
validationError: ValidationErrors;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents all errors (validation or custom ones) from a control.
|
|
14
|
-
* Useful for working with form errors
|
|
15
|
-
* @note The control may be form, therefore the controlName may be undefined
|
|
16
|
-
*/
|
|
17
|
-
export interface ControlFlatErrors {
|
|
18
|
-
/**
|
|
19
|
-
* The name of a field. e.g firstName, cardNumber. If it's a form, should be undefined
|
|
20
|
-
* @note For child fields, use [parentControlName].[fieldName]. e.g expiryDate.month
|
|
21
|
-
*/
|
|
22
|
-
controlName?: string;
|
|
23
|
-
/** List of customErrors (coming from custom validation) linked to the control */
|
|
24
|
-
customErrors?: ErrorMessageObject[] | null;
|
|
25
|
-
/** The list of flatten errors linked to the control */
|
|
26
|
-
errors: FlatError[];
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=flat-errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flat-errors.d.ts","sourceRoot":"","sources":["../../src/core/flat-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,uDAAuD;AACvD,MAAM,WAAW,SAAS;IACxB,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,UAAU,EAAE,GAAG,CAAC;IAChB,oCAAoC;IACpC,eAAe,EAAE,gBAAgB,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,YAAY,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAC3C,uDAAuD;IACvD,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB"}
|
package/core/helpers.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { ControlFlatErrors } from './flat-errors';
|
|
3
|
-
/**
|
|
4
|
-
* Checks if controls is a FormGroup
|
|
5
|
-
* @param control
|
|
6
|
-
*/
|
|
7
|
-
export declare function isFormGroup(control: AbstractControl): control is FormGroup;
|
|
8
|
-
/**
|
|
9
|
-
* Mark the controls in the given form as touched and dirty
|
|
10
|
-
* @param control
|
|
11
|
-
*/
|
|
12
|
-
export declare function markAllControlsDirtyAndTouched(control: AbstractControl): void;
|
|
13
|
-
/**
|
|
14
|
-
* Mark the controls in the given form as untouched and pristine
|
|
15
|
-
* @param control
|
|
16
|
-
*/
|
|
17
|
-
export declare function markAllControlsPristineAndUntouched(control: AbstractControl): void;
|
|
18
|
-
/**
|
|
19
|
-
* Gets a flat list of all the errors in the form and it's descendents
|
|
20
|
-
* @param form Form to be checked
|
|
21
|
-
*/
|
|
22
|
-
export declare function getFlatControlErrors(form: AbstractControl): ControlFlatErrors[];
|
|
23
|
-
//# sourceMappingURL=helpers.d.ts.map
|
package/core/helpers.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,SAAS,EAEV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EAElB,MAAM,eAAe,CAAC;AAEvB;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,IAAI,SAAS,CAE1E;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,eAAe,QAWtE;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,eAAe,QAW3E;AAoBD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,eAAe,uBAiCzD"}
|
package/core/index.d.ts
DELETED
package/core/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|
package/core/submit.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Interface for the submittable component
|
|
5
|
-
*/
|
|
6
|
-
export interface Submittable {
|
|
7
|
-
/**
|
|
8
|
-
* Function call on submit action
|
|
9
|
-
* This will commit and send the information relative to the component to the server
|
|
10
|
-
*/
|
|
11
|
-
submit: () => Observable<boolean>;
|
|
12
|
-
/**
|
|
13
|
-
* Form group of the submittable component
|
|
14
|
-
*/
|
|
15
|
-
formGroup: AbstractControl;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=submit.d.ts.map
|
package/core/submit.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../src/core/submit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACX,MAAM,MAAM,CAAC;AAEd;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,MAAM,EAAE,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;IAElC;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;CAC5B"}
|
package/o3r-forms.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-forms.d.ts","sourceRoot":"","sources":["../src/o3r-forms.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
package/public_api.d.ts
DELETED
package/public_api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SetEntitiesActionPayload } from '@o3r/core';
|
|
2
|
-
import { FormError } from '../../core/index';
|
|
3
|
-
/** The payload of remove entity */
|
|
4
|
-
export interface RemoveFormErrorMessagesPayload {
|
|
5
|
-
/** id of the FormErrorMessages to be removed */
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Action to remove an entity from the store
|
|
10
|
-
*/
|
|
11
|
-
export declare const removeFormErrorMessagesEntity: import("@ngrx/store").ActionCreator<"[FormErrorMessages] remove entities", (props: RemoveFormErrorMessagesPayload) => RemoveFormErrorMessagesPayload & import("@ngrx/store").Action<"[FormErrorMessages] remove entities">>;
|
|
12
|
-
/**
|
|
13
|
-
* Action to reset the whole state, by returning it to initial state.
|
|
14
|
-
*/
|
|
15
|
-
export declare const resetFormErrorMessages: import("@ngrx/store").ActionCreator<"[FormErrorMessages] reset", () => import("@ngrx/store").Action<"[FormErrorMessages] reset">>;
|
|
16
|
-
/**
|
|
17
|
-
* Clear all formErrorMessages and fill the store with the payload
|
|
18
|
-
*/
|
|
19
|
-
export declare const setFormErrorMessagesEntities: import("@ngrx/store").ActionCreator<"[FormErrorMessages] set entities", (props: SetEntitiesActionPayload<FormError>) => SetEntitiesActionPayload<FormError> & import("@ngrx/store").Action<"[FormErrorMessages] set entities">>;
|
|
20
|
-
/**
|
|
21
|
-
* Update formErrorMessages with known IDs, insert the new ones
|
|
22
|
-
*/
|
|
23
|
-
export declare const upsertFormErrorMessagesEntities: import("@ngrx/store").ActionCreator<"[FormErrorMessages] upsert entities", (props: SetEntitiesActionPayload<FormError>) => SetEntitiesActionPayload<FormError> & import("@ngrx/store").Action<"[FormErrorMessages] upsert entities">>;
|
|
24
|
-
/**
|
|
25
|
-
* Clear only the entities, keeps the other attributes in the state
|
|
26
|
-
*/
|
|
27
|
-
export declare const clearFormErrorMessagesEntities: import("@ngrx/store").ActionCreator<"[FormErrorMessages] clear entities", () => import("@ngrx/store").Action<"[FormErrorMessages] clear entities">>;
|
|
28
|
-
//# sourceMappingURL=form-error-messages.actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-error-messages.actions.d.ts","sourceRoot":"","sources":["../../../src/stores/form-error-messages/form-error-messages.actions.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,wBAAwB,EACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,SAAS,EACV,MAAM,kBAAkB,CAAC;AAW1B,mCAAmC;AACnC,MAAM,WAAW,8BAA8B;IAC7C,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,6NAA8E,CAAC;AAEzH;;GAEG;AACH,eAAO,MAAM,sBAAsB,mIAA6B,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,4BAA4B,iOAAkF,CAAC;AAE5H;;GAEG;AACH,eAAO,MAAM,+BAA+B,uOAAqF,CAAC;AAElI;;GAEG;AACH,eAAO,MAAM,8BAA8B,qJAAsC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { Action, ActionReducer } from '@ngrx/store';
|
|
3
|
-
import { FormErrorMessagesState } from './form-error-messages.state';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@ngrx/store";
|
|
6
|
-
/** Token of the FormErrorMessages reducer */
|
|
7
|
-
export declare const FORM_ERROR_MESSAGES_REDUCER_TOKEN: InjectionToken<ActionReducer<FormErrorMessagesState, Action<string>>>;
|
|
8
|
-
/** Provide default reducer for FormErrorMessages store */
|
|
9
|
-
export declare function getDefaultFormErrorMessagesReducer(): ActionReducer<FormErrorMessagesState, Action<string>>;
|
|
10
|
-
export declare class FormErrorMessagesStoreModule {
|
|
11
|
-
static forRoot<T extends FormErrorMessagesState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<FormErrorMessagesStoreModule>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorMessagesStoreModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormErrorMessagesStoreModule, never, [typeof i1.StoreFeatureModule], never>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormErrorMessagesStoreModule>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=form-error-messages.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-error-messages.module.d.ts","sourceRoot":"","sources":["../../../src/stores/form-error-messages/form-error-messages.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EAEpB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,MAAM,EACN,aAAa,EAEd,MAAM,aAAa,CAAC;AAIrB,OAAO,EAEL,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;;;AAErC,6CAA6C;AAC7C,eAAO,MAAM,iCAAiC,uEAAyG,CAAC;AAExJ,0DAA0D;AAC1D,wBAAgB,kCAAkC,0DAEjD;AAED,qBAQa,4BAA4B;WACzB,OAAO,CAAC,CAAC,SAAS,sBAAsB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,mBAAmB,CAAC,4BAA4B,CAAC;yCAD/I,4BAA4B;0CAA5B,4BAA4B;0CAA5B,4BAA4B;CASxC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EntityAdapter } from '@ngrx/entity';
|
|
2
|
-
import { ActionCreator, ReducerTypes } from '@ngrx/store';
|
|
3
|
-
import { FormErrorMessagesState, FormErrorModel } from './form-error-messages.state';
|
|
4
|
-
/**
|
|
5
|
-
* FormErrorMessages Store adapter
|
|
6
|
-
*/
|
|
7
|
-
export declare const formErrorMessagesAdapter: EntityAdapter<FormErrorModel>;
|
|
8
|
-
/**
|
|
9
|
-
* FormErrorMessages Store initial value
|
|
10
|
-
*/
|
|
11
|
-
export declare const formErrorMessagesInitialState: FormErrorMessagesState;
|
|
12
|
-
/**
|
|
13
|
-
* List of basic actions for FormErrorMessages Store
|
|
14
|
-
*/
|
|
15
|
-
export declare const formErrorMessagesReducerFeatures: ReducerTypes<FormErrorMessagesState, ActionCreator[]>[];
|
|
16
|
-
/**
|
|
17
|
-
* FormErrorMessages Store reducer
|
|
18
|
-
*/
|
|
19
|
-
export declare const formErrorMessagesReducer: import("@ngrx/store").ActionReducer<FormErrorMessagesState, import("@ngrx/store").Action<string>>;
|
|
20
|
-
//# sourceMappingURL=form-error-messages.reducer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-error-messages.reducer.d.ts","sourceRoot":"","sources":["../../../src/stores/form-error-messages/form-error-messages.reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EAGb,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,sBAAsB,EACtB,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,cAAc,CAEjE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,sBAAqE,CAAC;AAElH;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,YAAY,CAAC,sBAAsB,EAAE,aAAa,EAAE,CAAC,EAUnG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,mGAGpC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementError, ErrorMessageObject } from '../../core/index';
|
|
2
|
-
import { FormErrorMessagesState } from './form-error-messages.state';
|
|
3
|
-
/** Select FormErrorMessages State */
|
|
4
|
-
export declare const selectFormErrorMessagesState: import("@ngrx/store").MemoizedSelector<object, FormErrorMessagesState, import("@ngrx/store").DefaultProjectorFn<FormErrorMessagesState>>;
|
|
5
|
-
/** Select the array of FormErrorMessages ids */
|
|
6
|
-
export declare const selectFormErrorMessagesIds: import("@ngrx/store").MemoizedSelector<object, string[] | number[], (s1: FormErrorMessagesState) => string[] | number[]>;
|
|
7
|
-
/** Select the array of FormErrorMessages */
|
|
8
|
-
export declare const selectAllFormErrorMessages: import("@ngrx/store").MemoizedSelector<object, import("./form-error-messages.state").FormErrorModel[], (s1: FormErrorMessagesState) => import("./form-error-messages.state").FormErrorModel[]>;
|
|
9
|
-
/** Select the dictionary of FormErrorMessages entities */
|
|
10
|
-
export declare const selectFormErrorMessagesEntities: import("@ngrx/store").MemoizedSelector<object, import("@ngrx/entity").Dictionary<import("./form-error-messages.state").FormErrorModel>, (s1: FormErrorMessagesState) => import("@ngrx/entity").Dictionary<import("./form-error-messages.state").FormErrorModel>>;
|
|
11
|
-
/** Select the total FormErrorMessages count */
|
|
12
|
-
export declare const selectFormErrorMessagesTotal: import("@ngrx/store").MemoizedSelector<object, number, (s1: FormErrorMessagesState) => number>;
|
|
13
|
-
/** Select the array of all ElementErrors */
|
|
14
|
-
export declare const selectAllElementErrors: import("@ngrx/store").MemoizedSelector<object, ElementError[], (s1: import("./form-error-messages.state").FormErrorModel[]) => ElementError[]>;
|
|
15
|
-
/** Select the array of all ErrorMessageObjects */
|
|
16
|
-
export declare const selectAllErrorMessageObjects: import("@ngrx/store").MemoizedSelector<object, ErrorMessageObject[], (s1: ElementError[]) => ErrorMessageObject[]>;
|
|
17
|
-
//# sourceMappingURL=form-error-messages.selectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-error-messages.selectors.d.ts","sourceRoot":"","sources":["../../../src/stores/form-error-messages/form-error-messages.selectors.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAEL,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AAIrC,qCAAqC;AACrC,eAAO,MAAM,4BAA4B,0IAAgF,CAAC;AAE1H,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,0HAA0D,CAAC;AAElG,4CAA4C;AAC5C,eAAO,MAAM,0BAA0B,gMAA0D,CAAC;AAElG,0DAA0D;AAC1D,eAAO,MAAM,+BAA+B,kQAA+D,CAAC;AAE5G,+CAA+C;AAC/C,eAAO,MAAM,4BAA4B,gGAA4D,CAAC;AAEtG,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,gJAGlC,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,4BAA4B,oHAGxC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { EntityState } from '@ngrx/entity';
|
|
2
|
-
import { FormError } from '../../core/index';
|
|
3
|
-
/**
|
|
4
|
-
* FormError model
|
|
5
|
-
*/
|
|
6
|
-
export interface FormErrorModel extends FormError {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* FormError store state
|
|
10
|
-
*/
|
|
11
|
-
export interface FormErrorMessagesState extends EntityState<FormErrorModel> {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Name of the FormError Store
|
|
15
|
-
*/
|
|
16
|
-
export declare const FORM_ERROR_MESSAGES_STORE_NAME = "formErrorMessages";
|
|
17
|
-
/**
|
|
18
|
-
* FormError Store Interface
|
|
19
|
-
*/
|
|
20
|
-
export interface FormErrorMessagesStore {
|
|
21
|
-
/** FormErrorMessages state */
|
|
22
|
-
[FORM_ERROR_MESSAGES_STORE_NAME]: FormErrorMessagesState;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=form-error-messages.state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-error-messages.state.d.ts","sourceRoot":"","sources":["../../../src/stores/form-error-messages/form-error-messages.state.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,SAAS;CAEhD;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW,CAAC,cAAc,CAAC;CAAG;AAE9E;;GAEG;AACH,eAAO,MAAM,8BAA8B,sBAAsB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,CAAC,8BAA8B,CAAC,EAAE,sBAAsB,CAAC;CAC1D"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './form-error-messages.actions';
|
|
2
|
-
export * from './form-error-messages.module';
|
|
3
|
-
export * from './form-error-messages.reducer';
|
|
4
|
-
export * from './form-error-messages.selectors';
|
|
5
|
-
export * from './form-error-messages.state';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stores/form-error-messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC"}
|
package/stores/index.d.ts
DELETED
package/stores/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "./max-date.directive";
|
|
4
|
-
import * as i3 from "./min-date.directive";
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated MaxDateValidator and MinDateValidator are now standalone, this module will be removed in v14
|
|
7
|
-
*/
|
|
8
|
-
export declare class DateValidatorsModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateValidatorsModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DateValidatorsModule, never, [typeof i1.CommonModule, typeof i2.MaxDateValidator, typeof i3.MinDateValidator], [typeof i2.MaxDateValidator, typeof i3.MinDateValidator]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DateValidatorsModule>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=date-validators.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-validators.module.d.ts","sourceRoot":"","sources":["../../../src/validators/date/date-validators.module.ts"],"names":[],"mappings":";;;;AAaA;;GAEG;AACH,qBAIa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/validators/date/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { utils } from '@ama-sdk/core';
|
|
2
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A directive which installs the `MaxDateValidator` for any `formControlName,
|
|
7
|
-
* `formControl`,
|
|
8
|
-
* or control with `ngModel` that also has a `maxdate` attribute.
|
|
9
|
-
*/
|
|
10
|
-
export declare class MaxDateValidator implements Validator, OnChanges {
|
|
11
|
-
/** Maximum date to compare to */
|
|
12
|
-
maxdate: utils.Date | null;
|
|
13
|
-
private validator;
|
|
14
|
-
private onChange;
|
|
15
|
-
private createValidator;
|
|
16
|
-
/** @inheritDoc */
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
-
/** @inheritDoc */
|
|
19
|
-
validate(c: AbstractControl): ValidationErrors | null;
|
|
20
|
-
/** @inheritDoc */
|
|
21
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
22
|
-
/**
|
|
23
|
-
* Maximum Date validator
|
|
24
|
-
* @param maxDate Maximum date to compare to
|
|
25
|
-
*/
|
|
26
|
-
static maxDate(maxDate: utils.Date | null): ValidatorFn;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidator, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidator, "[maxdate][formControlName],[maxdate][formControl],[maxdate][ngModel]", never, { "maxdate": { "alias": "maxdate"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=max-date.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"max-date.directive.d.ts","sourceRoot":"","sources":["../../../src/validators/date/max-date.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,SAAS,EACT,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAEf,gBAAgB,EAChB,SAAS,EACT,WAAW,EACZ,MAAM,gBAAgB,CAAC;;AAExB;;;;GAIG;AACH,qBAUa,gBAAiB,YAAW,SAAS,EAAE,SAAS;IAC3D,iCAAiC;IACjB,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAQ;IAElD,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,QAAQ,CAAwB;IAExC,OAAO,CAAC,eAAe;IAIvB,kBAAkB;IACX,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAUhD,kBAAkB;IACX,QAAQ,CAAC,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,IAAI;IAI5D,kBAAkB;IACX,yBAAyB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAItD;;;OAGG;WACW,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,IAAI,GAAG,WAAW;yCApCnD,gBAAgB;2CAAhB,gBAAgB;CA+C5B"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { utils } from '@ama-sdk/core';
|
|
2
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A directive which installs the `MinDateValidator` for any `formControlName,
|
|
7
|
-
* `formControl`,
|
|
8
|
-
* or control with `ngModel` that also has a `mindate` attribute.
|
|
9
|
-
*/
|
|
10
|
-
export declare class MinDateValidator implements Validator, OnChanges {
|
|
11
|
-
/** Minimum date to compare to */
|
|
12
|
-
mindate: utils.Date | null;
|
|
13
|
-
private validator;
|
|
14
|
-
private onChange;
|
|
15
|
-
private createValidator;
|
|
16
|
-
/** @inheritDoc */
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
-
/** @inheritDoc */
|
|
19
|
-
validate(c: AbstractControl): ValidationErrors | null;
|
|
20
|
-
/** @inheritDoc */
|
|
21
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
22
|
-
/**
|
|
23
|
-
* Minimum Date validator
|
|
24
|
-
* @param minDate Minimum date to compare to
|
|
25
|
-
*/
|
|
26
|
-
static minDate(minDate: utils.Date | null): ValidatorFn;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MinDateValidator, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MinDateValidator, "[mindate][formControlName],[mindate][formControl],[mindate][ngModel]", never, { "mindate": { "alias": "mindate"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=min-date.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"min-date.directive.d.ts","sourceRoot":"","sources":["../../../src/validators/date/min-date.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,SAAS,EACT,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAEf,gBAAgB,EAChB,SAAS,EACT,WAAW,EACZ,MAAM,gBAAgB,CAAC;;AAExB;;;;GAIG;AACH,qBAUa,gBAAiB,YAAW,SAAS,EAAE,SAAS;IAC3D,iCAAiC;IACjB,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAQ;IAElD,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,QAAQ,CAAwB;IAExC,OAAO,CAAC,eAAe;IAIvB,kBAAkB;IACX,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAUhD,kBAAkB;IACX,QAAQ,CAAC,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,IAAI;IAI5D,kBAAkB;IACX,yBAAyB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAItD;;;OAGG;WACW,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,IAAI,GAAG,WAAW;yCApCnD,gBAAgB;2CAAhB,gBAAgB;CA+C5B"}
|
package/validators/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/validators/number/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A directive which installs the `MaxValidator` for any `formControlName,
|
|
6
|
-
* `formControl`,
|
|
7
|
-
* or control with `ngModel` that also has a `max` attribute.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MaxValidator implements Validator, OnChanges {
|
|
10
|
-
/** Maximum date to compare to */
|
|
11
|
-
max: string | number | null;
|
|
12
|
-
private validator;
|
|
13
|
-
private onChange;
|
|
14
|
-
private createValidator;
|
|
15
|
-
/** @inheritDoc */
|
|
16
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
-
/** @inheritDoc */
|
|
18
|
-
validate(c: AbstractControl): ValidationErrors | null;
|
|
19
|
-
/** @inheritDoc */
|
|
20
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaxValidator, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidator, "[max][formControlName],[max][formControl],[max][ngModel]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=max.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"max.directive.d.ts","sourceRoot":"","sources":["../../../src/validators/number/max.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACT,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAEf,gBAAgB,EAChB,SAAS,EAGV,MAAM,gBAAgB,CAAC;;AAExB;;;;GAIG;AACH,qBAWa,YAAa,YAAW,SAAS,EAAE,SAAS;IACvD,iCAAiC;IACjB,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAQ;IAEnD,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,QAAQ,CAAwB;IAExC,OAAO,CAAC,eAAe;IAMvB,kBAAkB;IACX,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAUhD,kBAAkB;IACX,QAAQ,CAAC,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,IAAI;IAI5D,kBAAkB;IACX,yBAAyB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;yCA9B3C,YAAY;2CAAZ,YAAY;CAiCxB"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A directive which installs the `MinValidator` for any `formControlName,
|
|
6
|
-
* `formControl`,
|
|
7
|
-
* or control with `ngModel` that also has a `min` attribute.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MinValidator implements Validator, OnChanges {
|
|
10
|
-
/** Minimum date to compare to */
|
|
11
|
-
min: string | number | null;
|
|
12
|
-
private validator;
|
|
13
|
-
private onChange;
|
|
14
|
-
private createValidator;
|
|
15
|
-
/** @inheritDoc */
|
|
16
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
-
/** @inheritDoc */
|
|
18
|
-
validate(c: AbstractControl): ValidationErrors | null;
|
|
19
|
-
/** @inheritDoc */
|
|
20
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MinValidator, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidator, "[min][formControlName],[min][formControl],[min][ngModel]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=min.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"min.directive.d.ts","sourceRoot":"","sources":["../../../src/validators/number/min.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACT,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAEf,gBAAgB,EAChB,SAAS,EAGV,MAAM,gBAAgB,CAAC;;AAExB;;;;GAIG;AACH,qBAWa,YAAa,YAAW,SAAS,EAAE,SAAS;IACvD,iCAAiC;IACjB,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAQ;IAEnD,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,QAAQ,CAAwB;IAExC,OAAO,CAAC,eAAe;IAMvB,kBAAkB;IACX,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAUhD,kBAAkB;IACX,QAAQ,CAAC,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,IAAI;IAI5D,kBAAkB;IACX,yBAAyB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;yCA9B3C,YAAY;2CAAZ,YAAY;CAiCxB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "./max.directive";
|
|
4
|
-
import * as i3 from "./min.directive";
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated MaxValidator and MinValidator are now standalone, this module will be removed in v14
|
|
7
|
-
*/
|
|
8
|
-
export declare class NumberValidatorsModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberValidatorsModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NumberValidatorsModule, never, [typeof i1.CommonModule, typeof i2.MaxValidator, typeof i3.MinValidator], [typeof i2.MaxValidator, typeof i3.MinValidator]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NumberValidatorsModule>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=number-validators.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-validators.module.d.ts","sourceRoot":"","sources":["../../../src/validators/number/number-validators.module.ts"],"names":[],"mappings":";;;;AAaA;;GAEG;AACH,qBAIa,sBAAsB;yCAAtB,sBAAsB;0CAAtB,sBAAsB;0CAAtB,sBAAsB;CAAG"}
|