@rxap/form-system 14.1.0 → 16.0.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/esm2022/lib/control-data-source.mjs +41 -0
  2. package/esm2022/lib/directives/control-hide-show.directive.mjs +184 -0
  3. package/esm2022/lib/directives/form-directives.module.mjs +22 -0
  4. package/esm2022/lib/directives/input-select-options.directive.mjs +191 -0
  5. package/esm2022/lib/form-system-control.directive.mjs +158 -0
  6. package/esm2022/lib/form-system.module.mjs +18 -0
  7. package/{esm2020 → esm2022}/lib/mixins/extract-control.mixin.mjs +1 -1
  8. package/esm2022/lib/mixins/extract-options-data-source.mixin.mjs +59 -0
  9. package/esm2022/lib/validators/is-equal-to.mjs +72 -0
  10. package/esm2022/lib/validators/is-selectable-value.directive.mjs +91 -0
  11. package/{fesm2020 → fesm2022}/rxap-form-system.mjs +64 -65
  12. package/fesm2022/rxap-form-system.mjs.map +1 -0
  13. package/lib/directives/control-hide-show.directive.d.ts +2 -2
  14. package/lib/directives/input-select-options.directive.d.ts +3 -3
  15. package/lib/form-system-control.directive.d.ts +1 -1
  16. package/lib/mixins/extract-control.mixin.d.ts +1 -1
  17. package/lib/validators/is-equal-to.d.ts +1 -1
  18. package/lib/validators/is-selectable-value.directive.d.ts +1 -1
  19. package/package.json +22 -28
  20. package/esm2020/lib/control-data-source.mjs +0 -40
  21. package/esm2020/lib/directives/control-hide-show.directive.mjs +0 -183
  22. package/esm2020/lib/directives/form-directives.module.mjs +0 -21
  23. package/esm2020/lib/directives/input-select-options.directive.mjs +0 -191
  24. package/esm2020/lib/form-system-control.directive.mjs +0 -158
  25. package/esm2020/lib/form-system.module.mjs +0 -17
  26. package/esm2020/lib/mixins/extract-options-data-source.mixin.mjs +0 -59
  27. package/esm2020/lib/validators/is-equal-to.mjs +0 -70
  28. package/esm2020/lib/validators/is-selectable-value.directive.mjs +0 -90
  29. package/fesm2015/rxap-form-system.mjs +0 -893
  30. package/fesm2015/rxap-form-system.mjs.map +0 -1
  31. package/fesm2020/rxap-form-system.mjs.map +0 -1
  32. /package/{esm2020 → esm2022}/index.mjs +0 -0
  33. /package/{esm2020 → esm2022}/lib/control-with-data-source.mjs +0 -0
  34. /package/{esm2020 → esm2022}/lib/decorators/metadata-keys.mjs +0 -0
  35. /package/{esm2020 → esm2022}/lib/decorators/use-component.mjs +0 -0
  36. /package/{esm2020 → esm2022}/lib/decorators/use-data-source.mjs +0 -0
  37. /package/{esm2020 → esm2022}/lib/decorators/use-form-component.mjs +0 -0
  38. /package/{esm2020 → esm2022}/lib/error.mjs +0 -0
  39. /package/{esm2020 → esm2022}/lib/mixins/extract-control-from-parent.mixin.mjs +0 -0
  40. /package/{esm2020 → esm2022}/lib/mixins/extract-data-sources.mixin.mjs +0 -0
  41. /package/{esm2020 → esm2022}/lib/mixins/extract-form-definition.mixin.mjs +0 -0
  42. /package/{esm2020 → esm2022}/rxap-form-system.mjs +0 -0
@@ -11,9 +11,9 @@ import { Mixin } from '@rxap/mixin';
11
11
  import { getMetadata, setMetadataMapMap, setMetadataMap, setMetadata } from '@rxap/utilities/reflect-metadata';
12
12
  import { map, startWith, distinctUntilChanged, shareReplay, tap, catchError, throttleTime, switchMap } from 'rxjs/operators';
13
13
  import { Subscription, of, EMPTY } from 'rxjs';
14
- import * as i3 from '@angular/material/form-field';
15
- import { MAT_FORM_FIELD } from '@angular/material/form-field';
16
- import '@angular/material/autocomplete';
14
+ import * as i3 from '@angular/material/legacy-form-field';
15
+ import { MAT_LEGACY_FORM_FIELD } from '@angular/material/legacy-form-field';
16
+ import '@angular/material/legacy-autocomplete';
17
17
 
18
18
  class RxapFormSystemError extends RxapError {
19
19
  constructor(message, code, className) {
@@ -137,9 +137,9 @@ let FormSystemControlDirective = class FormSystemControlDirective {
137
137
  }
138
138
  return map.get(this.controlId);
139
139
  }
140
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemControlDirective, deps: [{ token: ControlContainer }, { token: ComponentFactoryResolver }, { token: ViewContainerRef }, { token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
141
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSystemControlDirective, selector: "[rxapFormSystemControl]", inputs: { controlId: "controlId" }, ngImport: i0 }); }
140
142
  };
141
- FormSystemControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemControlDirective, deps: [{ token: ControlContainer }, { token: ComponentFactoryResolver }, { token: ViewContainerRef }, { token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive });
142
- FormSystemControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormSystemControlDirective, selector: "[rxapFormSystemControl]", inputs: { controlId: "controlId" }, ngImport: i0 });
143
143
  __decorate([
144
144
  Required,
145
145
  __metadata("design:type", String)
@@ -160,7 +160,7 @@ FormSystemControlDirective = __decorate([
160
160
  DataSourceLoader,
161
161
  Injector])
162
162
  ], FormSystemControlDirective);
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemControlDirective, decorators: [{
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemControlDirective, decorators: [{
164
164
  type: Directive,
165
165
  args: [{
166
166
  selector: '[rxapFormSystemControl]'
@@ -185,11 +185,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
185
185
  }], control: [], componentRef: [] } });
186
186
 
187
187
  class FormSystemModule {
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
189
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule, declarations: [FormSystemControlDirective], exports: [FormSystemControlDirective] }); }
190
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule }); }
188
191
  }
189
- FormSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
190
- FormSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: FormSystemModule, declarations: [FormSystemControlDirective], exports: [FormSystemControlDirective] });
191
- FormSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemModule });
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemModule, decorators: [{
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule, decorators: [{
193
193
  type: NgModule,
194
194
  args: [{
195
195
  declarations: [FormSystemControlDirective],
@@ -214,10 +214,10 @@ class ControlDataSource extends BaseDataSource {
214
214
  }
215
215
  this._data$ = this.control.valueChanges.pipe(startWith(this.control.value), distinctUntilChanged((a, b) => equals(a, b)), shareReplay(1));
216
216
  }
217
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlDataSource, deps: [{ token: RXAP_FORM_CONTROL_SOURCE }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
218
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlDataSource }); }
217
219
  }
218
- ControlDataSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlDataSource, deps: [{ token: RXAP_FORM_CONTROL_SOURCE }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
219
- ControlDataSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlDataSource });
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlDataSource, decorators: [{
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlDataSource, decorators: [{
221
221
  type: Injectable
222
222
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
223
223
  type: Inject,
@@ -298,7 +298,7 @@ function UseOptionsDataSource(dataSource, settings) {
298
298
  }
299
299
  let ExtractOptionsDataSourceMixin = class ExtractOptionsDataSourceMixin {
300
300
  extractOptionsDatasource(control) {
301
- control ?? (control = this.extractControl());
301
+ control ??= this.extractControl();
302
302
  if (!(control instanceof RxapFormControl)) {
303
303
  throw new Error('Ensure to use a RxapFromControl');
304
304
  }
@@ -475,15 +475,15 @@ let ControlHideShowDirective = class ControlHideShowDirective {
475
475
  reset() {
476
476
  this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
477
477
  }
478
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlHideShowDirective, deps: [{ token: Renderer2 }, { token: ElementRef }, { token: ControlContainer, optional: true }, { token: NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
479
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlHideShowDirective, selector: "[rxapControlHideShow]", inputs: { controlId: ["rxapControlHideShow", "controlId"] }, ngImport: i0 }); }
478
480
  };
479
- ControlHideShowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlHideShowDirective, deps: [{ token: Renderer2 }, { token: ElementRef }, { token: ControlContainer, optional: true }, { token: NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
480
- ControlHideShowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: ControlHideShowDirective, selector: "[rxapControlHideShow]", inputs: { controlId: ["rxapControlHideShow", "controlId"] }, ngImport: i0 });
481
481
  ControlHideShowDirective = __decorate([
482
482
  Mixin(ExtractControlFromParentMixin, ExtractFormDefinitionMixin),
483
483
  __metadata("design:paramtypes", [Renderer2,
484
484
  ElementRef, Object, Object])
485
485
  ], ControlHideShowDirective);
486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlHideShowDirective, decorators: [{
486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlHideShowDirective, decorators: [{
487
487
  type: Directive,
488
488
  args: [{
489
489
  selector: '[rxapControlHideShow]'
@@ -511,11 +511,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
511
511
  args: ['rxapControlHideShow']
512
512
  }] } });
513
513
  class ControlHideShowDirectiveModule {
514
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlHideShowDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
515
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ControlHideShowDirectiveModule, declarations: [ControlHideShowDirective], exports: [ControlHideShowDirective] }); }
516
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlHideShowDirectiveModule }); }
514
517
  }
515
- ControlHideShowDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlHideShowDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
516
- ControlHideShowDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ControlHideShowDirectiveModule, declarations: [ControlHideShowDirective], exports: [ControlHideShowDirective] });
517
- ControlHideShowDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlHideShowDirectiveModule });
518
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ControlHideShowDirectiveModule, decorators: [{
518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlHideShowDirectiveModule, decorators: [{
519
519
  type: NgModule,
520
520
  args: [{
521
521
  declarations: [ControlHideShowDirective],
@@ -548,7 +548,6 @@ let InputSelectOptionsDirective = class InputSelectOptionsDirective {
548
548
  this.isAutocompleteToDisplayTriggered = false;
549
549
  }
550
550
  ngAfterViewInit() {
551
- var _a;
552
551
  this.extractOptionsDatasource();
553
552
  this.viewer = {
554
553
  id: '[rxapInputSelectOptions]' + this.control.controlId,
@@ -562,8 +561,8 @@ let InputSelectOptionsDirective = class InputSelectOptionsDirective {
562
561
  };
563
562
  if (this.matAutocomplete) {
564
563
  this.matAutocomplete.displayWith = this.toDisplay.bind(this);
565
- this.settings ?? (this.settings = {});
566
- (_a = this.settings).filteredOptions ?? (_a.filteredOptions = true);
564
+ this.settings ??= {};
565
+ this.settings.filteredOptions ??= true;
567
566
  }
568
567
  this.loadOptions();
569
568
  }
@@ -625,9 +624,9 @@ let InputSelectOptionsDirective = class InputSelectOptionsDirective {
625
624
  }
626
625
  this.cdr.detectChanges();
627
626
  }
627
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputSelectOptionsDirective, deps: [{ token: TemplateRef }, { token: DataSourceLoader }, { token: ViewContainerRef }, { token: INJECTOR }, { token: ChangeDetectorRef }, { token: NgControl, optional: true }, { token: MAT_LEGACY_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
628
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: InputSelectOptionsDirective, selector: "[rxapInputSelectOptions]", inputs: { viewer: ["rxapInputSelectOptionsViewer", "viewer"], metadata: ["rxapInputSelectOptionsMetadata", "metadata"], matAutocomplete: ["rxapInputSelectOptionsMatAutocomplete", "matAutocomplete"] }, ngImport: i0 }); }
628
629
  };
629
- InputSelectOptionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: InputSelectOptionsDirective, deps: [{ token: TemplateRef }, { token: DataSourceLoader }, { token: ViewContainerRef }, { token: INJECTOR }, { token: ChangeDetectorRef }, { token: NgControl, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
630
- InputSelectOptionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: InputSelectOptionsDirective, selector: "[rxapInputSelectOptions]", inputs: { viewer: ["rxapInputSelectOptionsViewer", "viewer"], metadata: ["rxapInputSelectOptionsMetadata", "metadata"], matAutocomplete: ["rxapInputSelectOptionsMatAutocomplete", "matAutocomplete"] }, ngImport: i0 });
631
630
  __decorate([
632
631
  Required,
633
632
  __metadata("design:type", RxapFormControl)
@@ -644,7 +643,7 @@ InputSelectOptionsDirective = __decorate([
644
643
  Injector,
645
644
  ChangeDetectorRef, Object, Object])
646
645
  ], InputSelectOptionsDirective);
647
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: InputSelectOptionsDirective, decorators: [{
646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputSelectOptionsDirective, decorators: [{
648
647
  type: Directive,
649
648
  args: [{
650
649
  selector: '[rxapInputSelectOptions]'
@@ -669,11 +668,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
669
668
  }, {
670
669
  type: Inject,
671
670
  args: [NgControl]
672
- }] }, { type: i3.MatFormField, decorators: [{
671
+ }] }, { type: i3.MatLegacyFormField, decorators: [{
673
672
  type: Optional
674
673
  }, {
675
674
  type: Inject,
676
- args: [MAT_FORM_FIELD]
675
+ args: [MAT_LEGACY_FORM_FIELD]
677
676
  }] }]; }, propDecorators: { viewer: [{
678
677
  type: Input,
679
678
  args: ['rxapInputSelectOptionsViewer']
@@ -685,11 +684,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
685
684
  args: ['rxapInputSelectOptionsMatAutocomplete']
686
685
  }], control: [], dataSource: [] } });
687
686
  class InputSelectOptionsDirectiveModule {
687
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputSelectOptionsDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
688
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: InputSelectOptionsDirectiveModule, declarations: [InputSelectOptionsDirective], exports: [InputSelectOptionsDirective] }); }
689
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputSelectOptionsDirectiveModule }); }
688
690
  }
689
- InputSelectOptionsDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: InputSelectOptionsDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
690
- InputSelectOptionsDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: InputSelectOptionsDirectiveModule, declarations: [InputSelectOptionsDirective], exports: [InputSelectOptionsDirective] });
691
- InputSelectOptionsDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: InputSelectOptionsDirectiveModule });
692
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: InputSelectOptionsDirectiveModule, decorators: [{
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputSelectOptionsDirectiveModule, decorators: [{
693
692
  type: NgModule,
694
693
  args: [{
695
694
  declarations: [InputSelectOptionsDirective],
@@ -698,13 +697,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
698
697
  }] });
699
698
 
700
699
  class FormSystemDirectivesModule {
700
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
701
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FormSystemDirectivesModule, exports: [InputSelectOptionsDirectiveModule,
702
+ ControlHideShowDirectiveModule] }); }
703
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemDirectivesModule, imports: [InputSelectOptionsDirectiveModule,
704
+ ControlHideShowDirectiveModule] }); }
701
705
  }
702
- FormSystemDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
703
- FormSystemDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: FormSystemDirectivesModule, exports: [InputSelectOptionsDirectiveModule,
704
- ControlHideShowDirectiveModule] });
705
- FormSystemDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemDirectivesModule, imports: [InputSelectOptionsDirectiveModule,
706
- ControlHideShowDirectiveModule] });
707
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSystemDirectivesModule, decorators: [{
706
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemDirectivesModule, decorators: [{
708
707
  type: NgModule,
709
708
  args: [{
710
709
  exports: [
@@ -736,21 +735,21 @@ class IsEqualToDirective {
736
735
  registerOnValidatorChange(fn) {
737
736
  this._onChange = fn;
738
737
  }
738
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsEqualToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
739
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: IsEqualToDirective, selector: "[rxapIsEqualTo]", inputs: { equalTo: ["rxapIsEqualTo", "equalTo"] }, providers: [
740
+ {
741
+ provide: NG_VALIDATORS,
742
+ multi: true,
743
+ useExisting: forwardRef(() => IsEqualToDirective)
744
+ }
745
+ ], ngImport: i0 }); }
739
746
  }
740
- IsEqualToDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsEqualToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
741
- IsEqualToDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: IsEqualToDirective, selector: "[rxapIsEqualTo]", inputs: { equalTo: ["rxapIsEqualTo", "equalTo"] }, providers: [
742
- {
743
- provide: NG_VALIDATORS,
744
- multi: true,
745
- useExisting: forwardRef(() => IsEqualToDirective)
746
- }
747
- ], ngImport: i0 });
748
747
  __decorate([
749
748
  Required,
750
749
  __metadata("design:type", Object),
751
750
  __metadata("design:paramtypes", [Object])
752
751
  ], IsEqualToDirective.prototype, "equalTo", null);
753
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsEqualToDirective, decorators: [{
752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsEqualToDirective, decorators: [{
754
753
  type: Directive,
755
754
  args: [{
756
755
  selector: '[rxapIsEqualTo]',
@@ -767,11 +766,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
767
766
  args: ['rxapIsEqualTo']
768
767
  }] } });
769
768
  class IsEqualToDirectiveModule {
769
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsEqualToDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
770
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: IsEqualToDirectiveModule, declarations: [IsEqualToDirective], exports: [IsEqualToDirective] }); }
771
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsEqualToDirectiveModule }); }
770
772
  }
771
- IsEqualToDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsEqualToDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
772
- IsEqualToDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: IsEqualToDirectiveModule, declarations: [IsEqualToDirective], exports: [IsEqualToDirective] });
773
- IsEqualToDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsEqualToDirectiveModule });
774
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsEqualToDirectiveModule, decorators: [{
773
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsEqualToDirectiveModule, decorators: [{
775
774
  type: NgModule,
776
775
  args: [{
777
776
  declarations: [IsEqualToDirective],
@@ -812,21 +811,21 @@ let IsSelectableValueDirective = IsSelectableValueDirective_1 = class IsSelectab
812
811
  }
813
812
  return null;
814
813
  }
814
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsSelectableValueDirective, deps: [{ token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
815
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: IsSelectableValueDirective, selector: "[rxapIsSelectableValue]", inputs: { viewer: "viewer" }, providers: [
816
+ {
817
+ provide: NG_VALIDATORS,
818
+ multi: true,
819
+ useExisting: forwardRef(() => IsSelectableValueDirective_1)
820
+ }
821
+ ], ngImport: i0 }); }
815
822
  };
816
- IsSelectableValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsSelectableValueDirective, deps: [{ token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive });
817
- IsSelectableValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: IsSelectableValueDirective, selector: "[rxapIsSelectableValue]", inputs: { viewer: "viewer" }, providers: [
818
- {
819
- provide: NG_VALIDATORS,
820
- multi: true,
821
- useExisting: forwardRef(() => IsSelectableValueDirective_1)
822
- }
823
- ], ngImport: i0 });
824
823
  IsSelectableValueDirective = IsSelectableValueDirective_1 = __decorate([
825
824
  Mixin(ExtractOptionsDataSourceMixin),
826
825
  __metadata("design:paramtypes", [DataSourceLoader,
827
826
  Injector])
828
827
  ], IsSelectableValueDirective);
829
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsSelectableValueDirective, decorators: [{
828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsSelectableValueDirective, decorators: [{
830
829
  type: Directive,
831
830
  args: [{
832
831
  selector: '[rxapIsSelectableValue]',
@@ -848,11 +847,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
848
847
  type: Input
849
848
  }] } });
850
849
  class IsSelectableValueDirectiveModule {
850
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsSelectableValueDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
851
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: IsSelectableValueDirectiveModule, declarations: [IsSelectableValueDirective], exports: [IsSelectableValueDirective] }); }
852
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsSelectableValueDirectiveModule }); }
851
853
  }
852
- IsSelectableValueDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsSelectableValueDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
853
- IsSelectableValueDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: IsSelectableValueDirectiveModule, declarations: [IsSelectableValueDirective], exports: [IsSelectableValueDirective] });
854
- IsSelectableValueDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsSelectableValueDirectiveModule });
855
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: IsSelectableValueDirectiveModule, decorators: [{
854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsSelectableValueDirectiveModule, decorators: [{
856
855
  type: NgModule,
857
856
  args: [{
858
857
  declarations: [IsSelectableValueDirective],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-form-system.mjs","sources":["../../../../libs/form-system/src/lib/error.ts","../../../../libs/form-system/src/lib/decorators/metadata-keys.ts","../../../../libs/form-system/src/lib/mixins/extract-data-sources.mixin.ts","../../../../libs/form-system/src/lib/form-system-control.directive.ts","../../../../libs/form-system/src/lib/form-system.module.ts","../../../../libs/form-system/src/lib/control-data-source.ts","../../../../libs/form-system/src/lib/mixins/extract-control-from-parent.mixin.ts","../../../../libs/form-system/src/lib/mixins/extract-form-definition.mixin.ts","../../../../libs/form-system/src/lib/decorators/use-data-source.ts","../../../../libs/form-system/src/lib/mixins/extract-control.mixin.ts","../../../../libs/form-system/src/lib/mixins/extract-options-data-source.mixin.ts","../../../../libs/form-system/src/lib/decorators/use-component.ts","../../../../libs/form-system/src/lib/decorators/use-form-component.ts","../../../../libs/form-system/src/lib/directives/control-hide-show.directive.ts","../../../../libs/form-system/src/lib/directives/input-select-options.directive.ts","../../../../libs/form-system/src/lib/directives/form-directives.module.ts","../../../../libs/form-system/src/lib/validators/is-equal-to.ts","../../../../libs/form-system/src/lib/validators/is-selectable-value.directive.ts","../../../../libs/form-system/src/index.ts","../../../../libs/form-system/src/rxap-form-system.ts"],"sourcesContent":["import { RxapError } from '@rxap/utilities';\n\nexport class RxapFormSystemError extends RxapError {\n\n constructor(message: string, code: string, className?: string) {\n super('@rxap/form-system', message, code, className);\n }\n\n}\n","export enum FormSystemMetadataKeys {\n COMPONENTS = 'rxap/form-system/components',\n DATA_SOURCES = 'rxap/form-system/data-sources',\n COMPONENTS_PROPERTIES = 'rxap/form-system/components-properties',\n FORM_COMPONENT = 'rxap/window-form-system/form-component',\n}\n","import { FormDefinition } from '@rxap/forms';\nimport { RxapFormSystemError } from '../error';\nimport { FormSystemMetadataKeys } from '../decorators/metadata-keys';\nimport { UseDataSourceValue } from '../decorators/use-data-source';\nimport { getMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport class ExtractDataSourcesMixin {\n\n protected extractDataSources(formDefinition: FormDefinition, controlId: string): Map<string, UseDataSourceValue> {\n const map = getMetadata<Map<string, Map<string, UseDataSourceValue>>>(\n FormSystemMetadataKeys.DATA_SOURCES,\n Object.getPrototypeOf(formDefinition)\n );\n\n if (!map) {\n throw new RxapFormSystemError('Could not extract the use data source map from the form definition instance', '');\n }\n\n if (!map.has(controlId)) {\n throw new RxapFormSystemError('A use data source definition does not exists in the form definition metadata', '');\n }\n\n return map.get(controlId)!;\n }\n\n}\n","import {\n Input,\n Inject,\n OnInit,\n ComponentFactoryResolver,\n ViewContainerRef,\n Directive,\n ComponentRef,\n INJECTOR,\n Injector\n} from '@angular/core';\nimport {\n Required,\n Constructor\n} from '@rxap/utilities';\nimport {\n ControlContainer,\n ControlValueAccessor\n} from '@angular/forms';\nimport { RxapFormSystemError } from './error';\nimport {\n RxapFormControl,\n FormDefinition\n} from '@rxap/forms';\nimport { FormSystemMetadataKeys } from './decorators/metadata-keys';\nimport { ControlWithDataSource } from './control-with-data-source';\nimport {\n DataSourceLoader,\n PipeDataSource\n} from '@rxap/data-source';\nimport { Mixin } from '@rxap/mixin';\nimport { ExtractDataSourcesMixin } from './mixins/extract-data-sources.mixin';\nimport { map } from 'rxjs/operators';\nimport { getMetadata } from '@rxap/utilities/reflect-metadata';\n\nexport interface FormSystemControlDirective<T> extends ExtractDataSourcesMixin, ControlValueAccessor, OnInit {}\n\n@Mixin(ExtractDataSourcesMixin)\n@Directive({\n selector: '[rxapFormSystemControl]'\n})\nexport class FormSystemControlDirective<T> implements ControlValueAccessor, OnInit {\n\n /**\n * Defines the form control id\n */\n @Input()\n @Required\n public controlId!: string;\n\n @Required\n protected control!: RxapFormControl;\n\n @Required\n protected componentRef!: ComponentRef<ControlValueAccessor & Partial<ControlWithDataSource>>;\n\n constructor(\n @Inject(ControlContainer)\n private readonly parent: ControlContainer,\n @Inject(ComponentFactoryResolver)\n private readonly cfr: ComponentFactoryResolver,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(DataSourceLoader)\n private readonly dataSourceLoader: DataSourceLoader,\n @Inject(INJECTOR)\n private readonly injector: Injector\n ) {}\n\n public ngOnInit() {\n\n this.control = this.extractControl();\n\n const formDefinition = this.extractFormDefinition();\n\n this.componentRef = this.createComponent(formDefinition);\n\n this.setDataSources(formDefinition, this.componentRef.instance);\n this.setComponentProperties(formDefinition, this.componentRef.instance);\n\n this.viewContainerRef.insert(this.componentRef.hostView);\n\n }\n\n public registerOnChange(fn: (value: (any | null)) => void): void {\n this.componentRef.instance.registerOnChange(fn);\n }\n\n public registerOnTouched(fn: () => void): void {\n this.componentRef.instance.registerOnTouched(fn);\n }\n\n public writeValue(value: any): void {\n this.componentRef.instance.writeValue(value);\n }\n\n public setDisabledState(isDisabled: boolean): void {\n if (this.componentRef.instance.setDisabledState) {\n this.componentRef.instance.setDisabledState(isDisabled);\n }\n }\n\n private setDataSources(formDefinition: FormDefinition, component: Partial<ControlWithDataSource>): void {\n\n if (!component.setDataSource) {\n throw new RxapFormSystemError(\n 'The ControlWithDataSource interface is not implemented for the control component, but the control has defined data sources',\n ''\n );\n }\n\n const useDataSourceValueMap = this.extractDataSources(formDefinition, this.controlId);\n\n for (const [ name, useDataSourceValue ] of useDataSourceValueMap.entries()) {\n\n let dataSource = this.dataSourceLoader.load(useDataSourceValue.dataSource);\n\n const settings = useDataSourceValue.settings;\n\n if (settings?.transformer) {\n dataSource = new PipeDataSource(dataSource, map(settings.transformer));\n }\n\n component.setDataSource(name, dataSource, useDataSourceValue.settings);\n\n }\n\n }\n\n private setComponentProperties(formDefinition: FormDefinition, component: any) {\n const componentProperties = this.extractComponentProperties(formDefinition);\n\n for (const [ key, value ] of Object.entries(componentProperties)) {\n Reflect.set(component, key, value);\n }\n\n }\n\n private createComponent(formDefinition: FormDefinition): ComponentRef<ControlValueAccessor> {\n const component = this.extractComponent(formDefinition);\n const componentFactory = this.cfr.resolveComponentFactory(component);\n return componentFactory.create(this.injector);\n }\n\n private extractControl(): RxapFormControl {\n if (!this.parent.control) {\n throw new RxapFormSystemError('The control property of ControlContainer is not defined', '');\n }\n\n const control = this.parent.control.get(this.controlId);\n\n if (!control) {\n throw new RxapFormSystemError('Could not find the control instance', '');\n }\n\n if (!(control instanceof RxapFormControl)) {\n throw new RxapFormSystemError('The extracted control is not a RxapFormControl', '');\n }\n\n return control;\n }\n\n private extractFormDefinition(): FormDefinition {\n const formDefinition = (this.control as any).rxapFormDefinition;\n\n if (!formDefinition) {\n throw new RxapFormSystemError('Could not find the form definition instance', '');\n }\n\n return formDefinition;\n }\n\n private extractComponent(formDefinition: FormDefinition): Constructor<ControlValueAccessor> {\n const map = getMetadata<Map<string, Constructor<ControlValueAccessor>>>(FormSystemMetadataKeys.COMPONENTS, Object.getPrototypeOf(formDefinition));\n\n if (!map) {\n throw new RxapFormSystemError('Could not extract the use component map from the form definition instance', '');\n }\n\n if (!map.has(this.controlId)) {\n throw new RxapFormSystemError('A use component definition does not exists in the form definition metadata', '');\n }\n\n return map.get(this.controlId)!;\n }\n\n private extractComponentProperties(formDefinition: FormDefinition): Record<string, any> {\n const map = getMetadata<Map<string, Record<string, any>>>(FormSystemMetadataKeys.COMPONENTS_PROPERTIES, Object.getPrototypeOf(formDefinition));\n\n if (!map) {\n throw new RxapFormSystemError('Could not extract the use component properties map from the form definition instance', '');\n }\n\n if (!map.has(this.controlId)) {\n throw new RxapFormSystemError('A use component definition does not exists in the form definition metadata', '');\n }\n\n return map.get(this.controlId)!;\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { FormSystemControlDirective } from './form-system-control.directive';\n\n\n@NgModule({\n declarations: [ FormSystemControlDirective ],\n exports: [ FormSystemControlDirective ],\n imports: []\n})\nexport class FormSystemModule {}\n","import {\n BaseDataSource,\n BaseDataSourceMetadata,\n RXAP_DATA_SOURCE_METADATA,\n} from '@rxap/data-source';\nimport {\n Injectable,\n Inject,\n InjectionToken,\n Optional,\n isDevMode\n} from '@angular/core';\nimport { AbstractControl } from '@rxap/forms';\nimport { startWith, shareReplay, distinctUntilChanged } from 'rxjs/operators';\nimport { equals } from '@rxap/utilities';\n\nexport const RXAP_FORM_CONTROL_SOURCE = new InjectionToken(\n 'rxap/forms/data-source'\n);\n\n@Injectable()\nexport class ControlDataSource extends BaseDataSource {\n constructor(\n @Inject(RXAP_FORM_CONTROL_SOURCE)\n private readonly control: AbstractControl,\n @Optional()\n @Inject(RXAP_DATA_SOURCE_METADATA)\n metadata: BaseDataSourceMetadata | null = null\n ) {\n super(metadata);\n }\n\n public init() {\n if (this._initialised) {\n return;\n }\n super.init();\n\n if (isDevMode()) {\n console.log(this.control);\n }\n\n this._data$ = this.control.valueChanges.pipe(\n startWith(this.control.value),\n distinctUntilChanged((a, b) => equals(a, b)),\n shareReplay(1)\n );\n }\n}\n\nexport function controlDataSource(control: AbstractControl): ControlDataSource {\n // TODO : remove as any (wait for @rxap/forms update)\n return new ControlDataSource(control, { id: (control as any).controlId });\n}\n","import { ControlContainer } from '@angular/forms';\nimport {\n RxapFormControl,\n AbstractControl,\n RxapFormGroup,\n RxapFormArray,\n} from '@rxap/forms';\nimport { RxapFormSystemError } from '../error';\n\nexport class ExtractControlFromParentMixin {\n\n protected extractControlFromParent(parent: ControlContainer, controlPath: string): AbstractControl {\n if (!controlPath) {\n throw new RxapFormSystemError('The control path is empty', '');\n }\n\n if (!parent.control) {\n throw new RxapFormSystemError('The control property of ControlContainer is not defined', '');\n }\n\n const control = parent.control.get(controlPath);\n\n if (!control) {\n throw new RxapFormSystemError('Could not find the control instance', '');\n }\n\n if (!(control instanceof RxapFormControl) && !(control instanceof RxapFormGroup) && !(control instanceof RxapFormArray)) {\n throw new RxapFormSystemError('The extracted control is not a RxapFormControl', '');\n }\n\n return control;\n }\n\n}\n","import {\n FormDefinition,\n AbstractControl,\n} from '@rxap/forms';\nimport { RxapFormSystemError } from '../error';\n\nexport class ExtractFormDefinitionMixin {\n\n // TODO : change to AbstractControl from @rxap/forms\n protected extractFormDefinition(control: AbstractControl): FormDefinition {\n const formDefinition = control.rxapFormDefinition;\n\n if (!formDefinition) {\n throw new RxapFormSystemError('Could not find the form definition instance', '');\n }\n\n return formDefinition;\n }\n\n}\n","import { BaseDataSource } from '@rxap/data-source';\nimport { FormSystemMetadataKeys } from './metadata-keys';\nimport { IdOrInstanceOrToken } from '@rxap/definition';\nimport { setMetadataMapMap } from '@rxap/utilities/reflect-metadata';\n\nexport interface UseDataSourceSettings<Source = any, Target = Source> {\n transformer?: (source: Source) => Target;\n}\n\nexport interface UseDataSourceValue<Source = any, Target = Source> {\n dataSource: IdOrInstanceOrToken<BaseDataSource>,\n settings?: UseDataSourceSettings<Source, Target>,\n\n /**\n * The last value of the data source\n */\n lastValue?: Target,\n}\n\nexport function UseDataSource<Data>(dataSource: IdOrInstanceOrToken<BaseDataSource<Data>>, name: string, settings?: UseDataSourceSettings) {\n return function(target: any, propertyKey: string) {\n const value: UseDataSourceValue<Data> = { dataSource, settings };\n setMetadataMapMap(propertyKey, name, value, FormSystemMetadataKeys.DATA_SOURCES, target);\n };\n}\n","import {\n NgControl,\n AbstractControlDirective\n} from '@angular/forms';\nimport {\n MatLegacyFormField as MatFormField\n} from '@angular/material/legacy-form-field';\nimport { RxapFormControl } from '@rxap/forms';\n\nexport class ExtractControlMixin {\n\n protected ngControl!: NgControl | null;\n\n protected readonly matFormField!: MatFormField | null;\n\n protected control?: RxapFormControl;\n\n protected extractControl(ngControl: AbstractControlDirective | null = this.ngControl ?? this.matFormField?._control?.ngControl ?? null): RxapFormControl {\n\n if (!ngControl) {\n throw new Error('The ngControl is not defined!');\n }\n\n if (!(ngControl instanceof NgControl)) {\n throw new Error('The AbstractControlDirective is not a NgControl!');\n }\n\n this.ngControl = ngControl;\n\n const control = this.ngControl.control;\n\n if (!(control instanceof RxapFormControl)) {\n throw new Error('Control is not a RxapFormControl!');\n }\n\n return this.control = control;\n }\n\n}\n","import { IdOrInstanceOrToken } from '@rxap/definition';\nimport {\n BaseDataSource,\n DataSourceLoader,\n BaseDataSourceMetadata,\n BaseDataSourceViewer,\n PipeDataSource\n} from '@rxap/data-source';\nimport { ControlOptions } from '@rxap/utilities';\nimport {\n UseDataSource,\n UseDataSourceSettings,\n UseDataSourceValue\n} from '../decorators/use-data-source';\nimport { InputSelectOptionsSettings } from '../directives/input-select-options.directive';\nimport { Mixin } from '@rxap/mixin';\nimport { ExtractFormDefinitionMixin } from './extract-form-definition.mixin';\nimport { ExtractDataSourcesMixin } from './extract-data-sources.mixin';\nimport { ExtractControlMixin } from './extract-control.mixin';\nimport {\n Injector,\n isDevMode\n} from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { RxapFormControl } from '@rxap/forms';\nimport {\n map,\n tap\n} from 'rxjs/operators';\n\nexport interface UseOptionsDataSourceSettings<Source> extends UseDataSourceSettings<Source, ControlOptions | Record<string, any>> {\n\n}\n\nexport const DATA_SOURCE_NAME = 'options';\n\nexport function ComposeOptionsTransformers(...fnc: Array<(value: any) => any>): (value: any) => any {\n return base => fnc.reduce((source, transform) => transform(source), base);\n}\n\n// tslint:disable-next-line:max-line-length\nexport function UseOptionsDataSource<Source>(\n dataSource: IdOrInstanceOrToken<BaseDataSource<Source>>,\n settings?: InputSelectOptionsSettings<Source>\n): (\n target: any,\n propertyKey: string\n) => any;\nexport function UseOptionsDataSource(\n dataSource: IdOrInstanceOrToken<BaseDataSource>,\n settings?: InputSelectOptionsSettings<ControlOptions>\n) {\n return function(target: any, propertyKey: string) {\n UseDataSource(dataSource, DATA_SOURCE_NAME, settings)(target, propertyKey);\n };\n}\n\nexport interface ExtractOptionsDataSourceMixin extends ExtractFormDefinitionMixin, ExtractDataSourcesMixin, ExtractControlMixin {}\n\n@Mixin(ExtractControlMixin, ExtractFormDefinitionMixin, ExtractDataSourcesMixin)\nexport class ExtractOptionsDataSourceMixin {\n\n protected settings?: UseOptionsDataSourceSettings<any>;\n\n protected readonly dataSourceLoader!: DataSourceLoader;\n\n public metadata?: BaseDataSourceMetadata;\n\n public viewer?: BaseDataSourceViewer;\n\n protected dataSource?: BaseDataSource<ControlOptions | Record<string, any>>;\n\n protected readonly injector!: Injector;\n\n protected useDataSourceValue?: UseDataSourceValue<ControlOptions | Record<string, any>>;\n\n protected extractOptionsDatasource(control?: AbstractControl): BaseDataSource<ControlOptions | Record<string, any>> {\n control ??= this.extractControl();\n\n if (!(control instanceof RxapFormControl)) {\n throw new Error('Ensure to use a RxapFromControl');\n }\n\n const formDefinition = this.extractFormDefinition(control);\n\n const useDataSourceValueMap = this.extractDataSources(formDefinition, control.controlId);\n\n if (!useDataSourceValueMap.has('options')) {\n throw new Error(`The data source with the name 'options' is not defined`);\n }\n\n const useDataSourceValue = this.useDataSourceValue = useDataSourceValueMap.get('options')!;\n\n this.settings = this.useDataSourceValue.settings ?? {};\n\n let dataSource: BaseDataSource;\n\n try {\n\n dataSource = this.dataSourceLoader.load(\n useDataSourceValue.dataSource,\n this.metadata,\n this.injector\n );\n\n } catch (e: any) {\n\n if (e.name && e.name === 'NullInjectorError') {\n if (isDevMode()) {\n console.error('Cloud not inject the options data source', this.useDataSourceValue);\n }\n throw new Error('Cloud not inject the options data source:\\n' + e.message);\n }\n\n throw e;\n\n }\n\n if (this.settings?.transformer) {\n dataSource = new PipeDataSource(dataSource,\n map(this.settings.transformer),\n tap(options => useDataSourceValue.lastValue = options)\n );\n } else {\n dataSource = new PipeDataSource(dataSource,\n tap(options => useDataSourceValue.lastValue = options)\n );\n }\n\n return this.dataSource = dataSource;\n }\n\n}\n","import { Constructor } from '@rxap/utilities';\nimport { FormSystemMetadataKeys } from './metadata-keys';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { setMetadataMap } from '@rxap/utilities/reflect-metadata';\n\nexport function UseComponent<Component extends ControlValueAccessor>(\n component: Constructor<Component>,\n setProperties: Partial<Record<keyof Component, any>> = {}\n) {\n return function(target: any, propertyKey: string) {\n setMetadataMap(propertyKey, component, FormSystemMetadataKeys.COMPONENTS, target);\n setMetadataMap(propertyKey, setProperties, FormSystemMetadataKeys.COMPONENTS_PROPERTIES, target);\n };\n}\n","import { Constructor } from '@rxap/utilities';\nimport { FormSystemMetadataKeys } from './metadata-keys';\nimport { setMetadata } from '@rxap/utilities/reflect-metadata';\n\n/**\n * Links a component with a form definition\n *\n * @param component\n */\nexport function UseFormComponent(component: Constructor) {\n return function (target: any) {\n setMetadata(FormSystemMetadataKeys.FORM_COMPONENT, component, target);\n };\n}\n","import {\n Directive,\n Input,\n Inject,\n OnInit,\n Renderer2,\n ElementRef,\n OnDestroy,\n NgModule,\n Optional,\n Self\n} from '@angular/core';\nimport {\n FormDefinition,\n AbstractControl,\n RxapFormControl\n} from '@rxap/forms';\nimport {\n ControlContainer,\n NgControl\n} from '@angular/forms';\nimport { Mixin } from '@rxap/mixin';\nimport {\n Subscription,\n of\n} from 'rxjs';\nimport {\n tap,\n startWith,\n catchError\n} from 'rxjs/operators';\nimport { ExtractControlFromParentMixin } from '../mixins/extract-control-from-parent.mixin';\nimport { ExtractFormDefinitionMixin } from '../mixins/extract-form-definition.mixin';\nimport {\n setMetadataMap,\n getMetadata\n} from '@rxap/utilities/reflect-metadata';\n\nexport const RXAP_FORM_SYSTEM_SHOW_METADATA = 'rxap/form-system/show-function';\nexport const RXAP_FORM_SYSTEM_HIDE_METADATA = 'rxap/form-system/hide-function';\nexport const RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS = 'rxap/form-system/hide-show-options';\n\nexport type ControlHideShowFunction<T = any> = (this: T, control: AbstractControl) => boolean | null;\n\nexport interface ControlHideShowOptions {\n /**\n * Weather the hide/showFunction should be called on root group changes\n */\n rootChange?: boolean;\n}\n\nexport function UseHideFunction(hideFunction: ControlHideShowFunction, options: ControlHideShowOptions = {}) {\n return function(target: any, propertyKey: string) {\n setMetadataMap(propertyKey, hideFunction, RXAP_FORM_SYSTEM_HIDE_METADATA, target);\n if (Object.keys(options).length) {\n setMetadataMap(propertyKey, options, RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, target);\n }\n };\n}\n\nexport function UseShowFunction(showFunction: ControlHideShowFunction, options: ControlHideShowOptions = {}) {\n return function(target: any, propertyKey: string) {\n setMetadataMap(propertyKey, showFunction, RXAP_FORM_SYSTEM_SHOW_METADATA, target);\n if (Object.keys(options).length) {\n setMetadataMap(propertyKey, options, RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, target);\n }\n };\n}\n\nexport interface ControlHideShowDirective extends ExtractControlFromParentMixin,\n ExtractFormDefinitionMixin {}\n\n@Mixin(ExtractControlFromParentMixin, ExtractFormDefinitionMixin)\n@Directive({\n selector: '[rxapControlHideShow]'\n})\nexport class ControlHideShowDirective implements OnInit, OnDestroy {\n\n @Input('rxapControlHideShow')\n public controlId?: string;\n\n public control!: RxapFormControl;\n\n private subscription = new Subscription();\n\n constructor(\n @Inject(Renderer2)\n private readonly renderer: Renderer2,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef,\n @Optional()\n @Inject(ControlContainer)\n private readonly parent: ControlContainer | null,\n @Self()\n @Optional()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null\n ) { }\n\n public ngOnInit() {\n\n if (!this.ngControl && !this.parent) {\n throw new Error('Easier the ControlContainer or NgControl must be injectable');\n }\n\n if (!this.ngControl && !this.controlId) {\n throw new Error('If the NgControl is not injectable then the control id must be defined!');\n }\n\n const control = this.ngControl?.control ?? this.extractControlFromParent(this.parent!, this.controlId!);\n\n if (!(control instanceof RxapFormControl)) {\n throw new Error('The control is not an instance of RxapFormControl');\n }\n\n this.control = control;\n\n const formDefinition = this.extractFormDefinition(control);\n\n const hideFunction = this.extractHideFunction(formDefinition);\n\n const showFunction = this.extractShowFunction(formDefinition);\n\n const options = this.extractOptions(formDefinition);\n\n let changeTrigger = formDefinition.rxapFormGroup.valueChanges;\n\n if (options.rootChange) {\n changeTrigger = formDefinition.rxapFormGroup.root.valueChanges;\n }\n\n changeTrigger = changeTrigger.pipe(startWith(null));\n\n if (showFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the showFunction throws an error\n const show = showFunction.call(formDefinition, control);\n\n switch (show) {\n\n case true:\n this.show();\n break;\n\n case false:\n this.hide();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n }),\n ).subscribe(),\n );\n }\n\n if (hideFunction) {\n this.subscription.add(\n changeTrigger.pipe(\n tap(() => {\n // TODO : resubscribe if the hideFunction throws an error\n const hide = hideFunction.call(formDefinition, control);\n\n switch (hide) {\n\n case true:\n this.hide();\n break;\n\n case false:\n this.show();\n break;\n\n case null:\n this.reset();\n break;\n\n }\n\n }),\n catchError(err => {\n console.error(err);\n return of(null);\n }),\n ).subscribe(),\n );\n }\n\n }\n\n public ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n private extractOptions(formDefinition: FormDefinition): ControlHideShowOptions {\n const map = getMetadata<Map<string, ControlHideShowOptions>>(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(this.control.controlId)) {\n return {};\n }\n\n return map.get(this.control.controlId)!;\n\n }\n\n private extractHideFunction(formDefinition: FormDefinition): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(this.control.controlId)) {\n return null;\n }\n\n return map.get(this.control.controlId)!;\n\n }\n\n private extractShowFunction(formDefinition: FormDefinition): ControlHideShowFunction | null {\n const map = getMetadata<Map<string, ControlHideShowFunction>>(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;\n\n if (!map || !map.has(this.control.controlId)) {\n return null;\n }\n\n return map.get(this.control.controlId)!;\n\n }\n\n private hide() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');\n }\n\n private show() {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'block');\n }\n\n private reset() {\n this.renderer.removeStyle(this.elementRef.nativeElement, 'display');\n }\n\n\n}\n\n@NgModule({\n declarations: [ ControlHideShowDirective ],\n exports: [ ControlHideShowDirective ]\n})\nexport class ControlHideShowDirectiveModule {}\n","import {\n Directive,\n TemplateRef,\n Inject,\n ViewContainerRef,\n Input,\n OnDestroy,\n Injector,\n INJECTOR,\n Optional,\n ChangeDetectorRef,\n NgModule,\n isDevMode,\n AfterViewInit\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport {\n DataSourceLoader,\n BaseDataSource,\n BaseDataSourceViewer,\n BaseDataSourceMetadata,\n PipeDataSource\n} from '@rxap/data-source';\nimport { RxapFormControl } from '@rxap/forms';\nimport {\n ControlOptions,\n ControlOption,\n Required,\n equals\n} from '@rxap/utilities';\nimport { Mixin } from '@rxap/mixin';\nimport {\n Subscription,\n of,\n EMPTY\n} from 'rxjs';\nimport {\n tap,\n map,\n switchMap,\n distinctUntilChanged,\n throttleTime\n} from 'rxjs/operators';\nimport { UseDataSource } from '../decorators/use-data-source';\nimport { IdOrInstanceOrToken } from '@rxap/definition';\nimport {\n MAT_LEGACY_FORM_FIELD as MAT_FORM_FIELD,\n MatLegacyFormField as MatFormField\n} from '@angular/material/legacy-form-field';\nimport { MatLegacyAutocomplete as MatAutocomplete } from '@angular/material/legacy-autocomplete';\nimport {\n ExtractOptionsDataSourceMixin,\n UseOptionsDataSourceSettings\n} from '../mixins/extract-options-data-source.mixin';\n\nexport interface InputSelectOptionsTemplateContext {\n $implicit: ControlOption;\n}\n\nexport interface InputSelectOptionsSettings<Source> extends UseOptionsDataSourceSettings<Source> {\n /**\n * true - the selected value is not send to the data source with the viewChange event.\n * Instead an empty object {} is send to trigger a data source refresh.\n *\n * The OpenApiDataSource expects a Paramters Object in the viewChange event. This\n * can couse issue if the select value object as a property that is also a parameter for\n * the open-api operation. For instaed the select object has the property company and\n * the open-api operation has a query parameter company. Then the BuildOptions method\n * in the OpenApiDataSource would create a HttpParams object with the param company and the\n * value from the select object property company. This will result in unpredictable behaviors.\n */\n ignoreSelectedValue?: boolean;\n\n /**\n * true - the options list is filtered by the current control value if the\n * control value is of type string. Then the display value of each option is\n * compared to the control value. If the display value of an option includes\n * the control value, then the option is used. This comprehensions it not type\n * sensitive\n */\n filteredOptions?: boolean;\n\n /**\n * true - the options list is only loaded once and not refreshed on each value change\n */\n loadOnce?: boolean;\n}\n\nexport interface InputSelectOptionsDirective extends OnDestroy, AfterViewInit,\n ExtractOptionsDataSourceMixin {}\n\n@Mixin(ExtractOptionsDataSourceMixin)\n@Directive({\n selector: '[rxapInputSelectOptions]'\n})\nexport class InputSelectOptionsDirective implements OnDestroy, AfterViewInit {\n\n @Input('rxapInputSelectOptionsViewer')\n public viewer: BaseDataSourceViewer = { id: '[rxapInputSelectOptions]' };\n\n @Input('rxapInputSelectOptionsMetadata')\n public metadata?: BaseDataSourceMetadata;\n\n @Input('rxapInputSelectOptionsMatAutocomplete')\n public matAutocomplete?: MatAutocomplete;\n\n protected readonly subscription = new Subscription();\n\n @Required\n protected control!: RxapFormControl;\n\n @Required\n protected dataSource!: BaseDataSource<ControlOptions | Record<string, any>>;\n\n protected options: ControlOptions | Record<string, any> | null = null;\n\n protected settings?: InputSelectOptionsSettings<any>;\n\n /**\n * This flag is used to prevent the setValue is called for each refresh\n * of the options list. This is needed because the setValue method will\n * trigger a new refresh of the options list. This results in an endless\n * call stack. This flag is set to true if the setValue method is called\n * once.\n */\n private isAutocompleteToDisplayTriggered = false;\n\n constructor(\n @Inject(TemplateRef)\n protected readonly template: TemplateRef<InputSelectOptionsTemplateContext>,\n @Inject(DataSourceLoader)\n protected readonly dataSourceLoader: DataSourceLoader,\n @Inject(ViewContainerRef)\n protected readonly viewContainerRef: ViewContainerRef,\n @Inject(INJECTOR)\n protected readonly injector: Injector,\n @Inject(ChangeDetectorRef)\n protected readonly cdr: ChangeDetectorRef,\n // The ngControl could be unknown on construction\n // bc it is available after the content is init\n @Optional()\n @Inject(NgControl)\n protected ngControl: NgControl | null = null,\n @Optional()\n @Inject(MAT_FORM_FIELD)\n protected matFormField: MatFormField | null = null,\n ) { }\n\n public ngAfterViewInit() {\n this.extractOptionsDatasource();\n this.viewer = {\n id: '[rxapInputSelectOptions]' + this.control.controlId,\n viewChange: this.settings?.loadOnce ? EMPTY : this.control.value$.pipe(\n throttleTime(1000),\n distinctUntilChanged((a, b) => equals(a, b)),\n map(value => {\n if (this.settings?.ignoreSelectedValue) {\n return {}\n }\n return value;\n })\n ),\n control: this.control,\n }\n if (this.matAutocomplete) {\n this.matAutocomplete.displayWith = this.toDisplay.bind(this);\n this.settings ??= {};\n this.settings.filteredOptions ??= true;\n }\n this.loadOptions();\n }\n\n public toDisplay(value: any): string {\n if (!value) {\n return '';\n }\n return this.options?.find((option: any) => option.value === value)?.display ?? (isDevMode() ? 'to display error' : '');\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n private loadOptions(dataSource: BaseDataSource<ControlOptions | Record<string, any>> = this.dataSource) {\n this.subscription.add(dataSource.connect(this.viewer).pipe(\n switchMap(options => {\n if (this.settings?.filteredOptions) {\n return this.control.value$.pipe(\n map(controlValue => {\n if (typeof controlValue === 'string' && controlValue) {\n controlValue = controlValue.toLowerCase();\n if (Array.isArray(options)) {\n return options.filter(option => option.display.toLowerCase().includes(controlValue))\n } else {\n return Object.entries(options)\n .filter(([value, display]) => typeof display === 'string' && display.toLowerCase().includes(controlValue))\n .map(([value, display]) => ({ value, display }))\n }\n }\n return options;\n })\n );\n }\n return of(options);\n }),\n tap(options => this.renderTemplate(this.options = options)),\n tap(() => {\n if (this.matAutocomplete && !this.isAutocompleteToDisplayTriggered) {\n this.isAutocompleteToDisplayTriggered = true;\n // trigger a change detection after the options are rendered\n // this is needed to trigger the mat-autocomplete options to display function\n this.ngControl?.control?.setValue(this.ngControl?.control?.value);\n }\n })\n ).subscribe());\n }\n\n protected renderTemplate(options: ControlOptions | Record<string, any> | null = this.options) {\n this.viewContainerRef.clear();\n\n if (options) {\n if (!Array.isArray(options)) {\n\n for (const [ value, display ] of Object.entries(options)) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: { value, display } });\n }\n\n } else {\n\n for (const option of options) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: option });\n }\n\n }\n } else {\n if (isDevMode()) {\n console.warn(`The options for the control ${this.control.fullControlPath} is empty/null/undefined!`);\n }\n }\n\n this.cdr.detectChanges();\n }\n\n}\n\n@NgModule({\n declarations: [ InputSelectOptionsDirective ],\n exports: [ InputSelectOptionsDirective ]\n})\nexport class InputSelectOptionsDirectiveModule {}\n","import { NgModule } from '@angular/core';\nimport { InputSelectOptionsDirectiveModule } from './input-select-options.directive';\nimport { ControlHideShowDirectiveModule } from './control-hide-show.directive';\n\n@NgModule({\n exports: [\n InputSelectOptionsDirectiveModule,\n ControlHideShowDirectiveModule\n ]\n})\nexport class FormSystemDirectivesModule {}\n","import {\n Directive,\n forwardRef,\n Input,\n NgModule\n} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator\n} from '@angular/forms';\nimport { Required } from '@rxap/utilities';\n\n@Directive({\n selector: '[rxapIsEqualTo]',\n providers: [\n {\n provide: NG_VALIDATORS,\n multi: true,\n useExisting: forwardRef(() => IsEqualToDirective)\n }\n ]\n})\nexport class IsEqualToDirective implements Validator {\n\n @Input('rxapIsEqualTo')\n @Required\n public set equalTo(value: any) {\n this._equalTo = value;\n if (this._onChange) {\n this._onChange();\n }\n }\n\n private _onChange!: () => void;\n\n\n private _equalTo!: any;\n\n public validate(control: AbstractControl): ValidationErrors | null {\n if (this._equalTo === null || this._equalTo === control.value) {\n return null;\n }\n return { isEqualTo: { value: this._equalTo, actualValue: control.value } };\n }\n\n /**\n * @description\n * Registers a callback function to call when the validator inputs change.\n *\n * @param fn The callback function\n */\n public registerOnValidatorChange(fn: () => void): void {\n this._onChange = fn;\n }\n\n}\n\n@NgModule({\n declarations: [ IsEqualToDirective ],\n exports: [ IsEqualToDirective ]\n})\nexport class IsEqualToDirectiveModule {\n}\n","import { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\nimport { Directive, forwardRef, Inject, INJECTOR, Injector, Input, isDevMode, NgModule } from '@angular/core';\nimport { BaseDataSourceViewer, DataSourceLoader } from '@rxap/data-source';\nimport { Mixin } from '@rxap/mixin';\nimport { ControlOptions } from '@rxap/utilities';\nimport { ExtractOptionsDataSourceMixin } from '../mixins/extract-options-data-source.mixin';\n\nexport interface IsSelectableValueDirective extends ExtractOptionsDataSourceMixin {}\n\n@Mixin(ExtractOptionsDataSourceMixin)\n@Directive({\n selector: '[rxapIsSelectableValue]',\n providers: [\n {\n provide: NG_VALIDATORS,\n multi: true,\n useExisting: forwardRef(() => IsSelectableValueDirective)\n }\n ]\n})\nexport class IsSelectableValueDirective implements Validator {\n\n @Input()\n public viewer: BaseDataSourceViewer = { id: '[rxapIsSelectableValue]' };\n\n constructor(\n @Inject(DataSourceLoader)\n protected readonly dataSourceLoader: DataSourceLoader,\n @Inject(INJECTOR)\n protected readonly injector: Injector,\n ) { }\n\n public validate(control: AbstractControl): ValidationErrors | null {\n if (control.value) {\n this.extractOptionsDatasource(control);\n const data = this.useDataSourceValue?.lastValue;\n if (data) {\n let options: ControlOptions;\n if (Array.isArray(data)) {\n options = data;\n } else {\n options = Object.entries(data).map(([ value, display ]) => ({value, display}));\n }\n if (!options.some(option => option.value === control.value)) {\n return {\n isSelectableValue: {\n expected: 'Value should be from the list of provided options',\n }\n }\n }\n } else if (isDevMode()) {\n console.warn('The last value from the OptionsDataSource is empty', this);\n }\n }\n return null;\n }\n\n}\n\n@NgModule({\n declarations: [IsSelectableValueDirective],\n exports: [IsSelectableValueDirective]\n})\nexport class IsSelectableValueDirectiveModule {}\n","export * from './lib/form-system.module';\n\nexport * from './lib/error';\nexport * from './lib/control-data-source';\n\n// region mixin\n\nexport * from './lib/mixins/extract-data-sources.mixin';\nexport * from './lib/mixins/extract-control-from-parent.mixin';\nexport * from './lib/mixins/extract-form-definition.mixin';\nexport * from './lib/mixins/extract-options-data-source.mixin';\nexport * from './lib/mixins/extract-control.mixin';\n\n// endregion\n\n// region components\n\nexport * from './lib/form-system-control.directive';\n\n\n// endregion\n\n// region decorators\n\nexport * from './lib/decorators/metadata-keys';\nexport * from './lib/decorators/use-component';\nexport * from './lib/decorators/use-data-source';\nexport * from './lib/decorators/use-form-component';\n\n// endregion\n\n// region directives\n\nexport * from './lib/directives/control-hide-show.directive';\nexport * from './lib/directives/form-directives.module';\nexport * from './lib/directives/input-select-options.directive';\n\n// endregion\n\n// region validators\n\nexport * from './lib/validators/is-equal-to';\nexport * from './lib/validators/is-selectable-value.directive';\n\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["MAT_FORM_FIELD"],"mappings":";;;;;;;;;;;;;;;;;AAEM,MAAO,mBAAoB,SAAQ,SAAS,CAAA;AAEhD,IAAA,WAAA,CAAY,OAAe,EAAE,IAAY,EAAE,SAAkB,EAAA;QAC3D,KAAK,CAAC,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;KACtD;AAEF;;ICRW,uBAKX;AALD,CAAA,UAAY,sBAAsB,EAAA;AAChC,IAAA,sBAAA,CAAA,YAAA,CAAA,GAAA,6BAAqD,CAAA;AACrD,IAAA,sBAAA,CAAA,cAAA,CAAA,GAAA,+BAAuD,CAAA;AACvD,IAAA,sBAAA,CAAA,uBAAA,CAAA,GAAA,wCAAgE,CAAA;AAChE,I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,0BAA0B,CAAC;AACtC,iBAAA,CAAA;;;AClBD;;AC5CA;;AAEG;;;;"}
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare const RXAP_FORM_SYSTEM_SHOW_METADATA = "rxap/form-system/show-function";
8
8
  export declare const RXAP_FORM_SYSTEM_HIDE_METADATA = "rxap/form-system/hide-function";
9
9
  export declare const RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS = "rxap/form-system/hide-show-options";
10
- export declare type ControlHideShowFunction<T = any> = (this: T, control: AbstractControl) => boolean | null;
10
+ export type ControlHideShowFunction<T = any> = (this: T, control: AbstractControl) => boolean | null;
11
11
  export interface ControlHideShowOptions {
12
12
  /**
13
13
  * Weather the hide/showFunction should be called on root group changes
@@ -36,7 +36,7 @@ export declare class ControlHideShowDirective implements OnInit, OnDestroy {
36
36
  private show;
37
37
  private reset;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ControlHideShowDirective, [null, null, { optional: true; }, { optional: true; self: true; }]>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlHideShowDirective, "[rxapControlHideShow]", never, { "controlId": "rxapControlHideShow"; }, {}, never, never, false>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlHideShowDirective, "[rxapControlHideShow]", never, { "controlId": { "alias": "rxapControlHideShow"; "required": false; }; }, {}, never, never, false, never>;
40
40
  }
41
41
  export declare class ControlHideShowDirectiveModule {
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<ControlHideShowDirectiveModule, never>;
@@ -4,8 +4,8 @@ import { DataSourceLoader, BaseDataSource, BaseDataSourceViewer, BaseDataSourceM
4
4
  import { RxapFormControl } from '@rxap/forms';
5
5
  import { ControlOptions, ControlOption } from '@rxap/utilities';
6
6
  import { Subscription } from 'rxjs';
7
- import { MatFormField } from '@angular/material/form-field';
8
- import { MatAutocomplete } from '@angular/material/autocomplete';
7
+ import { MatLegacyFormField as MatFormField } from '@angular/material/legacy-form-field';
8
+ import { MatLegacyAutocomplete as MatAutocomplete } from '@angular/material/legacy-autocomplete';
9
9
  import { ExtractOptionsDataSourceMixin, UseOptionsDataSourceSettings } from '../mixins/extract-options-data-source.mixin';
10
10
  import * as i0 from "@angular/core";
11
11
  export interface InputSelectOptionsTemplateContext {
@@ -70,7 +70,7 @@ export declare class InputSelectOptionsDirective implements OnDestroy, AfterView
70
70
  private loadOptions;
71
71
  protected renderTemplate(options?: ControlOptions | Record<string, any> | null): void;
72
72
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
73
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, { "viewer": "rxapInputSelectOptionsViewer"; "metadata": "rxapInputSelectOptionsMetadata"; "matAutocomplete": "rxapInputSelectOptionsMatAutocomplete"; }, {}, never, never, false>;
73
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, { "viewer": { "alias": "rxapInputSelectOptionsViewer"; "required": false; }; "metadata": { "alias": "rxapInputSelectOptionsMetadata"; "required": false; }; "matAutocomplete": { "alias": "rxapInputSelectOptionsMatAutocomplete"; "required": false; }; }, {}, never, never, false, never>;
74
74
  }
75
75
  export declare class InputSelectOptionsDirectiveModule {
76
76
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirectiveModule, never>;
@@ -33,5 +33,5 @@ export declare class FormSystemControlDirective<T> implements ControlValueAccess
33
33
  private extractComponent;
34
34
  private extractComponentProperties;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSystemControlDirective<any>, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSystemControlDirective<any>, "[rxapFormSystemControl]", never, { "controlId": "controlId"; }, {}, never, never, false>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSystemControlDirective<any>, "[rxapFormSystemControl]", never, { "controlId": { "alias": "controlId"; "required": false; }; }, {}, never, never, false, never>;
37
37
  }
@@ -1,5 +1,5 @@
1
1
  import { NgControl, AbstractControlDirective } from '@angular/forms';
2
- import { MatFormField } from '@angular/material/form-field';
2
+ import { MatLegacyFormField as MatFormField } from '@angular/material/legacy-form-field';
3
3
  import { RxapFormControl } from '@rxap/forms';
4
4
  export declare class ExtractControlMixin {
5
5
  protected ngControl: NgControl | null;
@@ -13,7 +13,7 @@ export declare class IsEqualToDirective implements Validator {
13
13
  */
14
14
  registerOnValidatorChange(fn: () => void): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<IsEqualToDirective, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<IsEqualToDirective, "[rxapIsEqualTo]", never, { "equalTo": "rxapIsEqualTo"; }, {}, never, never, false>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IsEqualToDirective, "[rxapIsEqualTo]", never, { "equalTo": { "alias": "rxapIsEqualTo"; "required": false; }; }, {}, never, never, false, never>;
17
17
  }
18
18
  export declare class IsEqualToDirectiveModule {
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<IsEqualToDirectiveModule, never>;
@@ -12,7 +12,7 @@ export declare class IsSelectableValueDirective implements Validator {
12
12
  constructor(dataSourceLoader: DataSourceLoader, injector: Injector);
13
13
  validate(control: AbstractControl): ValidationErrors | null;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectableValueDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<IsSelectableValueDirective, "[rxapIsSelectableValue]", never, { "viewer": "viewer"; }, {}, never, never, false>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IsSelectableValueDirective, "[rxapIsSelectableValue]", never, { "viewer": { "alias": "viewer"; "required": false; }; }, {}, never, never, false, never>;
16
16
  }
17
17
  export declare class IsSelectableValueDirectiveModule {
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectableValueDirectiveModule, never>;