ngx-formly-zorro-antd 19.3.3 → 20.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 (249) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/index.d.ts +39 -5
  3. package/button/index.d.ts +108 -3
  4. package/card/index.d.ts +55 -3
  5. package/card-wrapper/index.d.ts +95 -3
  6. package/cascader/index.d.ts +199 -3
  7. package/checkbox/index.d.ts +60 -3
  8. package/common/index.d.ts +115 -3
  9. package/datepicker/index.d.ts +211 -3
  10. package/extension/index.d.ts +25 -3
  11. package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -1
  12. package/fesm2022/ngx-formly-zorro-antd-button.mjs +136 -139
  13. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  14. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +50 -53
  15. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-zorro-antd-card.mjs +61 -64
  17. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +85 -85
  19. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  20. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +53 -52
  21. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  22. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  23. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  24. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +154 -149
  25. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  26. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  27. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +40 -40
  28. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
  29. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +155 -158
  30. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  31. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +64 -64
  32. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  33. package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +0 -5
  34. package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -1
  35. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +47 -49
  36. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  37. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +94 -95
  38. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  39. package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs +30 -30
  40. package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs.map +1 -1
  41. package/fesm2022/ngx-formly-zorro-antd-input.mjs +301 -304
  42. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  43. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +50 -50
  44. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  45. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +36 -36
  46. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  47. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +23 -26
  48. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  49. package/fesm2022/ngx-formly-zorro-antd-select.mjs +113 -109
  50. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  51. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +36 -36
  52. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  53. package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs +18 -18
  54. package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs.map +1 -1
  55. package/fesm2022/ngx-formly-zorro-antd-space.mjs +38 -41
  56. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  57. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +30 -30
  58. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  59. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +80 -80
  60. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  61. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +14 -14
  62. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  63. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +117 -114
  64. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  65. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +68 -65
  66. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  67. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +101 -101
  68. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  69. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +88 -88
  70. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  71. package/fesm2022/ngx-formly-zorro-antd-types.mjs.map +1 -1
  72. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +243 -246
  73. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  74. package/fesm2022/ngx-formly-zorro-antd.mjs +4 -9
  75. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  76. package/flex/index.d.ts +66 -3
  77. package/form-field/index.d.ts +217 -3
  78. package/grid/index.d.ts +84 -3
  79. package/helpers/index.d.ts +142 -5
  80. package/index.d.ts +41 -1
  81. package/input/index.d.ts +93 -3
  82. package/input-group/index.d.ts +96 -3
  83. package/input-number/index.d.ts +124 -3
  84. package/input-otp/index.d.ts +70 -3
  85. package/package.json +12 -16
  86. package/radio/index.d.ts +65 -3
  87. package/rate/index.d.ts +80 -3
  88. package/ref-template/index.d.ts +95 -3
  89. package/select/index.d.ts +233 -3
  90. package/slider/index.d.ts +97 -3
  91. package/space/index.d.ts +67 -3
  92. package/space-compact/index.d.ts +54 -3
  93. package/switch/index.d.ts +63 -3
  94. package/tabs/index.d.ts +183 -3
  95. package/text-value/index.d.ts +54 -3
  96. package/textarea/index.d.ts +64 -3
  97. package/timepicker/index.d.ts +162 -3
  98. package/transfer/index.d.ts +162 -3
  99. package/tree-select/index.d.ts +204 -3
  100. package/types/index.d.ts +26 -5
  101. package/upload/index.d.ts +264 -3
  102. package/autocomplete/autocomplete.props.d.ts +0 -36
  103. package/autocomplete/public_api.d.ts +0 -1
  104. package/button/button.config.d.ts +0 -2
  105. package/button/button.module.d.ts +0 -12
  106. package/button/button.type.d.ts +0 -93
  107. package/button/public_api.d.ts +0 -4
  108. package/button-group/button-group.config.d.ts +0 -2
  109. package/button-group/button-group.module.d.ts +0 -11
  110. package/button-group/button-group.type.d.ts +0 -41
  111. package/button-group/index.d.ts +0 -5
  112. package/button-group/public_api.d.ts +0 -4
  113. package/card/card.config.d.ts +0 -2
  114. package/card/card.module.d.ts +0 -11
  115. package/card/card.type.d.ts +0 -42
  116. package/card/public_api.d.ts +0 -4
  117. package/card-wrapper/card-wrapper.config.d.ts +0 -2
  118. package/card-wrapper/card-wrapper.module.d.ts +0 -10
  119. package/card-wrapper/card-wrapper.props.d.ts +0 -58
  120. package/card-wrapper/card.wrapper.d.ts +0 -27
  121. package/card-wrapper/public_api.d.ts +0 -5
  122. package/cascader/cascader.config.d.ts +0 -2
  123. package/cascader/cascader.module.d.ts +0 -12
  124. package/cascader/cascader.type.d.ts +0 -182
  125. package/cascader/public_api.d.ts +0 -4
  126. package/checkbox/checkbox.config.d.ts +0 -2
  127. package/checkbox/checkbox.module.d.ts +0 -12
  128. package/checkbox/checkbox.type.d.ts +0 -41
  129. package/checkbox/public_api.d.ts +0 -4
  130. package/common/common.module.d.ts +0 -9
  131. package/common/formly-box-templates.directive.d.ts +0 -49
  132. package/common/formly-utils.d.ts +0 -31
  133. package/common/interface.d.ts +0 -27
  134. package/common/public_api.d.ts +0 -4
  135. package/datepicker/datepicker.config.d.ts +0 -2
  136. package/datepicker/datepicker.module.d.ts +0 -12
  137. package/datepicker/datepicker.props.d.ts +0 -158
  138. package/datepicker/datepicker.type.d.ts +0 -36
  139. package/datepicker/public_api.d.ts +0 -5
  140. package/extension/public_api.d.ts +0 -1
  141. package/extension/value-changes-extension.d.ts +0 -23
  142. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +0 -158
  143. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +0 -1
  144. package/flex/flex.config.d.ts +0 -2
  145. package/flex/flex.module.d.ts +0 -10
  146. package/flex/flex.type.d.ts +0 -53
  147. package/flex/public_api.d.ts +0 -4
  148. package/form-field/form-field.config.d.ts +0 -2
  149. package/form-field/form-field.module.d.ts +0 -12
  150. package/form-field/form-field.props.d.ts +0 -180
  151. package/form-field/form-field.wrapper.d.ts +0 -25
  152. package/form-field/public_api.d.ts +0 -4
  153. package/grid/grid.config.d.ts +0 -2
  154. package/grid/grid.module.d.ts +0 -10
  155. package/grid/grid.props.d.ts +0 -59
  156. package/grid/grid.type.d.ts +0 -15
  157. package/grid/public_api.d.ts +0 -5
  158. package/helpers/common.d.ts +0 -7
  159. package/helpers/formly.d.ts +0 -87
  160. package/helpers/public_api.d.ts +0 -53
  161. package/input/input.config.d.ts +0 -2
  162. package/input/input.module.d.ts +0 -14
  163. package/input/input.props.d.ts +0 -41
  164. package/input/input.type.d.ts +0 -35
  165. package/input/public_api.d.ts +0 -5
  166. package/input-group/input-group.config.d.ts +0 -2
  167. package/input-group/input-group.module.d.ts +0 -11
  168. package/input-group/input-group.props.d.ts +0 -65
  169. package/input-group/input-group.type.d.ts +0 -24
  170. package/input-group/public_api.d.ts +0 -5
  171. package/input-number/input-number.config.d.ts +0 -2
  172. package/input-number/input-number.module.d.ts +0 -12
  173. package/input-number/input-number.props.d.ts +0 -85
  174. package/input-number/input-number.type.d.ts +0 -28
  175. package/input-number/public_api.d.ts +0 -5
  176. package/input-otp/input-otp.config.d.ts +0 -2
  177. package/input-otp/input-otp.module.d.ts +0 -12
  178. package/input-otp/input-otp.props.d.ts +0 -30
  179. package/input-otp/input-otp.type.d.ts +0 -25
  180. package/input-otp/public_api.d.ts +0 -5
  181. package/lib/ui-ng-zorro-antd.config.d.ts +0 -1
  182. package/lib/ui-ng-zorro-antd.d.ts +0 -2
  183. package/lib/ui-ng-zorro-antd.module.d.ts +0 -36
  184. package/radio/public_api.d.ts +0 -4
  185. package/radio/radio.config.d.ts +0 -2
  186. package/radio/radio.module.d.ts +0 -14
  187. package/radio/radio.type.d.ts +0 -48
  188. package/rate/public_api.d.ts +0 -4
  189. package/rate/rate.config.d.ts +0 -2
  190. package/rate/rate.module.d.ts +0 -12
  191. package/rate/rate.type.d.ts +0 -65
  192. package/ref-template/public_api.d.ts +0 -4
  193. package/ref-template/ref-template.config.d.ts +0 -2
  194. package/ref-template/ref-template.module.d.ts +0 -11
  195. package/ref-template/ref-template.type.d.ts +0 -82
  196. package/select/public_api.d.ts +0 -5
  197. package/select/select.config.d.ts +0 -2
  198. package/select/select.module.d.ts +0 -13
  199. package/select/select.props.d.ts +0 -176
  200. package/select/select.type.d.ts +0 -38
  201. package/slider/public_api.d.ts +0 -4
  202. package/slider/slider.config.d.ts +0 -2
  203. package/slider/slider.module.d.ts +0 -12
  204. package/slider/slider.type.d.ts +0 -82
  205. package/space/public_api.d.ts +0 -4
  206. package/space/space.config.d.ts +0 -2
  207. package/space/space.module.d.ts +0 -10
  208. package/space/space.type.d.ts +0 -55
  209. package/space-compact/public_api.d.ts +0 -4
  210. package/space-compact/space-compact.config.d.ts +0 -2
  211. package/space-compact/space-compact.module.d.ts +0 -10
  212. package/space-compact/space-compact.type.d.ts +0 -41
  213. package/switch/public_api.d.ts +0 -4
  214. package/switch/switch.config.d.ts +0 -2
  215. package/switch/switch.module.d.ts +0 -12
  216. package/switch/switch.type.d.ts +0 -48
  217. package/tabs/public_api.d.ts +0 -4
  218. package/tabs/tabs.config.d.ts +0 -2
  219. package/tabs/tabs.module.d.ts +0 -10
  220. package/tabs/tabs.props.d.ts +0 -143
  221. package/tabs/tabs.wrapper.d.ts +0 -30
  222. package/text-value/public_api.d.ts +0 -4
  223. package/text-value/text-value.config.d.ts +0 -2
  224. package/text-value/text-value.module.d.ts +0 -11
  225. package/text-value/text-value.type.d.ts +0 -40
  226. package/textarea/public_api.d.ts +0 -4
  227. package/textarea/textarea.config.d.ts +0 -2
  228. package/textarea/textarea.module.d.ts +0 -13
  229. package/textarea/textarea.type.d.ts +0 -43
  230. package/timepicker/public_api.d.ts +0 -4
  231. package/timepicker/timepicker.config.d.ts +0 -2
  232. package/timepicker/timepicker.module.d.ts +0 -12
  233. package/timepicker/timepicker.type.d.ts +0 -143
  234. package/transfer/public_api.d.ts +0 -4
  235. package/transfer/transfer.component.d.ts +0 -27
  236. package/transfer/transfer.config.d.ts +0 -2
  237. package/transfer/transfer.module.d.ts +0 -13
  238. package/transfer/transfer.type.d.ts +0 -123
  239. package/tree-select/public_api.d.ts +0 -4
  240. package/tree-select/tree-select.config.d.ts +0 -2
  241. package/tree-select/tree-select.module.d.ts +0 -12
  242. package/tree-select/tree-select.type.d.ts +0 -187
  243. package/types/public_api.d.ts +0 -27
  244. package/upload/public_api.d.ts +0 -5
  245. package/upload/upload.component.d.ts +0 -37
  246. package/upload/upload.config.d.ts +0 -2
  247. package/upload/upload.module.d.ts +0 -15
  248. package/upload/upload.props.d.ts +0 -183
  249. package/upload/upload.type.d.ts +0 -36
package/grid/index.d.ts CHANGED
@@ -1,5 +1,86 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Type } from '@angular/core';
3
+ import * as i4 from '@ngx-formly/core';
4
+ import { FormlyFieldProps, FieldType, FieldTypeConfig, ConfigOption } from '@ngx-formly/core';
5
+ import { NgClassType, NgStyleType, NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
+ import { IndexableObject } from 'ng-zorro-antd/core/types';
7
+ import * as i3 from 'ng-zorro-antd/grid';
8
+ import { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
9
+ import * as i2 from '@angular/common';
10
+
11
+ type strNumNull = string | number | null;
1
12
  /**
2
- * Generated bundle index. Do not edit.
13
+ * @publicApi
3
14
  */
4
- /// <amd-module name="ngx-formly-zorro-antd/grid" />
5
- export * from './public_api';
15
+ interface GridColProps {
16
+ /** flex 布局属性 */
17
+ flex?: strNumNull;
18
+ /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
19
+ offset?: strNumNull;
20
+ /** 栅格顺序 */
21
+ order?: strNumNull;
22
+ /** 栅格向左移动格数 */
23
+ pull?: strNumNull;
24
+ /** 栅格向右移动格数 */
25
+ push?: strNumNull;
26
+ /** 栅格占位格数,为 0 时相当于 display: none */
27
+ span?: strNumNull;
28
+ /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
29
+ xs?: strNumNull | EmbeddedProperty;
30
+ /** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
31
+ sm?: strNumNull | EmbeddedProperty;
32
+ /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
33
+ md?: strNumNull | EmbeddedProperty;
34
+ /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
35
+ lg?: strNumNull | EmbeddedProperty;
36
+ /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
37
+ xl?: strNumNull | EmbeddedProperty;
38
+ /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
39
+ xxl?: strNumNull | EmbeddedProperty;
40
+ }
41
+ /**
42
+ * @publicApi
43
+ */
44
+ interface GridProps extends FormlyFieldProps, GridColProps {
45
+ /** 自定义css类 */
46
+ className?: NgClassType;
47
+ /** 自定义样式 */
48
+ style?: NgStyleType;
49
+ /** 垂直对齐方式 */
50
+ align?: NzAlign | null;
51
+ /**
52
+ * 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。
53
+ * 或者使用数组形式同时设置 [水平间距, 垂直间距]。
54
+ */
55
+ gutter?: strNumNull | IndexableObject | [number, number] | [IndexableObject, IndexableObject];
56
+ /** 水平排列方式 */
57
+ justify?: NzJustify | null;
58
+ /**
59
+ * 独立的
60
+ * 如果为true,子项不影响布局
61
+ * @default false
62
+ */
63
+ independent?: boolean;
64
+ }
65
+
66
+ interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {
67
+ type: 'grid' | Type<FormlyFieldGrid>;
68
+ }
69
+ /**
70
+ * @private
71
+ */
72
+ declare class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldGrid, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldGrid, "formly-field-grid", never, {}, {}, never, never, false, never>;
75
+ }
76
+
77
+ declare class FormlyNzGridModule {
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzGridModule, never>;
79
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzGridModule, [typeof FormlyFieldGrid], [typeof i2.CommonModule, typeof i3.NzGridModule, typeof i4.FormlyModule], never>;
80
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzGridModule>;
81
+ }
82
+
83
+ declare function withFormlyFieldGrid(): ConfigOption;
84
+
85
+ export { FormlyFieldGrid, FormlyNzGridModule, withFormlyFieldGrid };
86
+ export type { FormlyGridFieldConfig, GridColProps, GridProps };
@@ -1,5 +1,142 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-formly-zorro-antd/helpers" />
5
- export * from './public_api';
1
+ import { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';
2
+ import { FormlyFieldConfig } from '@ngx-formly/core';
3
+ import { ButtonProps, FormlyButtonFieldConfig } from 'ngx-formly-zorro-antd/button';
4
+ import { CardProps, FormlyCardFieldConfig } from 'ngx-formly-zorro-antd/card';
5
+ import { CascaderProps, FormlyCascaderFieldConfig } from 'ngx-formly-zorro-antd/cascader';
6
+ import { CheckboxProps, FormlyCheckboxFieldConfig } from 'ngx-formly-zorro-antd/checkbox';
7
+ import { DatepickerProps, FormlyDatepickerFieldConfig } from 'ngx-formly-zorro-antd/datepicker';
8
+ import { FlexProps, FormlyFlexFieldConfig } from 'ngx-formly-zorro-antd/flex';
9
+ import { GridProps, FormlyGridFieldConfig } from 'ngx-formly-zorro-antd/grid';
10
+ import { FormlyInputProps, FormlyInputFieldConfig } from 'ngx-formly-zorro-antd/input';
11
+ import { FormlyInputGroupProps, FormlyInputGroupFieldConfig } from 'ngx-formly-zorro-antd/input-group';
12
+ import { InputNumberProps, FormlyInputNumberFieldConfig } from 'ngx-formly-zorro-antd/input-number';
13
+ import { RadioProps, FormlyRadioFieldConfig } from 'ngx-formly-zorro-antd/radio';
14
+ import { RateProps, FormlyRateFieldConfig } from 'ngx-formly-zorro-antd/rate';
15
+ import { RefTemplateProps, FormlyRefTemplateFieldConfig } from 'ngx-formly-zorro-antd/ref-template';
16
+ import { SelectProps, FormlySelectFieldConfig } from 'ngx-formly-zorro-antd/select';
17
+ import { SlideProps, FormlySlideFieldConfig } from 'ngx-formly-zorro-antd/slider';
18
+ import { SpaceProps, FormlySpaceFieldConfig } from 'ngx-formly-zorro-antd/space';
19
+ import { SpaceCompactProps, FormlySpaceCompactFieldConfig } from 'ngx-formly-zorro-antd/space-compact';
20
+ import { SwitchProps, FormlySwitchFieldConfig } from 'ngx-formly-zorro-antd/switch';
21
+ import { TextValueProps, FormlyTextValueFieldConfig } from 'ngx-formly-zorro-antd/text-value';
22
+ import { TextareaProps, FormlyTextareaFieldConfig } from 'ngx-formly-zorro-antd/textarea';
23
+ import { TimepickerProps, FormlyTimepickerFieldConfig } from 'ngx-formly-zorro-antd/timepicker';
24
+ import { TransferProps, FormlyTransferFieldConfig } from 'ngx-formly-zorro-antd/transfer';
25
+ import { TreeSelectProps, FormlyTreeSelectFieldConfig } from 'ngx-formly-zorro-antd/tree-select';
26
+ import { UploadProps, FormlyUploadFieldConfig } from 'ngx-formly-zorro-antd/upload';
27
+
28
+ declare function field<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
29
+ declare function requiredField<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
30
+ declare function hide(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
31
+ declare function hidden(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
32
+
33
+ declare function treeSelect(key: string, label?: string, props?: TreeSelectProps, otherOptions?: FormlyFieldConfig): FormlyTreeSelectFieldConfig;
34
+ declare function requiredTreeSelect(key: string, label?: string, props?: TreeSelectProps, otherOptions?: FormlyFieldConfig): FormlyTreeSelectFieldConfig;
35
+ declare function transfer(key: string, label?: string, props?: TransferProps, otherOptions?: FormlyFieldConfig): FormlyTransferFieldConfig;
36
+ declare function requiredTransfer(key: string, label?: string, props?: TransferProps, otherOptions?: FormlyFieldConfig): FormlyTransferFieldConfig;
37
+ declare function timepicker(key: string, label?: string, props?: TimepickerProps, otherOptions?: FormlyFieldConfig): FormlyTimepickerFieldConfig;
38
+ declare function requiredTimepicker(key: string, label?: string, props?: TimepickerProps, otherOptions?: FormlyFieldConfig): FormlyTimepickerFieldConfig;
39
+ declare function input(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
40
+ declare function requiredInput(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
41
+ declare function textArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
42
+ declare function requiredTextArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
43
+ declare function checkbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
44
+ declare function requiredCheckbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
45
+ declare function cascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
46
+ declare function requiredCascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
47
+ declare function datepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
48
+ declare function requiredDatepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
49
+ declare function number(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
50
+ declare function requiredNumber(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
51
+ /** 选择器 */
52
+ declare function select(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
53
+ /** 选择器 */
54
+ declare function requiredSelect(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
55
+ /** 上传 */
56
+ declare function upload(key: string, label?: string, props?: UploadProps, otherOptions?: FormlyFieldConfig): FormlyUploadFieldConfig;
57
+ /** 上传 */
58
+ declare function requiredUpload(key: string, label?: string, props?: UploadProps, otherOptions?: FormlyFieldConfig): FormlyUploadFieldConfig;
59
+ /** 单选框 */
60
+ declare function radio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
61
+ /** 单选框 */
62
+ declare function requiredRadio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
63
+ /** 评分 */
64
+ declare function rate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
65
+ /** 评分 */
66
+ declare function requiredRate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
67
+ /** 开关 */
68
+ declare function requiredSwitch(key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig): FormlySwitchFieldConfig;
69
+ /** 滑动输入条 */
70
+ declare function slider(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
71
+ /** 滑动输入条 */
72
+ declare function requiredSlide(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
73
+ /** 文本显示 */
74
+ declare function text(options?: FormlyFieldConfig<TextValueProps>): FormlyTextValueFieldConfig;
75
+ /** 输入组 */
76
+ declare function inputGroup(options?: FormlyFieldConfig<FormlyInputGroupProps>): FormlyInputGroupFieldConfig;
77
+ /** 间距 */
78
+ declare function space(options?: FormlyFieldConfig<SpaceProps>): FormlySpaceFieldConfig;
79
+ /** 紧凑布局组合 */
80
+ declare function spaceCompact(options?: FormlyFieldConfig<SpaceCompactProps>): FormlySpaceCompactFieldConfig;
81
+ /** 模板 */
82
+ declare function ref(props?: RefTemplateProps, otherOptions?: FormlyFieldConfig): FormlyRefTemplateFieldConfig;
83
+ /** 栅格 */
84
+ declare function grid(options?: FormlyFieldConfig<GridProps>): FormlyGridFieldConfig;
85
+ /** 弹性布局 */
86
+ declare function flex(options?: FormlyFieldConfig<FlexProps>): FormlyFlexFieldConfig;
87
+ /** 卡片 */
88
+ declare function card(options?: FormlyFieldConfig<CardProps>): FormlyCardFieldConfig;
89
+ declare function button(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
90
+ declare function submit(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
91
+ declare function reset(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
92
+
93
+ declare const formly: {
94
+ field: typeof field;
95
+ requiredField: typeof requiredField;
96
+ hide: typeof hide;
97
+ hidden: typeof hidden;
98
+ input: typeof input;
99
+ requiredInput: typeof requiredInput;
100
+ textArea: typeof textArea;
101
+ requiredTextArea: typeof requiredTextArea;
102
+ checkbox: typeof checkbox;
103
+ requiredCheckbox: typeof requiredCheckbox;
104
+ cascader: typeof cascader;
105
+ requiredCascader: typeof requiredCascader;
106
+ number: typeof number;
107
+ requiredNumber: typeof requiredNumber;
108
+ radio: typeof radio;
109
+ requiredRadio: typeof requiredRadio;
110
+ rate: typeof rate;
111
+ requiredRate: typeof requiredRate;
112
+ datepicker: typeof datepicker;
113
+ requiredDatepicker: typeof requiredDatepicker;
114
+ /** 开关 */
115
+ switch: (key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig) => FormlySwitchFieldConfig;
116
+ requiredSwitch: typeof requiredSwitch;
117
+ upload: typeof upload;
118
+ requiredUpload: typeof requiredUpload;
119
+ slider: typeof slider;
120
+ requiredSlide: typeof requiredSlide;
121
+ select: typeof select;
122
+ requiredSelect: typeof requiredSelect;
123
+ treeSelect: typeof treeSelect;
124
+ requiredTreeSelect: typeof requiredTreeSelect;
125
+ transfer: typeof transfer;
126
+ requiredTransfer: typeof requiredTransfer;
127
+ timepicker: typeof timepicker;
128
+ requiredTimepicker: typeof requiredTimepicker;
129
+ text: typeof text;
130
+ space: typeof space;
131
+ spaceCompact: typeof spaceCompact;
132
+ inputGroup: typeof inputGroup;
133
+ ref: typeof ref;
134
+ grid: typeof grid;
135
+ flex: typeof flex;
136
+ card: typeof card;
137
+ button: typeof button;
138
+ submit: typeof submit;
139
+ reset: typeof reset;
140
+ };
141
+
142
+ export { formly };
package/index.d.ts CHANGED
@@ -1 +1,41 @@
1
- export * from './lib/ui-ng-zorro-antd';
1
+ import * as _ngx_formly_core from '@ngx-formly/core';
2
+ import * as i0 from '@angular/core';
3
+ import * as i1 from 'ngx-formly-zorro-antd/common';
4
+ import * as i2 from 'ngx-formly-zorro-antd/ref-template';
5
+ import * as i3 from 'ngx-formly-zorro-antd/form-field';
6
+ import * as i4 from 'ngx-formly-zorro-antd/input';
7
+ import * as i5 from 'ngx-formly-zorro-antd/input-number';
8
+ import * as i6 from 'ngx-formly-zorro-antd/input-group';
9
+ import * as i7 from 'ngx-formly-zorro-antd/input-otp';
10
+ import * as i8 from 'ngx-formly-zorro-antd/textarea';
11
+ import * as i9 from 'ngx-formly-zorro-antd/radio';
12
+ import * as i10 from 'ngx-formly-zorro-antd/checkbox';
13
+ import * as i11 from 'ngx-formly-zorro-antd/select';
14
+ import * as i12 from 'ngx-formly-zorro-antd/switch';
15
+ import * as i13 from 'ngx-formly-zorro-antd/cascader';
16
+ import * as i14 from 'ngx-formly-zorro-antd/datepicker';
17
+ import * as i15 from 'ngx-formly-zorro-antd/rate';
18
+ import * as i16 from 'ngx-formly-zorro-antd/slider';
19
+ import * as i17 from 'ngx-formly-zorro-antd/timepicker';
20
+ import * as i18 from 'ngx-formly-zorro-antd/transfer';
21
+ import * as i19 from 'ngx-formly-zorro-antd/tree-select';
22
+ import * as i20 from 'ngx-formly-zorro-antd/upload';
23
+ import * as i21 from 'ngx-formly-zorro-antd/tabs';
24
+ import * as i22 from 'ngx-formly-zorro-antd/card';
25
+ import * as i23 from 'ngx-formly-zorro-antd/card-wrapper';
26
+ import * as i24 from 'ngx-formly-zorro-antd/button';
27
+ import * as i25 from 'ngx-formly-zorro-antd/grid';
28
+ import * as i26 from 'ngx-formly-zorro-antd/space';
29
+ import * as i27 from 'ngx-formly-zorro-antd/space-compact';
30
+ import * as i28 from 'ngx-formly-zorro-antd/flex';
31
+ import * as i29 from 'ngx-formly-zorro-antd/text-value';
32
+
33
+ declare function withFormlyNgAntd(): _ngx_formly_core.ConfigOption[];
34
+
35
+ declare class FormlyNgAntdModule {
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNgAntdModule, never>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyCommonModule, typeof i2.FormlyRefTemplateModule, typeof i3.FormlyNzFormFieldModule, typeof i4.FormlyNzInputModule, typeof i5.FormlyNzInputNumberModule, typeof i6.FormlyNzInputGroupModule, typeof i7.FormlyNzInputOtpModule, typeof i8.FormlyNzTextareaModule, typeof i9.FormlyNzRadioModule, typeof i10.FormlyNzCheckboxModule, typeof i11.FormlyNzSelectModule, typeof i12.FormlyNzSwitchModule, typeof i13.FormlyNzCascaderModule, typeof i14.FormlyNzDatepickerModule, typeof i15.FormlyNzRateModule, typeof i16.FormlyNzSliderModule, typeof i17.FormlyNzTimepickerModule, typeof i18.FormlyNzTransferModule, typeof i19.FormlyNzTreeSelectModule, typeof i20.FormlyNzUploadModule, typeof i21.FormlyNzTabsModule, typeof i22.FormlyNzCardModule, typeof i23.FormlyNzCardWrapperModule, typeof i24.FormlyNzButtonModule, typeof i25.FormlyNzGridModule, typeof i26.FormlyNzSpaceModule, typeof i27.FormlyNzSpaceCompactModule, typeof i28.FormlyNzFlexModule, typeof i29.FormlyNzTextValueModule], [typeof i1.FormlyCommonModule]>;
38
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNgAntdModule>;
39
+ }
40
+
41
+ export { FormlyNgAntdModule, withFormlyNgAntd };
package/input/index.d.ts CHANGED
@@ -1,5 +1,95 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Type } from '@angular/core';
3
+ import * as i8 from '@ngx-formly/core';
4
+ import { FieldType, FieldTypeConfig, ConfigOption } from '@ngx-formly/core';
5
+ import { FormlyAttributeEvent, FormlyBoxTemplates, NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
+ import { NzSizeLDSType, NzVariant, NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ import * as i7 from 'ngx-formly-zorro-antd/form-field';
8
+ import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
9
+ import { FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';
10
+ import { AutocompleteProps } from 'ngx-formly-zorro-antd/autocomplete';
11
+ import * as i2 from '@angular/common';
12
+ import * as i3 from '@angular/forms';
13
+ import * as i4 from 'ng-zorro-antd/input';
14
+ import * as i5 from 'ng-zorro-antd/auto-complete';
15
+ import * as i6 from 'ng-zorro-antd/icon';
16
+
17
+ interface FormlyInputProps extends InputProps {
18
+ }
1
19
  /**
2
- * Generated bundle index. Do not edit.
20
+ * @publicApi
3
21
  */
4
- /// <amd-module name="ngx-formly-zorro-antd/input" />
5
- export * from './public_api';
22
+ interface InputProps extends FormlyFieldProps, FormlyInputGroupProps {
23
+ /**
24
+ * autoComplete=>输入框自动完成
25
+ *
26
+ * group=>组
27
+ */
28
+ type?: 'input' | 'password' | 'group' | 'autoComplete';
29
+ /**
30
+ * 控件大小。注:标准表单内的输入框大小限制为 large
31
+ * @default default
32
+ */
33
+ size?: NzSizeLDSType;
34
+ /**
35
+ * 无边框
36
+ * @deprecated Will be removed in v21. It is recommended to use `variant` instead.
37
+ * @default false
38
+ */
39
+ borderless?: boolean;
40
+ /** 形态变体 */
41
+ variant?: NzVariant;
42
+ /**
43
+ * 设置校验状态
44
+ */
45
+ status?: NzStatus;
46
+ /**
47
+ * 支持清除
48
+ * @default false
49
+ */
50
+ allowClear?: boolean;
51
+ /** 输入框自动完成配置选项 */
52
+ autocompleteOptions?: AutocompleteProps;
53
+ /** 数值改变时回调 */
54
+ modelChange?: FormlyAttributeEvent;
55
+ }
56
+
57
+ interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {
58
+ type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;
59
+ }
60
+ /**
61
+ * @private
62
+ */
63
+ declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
64
+ defaultOptions: {
65
+ props: {
66
+ borderless: boolean;
67
+ variant: string;
68
+ search: boolean;
69
+ allowClear: boolean;
70
+ autocompleteOptions: {
71
+ backfill: boolean;
72
+ defaultActiveFirstOption: boolean;
73
+ compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
74
+ };
75
+ };
76
+ };
77
+ passVisible: boolean;
78
+ fieldTemplates: FormlyBoxTemplates | null;
79
+ constructor();
80
+ get addOnBefore(): i0.TemplateRef<any> | undefined;
81
+ get addOnAfter(): i0.TemplateRef<any> | undefined;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-input", never, {}, {}, never, never, false, never>;
84
+ }
85
+
86
+ declare class FormlyNzInputModule {
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputModule, never>;
88
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzInputModule, typeof i5.NzAutocompleteModule, typeof i6.NzIconModule, typeof i7.FormlyNzFormFieldModule, typeof i8.FormlyModule], never>;
89
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputModule>;
90
+ }
91
+
92
+ declare function withFormlyFieldInput(): ConfigOption;
93
+
94
+ export { FormlyFieldInput, FormlyNzInputModule, withFormlyFieldInput };
95
+ export type { FormlyInputFieldConfig, FormlyInputProps };
@@ -1,5 +1,98 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, Type } from '@angular/core';
3
+ import * as i5 from '@ngx-formly/core';
4
+ import { FieldType, FieldTypeConfig, ConfigOption } from '@ngx-formly/core';
5
+ import { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
+ import * as i4 from 'ngx-formly-zorro-antd/form-field';
7
+ import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
8
+ import { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
9
+ import * as i2 from '@angular/common';
10
+ import * as i3 from 'ng-zorro-antd/input';
11
+
12
+ type FormlyInputGroupProps = InputGroupProps;
1
13
  /**
2
- * Generated bundle index. Do not edit.
14
+ * @publicApi
3
15
  */
4
- /// <amd-module name="ngx-formly-zorro-antd/input-group" />
5
- export * from './public_api';
16
+ interface InputGroupProps extends FormlyFieldProps {
17
+ /**
18
+ * 带有后缀图标的 input,可以与 suffixIcon 配合使用
19
+ */
20
+ prefixIcon?: string | null;
21
+ /**
22
+ * 带有后缀图标的 input,可以与 prefixIcon 配合使用
23
+ */
24
+ suffixIcon?: string | null;
25
+ /**
26
+ * 带标签的 input,设置后置标签,可以与 nzAddOnBefore 配合使用
27
+ */
28
+ addOnAfter?: string | TemplateRef<void>;
29
+ addOnAfterName?: string;
30
+ /**
31
+ * 带标签的 input,设置前置标签,可以与 nzAddOnAfter 配合使用
32
+ */
33
+ addOnBefore?: string | TemplateRef<void>;
34
+ addOnBeforeName?: string;
35
+ /**
36
+ * 带标签的 input,设置后置标签,可以与 addOnBeforeIcon 配合使用
37
+ */
38
+ addOnAfterIcon?: string | null;
39
+ /**
40
+ * 带标签的 input,设置后置标签,可以与 addOnAfterIcon 配合使用
41
+ */
42
+ addOnBeforeIcon?: string | null;
43
+ /**
44
+ * 带有前缀图标的 input,可以与 nzSuffix 配合使用
45
+ */
46
+ prefix?: string | TemplateRef<void>;
47
+ prefixName?: string;
48
+ /**
49
+ * 带有后缀图标的 input,可以与 nzPrefix 配合使用
50
+ */
51
+ suffix?: string | TemplateRef<void>;
52
+ suffixName?: string;
53
+ /**
54
+ * 是否用搜索框
55
+ * @default false
56
+ */
57
+ search?: boolean;
58
+ /**
59
+ * 控件大小。注:标准表单内的输入框大小限制为 large
60
+ * @default default
61
+ */
62
+ size?: NzSizeLDSType;
63
+ /**
64
+ * 设置校验状态
65
+ */
66
+ status?: NzStatus;
67
+ }
68
+
69
+ /**
70
+ * @deprecated Use `space-compact` instead.
71
+ */
72
+ interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {
73
+ type: 'input-group' | Type<FormlyFieldInputGroup>;
74
+ }
75
+ /**
76
+ * @private
77
+ */
78
+ declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {
79
+ defaultOptions: {
80
+ props: {
81
+ status: "";
82
+ size: "default";
83
+ };
84
+ };
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInputGroup, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInputGroup, "formly-field-input-group", never, {}, {}, never, never, false, never>;
87
+ }
88
+
89
+ declare class FormlyNzInputGroupModule {
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputGroupModule, never>;
91
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputGroupModule, [typeof FormlyFieldInputGroup], [typeof i2.CommonModule, typeof i3.NzInputModule, typeof i4.FormlyNzFormFieldModule, typeof i5.FormlyModule], never>;
92
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputGroupModule>;
93
+ }
94
+
95
+ declare function withFormlyFieldInputGroup(): ConfigOption;
96
+
97
+ export { FormlyFieldInputGroup, FormlyNzInputGroupModule, withFormlyFieldInputGroup };
98
+ export type { FormlyInputGroupFieldConfig, FormlyInputGroupProps };
@@ -1,5 +1,126 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, Type } from '@angular/core';
3
+ import * as i6 from '@ngx-formly/core';
4
+ import { FieldType, FieldTypeConfig, ConfigOption } from '@ngx-formly/core';
5
+ import { FormlyAttributeEvent, NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
+ import * as i4 from 'ngx-formly-zorro-antd/form-field';
7
+ import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
8
+ import { NzSizeLDSType, NzStatus, NzVariant } from 'ng-zorro-antd/core/types';
9
+ import * as i2 from '@angular/common';
10
+ import * as i3 from '@angular/forms';
11
+ import * as i5 from 'ng-zorro-antd/input-number-legacy';
12
+
1
13
  /**
2
- * Generated bundle index. Do not edit.
14
+ * @publicApi
3
15
  */
4
- /// <amd-module name="ngx-formly-zorro-antd/input-number" />
5
- export * from './public_api';
16
+ interface InputNumberProps extends FormlyFieldProps {
17
+ type?: 'number' | 'group';
18
+ /**
19
+ * 自动获取焦点
20
+ * @default false
21
+ */
22
+ autoFocus?: boolean;
23
+ /**
24
+ * 指定输入框展示值的格式
25
+ */
26
+ formatter?: (value: number | string) => string | number;
27
+ /**
28
+ * 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用
29
+ * @default
30
+ * (value: string) => value.trim().replace(/。/g, '.').replace(/[^\w\.-]+/g, '')
31
+ */
32
+ parser?: (value: string) => string;
33
+ /**
34
+ * 数值精度
35
+ */
36
+ precision?: number;
37
+ /**
38
+ * 数值精度的取值方式
39
+ * @default toFixed
40
+ */
41
+ precisionMode?: 'cut' | 'toFixed' | ((value: number | string, precision?: number) => number);
42
+ /**
43
+ * 输入框大小
44
+ * @default default
45
+ */
46
+ size?: NzSizeLDSType;
47
+ /**
48
+ * 设置校验状态
49
+ */
50
+ status?: NzStatus;
51
+ /**
52
+ * 无边框
53
+ * @deprecated Will be removed in v21. It is recommended to use `variant` instead.
54
+ * @default false
55
+ */
56
+ borderless?: boolean;
57
+ /** 形态变体 */
58
+ variant?: NzVariant;
59
+ /**
60
+ * 提供了用户在编辑元素或其内容时可能输入的数据类型的提示,详见MDN
61
+ * @default decimal
62
+ */
63
+ inputMode?: string;
64
+ /**
65
+ * 带标签的 input-number,设置后置标签,可以与 nzAddOnBefore 配合使用
66
+ */
67
+ addOnAfter?: string | TemplateRef<void>;
68
+ /**
69
+ * 带标签的 input-number,设置前置标签,可以与 nzAddOnAfter 配合使用
70
+ */
71
+ addOnBefore?: string | TemplateRef<void>;
72
+ /**
73
+ * 带有前缀图标的 input-number,可以与 nzSuffix 配合使用
74
+ */
75
+ prefix?: string | TemplateRef<void>;
76
+ /**
77
+ * 带有后缀图标的 input-number,可以与 nzPrefix 配合使用
78
+ */
79
+ suffix?: string | TemplateRef<void>;
80
+ /**
81
+ * 带有前缀图标的 input-number
82
+ */
83
+ prefixIcon?: string;
84
+ /**
85
+ * 带有后缀图标的 input-number
86
+ */
87
+ suffixIcon?: string;
88
+ /** 数值改变时回调 */
89
+ modelChange?: FormlyAttributeEvent<number | null>;
90
+ }
91
+
92
+ interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {
93
+ type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;
94
+ }
95
+ /**
96
+ * @private
97
+ */
98
+ declare class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {
99
+ defaultOptions: {
100
+ props: {
101
+ max: number;
102
+ min: number;
103
+ parser: (value: string) => string;
104
+ precisionMode: "toFixed";
105
+ variant: string;
106
+ size: "default";
107
+ status: "";
108
+ step: number;
109
+ inputMode: string;
110
+ formatter: (value: number | string) => string | number;
111
+ };
112
+ };
113
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInputNumber, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInputNumber, "formly-field-inputnumber", never, {}, {}, never, never, false, never>;
115
+ }
116
+
117
+ declare class FormlyNzInputNumberModule {
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputNumberModule, never>;
119
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputNumberModule, [typeof FormlyFieldInputNumber], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzInputNumberLegacyModule, typeof i6.FormlyModule], never>;
120
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputNumberModule>;
121
+ }
122
+
123
+ declare function withFormlyFieldInputNumber(): ConfigOption;
124
+
125
+ export { FormlyFieldInputNumber, FormlyNzInputNumberModule, withFormlyFieldInputNumber };
126
+ export type { FormlyInputNumberFieldConfig, InputNumberProps };