@rxap/forms 13.0.0-next.2 → 14.0.0

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.
Files changed (47) hide show
  1. package/esm2020/lib/directives/form-control-error.directive.mjs +4 -4
  2. package/esm2020/lib/directives/form-control-mark-dirty.directive.mjs +3 -3
  3. package/esm2020/lib/directives/form-control-mark-pristine.directive.mjs +3 -3
  4. package/esm2020/lib/directives/form-control-mark-touched.directive.mjs +3 -3
  5. package/esm2020/lib/directives/form-control-mark-untouched.directive.mjs +3 -3
  6. package/esm2020/lib/directives/form-control-name.directive.mjs +4 -4
  7. package/esm2020/lib/directives/form-group-name.directive.mjs +3 -3
  8. package/esm2020/lib/directives/form-loaded.directive.mjs +3 -3
  9. package/esm2020/lib/directives/form-loading-error.directive.mjs +3 -3
  10. package/esm2020/lib/directives/form-loading.directive.mjs +3 -3
  11. package/esm2020/lib/directives/form-submit-failed.directive.mjs +3 -3
  12. package/esm2020/lib/directives/form-submit-invalid.directive.mjs +3 -3
  13. package/esm2020/lib/directives/form-submit-successful.directive.mjs +3 -3
  14. package/esm2020/lib/directives/form-submit.directive.mjs +3 -3
  15. package/esm2020/lib/directives/form-submitting.directive.mjs +3 -3
  16. package/esm2020/lib/directives/form.directive.mjs +4 -4
  17. package/esm2020/lib/directives/forms.module.mjs +4 -4
  18. package/esm2020/lib/directives/parent-control-container.directive.mjs +3 -3
  19. package/esm2020/lib/form-array.mjs +3 -3
  20. package/esm2020/lib/form-control.mjs +3 -3
  21. package/esm2020/lib/form-group.mjs +3 -3
  22. package/fesm2015/rxap-forms.mjs +59 -59
  23. package/fesm2015/rxap-forms.mjs.map +1 -1
  24. package/fesm2020/rxap-forms.mjs +59 -59
  25. package/fesm2020/rxap-forms.mjs.map +1 -1
  26. package/lib/directives/form-control-error.directive.d.ts +1 -1
  27. package/lib/directives/form-control-mark-dirty.directive.d.ts +1 -1
  28. package/lib/directives/form-control-mark-pristine.directive.d.ts +1 -1
  29. package/lib/directives/form-control-mark-touched.directive.d.ts +1 -1
  30. package/lib/directives/form-control-mark-untouched.directive.d.ts +1 -1
  31. package/lib/directives/form-control-name.directive.d.ts +1 -1
  32. package/lib/directives/form-group-name.directive.d.ts +1 -1
  33. package/lib/directives/form-loaded.directive.d.ts +1 -1
  34. package/lib/directives/form-loading-error.directive.d.ts +1 -1
  35. package/lib/directives/form-loading.directive.d.ts +1 -1
  36. package/lib/directives/form-submit-failed.directive.d.ts +1 -1
  37. package/lib/directives/form-submit-invalid.directive.d.ts +1 -1
  38. package/lib/directives/form-submit-successful.directive.d.ts +1 -1
  39. package/lib/directives/form-submit.directive.d.ts +1 -1
  40. package/lib/directives/form-submitting.directive.d.ts +1 -1
  41. package/lib/directives/form.directive.d.ts +1 -1
  42. package/lib/directives/parent-control-container.directive.d.ts +1 -1
  43. package/lib/form-array.d.ts +2 -2
  44. package/lib/form-control.d.ts +2 -2
  45. package/lib/form-group.d.ts +2 -2
  46. package/package.json +20 -21
  47. package/rxap-forms.d.ts +0 -5
@@ -18,5 +18,5 @@ export declare class FormControlErrorDirective implements OnInit, OnDestroy {
18
18
  ngOnInit(): void;
19
19
  ngOnDestroy(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlErrorDirective, [null, { host: true; skipSelf: true; }, null]>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": "rxapFormControlErrorFrom"; "errorKey": "rxapFormControlErrorIf"; }, {}, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": "rxapFormControlErrorFrom"; "errorKey": "rxapFormControlErrorIf"; }, {}, never, never, false>;
22
22
  }
@@ -5,5 +5,5 @@ export declare class FormControlMarkDirtyDirective {
5
5
  constructor(parent: ControlContainer);
6
6
  onClick(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkDirtyDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkDirtyDirective, "[rxapFormControlMarkDirty]", never, {}, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkDirtyDirective, "[rxapFormControlMarkDirty]", never, {}, {}, never, never, false>;
9
9
  }
@@ -5,5 +5,5 @@ export declare class FormControlMarkPristineDirective {
5
5
  constructor(parent: ControlContainer);
6
6
  onClick(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkPristineDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkPristineDirective, "[rxapFormControlMarkPristine]", never, {}, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkPristineDirective, "[rxapFormControlMarkPristine]", never, {}, {}, never, never, false>;
9
9
  }
@@ -5,5 +5,5 @@ export declare class FormControlMarkTouchedDirective {
5
5
  constructor(parent: ControlContainer);
6
6
  onClick(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkTouchedDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkTouchedDirective, "[rxapFormControlMarkTouched]", never, {}, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkTouchedDirective, "[rxapFormControlMarkTouched]", never, {}, {}, never, never, false>;
9
9
  }
@@ -5,5 +5,5 @@ export declare class FormControlMarkUntouchedDirective {
5
5
  constructor(parent: ControlContainer);
6
6
  onClick(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkUntouchedDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkUntouchedDirective, "[rxapFormControlMarkUntouched]", never, {}, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkUntouchedDirective, "[rxapFormControlMarkUntouched]", never, {}, {}, never, never, false>;
9
9
  }
@@ -12,5 +12,5 @@ export declare class FormControlNameDirective extends FormControlName {
12
12
  name: string | number | null;
13
13
  constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlNameDirective, [{ optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlNameDirective, "[rxapFormControlName]", ["rxapFormControl"], { "name": "rxapFormControlName"; }, {}, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlNameDirective, "[rxapFormControlName]", ["rxapFormControl"], { "name": "rxapFormControlName"; }, {}, never, never, false>;
16
16
  }
@@ -12,5 +12,5 @@ export declare class FormGroupNameDirective extends FormGroupName {
12
12
  get control(): RxapFormGroup;
13
13
  constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupNameDirective, [{ optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupNameDirective, "[rxapFormGroupName]", ["rxapFormGroup"], { "name": "rxapFormGroupName"; }, {}, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupNameDirective, "[rxapFormGroupName]", ["rxapFormGroup"], { "name": "rxapFormGroupName"; }, {}, never, never, false>;
16
16
  }
@@ -10,5 +10,5 @@ export declare class FormLoadedDirective implements AfterViewInit, OnDestroy {
10
10
  ngAfterViewInit(): void;
11
11
  ngOnDestroy(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadedDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadedDirective, "[rxapFormLoaded]", never, {}, {}, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadedDirective, "[rxapFormLoaded]", never, {}, {}, never, never, false>;
14
14
  }
@@ -12,5 +12,5 @@ export declare class FormLoadingErrorDirective implements AfterViewInit, OnDestr
12
12
  ngAfterViewInit(): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingErrorDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingErrorDirective, "[rxapFormLoadingError]", never, {}, {}, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingErrorDirective, "[rxapFormLoadingError]", never, {}, {}, never, never, false>;
16
16
  }
@@ -10,5 +10,5 @@ export declare class FormLoadingDirective implements AfterViewInit, OnDestroy {
10
10
  ngAfterViewInit(): void;
11
11
  ngOnDestroy(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingDirective, "[rxapFormLoading]", never, {}, {}, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingDirective, "[rxapFormLoading]", never, {}, {}, never, never, false>;
14
14
  }
@@ -12,5 +12,5 @@ export declare class FormSubmitFailedDirective implements AfterViewInit, OnDestr
12
12
  ngAfterViewInit(): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitFailedDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitFailedDirective, "[rxapFormSubmitFailed]", never, {}, {}, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitFailedDirective, "[rxapFormSubmitFailed]", never, {}, {}, never, never, false>;
16
16
  }
@@ -12,5 +12,5 @@ export declare class FormSubmitInvalidDirective implements AfterViewInit, OnDest
12
12
  ngAfterViewInit(): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitInvalidDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitInvalidDirective, "[rxapFormSubmitInvalid]", never, {}, {}, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitInvalidDirective, "[rxapFormSubmitInvalid]", never, {}, {}, never, never, false>;
16
16
  }
@@ -12,5 +12,5 @@ export declare class FormSubmitSuccessfulDirective implements AfterViewInit, OnD
12
12
  ngAfterViewInit(): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitSuccessfulDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitSuccessfulDirective, "[rxapFormSubmitSuccessful]", never, {}, {}, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitSuccessfulDirective, "[rxapFormSubmitSuccessful]", never, {}, {}, never, never, false>;
16
16
  }
@@ -16,5 +16,5 @@ export declare class FormSubmitDirective extends ConfirmClick implements OnDestr
16
16
  protected execute(): void;
17
17
  ngOnDestroy(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitDirective, [null, { optional: true; }]>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "[rxapFormSubmit]", never, { "type": "type"; "resetAfterSubmit": "resetAfterSubmit"; "navigateAfterSubmit": "navigateAfterSubmit"; }, { "afterSubmit": "afterSubmit"; }, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "[rxapFormSubmit]", never, { "type": "type"; "resetAfterSubmit": "resetAfterSubmit"; "navigateAfterSubmit": "navigateAfterSubmit"; }, { "afterSubmit": "afterSubmit"; }, never, never, false>;
20
20
  }
@@ -10,5 +10,5 @@ export declare class FormSubmittingDirective implements AfterViewInit, OnDestroy
10
10
  ngAfterViewInit(): void;
11
11
  ngOnDestroy(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmittingDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmittingDirective, "[rxapFormSubmitting]", never, {}, {}, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmittingDirective, "[rxapFormSubmitting]", never, {}, {}, never, never, false>;
14
14
  }
@@ -57,5 +57,5 @@ export declare class FormDirective<T extends Record<string, any> = any> extends
57
57
  protected submitSuccessful(value: any): void;
58
58
  ngOnDestroy(): void;
59
59
  static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective<any>, [null, { optional: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; }]>;
60
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": "initial"; "useFormDefinition": "rxapForm"; "submitMethod": "submitMethod"; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": "initial"; "useFormDefinition": "rxapForm"; "submitMethod": "submitMethod"; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, false>;
61
61
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ParentControlContainerDirective {
3
3
  static ɵfac: i0.ɵɵFactoryDeclaration<ParentControlContainerDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<ParentControlContainerDirective, "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", never, {}, {}, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ParentControlContainerDirective, "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", never, {}, {}, never, never, false>;
5
5
  }
@@ -1,8 +1,8 @@
1
- import { FormArray as NgFormArray } from '@angular/forms';
1
+ import { UntypedFormArray } from '@angular/forms';
2
2
  import { ControlEventOptions, ExtractStrings, EmitEvent, ControlPath, ControlState, OnlySelf, AbstractControl, AsyncValidator, ControlOptions, Validator } from './types';
3
3
  import { Observable, Subscription } from 'rxjs';
4
4
  import { FormArrayOptions, FormType, FormDefinition } from './model';
5
- export declare class RxapFormArray<T = any, E extends object = any, Parent extends object = any> extends NgFormArray implements AbstractControl<T[]> {
5
+ export declare class RxapFormArray<T = any, E extends object = any, Parent extends object = any> extends UntypedFormArray implements AbstractControl<T[]> {
6
6
  controls: Array<AbstractControl<T>>;
7
7
  private _readonly;
8
8
  get readonly(): boolean;
@@ -1,8 +1,8 @@
1
- import { FormControl as NgFormControl } from '@angular/forms';
1
+ import { UntypedFormControl } from '@angular/forms';
2
2
  import { ControlEventOptions, ExtractStrings, EmitEvent, ControlState, OnlySelf, OrBoxedValue, ControlOptions, AsyncValidator, Validator } from './types';
3
3
  import { Subject, Subscription, Observable } from 'rxjs';
4
4
  import { RxapAbstractControlOptions, SetValueFn, FormType, FormDefinition } from './model';
5
- export declare class RxapFormControl<T = any, E extends object = any, Parent extends object = any> extends NgFormControl {
5
+ export declare class RxapFormControl<T = any, E extends object = any, Parent extends object = any> extends UntypedFormControl {
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -1,8 +1,8 @@
1
1
  import { Observable, Subscription } from 'rxjs';
2
- import { FormGroup as NgFormGroup } from '@angular/forms';
2
+ import { UntypedFormGroup } from '@angular/forms';
3
3
  import { ControlEventOptions, ExtractStrings, EmitEvent, KeyValueControls, ExtractAbstractControl, ControlState, OnlySelf, AsyncValidator, AbstractControl, ControlOptions, Validator } from './types';
4
4
  import { FormGroupOptions, FormType, FormDefinition } from './model';
5
- export declare class RxapFormGroup<T extends Record<string, any> = any, E extends object = any> extends NgFormGroup {
5
+ export declare class RxapFormGroup<T extends Record<string, any> = any, E extends object = any> extends UntypedFormGroup {
6
6
  controls: ExtractAbstractControl<KeyValueControls<T>, T>;
7
7
  /**
8
8
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/forms",
3
- "version": "13.0.0-next.2",
3
+ "version": "14.0.0",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/forms",
@@ -17,27 +17,26 @@
17
17
  "description": "A typed extension for @angular/forms.",
18
18
  "license": "BSD-3-Clause",
19
19
  "peerDependencies": {
20
- "@angular-devkit/schematics": "^13.2.4",
21
- "@angular/cdk": "^13.2.3",
22
- "@angular/common": "^13.2.3",
23
- "@angular/core": "^13.2.3",
24
- "@angular/forms": "^13.2.3",
25
- "@angular/platform-browser": "^13.2.3",
26
- "@angular/platform-browser-dynamic": "^13.2.3",
27
- "@angular/router": "^13.2.3",
28
- "@rxap/definition": "^13.0.0-next.1",
29
- "@rxap/directives": "^13.0.0-next.3",
30
- "@rxap/services": "^13.0.0-next.1",
31
- "@rxap/utilities": "^13.0.0-next.1",
20
+ "@angular-devkit/schematics": "^14.2.3",
21
+ "@angular/cdk": "^14.2.2",
22
+ "@angular/common": "^14.2.2",
23
+ "@angular/core": "^14.2.2",
24
+ "@angular/forms": "^14.2.2",
25
+ "@angular/platform-browser": "^14.2.2",
26
+ "@angular/platform-browser-dynamic": "^14.2.2",
27
+ "@angular/router": "^14.2.2",
28
+ "@rxap/definition": "^13.0.0",
29
+ "@rxap/directives": "^13.0.0",
30
+ "@rxap/services": "^13.0.0",
31
+ "@rxap/utilities": "^13.0.0",
32
32
  "reflect-metadata": "^0.1.13",
33
- "rxjs": "^6.5.5"
33
+ "rxjs": "^6.6.0"
34
34
  },
35
35
  "dependencies": {
36
- "@rxap/schematics-utilities": "^13.0.0-next.0",
37
- "@rxap/validator": "^1.0.0-next.0",
36
+ "@rxap/schematics-utilities": "^14.0.0",
37
+ "@rxap/validator": "^1.0.0",
38
38
  "ts-morph": "^13.0.3",
39
- "tslib": "^2.3.1",
40
- "uuid": "8.3.2"
39
+ "tslib": "^2.3.1"
41
40
  },
42
41
  "schematics": "./collection.json",
43
42
  "ng-update": {
@@ -62,13 +61,13 @@
62
61
  "esm2020": "esm2020/rxap-forms.mjs",
63
62
  "fesm2020": "fesm2020/rxap-forms.mjs",
64
63
  "fesm2015": "fesm2015/rxap-forms.mjs",
65
- "typings": "rxap-forms.d.ts",
64
+ "typings": "index.d.ts",
66
65
  "exports": {
67
66
  "./package.json": {
68
67
  "default": "./package.json"
69
68
  },
70
69
  ".": {
71
- "types": "./rxap-forms.d.ts",
70
+ "types": "./index.d.ts",
72
71
  "esm2020": "./esm2020/rxap-forms.mjs",
73
72
  "es2020": "./fesm2020/rxap-forms.mjs",
74
73
  "es2015": "./fesm2015/rxap-forms.mjs",
@@ -77,4 +76,4 @@
77
76
  }
78
77
  },
79
78
  "sideEffects": false
80
- }
79
+ }
package/rxap-forms.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rxap/forms" />
5
- export * from './index';