@rxap/forms 16.0.0-dev.0 → 16.0.0-dev.10

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 +634 -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 -49
  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
@@ -2,15 +2,14 @@ import * as i1 from '@angular/forms';
2
2
  import { UntypedFormArray, AbstractControl, UntypedFormGroup, UntypedFormControl, Validators, FormGroupDirective, ControlContainer, FormGroupName, NG_VALIDATORS, NG_ASYNC_VALIDATORS, FormControlName, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
3
3
  import { map, distinctUntilChanged, debounceTime, filter, tap, startWith, take } from 'rxjs/operators';
4
4
  import { merge, defer, of, EMPTY, Subject, isObservable, BehaviorSubject, Subscription } from 'rxjs';
5
- import { equals, coerceArray, HasRxapOnInitMethod, assertIsArray, assertIsObject, assertIsFunction, isPromise, isObject, clone, Required, hasIndexSignature, coerceBoolean } from '@rxap/utilities';
5
+ import { equals, coerceArray, HasRxapOnInitMethod, assertIsArray, assertIsObject, assertIsFunction, isPromise, isObject, clone, hasIndexSignature, coerceBoolean } from '@rxap/utilities';
6
6
  import * as i0 from '@angular/core';
7
7
  import { isDevMode, Injector, InjectionToken, EventEmitter, ChangeDetectorRef, forwardRef, Directive, Inject, Optional, SkipSelf, Input, Output, HostBinding, TemplateRef, ViewContainerRef, Host, HostListener, Self, NgModule } from '@angular/core';
8
8
  import { GetDefinitionMetadata, DefinitionMetadata } from '@rxap/definition';
9
- import { getMetadata, setMetadataMapSet, setMetadataMap } from '@rxap/utilities/reflect-metadata';
10
- import { __decorate, __metadata } from 'tslib';
9
+ import { getMetadata, setMetadataMapSet, setMetadataMap } from '@rxap/reflect-metadata';
11
10
  import * as i2 from '@rxap/services';
12
11
  import { LoadingIndicatorService } from '@rxap/services';
13
- import { ToggleSubject } from '@rxap/utilities/rxjs';
12
+ import { ToggleSubject } from '@rxap/rxjs';
14
13
  import * as i2$1 from '@angular/router';
15
14
  import { Router } from '@angular/router';
16
15
  import { ConfirmClick } from '@rxap/directives';
@@ -26,13 +25,13 @@ function controlValueChanges$(control) {
26
25
  return merge(defer(() => of(getControlValue(control))), control.valueChanges.pipe(map(() => getControlValue(control))));
27
26
  }
28
27
  function controlDisabled$(control) {
29
- return merge(defer(() => of(control.disabled)), merge(control.statusChanges, control.stateChanges ?? EMPTY).pipe(map(() => control.disabled), distinctUntilChanged()));
28
+ return merge(defer(() => of(control.disabled)), merge(control.statusChanges, control.stateChanges?.asObservable() ?? EMPTY).pipe(map(() => control.disabled), distinctUntilChanged()));
30
29
  }
31
30
  function controlEnabled$(control) {
32
- return merge(defer(() => of(control.enabled)), merge(control.statusChanges, control.stateChanges ?? EMPTY).pipe(map(() => control.enabled), distinctUntilChanged()));
31
+ return merge(defer(() => of(control.enabled)), merge(control.statusChanges, control.stateChanges?.asObservable() ?? EMPTY).pipe(map(() => control.enabled), distinctUntilChanged()));
33
32
  }
34
33
  function controlReadonly$(control) {
35
- return merge(defer(() => of(control.readonly ?? false)), merge(control.statusChanges, control.stateChanges ?? EMPTY).pipe(map(() => control.readonly ?? false), distinctUntilChanged()));
34
+ return merge(defer(() => of(control.readonly ?? false)), merge(control.statusChanges, control.stateChanges?.asObservable() ?? EMPTY).pipe(map(() => control.readonly ?? false), distinctUntilChanged()));
36
35
  }
37
36
  function controlStatusChanges$(control) {
38
37
  return merge(defer(() => of(control.status)), control.statusChanges.pipe(map(() => control.status), distinctUntilChanged()));
@@ -239,8 +238,9 @@ class RxapFormArray extends UntypedFormArray {
239
238
  // `patchValue` can be called recursively and inner data structures might have these values, so
240
239
  // we just ignore such cases when a field containing FormArray instance receives `null` or
241
240
  // `undefined` as a value.
242
- if (value == null /* both `null` and `undefined` */)
241
+ if (value == null /* both `null` and `undefined` */) {
243
242
  return;
243
+ }
244
244
  if (options?.strict) {
245
245
  if (this.length > value.length) {
246
246
  for (let index = this.length - 1; index >= value.length; index--) {
@@ -250,7 +250,11 @@ class RxapFormArray extends UntypedFormArray {
250
250
  }
251
251
  value.forEach((newValue, index) => {
252
252
  if (this.at(index)) {
253
- this.at(index).patchValue(newValue, { ...(options ?? {}), onlySelf: true });
253
+ this.at(index)
254
+ .patchValue(newValue, {
255
+ ...(options ?? {}),
256
+ onlySelf: true,
257
+ });
254
258
  }
255
259
  else if (options?.coerce) {
256
260
  this.insertAt(index, value[index]);
@@ -443,13 +447,17 @@ class RxapFormGroup extends UntypedFormGroup {
443
447
  // `patchValue` can be called recursively and inner data structures might have these values, so
444
448
  // we just ignore such cases when a field containing FormGroup instance receives `null` or
445
449
  // `undefined` as a value.
446
- if (value == null /* both `null` and `undefined` */)
450
+ if (value == null /* both `null` and `undefined` */) {
447
451
  return;
452
+ }
448
453
  Object.keys(value).forEach(name => {
449
454
  // TODO : resolve type issue
450
455
  const controls = this.controls;
451
456
  if (controls[name]) {
452
- controls[name].patchValue(value[name], { ...(options ?? {}), onlySelf: true });
457
+ controls[name].patchValue(value[name], {
458
+ ...(options ?? {}),
459
+ onlySelf: true,
460
+ });
453
461
  }
454
462
  });
455
463
  this.updateValueAndValidity(options);
@@ -708,6 +716,7 @@ class RxapFormControl extends UntypedFormControl {
708
716
  }
709
717
  }
710
718
 
719
+ /* eslint-disable @typescript-eslint/ban-types */
711
720
  class FormArrayControlManager {
712
721
  constructor(form, controlId) {
713
722
  this.form = form;
@@ -748,15 +757,15 @@ class RxapFormBuilder {
748
757
  // merge the providers from the from options with the providers from the
749
758
  // constructor. If the provider is defined in the form options and constructor
750
759
  // then the provider from the constructor will be used.
751
- this.providers = [...providers, ...(formOptions.providers ?? [])].filter((provider, index, self) => provider.hasOwnProperty('provide') &&
752
- self.findIndex((selfProvider) => selfProvider.hasOwnProperty('provide') &&
760
+ this.providers = [...providers, ...(formOptions.providers ?? [])].filter((provider, index, self) => provider['provide'] &&
761
+ self.findIndex((selfProvider) => selfProvider.provide &&
753
762
  selfProvider.provide === provider.provide) === index);
754
763
  }
755
764
  build(state = {}, options = {}) {
756
765
  const injector = Injector.create({
757
766
  name: `rxap/form-builder/${this.formOptions.id}`,
758
767
  parent: this.injector,
759
- providers: this.providers
768
+ providers: this.providers,
760
769
  });
761
770
  let form;
762
771
  // don't use the notFoundValue feature of the injector.
@@ -766,10 +775,20 @@ class RxapFormBuilder {
766
775
  form = injector.get(this.definition);
767
776
  }
768
777
  catch (e) {
769
- if (isDevMode()) {
770
- console.error(`Could not inject the definition instance. Fallback and call the constructor of the definition class: ${e.message}`);
778
+ if (e.name === 'NullInjectorError') {
779
+ if (e.message.includes(`No provider for ${this.definition.name}`)) {
780
+ if (isDevMode()) {
781
+ console.warn(`Could not inject the definition instance. Fallback and call the constructor of the definition class: ${e.message}`);
782
+ }
783
+ form = new this.definition();
784
+ }
785
+ else {
786
+ throw e;
787
+ }
788
+ }
789
+ else {
790
+ throw new Error(`Could not inject the definition instance: ${e.message}`);
771
791
  }
772
- form = new this.definition();
773
792
  }
774
793
  const controls = {};
775
794
  this.buildControls(state, form, controls);
@@ -839,7 +858,7 @@ class RxapFormBuilder {
839
858
  validators: [],
840
859
  asyncValidators: [],
841
860
  controlInsertedFn: manager.inserted.bind(manager),
842
- controlRemovedFn: manager.removed.bind(manager)
861
+ controlRemovedFn: manager.removed.bind(manager),
843
862
  }));
844
863
  // TODO : add support for injectable validators
845
864
  formArray.setValidators(this.coerceToValidatorArray(form, options.validators, this.validators.get(controlId)), false);
@@ -931,11 +950,7 @@ class RxapFormBuilder {
931
950
  * @param injectValidators Injected validator functions
932
951
  */
933
952
  coerceToValidatorArray(form, optionsValidators, validatorMethodKeys, injectValidators) {
934
- const validators = optionsValidators
935
- ? Array.isArray(optionsValidators)
936
- ? optionsValidators
937
- : [optionsValidators]
938
- : [];
953
+ const validators = (optionsValidators ? Array.isArray(optionsValidators) ? optionsValidators : [optionsValidators] : []).slice();
939
954
  if (validatorMethodKeys) {
940
955
  validatorMethodKeys.forEach((propertyKey) => {
941
956
  assertIsFunction(form[propertyKey]);
@@ -1063,11 +1078,11 @@ class RxapFormBuilder {
1063
1078
  }
1064
1079
  extractFormOptions() {
1065
1080
  const options = GetDefinitionMetadata(this.definition);
1066
- if (!options || !options.hasOwnProperty('id')) {
1081
+ if (!options || !options['id']) {
1067
1082
  throw new Error('Ensure that the @UseForm decorator is used.');
1068
1083
  }
1069
- if (!options.providers) {
1070
- options.providers = [];
1084
+ if (!options['providers']) {
1085
+ options['providers'] = [];
1071
1086
  }
1072
1087
  return options;
1073
1088
  }
@@ -1075,9 +1090,15 @@ class RxapFormBuilder {
1075
1090
 
1076
1091
  class ControlValueAccessor {
1077
1092
  constructor() {
1078
- this.onChange = (value) => { };
1079
- this.onTouched = () => { };
1080
- this.setDisabledState = (isDisabled) => { };
1093
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1094
+ this.onChange = (value) => {
1095
+ };
1096
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1097
+ this.onTouched = () => {
1098
+ };
1099
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1100
+ this.setDisabledState = (isDisabled) => {
1101
+ };
1081
1102
  }
1082
1103
  registerOnChange(fn) {
1083
1104
  this.onChange = fn;
@@ -1110,7 +1131,7 @@ function ControlSetValue(controlId, options = {}) {
1110
1131
  return function (target, propertyKey) {
1111
1132
  setMetadataMapSet(controlId, {
1112
1133
  ...options,
1113
- propertyKey
1134
+ propertyKey,
1114
1135
  }, MetadataKeys.CONTROL_SET_VALUE, target);
1115
1136
  };
1116
1137
  }
@@ -1125,7 +1146,10 @@ function ControlValidator(...controlIds) {
1125
1146
 
1126
1147
  function UseFormArrayGroup(definition, options = {}) {
1127
1148
  return function (target, propertyKey) {
1128
- setMetadataMap(propertyKey, { ...options, definition }, MetadataKeys.FORM_ARRAY_GROUPS, target);
1149
+ setMetadataMap(propertyKey, {
1150
+ ...options,
1151
+ definition,
1152
+ }, MetadataKeys.FORM_ARRAY_GROUPS, target);
1129
1153
  };
1130
1154
  }
1131
1155
  function UseFormArrayControl(options = {}) {
@@ -1142,7 +1166,10 @@ function UseFormControl(options = {}) {
1142
1166
 
1143
1167
  function UseFormGroup(definition, options = {}) {
1144
1168
  return function (target, propertyKey) {
1145
- setMetadataMap(propertyKey, { ...options, definition }, MetadataKeys.FORM_GROUPS, target);
1169
+ setMetadataMap(propertyKey, {
1170
+ ...options,
1171
+ definition,
1172
+ }, MetadataKeys.FORM_GROUPS, target);
1146
1173
  };
1147
1174
  }
1148
1175
 
@@ -1219,6 +1246,7 @@ class FormDirective extends FormGroupDirective {
1219
1246
  */
1220
1247
  this.rxapSubmit = new EventEmitter();
1221
1248
  this.invalidSubmit = new EventEmitter();
1249
+ // eslint-disable-next-line @angular-eslint/no-output-rename
1222
1250
  this.submitSuccessful$ = new EventEmitter();
1223
1251
  this.submitting$ = new ToggleSubject();
1224
1252
  this.submitError$ = new BehaviorSubject(null);
@@ -1242,7 +1270,7 @@ class FormDirective extends FormGroupDirective {
1242
1270
  }
1243
1271
  ngOnChanges(changes) {
1244
1272
  super.ngOnChanges(changes);
1245
- const formChange = changes.form;
1273
+ const formChange = changes['form'];
1246
1274
  if (formChange && !formChange.firstChange) {
1247
1275
  this.loadInitialState(formChange.currentValue);
1248
1276
  }
@@ -1285,6 +1313,7 @@ class FormDirective extends FormGroupDirective {
1285
1313
  this.submit();
1286
1314
  }
1287
1315
  else {
1316
+ // eslint-disable-next-line no-inner-declarations
1288
1317
  function reduceErrors(control, errors = {}) {
1289
1318
  if (control.invalid) {
1290
1319
  if (control.controls) {
@@ -1313,6 +1342,7 @@ class FormDirective extends FormGroupDirective {
1313
1342
  }
1314
1343
  if (isDevMode()) {
1315
1344
  console.log('Form submit is not valid for: ' + this.form.controlId, this.form.errors);
1345
+ // eslint-disable-next-line no-inner-declarations
1316
1346
  function printErrorControls(control) {
1317
1347
  if (!control.valid) {
1318
1348
  console.group(control.controlId);
@@ -1507,12 +1537,12 @@ class FormDirective extends FormGroupDirective {
1507
1537
  this._formDefinition.ngOnDestroy();
1508
1538
  }
1509
1539
  }
1510
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1511
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: "initial", useFormDefinition: ["rxapForm", "useFormDefinition"], submitMethod: "submitMethod" }, outputs: { ngSubmit: "ngSubmit", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
1540
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1541
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormDirective, isStandalone: true, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: "initial", useFormDefinition: ["rxapForm", "useFormDefinition"], submitMethod: "submitMethod" }, outputs: { ngSubmit: "ngSubmit", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
1512
1542
  {
1513
1543
  provide: ControlContainer,
1514
1544
  // ignore coverage
1515
- useExisting: forwardRef(() => FormDirective)
1545
+ useExisting: forwardRef(() => FormDirective),
1516
1546
  },
1517
1547
  // region form provider clear
1518
1548
  // form provider that are directly associated with the current form
@@ -1552,11 +1582,7 @@ class FormDirective extends FormGroupDirective {
1552
1582
  // endregion
1553
1583
  ], exportAs: ["rxapForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
1554
1584
  }
1555
- __decorate([
1556
- Required,
1557
- __metadata("design:type", Object)
1558
- ], FormDirective.prototype, "_formDefinition", void 0);
1559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormDirective, decorators: [{
1585
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormDirective, decorators: [{
1560
1586
  type: Directive,
1561
1587
  args: [{
1562
1588
  selector: 'form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]',
@@ -1564,7 +1590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1564
1590
  {
1565
1591
  provide: ControlContainer,
1566
1592
  // ignore coverage
1567
- useExisting: forwardRef(() => FormDirective)
1593
+ useExisting: forwardRef(() => FormDirective),
1568
1594
  },
1569
1595
  // region form provider clear
1570
1596
  // form provider that are directly associated with the current form
@@ -1603,9 +1629,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1603
1629
  },
1604
1630
  // endregion
1605
1631
  ],
1632
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
1606
1633
  host: { '(reset)': 'onReset()' },
1634
+ // eslint-disable-next-line @angular-eslint/no-outputs-metadata-property
1607
1635
  outputs: ['ngSubmit'],
1608
1636
  exportAs: 'rxapForm',
1637
+ standalone: true,
1609
1638
  }]
1610
1639
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef, decorators: [{
1611
1640
  type: Inject,
@@ -1696,7 +1725,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1696
1725
  }], useFormDefinition: [{
1697
1726
  type: Input,
1698
1727
  args: ['rxapForm']
1699
- }], _formDefinition: [], submitMethod: [{
1728
+ }], submitMethod: [{
1700
1729
  type: Input
1701
1730
  }] } });
1702
1731
 
@@ -1717,13 +1746,14 @@ class FormSubmitFailedDirective {
1717
1746
  ngOnDestroy() {
1718
1747
  this.subscription?.unsubscribe();
1719
1748
  }
1720
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitFailedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1721
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]", ngImport: i0 }); }
1749
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitFailedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1750
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormSubmitFailedDirective, isStandalone: true, selector: "[rxapFormSubmitFailed]", ngImport: i0 }); }
1722
1751
  }
1723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitFailedDirective, decorators: [{
1752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitFailedDirective, decorators: [{
1724
1753
  type: Directive,
1725
1754
  args: [{
1726
- selector: '[rxapFormSubmitFailed]'
1755
+ selector: '[rxapFormSubmitFailed]',
1756
+ standalone: true,
1727
1757
  }]
1728
1758
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
1729
1759
  type: Inject,
@@ -1753,13 +1783,14 @@ class FormLoadingDirective {
1753
1783
  ngOnDestroy() {
1754
1784
  this.subscription?.unsubscribe();
1755
1785
  }
1756
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1757
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormLoadingDirective, selector: "[rxapFormLoading]", ngImport: i0 }); }
1786
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormLoadingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1787
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormLoadingDirective, isStandalone: true, selector: "[rxapFormLoading]", ngImport: i0 }); }
1758
1788
  }
1759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingDirective, decorators: [{
1789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormLoadingDirective, decorators: [{
1760
1790
  type: Directive,
1761
1791
  args: [{
1762
- selector: '[rxapFormLoading]'
1792
+ selector: '[rxapFormLoading]',
1793
+ standalone: true,
1763
1794
  }]
1764
1795
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
1765
1796
  type: Inject,
@@ -1789,13 +1820,14 @@ class FormSubmittingDirective {
1789
1820
  ngOnDestroy() {
1790
1821
  this.subscription?.unsubscribe();
1791
1822
  }
1792
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmittingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1793
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]", ngImport: i0 }); }
1823
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmittingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1824
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormSubmittingDirective, isStandalone: true, selector: "[rxapFormSubmitting]", ngImport: i0 }); }
1794
1825
  }
1795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmittingDirective, decorators: [{
1826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmittingDirective, decorators: [{
1796
1827
  type: Directive,
1797
1828
  args: [{
1798
- selector: '[rxapFormSubmitting]'
1829
+ selector: '[rxapFormSubmitting]',
1830
+ standalone: true,
1799
1831
  }]
1800
1832
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
1801
1833
  type: Inject,
@@ -1808,30 +1840,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1808
1840
  args: [ViewContainerRef]
1809
1841
  }] }]; } });
1810
1842
 
1811
- class FormLoadedDirective {
1843
+ class FormLoadingErrorDirective {
1812
1844
  constructor(formDirective, template, viewContainerRef) {
1813
1845
  this.formDirective = formDirective;
1814
1846
  this.template = template;
1815
1847
  this.viewContainerRef = viewContainerRef;
1816
1848
  }
1817
1849
  ngAfterViewInit() {
1818
- this.subscription = this.formDirective.loaded$.pipe(distinctUntilChanged(), tap(loading => {
1850
+ this.subscription = this.formDirective.loadingError$.pipe(tap(error => {
1819
1851
  this.viewContainerRef.clear();
1820
- if (loading) {
1821
- this.viewContainerRef.createEmbeddedView(this.template);
1852
+ if (error !== null) {
1853
+ this.viewContainerRef.createEmbeddedView(this.template, { $implicit: error });
1822
1854
  }
1823
1855
  })).subscribe();
1824
1856
  }
1825
1857
  ngOnDestroy() {
1826
1858
  this.subscription?.unsubscribe();
1827
1859
  }
1828
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1829
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormLoadedDirective, selector: "[rxapFormLoaded]", ngImport: i0 }); }
1860
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormLoadingErrorDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1861
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormLoadingErrorDirective, isStandalone: true, selector: "[rxapFormLoadingError]", ngImport: i0 }); }
1830
1862
  }
1831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadedDirective, decorators: [{
1863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormLoadingErrorDirective, decorators: [{
1832
1864
  type: Directive,
1833
1865
  args: [{
1834
- selector: '[rxapFormLoaded]'
1866
+ selector: '[rxapFormLoadingError]',
1867
+ standalone: true,
1835
1868
  }]
1836
1869
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
1837
1870
  type: Inject,
@@ -1844,30 +1877,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1844
1877
  args: [ViewContainerRef]
1845
1878
  }] }]; } });
1846
1879
 
1847
- class FormLoadingErrorDirective {
1880
+ class FormLoadedDirective {
1848
1881
  constructor(formDirective, template, viewContainerRef) {
1849
1882
  this.formDirective = formDirective;
1850
1883
  this.template = template;
1851
1884
  this.viewContainerRef = viewContainerRef;
1852
1885
  }
1853
1886
  ngAfterViewInit() {
1854
- this.subscription = this.formDirective.loadingError$.pipe(tap(error => {
1887
+ this.subscription = this.formDirective.loaded$.pipe(distinctUntilChanged(), tap(loading => {
1855
1888
  this.viewContainerRef.clear();
1856
- if (error !== null) {
1857
- this.viewContainerRef.createEmbeddedView(this.template, { $implicit: error });
1889
+ if (loading) {
1890
+ this.viewContainerRef.createEmbeddedView(this.template);
1858
1891
  }
1859
1892
  })).subscribe();
1860
1893
  }
1861
1894
  ngOnDestroy() {
1862
1895
  this.subscription?.unsubscribe();
1863
1896
  }
1864
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingErrorDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1865
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormLoadingErrorDirective, selector: "[rxapFormLoadingError]", ngImport: i0 }); }
1897
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormLoadedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1898
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormLoadedDirective, isStandalone: true, selector: "[rxapFormLoaded]", ngImport: i0 }); }
1866
1899
  }
1867
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingErrorDirective, decorators: [{
1900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormLoadedDirective, decorators: [{
1868
1901
  type: Directive,
1869
1902
  args: [{
1870
- selector: '[rxapFormLoadingError]'
1903
+ selector: '[rxapFormLoaded]',
1904
+ standalone: true,
1871
1905
  }]
1872
1906
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
1873
1907
  type: Inject,
@@ -1881,7 +1915,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1881
1915
  }] }]; } });
1882
1916
 
1883
1917
  /**
1884
- * @deprecated removed
1918
+ * @deprecated removed use the rxapControlError or rxapControlErrors directive
1885
1919
  */
1886
1920
  class FormControlErrorDirective {
1887
1921
  constructor(template, parent, viewContainerRef) {
@@ -1904,21 +1938,14 @@ class FormControlErrorDirective {
1904
1938
  ngOnDestroy() {
1905
1939
  this.subscription?.unsubscribe();
1906
1940
  }
1907
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlErrorDirective, deps: [{ token: i0.TemplateRef }, { token: i1.ControlContainer, host: true, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1908
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: { name: ["rxapFormControlErrorFrom", "name"], errorKey: ["rxapFormControlErrorIf", "errorKey"] }, ngImport: i0 }); }
1909
- }
1910
- __decorate([
1911
- Required,
1912
- __metadata("design:type", String)
1913
- ], FormControlErrorDirective.prototype, "name", void 0);
1914
- __decorate([
1915
- Required,
1916
- __metadata("design:type", String)
1917
- ], FormControlErrorDirective.prototype, "errorKey", void 0);
1918
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlErrorDirective, decorators: [{
1941
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlErrorDirective, deps: [{ token: i0.TemplateRef }, { token: i1.ControlContainer, host: true, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1942
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormControlErrorDirective, isStandalone: true, selector: "[rxapFormControlError]", inputs: { name: ["rxapFormControlErrorFrom", "name"], errorKey: ["rxapFormControlErrorIf", "errorKey"] }, ngImport: i0 }); }
1943
+ }
1944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlErrorDirective, decorators: [{
1919
1945
  type: Directive,
1920
1946
  args: [{
1921
- selector: '[rxapFormControlError]'
1947
+ selector: '[rxapFormControlError]',
1948
+ standalone: true,
1922
1949
  }]
1923
1950
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i1.ControlContainer, decorators: [{
1924
1951
  type: Host
@@ -1926,10 +1953,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
1926
1953
  type: SkipSelf
1927
1954
  }] }, { type: i0.ViewContainerRef }]; }, propDecorators: { name: [{
1928
1955
  type: Input,
1929
- args: ['rxapFormControlErrorFrom']
1956
+ args: [{
1957
+ required: true,
1958
+ alias: 'rxapFormControlErrorFrom',
1959
+ }]
1930
1960
  }], errorKey: [{
1931
1961
  type: Input,
1932
- args: ['rxapFormControlErrorIf']
1962
+ args: [{
1963
+ required: true,
1964
+ alias: 'rxapFormControlErrorIf',
1965
+ }]
1933
1966
  }] } });
1934
1967
 
1935
1968
  class FormControlMarkDirtyDirective {
@@ -1939,19 +1972,20 @@ class FormControlMarkDirtyDirective {
1939
1972
  onClick() {
1940
1973
  const control = this.parent.control;
1941
1974
  if (control && hasIndexSignature(control) && typeof control['markAllAsDirty'] === 'function') {
1942
- control.markAllAsDirty();
1975
+ control['markAllAsDirty']();
1943
1976
  }
1944
1977
  else {
1945
1978
  control?.markAsDirty();
1946
1979
  }
1947
1980
  }
1948
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkDirtyDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
1949
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
1981
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkDirtyDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
1982
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormControlMarkDirtyDirective, isStandalone: true, selector: "[rxapFormControlMarkDirty]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
1950
1983
  }
1951
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkDirtyDirective, decorators: [{
1984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkDirtyDirective, decorators: [{
1952
1985
  type: Directive,
1953
1986
  args: [{
1954
- selector: '[rxapFormControlMarkDirty]'
1987
+ selector: '[rxapFormControlMarkDirty]',
1988
+ standalone: true,
1955
1989
  }]
1956
1990
  }], ctorParameters: function () { return [{ type: i1.ControlContainer }]; }, propDecorators: { onClick: [{
1957
1991
  type: HostListener,
@@ -1965,13 +1999,14 @@ class FormControlMarkTouchedDirective {
1965
1999
  onClick() {
1966
2000
  this.parent.control?.markAllAsTouched();
1967
2001
  }
1968
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkTouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
1969
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkTouchedDirective, selector: "[rxapFormControlMarkTouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
2002
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkTouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
2003
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormControlMarkTouchedDirective, isStandalone: true, selector: "[rxapFormControlMarkTouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
1970
2004
  }
1971
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkTouchedDirective, decorators: [{
2005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkTouchedDirective, decorators: [{
1972
2006
  type: Directive,
1973
2007
  args: [{
1974
- selector: '[rxapFormControlMarkTouched]'
2008
+ selector: '[rxapFormControlMarkTouched]',
2009
+ standalone: true,
1975
2010
  }]
1976
2011
  }], ctorParameters: function () { return [{ type: i1.ControlContainer }]; }, propDecorators: { onClick: [{
1977
2012
  type: HostListener,
@@ -1985,19 +2020,20 @@ class FormControlMarkUntouchedDirective {
1985
2020
  onClick() {
1986
2021
  const control = this.parent.control;
1987
2022
  if (control && hasIndexSignature(control) && typeof control['markAllAsUntouched'] === 'function') {
1988
- control.markAllAsUntouched();
2023
+ control['markAllAsUntouched']();
1989
2024
  }
1990
2025
  else {
1991
2026
  control?.markAsUntouched();
1992
2027
  }
1993
2028
  }
1994
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkUntouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
1995
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkUntouchedDirective, selector: "[rxapFormControlMarkUntouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
2029
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkUntouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
2030
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormControlMarkUntouchedDirective, isStandalone: true, selector: "[rxapFormControlMarkUntouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
1996
2031
  }
1997
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkUntouchedDirective, decorators: [{
2032
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkUntouchedDirective, decorators: [{
1998
2033
  type: Directive,
1999
2034
  args: [{
2000
- selector: '[rxapFormControlMarkUntouched]'
2035
+ selector: '[rxapFormControlMarkUntouched]',
2036
+ standalone: true,
2001
2037
  }]
2002
2038
  }], ctorParameters: function () { return [{ type: i1.ControlContainer }]; }, propDecorators: { onClick: [{
2003
2039
  type: HostListener,
@@ -2011,19 +2047,20 @@ class FormControlMarkPristineDirective {
2011
2047
  onClick() {
2012
2048
  const control = this.parent.control;
2013
2049
  if (control && hasIndexSignature(control) && typeof control['markAllAsPristine'] === 'function') {
2014
- control.markAllAsPristine();
2050
+ control['markAllAsPristine']();
2015
2051
  }
2016
2052
  else {
2017
2053
  control?.markAsPristine();
2018
2054
  }
2019
2055
  }
2020
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkPristineDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
2021
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkPristineDirective, selector: "[rxapFormControlMarkPristine]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
2056
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkPristineDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
2057
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormControlMarkPristineDirective, isStandalone: true, selector: "[rxapFormControlMarkPristine]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
2022
2058
  }
2023
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkPristineDirective, decorators: [{
2059
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlMarkPristineDirective, decorators: [{
2024
2060
  type: Directive,
2025
2061
  args: [{
2026
- selector: '[rxapFormControlMarkPristine]'
2062
+ selector: '[rxapFormControlMarkPristine]',
2063
+ standalone: true,
2027
2064
  }]
2028
2065
  }], ctorParameters: function () { return [{ type: i1.ControlContainer }]; }, propDecorators: { onClick: [{
2029
2066
  type: HostListener,
@@ -2065,17 +2102,19 @@ class FormSubmitDirective extends ConfirmClick {
2065
2102
  ngOnDestroy() {
2066
2103
  this.subscription?.unsubscribe();
2067
2104
  }
2068
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitDirective, deps: [{ token: FormDirective }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2069
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitDirective, selector: "[rxapFormSubmit]", inputs: { type: "type", resetAfterSubmit: "resetAfterSubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { afterSubmit: "afterSubmit" }, host: { listeners: { "click": "onClick()", "confirmed": "onConfirm()" }, properties: { "type": "this.type" } }, usesInheritance: true, ngImport: i0 }); }
2105
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitDirective, deps: [{ token: FormDirective }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2106
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormSubmitDirective, isStandalone: true, selector: "[rxapFormSubmit]", inputs: { type: "type", resetAfterSubmit: "resetAfterSubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { afterSubmit: "afterSubmit" }, host: { listeners: { "click": "onClick()", "confirmed": "onConfirm()" }, properties: { "type": "this.type" } }, usesInheritance: true, ngImport: i0 }); }
2070
2107
  }
2071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitDirective, decorators: [{
2108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitDirective, decorators: [{
2072
2109
  type: Directive,
2073
2110
  args: [{
2074
2111
  selector: '[rxapFormSubmit]',
2112
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
2075
2113
  host: {
2076
2114
  '(click)': 'onClick()',
2077
2115
  '(confirmed)': 'onConfirm()',
2078
- }
2116
+ },
2117
+ standalone: true,
2079
2118
  }]
2080
2119
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
2081
2120
  type: Inject,
@@ -2091,8 +2130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
2091
2130
  }, {
2092
2131
  type: Input
2093
2132
  }], resetAfterSubmit: [{
2094
- type: Input,
2095
- args: ['resetAfterSubmit']
2133
+ type: Input
2096
2134
  }], navigateAfterSubmit: [{
2097
2135
  type: Input
2098
2136
  }], afterSubmit: [{
@@ -2113,25 +2151,26 @@ class FormGroupNameDirective extends FormGroupName {
2113
2151
  constructor(parent, validators, asyncValidators) {
2114
2152
  super(parent, validators, asyncValidators);
2115
2153
  }
2116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormGroupNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2117
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormGroupNameDirective, selector: "[rxapFormGroupName]", inputs: { name: ["rxapFormGroupName", "name"] }, providers: [
2154
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormGroupNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2155
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormGroupNameDirective, isStandalone: true, selector: "[rxapFormGroupName]", inputs: { name: ["rxapFormGroupName", "name"] }, providers: [
2118
2156
  {
2119
2157
  provide: ControlContainer,
2120
- useExisting: forwardRef(() => FormGroupNameDirective)
2121
- }
2158
+ useExisting: forwardRef(() => FormGroupNameDirective),
2159
+ },
2122
2160
  ], exportAs: ["rxapFormGroup"], usesInheritance: true, ngImport: i0 }); }
2123
2161
  }
2124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormGroupNameDirective, decorators: [{
2162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormGroupNameDirective, decorators: [{
2125
2163
  type: Directive,
2126
2164
  args: [{
2127
2165
  selector: '[rxapFormGroupName]',
2128
2166
  providers: [
2129
2167
  {
2130
2168
  provide: ControlContainer,
2131
- useExisting: forwardRef(() => FormGroupNameDirective)
2132
- }
2169
+ useExisting: forwardRef(() => FormGroupNameDirective),
2170
+ },
2133
2171
  ],
2134
- exportAs: 'rxapFormGroup'
2172
+ exportAs: 'rxapFormGroup',
2173
+ standalone: true,
2135
2174
  }]
2136
2175
  }], ctorParameters: function () { return [{ type: i1.ControlContainer, decorators: [{
2137
2176
  type: Optional
@@ -2166,25 +2205,26 @@ class FormControlNameDirective extends FormControlName {
2166
2205
  constructor(parent, validators, asyncValidators, valueAccessors) {
2167
2206
  super(parent, validators, asyncValidators, valueAccessors, null);
2168
2207
  }
2169
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2170
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlNameDirective, selector: "[rxapFormControlName]", inputs: { name: ["rxapFormControlName", "name"] }, providers: [
2208
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2209
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormControlNameDirective, isStandalone: true, selector: "[rxapFormControlName]", inputs: { name: ["rxapFormControlName", "name"] }, providers: [
2171
2210
  {
2172
2211
  provide: NgControl,
2173
- useExisting: forwardRef(() => FormControlNameDirective)
2174
- }
2212
+ useExisting: forwardRef(() => FormControlNameDirective),
2213
+ },
2175
2214
  ], exportAs: ["rxapFormControl"], usesInheritance: true, ngImport: i0 }); }
2176
2215
  }
2177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlNameDirective, decorators: [{
2216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlNameDirective, decorators: [{
2178
2217
  type: Directive,
2179
2218
  args: [{
2180
2219
  selector: '[rxapFormControlName]',
2181
2220
  providers: [
2182
2221
  {
2183
2222
  provide: NgControl,
2184
- useExisting: forwardRef(() => FormControlNameDirective)
2185
- }
2223
+ useExisting: forwardRef(() => FormControlNameDirective),
2224
+ },
2186
2225
  ],
2187
- exportAs: 'rxapFormControl'
2226
+ exportAs: 'rxapFormControl',
2227
+ standalone: true,
2188
2228
  }]
2189
2229
  }], ctorParameters: function () { return [{ type: i1.ControlContainer, decorators: [{
2190
2230
  type: Optional
@@ -2217,24 +2257,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
2217
2257
  }] } });
2218
2258
 
2219
2259
  class ParentControlContainerDirective {
2220
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ParentControlContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2221
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ParentControlContainerDirective, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", providers: [
2260
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ParentControlContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2261
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ParentControlContainerDirective, isStandalone: true, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", providers: [
2222
2262
  {
2223
2263
  provide: ControlContainer,
2224
- useExisting: ControlContainer
2225
- }
2264
+ useExisting: ControlContainer,
2265
+ },
2226
2266
  ], ngImport: i0 }); }
2227
2267
  }
2228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ParentControlContainerDirective, decorators: [{
2268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ParentControlContainerDirective, decorators: [{
2229
2269
  type: Directive,
2230
2270
  args: [{
2271
+ // eslint-disable-next-line @angular-eslint/directive-selector
2231
2272
  selector: '[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]',
2232
2273
  providers: [
2233
2274
  {
2234
2275
  provide: ControlContainer,
2235
- useExisting: ControlContainer
2236
- }
2237
- ]
2276
+ useExisting: ControlContainer,
2277
+ },
2278
+ ],
2279
+ standalone: true,
2238
2280
  }]
2239
2281
  }] });
2240
2282
 
@@ -2253,13 +2295,14 @@ class FormSubmitSuccessfulDirective {
2253
2295
  ngOnDestroy() {
2254
2296
  this.subscription?.unsubscribe();
2255
2297
  }
2256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitSuccessfulDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2257
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitSuccessfulDirective, selector: "[rxapFormSubmitSuccessful]", ngImport: i0 }); }
2298
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitSuccessfulDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2299
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormSubmitSuccessfulDirective, isStandalone: true, selector: "[rxapFormSubmitSuccessful]", ngImport: i0 }); }
2258
2300
  }
2259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitSuccessfulDirective, decorators: [{
2301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitSuccessfulDirective, decorators: [{
2260
2302
  type: Directive,
2261
2303
  args: [{
2262
- selector: '[rxapFormSubmitSuccessful]'
2304
+ selector: '[rxapFormSubmitSuccessful]',
2305
+ standalone: true,
2263
2306
  }]
2264
2307
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
2265
2308
  type: Inject,
@@ -2287,13 +2330,14 @@ class FormSubmitInvalidDirective {
2287
2330
  ngOnDestroy() {
2288
2331
  this.subscription?.unsubscribe();
2289
2332
  }
2290
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitInvalidDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2291
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitInvalidDirective, selector: "[rxapFormSubmitInvalid]", ngImport: i0 }); }
2333
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitInvalidDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2334
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormSubmitInvalidDirective, isStandalone: true, selector: "[rxapFormSubmitInvalid]", ngImport: i0 }); }
2292
2335
  }
2293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitInvalidDirective, decorators: [{
2336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormSubmitInvalidDirective, decorators: [{
2294
2337
  type: Directive,
2295
2338
  args: [{
2296
- selector: '[rxapFormSubmitInvalid]'
2339
+ selector: '[rxapFormSubmitInvalid]',
2340
+ standalone: true,
2297
2341
  }]
2298
2342
  }], ctorParameters: function () { return [{ type: FormDirective, decorators: [{
2299
2343
  type: Inject,
@@ -2307,8 +2351,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
2307
2351
  }] }]; } });
2308
2352
 
2309
2353
  class RxapFormsModule {
2310
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2311
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule, declarations: [FormDirective,
2354
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2355
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: RxapFormsModule, imports: [FormDirective,
2312
2356
  FormSubmitFailedDirective,
2313
2357
  FormLoadingDirective,
2314
2358
  FormSubmittingDirective,
@@ -2341,12 +2385,12 @@ class RxapFormsModule {
2341
2385
  ParentControlContainerDirective,
2342
2386
  FormSubmitSuccessfulDirective,
2343
2387
  FormSubmitInvalidDirective] }); }
2344
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule }); }
2388
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapFormsModule }); }
2345
2389
  }
2346
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule, decorators: [{
2390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapFormsModule, decorators: [{
2347
2391
  type: NgModule,
2348
2392
  args: [{
2349
- declarations: [
2393
+ imports: [
2350
2394
  FormDirective,
2351
2395
  FormSubmitFailedDirective,
2352
2396
  FormLoadingDirective,
@@ -2383,7 +2427,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
2383
2427
  ParentControlContainerDirective,
2384
2428
  FormSubmitSuccessfulDirective,
2385
2429
  FormSubmitInvalidDirective,
2386
- ]
2430
+ ],
2387
2431
  }]
2388
2432
  }] });
2389
2433
 
@@ -2433,11 +2477,16 @@ function IsNumber(control) {
2433
2477
  return null;
2434
2478
  }
2435
2479
  if (isNaN(Number(control.value))) {
2436
- return { isNumber: { expected: 'A number or a string representing a number', actual: control.value } };
2480
+ return {
2481
+ isNumber: {
2482
+ expected: 'A number or a string representing a number',
2483
+ actual: control.value,
2484
+ },
2485
+ };
2437
2486
  }
2438
2487
  return null;
2439
2488
  }
2440
- function _IsNumber({ message, options } = {}) {
2489
+ function _IsNumber({ message, options, } = {}) {
2441
2490
  return (control) => {
2442
2491
  if (control.value === null) {
2443
2492
  return null;
@@ -2447,8 +2496,8 @@ function _IsNumber({ message, options } = {}) {
2447
2496
  isNumber: {
2448
2497
  expected: 'A number value',
2449
2498
  actual: control.value,
2450
- message
2451
- }
2499
+ message,
2500
+ },
2452
2501
  };
2453
2502
  }
2454
2503
  return null;
@@ -2465,8 +2514,8 @@ function IsBoolean({ message } = {}) {
2465
2514
  isBoolean: {
2466
2515
  expected: 'A boolean value',
2467
2516
  actual: control.value,
2468
- message
2469
- }
2517
+ message,
2518
+ },
2470
2519
  };
2471
2520
  }
2472
2521
  return null;
@@ -2478,13 +2527,16 @@ function IsObject({ message } = {}) {
2478
2527
  if (control.value === null) {
2479
2528
  return null;
2480
2529
  }
2481
- if (!(control.value !== undefined && (typeof control.value === 'object' || typeof control.value === 'function') && !Array.isArray(control.value))) {
2530
+ if (!(control.value !==
2531
+ undefined &&
2532
+ (typeof control.value === 'object' || typeof control.value === 'function') &&
2533
+ !Array.isArray(control.value))) {
2482
2534
  return {
2483
2535
  isObject: {
2484
2536
  expected: 'A object value',
2485
2537
  actual: control.value,
2486
- message
2487
- }
2538
+ message,
2539
+ },
2488
2540
  };
2489
2541
  }
2490
2542
  return null;
@@ -2501,15 +2553,15 @@ function IsString({ message } = {}) {
2501
2553
  isString: {
2502
2554
  expected: 'A string value',
2503
2555
  actual: control.value,
2504
- message
2505
- }
2556
+ message,
2557
+ },
2506
2558
  };
2507
2559
  }
2508
2560
  return null;
2509
2561
  };
2510
2562
  }
2511
2563
 
2512
- function IsInt({ message, options } = {}) {
2564
+ function IsInt({ message, options, } = {}) {
2513
2565
  return (control) => {
2514
2566
  if (control.value === null) {
2515
2567
  return null;
@@ -2519,15 +2571,15 @@ function IsInt({ message, options } = {}) {
2519
2571
  isInt: {
2520
2572
  expected: 'A int value',
2521
2573
  actual: control.value,
2522
- message
2523
- }
2574
+ message,
2575
+ },
2524
2576
  };
2525
2577
  }
2526
2578
  return null;
2527
2579
  };
2528
2580
  }
2529
2581
 
2530
- function IsEnum({ message, entity }) {
2582
+ function IsEnum({ message, entity, }) {
2531
2583
  return (control) => {
2532
2584
  if (control.value === null) {
2533
2585
  return null;
@@ -2537,8 +2589,8 @@ function IsEnum({ message, entity }) {
2537
2589
  isEnum: {
2538
2590
  expected: 'A enum value',
2539
2591
  actual: control.value,
2540
- message
2541
- }
2592
+ message,
2593
+ },
2542
2594
  };
2543
2595
  }
2544
2596
  return null;
@@ -2555,8 +2607,8 @@ function IsDate({ message } = {}) {
2555
2607
  isDate: {
2556
2608
  expected: 'A date value',
2557
2609
  actual: control.value,
2558
- message
2559
- }
2610
+ message,
2611
+ },
2560
2612
  };
2561
2613
  }
2562
2614
  return null;
@@ -2573,8 +2625,8 @@ function IsArray({ message } = {}) {
2573
2625
  isArray: {
2574
2626
  expected: 'A array value',
2575
2627
  actual: control.value,
2576
- message
2577
- }
2628
+ message,
2629
+ },
2578
2630
  };
2579
2631
  }
2580
2632
  return null;
@@ -2587,14 +2639,14 @@ const regexOptions = {
2587
2639
  digit: '.*[0-9]',
2588
2640
  lowercase: '.*[a-z]',
2589
2641
  upperLower: '.*[a-zA-Z]',
2590
- alphaNumeric: '.*[a-zA-Z0-9]'
2642
+ alphaNumeric: '.*[a-zA-Z0-9]',
2591
2643
  };
2592
2644
  const lengthOptions = {
2593
2645
  min: '.{n,}',
2594
2646
  max: '.{0,n}',
2595
2647
  range: '.{min,max}',
2596
2648
  exact: '.{n}',
2597
- no_limit: '.*'
2649
+ no_limit: '.*',
2598
2650
  };
2599
2651
  function inOperator(k, o) {
2600
2652
  return k in o;
@@ -2625,7 +2677,6 @@ function create(options) {
2625
2677
  return regex;
2626
2678
  }
2627
2679
  function check(str, regexStringOrOptions) {
2628
- let regex;
2629
2680
  let regexString;
2630
2681
  if (typeof regexStringOrOptions === 'object') {
2631
2682
  regexString = create(regexStringOrOptions);
@@ -2633,8 +2684,7 @@ function check(str, regexStringOrOptions) {
2633
2684
  else {
2634
2685
  regexString = regexStringOrOptions;
2635
2686
  }
2636
- regex = new RegExp(regexString);
2637
- return regex.test(str);
2687
+ return new RegExp(regexString).test(str);
2638
2688
  }
2639
2689
  function checkError(str, options) {
2640
2690
  const returnObject = {};
@@ -2643,7 +2693,7 @@ function checkError(str, options) {
2643
2693
  }
2644
2694
  return returnObject;
2645
2695
  }
2646
- function IsComplex({ message, options }) {
2696
+ function IsComplex({ message, options, }) {
2647
2697
  return (control) => {
2648
2698
  if (control.value === null) {
2649
2699
  return null;
@@ -2658,15 +2708,15 @@ function IsComplex({ message, options }) {
2658
2708
  isComplex: {
2659
2709
  expected: options,
2660
2710
  actual: errors,
2661
- message
2662
- }
2711
+ message,
2712
+ },
2663
2713
  };
2664
2714
  }
2665
2715
  return null;
2666
2716
  };
2667
2717
  }
2668
2718
 
2669
- function IsPhoneNumber({ message, locale, options } = {}) {
2719
+ function IsPhoneNumber({ message, locale, options, } = {}) {
2670
2720
  return (control) => {
2671
2721
  if (control.value === null) {
2672
2722
  return null;
@@ -2676,15 +2726,15 @@ function IsPhoneNumber({ message, locale, options } = {}) {
2676
2726
  isPhoneNumber: {
2677
2727
  expected: 'A phone number value',
2678
2728
  actual: control.value,
2679
- message
2680
- }
2729
+ message,
2730
+ },
2681
2731
  };
2682
2732
  }
2683
2733
  return null;
2684
2734
  };
2685
2735
  }
2686
2736
 
2687
- function IsEmail({ message, options } = {}) {
2737
+ function IsEmail({ message, options, } = {}) {
2688
2738
  return (control) => {
2689
2739
  if (control.value === null) {
2690
2740
  return null;
@@ -2694,15 +2744,15 @@ function IsEmail({ message, options } = {}) {
2694
2744
  isEmail: {
2695
2745
  expected: 'A email value',
2696
2746
  actual: control.value,
2697
- message
2698
- }
2747
+ message,
2748
+ },
2699
2749
  };
2700
2750
  }
2701
2751
  return null;
2702
2752
  };
2703
2753
  }
2704
2754
 
2705
- function IsUrl({ message, options } = {}) {
2755
+ function IsUrl({ message, options, } = {}) {
2706
2756
  return (control) => {
2707
2757
  if (control.value === null) {
2708
2758
  return null;
@@ -2712,15 +2762,15 @@ function IsUrl({ message, options } = {}) {
2712
2762
  isURL: {
2713
2763
  expected: 'A url value',
2714
2764
  actual: control.value,
2715
- message
2716
- }
2765
+ message,
2766
+ },
2717
2767
  };
2718
2768
  }
2719
2769
  return null;
2720
2770
  };
2721
2771
  }
2722
2772
 
2723
- function IsIP({ message, version } = {}) {
2773
+ function IsIP({ message, version, } = {}) {
2724
2774
  return (control) => {
2725
2775
  if (control.value === null) {
2726
2776
  return null;
@@ -2730,8 +2780,8 @@ function IsIP({ message, version } = {}) {
2730
2780
  isIp: {
2731
2781
  expected: `A valid IPv${version ?? '4'} value`,
2732
2782
  actual: control.value,
2733
- message
2734
- }
2783
+ message,
2784
+ },
2735
2785
  };
2736
2786
  }
2737
2787
  return null;
@@ -2748,15 +2798,15 @@ function IsPort({ message } = {}) {
2748
2798
  isPort: {
2749
2799
  expected: `A valid port number between 1 and 65535`,
2750
2800
  actual: control.value,
2751
- message
2752
- }
2801
+ message,
2802
+ },
2753
2803
  };
2754
2804
  }
2755
2805
  return null;
2756
2806
  };
2757
2807
  }
2758
2808
 
2759
- function IsUUID({ message, version = 'all' } = {}) {
2809
+ function IsUUID({ message, version = 'all', } = {}) {
2760
2810
  return (control) => {
2761
2811
  if (control.value === null) {
2762
2812
  return null;
@@ -2766,8 +2816,8 @@ function IsUUID({ message, version = 'all' } = {}) {
2766
2816
  isUuid: {
2767
2817
  expected: version === 'all' ? `A valid uuid` : `A valid uuid version ${version}`,
2768
2818
  actual: control.value,
2769
- message
2770
- }
2819
+ message,
2820
+ },
2771
2821
  };
2772
2822
  }
2773
2823
  return null;