@ngx-formly/material 8.0.0 → 10.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 (94) hide show
  1. package/README.md +46 -19
  2. package/fesm2022/ngx-formly-material-checkbox.mjs +7 -7
  3. package/fesm2022/ngx-formly-material-checkbox.mjs.map +1 -1
  4. package/fesm2022/ngx-formly-material-datepicker.mjs +7 -7
  5. package/fesm2022/ngx-formly-material-datepicker.mjs.map +1 -1
  6. package/fesm2022/ngx-formly-material-form-field.mjs +10 -10
  7. package/fesm2022/ngx-formly-material-form-field.mjs.map +1 -1
  8. package/fesm2022/ngx-formly-material-input.mjs +7 -7
  9. package/fesm2022/ngx-formly-material-multicheckbox.mjs +7 -7
  10. package/fesm2022/ngx-formly-material-multicheckbox.mjs.map +1 -1
  11. package/fesm2022/ngx-formly-material-native-select.mjs +7 -7
  12. package/fesm2022/ngx-formly-material-radio.mjs +7 -7
  13. package/fesm2022/ngx-formly-material-radio.mjs.map +1 -1
  14. package/fesm2022/ngx-formly-material-select.mjs +7 -7
  15. package/fesm2022/ngx-formly-material-select.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-material-slider.mjs +8 -11
  17. package/fesm2022/ngx-formly-material-slider.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-material-textarea.mjs +7 -7
  19. package/fesm2022/ngx-formly-material-toggle.mjs +7 -7
  20. package/fesm2022/ngx-formly-material-toggle.mjs.map +1 -1
  21. package/fesm2022/ngx-formly-material.mjs +4 -4
  22. package/package.json +20 -19
  23. package/types/ngx-formly-material-checkbox.d.ts +52 -0
  24. package/{datepicker/datepicker.type.d.ts → types/ngx-formly-material-datepicker.d.ts} +25 -8
  25. package/types/ngx-formly-material-form-field.d.ts +84 -0
  26. package/types/ngx-formly-material-input.d.ts +31 -0
  27. package/types/ngx-formly-material-multicheckbox.d.ts +44 -0
  28. package/types/ngx-formly-material-native-select.d.ts +32 -0
  29. package/types/ngx-formly-material-radio.d.ts +45 -0
  30. package/types/ngx-formly-material-select.d.ts +54 -0
  31. package/types/ngx-formly-material-slider.d.ts +43 -0
  32. package/types/ngx-formly-material-textarea.d.ts +39 -0
  33. package/types/ngx-formly-material-toggle.d.ts +41 -0
  34. package/types/ngx-formly-material.d.ts +20 -0
  35. package/checkbox/checkbox.config.d.ts +0 -2
  36. package/checkbox/checkbox.module.d.ts +0 -12
  37. package/checkbox/checkbox.type.d.ts +0 -36
  38. package/checkbox/index.d.ts +0 -5
  39. package/checkbox/public_api.d.ts +0 -3
  40. package/datepicker/datepicker.config.d.ts +0 -2
  41. package/datepicker/datepicker.module.d.ts +0 -13
  42. package/datepicker/index.d.ts +0 -5
  43. package/datepicker/public_api.d.ts +0 -3
  44. package/form-field/field.type.d.ts +0 -37
  45. package/form-field/form-field.config.d.ts +0 -2
  46. package/form-field/form-field.module.d.ts +0 -11
  47. package/form-field/form-field.wrapper.d.ts +0 -38
  48. package/form-field/index.d.ts +0 -5
  49. package/form-field/public_api.d.ts +0 -4
  50. package/index.d.ts +0 -5
  51. package/input/index.d.ts +0 -5
  52. package/input/input.config.d.ts +0 -2
  53. package/input/input.module.d.ts +0 -12
  54. package/input/input.type.d.ts +0 -15
  55. package/input/public_api.d.ts +0 -3
  56. package/lib/material.config.d.ts +0 -1
  57. package/lib/ui-material.d.ts +0 -3
  58. package/lib/ui-material.module.d.ts +0 -13
  59. package/multicheckbox/index.d.ts +0 -5
  60. package/multicheckbox/multicheckbox.config.d.ts +0 -2
  61. package/multicheckbox/multicheckbox.module.d.ts +0 -13
  62. package/multicheckbox/multicheckbox.type.d.ts +0 -27
  63. package/multicheckbox/public_api.d.ts +0 -3
  64. package/native-select/index.d.ts +0 -5
  65. package/native-select/native-select.config.d.ts +0 -2
  66. package/native-select/native-select.module.d.ts +0 -13
  67. package/native-select/native-select.type.d.ts +0 -15
  68. package/native-select/public_api.d.ts +0 -3
  69. package/public_api.d.ts +0 -1
  70. package/radio/index.d.ts +0 -5
  71. package/radio/public_api.d.ts +0 -3
  72. package/radio/radio.config.d.ts +0 -2
  73. package/radio/radio.module.d.ts +0 -13
  74. package/radio/radio.type.d.ts +0 -28
  75. package/select/index.d.ts +0 -5
  76. package/select/public_api.d.ts +0 -3
  77. package/select/select.config.d.ts +0 -2
  78. package/select/select.module.d.ts +0 -14
  79. package/select/select.type.d.ts +0 -36
  80. package/slider/index.d.ts +0 -5
  81. package/slider/public_api.d.ts +0 -3
  82. package/slider/slider.config.d.ts +0 -2
  83. package/slider/slider.module.d.ts +0 -13
  84. package/slider/slider.type.d.ts +0 -26
  85. package/textarea/index.d.ts +0 -5
  86. package/textarea/public_api.d.ts +0 -3
  87. package/textarea/textarea.config.d.ts +0 -2
  88. package/textarea/textarea.module.d.ts +0 -12
  89. package/textarea/textarea.type.d.ts +0 -23
  90. package/toggle/index.d.ts +0 -5
  91. package/toggle/public_api.d.ts +0 -3
  92. package/toggle/toggle.config.d.ts +0 -2
  93. package/toggle/toggle.module.d.ts +0 -12
  94. package/toggle/toggle.type.d.ts +0 -25
package/package.json CHANGED
@@ -1,70 +1,71 @@
1
1
  {
2
2
  "name": "@ngx-formly/material",
3
- "version": "8.0.0",
3
+ "version": "10.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": "10.0.0",
10
+ "@angular/material": ">=21.0.0"
11
11
  },
12
12
  "module": "fesm2022/ngx-formly-material.mjs",
13
- "typings": "index.d.ts",
13
+ "typings": "types/ngx-formly-material.d.ts",
14
14
  "exports": {
15
15
  "./package.json": {
16
16
  "default": "./package.json"
17
17
  },
18
18
  ".": {
19
- "types": "./index.d.ts",
19
+ "types": "./types/ngx-formly-material.d.ts",
20
20
  "default": "./fesm2022/ngx-formly-material.mjs"
21
21
  },
22
22
  "./checkbox": {
23
- "types": "./checkbox/index.d.ts",
23
+ "types": "./types/ngx-formly-material-checkbox.d.ts",
24
24
  "default": "./fesm2022/ngx-formly-material-checkbox.mjs"
25
25
  },
26
26
  "./datepicker": {
27
- "types": "./datepicker/index.d.ts",
27
+ "types": "./types/ngx-formly-material-datepicker.d.ts",
28
28
  "default": "./fesm2022/ngx-formly-material-datepicker.mjs"
29
29
  },
30
30
  "./form-field": {
31
- "types": "./form-field/index.d.ts",
31
+ "types": "./types/ngx-formly-material-form-field.d.ts",
32
32
  "default": "./fesm2022/ngx-formly-material-form-field.mjs"
33
33
  },
34
34
  "./input": {
35
- "types": "./input/index.d.ts",
35
+ "types": "./types/ngx-formly-material-input.d.ts",
36
36
  "default": "./fesm2022/ngx-formly-material-input.mjs"
37
37
  },
38
38
  "./multicheckbox": {
39
- "types": "./multicheckbox/index.d.ts",
39
+ "types": "./types/ngx-formly-material-multicheckbox.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
- "types": "./native-select/index.d.ts",
43
+ "types": "./types/ngx-formly-material-native-select.d.ts",
48
44
  "default": "./fesm2022/ngx-formly-material-native-select.mjs"
49
45
  },
46
+ "./radio": {
47
+ "types": "./types/ngx-formly-material-radio.d.ts",
48
+ "default": "./fesm2022/ngx-formly-material-radio.mjs"
49
+ },
50
50
  "./select": {
51
- "types": "./select/index.d.ts",
51
+ "types": "./types/ngx-formly-material-select.d.ts",
52
52
  "default": "./fesm2022/ngx-formly-material-select.mjs"
53
53
  },
54
54
  "./slider": {
55
- "types": "./slider/index.d.ts",
55
+ "types": "./types/ngx-formly-material-slider.d.ts",
56
56
  "default": "./fesm2022/ngx-formly-material-slider.mjs"
57
57
  },
58
58
  "./textarea": {
59
- "types": "./textarea/index.d.ts",
59
+ "types": "./types/ngx-formly-material-textarea.d.ts",
60
60
  "default": "./fesm2022/ngx-formly-material-textarea.mjs"
61
61
  },
62
62
  "./toggle": {
63
- "types": "./toggle/index.d.ts",
63
+ "types": "./types/ngx-formly-material-toggle.d.ts",
64
64
  "default": "./fesm2022/ngx-formly-material-toggle.mjs"
65
65
  }
66
66
  },
67
67
  "sideEffects": false,
68
+ "type": "module",
68
69
  "homepage": "https://github.com/ngx-formly/ngx-formly#readme",
69
70
  "description": "Formly is a dynamic (JSON powered) form library for Angular that bring unmatched maintainability to your application's forms.",
70
71
  "repository": {
@@ -0,0 +1,52 @@
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
+
15
+ interface CheckboxProps extends FormlyFieldProps {
16
+ indeterminate?: boolean;
17
+ labelPosition?: 'before' | 'after';
18
+ }
19
+ interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
20
+ type: 'checkbox' | Type<FormlyFieldCheckbox>;
21
+ }
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
+ };
34
+ };
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>;
43
+ }
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>;
49
+ }
50
+
51
+ export { FormlyFieldCheckbox, FormlyMatCheckboxModule, withFormlyFieldCheckbox };
52
+ export type { FormlyCheckboxFieldConfig };
@@ -1,9 +1,18 @@
1
- import { AfterViewInit, OnDestroy, TemplateRef, ChangeDetectorRef, Type } from '@angular/core';
2
- import { FieldTypeConfig, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
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';
4
7
  import { ComponentType } from '@angular/cdk/portal';
5
- import { MatCalendarCellClassFunction, MatDatepicker } from '@angular/material/datepicker';
6
- import * as i0 from "@angular/core";
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
+
7
16
  interface DatepickerProps extends FormlyFieldProps {
8
17
  datepickerOptions?: Partial<{
9
18
  touchUi: boolean;
@@ -24,10 +33,10 @@ interface DatepickerProps extends FormlyFieldProps {
24
33
  startAt: any | null;
25
34
  }>;
26
35
  }
27
- export interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {
36
+ interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {
28
37
  type: 'datepicker' | Type<FormlyFieldDatepicker>;
29
38
  }
30
- export declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig<DatepickerProps>> implements AfterViewInit, OnDestroy {
39
+ declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig<DatepickerProps>> implements AfterViewInit, OnDestroy {
31
40
  private config;
32
41
  private cdRef;
33
42
  datepickerToggle: TemplateRef<any>;
@@ -53,4 +62,12 @@ export declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig<Dat
53
62
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDatepicker, never>;
54
63
  static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDatepicker, "formly-field-mat-datepicker", never, {}, {}, never, never, false, never>;
55
64
  }
56
- export {};
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>;
70
+ }
71
+
72
+ export { FormlyFieldDatepicker, FormlyMatDatepickerModule, withFormlyFieldDatepicker };
73
+ export type { FormlyDatepickerFieldConfig };
@@ -0,0 +1,84 @@
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 };
@@ -0,0 +1,31 @@
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 };
@@ -0,0 +1,44 @@
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 };
@@ -0,0 +1,32 @@
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 };
@@ -0,0 +1,45 @@
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 };
@@ -0,0 +1,54 @@
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 };
@@ -0,0 +1,43 @@
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.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 };
@@ -0,0 +1,39 @@
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 };
@@ -0,0 +1,41 @@
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 };
@@ -0,0 +1,20 @@
1
+ import * as _ngx_formly_core_types_ngx_formly_core from '@ngx-formly/core/types/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_types_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 };
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldCheckbox(): ConfigOption;