@ngx-formly/material 7.1.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 (147) hide show
  1. package/README.md +26 -9
  2. package/checkbox/index.d.ts +52 -5
  3. package/datepicker/index.d.ts +73 -5
  4. package/fesm2022/ngx-formly-material-checkbox.mjs +9 -8
  5. package/fesm2022/ngx-formly-material-checkbox.mjs.map +1 -1
  6. package/fesm2022/ngx-formly-material-datepicker.mjs +9 -8
  7. package/fesm2022/ngx-formly-material-datepicker.mjs.map +1 -1
  8. package/fesm2022/ngx-formly-material-form-field.mjs +11 -11
  9. package/fesm2022/ngx-formly-material-form-field.mjs.map +1 -1
  10. package/fesm2022/ngx-formly-material-input.mjs +9 -8
  11. package/fesm2022/ngx-formly-material-input.mjs.map +1 -1
  12. package/fesm2022/ngx-formly-material-multicheckbox.mjs +9 -8
  13. package/fesm2022/ngx-formly-material-multicheckbox.mjs.map +1 -1
  14. package/fesm2022/ngx-formly-material-native-select.mjs +9 -8
  15. package/fesm2022/ngx-formly-material-native-select.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-material-radio.mjs +10 -7
  17. package/fesm2022/ngx-formly-material-radio.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-material-select.mjs +11 -8
  19. package/fesm2022/ngx-formly-material-select.mjs.map +1 -1
  20. package/fesm2022/ngx-formly-material-slider.mjs +8 -7
  21. package/fesm2022/ngx-formly-material-slider.mjs.map +1 -1
  22. package/fesm2022/ngx-formly-material-textarea.mjs +9 -8
  23. package/fesm2022/ngx-formly-material-textarea.mjs.map +1 -1
  24. package/fesm2022/ngx-formly-material-toggle.mjs +8 -7
  25. package/fesm2022/ngx-formly-material-toggle.mjs.map +1 -1
  26. package/fesm2022/ngx-formly-material.mjs +4 -4
  27. package/form-field/index.d.ts +84 -5
  28. package/index.d.ts +20 -5
  29. package/input/index.d.ts +31 -5
  30. package/multicheckbox/index.d.ts +44 -5
  31. package/native-select/index.d.ts +32 -5
  32. package/package.json +7 -31
  33. package/radio/index.d.ts +45 -5
  34. package/select/index.d.ts +54 -5
  35. package/slider/index.d.ts +43 -5
  36. package/textarea/index.d.ts +39 -5
  37. package/toggle/index.d.ts +41 -5
  38. package/checkbox/checkbox.config.d.ts +0 -2
  39. package/checkbox/checkbox.module.d.ts +0 -12
  40. package/checkbox/checkbox.type.d.ts +0 -36
  41. package/checkbox/public_api.d.ts +0 -3
  42. package/datepicker/datepicker.config.d.ts +0 -2
  43. package/datepicker/datepicker.module.d.ts +0 -13
  44. package/datepicker/datepicker.type.d.ts +0 -56
  45. package/datepicker/public_api.d.ts +0 -3
  46. package/esm2022/checkbox/checkbox.config.mjs +0 -17
  47. package/esm2022/checkbox/checkbox.module.mjs +0 -36
  48. package/esm2022/checkbox/checkbox.type.mjs +0 -106
  49. package/esm2022/checkbox/ngx-formly-material-checkbox.mjs +0 -5
  50. package/esm2022/checkbox/public_api.mjs +0 -4
  51. package/esm2022/datepicker/datepicker.config.mjs +0 -13
  52. package/esm2022/datepicker/datepicker.module.mjs +0 -40
  53. package/esm2022/datepicker/datepicker.type.mjs +0 -153
  54. package/esm2022/datepicker/ngx-formly-material-datepicker.mjs +0 -5
  55. package/esm2022/datepicker/public_api.mjs +0 -4
  56. package/esm2022/form-field/field.type.mjs +0 -142
  57. package/esm2022/form-field/form-field.config.mjs +0 -12
  58. package/esm2022/form-field/form-field.module.mjs +0 -23
  59. package/esm2022/form-field/form-field.wrapper.mjs +0 -199
  60. package/esm2022/form-field/ngx-formly-material-form-field.mjs +0 -5
  61. package/esm2022/form-field/public_api.mjs +0 -4
  62. package/esm2022/input/input.config.mjs +0 -32
  63. package/esm2022/input/input.module.mjs +0 -36
  64. package/esm2022/input/input.type.mjs +0 -82
  65. package/esm2022/input/ngx-formly-material-input.mjs +0 -5
  66. package/esm2022/input/public_api.mjs +0 -4
  67. package/esm2022/lib/material.config.mjs +0 -19
  68. package/esm2022/lib/ui-material.mjs +0 -4
  69. package/esm2022/lib/ui-material.module.mjs +0 -41
  70. package/esm2022/multicheckbox/multicheckbox.config.mjs +0 -13
  71. package/esm2022/multicheckbox/multicheckbox.module.mjs +0 -40
  72. package/esm2022/multicheckbox/multicheckbox.type.mjs +0 -85
  73. package/esm2022/multicheckbox/ngx-formly-material-multicheckbox.mjs +0 -5
  74. package/esm2022/multicheckbox/public_api.mjs +0 -4
  75. package/esm2022/native-select/native-select.config.mjs +0 -13
  76. package/esm2022/native-select/native-select.module.mjs +0 -40
  77. package/esm2022/native-select/native-select.type.mjs +0 -85
  78. package/esm2022/native-select/ngx-formly-material-native-select.mjs +0 -5
  79. package/esm2022/native-select/public_api.mjs +0 -4
  80. package/esm2022/ngx-formly-material.mjs +0 -5
  81. package/esm2022/public_api.mjs +0 -5
  82. package/esm2022/radio/ngx-formly-material-radio.mjs +0 -5
  83. package/esm2022/radio/public_api.mjs +0 -4
  84. package/esm2022/radio/radio.config.mjs +0 -13
  85. package/esm2022/radio/radio.module.mjs +0 -40
  86. package/esm2022/radio/radio.type.mjs +0 -91
  87. package/esm2022/select/ngx-formly-material-select.mjs +0 -5
  88. package/esm2022/select/public_api.mjs +0 -4
  89. package/esm2022/select/select.config.mjs +0 -14
  90. package/esm2022/select/select.module.mjs +0 -44
  91. package/esm2022/select/select.type.mjs +0 -170
  92. package/esm2022/slider/ngx-formly-material-slider.mjs +0 -5
  93. package/esm2022/slider/public_api.mjs +0 -4
  94. package/esm2022/slider/slider.config.mjs +0 -13
  95. package/esm2022/slider/slider.module.mjs +0 -43
  96. package/esm2022/slider/slider.type.mjs +0 -67
  97. package/esm2022/textarea/ngx-formly-material-textarea.mjs +0 -5
  98. package/esm2022/textarea/public_api.mjs +0 -4
  99. package/esm2022/textarea/textarea.config.mjs +0 -13
  100. package/esm2022/textarea/textarea.module.mjs +0 -36
  101. package/esm2022/textarea/textarea.type.mjs +0 -77
  102. package/esm2022/toggle/ngx-formly-material-toggle.mjs +0 -5
  103. package/esm2022/toggle/public_api.mjs +0 -4
  104. package/esm2022/toggle/toggle.config.mjs +0 -13
  105. package/esm2022/toggle/toggle.module.mjs +0 -36
  106. package/esm2022/toggle/toggle.type.mjs +0 -63
  107. package/form-field/field.type.d.ts +0 -37
  108. package/form-field/form-field.config.d.ts +0 -2
  109. package/form-field/form-field.module.d.ts +0 -11
  110. package/form-field/form-field.wrapper.d.ts +0 -38
  111. package/form-field/public_api.d.ts +0 -4
  112. package/input/input.config.d.ts +0 -2
  113. package/input/input.module.d.ts +0 -12
  114. package/input/input.type.d.ts +0 -15
  115. package/input/public_api.d.ts +0 -3
  116. package/lib/material.config.d.ts +0 -1
  117. package/lib/ui-material.d.ts +0 -3
  118. package/lib/ui-material.module.d.ts +0 -13
  119. package/multicheckbox/multicheckbox.config.d.ts +0 -2
  120. package/multicheckbox/multicheckbox.module.d.ts +0 -13
  121. package/multicheckbox/multicheckbox.type.d.ts +0 -27
  122. package/multicheckbox/public_api.d.ts +0 -3
  123. package/native-select/native-select.config.d.ts +0 -2
  124. package/native-select/native-select.module.d.ts +0 -13
  125. package/native-select/native-select.type.d.ts +0 -15
  126. package/native-select/public_api.d.ts +0 -3
  127. package/public_api.d.ts +0 -1
  128. package/radio/public_api.d.ts +0 -3
  129. package/radio/radio.config.d.ts +0 -2
  130. package/radio/radio.module.d.ts +0 -13
  131. package/radio/radio.type.d.ts +0 -28
  132. package/select/public_api.d.ts +0 -3
  133. package/select/select.config.d.ts +0 -2
  134. package/select/select.module.d.ts +0 -14
  135. package/select/select.type.d.ts +0 -35
  136. package/slider/public_api.d.ts +0 -3
  137. package/slider/slider.config.d.ts +0 -2
  138. package/slider/slider.module.d.ts +0 -13
  139. package/slider/slider.type.d.ts +0 -26
  140. package/textarea/public_api.d.ts +0 -3
  141. package/textarea/textarea.config.d.ts +0 -2
  142. package/textarea/textarea.module.d.ts +0 -12
  143. package/textarea/textarea.type.d.ts +0 -23
  144. package/toggle/public_api.d.ts +0 -3
  145. package/toggle/toggle.config.d.ts +0 -2
  146. package/toggle/toggle.module.d.ts +0 -12
  147. package/toggle/toggle.type.d.ts +0 -25
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ngx-formly/material",
3
- "version": "7.1.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": "7.1.0",
10
- "@angular/material": ">=16.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",
@@ -17,74 +17,50 @@
17
17
  },
18
18
  ".": {
19
19
  "types": "./index.d.ts",
20
- "esm2022": "./esm2022/ngx-formly-material.mjs",
21
- "esm": "./esm2022/ngx-formly-material.mjs",
22
20
  "default": "./fesm2022/ngx-formly-material.mjs"
23
21
  },
24
22
  "./checkbox": {
25
23
  "types": "./checkbox/index.d.ts",
26
- "esm2022": "./esm2022/checkbox/ngx-formly-material-checkbox.mjs",
27
- "esm": "./esm2022/checkbox/ngx-formly-material-checkbox.mjs",
28
24
  "default": "./fesm2022/ngx-formly-material-checkbox.mjs"
29
25
  },
30
26
  "./datepicker": {
31
27
  "types": "./datepicker/index.d.ts",
32
- "esm2022": "./esm2022/datepicker/ngx-formly-material-datepicker.mjs",
33
- "esm": "./esm2022/datepicker/ngx-formly-material-datepicker.mjs",
34
28
  "default": "./fesm2022/ngx-formly-material-datepicker.mjs"
35
29
  },
36
30
  "./form-field": {
37
31
  "types": "./form-field/index.d.ts",
38
- "esm2022": "./esm2022/form-field/ngx-formly-material-form-field.mjs",
39
- "esm": "./esm2022/form-field/ngx-formly-material-form-field.mjs",
40
32
  "default": "./fesm2022/ngx-formly-material-form-field.mjs"
41
33
  },
42
34
  "./input": {
43
35
  "types": "./input/index.d.ts",
44
- "esm2022": "./esm2022/input/ngx-formly-material-input.mjs",
45
- "esm": "./esm2022/input/ngx-formly-material-input.mjs",
46
36
  "default": "./fesm2022/ngx-formly-material-input.mjs"
47
37
  },
48
38
  "./multicheckbox": {
49
39
  "types": "./multicheckbox/index.d.ts",
50
- "esm2022": "./esm2022/multicheckbox/ngx-formly-material-multicheckbox.mjs",
51
- "esm": "./esm2022/multicheckbox/ngx-formly-material-multicheckbox.mjs",
52
40
  "default": "./fesm2022/ngx-formly-material-multicheckbox.mjs"
53
41
  },
54
42
  "./native-select": {
55
43
  "types": "./native-select/index.d.ts",
56
- "esm2022": "./esm2022/native-select/ngx-formly-material-native-select.mjs",
57
- "esm": "./esm2022/native-select/ngx-formly-material-native-select.mjs",
58
44
  "default": "./fesm2022/ngx-formly-material-native-select.mjs"
59
45
  },
60
- "./select": {
61
- "types": "./select/index.d.ts",
62
- "esm2022": "./esm2022/select/ngx-formly-material-select.mjs",
63
- "esm": "./esm2022/select/ngx-formly-material-select.mjs",
64
- "default": "./fesm2022/ngx-formly-material-select.mjs"
65
- },
66
46
  "./radio": {
67
47
  "types": "./radio/index.d.ts",
68
- "esm2022": "./esm2022/radio/ngx-formly-material-radio.mjs",
69
- "esm": "./esm2022/radio/ngx-formly-material-radio.mjs",
70
48
  "default": "./fesm2022/ngx-formly-material-radio.mjs"
71
49
  },
50
+ "./select": {
51
+ "types": "./select/index.d.ts",
52
+ "default": "./fesm2022/ngx-formly-material-select.mjs"
53
+ },
72
54
  "./slider": {
73
55
  "types": "./slider/index.d.ts",
74
- "esm2022": "./esm2022/slider/ngx-formly-material-slider.mjs",
75
- "esm": "./esm2022/slider/ngx-formly-material-slider.mjs",
76
56
  "default": "./fesm2022/ngx-formly-material-slider.mjs"
77
57
  },
78
58
  "./textarea": {
79
59
  "types": "./textarea/index.d.ts",
80
- "esm2022": "./esm2022/textarea/ngx-formly-material-textarea.mjs",
81
- "esm": "./esm2022/textarea/ngx-formly-material-textarea.mjs",
82
60
  "default": "./fesm2022/ngx-formly-material-textarea.mjs"
83
61
  },
84
62
  "./toggle": {
85
63
  "types": "./toggle/index.d.ts",
86
- "esm2022": "./esm2022/toggle/ngx-formly-material-toggle.mjs",
87
- "esm": "./esm2022/toggle/ngx-formly-material-toggle.mjs",
88
64
  "default": "./fesm2022/ngx-formly-material-toggle.mjs"
89
65
  }
90
66
  },
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
- }
@@ -1,56 +0,0 @@
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';
4
- import { ComponentType } from '@angular/cdk/portal';
5
- import { MatCalendarCellClassFunction, MatDatepicker } from '@angular/material/datepicker';
6
- import * as i0 from "@angular/core";
7
- interface DatepickerProps extends FormlyFieldProps {
8
- datepickerOptions?: Partial<{
9
- touchUi: boolean;
10
- opened: boolean;
11
- disabled: boolean;
12
- startView: 'month' | 'year' | 'multi-year';
13
- datepickerTogglePosition: 'suffix' | 'prefix';
14
- calendarHeaderComponent: ComponentType<any>;
15
- filter: (date: any | null) => boolean;
16
- min: any;
17
- max: any;
18
- dateInput: (field: FieldTypeConfig<DatepickerProps>, event: any) => void;
19
- dateChange: (field: FieldTypeConfig<DatepickerProps>, event: any) => void;
20
- monthSelected: (field: FieldTypeConfig<DatepickerProps>, event: any, picker: MatDatepicker<any>) => void;
21
- yearSelected: (field: FieldTypeConfig<DatepickerProps>, event: any, picker: MatDatepicker<any>) => void;
22
- dateClass: MatCalendarCellClassFunction<any>;
23
- panelClass: string | string[];
24
- startAt: any | null;
25
- }>;
26
- }
27
- export interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {
28
- type: 'datepicker' | Type<FormlyFieldDatepicker>;
29
- }
30
- export declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig<DatepickerProps>> implements AfterViewInit, OnDestroy {
31
- private config;
32
- private cdRef;
33
- datepickerToggle: TemplateRef<any>;
34
- defaultOptions: {
35
- props: {
36
- datepickerOptions: {
37
- startView: "month";
38
- datepickerTogglePosition: "suffix";
39
- disabled: boolean;
40
- opened: boolean;
41
- dateInput: () => void;
42
- dateChange: () => void;
43
- monthSelected: () => void;
44
- yearSelected: () => void;
45
- };
46
- };
47
- };
48
- private fieldErrorsObserver;
49
- constructor(config: FormlyConfig, cdRef: ChangeDetectorRef);
50
- detectChanges(): void;
51
- ngAfterViewInit(): void;
52
- ngOnDestroy(): void;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDatepicker, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDatepicker, "formly-field-mat-datepicker", never, {}, {}, never, never, false, never>;
55
- }
56
- export {};
@@ -1,3 +0,0 @@
1
- export { withFormlyFieldDatepicker } from './datepicker.config';
2
- export { FormlyMatDatepickerModule } from './datepicker.module';
3
- export { FormlyFieldDatepicker, FormlyDatepickerFieldConfig } from './datepicker.type';
@@ -1,17 +0,0 @@
1
- import { FormlyFieldCheckbox } from './checkbox.type';
2
- export function withFormlyFieldCheckbox() {
3
- return {
4
- types: [
5
- {
6
- name: 'checkbox',
7
- component: FormlyFieldCheckbox,
8
- wrappers: ['form-field'],
9
- },
10
- {
11
- name: 'boolean',
12
- extends: 'checkbox',
13
- },
14
- ],
15
- };
16
- }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3VpL21hdGVyaWFsL2NoZWNrYm94L3NyYy9jaGVja2JveC5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFdEQsTUFBTSxVQUFVLHVCQUF1QjtJQUNyQyxPQUFPO1FBQ0wsS0FBSyxFQUFFO1lBQ0w7Z0JBQ0UsSUFBSSxFQUFFLFVBQVU7Z0JBQ2hCLFNBQVMsRUFBRSxtQkFBbUI7Z0JBQzlCLFFBQVEsRUFBRSxDQUFDLFlBQVksQ0FBQzthQUN6QjtZQUNEO2dCQUNFLElBQUksRUFBRSxTQUFTO2dCQUNmLE9BQU8sRUFBRSxVQUFVO2FBQ3BCO1NBQ0Y7S0FDRixDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbmZpZ09wdGlvbiB9IGZyb20gJ0BuZ3gtZm9ybWx5L2NvcmUnO1xuaW1wb3J0IHsgRm9ybWx5RmllbGRDaGVja2JveCB9IGZyb20gJy4vY2hlY2tib3gudHlwZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiB3aXRoRm9ybWx5RmllbGRDaGVja2JveCgpOiBDb25maWdPcHRpb24ge1xuICByZXR1cm4ge1xuICAgIHR5cGVzOiBbXG4gICAgICB7XG4gICAgICAgIG5hbWU6ICdjaGVja2JveCcsXG4gICAgICAgIGNvbXBvbmVudDogRm9ybWx5RmllbGRDaGVja2JveCxcbiAgICAgICAgd3JhcHBlcnM6IFsnZm9ybS1maWVsZCddLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgbmFtZTogJ2Jvb2xlYW4nLFxuICAgICAgICBleHRlbmRzOiAnY2hlY2tib3gnLFxuICAgICAgfSxcbiAgICBdLFxuICB9O1xufVxuIl19
@@ -1,36 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormlyModule } from '@ngx-formly/core';
4
- import { ReactiveFormsModule } from '@angular/forms';
5
- import { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
6
- import { MatCheckboxModule } from '@angular/material/checkbox';
7
- import { FormlyFieldCheckbox } from './checkbox.type';
8
- import { withFormlyFieldCheckbox } from './checkbox.config';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@ngx-formly/core";
11
- export class FormlyMatCheckboxModule {
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyMatCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyMatCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
14
- ReactiveFormsModule,
15
- MatCheckboxModule,
16
- FormlyMatFormFieldModule, i1.FormlyModule] }); }
17
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyMatCheckboxModule, imports: [CommonModule,
18
- ReactiveFormsModule,
19
- MatCheckboxModule,
20
- FormlyMatFormFieldModule,
21
- FormlyModule.forChild(withFormlyFieldCheckbox())] }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyMatCheckboxModule, decorators: [{
24
- type: NgModule,
25
- args: [{
26
- declarations: [FormlyFieldCheckbox],
27
- imports: [
28
- CommonModule,
29
- ReactiveFormsModule,
30
- MatCheckboxModule,
31
- FormlyMatFormFieldModule,
32
- FormlyModule.forChild(withFormlyFieldCheckbox()),
33
- ],
34
- }]
35
- }] });
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3VpL21hdGVyaWFsL2NoZWNrYm94L3NyYy9jaGVja2JveC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXJELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRS9ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3RELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDOzs7QUFjNUQsTUFBTSxPQUFPLHVCQUF1QjsrR0FBdkIsdUJBQXVCO2dIQUF2Qix1QkFBdUIsaUJBWG5CLG1CQUFtQixhQUVoQyxZQUFZO1lBQ1osbUJBQW1CO1lBRW5CLGlCQUFpQjtZQUVqQix3QkFBd0I7Z0hBSWYsdUJBQXVCLFlBVGhDLFlBQVk7WUFDWixtQkFBbUI7WUFFbkIsaUJBQWlCO1lBRWpCLHdCQUF3QjtZQUN4QixZQUFZLENBQUMsUUFBUSxDQUFDLHVCQUF1QixFQUFFLENBQUM7OzRGQUd2Qyx1QkFBdUI7a0JBWm5DLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFLENBQUMsbUJBQW1CLENBQUM7b0JBQ25DLE9BQU8sRUFBRTt3QkFDUCxZQUFZO3dCQUNaLG1CQUFtQjt3QkFFbkIsaUJBQWlCO3dCQUVqQix3QkFBd0I7d0JBQ3hCLFlBQVksQ0FBQyxRQUFRLENBQUMsdUJBQXVCLEVBQUUsQ0FBQztxQkFDakQ7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IEZvcm1seU1vZHVsZSB9IGZyb20gJ0BuZ3gtZm9ybWx5L2NvcmUnO1xuaW1wb3J0IHsgUmVhY3RpdmVGb3Jtc01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcblxuaW1wb3J0IHsgRm9ybWx5TWF0Rm9ybUZpZWxkTW9kdWxlIH0gZnJvbSAnQG5neC1mb3JtbHkvbWF0ZXJpYWwvZm9ybS1maWVsZCc7XG5pbXBvcnQgeyBNYXRDaGVja2JveE1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2NoZWNrYm94JztcblxuaW1wb3J0IHsgRm9ybWx5RmllbGRDaGVja2JveCB9IGZyb20gJy4vY2hlY2tib3gudHlwZSc7XG5pbXBvcnQgeyB3aXRoRm9ybWx5RmllbGRDaGVja2JveCB9IGZyb20gJy4vY2hlY2tib3guY29uZmlnJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbRm9ybWx5RmllbGRDaGVja2JveF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcblxuICAgIE1hdENoZWNrYm94TW9kdWxlLFxuXG4gICAgRm9ybWx5TWF0Rm9ybUZpZWxkTW9kdWxlLFxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh3aXRoRm9ybWx5RmllbGRDaGVja2JveCgpKSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5TWF0Q2hlY2tib3hNb2R1bGUge31cbiJdfQ==