@ngx-formly/material 10.0.1 → 11.1.0-rc.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 (38) hide show
  1. package/README.md +107 -177
  2. package/fesm2022/ngx-formly-material-checkbox.mjs +234 -127
  3. package/fesm2022/ngx-formly-material-checkbox.mjs.map +1 -1
  4. package/fesm2022/ngx-formly-material-datepicker.mjs +264 -118
  5. package/fesm2022/ngx-formly-material-datepicker.mjs.map +1 -1
  6. package/fesm2022/ngx-formly-material-form-field.mjs +440 -226
  7. package/fesm2022/ngx-formly-material-form-field.mjs.map +1 -1
  8. package/fesm2022/ngx-formly-material-input.mjs +199 -89
  9. package/fesm2022/ngx-formly-material-input.mjs.map +1 -1
  10. package/fesm2022/ngx-formly-material-multicheckbox.mjs +203 -106
  11. package/fesm2022/ngx-formly-material-multicheckbox.mjs.map +1 -1
  12. package/fesm2022/ngx-formly-material-native-select.mjs +204 -73
  13. package/fesm2022/ngx-formly-material-native-select.mjs.map +1 -1
  14. package/fesm2022/ngx-formly-material-radio.mjs +247 -104
  15. package/fesm2022/ngx-formly-material-radio.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-material-select.mjs +318 -133
  17. package/fesm2022/ngx-formly-material-select.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-material-slider.mjs +195 -85
  19. package/fesm2022/ngx-formly-material-slider.mjs.map +1 -1
  20. package/fesm2022/ngx-formly-material-textarea.mjs +203 -86
  21. package/fesm2022/ngx-formly-material-textarea.mjs.map +1 -1
  22. package/fesm2022/ngx-formly-material-toggle.mjs +208 -86
  23. package/fesm2022/ngx-formly-material-toggle.mjs.map +1 -1
  24. package/fesm2022/ngx-formly-material.mjs +84 -62
  25. package/fesm2022/ngx-formly-material.mjs.map +1 -1
  26. package/package.json +3 -3
  27. package/types/ngx-formly-material-checkbox.d.ts +41 -46
  28. package/types/ngx-formly-material-datepicker.d.ts +62 -67
  29. package/types/ngx-formly-material-form-field.d.ts +71 -77
  30. package/types/ngx-formly-material-input.d.ts +22 -28
  31. package/types/ngx-formly-material-multicheckbox.d.ts +33 -38
  32. package/types/ngx-formly-material-native-select.d.ts +23 -29
  33. package/types/ngx-formly-material-radio.d.ts +34 -39
  34. package/types/ngx-formly-material-select.d.ts +45 -48
  35. package/types/ngx-formly-material-slider.d.ts +32 -37
  36. package/types/ngx-formly-material-textarea.d.ts +28 -33
  37. package/types/ngx-formly-material-toggle.d.ts +30 -35
  38. package/types/ngx-formly-material.d.ts +16 -19
@@ -1,52 +1,47 @@
1
- import * as i6 from '@ngx-formly/core';
2
- import { ConfigOption, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';
3
- import * as i0 from '@angular/core';
4
- import { Type, AfterViewInit, AfterViewChecked, OnDestroy, Renderer2 } from '@angular/core';
5
- import * as i5 from '@ngx-formly/material/form-field';
6
- import { FormlyFieldProps, FieldType } from '@ngx-formly/material/form-field';
7
- import * as i4 from '@angular/material/checkbox';
8
- import { MatCheckbox } from '@angular/material/checkbox';
9
- import { FocusMonitor } from '@angular/cdk/a11y';
10
- import * as i2 from '@angular/common';
11
- import * as i3 from '@angular/forms';
12
-
13
- declare function withFormlyFieldCheckbox(): ConfigOption;
14
-
1
+ import * as i6 from "@ngx-formly/core";
2
+ import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from "@ngx-formly/core";
3
+ import * as i0 from "@angular/core";
4
+ import { AfterViewChecked, AfterViewInit, OnDestroy, Renderer2, Type } from "@angular/core";
5
+ import * as i5 from "@ngx-formly/material/form-field";
6
+ import { FieldType, FormlyFieldProps } from "@ngx-formly/material/form-field";
7
+ import * as i4 from "@angular/material/checkbox";
8
+ import { MatCheckbox } from "@angular/material/checkbox";
9
+ import { FocusMonitor } from "@angular/cdk/a11y";
10
+ import * as i2 from "@angular/common";
11
+ import * as i3 from "@angular/forms";
12
+ export declare function withFormlyFieldCheckbox(): ConfigOption;
15
13
  interface CheckboxProps extends FormlyFieldProps {
16
- indeterminate?: boolean;
17
- labelPosition?: 'before' | 'after';
14
+ indeterminate?: boolean;
15
+ labelPosition?: 'before' | 'after';
18
16
  }
19
- interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
20
- type: 'checkbox' | Type<FormlyFieldCheckbox>;
17
+ export interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
18
+ type: 'checkbox' | Type<FormlyFieldCheckbox>;
21
19
  }
22
- declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> implements AfterViewInit, AfterViewChecked, OnDestroy {
23
- private renderer;
24
- private focusMonitor;
25
- checkbox: MatCheckbox;
26
- defaultOptions: {
27
- props: {
28
- hideFieldUnderline: boolean;
29
- indeterminate: boolean;
30
- floatLabel: "always";
31
- hideLabel: boolean;
32
- color: "accent";
33
- };
20
+ export declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> implements AfterViewInit, AfterViewChecked, OnDestroy {
21
+ private renderer;
22
+ private focusMonitor;
23
+ checkbox: MatCheckbox;
24
+ defaultOptions: {
25
+ props: {
26
+ hideFieldUnderline: boolean;
27
+ indeterminate: boolean;
28
+ floatLabel: "always";
29
+ hideLabel: boolean;
30
+ color: "accent";
34
31
  };
35
- private _required;
36
- constructor(renderer: Renderer2, focusMonitor: FocusMonitor);
37
- onContainerClick(event: MouseEvent): void;
38
- ngAfterViewInit(): void;
39
- ngAfterViewChecked(): void;
40
- ngOnDestroy(): void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-mat-checkbox", never, {}, {}, never, never, false, never>;
32
+ };
33
+ private _required;
34
+ constructor(renderer: Renderer2, focusMonitor: FocusMonitor);
35
+ onContainerClick(event: MouseEvent): void;
36
+ ngAfterViewInit(): void;
37
+ ngAfterViewChecked(): void;
38
+ ngOnDestroy(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-mat-checkbox", never, {}, {}, never, never, false, never>;
43
41
  }
44
-
45
- declare class FormlyMatCheckboxModule {
46
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatCheckboxModule, never>;
47
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatCheckboxModule, [typeof FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatCheckboxModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
48
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatCheckboxModule>;
42
+ export declare class FormlyMatCheckboxModule {
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatCheckboxModule, never>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatCheckboxModule, [typeof FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatCheckboxModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
45
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatCheckboxModule>;
49
46
  }
50
-
51
- export { FormlyFieldCheckbox, FormlyMatCheckboxModule, withFormlyFieldCheckbox };
52
- export type { FormlyCheckboxFieldConfig };
47
+ export {};
@@ -1,73 +1,68 @@
1
- import * as i7 from '@ngx-formly/core';
2
- import { ConfigOption, FormlyFieldConfig, FieldTypeConfig, FormlyConfig } from '@ngx-formly/core';
3
- import * as i0 from '@angular/core';
4
- import { Type, AfterViewInit, OnDestroy, TemplateRef, ChangeDetectorRef } from '@angular/core';
5
- import * as i6 from '@ngx-formly/material/form-field';
6
- import { FormlyFieldProps, FieldType } from '@ngx-formly/material/form-field';
7
- import { ComponentType } from '@angular/cdk/portal';
8
- import * as i5 from '@angular/material/datepicker';
9
- import { MatDatepicker, MatCalendarCellClassFunction } from '@angular/material/datepicker';
10
- import * as i2 from '@angular/common';
11
- import * as i3 from '@angular/forms';
12
- import * as i4 from '@angular/material/input';
13
-
14
- declare function withFormlyFieldDatepicker(): ConfigOption;
15
-
1
+ import * as i7 from "@ngx-formly/core";
2
+ import { ConfigOption, FieldTypeConfig, FormlyConfig, FormlyFieldConfig } from "@ngx-formly/core";
3
+ import * as i0 from "@angular/core";
4
+ import { AfterViewInit, ChangeDetectorRef, OnDestroy, TemplateRef, Type } from "@angular/core";
5
+ import * as i6 from "@ngx-formly/material/form-field";
6
+ import { FieldType, FormlyFieldProps } from "@ngx-formly/material/form-field";
7
+ import { ComponentType } from "@angular/cdk/portal";
8
+ import * as i5 from "@angular/material/datepicker";
9
+ import { MatCalendarCellClassFunction, MatDatepicker } from "@angular/material/datepicker";
10
+ import * as i2 from "@angular/common";
11
+ import * as i3 from "@angular/forms";
12
+ import * as i4 from "@angular/material/input";
13
+ export declare function withFormlyFieldDatepicker(): ConfigOption;
16
14
  interface DatepickerProps extends FormlyFieldProps {
17
- datepickerOptions?: Partial<{
18
- touchUi: boolean;
19
- opened: boolean;
20
- disabled: boolean;
21
- startView: 'month' | 'year' | 'multi-year';
22
- datepickerTogglePosition: 'suffix' | 'prefix';
23
- calendarHeaderComponent: ComponentType<any>;
24
- filter: (date: any | null) => boolean;
25
- min: any;
26
- max: any;
27
- dateInput: (field: FieldTypeConfig<DatepickerProps>, event: any) => void;
28
- dateChange: (field: FieldTypeConfig<DatepickerProps>, event: any) => void;
29
- monthSelected: (field: FieldTypeConfig<DatepickerProps>, event: any, picker: MatDatepicker<any>) => void;
30
- yearSelected: (field: FieldTypeConfig<DatepickerProps>, event: any, picker: MatDatepicker<any>) => void;
31
- dateClass: MatCalendarCellClassFunction<any>;
32
- panelClass: string | string[];
33
- startAt: any | null;
34
- }>;
15
+ datepickerOptions?: Partial<{
16
+ touchUi: boolean;
17
+ opened: boolean;
18
+ disabled: boolean;
19
+ startView: 'month' | 'year' | 'multi-year';
20
+ datepickerTogglePosition: 'suffix' | 'prefix';
21
+ calendarHeaderComponent: ComponentType<any>;
22
+ filter: (date: any | null) => boolean;
23
+ min: any;
24
+ max: any;
25
+ dateInput: (field: FieldTypeConfig<DatepickerProps>, event: any) => void;
26
+ dateChange: (field: FieldTypeConfig<DatepickerProps>, event: any) => void;
27
+ monthSelected: (field: FieldTypeConfig<DatepickerProps>, event: any, picker: MatDatepicker<any>) => void;
28
+ yearSelected: (field: FieldTypeConfig<DatepickerProps>, event: any, picker: MatDatepicker<any>) => void;
29
+ dateClass: MatCalendarCellClassFunction<any>;
30
+ panelClass: string | string[];
31
+ startAt: any | null;
32
+ }>;
35
33
  }
36
- interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {
37
- type: 'datepicker' | Type<FormlyFieldDatepicker>;
34
+ export interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {
35
+ type: 'datepicker' | Type<FormlyFieldDatepicker>;
38
36
  }
39
- declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig<DatepickerProps>> implements AfterViewInit, OnDestroy {
40
- private config;
41
- private cdRef;
42
- datepickerToggle: TemplateRef<any>;
43
- defaultOptions: {
44
- props: {
45
- datepickerOptions: {
46
- startView: "month";
47
- datepickerTogglePosition: "suffix";
48
- disabled: boolean;
49
- opened: boolean;
50
- dateInput: () => void;
51
- dateChange: () => void;
52
- monthSelected: () => void;
53
- yearSelected: () => void;
54
- };
55
- };
37
+ export declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig<DatepickerProps>> implements AfterViewInit, OnDestroy {
38
+ private config;
39
+ private cdRef;
40
+ datepickerToggle: TemplateRef<any>;
41
+ defaultOptions: {
42
+ props: {
43
+ datepickerOptions: {
44
+ startView: "month";
45
+ datepickerTogglePosition: "suffix";
46
+ disabled: boolean;
47
+ opened: boolean;
48
+ dateInput: () => void;
49
+ dateChange: () => void;
50
+ monthSelected: () => void;
51
+ yearSelected: () => void;
52
+ };
56
53
  };
57
- private fieldErrorsObserver;
58
- constructor(config: FormlyConfig, cdRef: ChangeDetectorRef);
59
- detectChanges(): void;
60
- ngAfterViewInit(): void;
61
- ngOnDestroy(): void;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDatepicker, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDatepicker, "formly-field-mat-datepicker", never, {}, {}, never, never, false, never>;
54
+ };
55
+ private fieldErrorsObserver;
56
+ constructor(config: FormlyConfig, cdRef: ChangeDetectorRef);
57
+ detectChanges(): void;
58
+ ngAfterViewInit(): void;
59
+ ngOnDestroy(): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDatepicker, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDatepicker, "formly-field-mat-datepicker", never, {}, {}, never, never, false, never>;
64
62
  }
65
-
66
- declare class FormlyMatDatepickerModule {
67
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatDatepickerModule, never>;
68
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatDatepickerModule, [typeof FormlyFieldDatepicker], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.MatDatepickerModule, typeof i6.FormlyMatFormFieldModule, typeof i7.FormlyModule], never>;
69
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatDatepickerModule>;
63
+ export declare class FormlyMatDatepickerModule {
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatDatepickerModule, never>;
65
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatDatepickerModule, [typeof FormlyFieldDatepicker], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.MatDatepickerModule, typeof i6.FormlyMatFormFieldModule, typeof i7.FormlyModule], never>;
66
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatDatepickerModule>;
70
67
  }
71
-
72
- export { FormlyFieldDatepicker, FormlyMatDatepickerModule, withFormlyFieldDatepicker };
73
- export type { FormlyDatepickerFieldConfig };
68
+ export {};
@@ -1,84 +1,78 @@
1
- import * as i5 from '@ngx-formly/core';
2
- import { ConfigOption, FormlyFieldProps as FormlyFieldProps$1, FieldWrapper, FormlyFieldConfig, FieldType as FieldType$1 } from '@ngx-formly/core';
3
- import * as i0 from '@angular/core';
4
- import { TemplateRef, OnInit, OnDestroy, AfterViewInit, Renderer2, ElementRef, QueryList } from '@angular/core';
5
- import * as i4 from '@angular/material/form-field';
6
- import { FloatLabelType, MatFormFieldAppearance, MatFormField, MatFormFieldControl } from '@angular/material/form-field';
7
- import { FocusMonitor } from '@angular/cdk/a11y';
8
- import { ThemePalette, ErrorStateMatcher } from '@angular/material/core';
9
- import * as i2 from '@angular/common';
10
- import * as i3 from '@angular/forms';
11
- import { Subject } from 'rxjs';
12
-
13
- declare function withFormlyFormField(): ConfigOption;
14
-
1
+ import * as i5 from "@ngx-formly/core";
2
+ import { ConfigOption, FieldType as FieldType$1, FieldWrapper, FormlyFieldConfig, FormlyFieldProps as FormlyFieldProps$1 } from "@ngx-formly/core";
3
+ import * as i0 from "@angular/core";
4
+ import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList, Renderer2, TemplateRef } from "@angular/core";
5
+ import * as i4 from "@angular/material/form-field";
6
+ import { FloatLabelType, MatFormField, MatFormFieldAppearance, MatFormFieldControl } from "@angular/material/form-field";
7
+ import { FocusMonitor } from "@angular/cdk/a11y";
8
+ import { ErrorStateMatcher, ThemePalette } from "@angular/material/core";
9
+ import * as i2 from "@angular/common";
10
+ import * as i3 from "@angular/forms";
11
+ import { Subject } from "rxjs";
12
+ export declare function withFormlyFormField(): ConfigOption;
15
13
  interface MatFormlyFieldConfig extends FormlyFieldConfig<FormlyFieldProps> {
16
- _formField?: FormlyWrapperFormField;
14
+ _formField?: FormlyWrapperFormField;
17
15
  }
18
- interface FormlyFieldProps extends FormlyFieldProps$1 {
19
- prefix?: TemplateRef<any>;
20
- suffix?: TemplateRef<any>;
21
- textPrefix?: TemplateRef<any>;
22
- textSuffix?: TemplateRef<any>;
23
- hideLabel?: boolean;
24
- hideRequiredMarker?: boolean;
25
- hideFieldUnderline?: boolean;
26
- floatLabel?: FloatLabelType;
27
- appearance?: MatFormFieldAppearance;
28
- subscriptSizing?: 'fixed' | 'dynamic';
29
- color?: ThemePalette;
30
- hintStart?: TemplateRef<any> | string;
31
- hintEnd?: TemplateRef<any> | string;
16
+ export interface FormlyFieldProps extends FormlyFieldProps$1 {
17
+ prefix?: TemplateRef<any>;
18
+ suffix?: TemplateRef<any>;
19
+ textPrefix?: TemplateRef<any>;
20
+ textSuffix?: TemplateRef<any>;
21
+ hideLabel?: boolean;
22
+ hideRequiredMarker?: boolean;
23
+ hideFieldUnderline?: boolean;
24
+ floatLabel?: FloatLabelType;
25
+ appearance?: MatFormFieldAppearance;
26
+ subscriptSizing?: 'fixed' | 'dynamic';
27
+ color?: ThemePalette;
28
+ hintStart?: TemplateRef<any> | string;
29
+ hintEnd?: TemplateRef<any> | string;
32
30
  }
33
31
  declare class FormlyWrapperFormField extends FieldWrapper<MatFormlyFieldConfig> implements OnInit, OnDestroy, AfterViewInit {
34
- private renderer;
35
- private elementRef;
36
- private focusMonitor;
37
- formField: MatFormField;
38
- constructor(renderer: Renderer2, elementRef: ElementRef, focusMonitor: FocusMonitor);
39
- ngOnInit(): void;
40
- ngAfterViewInit(): void;
41
- ngOnDestroy(): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-mat-form-field", never, {}, {}, never, never, false, never>;
32
+ private renderer;
33
+ private elementRef;
34
+ private focusMonitor;
35
+ formField: MatFormField;
36
+ constructor(renderer: Renderer2, elementRef: ElementRef, focusMonitor: FocusMonitor);
37
+ ngOnInit(): void;
38
+ ngAfterViewInit(): void;
39
+ ngOnDestroy(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-mat-form-field", never, {}, {}, never, never, false, never>;
44
42
  }
45
-
46
- declare class FormlyMatFormFieldModule {
47
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatFormFieldModule, never>;
48
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatFormFieldModule, [typeof FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatFormFieldModule, typeof i5.FormlyModule], never>;
49
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatFormFieldModule>;
43
+ export declare class FormlyMatFormFieldModule {
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatFormFieldModule, never>;
45
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatFormFieldModule, [typeof FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatFormFieldModule, typeof i5.FormlyModule], never>;
46
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatFormFieldModule>;
50
47
  }
51
-
52
- declare abstract class FieldType<F extends FormlyFieldConfig<FormlyFieldProps>> extends FieldType$1<F> implements OnDestroy, MatFormFieldControl<any> {
53
- set matPrefix(prefix: TemplateRef<any>);
54
- set matTextPrefix(textPrefix: TemplateRef<any>);
55
- set matSuffix(suffix: TemplateRef<any>);
56
- set matTextSuffix(textSuffix: TemplateRef<any>);
57
- set _controls(controls: QueryList<MatFormFieldControl<any>>);
58
- errorStateMatcher: ErrorStateMatcher;
59
- stateChanges: Subject<void>;
60
- _errorState: boolean;
61
- _focused: boolean;
62
- ngOnDestroy(): void;
63
- setDescribedByIds(_ids: string[]): void;
64
- onContainerClick(_event: MouseEvent): void;
65
- get errorState(): boolean;
66
- get controlType(): any;
67
- get focused(): boolean;
68
- get disabled(): boolean;
69
- get required(): boolean;
70
- get placeholder(): string;
71
- get shouldPlaceholderFloat(): boolean;
72
- get value(): any;
73
- set value(value: any);
74
- get ngControl(): any;
75
- get empty(): boolean;
76
- get shouldLabelFloat(): boolean;
77
- get formField(): MatFormField;
78
- private attachControl;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<FieldType<any>, never>;
80
- static ɵdir: i0.ɵɵDirectiveDeclaration<FieldType<any>, never, never, {}, {}, never, never, true, never>;
48
+ export declare abstract class FieldType<F extends FormlyFieldConfig<FormlyFieldProps>> extends FieldType$1<F> implements OnDestroy, MatFormFieldControl<any> {
49
+ set matPrefix(prefix: TemplateRef<any>);
50
+ set matTextPrefix(textPrefix: TemplateRef<any>);
51
+ set matSuffix(suffix: TemplateRef<any>);
52
+ set matTextSuffix(textSuffix: TemplateRef<any>);
53
+ set _controls(controls: QueryList<MatFormFieldControl<any>>);
54
+ errorStateMatcher: ErrorStateMatcher;
55
+ stateChanges: Subject<void>;
56
+ _errorState: boolean;
57
+ _focused: boolean;
58
+ ngOnDestroy(): void;
59
+ setDescribedByIds(_ids: string[]): void;
60
+ onContainerClick(_event: MouseEvent): void;
61
+ get errorState(): boolean;
62
+ get controlType(): any;
63
+ get focused(): boolean;
64
+ get disabled(): boolean;
65
+ get required(): boolean;
66
+ get placeholder(): string;
67
+ get shouldPlaceholderFloat(): boolean;
68
+ get value(): any;
69
+ set value(value: any);
70
+ get ngControl(): any;
71
+ get empty(): boolean;
72
+ get shouldLabelFloat(): boolean;
73
+ get formField(): MatFormField;
74
+ private attachControl;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldType<any>, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldType<any>, never, never, {}, {}, never, never, true, never>;
81
77
  }
82
-
83
- export { FieldType, FormlyMatFormFieldModule, withFormlyFormField };
84
- export type { FormlyFieldProps };
78
+ export {};
@@ -1,31 +1,25 @@
1
- import * as i6 from '@ngx-formly/core';
2
- import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import * as i0 from '@angular/core';
4
- import { Type } from '@angular/core';
5
- import * as i5 from '@ngx-formly/material/form-field';
6
- import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
7
- import * as i2 from '@angular/common';
8
- import * as i3 from '@angular/forms';
9
- import * as i4 from '@angular/material/input';
10
-
11
- declare function withFormlyFieldInput(): ConfigOption;
12
-
13
- interface InputProps extends FormlyFieldProps {
1
+ import * as i6 from "@ngx-formly/core";
2
+ import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from "@ngx-formly/core";
3
+ import * as i0 from "@angular/core";
4
+ import { Type } from "@angular/core";
5
+ import * as i5 from "@ngx-formly/material/form-field";
6
+ import { FieldType, FormlyFieldProps } from "@ngx-formly/material/form-field";
7
+ import * as i2 from "@angular/common";
8
+ import * as i3 from "@angular/forms";
9
+ import * as i4 from "@angular/material/input";
10
+ export declare function withFormlyFieldInput(): ConfigOption;
11
+ interface InputProps extends FormlyFieldProps {}
12
+ export interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
13
+ type: 'input' | Type<FormlyFieldInput>;
14
14
  }
15
- interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
16
- type: 'input' | Type<FormlyFieldInput>;
15
+ export declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
16
+ get type(): string;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-mat-input", never, {}, {}, never, never, false, never>;
17
19
  }
18
- declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
19
- get type(): string;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-mat-input", never, {}, {}, never, never, false, never>;
20
+ export declare class FormlyMatInputModule {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatInputModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatInputModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatInputModule>;
22
24
  }
23
-
24
- declare class FormlyMatInputModule {
25
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatInputModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatInputModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
27
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatInputModule>;
28
- }
29
-
30
- export { FormlyFieldInput, FormlyMatInputModule, withFormlyFieldInput };
31
- export type { FormlyInputFieldConfig };
25
+ export {};
@@ -1,44 +1,39 @@
1
- import * as i7 from '@ngx-formly/core';
2
- import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import * as i0 from '@angular/core';
4
- import { QueryList, Type } from '@angular/core';
5
- import * as i4 from '@angular/material/checkbox';
6
- import { MatCheckbox } from '@angular/material/checkbox';
7
- import * as i5 from '@ngx-formly/material/form-field';
8
- import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
9
- import * as i2 from '@angular/common';
10
- import * as i3 from '@angular/forms';
11
- import * as i6 from '@ngx-formly/core/select';
12
-
13
- declare function withFormlyFieldMultiCheckbox(): ConfigOption;
14
-
1
+ import * as i7 from "@ngx-formly/core";
2
+ import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from "@ngx-formly/core";
3
+ import * as i0 from "@angular/core";
4
+ import { QueryList, Type } from "@angular/core";
5
+ import * as i4 from "@angular/material/checkbox";
6
+ import { MatCheckbox } from "@angular/material/checkbox";
7
+ import * as i5 from "@ngx-formly/material/form-field";
8
+ import { FieldType, FormlyFieldProps } from "@ngx-formly/material/form-field";
9
+ import * as i2 from "@angular/common";
10
+ import * as i3 from "@angular/forms";
11
+ import * as i6 from "@ngx-formly/core/select";
12
+ export declare function withFormlyFieldMultiCheckbox(): ConfigOption;
15
13
  interface MultiCheckboxProps extends FormlyFieldProps {
16
- labelPosition?: 'before' | 'after';
14
+ labelPosition?: 'before' | 'after';
17
15
  }
18
- interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {
19
- type: 'multicheckbox' | Type<FormlyFieldMultiCheckbox>;
16
+ export interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {
17
+ type: 'multicheckbox' | Type<FormlyFieldMultiCheckbox>;
20
18
  }
21
- declare class FormlyFieldMultiCheckbox extends FieldType<FieldTypeConfig<MultiCheckboxProps>> {
22
- checkboxes: QueryList<MatCheckbox>;
23
- defaultOptions: {
24
- props: {
25
- hideFieldUnderline: boolean;
26
- floatLabel: "always";
27
- color: "accent";
28
- };
19
+ export declare class FormlyFieldMultiCheckbox extends FieldType<FieldTypeConfig<MultiCheckboxProps>> {
20
+ checkboxes: QueryList<MatCheckbox>;
21
+ defaultOptions: {
22
+ props: {
23
+ hideFieldUnderline: boolean;
24
+ floatLabel: "always";
25
+ color: "accent";
29
26
  };
30
- onChange(value: any, checked: boolean): void;
31
- onContainerClick(): void;
32
- isChecked(option: any): any;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldMultiCheckbox, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldMultiCheckbox, "formly-field-mat-multicheckbox", never, {}, {}, never, never, false, never>;
27
+ };
28
+ onChange(value: any, checked: boolean): void;
29
+ onContainerClick(): void;
30
+ isChecked(option: any): any;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldMultiCheckbox, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldMultiCheckbox, "formly-field-mat-multicheckbox", never, {}, {}, never, never, false, never>;
35
33
  }
36
-
37
- declare class FormlyMatMultiCheckboxModule {
38
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatMultiCheckboxModule, never>;
39
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatMultiCheckboxModule, [typeof FormlyFieldMultiCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatCheckboxModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
40
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatMultiCheckboxModule>;
34
+ export declare class FormlyMatMultiCheckboxModule {
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatMultiCheckboxModule, never>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatMultiCheckboxModule, [typeof FormlyFieldMultiCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatCheckboxModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
37
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatMultiCheckboxModule>;
41
38
  }
42
-
43
- export { FormlyFieldMultiCheckbox, FormlyMatMultiCheckboxModule, withFormlyFieldMultiCheckbox };
44
- export type { FormlyMultiCheckboxFieldConfig };
39
+ export {};
@@ -1,32 +1,26 @@
1
- import * as i7 from '@ngx-formly/core';
2
- import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import * as i0 from '@angular/core';
4
- import { Type } from '@angular/core';
5
- import * as i6 from '@ngx-formly/core/select';
6
- import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
7
- import * as i5 from '@ngx-formly/material/form-field';
8
- import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
9
- import * as i2 from '@angular/common';
10
- import * as i3 from '@angular/forms';
11
- import * as i4 from '@angular/material/input';
12
-
13
- declare function withFormlyFieldNativeSelect(): ConfigOption;
14
-
15
- interface NativeSelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
1
+ import * as i7 from "@ngx-formly/core";
2
+ import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from "@ngx-formly/core";
3
+ import * as i0 from "@angular/core";
4
+ import { Type } from "@angular/core";
5
+ import * as i6 from "@ngx-formly/core/select";
6
+ import { FormlyFieldSelectProps } from "@ngx-formly/core/select";
7
+ import * as i5 from "@ngx-formly/material/form-field";
8
+ import { FieldType, FormlyFieldProps } from "@ngx-formly/material/form-field";
9
+ import * as i2 from "@angular/common";
10
+ import * as i3 from "@angular/forms";
11
+ import * as i4 from "@angular/material/input";
12
+ export declare function withFormlyFieldNativeSelect(): ConfigOption;
13
+ interface NativeSelectProps extends FormlyFieldProps, FormlyFieldSelectProps {}
14
+ export interface FormlyNativeSelectFieldConfig extends FormlyFieldConfig<NativeSelectProps> {
15
+ type: 'native-select' | Type<FormlyFieldNativeSelect>;
16
16
  }
17
- interface FormlyNativeSelectFieldConfig extends FormlyFieldConfig<NativeSelectProps> {
18
- type: 'native-select' | Type<FormlyFieldNativeSelect>;
17
+ export declare class FormlyFieldNativeSelect extends FieldType<FieldTypeConfig<NativeSelectProps>> {
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldNativeSelect, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldNativeSelect, "formly-field-mat-native-select", never, {}, {}, never, never, false, never>;
19
20
  }
20
- declare class FormlyFieldNativeSelect extends FieldType<FieldTypeConfig<NativeSelectProps>> {
21
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldNativeSelect, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldNativeSelect, "formly-field-mat-native-select", never, {}, {}, never, never, false, never>;
21
+ export declare class FormlyMatNativeSelectModule {
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatNativeSelectModule, never>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatNativeSelectModule, [typeof FormlyFieldNativeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
24
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatNativeSelectModule>;
23
25
  }
24
-
25
- declare class FormlyMatNativeSelectModule {
26
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatNativeSelectModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatNativeSelectModule, [typeof FormlyFieldNativeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
28
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatNativeSelectModule>;
29
- }
30
-
31
- export { FormlyFieldNativeSelect, FormlyMatNativeSelectModule, withFormlyFieldNativeSelect };
32
- export type { FormlyNativeSelectFieldConfig };
26
+ export {};