@ngx-formly/material 8.0.0 → 9.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.
Files changed (82) hide show
  1. package/README.md +26 -19
  2. package/checkbox/index.d.ts +52 -5
  3. package/datepicker/index.d.ts +73 -5
  4. package/fesm2022/ngx-formly-material-checkbox.mjs +7 -7
  5. package/fesm2022/ngx-formly-material-checkbox.mjs.map +1 -1
  6. package/fesm2022/ngx-formly-material-datepicker.mjs +7 -7
  7. package/fesm2022/ngx-formly-material-datepicker.mjs.map +1 -1
  8. package/fesm2022/ngx-formly-material-form-field.mjs +10 -10
  9. package/fesm2022/ngx-formly-material-form-field.mjs.map +1 -1
  10. package/fesm2022/ngx-formly-material-input.mjs +7 -7
  11. package/fesm2022/ngx-formly-material-multicheckbox.mjs +7 -7
  12. package/fesm2022/ngx-formly-material-multicheckbox.mjs.map +1 -1
  13. package/fesm2022/ngx-formly-material-native-select.mjs +7 -7
  14. package/fesm2022/ngx-formly-material-radio.mjs +7 -7
  15. package/fesm2022/ngx-formly-material-radio.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-material-select.mjs +7 -7
  17. package/fesm2022/ngx-formly-material-select.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-material-slider.mjs +7 -7
  19. package/fesm2022/ngx-formly-material-textarea.mjs +7 -7
  20. package/fesm2022/ngx-formly-material-toggle.mjs +7 -7
  21. package/fesm2022/ngx-formly-material-toggle.mjs.map +1 -1
  22. package/fesm2022/ngx-formly-material.mjs +4 -4
  23. package/form-field/index.d.ts +84 -5
  24. package/index.d.ts +20 -5
  25. package/input/index.d.ts +31 -5
  26. package/multicheckbox/index.d.ts +44 -5
  27. package/native-select/index.d.ts +32 -5
  28. package/package.json +7 -7
  29. package/radio/index.d.ts +45 -5
  30. package/select/index.d.ts +54 -5
  31. package/slider/index.d.ts +43 -5
  32. package/textarea/index.d.ts +39 -5
  33. package/toggle/index.d.ts +41 -5
  34. package/checkbox/checkbox.config.d.ts +0 -2
  35. package/checkbox/checkbox.module.d.ts +0 -12
  36. package/checkbox/checkbox.type.d.ts +0 -36
  37. package/checkbox/public_api.d.ts +0 -3
  38. package/datepicker/datepicker.config.d.ts +0 -2
  39. package/datepicker/datepicker.module.d.ts +0 -13
  40. package/datepicker/datepicker.type.d.ts +0 -56
  41. package/datepicker/public_api.d.ts +0 -3
  42. package/form-field/field.type.d.ts +0 -37
  43. package/form-field/form-field.config.d.ts +0 -2
  44. package/form-field/form-field.module.d.ts +0 -11
  45. package/form-field/form-field.wrapper.d.ts +0 -38
  46. package/form-field/public_api.d.ts +0 -4
  47. package/input/input.config.d.ts +0 -2
  48. package/input/input.module.d.ts +0 -12
  49. package/input/input.type.d.ts +0 -15
  50. package/input/public_api.d.ts +0 -3
  51. package/lib/material.config.d.ts +0 -1
  52. package/lib/ui-material.d.ts +0 -3
  53. package/lib/ui-material.module.d.ts +0 -13
  54. package/multicheckbox/multicheckbox.config.d.ts +0 -2
  55. package/multicheckbox/multicheckbox.module.d.ts +0 -13
  56. package/multicheckbox/multicheckbox.type.d.ts +0 -27
  57. package/multicheckbox/public_api.d.ts +0 -3
  58. package/native-select/native-select.config.d.ts +0 -2
  59. package/native-select/native-select.module.d.ts +0 -13
  60. package/native-select/native-select.type.d.ts +0 -15
  61. package/native-select/public_api.d.ts +0 -3
  62. package/public_api.d.ts +0 -1
  63. package/radio/public_api.d.ts +0 -3
  64. package/radio/radio.config.d.ts +0 -2
  65. package/radio/radio.module.d.ts +0 -13
  66. package/radio/radio.type.d.ts +0 -28
  67. package/select/public_api.d.ts +0 -3
  68. package/select/select.config.d.ts +0 -2
  69. package/select/select.module.d.ts +0 -14
  70. package/select/select.type.d.ts +0 -36
  71. package/slider/public_api.d.ts +0 -3
  72. package/slider/slider.config.d.ts +0 -2
  73. package/slider/slider.module.d.ts +0 -13
  74. package/slider/slider.type.d.ts +0 -26
  75. package/textarea/public_api.d.ts +0 -3
  76. package/textarea/textarea.config.d.ts +0 -2
  77. package/textarea/textarea.module.d.ts +0 -12
  78. package/textarea/textarea.type.d.ts +0 -23
  79. package/toggle/public_api.d.ts +0 -3
  80. package/toggle/toggle.config.d.ts +0 -2
  81. package/toggle/toggle.module.d.ts +0 -12
  82. package/toggle/toggle.type.d.ts +0 -25
@@ -22,15 +22,15 @@ function withFormlyMaterial() {
22
22
  }
23
23
 
24
24
  class FormlyMaterialModule {
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
26
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyMaterialModule, imports: [FormlyMatFormFieldModule,
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
26
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyMaterialModule, imports: [FormlyMatFormFieldModule,
27
27
  FormlyMatInputModule,
28
28
  FormlyMatTextAreaModule,
29
29
  FormlyMatRadioModule,
30
30
  FormlyMatCheckboxModule,
31
31
  FormlyMatMultiCheckboxModule,
32
32
  FormlyMatSelectModule] }); }
33
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyMaterialModule, imports: [FormlyMatFormFieldModule,
33
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyMaterialModule, imports: [FormlyMatFormFieldModule,
34
34
  FormlyMatInputModule,
35
35
  FormlyMatTextAreaModule,
36
36
  FormlyMatRadioModule,
@@ -38,7 +38,7 @@ class FormlyMaterialModule {
38
38
  FormlyMatMultiCheckboxModule,
39
39
  FormlyMatSelectModule] }); }
40
40
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyMaterialModule, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyMaterialModule, decorators: [{
42
42
  type: NgModule,
43
43
  args: [{
44
44
  imports: [
@@ -1,5 +1,84 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/form-field" />
5
- export * from './public_api';
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
+
15
+ interface MatFormlyFieldConfig extends FormlyFieldConfig<FormlyFieldProps> {
16
+ _formField?: FormlyWrapperFormField;
17
+ }
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;
32
+ }
33
+ 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>;
44
+ }
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>;
50
+ }
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>;
81
+ }
82
+
83
+ export { FieldType, FormlyMatFormFieldModule, withFormlyFormField };
84
+ export type { FormlyFieldProps };
package/index.d.ts CHANGED
@@ -1,5 +1,20 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material" />
5
- export * from './public_api';
1
+ import * as _ngx_formly_core from '@ngx-formly/core';
2
+ import * as i1 from '@ngx-formly/material/form-field';
3
+ export { FieldType } from '@ngx-formly/material/form-field';
4
+ import * as i0 from '@angular/core';
5
+ import * as i2 from '@ngx-formly/material/input';
6
+ import * as i3 from '@ngx-formly/material/textarea';
7
+ import * as i4 from '@ngx-formly/material/radio';
8
+ import * as i5 from '@ngx-formly/material/checkbox';
9
+ import * as i6 from '@ngx-formly/material/multicheckbox';
10
+ import * as i7 from '@ngx-formly/material/select';
11
+
12
+ declare function withFormlyMaterial(): _ngx_formly_core.ConfigOption[];
13
+
14
+ declare class FormlyMaterialModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMaterialModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMaterialModule, never, [typeof i1.FormlyMatFormFieldModule, typeof i2.FormlyMatInputModule, typeof i3.FormlyMatTextAreaModule, typeof i4.FormlyMatRadioModule, typeof i5.FormlyMatCheckboxModule, typeof i6.FormlyMatMultiCheckboxModule, typeof i7.FormlyMatSelectModule], never>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMaterialModule>;
18
+ }
19
+
20
+ export { FormlyMaterialModule, withFormlyMaterial };
package/input/index.d.ts CHANGED
@@ -1,5 +1,31 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/input" />
5
- export * from './public_api';
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 {
14
+ }
15
+ interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
16
+ type: 'input' | Type<FormlyFieldInput>;
17
+ }
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>;
22
+ }
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 };
@@ -1,5 +1,44 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/multicheckbox" />
5
- export * from './public_api';
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
+
15
+ interface MultiCheckboxProps extends FormlyFieldProps {
16
+ labelPosition?: 'before' | 'after';
17
+ }
18
+ interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {
19
+ type: 'multicheckbox' | Type<FormlyFieldMultiCheckbox>;
20
+ }
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
+ };
29
+ };
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>;
35
+ }
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>;
41
+ }
42
+
43
+ export { FormlyFieldMultiCheckbox, FormlyMatMultiCheckboxModule, withFormlyFieldMultiCheckbox };
44
+ export type { FormlyMultiCheckboxFieldConfig };
@@ -1,5 +1,32 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/native-select" />
5
- export * from './public_api';
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 {
16
+ }
17
+ interface FormlyNativeSelectFieldConfig extends FormlyFieldConfig<NativeSelectProps> {
18
+ type: 'native-select' | Type<FormlyFieldNativeSelect>;
19
+ }
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>;
23
+ }
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 };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ngx-formly/material",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@ngx-formly/core": "8.0.0",
10
- "@angular/material": ">=19.0.0"
9
+ "@ngx-formly/core": "9.0.0",
10
+ "@angular/material": ">=20.0.0"
11
11
  },
12
12
  "module": "fesm2022/ngx-formly-material.mjs",
13
13
  "typings": "index.d.ts",
@@ -39,14 +39,14 @@
39
39
  "types": "./multicheckbox/index.d.ts",
40
40
  "default": "./fesm2022/ngx-formly-material-multicheckbox.mjs"
41
41
  },
42
- "./radio": {
43
- "types": "./radio/index.d.ts",
44
- "default": "./fesm2022/ngx-formly-material-radio.mjs"
45
- },
46
42
  "./native-select": {
47
43
  "types": "./native-select/index.d.ts",
48
44
  "default": "./fesm2022/ngx-formly-material-native-select.mjs"
49
45
  },
46
+ "./radio": {
47
+ "types": "./radio/index.d.ts",
48
+ "default": "./fesm2022/ngx-formly-material-radio.mjs"
49
+ },
50
50
  "./select": {
51
51
  "types": "./select/index.d.ts",
52
52
  "default": "./fesm2022/ngx-formly-material-select.mjs"
package/radio/index.d.ts CHANGED
@@ -1,5 +1,45 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/radio" />
5
- export * from './public_api';
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 { AfterViewInit, OnDestroy, 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/radio';
8
+ import { MatRadioGroup } from '@angular/material/radio';
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 withFormlyFieldRadio(): ConfigOption;
14
+
15
+ interface RadioProps extends FormlyFieldProps {
16
+ labelPosition?: 'before' | 'after';
17
+ }
18
+ interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
19
+ type: 'radio' | Type<FormlyFieldRadio>;
20
+ }
21
+ declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> implements AfterViewInit, OnDestroy {
22
+ radioGroup: MatRadioGroup;
23
+ defaultOptions: {
24
+ props: {
25
+ hideFieldUnderline: boolean;
26
+ floatLabel: "always";
27
+ tabindex: number;
28
+ };
29
+ };
30
+ private focusObserver;
31
+ ngAfterViewInit(): void;
32
+ onContainerClick(): void;
33
+ ngOnDestroy(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-mat-radio", never, {}, {}, never, never, false, never>;
36
+ }
37
+
38
+ declare class FormlyMatRadioModule {
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatRadioModule, never>;
40
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatRadioModule, [typeof FormlyFieldRadio], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatRadioModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
41
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatRadioModule>;
42
+ }
43
+
44
+ export { FormlyFieldRadio, FormlyMatRadioModule, withFormlyFieldRadio };
45
+ export type { FormlyRadioFieldConfig };
package/select/index.d.ts CHANGED
@@ -1,5 +1,54 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/select" />
5
- export * from './public_api';
1
+ import * as i8 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 i4 from '@angular/material/select';
6
+ import { MatSelectChange } from '@angular/material/select';
7
+ import * as i6 from '@ngx-formly/material/form-field';
8
+ import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
9
+ import * as i7 from '@ngx-formly/core/select';
10
+ import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
11
+ import * as i2 from '@angular/common';
12
+ import * as i3 from '@angular/forms';
13
+ import * as i5 from '@angular/material/core';
14
+
15
+ declare function withFormlyFieldSelect(): ConfigOption;
16
+
17
+ interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
18
+ multiple?: boolean;
19
+ selectAllOption?: string;
20
+ disableOptionCentering?: boolean;
21
+ typeaheadDebounceInterval?: number;
22
+ compareWith?: (o1: any, o2: any) => boolean;
23
+ panelClass?: string;
24
+ panelWidth?: string | number | null;
25
+ }
26
+ interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
27
+ type: 'select' | Type<FormlyFieldSelect>;
28
+ }
29
+ declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
30
+ set select(select: any);
31
+ defaultOptions: {
32
+ props: {
33
+ compareWith(o1: any, o2: any): boolean;
34
+ };
35
+ };
36
+ private selectAllValue;
37
+ getSelectAllState(options: any[]): "indeterminate" | "checked";
38
+ toggleSelectAll(options: any[]): void;
39
+ change($event: MatSelectChange): void;
40
+ _getAriaLabelledby(): string;
41
+ _getAriaLabel(): string;
42
+ private getSelectAllValue;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-mat-select", never, {}, {}, never, never, false, never>;
45
+ }
46
+
47
+ declare class FormlyMatSelectModule {
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatSelectModule, never>;
49
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatSelectModule, [typeof FormlyFieldSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatSelectModule, typeof i5.MatPseudoCheckboxModule, typeof i6.FormlyMatFormFieldModule, typeof i7.FormlySelectModule, typeof i8.FormlyModule], never>;
50
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatSelectModule>;
51
+ }
52
+
53
+ export { FormlyFieldSelect, FormlyMatSelectModule, withFormlyFieldSelect };
54
+ export type { FormlySelectFieldConfig };
package/slider/index.d.ts CHANGED
@@ -1,5 +1,43 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/slider" />
5
- export * from './public_api';
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/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/material/core';
9
+ import * as i4 from '@angular/forms';
10
+ import * as i5 from '@angular/material/slider';
11
+
12
+ declare function withFormlyFieldSlider(): ConfigOption;
13
+
14
+ interface SliderProps extends FormlyFieldProps {
15
+ displayWith?: (value: number) => string;
16
+ discrete?: boolean;
17
+ showTickMarks?: boolean;
18
+ input?: (field: FormlyFieldConfig<SliderProps>, $event: Event) => void;
19
+ change?: (field: FormlyFieldConfig<SliderProps>, $event: Event) => void;
20
+ }
21
+ interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {
22
+ type: 'slider' | Type<FormlyFieldSlider>;
23
+ }
24
+ declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {
25
+ defaultOptions: {
26
+ props: {
27
+ hideFieldUnderline: boolean;
28
+ floatLabel: "always";
29
+ displayWith: (value: number) => string;
30
+ };
31
+ };
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-mat-slider", never, {}, {}, never, never, false, never>;
34
+ }
35
+
36
+ declare class FormlyMatSliderModule {
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatSliderModule, never>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatSliderModule, [typeof FormlyFieldSlider], [typeof i2.CommonModule, typeof i3.MatCommonModule, typeof i3.MatRippleModule, typeof i4.ReactiveFormsModule, typeof i5.MatSliderModule, typeof i6.FormlyMatFormFieldModule, typeof i7.FormlyModule], never>;
39
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatSliderModule>;
40
+ }
41
+
42
+ export { FormlyFieldSlider, FormlyMatSliderModule, withFormlyFieldSlider };
43
+ export type { FormlySliderFieldConfig };
@@ -1,5 +1,39 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/textarea" />
5
- export * from './public_api';
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 withFormlyFieldTextArea(): ConfigOption;
12
+
13
+ interface TextAreaProps extends FormlyFieldProps {
14
+ autosize?: boolean;
15
+ autosizeMinRows?: number;
16
+ autosizeMaxRows?: number;
17
+ }
18
+ interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
19
+ type: 'textarea' | Type<FormlyFieldTextArea>;
20
+ }
21
+ declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
22
+ defaultOptions: {
23
+ props: {
24
+ cols: number;
25
+ rows: number;
26
+ };
27
+ };
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-mat-textarea", never, {}, {}, never, never, false, never>;
30
+ }
31
+
32
+ declare class FormlyMatTextAreaModule {
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatTextAreaModule, never>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatTextAreaModule, [typeof FormlyFieldTextArea], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
35
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatTextAreaModule>;
36
+ }
37
+
38
+ export { FormlyFieldTextArea, FormlyMatTextAreaModule, withFormlyFieldTextArea };
39
+ export type { FormlyTextAreaFieldConfig };
package/toggle/index.d.ts CHANGED
@@ -1,5 +1,41 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/material/toggle" />
5
- export * from './public_api';
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 i4 from '@angular/material/slide-toggle';
8
+ import { MatSlideToggle } from '@angular/material/slide-toggle';
9
+ import * as i2 from '@angular/common';
10
+ import * as i3 from '@angular/forms';
11
+
12
+ declare function withFormlyFieldToggle(): ConfigOption;
13
+
14
+ interface ToggleProps extends FormlyFieldProps {
15
+ labelPosition?: 'before' | 'after';
16
+ }
17
+ interface FormlyToggleFieldConfig extends FormlyFieldConfig<ToggleProps> {
18
+ type: 'toggle' | Type<FormlyFieldToggle>;
19
+ }
20
+ declare class FormlyFieldToggle extends FieldType<FieldTypeConfig<ToggleProps>> {
21
+ slideToggle: MatSlideToggle;
22
+ defaultOptions: {
23
+ props: {
24
+ hideFieldUnderline: boolean;
25
+ floatLabel: "always";
26
+ hideLabel: boolean;
27
+ };
28
+ };
29
+ onContainerClick(event: MouseEvent): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldToggle, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldToggle, "formly-field-mat-toggle", never, {}, {}, never, never, false, never>;
32
+ }
33
+
34
+ declare class FormlyMatToggleModule {
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatToggleModule, never>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatToggleModule, [typeof FormlyFieldToggle], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatSlideToggleModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
37
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatToggleModule>;
38
+ }
39
+
40
+ export { FormlyFieldToggle, FormlyMatToggleModule, withFormlyFieldToggle };
41
+ export type { FormlyToggleFieldConfig };
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldCheckbox(): ConfigOption;
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@angular/material/checkbox";
6
- import * as i5 from "@ngx-formly/material/form-field";
7
- import * as i6 from "@ngx-formly/core";
8
- export declare class FormlyMatCheckboxModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatCheckboxModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatCheckboxModule, [typeof i1.FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatCheckboxModule, typeof i5.FormlyMatFormFieldModule, typeof i6.FormlyModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatCheckboxModule>;
12
- }
@@ -1,36 +0,0 @@
1
- import { Renderer2, AfterViewChecked, OnDestroy, AfterViewInit, Type } from '@angular/core';
2
- import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
4
- import { MatCheckbox } from '@angular/material/checkbox';
5
- import { FocusMonitor } from '@angular/cdk/a11y';
6
- import * as i0 from "@angular/core";
7
- interface CheckboxProps extends FormlyFieldProps {
8
- indeterminate?: boolean;
9
- labelPosition?: 'before' | 'after';
10
- }
11
- export interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
12
- type: 'checkbox' | Type<FormlyFieldCheckbox>;
13
- }
14
- export declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> implements AfterViewInit, AfterViewChecked, OnDestroy {
15
- private renderer;
16
- private focusMonitor;
17
- checkbox: MatCheckbox;
18
- defaultOptions: {
19
- props: {
20
- hideFieldUnderline: boolean;
21
- indeterminate: boolean;
22
- floatLabel: "always";
23
- hideLabel: boolean;
24
- color: "accent";
25
- };
26
- };
27
- private _required;
28
- constructor(renderer: Renderer2, focusMonitor: FocusMonitor);
29
- onContainerClick(event: MouseEvent): void;
30
- ngAfterViewInit(): void;
31
- ngAfterViewChecked(): void;
32
- ngOnDestroy(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-mat-checkbox", never, {}, {}, never, never, false, never>;
35
- }
36
- export {};
@@ -1,3 +0,0 @@
1
- export { withFormlyFieldCheckbox } from './checkbox.config';
2
- export { FormlyMatCheckboxModule } from './checkbox.module';
3
- export { FormlyFieldCheckbox, FormlyCheckboxFieldConfig } from './checkbox.type';
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldDatepicker(): ConfigOption;
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./datepicker.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@angular/material/input";
6
- import * as i5 from "@angular/material/datepicker";
7
- import * as i6 from "@ngx-formly/material/form-field";
8
- import * as i7 from "@ngx-formly/core";
9
- export declare class FormlyMatDatepickerModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyMatDatepickerModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyMatDatepickerModule, [typeof i1.FormlyFieldDatepicker], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.MatInputModule, typeof i5.MatDatepickerModule, typeof i6.FormlyMatFormFieldModule, typeof i7.FormlyModule], never>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyMatDatepickerModule>;
13
- }