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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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": "rxapControlHideShow"; }, {}, 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 {
@@ -32,6 +32,10 @@ export interface InputSelectOptionsSettings<Source> extends UseOptionsDataSource
32
32
  * sensitive
33
33
  */
34
34
  filteredOptions?: boolean;
35
+ /**
36
+ * true - the options list is only loaded once and not refreshed on each value change
37
+ */
38
+ loadOnce?: boolean;
35
39
  }
36
40
  export interface InputSelectOptionsDirective extends OnDestroy, AfterViewInit, ExtractOptionsDataSourceMixin {
37
41
  }
@@ -51,6 +55,14 @@ export declare class InputSelectOptionsDirective implements OnDestroy, AfterView
51
55
  protected dataSource: BaseDataSource<ControlOptions | Record<string, any>>;
52
56
  protected options: ControlOptions | Record<string, any> | null;
53
57
  protected settings?: InputSelectOptionsSettings<any>;
58
+ /**
59
+ * This flag is used to prevent the setValue is called for each refresh
60
+ * of the options list. This is needed because the setValue method will
61
+ * trigger a new refresh of the options list. This results in an endless
62
+ * call stack. This flag is set to true if the setValue method is called
63
+ * once.
64
+ */
65
+ private isAutocompleteToDisplayTriggered;
54
66
  constructor(template: TemplateRef<InputSelectOptionsTemplateContext>, dataSourceLoader: DataSourceLoader, viewContainerRef: ViewContainerRef, injector: Injector, cdr: ChangeDetectorRef, ngControl?: NgControl | null, matFormField?: MatFormField | null);
55
67
  ngAfterViewInit(): void;
56
68
  toDisplay(value: any): string;
@@ -58,7 +70,7 @@ export declare class InputSelectOptionsDirective implements OnDestroy, AfterView
58
70
  private loadOptions;
59
71
  protected renderTemplate(options?: ControlOptions | Record<string, any> | null): void;
60
72
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
61
- 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": "rxapInputSelectOptionsViewer"; "metadata": "rxapInputSelectOptionsMetadata"; "matAutocomplete": "rxapInputSelectOptionsMatAutocomplete"; }, {}, never, never, false, never>;
62
74
  }
63
75
  export declare class InputSelectOptionsDirectiveModule {
64
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": "controlId"; }, {}, 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": "rxapIsEqualTo"; }, {}, 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": "viewer"; }, {}, never, never, false, never>;
16
16
  }
17
17
  export declare class IsSelectableValueDirectiveModule {
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectableValueDirectiveModule, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/form-system",
3
- "version": "14.1.0-dev.0",
3
+ "version": "15.0.0",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/form-system",
@@ -18,22 +18,22 @@
18
18
  "description": "Provides the FormSystem concept for RxAP.",
19
19
  "license": "MIT",
20
20
  "peerDependencies": {
21
- "@angular-devkit/schematics": "^14.2.3",
22
- "@angular/cdk": "^14.2.2",
23
- "@angular/common": "^14.2.2",
24
- "@angular/core": "^14.2.2",
25
- "@angular/forms": "^14.2.2",
26
- "@angular/material": "^14.2.2",
27
- "@angular/platform-browser": "^14.2.2",
28
- "@angular/platform-browser-dynamic": "^14.2.2",
29
- "@angular/router": "^14.2.2",
30
- "@rxap/data-source": "^14.2.0-dev.0",
31
- "@rxap/definition": "^14.0.3",
32
- "@rxap/directives": "^14.0.3",
33
- "@rxap/forms": "^14.1.0-dev.0",
34
- "@rxap/mixin": "^14.0.2",
35
- "@rxap/services": "^14.0.5",
36
- "@rxap/utilities": "^14.1.0-dev.0",
21
+ "@angular-devkit/schematics": "^15.0.3",
22
+ "@angular/cdk": "^15.0.2",
23
+ "@angular/common": "^15.0.3",
24
+ "@angular/core": "^15.0.3",
25
+ "@angular/forms": "^15.0.3",
26
+ "@angular/material": "^15.0.2",
27
+ "@angular/platform-browser": "^15.0.3",
28
+ "@angular/platform-browser-dynamic": "^15.0.3",
29
+ "@angular/router": "^15.0.3",
30
+ "@rxap/data-source": "^15.0.0",
31
+ "@rxap/definition": "^15.0.0",
32
+ "@rxap/directives": "^15.0.0",
33
+ "@rxap/forms": "^15.0.0",
34
+ "@rxap/mixin": "^15.0.0",
35
+ "@rxap/services": "^15.0.0",
36
+ "@rxap/utilities": "^15.0.0",
37
37
  "reflect-metadata": "^0.1.13",
38
38
  "rxjs": "^6.6.0"
39
39
  },
@@ -59,7 +59,7 @@
59
59
  "save": "dependencies"
60
60
  },
61
61
  "dependencies": {
62
- "@rxap/schematics-utilities": "^14.0.0",
62
+ "@rxap/schematics-utilities": "^15.0.0",
63
63
  "tslib": "^2.3.1"
64
64
  },
65
65
  "module": "fesm2015/rxap-form-system.mjs",