@rxap/form-system 12.0.11 → 12.1.3

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.
@@ -1,4 +1,4 @@
1
- import { TemplateRef, OnInit, ViewContainerRef, OnDestroy, Injector, ChangeDetectorRef } from '@angular/core';
1
+ import { TemplateRef, OnInit, ViewContainerRef, OnDestroy, Injector, ChangeDetectorRef, AfterViewInit } from '@angular/core';
2
2
  import { NgControl } from '@angular/forms';
3
3
  import { DataSourceLoader, BaseDataSource, BaseDataSourceViewer, BaseDataSourceMetadata } from '@rxap/data-source';
4
4
  import { RxapFormControl } from '@rxap/forms';
@@ -8,6 +8,8 @@ import { ExtractDataSourcesMixin } from '../mixins/extract-data-sources.mixin';
8
8
  import { ExtractFormDefinitionMixin } from '../mixins/extract-form-definition.mixin';
9
9
  import { UseDataSourceSettings } from '../decorators/use-data-source';
10
10
  import { IdOrInstanceOrToken } from '@rxap/definition';
11
+ import { MatFormField } from '@angular/material/form-field';
12
+ import { MatAutocomplete } from '@angular/material/autocomplete';
11
13
  import * as i0 from "@angular/core";
12
14
  export interface InputSelectOptionsTemplateContext {
13
15
  $implicit: ControlOption;
@@ -19,28 +21,31 @@ export declare function ComposeOptionsTransformers(...fnc: Array<(value: any) =>
19
21
  export declare function UseOptionsDataSource<Source>(dataSource: IdOrInstanceOrToken<BaseDataSource<Source>>, settings?: InputSelectOptionsSettings<Source>): (target: any, propertyKey: string) => any;
20
22
  export interface InputSelectOptionsDirective extends OnInit, ExtractFormDefinitionMixin, ExtractDataSourcesMixin {
21
23
  }
22
- export declare class InputSelectOptionsDirective implements OnInit, OnDestroy {
24
+ export declare class InputSelectOptionsDirective implements OnDestroy, AfterViewInit {
23
25
  protected readonly template: TemplateRef<InputSelectOptionsTemplateContext>;
24
26
  protected readonly dataSourceLoader: DataSourceLoader;
25
27
  protected readonly viewContainerRef: ViewContainerRef;
26
28
  protected readonly injector: Injector;
27
29
  protected readonly cdr: ChangeDetectorRef;
28
30
  protected ngControl: NgControl | null;
31
+ protected matFormField: MatFormField | null;
29
32
  viewer: BaseDataSourceViewer;
30
33
  metadata?: BaseDataSourceMetadata;
34
+ matAutocomplete?: MatAutocomplete;
31
35
  protected readonly subscription: Subscription;
32
36
  protected control: RxapFormControl;
33
37
  protected dataSource: BaseDataSource<ControlOptions | Record<string, any>>;
34
38
  protected options: ControlOptions | Record<string, any> | null;
35
- constructor(template: TemplateRef<InputSelectOptionsTemplateContext>, dataSourceLoader: DataSourceLoader, viewContainerRef: ViewContainerRef, injector: Injector, cdr: ChangeDetectorRef, ngControl?: NgControl | null);
36
- protected extractControl(ngControl?: NgControl | null): RxapFormControl;
39
+ constructor(template: TemplateRef<InputSelectOptionsTemplateContext>, dataSourceLoader: DataSourceLoader, viewContainerRef: ViewContainerRef, injector: Injector, cdr: ChangeDetectorRef, ngControl?: NgControl | null, matFormField?: MatFormField | null);
40
+ ngAfterViewInit(): void;
37
41
  protected extractDatasource(control?: RxapFormControl): BaseDataSource<ControlOptions | Record<string, any>>;
38
- ngOnInit(): void;
42
+ toDisplay(value: any): string;
43
+ protected extractControl(ngControl?: NgControl | null): RxapFormControl;
39
44
  ngOnDestroy(): void;
40
45
  private loadOptions;
41
46
  protected renderTemplate(options?: ControlOptions | Record<string, any> | null): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, [null, null, null, null, null, { optional: true; }]>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, { "viewer": "rxapInputSelectOptionsViewer"; "metadata": "rxapInputSelectOptionsMetadata"; }, {}, never>;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
48
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, { "viewer": "rxapInputSelectOptionsViewer"; "metadata": "rxapInputSelectOptionsMetadata"; "matAutocomplete": "rxapInputSelectOptionsMatAutocomplete"; }, {}, never>;
44
49
  }
45
50
  export declare class InputSelectOptionsDirectiveModule {
46
51
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirectiveModule, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/form-system",
3
- "version": "12.0.11",
3
+ "version": "12.1.3",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/form-system",
@@ -18,19 +18,21 @@
18
18
  "description": "Provides the FormSystem concept for RxAP.",
19
19
  "license": "MIT",
20
20
  "peerDependencies": {
21
+ "@angular-devkit/schematics": "^12.2.9",
21
22
  "@angular/cdk": "^12.0.1",
22
23
  "@angular/common": "^12.0.1",
23
24
  "@angular/core": "^12.0.1",
24
25
  "@angular/forms": "^12.0.1",
26
+ "@angular/material": "^12.0.1",
25
27
  "@angular/platform-browser": "^12.0.1",
26
28
  "@angular/router": "^12.0.1",
27
- "@rxap/data-source": "^12.1.1",
29
+ "@rxap/data-source": "^12.1.3",
28
30
  "@rxap/definition": "^12.0.8",
29
- "@rxap/directives": "^12.1.2",
30
- "@rxap/forms": "^12.5.0",
31
+ "@rxap/directives": "^12.2.0",
32
+ "@rxap/forms": "^12.7.1",
31
33
  "@rxap/mixin": "^12.0.7",
32
- "@rxap/services": "^12.0.7",
33
- "@rxap/utilities": "^12.2.1",
34
+ "@rxap/services": "^12.0.8",
35
+ "@rxap/utilities": "^12.2.2",
34
36
  "reflect-metadata": "^0.1.13",
35
37
  "rxjs": "^6.5.5"
36
38
  },
@@ -56,7 +58,7 @@
56
58
  "save": "dependencies"
57
59
  },
58
60
  "dependencies": {
59
- "@rxap/schematics-utilities": "^12.6.0",
61
+ "@rxap/schematics-utilities": "^12.7.0",
60
62
  "tslib": "^2.2.0",
61
63
  "uuid": "8.3.2",
62
64
  "@rxap/validator": "0.0.2"