@rxap/forms 16.0.0-dev.1 → 16.0.0-dev.11

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 (108) hide show
  1. package/CHANGELOG.md +640 -0
  2. package/LICENSE +621 -24
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +2 -2
  6. package/esm2022/lib/control-actions.mjs +7 -7
  7. package/esm2022/lib/control-value-accessor.mjs +10 -4
  8. package/esm2022/lib/decorators/control-async-validator.mjs +2 -2
  9. package/esm2022/lib/decorators/control-change.mjs +2 -2
  10. package/esm2022/lib/decorators/control-set-value.mjs +3 -3
  11. package/esm2022/lib/decorators/control-validator.mjs +2 -2
  12. package/esm2022/lib/decorators/form.mjs +1 -1
  13. package/esm2022/lib/decorators/metadata-keys.mjs +1 -1
  14. package/esm2022/lib/decorators/use-form-array.mjs +6 -3
  15. package/esm2022/lib/decorators/use-form-control.mjs +2 -2
  16. package/esm2022/lib/decorators/use-form-group.mjs +6 -3
  17. package/esm2022/lib/directives/form-control-error.directive.mjs +18 -22
  18. package/esm2022/lib/directives/form-control-mark-dirty.directive.mjs +9 -9
  19. package/esm2022/lib/directives/form-control-mark-pristine.directive.mjs +9 -9
  20. package/esm2022/lib/directives/form-control-mark-touched.directive.mjs +8 -8
  21. package/esm2022/lib/directives/form-control-mark-untouched.directive.mjs +9 -9
  22. package/esm2022/lib/directives/form-control-name.directive.mjs +13 -13
  23. package/esm2022/lib/directives/form-group-name.directive.mjs +13 -13
  24. package/esm2022/lib/directives/form-loaded.directive.mjs +9 -9
  25. package/esm2022/lib/directives/form-loading-error.directive.mjs +8 -8
  26. package/esm2022/lib/directives/form-loading.directive.mjs +9 -9
  27. package/esm2022/lib/directives/form-submit-failed.directive.mjs +8 -8
  28. package/esm2022/lib/directives/form-submit-invalid.directive.mjs +8 -8
  29. package/esm2022/lib/directives/form-submit-successful.directive.mjs +8 -8
  30. package/esm2022/lib/directives/form-submit.directive.mjs +12 -12
  31. package/esm2022/lib/directives/form-submitting.directive.mjs +9 -9
  32. package/esm2022/lib/directives/form.directive.mjs +22 -22
  33. package/esm2022/lib/directives/forms.module.mjs +8 -9
  34. package/esm2022/lib/directives/models.mjs +1 -1
  35. package/esm2022/lib/directives/parent-control-container.directive.mjs +12 -11
  36. package/esm2022/lib/directives/tokens.mjs +1 -1
  37. package/esm2022/lib/form-array.mjs +12 -7
  38. package/esm2022/lib/form-builder.mjs +27 -20
  39. package/esm2022/lib/form-control.mjs +3 -3
  40. package/esm2022/lib/form-group.mjs +9 -5
  41. package/esm2022/lib/model.mjs +1 -1
  42. package/esm2022/lib/tokens.mjs +1 -1
  43. package/esm2022/lib/types.mjs +1 -1
  44. package/esm2022/lib/validators/index.mjs +1 -1
  45. package/esm2022/lib/validators/is-array.mjs +3 -3
  46. package/esm2022/lib/validators/is-boolean.mjs +3 -3
  47. package/esm2022/lib/validators/is-complex.mjs +7 -9
  48. package/esm2022/lib/validators/is-date.mjs +3 -3
  49. package/esm2022/lib/validators/is-email.mjs +5 -5
  50. package/esm2022/lib/validators/is-enum.mjs +4 -4
  51. package/esm2022/lib/validators/is-int.mjs +5 -5
  52. package/esm2022/lib/validators/is-ip.mjs +4 -4
  53. package/esm2022/lib/validators/is-number.mjs +10 -5
  54. package/esm2022/lib/validators/is-object.mjs +7 -4
  55. package/esm2022/lib/validators/is-phone-number.mjs +5 -5
  56. package/esm2022/lib/validators/is-port.mjs +3 -3
  57. package/esm2022/lib/validators/is-string.mjs +3 -3
  58. package/esm2022/lib/validators/is-url.mjs +5 -5
  59. package/esm2022/lib/validators/is-uuid.mjs +4 -4
  60. package/esm2022/rxap-forms.mjs +1 -1
  61. package/fesm2022/rxap-forms.mjs +246 -196
  62. package/fesm2022/rxap-forms.mjs.map +1 -1
  63. package/index.d.ts +1 -1
  64. package/lib/control-actions.d.ts +1 -1
  65. package/lib/directives/form-control-error.directive.d.ts +3 -3
  66. package/lib/directives/form-control-mark-dirty.directive.d.ts +1 -1
  67. package/lib/directives/form-control-mark-pristine.directive.d.ts +1 -1
  68. package/lib/directives/form-control-mark-touched.directive.d.ts +1 -1
  69. package/lib/directives/form-control-mark-untouched.directive.d.ts +1 -1
  70. package/lib/directives/form-control-name.directive.d.ts +2 -2
  71. package/lib/directives/form-group-name.directive.d.ts +2 -2
  72. package/lib/directives/form-loaded.directive.d.ts +2 -2
  73. package/lib/directives/form-loading-error.directive.d.ts +2 -2
  74. package/lib/directives/form-loading.directive.d.ts +2 -2
  75. package/lib/directives/form-submit-failed.directive.d.ts +2 -2
  76. package/lib/directives/form-submit-invalid.directive.d.ts +2 -2
  77. package/lib/directives/form-submit-successful.directive.d.ts +2 -2
  78. package/lib/directives/form-submit.directive.d.ts +2 -2
  79. package/lib/directives/form-submitting.directive.d.ts +2 -2
  80. package/lib/directives/form.directive.d.ts +4 -4
  81. package/lib/directives/forms.module.d.ts +1 -1
  82. package/lib/directives/models.d.ts +1 -1
  83. package/lib/directives/parent-control-container.directive.d.ts +1 -1
  84. package/lib/directives/tokens.d.ts +1 -1
  85. package/lib/form-array.d.ts +2 -2
  86. package/lib/form-control.d.ts +4 -4
  87. package/lib/form-group.d.ts +2 -2
  88. package/lib/model.d.ts +6 -6
  89. package/lib/validators/is-complex.d.ts +1 -1
  90. package/lib/validators/is-email.d.ts +1 -1
  91. package/lib/validators/is-enum.d.ts +1 -1
  92. package/lib/validators/is-int.d.ts +1 -1
  93. package/lib/validators/is-ip.d.ts +1 -1
  94. package/lib/validators/is-number.d.ts +1 -1
  95. package/lib/validators/is-phone-number.d.ts +2 -2
  96. package/lib/validators/is-url.d.ts +1 -1
  97. package/lib/validators/is-uuid.d.ts +1 -1
  98. package/package.json +75 -48
  99. package/theme.css +1 -0
  100. package/collection.json +0 -10
  101. package/migration.json +0 -10
  102. package/src/migrations/v12-2-1/index.d.ts +0 -5
  103. package/src/migrations/v12-2-1/index.js +0 -76
  104. package/src/migrations/v12-2-1/index.js.map +0 -1
  105. package/src/schematics/ng-add/index.d.ts +0 -2
  106. package/src/schematics/ng-add/index.js +0 -8
  107. package/src/schematics/ng-add/index.js.map +0 -1
  108. package/src/schematics/ng-add/schema.json +0 -7
package/index.d.ts CHANGED
@@ -16,12 +16,12 @@ export * from './lib/decorators/use-form-control';
16
16
  export * from './lib/decorators/use-form-group';
17
17
  export * from './lib/decorators/form';
18
18
  export * from './lib/directives/form.directive';
19
+ export * from './lib/directives/forms.module';
19
20
  export * from './lib/directives/form-submit-failed.directive';
20
21
  export * from './lib/directives/form-loading.directive';
21
22
  export * from './lib/directives/form-submitting.directive';
22
23
  export * from './lib/directives/form-loaded.directive';
23
24
  export * from './lib/directives/form-loading-error.directive';
24
- export * from './lib/directives/forms.module';
25
25
  export * from './lib/directives/models';
26
26
  export * from './lib/directives/tokens';
27
27
  export * from './lib/directives/form-control-error.directive';
@@ -1,5 +1,5 @@
1
1
  import { Observable, Subscription } from 'rxjs';
2
- import { AbstractControl, ControlOptions, ControlState, ValidatorFn, ControlPath } from './types';
2
+ import { AbstractControl, ControlOptions, ControlPath, ControlState, ValidatorFn } from './types';
3
3
  import { RxapFormArray } from './form-array';
4
4
  import { RxapFormGroup } from './form-group';
5
5
  import { RxapFormControl } from './form-control';
@@ -1,9 +1,9 @@
1
- import { TemplateRef, OnInit, OnDestroy, ViewContainerRef } from '@angular/core';
1
+ import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { ValidationErrors } from '../types';
3
3
  import { ControlContainer } from '@angular/forms';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * @deprecated removed
6
+ * @deprecated removed use the rxapControlError or rxapControlErrors directive
7
7
  */
8
8
  export declare class FormControlErrorDirective implements OnInit, OnDestroy {
9
9
  private readonly template;
@@ -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": { "alias": "rxapFormControlErrorFrom"; "required": false; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": false; }; }, {}, never, never, false, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required": true; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": true; }; }, {}, never, never, true, never>;
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, never, false, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkDirtyDirective, "[rxapFormControlMarkDirty]", never, {}, {}, never, never, true, never>;
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, never, false, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkPristineDirective, "[rxapFormControlMarkPristine]", never, {}, {}, never, never, true, never>;
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, never, false, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkTouchedDirective, "[rxapFormControlMarkTouched]", never, {}, {}, never, never, true, never>;
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, never, false, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkUntouchedDirective, "[rxapFormControlMarkUntouched]", never, {}, {}, never, never, true, never>;
9
9
  }
@@ -1,4 +1,4 @@
1
- import { FormControlName, ControlContainer, Validator, ValidatorFn, AsyncValidator, AsyncValidatorFn, ControlValueAccessor } from '@angular/forms';
1
+ import { AsyncValidator, AsyncValidatorFn, ControlContainer, ControlValueAccessor, FormControlName, Validator, ValidatorFn } from '@angular/forms';
2
2
  import { RxapFormControl } from '../form-control';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -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": { "alias": "rxapFormControlName"; "required": false; }; }, {}, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlNameDirective, "[rxapFormControlName]", ["rxapFormControl"], { "name": { "alias": "rxapFormControlName"; "required": false; }; }, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { FormGroupName, ControlContainer } from '@angular/forms';
1
+ import { ControlContainer, FormGroupName } from '@angular/forms';
2
2
  import { RxapFormGroup } from '../form-group';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -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": { "alias": "rxapFormGroupName"; "required": false; }; }, {}, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupNameDirective, "[rxapFormGroupName]", ["rxapFormGroup"], { "name": { "alias": "rxapFormGroupName"; "required": false; }; }, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormLoadedDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadedDirective, "[rxapFormLoaded]", never, {}, {}, never, never, true, never>;
14
14
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormLoadingErrorDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingErrorDirective, "[rxapFormLoadingError]", never, {}, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormLoadingDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingDirective, "[rxapFormLoading]", never, {}, {}, never, never, true, never>;
14
14
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormSubmitFailedDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitFailedDirective, "[rxapFormSubmitFailed]", never, {}, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormSubmitInvalidDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitInvalidDirective, "[rxapFormSubmitInvalid]", never, {}, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormSubmitSuccessfulDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitSuccessfulDirective, "[rxapFormSubmitSuccessful]", never, {}, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,4 @@
1
- import { OnDestroy, EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import { Router } from '@angular/router';
4
4
  import { ConfirmClick } from '@rxap/directives';
@@ -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": { "alias": "type"; "required": false; }; "resetAfterSubmit": { "alias": "resetAfterSubmit"; "required": false; }; "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; }; }, { "afterSubmit": "afterSubmit"; }, never, never, false, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "[rxapFormSubmit]", never, { "type": { "alias": "type"; "required": false; }; "resetAfterSubmit": { "alias": "resetAfterSubmit"; "required": false; }; "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; }; }, { "afterSubmit": "afterSubmit"; }, never, never, true, never>;
20
20
  }
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { FormDirective } from './form.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormSubmittingDirective implements AfterViewInit, OnDestroy {
@@ -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, never, false, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmittingDirective, "[rxapFormSubmitting]", never, {}, {}, never, never, true, never>;
14
14
  }
@@ -1,12 +1,12 @@
1
- import { OnInit, EventEmitter, ChangeDetectorRef, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FormGroupDirective } from '@angular/forms';
3
3
  import { RxapFormGroup } from '../form-group';
4
4
  import { FormDefinition } from '../model';
5
- import { FormSubmitMethod, FormLoadMethod, FormLoadFailedMethod, FormLoadSuccessfulMethod, FormSubmitFailedMethod, FormSubmitSuccessfulMethod } from './models';
5
+ import { FormLoadFailedMethod, FormLoadMethod, FormLoadSuccessfulMethod, FormSubmitFailedMethod, FormSubmitMethod, FormSubmitSuccessfulMethod } from './models';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import { RxapFormBuilder } from '../form-builder';
8
8
  import { LoadingIndicatorService } from '@rxap/services';
9
- import { ToggleSubject } from '@rxap/utilities/rxjs';
9
+ import { ToggleSubject } from '@rxap/rxjs';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class FormDirective<T = any> extends FormGroupDirective implements OnInit, OnChanges, OnDestroy {
12
12
  readonly cdr: ChangeDetectorRef;
@@ -57,5 +57,5 @@ export declare class FormDirective<T = any> extends FormGroupDirective implement
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": { "alias": "initial"; "required": false; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, false, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": { "alias": "initial"; "required": false; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
61
61
  }
@@ -18,6 +18,6 @@ import * as i16 from "./form-submit-successful.directive";
18
18
  import * as i17 from "./form-submit-invalid.directive";
19
19
  export declare class RxapFormsModule {
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<RxapFormsModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<RxapFormsModule, [typeof i1.FormDirective, typeof i2.FormSubmitFailedDirective, typeof i3.FormLoadingDirective, typeof i4.FormSubmittingDirective, typeof i5.FormLoadingErrorDirective, typeof i6.FormLoadedDirective, typeof i7.FormControlErrorDirective, typeof i8.FormControlMarkDirtyDirective, typeof i9.FormControlMarkTouchedDirective, typeof i10.FormControlMarkUntouchedDirective, typeof i11.FormControlMarkPristineDirective, typeof i12.FormSubmitDirective, typeof i13.FormGroupNameDirective, typeof i14.FormControlNameDirective, typeof i15.ParentControlContainerDirective, typeof i16.FormSubmitSuccessfulDirective, typeof i17.FormSubmitInvalidDirective], never, [typeof i1.FormDirective, typeof i2.FormSubmitFailedDirective, typeof i3.FormLoadingDirective, typeof i4.FormSubmittingDirective, typeof i5.FormLoadingErrorDirective, typeof i6.FormLoadedDirective, typeof i7.FormControlErrorDirective, typeof i8.FormControlMarkDirtyDirective, typeof i9.FormControlMarkTouchedDirective, typeof i10.FormControlMarkUntouchedDirective, typeof i11.FormControlMarkPristineDirective, typeof i12.FormSubmitDirective, typeof i13.FormGroupNameDirective, typeof i14.FormControlNameDirective, typeof i15.ParentControlContainerDirective, typeof i16.FormSubmitSuccessfulDirective, typeof i17.FormSubmitInvalidDirective]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RxapFormsModule, never, [typeof i1.FormDirective, typeof i2.FormSubmitFailedDirective, typeof i3.FormLoadingDirective, typeof i4.FormSubmittingDirective, typeof i5.FormLoadingErrorDirective, typeof i6.FormLoadedDirective, typeof i7.FormControlErrorDirective, typeof i8.FormControlMarkDirtyDirective, typeof i9.FormControlMarkTouchedDirective, typeof i10.FormControlMarkUntouchedDirective, typeof i11.FormControlMarkPristineDirective, typeof i12.FormSubmitDirective, typeof i13.FormGroupNameDirective, typeof i14.FormControlNameDirective, typeof i15.ParentControlContainerDirective, typeof i16.FormSubmitSuccessfulDirective, typeof i17.FormSubmitInvalidDirective], [typeof i1.FormDirective, typeof i2.FormSubmitFailedDirective, typeof i3.FormLoadingDirective, typeof i4.FormSubmittingDirective, typeof i5.FormLoadingErrorDirective, typeof i6.FormLoadedDirective, typeof i7.FormControlErrorDirective, typeof i8.FormControlMarkDirtyDirective, typeof i9.FormControlMarkTouchedDirective, typeof i10.FormControlMarkUntouchedDirective, typeof i11.FormControlMarkPristineDirective, typeof i12.FormSubmitDirective, typeof i13.FormGroupNameDirective, typeof i14.FormControlNameDirective, typeof i15.ParentControlContainerDirective, typeof i16.FormSubmitSuccessfulDirective, typeof i17.FormSubmitInvalidDirective]>;
22
22
  static ɵinj: i0.ɵɵInjectorDeclaration<RxapFormsModule>;
23
23
  }
@@ -1,4 +1,4 @@
1
- import { Method } from '@rxap/utilities/rxjs';
1
+ import { Method } from '@rxap/pattern';
2
2
  export interface FormSubmitMethod<T> extends Method<any, T> {
3
3
  call(parameters: T): any | Promise<any>;
4
4
  }
@@ -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, never, false, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ParentControlContainerDirective, "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", never, {}, {}, never, never, true, never>;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { FormDefinition } from '../model';
3
3
  import { RxapFormBuilder } from '../form-builder';
4
- import { FormSubmitMethod, FormLoadMethod } from './models';
4
+ import { FormLoadMethod, FormSubmitMethod } from './models';
5
5
  export declare const RXAP_FORM_DEFINITION: InjectionToken<FormDefinition<any, any, any>>;
6
6
  export declare const RXAP_FORM_DEFINITION_BUILDER: InjectionToken<RxapFormBuilder<any, import("../model").FormType<any>>>;
7
7
  export declare const RXAP_FORM_SUBMIT_METHOD: InjectionToken<FormSubmitMethod<any>>;
@@ -1,7 +1,7 @@
1
1
  import { UntypedFormArray } from '@angular/forms';
2
- import { ControlEventOptions, ExtractStrings, EmitEvent, ControlPath, ControlState, OnlySelf, AbstractControl, AsyncValidator, ControlOptions, Validator } from './types';
2
+ import { AbstractControl, AsyncValidator, ControlEventOptions, ControlOptions, ControlPath, ControlState, EmitEvent, ExtractStrings, OnlySelf, Validator } from './types';
3
3
  import { Observable, Subscription } from 'rxjs';
4
- import { FormArrayOptions, FormType, FormDefinition } from './model';
4
+ import { FormArrayOptions, FormDefinition, FormType } from './model';
5
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;
@@ -1,7 +1,7 @@
1
1
  import { UntypedFormControl } from '@angular/forms';
2
- import { ControlEventOptions, ExtractStrings, EmitEvent, ControlState, OnlySelf, OrBoxedValue, ControlOptions, AsyncValidator, Validator } from './types';
3
- import { Subject, Subscription, Observable } from 'rxjs';
4
- import { RxapAbstractControlOptions, SetValueFn, FormType, FormDefinition } from './model';
2
+ import { AsyncValidator, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractStrings, OnlySelf, OrBoxedValue, Validator } from './types';
3
+ import { Observable, Subject, Subscription } from 'rxjs';
4
+ import { FormDefinition, FormType, RxapAbstractControlOptions, SetValueFn } from './model';
5
5
  export declare class RxapFormControl<T = any, E extends object = any, Parent extends object = any> extends UntypedFormControl {
6
6
  /**
7
7
  * @internal
@@ -22,11 +22,11 @@ export declare class RxapFormControl<T = any, E extends object = any, Parent ext
22
22
  readonly disabled$: Observable<boolean>;
23
23
  readonly enabled$: Observable<boolean>;
24
24
  get readonly(): boolean;
25
+ set readonly(value: boolean);
25
26
  readonly status$: Observable<ControlState>;
26
27
  readonly errors$: Observable<E | null>;
27
28
  readonly controlId: string;
28
29
  private readonly _onSetValue;
29
- set readonly(value: boolean);
30
30
  readonly stateChanges: Subject<void>;
31
31
  readonly readonly$: Observable<boolean>;
32
32
  get controlPath(): string;
@@ -1,7 +1,7 @@
1
1
  import { Observable, Subscription } from 'rxjs';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
- import { ControlEventOptions, ExtractStrings, EmitEvent, KeyValueControls, ExtractAbstractControl, ControlState, OnlySelf, AsyncValidator, AbstractControl, ControlOptions, Validator, ValidationErrors } from './types';
4
- import { FormGroupOptions, FormType, FormDefinition } from './model';
3
+ import { AbstractControl, AsyncValidator, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractAbstractControl, ExtractStrings, KeyValueControls, OnlySelf, ValidationErrors, Validator } from './types';
4
+ import { FormDefinition, FormGroupOptions, FormType } from './model';
5
5
  export declare class RxapFormGroup<T = any, E extends ValidationErrors = any> extends UntypedFormGroup {
6
6
  controls: ExtractAbstractControl<KeyValueControls<T>, T>;
7
7
  /**
package/lib/model.d.ts CHANGED
@@ -1,11 +1,11 @@
1
+ import { AbstractType, InjectionToken, StaticProvider, Type } from '@angular/core';
1
2
  import { AbstractControlOptions, AsyncValidatorFn, ValidatorFn } from '@angular/forms';
2
- import { Constructor } from '@rxap/utilities';
3
- import type { RxapFormGroup } from './form-group';
4
- import { StaticProvider, Type, InjectionToken, AbstractType } from '@angular/core';
5
- import { RxapFormControl } from './form-control';
6
- import { AbstractControl, ControlOptions } from './types';
7
3
  import { BaseDefinitionMetadata } from '@rxap/definition';
4
+ import { Constructor, NonEmpty } from '@rxap/utilities';
8
5
  import { RxapFormArray } from './form-array';
6
+ import { RxapFormControl } from './form-control';
7
+ import type { RxapFormGroup } from './form-group';
8
+ import { AbstractControl, ControlOptions } from './types';
9
9
  export interface InjectableValidator {
10
10
  validate?: ValidatorFn;
11
11
  asyncValidate?: AsyncValidatorFn;
@@ -48,7 +48,7 @@ export interface FormDefinitionArray<T> extends Array<T> {
48
48
  rxapFormArray: RxapFormArray;
49
49
  }
50
50
  export type FormType<T> = Partial<FormDefinition<T>> & {
51
- [K in keyof T]: T[K] extends (infer U)[] ? FormDefinitionArray<FormType<U>> | RxapFormControl<T[K]> | RxapFormArray<U> : T[K] extends Record<string, any> ? (FormType<T[K]> & Partial<FormDefinition<T[K]>>) | RxapFormControl<T[K]> : RxapFormControl<T[K]>;
51
+ [K in keyof T]: T[K] extends (infer U)[] ? FormDefinitionArray<FormType<U>> | FormDefinitionArray<RxapFormControl<U>> | RxapFormControl<T[K]> | RxapFormArray<U> : T[K] extends Record<string, any> ? (FormType<T[K]> & Partial<FormDefinition<T[K]>>) | RxapFormControl<T[K]> : RxapFormControl<NonEmpty<T[K]>>;
52
52
  };
53
53
  export interface FormOptions extends RxapAbstractControlOptions {
54
54
  id: string;
@@ -11,7 +11,7 @@ export interface ComplexityOptions {
11
11
  range?: number;
12
12
  exact?: number;
13
13
  }
14
- export declare function IsComplex({ message, options }: {
14
+ export declare function IsComplex({ message, options, }: {
15
15
  message?: string;
16
16
  options: ComplexityOptions;
17
17
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -1,6 +1,6 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
2
  import { IsEmailOptions } from '@rxap/validator';
3
- export declare function IsEmail({ message, options }?: {
3
+ export declare function IsEmail({ message, options, }?: {
4
4
  message?: string;
5
5
  options?: IsEmailOptions;
6
6
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -1,5 +1,5 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
- export declare function IsEnum({ message, entity }: {
2
+ export declare function IsEnum({ message, entity, }: {
3
3
  message?: string;
4
4
  entity: any;
5
5
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -1,6 +1,6 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
2
  import { IsNumberOptions } from './is-number';
3
- export declare function IsInt({ message, options }?: {
3
+ export declare function IsInt({ message, options, }?: {
4
4
  message?: string;
5
5
  options?: IsNumberOptions;
6
6
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -1,5 +1,5 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
- export declare function IsIP({ message, version }?: {
2
+ export declare function IsIP({ message, version, }?: {
3
3
  message?: string;
4
4
  version?: string | number;
5
5
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -18,7 +18,7 @@ export declare function isNumber(value: unknown, options?: IsNumberOptions): val
18
18
  * @constructor
19
19
  */
20
20
  export declare function IsNumber(control: AbstractControl): ValidationErrors | null;
21
- export declare function _IsNumber({ message, options }?: {
21
+ export declare function _IsNumber({ message, options, }?: {
22
22
  message?: string;
23
23
  options?: IsNumberOptions;
24
24
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -1,6 +1,6 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
- import { MobilePhoneLocale, IsMobilePhoneOptions } from '@rxap/validator';
3
- export declare function IsPhoneNumber({ message, locale, options }?: {
2
+ import { IsMobilePhoneOptions, MobilePhoneLocale } from '@rxap/validator';
3
+ export declare function IsPhoneNumber({ message, locale, options, }?: {
4
4
  message?: string;
5
5
  locale?: 'any' | MobilePhoneLocale | MobilePhoneLocale[];
6
6
  options?: IsMobilePhoneOptions;
@@ -1,6 +1,6 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
2
  import { IsURLOptions } from '@rxap/validator';
3
- export declare function IsUrl({ message, options }?: {
3
+ export declare function IsUrl({ message, options, }?: {
4
4
  message?: string;
5
5
  options?: IsURLOptions;
6
6
  }): (control: AbstractControl) => ValidationErrors | null;
@@ -1,5 +1,5 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
- export declare function IsUUID({ message, version }?: {
2
+ export declare function IsUUID({ message, version, }?: {
3
3
  message?: string;
4
4
  version?: string;
5
5
  }): (control: AbstractControl) => ValidationErrors | null;
package/package.json CHANGED
@@ -1,62 +1,89 @@
1
1
  {
2
2
  "name": "@rxap/forms",
3
- "version": "16.0.0-dev.1",
4
- "private": false,
5
- "author": "Merzough Münker",
6
- "homepage": "https://gitlab.com/rxap/packages/libs/forms",
7
- "repository": "git@gitlab.com:rxap/packages.git",
3
+ "version": "16.0.0-dev.11",
4
+ "peerDependencies": {
5
+ "@angular/core": "^16.1.4",
6
+ "@angular/forms": "^16.1.4",
7
+ "@angular/router": "^16.1.4",
8
+ "@rxap/definition": "^16.0.0-dev.10",
9
+ "@rxap/directives": "^16.0.0-dev.10",
10
+ "@rxap/pattern": "^1.0.1-dev.5",
11
+ "@rxap/reflect-metadata": "^1.0.1-dev.5",
12
+ "@rxap/rxjs": "^1.0.1-dev.5",
13
+ "@rxap/services": "^16.0.0-dev.9",
14
+ "@rxap/utilities": "^16.0.0-dev.13",
15
+ "@rxap/validator": "^3.0.0-dev.7",
16
+ "rxjs": "^7.8.0",
17
+ "@angular/platform-browser": "16.1.4"
18
+ },
19
+ "sideEffects": false,
20
+ "dependencies": {
21
+ "tslib": "2.5.3"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public",
25
+ "directory": "../../../dist/packages/angular/forms"
26
+ },
8
27
  "keywords": [
9
28
  "rxap",
29
+ "angular",
30
+ "ngx",
31
+ "packages",
10
32
  "forms",
11
- "angular"
33
+ "angular-forms"
12
34
  ],
35
+ "homepage": "https:/gitlab.com/rxap/packages/packages/angular/forms",
13
36
  "bugs": {
14
37
  "url": "https://gitlab.com/rxap/packages/-/issues",
15
38
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
16
39
  },
17
- "description": "A typed extension for @angular/forms.",
18
- "license": "BSD-3-Clause",
19
- "peerDependencies": {
20
- "@angular-devkit/core": "^15.0.3",
21
- "@angular-devkit/schematics": "^15.0.3",
22
- "@angular/cdk": "^16.0.1",
23
- "@angular/common": "^16.0.2",
24
- "@angular/core": "^16.0.2",
25
- "@angular/forms": "^16.0.2",
26
- "@angular/platform-browser": "^16.0.2",
27
- "@angular/platform-browser-dynamic": "^16.0.2",
28
- "@angular/router": "^16.0.2",
29
- "@rxap/definition": "^16.0.0-dev.1",
30
- "@rxap/directives": "^16.0.0-dev.1",
31
- "@rxap/services": "^16.0.0-dev.1",
32
- "@rxap/utilities": "^16.0.0-dev.1",
33
- "reflect-metadata": "^0.1.13",
34
- "rxjs": "^6.6.0"
40
+ "license": "GPL-3.0-or-later",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://gitlab.com/rxap/packages.git",
44
+ "directory": "packages/angular/forms"
35
45
  },
36
- "dependencies": {
37
- "@rxap/schematics-utilities": "^16.0.0-dev.1",
38
- "@rxap/validator": "^3.0.0-dev.1",
39
- "ts-morph": "^13.0.3",
40
- "tslib": "^2.3.1"
46
+ "author": {
47
+ "name": "Merzough Münker",
48
+ "email": "mmuenker@digitaix.com"
41
49
  },
42
- "schematics": "./collection.json",
43
- "ng-update": {
44
- "migrations": "./migration.json",
50
+ "nx-migrations": {
45
51
  "packageGroup": [
46
- "@rxap/definition",
47
- "@rxap/directives",
48
- "@rxap/forms",
49
- "@rxap/services",
50
- "@rxap/utilities"
52
+ {
53
+ "package": "@rxap/definition",
54
+ "version": "16.0.0-dev.10"
55
+ },
56
+ {
57
+ "package": "@rxap/directives",
58
+ "version": "16.0.0-dev.10"
59
+ },
60
+ {
61
+ "package": "@rxap/pattern",
62
+ "version": "1.0.1-dev.5"
63
+ },
64
+ {
65
+ "package": "@rxap/reflect-metadata",
66
+ "version": "1.0.1-dev.5"
67
+ },
68
+ {
69
+ "package": "@rxap/rxjs",
70
+ "version": "1.0.1-dev.5"
71
+ },
72
+ {
73
+ "package": "@rxap/services",
74
+ "version": "16.0.0-dev.9"
75
+ },
76
+ {
77
+ "package": "@rxap/utilities",
78
+ "version": "16.0.0-dev.13"
79
+ },
80
+ {
81
+ "package": "@rxap/validator",
82
+ "version": "3.0.0-dev.7"
83
+ }
51
84
  ]
52
85
  },
53
- "publishConfig": {
54
- "directory": "../../dist/libs/forms",
55
- "access": "public"
56
- },
57
- "ng-add": {
58
- "save": "dependencies"
59
- },
86
+ "gitHead": "3d49d0a2548a0c403ad55c564108b54ba734a677",
60
87
  "module": "fesm2022/rxap-forms.mjs",
61
88
  "typings": "index.d.ts",
62
89
  "exports": {
@@ -68,7 +95,7 @@
68
95
  "esm2022": "./esm2022/rxap-forms.mjs",
69
96
  "esm": "./esm2022/rxap-forms.mjs",
70
97
  "default": "./fesm2022/rxap-forms.mjs"
71
- }
72
- },
73
- "sideEffects": false
74
- }
98
+ },
99
+ "./theme": "./theme.css"
100
+ }
101
+ }
package/theme.css ADDED
@@ -0,0 +1 @@
1
+ .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline{display:inline}.table{display:table}.contents{display:contents}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
package/collection.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "schematics": {
3
- "ng-add": {
4
- "description": "Setup the package @rxap/forms for the workspace.",
5
- "factory": "./src/schematics/ng-add/index",
6
- "schema": "./src/schematics/ng-add/schema.json"
7
- }
8
- },
9
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
10
- }